diff --git a/src/views/modules/production/reworkRecord.vue b/src/views/modules/production/reworkRecord.vue index 0890b53..2f049b7 100644 --- a/src/views/modules/production/reworkRecord.vue +++ b/src/views/modules/production/reworkRecord.vue @@ -117,6 +117,11 @@ export default { this.saveRework.reworkEndDate = new Date() this.reportWorkDialog = true this.saveType = type + if (type === 0){ + if (this.saveRework.productionTime || this.saveRework.productionTime === 0){ + return + } + } this.saveRework.productionTime = new Decimal(dayjs(new Date()).diff(this.saveRework.createTime,'hour',true)).toFixed(2, Decimal.ROUND_HALF_UP) this.saveRework.productionTime = new Decimal(this.saveRework.productionTime).toSignificantDigits() }, @@ -228,7 +233,7 @@ export default {