From ff8adae814b4adae203245c86697bc6157cf120d Mon Sep 17 00:00:00 2001 From: zwq Date: Mon, 10 Apr 2023 11:00:18 +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/modules/work/OperationMonitor.vue | 200 ++++++++++++------ src/views/modules/work/mtalarmlog.vue | 4 +- src/views/modules/work/mttaskinfo.vue | 7 +- src/views/modules/work/mttaskinfodet.vue | 11 +- src/views/modules/work/mttaskinfodetlog.vue | 9 +- src/views/modules/work/mttaskinfolog.vue | 14 +- .../work/mtwarehouspositionrelatlog.vue | 10 +- static/config/index-prod.js | 4 +- 8 files changed, 173 insertions(+), 86 deletions(-) diff --git a/src/views/modules/work/OperationMonitor.vue b/src/views/modules/work/OperationMonitor.vue index f98549e..8266815 100644 --- a/src/views/modules/work/OperationMonitor.vue +++ b/src/views/modules/work/OperationMonitor.vue @@ -2,76 +2,95 @@ * @Author: zwq * @Date: 2022-05-31 15:49:03 * @LastEditors: zwq - * @LastEditTime: 2023-03-10 11:33:12 + * @LastEditTime: 2023-04-03 15:13:47 * @Description: --> @@ -83,7 +102,13 @@ export default { shelfArr: [], car: '', zhigui: '', - shelfInfo: {} + shelfInfo: {}, + dataForm: { + warehouseName: 'A', + taskType: 0, + startPosition: '', + endPosition: '' + } } }, created () {}, @@ -131,6 +156,36 @@ export default { this.$message.error('该位置无货') } }, + addOutTask (id, anotherName, isOccupy) { + if (isOccupy) { + this.$confirm(`确定对[${anotherName}]进行出库操作?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.dataForm.startPosition = id + this.dataForm.endPosition = + this.dataForm.warehouseName === 'A' ? 290 : 292 + this.$http({ + url: this.$http.adornUrl('/work/mttaskinfo/saveout'), + method: 'post', + data: this.$http.adornData(this.dataForm) + }).then(({ data }) => { + if (data && data.code === 0) { + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500 + }) + } else { + this.$message.error(data.msg) + } + }) + }) + } else { + this.$message.error('该位置无货') + } + }, handleClick (tab) { if (tab.index === '0') { this.getList('A') @@ -167,7 +222,7 @@ export default { diff --git a/src/views/modules/work/mtalarmlog.vue b/src/views/modules/work/mtalarmlog.vue index 4b320b6..4a626a0 100644 --- a/src/views/modules/work/mtalarmlog.vue +++ b/src/views/modules/work/mtalarmlog.vue @@ -29,12 +29,12 @@ align="center" label="添加时间"> - - + --> + {{ + scope.row.status === 0?'未执行' + :scope.row.status === 1?'执行中' + :scope.row.status === 2?'执行完成' + :scope.row.status === 3?'送达滚筒':'执行失败' + }} + + + - - + --> + '入库':scope.row.status === 5? + '出库': '不可用'}} diff --git a/static/config/index-prod.js b/static/config/index-prod.js index 88feaba..6e4f40d 100644 --- a/static/config/index-prod.js +++ b/static/config/index-prod.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-11-19 10:10:52 * @LastEditors: zwq - * @LastEditTime: 2022-05-23 10:10:52 + * @LastEditTime: 2023-04-03 15:22:27 * @Description: file content * @FilePath: \mt-qj-wms-ui\static\config\index-prod.js */ @@ -13,7 +13,7 @@ window.SITE_CONFIG = {} // api接口请求地址 - window.SITE_CONFIG['baseUrl'] = 'http://192.168.1.16:8089/wms-qy/' + window.SITE_CONFIG['baseUrl'] = '/api' // cdn地址 = 域名 + 版本号 window.SITE_CONFIG['domain'] = './' // 域名