Browse Source

fix(problemRect): 修正被检查主管标签及移除班组流转选项

- 将"被检查科"标签更新为"被检查主管"以匹配实际业务需求
- 移除SECTION_LEADER_APPROVE节点下的班组流转相关代码
- 更新部门选项构建函数为buildManagerOptions
huoyi 2 months ago
parent
commit
8789adbddd
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/pages/problemRect/index.vue

+ 9 - 9
src/pages/problemRect/index.vue

@@ -20,7 +20,7 @@
20 20
                             </uni-forms-item>
21 21
 
22 22
                             <uni-forms-item :label="getCheckLabel" name="checkedDepartmentId">
23
-                                <uni-data-picker v-if="getCheckLabel == '被检查'" :localdata="departments"
23
+                                <uni-data-picker v-if="getCheckLabel == '被检查主管'" :localdata="departments"
24 24
                                     :popup-title="`请选择${getCheckLabel}`" v-model="formData.checkedDepartmentId"
25 25
                                     :readonly="true" />
26 26
                                 <uni-data-picker v-if="getCheckLabel == '被检查大队'" :localdata="brigades"
@@ -107,7 +107,7 @@
107 107
 
108 108
 
109 109
                             <!-- 是否流转至班组 -->
110
-                            <uni-forms-item
110
+                            <!-- <uni-forms-item
111 111
                                 v-if="nodeCode === 'SECTION_LEADER_APPROVE' && businessType === 'SECTION_CHECK'"
112 112
                                 label="是否流转至班组" name="isSelectTeam">
113 113
                                 <radio-group @change="handleIsSelectTeamChange" class="radio-group">
@@ -120,7 +120,7 @@
120 120
                                         <text>是</text>
121 121
                                     </label>
122 122
                                 </radio-group>
123
-                            </uni-forms-item>
123
+                            </uni-forms-item> -->
124 124
 
125 125
                             <!-- 整改班组 -->
126 126
                             <uni-forms-item
@@ -213,7 +213,7 @@ import { listAllUser } from "@/api/system/user.js"
213 213
 import { getProblemRectDetail, approvalAgree, approvalReject } from '@/api/problemRect/problemRect.js'
214 214
 import { getApprovelHistory } from '@/api/approve/approve.js'
215 215
 import { getDeptManager, getDeptDetail } from "@/api/system/dept/dept.js"
216
-import { buildTeamOptions, buildDepartmentOptions, buildBrigadeOptions } from "@/utils/common.js"
216
+import { buildTeamOptions, buildManagerOptions, buildBrigadeOptions } from "@/utils/common.js"
217 217
 export default {
218 218
     components: { HomeContainer, RejectModal },
219 219
     mixins: [useDictMixin],
@@ -255,7 +255,7 @@ export default {
255 255
                 return '被检查人'
256 256
             }
257 257
             if (this.formData.checkedLevel == checkedLevelEnums.DEPARTMENT_LEVEL) {
258
-                return '被检查'
258
+                return '被检查主管'
259 259
             }
260 260
             if (this.formData.checkedLevel == checkedLevelEnums.BRIGADE_LEVEL) {
261 261
                 return '被检查大队'
@@ -276,9 +276,9 @@ export default {
276 276
                 rectificationDetails: {
277 277
                     rules: this.rectificationDetailsRequired ? [{ required: true, errorMessage: '请输入整改详情' }] : []
278 278
                 },
279
-                isSelectTeam: {
280
-                    rules: [{ required: true, errorMessage: '请选择是否流转至班组' }]
281
-                },
279
+                // isSelectTeam: {
280
+                //     rules: [{ required: true, errorMessage: '请选择是否流转至班组' }]
281
+                // },
282 282
                 selectTeamId: {
283 283
                     rules: [{ required: true, errorMessage: '请选择整改班组' }]
284 284
                 }
@@ -443,7 +443,7 @@ export default {
443 443
                 // 获取班组列表
444 444
                 const deptTree = await getDeptList();
445 445
                 this.teams = buildTeamOptions(deptTree.data || []);
446
-                this.departments = buildDepartmentOptions(deptTree.data || []);
446
+                this.departments = buildManagerOptions(deptTree.data || []);
447 447
                 this.brigades = buildBrigadeOptions(deptTree.data || []);
448 448
                 uni.hideLoading();
449 449
             } catch (err) {