diff --git a/src/views/ManufacturingCenter/InitialProduction/index.vue b/src/views/ManufacturingCenter/InitialProduction/index.vue index df759298..9d84274d 100644 --- a/src/views/ManufacturingCenter/InitialProduction/index.vue +++ b/src/views/ManufacturingCenter/InitialProduction/index.vue @@ -186,13 +186,13 @@ 是否加急 - 备料投产 + 备料投产 - 投产 + 投产 - 打回 + 打回 加急件 @@ -394,6 +394,9 @@ import Cookie from 'js-cookie' export default { data() { return { + production10_Loading: false, + production_Loading: false, + back_Loading: false, // 20200427↑ openUrgentItem_disable: false, checked_hebing: true, checked_UrgentItem: false, @@ -984,18 +987,26 @@ export default { }, // 投产 production() { + this.production_Loading = true + var that = this + setTimeout(function() { + that.production_Loading = false + }, 5000) this.result = 0 this.UrgentItem = 0 if (this.time_machiningFinish === '' || this.time_machiningFinish === null) { + this.production_Loading = false this.$message.error('请输入加工结束时间') } else { this.shijiancuo1 = Date.parse(this.time_machiningStart) this.shijiancuo = Date.parse(this.time_machiningFinish) this.jieguo = this.shijiancuo1 - this.shijiancuo if (this.jieguo >= 0) { + this.production_Loading = false this.$message.error('加工结束时间应大于开始时间') } else { if (this.multipleSelection.length === 0) { + this.production_Loading = false this.$message.error('请至少选择一个零件') } else { if (this.checked_UrgentItem === true) { @@ -1104,18 +1115,26 @@ export default { }, // 备料投产 production10() { + this.production10_Loading = true + var that = this + setTimeout(function() { + that.production10_Loading = false + }, 5000) this.result = 0 this.UrgentItem = 0 if (this.time_machiningFinish === '' || this.time_machiningFinish === null) { + this.production10_Loading = false this.$message.error('请输入加工结束时间') } else { this.shijiancuo1 = Date.parse(this.time_machiningStart) this.shijiancuo = Date.parse(this.time_machiningFinish) this.jieguo = this.shijiancuo1 - this.shijiancuo if (this.jieguo >= 0) { + this.production10_Loading = false this.$message.error('加工结束时间应大于开始时间') } else { if (this.multipleSelection.length === 0) { + this.production10_Loading = false this.$message.error('请至少选择一个零件') } else { if (this.checked_UrgentItem === true) { @@ -1223,7 +1242,13 @@ export default { } }, back() { + this.back_Loading = true + var that = this + setTimeout(function() { + that.back_Loading = false + }, 5000) if (this.multipleSelection.length === 0) { + this.back_Loading = false this.$message.error('请至少选择一个零件') } else { this.a = 0