From 8003ace3fff94312edeca29c0e1607b903b807e6 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 11 四月 2024 18:54:31 +0800
Subject: [PATCH] 获取产量登记详情的接口联调+2个数组重新排版成表格所需数据

---
 src/views/productManage/productRegisterForm/components/addProductDialog.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/views/productManage/productRegisterForm/components/addProductDialog.vue b/src/views/productManage/productRegisterForm/components/addProductDialog.vue
index 12f66da..79b65f1 100644
--- a/src/views/productManage/productRegisterForm/components/addProductDialog.vue
+++ b/src/views/productManage/productRegisterForm/components/addProductDialog.vue
@@ -283,12 +283,16 @@
           workshopId: this.proForm.workshopId,
         }).then((res) => {
           if (res.code == 200) {
-            console.log(res,'res')
+            if(res.data){
+              if(Object.keys(res.data).length>0){
+                this.$emit('changeForm',this.proForm,val,res.data)
+              }
+            }
           }
         });
+      }else{
+        this.$emit('changeForm',this.proForm,val,{})
       }
-      
-      this.$emit('changeForm',this.proForm,val)
     },
     changeTableInput(){
       if(this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){

--
Gitblit v1.8.0