From 76486524892abdfd3039eedc28d83cbbfb56d042 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 18 六月 2025 16:17:05 +0800
Subject: [PATCH] 取消报工/车间订单下发/车间订单取消下发/功能点逻辑编写

---
 pages/product/report/index.vue |   32 +++++++++++++++++++++-----------
 1 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/pages/product/report/index.vue b/pages/product/report/index.vue
index d66fafe..fdcf7b3 100644
--- a/pages/product/report/index.vue
+++ b/pages/product/report/index.vue
@@ -74,13 +74,13 @@
           <u-radio name="鎶曟枡">鎶曟枡</u-radio>
         </u-radio-group>
       </u-form-item>
-      <u-form-item label="宸ュ簭" prop="value1">
+      <u-form-item label="宸ュ簭">
         <u-checkbox-group>
           <u-checkbox
             :name="item.name"
             v-for="(item, index) in checkboxList"
             :key="index"
-            v-model="item.value1"
+            v-model="item.value"
             @change="changeCheckbox"
             :disabled="subdisabled || item.disabled"
           >
@@ -243,6 +243,7 @@
       showSave: false,
       operationTaskId: "",
       subdisabled: false,
+      codeInfoId: "",
     };
   },
   // 鐐瑰嚮鎻愪氦鎸夐挳鐨勪簨浠跺鐞嗗嚱鏁�
@@ -278,18 +279,11 @@
       //鎵爜鎴愬姛鍚庣殑鍥炶皟锛屼綘鍙互鍐欒嚜宸辩殑閫昏緫浠g爜鍦ㄨ繖閲�
       if (data.code) {
         let codeInfo = JSON.parse(data.code);
+        that.codeInfoId = codeInfo.id;
         if (codeInfo.moOn) {
           // 鎵弿鎶ュ伐鍗曚簩缁寸爜
           that.saveForm(codeInfo);
-          that.$u.api.workReporting
-            .getProductMainV1({
-              current: 1,
-              size: -1,
-              id: codeInfo.id,
-            })
-            .then((res) => {
-              that.InventoryReceiptList = res.data.productOutputList;
-            });
+          that.getHandelList();
         }
       }
     });
@@ -297,9 +291,22 @@
   watch: {
     "form.taskNo": function (newVal, oldVal) {
       this.subdisabled = false;
+      this.checkboxList[1].value = false;
+      this.checkboxList[0].value = false;
     },
   },
   methods: {
+    getHandelList() {
+      this.$u.api.workReporting
+        .getProductMainV1({
+          current: 1,
+          size: -1,
+          id: this.codeInfoId,
+        })
+        .then((res) => {
+          this.InventoryReceiptList = res.data.productOutputList;
+        });
+    },
     // 澶氶�夊鐞�
     changeCheckbox(val) {
       if (val.name === "宸ュ簭鐨勮嚜鍔ㄦ姤鍛�") {
@@ -311,6 +318,7 @@
     },
     handleUpdate() {
       this.subdisabled = true;
+      this.getHandelList();
     },
     // 鎵撳紑寮规--鍚庨潰杩橀渶瑕佺洃鍚壂鐮佹灙鎵爜缁撴灉锛岃祴鍊肩粰鎶ュ伐鍗曞彿瀛楁锛岀劧鍚庢墦寮�寮规閫夋嫨璁㈠崟鍙风瓑鎿嶄綔
     open() {
@@ -355,6 +363,8 @@
         autoReport: false,
         simplifyMaterials: false,
       };
+      this.checkboxList[1].value = false;
+      this.checkboxList[0].value = false;
       if (this.form.materialcost == "鍊掑啿") {
         this.checkboxList[1].disabled = true;
       }

--
Gitblit v1.9.3