From 91d78873a1dc7372f4e563d88d67b07ddf68c3fb Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 8 Jul 2022 23:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/carInfo.vue | 46 +++++ src/views/common/ex-warehouse.vue | 8 +- src/views/common/order-auto-add.vue | 265 +++++++++++++++---------- src/views/common/order-auto-submit.vue | 23 ++- src/views/common/order-process.vue | 6 +- src/views/order/current-order.vue | 6 +- src/views/order/current-task.vue | 2 +- src/views/report/car-alarm.vue | 2 +- src/views/report/kiln-alarm.vue | 2 +- src/views/report/task-history.vue | 10 +- 10 files changed, 236 insertions(+), 134 deletions(-) diff --git a/src/views/basic/carInfo.vue b/src/views/basic/carInfo.vue index 0f6c414..c81e3d6 100644 --- a/src/views/basic/carInfo.vue +++ b/src/views/basic/carInfo.vue @@ -1,6 +1,12 @@ @@ -96,6 +96,7 @@ data () { return { visible: false, + btnLoad: false, dataForm: { autoTaskType: null, processType: null, @@ -103,7 +104,7 @@ firstPosition: null, firstProcess: null, secPosition: null, - secProcess: null, + secProcess: 1, thirdPosition: null, thirdProcess: null }, @@ -126,9 +127,6 @@ secPosition: [ { required: true, message: '加工炉不能为空', trigger: 'blur' } ], - secProcess: [ - { required: true, message: '工艺不能为空', trigger: 'blur' } - ], thirdPosition: [ { required: true, message: '加工炉不能为空', trigger: 'blur' } ], @@ -146,6 +144,7 @@ init (list) { this.dataList.splice(0, this.dataList.length) this.dataList = list + this.btnLoad = false this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() @@ -156,7 +155,7 @@ this.dataForm.firstPosition = null this.dataForm.firstProcess = null this.dataForm.secPosition = null - this.dataForm.secProcess = null + this.dataForm.secProcess = 1 this.dataForm.thirdPosition = null this.dataForm.thirdProcess = null }, @@ -246,24 +245,26 @@ targetPosition: this.dataForm.thirdPosition.split(',')[1] }) } + this.btnLoad = true this.$http({ url: this.$http.adornUrl(`/currTask/createAutoTask`), method: 'post', data: this.$http.adornData(requestData) }).then(({data}) => { - console.log(data) if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { + this.btnLoad = false this.visible = false sessionStorage.setItem('autoTaskList', '') this.$emit('refreshDataList') } }) } else { + this.btnLoad = false this.$message.warning(data.msg) } }) diff --git a/src/views/common/order-process.vue b/src/views/common/order-process.vue index 62b9c26..ca07072 100644 --- a/src/views/common/order-process.vue +++ b/src/views/common/order-process.vue @@ -34,7 +34,7 @@ - 提交任务 + 提交任务 { if (data && data.code === 0) { this.$message.success('任务提交成功') + this.btnLoad = false this.dataList = [] sessionStorage.setItem('taskList', '') this.startPosition = '选择起点' this.kilnId = '选择窑炉' this.targetPosition = null } else { + this.btnLoad = false this.$message.warning(data.msg) } }) diff --git a/src/views/order/current-order.vue b/src/views/order/current-order.vue index fc0ed3f..4e2c356 100644 --- a/src/views/order/current-order.vue +++ b/src/views/order/current-order.vue @@ -73,10 +73,6 @@ prop="weight" label="物料重量"> - - {{ scope.row.taskType === 0 - ? "缓存到窑炉加工" + ? "入库到窑炉" : scope.row.taskType === 1 - ? "出炉到缓存" + ? "入库到缓存" : scope.row.taskType === 2 - ? "缓存出库" - : "入库缓存" + ? "窑炉出库到缓存区" + : "缓存区出库" }} @@ -173,7 +173,7 @@ export default { statusList } }, - created () { + activated () { this.getDataList() }, methods: {