Browse Source

修改毛重检斤编辑

mxx 3 years ago
parent
commit
c602beec13
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/views/houseSelfCollect/weighingManagement.vue

+ 6 - 5
src/views/houseSelfCollect/weighingManagement.vue

@@ -166,7 +166,7 @@ export default {
         qualityInspectionManagement:{},
       },
       purchasePriceList:[],
-      allowEdit:false,
+      allowEdit:'0',
       disabled:false
     }
   },
@@ -273,10 +273,10 @@ export default {
             this.warehouseName = _wareHouse.warehouseName
             this.common.name=_wareHouse.warehouseName
             this.warehouseId=_wareHouse.id
-             this.warehouseNo =_wareHouse.commonWarehouseNo
-             this.monitorUrl1=_wareHouse.monitorUrl1
-              this.allowEdit = _wareHouse.allowEdit
-             this.monitorUrl2=_wareHouse.monitorUrl2
+            this.warehouseNo =_wareHouse.commonWarehouseNo
+            this.monitorUrl1=_wareHouse.monitorUrl1
+            this.allowEdit = _wareHouse.allowEdit
+            this.monitorUrl2=_wareHouse.monitorUrl2
           } else {
             if (this.cangid&&this.cangid == response[i].id) {
               this.warehouseName = response[i].warehouseName
@@ -290,6 +290,7 @@ export default {
          
            if(this.warehouseList.length > 0 && !this.cangid){
             this.warehouseName = this.warehouseList[0].value
+            this.allowEdit =this.warehouseList[0].allowEdit
             this.cangid =  this.warehouseList[0].warehouseId
             this.warehouseId =  this.warehouseList[0].warehouseId
             this.WAREHOUSE[1].payname = this.warehouseList[0].value