From 0841251bdd5ec9068e46fce61bbd64e1dd9436f9 Mon Sep 17 00:00:00 2001 From: liangzhou <594755172@qq.com> Date: Mon, 12 Aug 2024 16:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0=EF=BC=9A?= =?UTF-8?q?=201.=20=E5=A2=9E=E5=8A=A0=E5=B7=A5=E7=AB=99=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E5=AF=BC=E5=85=A5=E5=8A=9F=E8=83=BD=E3=80=82=202.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DuserName=E5=AD=97=E6=AE=B5=E8=AE=BE=E5=AE=9A?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/excel.js | 12 +++- src/api/goods.js | 59 +------------------ src/excel/UploadExcelStationConfig.vue | 80 ++++++++++++++++++++++++++ src/http/request.js | 2 +- src/layout/goods.vue | 43 +++++++------- src/layout/inTaskRecord.vue | 1 + src/layout/location.vue | 1 + src/layout/locationsTable.vue | 1 + src/layout/standSettings.vue | 1 + src/layout/stock.vue | 1 + src/layout/vehicle.vue | 1 + src/layout/wmsConfig.vue | 1 + src/layout/wmsLog.vue | 3 +- 13 files changed, 127 insertions(+), 79 deletions(-) create mode 100644 src/excel/UploadExcelStationConfig.vue diff --git a/src/api/excel.js b/src/api/excel.js index be7ee30..8765f86 100644 --- a/src/api/excel.js +++ b/src/api/excel.js @@ -33,6 +33,15 @@ const uploadExcelGoods = (data) => { }) } +const uploadStationConfig = (data) => { + return request({ + url: '/excel/uploadStationConfig', + method: 'post', + data: data, + timeout: 100000 + }) +} + const uploadExcelDbs = (data) => { return request({ url: '/excel/uploadDbs', @@ -155,5 +164,6 @@ export { downloadInRecordExcel, downloadOutRecordExcel, downloadInventoryRecordExcel, - downloadLocationsExcel + downloadLocationsExcel, + uploadStationConfig } \ No newline at end of file diff --git a/src/api/goods.js b/src/api/goods.js index 5ee2e95..fd64579 100644 --- a/src/api/goods.js +++ b/src/api/goods.js @@ -1,66 +1,13 @@ import request from "@/http/request"; -const getAllGoods = () => { +const getGoodsInfoByPage = (params) => { return request({ - url: '/goods/getAllGoods', - method: 'get' - }) -} - -const getPartInfo = (params) => { - return request({ - url: '/goods/getPartInfo', - method: 'post', - data: params - }) -} - -const updateGoodsInfo = (params) => { - return request({ - url: '/goods/updateGoodsInfo', - method: 'post', - data: params - }) -} - -const queryPartInfoByPartNo = (params) => { - return request({ - url: '/goods/queryPartInfoByPartNo', - method: 'post', - data: params - }) -} - -const updatePartInfo = (params) => { - return request({ - url: '/goods/updatePartInfo', - method: 'post', - data: params - }) -} - -const queryPartNo = (params) => { - return request({ - url: '/goods/queryPartNo', - method: 'post', - data: params - }) -} - -const deleteCurrentPartInfo = (params) => { - return request({ - url: '/goods/deletePartInfo', + url: '/goods/getGoodsInfoByPage', method: 'post', data: params }) } export { - getAllGoods, - updateGoodsInfo, - queryPartInfoByPartNo, - getPartInfo, - updatePartInfo, - queryPartNo, - deleteCurrentPartInfo + getGoodsInfoByPage } \ No newline at end of file diff --git a/src/excel/UploadExcelStationConfig.vue b/src/excel/UploadExcelStationConfig.vue new file mode 100644 index 0000000..a495ea6 --- /dev/null +++ b/src/excel/UploadExcelStationConfig.vue @@ -0,0 +1,80 @@ + + + \ No newline at end of file diff --git a/src/http/request.js b/src/http/request.js index f931042..140e628 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://10.90.36.70:443/wmsServer/wms', timeout: 5000 }) diff --git a/src/layout/goods.vue b/src/layout/goods.vue index 69126ae..32bcb68 100644 --- a/src/layout/goods.vue +++ b/src/layout/goods.vue @@ -4,19 +4,22 @@ + + + - + 搜索 重置 导出信息
- @@ -176,12 +179,14 @@