Bläddra i källkod

修改被服单位会报错导致修改不成功调整

wangqiang 1 år sedan
förälder
incheckning
061910f451
1 ändrade filer med 19 tillägg och 14 borttagningar
  1. 19 14
      src/views/cw/reportManagement/ReportManagementForm.vue

+ 19 - 14
src/views/cw/reportManagement/ReportManagementForm.vue

@@ -1489,24 +1489,29 @@
         let _list = list
         const waitForEach = function () {
           return new Promise(function (resolve, reject) {
-            _list.forEach((item) => {
-              // _this.inputForm.cwProjectInfoList.forEach(client => {
-              //   if (item.id === client.servedUnitId) {
-              //     // _this.$message.error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
-              //     // throw new Error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
-              //   }
-              // })
-            })
+            // _list.forEach((item) => {
+            //   // _this.inputForm.cwProjectInfoList.forEach(client => {
+            //   //   if (item.id === client.servedUnitId) {
+            //   //     // _this.$message.error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
+            //   //     // throw new Error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
+            //   //   }
+            //   // })
+            // })
             resolve()
           })
         }
+        console.log('list', list)
         waitForEach().then(() => {
-          list.forEach(item => {
-            this.inputForm.servedUnitName = item.name
-            this.inputForm.servedUnitId = item.id
-            this.inputForm.sealType = '未盖章'
-            this.tableKeyClient = Math.random()
-          })
+          // list.forEach(item => {
+          //   this.inputForm.servedUnitName = item.name
+          //   this.inputForm.servedUnitId = item.id
+          //   this.inputForm.sealType = '未盖章'
+          //   this.tableKeyClient = Math.random()
+          // })
+			this.inputForm.servedUnitName = list.name
+			this.inputForm.servedUnitId = list.id
+			this.inputForm.sealType = '未盖章'
+			this.tableKeyClient = Math.random()
         })
       },
       clearClientList () {