瀏覽代碼

Merge branch 'purchaseDev' into 'dev'

Purchase dev

See merge request new-business/drp-web!624
李园 1 年之前
父節點
當前提交
02f4fbb451
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 7 0
      src/views/purchase/purchase-order/add/index.vue
  2. 7 0
      src/views/purchase/purchase-order/edit/index.vue

+ 7 - 0
src/views/purchase/purchase-order/add/index.vue

@@ -143,6 +143,13 @@ export default {
         this.params.warehouseName = "";
         this.params.warehouseName = "";
         this.params.goodsAllocation = "";
         this.params.goodsAllocation = "";
         this.params.goodsAllocationName = "";
         this.params.goodsAllocationName = "";
+        this.params["puOrderItemList"] = this.params["puOrderItemList"].map(
+          (item) => ({
+            ...item,
+            goodsAllocation: "",
+            goodsAllocationName: "",
+          })
+        );
 
 
         if (billList.find((item) => item === nVal)) {
         if (billList.find((item) => item === nVal)) {
           this.rules.warehouseName = [
           this.rules.warehouseName = [

+ 7 - 0
src/views/purchase/purchase-order/edit/index.vue

@@ -547,6 +547,13 @@ export default {
         this.params.goodsAllocation = "";
         this.params.goodsAllocation = "";
         this.params.goodsAllocationName = "";
         this.params.goodsAllocationName = "";
         this.rules.goodsAllocationName = null;
         this.rules.goodsAllocationName = null;
+        this.params["puOrderItemList"] = this.params["puOrderItemList"].map(
+          (item) => ({
+            ...item,
+            goodsAllocation: "",
+            goodsAllocationName: "",
+          })
+        );
       }
       }
     },
     },