Browse Source

2023.11.15调拨 仓库修改

caojunjie 1 year ago
parent
commit
8358eaa7a2
1 changed files with 18 additions and 17 deletions
  1. 18 17
      src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

+ 18 - 17
src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

@@ -41,6 +41,7 @@
               placeholder="请输入关键词"
               style="width: 80%"
               :disabled="detailList.length > 0"
+              @change="changeCorp"
             >
 <!--              @change="changeCorp"-->
               <el-option
@@ -1983,9 +1984,9 @@ export default {
     this.getConfigKey("warehouse.show.feesConfirm").then((response) => {
       this.isShowFeesConfirm = response.msg;
     });
-    // listWarehousesss({ fStatus: 0, delFlag: 0 }).then((response) => {
-    //   this.warehouseOptions = response.rows;
-    // });
+    listWarehousesss({ fStatus: 0, delFlag: 0 }).then((response) => {
+      this.warehouseOptions = response.rows;
+    });
     listFees({ fDc: "C" }).then((response) => {
       this.fCNameOptions = response.rows;
     });
@@ -2375,20 +2376,20 @@ export default {
       }
     },
     changeCorp(row) {
-      console.log("aaa");
-      // 根据客户id查询客户所属仓库
-      if (row != null && row != '') {
-        customerWarehouse(row).then((res) => {
-          this.warehouseOptions = res.data;
-          if (res.data == null) {
-            this.warehouseOptions = [];
-            this.form.fWarehouseid = null;
-          }
-        })
-      } else {
-            this.warehouseOptions = [];
-            this.form.fWarehouseid = null;
-      }
+      // console.log("aaa");
+      // // 根据客户id查询客户所属仓库
+      // if (row != null && row != '') {
+      //   customerWarehouse(row).then((res) => {
+      //     this.warehouseOptions = res.data;
+      //     if (res.data == null) {
+      //       this.warehouseOptions = [];
+      //       this.form.fWarehouseid = null;
+      //     }
+      //   })
+      // } else {
+      //       this.warehouseOptions = [];
+      //       this.form.fWarehouseid = null;
+      // }
 
       if (this.form.fMblno && this.form.fCorpid) {
         this.$set(this.form, "fWarehouseid", '')