瀏覽代碼

bug fix: SAI开项管理登记人部门下拉框不显示label问题

wangggziwen 2 年之前
父節點
當前提交
f8fef64b07

+ 15 - 13
ui/src/views/approve/approveDetail/sai-apply-detail.vue

@@ -723,7 +723,6 @@ export default {
       getApply(id).then(response => {
         this.dataForm = response.data;
         this.getFileList()
-        this.dataForm.applicantDept = Number(this.dataForm.applicantDept);
         this.inspector1 = this.dataForm.applicant;
         if (this.dataForm.inspectors != null) {
           let inspectors = this.dataForm.inspectors.split(",");
@@ -1090,18 +1089,21 @@ export default {
     },
     /** 加载登记人部门列表 */
     getApplicantDeptOptions() {
-      listDept(null).then(response => {
-        let deptList = response.data;
-        this.applicantDeptOptions = [];
-        for (let i = 0; i < deptList.length; i++) {
-          if (deptList[i].deptId == 103 || deptList[i].deptId == 10058 || deptList[i].deptId == 10042) {
-            this.applicantDeptOptions.push({
-              dictLabel: deptList[i].deptName,
-              dictValue: deptList[i].deptId
-            });
-          }
-        }
-      });
+      // listDept(null).then(response => {
+      //   let deptList = response.data;
+      //   this.applicantDeptOptions = [];
+      //   for (let i = 0; i < deptList.length; i++) {
+      //     if (deptList[i].deptId == 103 || deptList[i].deptId == 10058 || deptList[i].deptId == 10042) {
+      //       this.applicantDeptOptions.push({
+      //         dictLabel: deptList[i].deptName,
+      //         dictValue: deptList[i].deptId
+      //       });
+      //     }
+      //   }
+      // });
+      this.applicantDeptOptions.push({ dictLabel: "CBP/C", dictValue: '10' });
+      this.applicantDeptOptions.push({ dictLabel: "CTA/B", dictValue: '12' });
+      this.applicantDeptOptions.push({ dictLabel: "CTM/B", dictValue: '14' });
     },
     /** 加载登记人列表 */
     listStaffmgrByDeptAndTeam(applicantDept, applicantTeam) {

+ 0 - 1
ui/src/views/production/apply/all/index.vue

@@ -1271,7 +1271,6 @@ export default {
       const saiApplyId = row.saiApplyId || this.ids
       getApply(saiApplyId).then(response => {
         this.form = response.data;
-        this.form.applicantDept = Number(this.form.applicantDept);
         if (this.form.unsafeStatus != null && this.form.unsafeStatus != "") {
           this.form.unsafeStatus = this.form.unsafeStatus.toString();
         }

+ 0 - 1
ui/src/views/production/apply/mine/index.vue

@@ -1287,7 +1287,6 @@
         const saiApplyId = row.saiApplyId || this.ids
         getApply(saiApplyId).then(response => {
           this.form = response.data;
-          this.form.applicantDept = Number(this.form.applicantDept);
           if (this.form.unsafeStatus != null && this.form.unsafeStatus != "") {
             this.form.unsafeStatus = this.form.unsafeStatus.toString();
           }

+ 0 - 1
ui/src/views/production/apply/pending/index.vue

@@ -1284,7 +1284,6 @@
         const saiApplyId = row.saiApplyId || this.ids
         getApply(saiApplyId).then(response => {
           this.form = response.data;
-          this.form.applicantDept = Number(this.form.applicantDept);
           if (this.form.unsafeStatus != null && this.form.unsafeStatus != "") {
             this.form.unsafeStatus = this.form.unsafeStatus.toString();
           }