From 2182727cf18c94d94d8745e860784f5bc5f805ef Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期六, 02 八月 2025 01:16:33 +0800
Subject: [PATCH] 报工页面传递dutyRecordId,机台id

---
 pages/product/report/components/saveForm.vue |    6 ++++++
 pages/product/report/index.vue               |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/pages/product/report/components/saveForm.vue b/pages/product/report/components/saveForm.vue
index 4a0e75e..03049c7 100644
--- a/pages/product/report/components/saveForm.vue
+++ b/pages/product/report/components/saveForm.vue
@@ -149,6 +149,11 @@
       required: true,
       default: () => ({}),
     },
+    dutyId: {
+      type: String,
+      required: true,
+      default: '',
+    },
   },
   data() {
     return {
@@ -222,6 +227,7 @@
       this.form.Persons = this.operationTaskList.Persons;
       this.form.productStaffIds = this.operationTaskList.productStaffIds;
       this.form.productStaffs = this.operationTaskList.productStaffs;
+      this.form.dutyRecordId = this.dutyId;
       this.operationTaskList.productOutputList = []; // 鍒涘缓涓�涓┖鏁扮粍
       this.operationTaskList.productOutputList.push(this.form); // 鍚戞暟缁勪腑娣诲姞鍏冪礌
       console.log("this.operationTaskList", this.operationTaskList);
diff --git a/pages/product/report/index.vue b/pages/product/report/index.vue
index 2970d10..cfaaf59 100644
--- a/pages/product/report/index.vue
+++ b/pages/product/report/index.vue
@@ -153,6 +153,7 @@
     <saveForm
       ref="saveForm"
       :operationTaskList="this.form"
+      :dutyId="dutyId"
       @update="handleUpdate"
     />
     <u-modal
@@ -613,6 +614,7 @@
       }
       // 濡傛灉鏈塪utyNo锛岃幏鍙栦汉鍛樺垪琛�
       if (val.dutyId) {
+        this.dutyId = val.dutyId;
         this.getPersonList(val.dutyId);
       }
     },

--
Gitblit v1.9.3