From b69085124affbd8ba722bb2e083af91baef22772 Mon Sep 17 00:00:00 2001 From: liangzhou <594755172@qq.com> Date: Sun, 4 Aug 2024 23:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0---?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E7=95=8C=E9=9D=A2=E5=AE=8C=E5=96=84=201.?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BA=93=E4=BD=8D=E7=9B=91=E6=8E=A7=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=202.=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/location.js | 11 +- src/layout/config.vue | 154 ---------- src/layout/inTaskRecord.vue | 9 +- src/layout/inventoryRecord.vue | 8 +- src/layout/locationsTable.vue | 297 ++++++++++++-------- src/layout/outTaskRecord.vue | 8 +- src/layout/stock.vue | 8 +- src/layout/taskMonitor.vue | 14 +- src/layout/vehicle.vue | 52 ++-- src/layout/{newConfig.vue => wmsConfig.vue} | 27 +- src/layout/wmsLog.vue | 8 +- src/router/index.js | 8 +- src/utils/formatter.js | 14 +- 13 files changed, 273 insertions(+), 345 deletions(-) delete mode 100644 src/layout/config.vue rename src/layout/{newConfig.vue => wmsConfig.vue} (94%) diff --git a/src/api/location.js b/src/api/location.js index 708522d..19b4b2e 100644 --- a/src/api/location.js +++ b/src/api/location.js @@ -2,7 +2,7 @@ import request from "@/http/request"; const getLocations = (params) => { return request({ - url: '/location/getLocations', + url: '/location/getLocationsByPage', method: 'post', data: params }) @@ -16,16 +16,7 @@ const updateLocation = (params) => { }) } -const getAvailableLocations = (params) => { - return request({ - url: '/location/getAvailableLocations', - method: 'post', - data: params - }) -} - export { getLocations, updateLocation, - getAvailableLocations } \ No newline at end of file diff --git a/src/layout/config.vue b/src/layout/config.vue deleted file mode 100644 index 92e7309..0000000 --- a/src/layout/config.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/layout/inTaskRecord.vue b/src/layout/inTaskRecord.vue index 0ded0da..9f97823 100644 --- a/src/layout/inTaskRecord.vue +++ b/src/layout/inTaskRecord.vue @@ -50,7 +50,6 @@ export default { name: 'inTaskRecord', data() { return { - pageInfo: {}, tasks: [], currentPage: 1, pageSize: 10, @@ -92,13 +91,13 @@ export default { vehicleId: this.vehicleIdQuery.trim() } getTaskRecords(tableRequest).then(res => { - console.log(res.data) const tableResponse = res.data - if (tableResponse.code != 0) { + if (tableResponse.code == 0) { + this.tasks = tableResponse.returnData.lists + this.total = tableResponse.returnData.total + } else { ElMessage.error(tableResponse.message) } - this.tasks = tableResponse.returnData.lists - this.total = tableResponse.returnData.total }).catch(err => { console.log(err) ElMessage.error('查询任务记录错误') diff --git a/src/layout/inventoryRecord.vue b/src/layout/inventoryRecord.vue index 4e6f838..0cc8f37 100644 --- a/src/layout/inventoryRecord.vue +++ b/src/layout/inventoryRecord.vue @@ -113,11 +113,13 @@ export default { } getTaskRecords(tableRequest).then(res => { const tableResponse = res.data - if (tableResponse.code != 0) { + if (tableResponse.code == 0) { + this.tasks = tableResponse.rows + this.total = tableResponse.total + } else { ElMessage.error(tableResponse.message) } - this.tasks = tableResponse.rows - this.total = tableResponse.total + }).catch(err => { console.log(err) ElMessage.error('查询盘点记录错误') diff --git a/src/layout/locationsTable.vue b/src/layout/locationsTable.vue index f245418..3fd3cf2 100644 --- a/src/layout/locationsTable.vue +++ b/src/layout/locationsTable.vue @@ -1,28 +1,37 @@