From faab34516781cccc3fdad4c57769b5030333964b Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 26 六月 2025 16:26:05 +0800
Subject: [PATCH] 报工页面增加铜杆报工逻辑

---
 pages/product/report/index.vue |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/pages/product/report/index.vue b/pages/product/report/index.vue
index 52b71f8..794a210 100644
--- a/pages/product/report/index.vue
+++ b/pages/product/report/index.vue
@@ -337,6 +337,10 @@
           that.saveForm(codeInfo);
           that.getHandelList();
         }
+        if (codeInfo.BN) {
+          // 鎵弿鎶ュ伐鍗曚簩缁寸爜
+          that.CopperReportingWork(codeInfo);
+        }
       }
     });
   },
@@ -348,6 +352,27 @@
     },
   },
   methods: {
+    // 閾滄潌鎶ュ伐
+    CopperReportingWork(val) {
+      const copperList = {};
+      copperList.outBatchNo = val.BN
+      copperList.partNo = val.PN
+      copperList.weighingClerk = val.WC
+      copperList.executiveStandard = val.ES
+      copperList.netWeitht = val.NW
+      copperList.specificationType = val.ST
+      copperList.grossWeight = val.TR
+      copperList.operationTaskId = this.form.id
+      this.form.productOutputList = [];
+      this.form.operationTaskId = this.form.id;
+      this.form.productOutputList.push(copperList);
+      console.log('this.form',this.form)
+      this.$u.api.workReporting.submitPDA(this.form).then((res) => {
+        this.subdisabled = true;
+        this.getHandelList();
+        this.$u.toast("鎶ュ伐鎴愬姛");
+      });
+    },
     // 鐐瑰嚮纭鍚庤幏鍙栧彇娑堟姤宸ヨ褰�
     confirmModle() {
       console.log("鐐瑰嚮纭鍚庤幏鍙栧彇娑堟姤宸ヨ褰�");

--
Gitblit v1.9.3