From 842c03043f4ffcff62cc8c4076474fe8a333c181 Mon Sep 17 00:00:00 2001 From: liangzhou <594755172@qq.com> Date: Sat, 13 Jul 2024 16:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/excel.js | 17 +- src/api/vehicle.js | 2 +- src/http/request.js | 2 +- src/layout/scanConfirm.vue | 300 ------------------------------- src/layout/stock.vue | 14 +- src/layout/taskMonitor.vue | 4 +- src/layout/vehicle.vue | 288 +++++++++++++++++++++++++++++ src/layout/vehicles.vue | 359 ------------------------------------- src/router/index.js | 2 +- src/utils/formatter.js | 3 +- 10 files changed, 318 insertions(+), 673 deletions(-) delete mode 100644 src/layout/scanConfirm.vue create mode 100644 src/layout/vehicle.vue delete mode 100644 src/layout/vehicles.vue diff --git a/src/api/excel.js b/src/api/excel.js index b55edba..4832571 100644 --- a/src/api/excel.js +++ b/src/api/excel.js @@ -160,6 +160,20 @@ const downloadMaterialExcel = () => { }) } +const downloadVehicleExcel = (vehicleQuery) => { + return request({ + url: '/excel/downloadVehicleExcel', + method: 'get', + responseType: 'blob', + params: { + vehicleId: vehicleQuery.vehicleId, + locationId: vehicleQuery.locationId, + isEmpty: vehicleQuery.isEmpty, + vehicleStatus: vehicleQuery.vehicleStatus + } + }) +} + export { downlocadExcel, uploadExcel, @@ -179,5 +193,6 @@ export { downloadPackageExcel, uploadBoxConfig, uploadExcelKatePackage, - downloadMaterialExcel + downloadMaterialExcel, + downloadVehicleExcel } \ No newline at end of file diff --git a/src/api/vehicle.js b/src/api/vehicle.js index 2ffe9f6..4d05b0d 100644 --- a/src/api/vehicle.js +++ b/src/api/vehicle.js @@ -2,7 +2,7 @@ import request from "@/http/request"; const getAllVehicles = (params) => { return request({ - url: '/location/getVehicles', + url: '/location/getVehiclesByPage', method: 'post', data: params }) diff --git a/src/http/request.js b/src/http/request.js index 3d42d7b..b969fc4 100644 --- a/src/http/request.js +++ b/src/http/request.js @@ -1,7 +1,7 @@ import axios from 'axios' const request = axios.create({ - baseURL: 'http://localhost:12315/wms', + baseURL: 'http://192.168.3.254:12315/wms', timeout: 5000 }) diff --git a/src/layout/scanConfirm.vue b/src/layout/scanConfirm.vue deleted file mode 100644 index c774669..0000000 --- a/src/layout/scanConfirm.vue +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - - 入库站台1 - - - - - - - - - - - - - - 处理 - - - - - - - - - - 入库站台2 - - - - - - - - - - - - - - 处理 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - - 确定 - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/layout/stock.vue b/src/layout/stock.vue index 0832e60..7954a7f 100644 --- a/src/layout/stock.vue +++ b/src/layout/stock.vue @@ -17,22 +17,22 @@ - - + + - - + + - + - + - - + + diff --git a/src/layout/vehicle.vue b/src/layout/vehicle.vue new file mode 100644 index 0000000..4a3fa33 --- /dev/null +++ b/src/layout/vehicle.vue @@ -0,0 +1,288 @@ + + + + + + + 搜索 + 重置 + 导出信息 + + + + + + + + + + + + + + + 编辑 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + + 确定 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/layout/vehicles.vue b/src/layout/vehicles.vue deleted file mode 100644 index 193f73a..0000000 --- a/src/layout/vehicles.vue +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - 搜索 - 重置 - 导出信息 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 编辑 - 删除 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - - 确定 - - - - - - - - - - - - \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index bced4de..9c7d36f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -21,10 +21,10 @@ const routes = [ { path: '/standSettings', component: () => import('@/layout/standSettings.vue') },// 站台(库口)设置 { path: '/config', component: () => import('@/layout/config.vue') },// 系统配置 { path: '/taskMonitor', component: () => import('@/layout/taskMonitor.vue') },// 任务监控 + { path: '/vehicles', component: () => import('@/layout/vehicle.vue') },// 任务监控 { path: '/inventory', component: () => import('@/layout/inventory.vue') },// 盘点 { path: '/inventoryRecord', component: () => import('@/layout/inventoryRecord.vue') },// 盘点 { path: '/wmsLog', component: () => import('@/layout/wmsLog.vue') },// 日志 - { path: '/scanConfirm', component: () => import('@/layout/scanConfirm.vue') },// 扫码确认 ] }, { diff --git a/src/utils/formatter.js b/src/utils/formatter.js index d962995..31e4d2b 100644 --- a/src/utils/formatter.js +++ b/src/utils/formatter.js @@ -57,7 +57,8 @@ function locationFormatter(locationId) { if (locationId === null || locationId == undefined) { return '' } - return locationId.substr(0, 2) + '排' + locationId.substr(2, 2) + '列' + locationId.substr(4, 2) + '层' + locationId.substr(7, 3) + '深度' + const locationArray = locationId.split('-') + return locationArray[0] + '排' + locationArray[1] + '列' + locationArray[2] + '层' + locationArray[3] + '深度' } function kateTaskStatusFormatter(value) {