From dd4a1597a35e19078aa580f596418902df0f8c5f Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期四, 11 四月 2024 19:22:48 +0800 Subject: [PATCH] Merge branch 'master' of ssh://192.168.5.5:29418/silk/silk-web --- src/views/productManage/productRegisterForm/components/addProductDialog.vue | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/views/productManage/productRegisterForm/components/addProductDialog.vue b/src/views/productManage/productRegisterForm/components/addProductDialog.vue index c74465d..79b65f1 100644 --- a/src/views/productManage/productRegisterForm/components/addProductDialog.vue +++ b/src/views/productManage/productRegisterForm/components/addProductDialog.vue @@ -118,7 +118,7 @@ <span slot="label"> <span class="formLabel">鍑�閲�</span> </span> - <el-input v-model="proForm.netWeight" @blur="changeTableInput" size="small"></el-input> + <el-input v-model="proForm.netWeight" @blur="changeTableInput" size="small"></el-input> </el-form-item> </el-col> <el-col :span="20"> @@ -157,6 +157,7 @@ <script> import { getWorkshopManageGroup, + changeYieldRegister, } from "@/api/productManage/productRegisterForm.js"; export default { props: { @@ -273,10 +274,28 @@ } }, changeForm(val){ - this.$emit('changeForm',this.proForm,val) + if(this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopId){ + changeYieldRegister({ + createTime: this.proForm.createTime, + groupNumber: this.proForm.groupNumber, + marketId: this.proForm.marketId, + spec: this.proForm.spec, + workshopId: this.proForm.workshopId, + }).then((res) => { + if (res.code == 200) { + 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,{}) + } }, changeTableInput(){ - if(this.proForm.netWeight&&this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){ + if(this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){ this.$emit('changeTableInput',this.proForm) } }, -- Gitblit v1.8.0