Browse Source

计费单位更改变化

lichao 3 years ago
parent
commit
3b787dd8fb
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/views/Warehousing/inStock/AddOrUpdate.vue

+ 14 - 0
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -93,6 +93,7 @@
                 clearable
                 :disabled="browseStatus || form.warehouseStatus > 3||detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
                 style="width: 80%"
+                @change="feeUnitChange"
             >
               <el-option
                   v-for="(item, index) in fFeetUnitOptions"
@@ -9388,6 +9389,19 @@ export default {
         }
       }
     },
+    feeUnitChange() {
+      if (this.form.fFeetUnit == 7) {
+        this.form.fGoodsid = null
+        listGoods({fStatus: 0, delFlag: 0, ifCntrno: 1}).then((response) => {
+          this.goodsOptions = response.rows;
+        });
+      } else {
+        listGoods({fStatus: 0, delFlag: 0}).then((response) => {
+          this.goodsOptions = response.rows;
+        });
+      }
+      console.log(this.form.fFeetUnit)
+    },
   },
   watch: {
     // 监听 addOrUpdateVisible 改变