Przeglądaj źródła

修改仓库入库库区问题

caojunjie 3 lat temu
rodzic
commit
e2d0f52e0b
1 zmienionych plików z 15 dodań i 13 usunięć
  1. 15 13
      src/views/warehouse/inStock/index.vue

+ 15 - 13
src/views/warehouse/inStock/index.vue

@@ -932,21 +932,23 @@ export default {
       })
     },
     //更换仓库
-    changeWarehouse() {
-      if (this.detailData.length != 0) {
-        for (let li in this.detailData) {
-          this.detailData[li].fWarehouseid = ''
+    changeWarehouse(item) {
+      if (item.label == "fWarehouseid"){
+        if (this.detailData.length != 0) {
+          for (let li in this.detailData) {
+            this.detailData[li].fWarehouseid = ''
+          }
         }
+        getArea(this.detailForm.fWarehouseid).then(res => {
+          this.listData.fWarehouseid = []
+          for (let item in res.data) {
+            this.listData.fWarehouseid.push({
+              label: res.data[item].fWarehouseInformation,
+              value: res.data[item].id
+            })
+          }
+        })
       }
-      getArea(this.detailForm.fWarehouseid).then(res => {
-        this.listData.fWarehouseid = []
-        for (let item in res.data) {
-          this.listData.fWarehouseid.push({
-            label: res.data[item].fWarehouseInformation,
-            value: res.data[item].id
-          })
-        }
-      })
     },
     //自动合计金额
     totalAmount(scope,item) {