瀏覽代碼

计费单位更改变化

lichao 3 年之前
父節點
當前提交
3b787dd8fb
共有 1 個文件被更改,包括 14 次插入0 次删除
  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 改变