瀏覽代碼

解决复制新增会复制状态问题

lichao 3 年之前
父節點
當前提交
6e2decbcdd
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/warehouseBusiness/agreement/index.vue

+ 4 - 1
src/views/warehouseBusiness/agreement/index.vue

@@ -1043,7 +1043,6 @@ export default {
           this.form.tPackages = JSON.parse(this.form.tPackages)
         }
         if (response.data.tWarehouseAgreement.fWarehouseid) {
-          // this.form.fWarehouseid = this.form.fWarehouseid.replace(/\[|]/g, "").split(",");
           this.form.fWarehouseid = JSON.parse(this.form.fWarehouseid)
         }
         this.operator = this.form.createBy
@@ -1373,6 +1372,7 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row,num) {
       if (num === 2){
+        this.notChange = false
         getAgreement(this.idCopy).then(response => {
           this.deptName = response.data.dept.deptName
           this.form = response.data.tWarehouseAgreement
@@ -1411,6 +1411,9 @@ export default {
               .replace(/\"/g, "")
               .split(",");
           }
+          if (response.data.tWarehouseAgreement.fWarehouseid) {
+            this.form.fWarehouseid = JSON.parse(this.form.fWarehouseid)
+          }
           // this.fMblnoOptions = response.data.corps
           this.agreementitemsList = response.data.tWarehouseAgreementitems
           for (let item in this.agreementitemsList) {