From bb585e5d1b092287bb64f4d7617e99208a39a169 Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Mon, 27 Apr 2020 15:11:00 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../InitialProduction/index.vue | 31 +++++++++++++++++--
1 file changed, 28 insertions(+), 3 deletions(-)
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