From c273353af0319274c24c3f20de0fa5217b476edc Mon Sep 17 00:00:00 2001 From: zelian_wu Date: Thu, 29 Feb 2024 13:28:20 +0800 Subject: [PATCH] 24-02-29 --- src/views/modules/production/reworkRecord.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/modules/production/reworkRecord.vue b/src/views/modules/production/reworkRecord.vue index 2f049b7..5a1ac0d 100644 --- a/src/views/modules/production/reworkRecord.vue +++ b/src/views/modules/production/reworkRecord.vue @@ -207,11 +207,18 @@ export default { }) }, getRework(){ - getRework(this.saveRework).then(({data})=>{ + let params = { + seqNo: this.saveRework.seqNo + } + getRework(params).then(({data})=>{ if (data && data.code === 0){ - this.saveRework = data.row; - this.reportWorkDialog = true this.seqNoReworkRecordDialog = false; + this.reportWorkDialog = true + this.$nextTick(()=>{ + this.saveRework = data.row; + this.saveRework.reworkStartDate = new Date() + this.saveRework.reworkEndDate = new Date() + }) }else { this.$alert(data.msg, '错误信息', { confirmButtonText: '确定'