diff --git a/.env.dev b/.env.dev index 6599446..7d8648e 100644 --- a/.env.dev +++ b/.env.dev @@ -2,7 +2,7 @@ # @Author: zwq # @Date: 2023-08-17 15:10:53 # @LastEditors: zwq - # @LastEditTime: 2023-10-11 13:40:44 + # @LastEditTime: 2023-10-25 13:59:56 # @Description: ### # 开发环境配置 @@ -12,8 +12,8 @@ ENV = 'development' VUE_APP_TITLE = 南京锂膜管理系统 # 南京锂膜管理系统/开发环境 -# VUE_APP_BASE_API = 'http://192.168.1.23:48080' -VUE_APP_BASE_API = 'http://192.168.0.31:48081' +VUE_APP_BASE_API = 'http://192.168.1.23:48080' +# VUE_APP_BASE_API = 'http://192.168.0.31:48081' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/asrs/warehouseStorehouse.js b/src/api/asrs/warehouseStorehouse.js index 43ce8fe..febcc4c 100644 --- a/src/api/asrs/warehouseStorehouse.js +++ b/src/api/asrs/warehouseStorehouse.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-22 15:31:37 * @LastEditors: zwq - * @LastEditTime: 2023-10-11 10:02:27 + * @LastEditTime: 2023-10-20 15:16:19 * @Description: */ import request from '@/utils/request' @@ -24,7 +24,14 @@ export function updateWarehouseStorehouse(data) { data: data }) } - +// 手动入库 +export function inWarehouseStorehouse(data) { + return request({ + url: '/asrs/warehouse-storehouse/in', + method: 'post', + data: data + }) +} // 删除立库库位 export function deleteWarehouseStorehouse(id) { return request({ diff --git a/src/views/asrs/jobMainTask/index.vue b/src/views/asrs/jobMainTask/index.vue index 401f6da..76ac597 100644 --- a/src/views/asrs/jobMainTask/index.vue +++ b/src/views/asrs/jobMainTask/index.vue @@ -38,14 +38,24 @@ const tableProps = [ prop: 'mainTaskCode', label: '任务编码', }, + { + prop: 'inOutWarehouseName', + label: '出入移库库位', + }, + { + prop: 'relocationWarehouseName', + label: '移库终点库位', + }, { prop: 'mainTaskType', label: '任务类型', filter: codeFilter('mainTaskType'), + width:100 }, { prop: 'stacker', label: '堆垛机', + width:110 }, { prop: 'agv', @@ -55,16 +65,19 @@ const tableProps = [ prop: 'mainTaskState', label: '状态', filter: codeFilter('mainTaskState'), + width:110 }, { prop: 'taskSource', label: '任务来源', filter: codeFilter('taskSource'), + width:100 }, { prop: 'createTime', label: '创建时间', filter: parseTime, + width:150 }, ]; const mainTaskType = [ diff --git a/src/views/asrs/jobMainTaskHistory/index.vue b/src/views/asrs/jobMainTaskHistory/index.vue index 5ec0d6c..4df5cdf 100644 --- a/src/views/asrs/jobMainTaskHistory/index.vue +++ b/src/views/asrs/jobMainTaskHistory/index.vue @@ -31,14 +31,24 @@ const tableProps = [ prop: 'mainTaskCode', label: '任务编码', }, + { + prop: 'inOutWarehouseName', + label: '出入移库库位', + }, + { + prop: 'relocationWarehouseName', + label: '移库终点库位', + }, { prop: 'mainTaskType', label: '任务类型', filter: codeFilter('mainTaskType'), + width:100 }, { prop: 'stacker', label: '堆垛机', + width:110 }, { prop: 'agv', @@ -48,21 +58,25 @@ const tableProps = [ prop: 'mainTaskState', label: '状态', filter: codeFilter('mainTaskState'), + width:110 }, { prop: 'taskSource', label: '任务来源', filter: codeFilter('taskSource'), + width:100 }, { prop: 'createTime', label: '创建时间', filter: parseTime, + width:150 }, { prop: 'cancellation', label: '是否取消', filter: codeFilter('cancellation'), + width:90 }, ]; const mainTaskType = [ diff --git a/src/views/asrs/mixins/basic-add.js b/src/views/asrs/mixins/basic-add.js index 27ced9a..84db47a 100644 --- a/src/views/asrs/mixins/basic-add.js +++ b/src/views/asrs/mixins/basic-add.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zwq - * @LastEditTime: 2023-10-08 10:44:25 + * @LastEditTime: 2023-10-18 16:22:53 * @Description: */ export default { @@ -30,15 +30,15 @@ export default { activated() { }, methods: { - init(id,bPage) { + init(id, bPage) { this.dataForm.id = id || ""; this.visible = true; if (this.urlOptions.getOption) { this.getArr() } - if(bPage){ + if (bPage) { this.dataForm.warehouseId = this.bId; - }else{ + } else { this.dataForm.warehouseId = this.aId; } this.$nextTick(() => { @@ -90,24 +90,28 @@ export default { // 修改的提交 if (this.dataForm.id) { this.urlOptions.updateURL(this.dataForm).then(response => { - if(response.data){ + if (response.data === -1) { + this.$modal.msgWarning('排、列、层不能重复'); + } else if (response.data === 0) { + this.$modal.msgWarning('名称或编码不能重复'); + } else { this.$modal.msgSuccess("修改成功"); this.visible = false; this.$emit("refreshDataList"); - }else{ - this.$modal.msgWarning('名称或编码不能重复');; } }); return; } // 添加的提交 this.urlOptions.createURL(this.dataForm).then(response => { - if(response.data){ + if (response.data === -1) { + this.$modal.msgWarning('排、列、层不能重复'); + } else if (response.data === 0) { + this.$modal.msgWarning('名称或编码不能重复'); + } else { this.$modal.msgSuccess("新增成功"); this.visible = false; this.$emit("refreshDataList"); - }else{ - this.$modal.msgWarning('名称或编码不能重复');; } }); }); diff --git a/src/views/asrs/product-mini.vue b/src/views/asrs/product-mini.vue index 3551fc4..cdef0ea 100644 --- a/src/views/asrs/product-mini.vue +++ b/src/views/asrs/product-mini.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-24 14:47:58 * @LastEditors: zwq - * @LastEditTime: 2023-10-09 16:20:11 + * @LastEditTime: 2023-10-25 14:08:18 * @Description: --> diff --git a/src/views/asrs/warehouseLocationMonitoring/index.vue b/src/views/asrs/warehouseLocationMonitoring/index.vue index 7ba33e3..39cd2fd 100644 --- a/src/views/asrs/warehouseLocationMonitoring/index.vue +++ b/src/views/asrs/warehouseLocationMonitoring/index.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-21 14:26:23 * @LastEditors: zwq - * @LastEditTime: 2023-10-12 15:12:25 + * @LastEditTime: 2023-10-20 16:21:39 * @Description: -->