diff --git a/src/views/modules/production/reworkRecord.vue b/src/views/modules/production/reworkRecord.vue index 1dc7331..761432f 100644 --- a/src/views/modules/production/reworkRecord.vue +++ b/src/views/modules/production/reworkRecord.vue @@ -21,6 +21,7 @@ export default { operatorName:undefined, resourceId:undefined, shiftNo:"", + type:"", }, tagNo:undefined, type:undefined, @@ -29,6 +30,7 @@ export default { saveRework:{ seqNo:undefined, site:this.$store.state.user.site, + type:undefined, }, reportWorkDialog:false, saveType:undefined, @@ -88,6 +90,7 @@ export default { this.saveRework = { seqNo: undefined, site:this.$store.state.user.site, + type:undefined, } this.saveType = undefined; this.numberOrWeight = undefined; @@ -229,6 +232,23 @@ export default { confirmButtonText: '确定' }) }) + }, + openDialog(){ + this.saveRework = { + seqNo: undefined, + site:this.$store.state.user.site, + type:"修边返工", + } + if (this.startReworkRecordDialog === true){ + this.$nextTick(()=>{ + this.$refs.seqNo.focus() + }) + } + if (this.seqNoReworkRecordDialog === true){ + this.$nextTick(()=>{ + this.$refs.seqNoR.focus() + }) + } } }, created () { @@ -240,10 +260,18 @@ export default {