From 36c7dcd6433b8ee0fff677276246fda37fc9f517 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 12 四月 2024 14:36:06 +0800 Subject: [PATCH] 自动跳单元格的方法,跨行的时候无法定位到单元格的问题处理+车间无法正常显示的问题 --- src/views/productManage/productRegisterForm/components/addProductDialog.vue | 25 +++++++++---------------- 1 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/views/productManage/productRegisterForm/components/addProductDialog.vue b/src/views/productManage/productRegisterForm/components/addProductDialog.vue index 79b65f1..54923a2 100644 --- a/src/views/productManage/productRegisterForm/components/addProductDialog.vue +++ b/src/views/productManage/productRegisterForm/components/addProductDialog.vue @@ -225,7 +225,7 @@ created() { }, watch:{ - "form": { + "editDialogVisible": { handler() { this.getInfo() }, @@ -238,17 +238,13 @@ }, methods: { getInfo(){ - this.proForm={ - createTime: this.form.createTime, - groupNumber: this.form.groupNumber, - workshopId: this.form.workshopId, - spec: this.form.spec, - marketId: this.form.marketId, - tareWeight: "", - netWeight: "", - carNumber: this.form.carNumber, - pieceNumber: this.form.pieceNumber, - pieces: this.form.pieces, + this.proForm.createTime=this.form.createTime + this.proForm.groupNumber=this.form.groupNumber + this.proForm.workshopId=this.form.workshopId + this.proForm.spec=this.form.spec + this.proForm.marketId=this.form.marketId + if(!this.proForm.carNumber){ + this.proForm.carNumber=this.form.carNumber } this.$forceUpdate(); }, @@ -266,15 +262,12 @@ } } }); - if(this.proForm.groupNumber){ - this.changeForm() - } }else{ this.workshopGroupList =[] } }, changeForm(val){ - if(this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopId){ + if(this.editDialogVisible&&this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopId){ changeYieldRegister({ createTime: this.proForm.createTime, groupNumber: this.proForm.groupNumber, -- Gitblit v1.8.0