From fcfa50cf224f515baffb647d75f53797575be8df Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 18 六月 2025 11:00:01 +0800
Subject: [PATCH] pda报工单元测试

---
 pages/product/report/components/saveForm.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/pages/product/report/components/saveForm.vue b/pages/product/report/components/saveForm.vue
index 5780ac4..07dfda6 100644
--- a/pages/product/report/components/saveForm.vue
+++ b/pages/product/report/components/saveForm.vue
@@ -112,7 +112,7 @@
 <script>
 export default {
   props: {
-    operationTaskId: {
+    operationTaskList: {
       type: Object,
       required: true,
       default: () => ({}),
@@ -151,10 +151,14 @@
         this.$refs.uModal.clearLoading(); // 娓呴櫎鍔犺浇鐘舵��
         return;
       }
+	  this.operationTaskList.operationTaskId = this.operationTaskList.id
+	  this.form.operationTaskId = this.operationTaskList.id
+	  this.operationTaskList.productOutputList = []; // 鍒涘缓涓�涓┖鏁扮粍
+	  this.operationTaskList.productOutputList.push(this.form); // 鍚戞暟缁勪腑娣诲姞鍏冪礌
+	  console.log('this.operationTaskList',this.operationTaskList)
       this.$u.api.workReporting
-        .submitPDA({ ...this.form, operationTaskId: this.operationTaskId.id })
+        .submitPDA(this.operationTaskList)
         .then((res) => {
-          console.log("res", res);
           this.$emit('update')
           this.$refs.uModal.cancel();
         });
@@ -164,9 +168,8 @@
       this.form = {};
     },
     open(val) {
-      console.log('11daidecanshuskk',val)
       this.show = true;
-       this.form = val;
+       this.form = val.data;
     },
   },
 };

--
Gitblit v1.9.3