From aa59eac0cd169f5fcf7e16ab4d5c34c2baa1bd84 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 11 四月 2024 18:55:21 +0800 Subject: [PATCH] 循环回数对应的片数组合成对应的字段赋值到单元格 --- 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