From faa61347e57ce4ec516aa766494c3b69c9bf1280 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 11 四月 2024 18:12:46 +0800 Subject: [PATCH] 台产量,个人产量,台时产量等组合一组数据 --- src/views/productManage/productRegisterForm/components/addProductDialog.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/views/productManage/productRegisterForm/components/addProductDialog.vue b/src/views/productManage/productRegisterForm/components/addProductDialog.vue index c74465d..12f66da 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,24 @@ } }, changeForm(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) { + console.log(res,'res') + } + }); + } + 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