From 33ddb263eb288c047791febf897a1f4f2fd6077f Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 21 Sep 2023 16:43:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A8=E6=A0=BC=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicdata/basicdataGoodsShelf.js | 105 +++++++++--------- .../goodsShelf/basicdataGoodsShelf.vue | 18 +-- vite.config.js | 3 +- 3 files changed, 63 insertions(+), 63 deletions(-) diff --git a/src/api/basicdata/basicdataGoodsShelf.js b/src/api/basicdata/basicdataGoodsShelf.js index eea8a3c6..d4f8ee81 100644 --- a/src/api/basicdata/basicdataGoodsShelf.js +++ b/src/api/basicdata/basicdataGoodsShelf.js @@ -8,84 +8,84 @@ export const getList = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; -export const getDetail = (id) => { +export const getDetail = id => { return request({ url: '/api/logpm-basicdata/goodsShelf/detail', method: 'get', params: { - id - } - }) -} + id, + }, + }); +}; -export const remove = (ids) => { +export const remove = ids => { return request({ url: '/api/logpm-basicdata/goodsShelf/remove', method: 'post', params: { ids, - } - }) -} -export const disable = (ids) => { + }, + }); +}; +export const disable = ids => { return request({ url: '/api/logpm-basicdata/goodsShelf/disable', method: 'post', params: { ids, - } - }) -} -export const enable = (ids) => { + }, + }); +}; +export const enable = ids => { return request({ url: '/api/logpm-basicdata/goodsShelf/enable', method: 'post', params: { ids, - } - }) -} + }, + }); +}; -export const add = (row) => { +export const add = row => { return request({ url: '/api/logpm-basicdata/goodsShelf/save', method: 'post', - data: row - }) -} -export const addAllocation = (row) => { + data: row, + }); +}; +export const addAllocation = row => { return request({ url: '/api/logpm-basicdata/goodsShelf/allocation', method: 'post', - data: row - }) -} -export const addlayer = (row) => { + data: row, + }); +}; +export const addlayer = row => { return request({ url: '/api/logpm-basicdata/goodsShelf/addlayer', method: 'post', - data: row - }) -} -export const update = (row) => { + data: row, + }); +}; +export const update = row => { return request({ url: '/api/logpm-basicdata/goodsShelf/update', method: 'post', - data: row - }) -} -export const getShowTemplate = (row) => { + data: row, + }); +}; +export const getShowTemplate = row => { return request({ url: '/api/logpm-basicdata/goodsShelf/getShowTemplate', method: 'post', responseType: 'blob', - data:row - }) -} + data: row, + }); +}; // export const getPrintTemplate = (ids) => { // return request({ @@ -97,24 +97,23 @@ export const getShowTemplate = (row) => { // }) // } -export const getQRCodeImg = (qrCode) => { +export const getQRCodeImg = qrCode => { return request({ url: '/api/logpm-basicdata/goodsShelf/getQRCodeImg', method: 'get', responseType: 'blob', - params:{ - qrCode - } - }) -} + params: { + qrCode, + }, + }); +}; -export const getUploadBefore = (ids) => { +export const getUploadBefore = ids => { return request({ url: '/api/logpm-basicdata/goodsShelf/preImport', method: 'get', - params:{ - ids - } - }) -} - + params: { + ids, + }, + }); +}; diff --git a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue index 486859e1..2b88e05e 100644 --- a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue +++ b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue @@ -371,7 +371,7 @@ export default { label: '仓库名称', type: 2, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -382,7 +382,7 @@ export default { label: '货区名称', type: 2, values: '', - width: 'fit-content', + width: '150', checkarr: [], fixed: false, sortable: true, @@ -393,7 +393,7 @@ export default { label: '货架名称', type: 2, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -404,7 +404,7 @@ export default { label: '仓库编号', type: 2, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -414,7 +414,7 @@ export default { label: '列数', type: 2, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -424,7 +424,7 @@ export default { label: '层数', type: 3, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -434,7 +434,7 @@ export default { label: '货架状态', type: 3, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -444,7 +444,7 @@ export default { label: '启用状态', type: 3, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -454,7 +454,7 @@ export default { label: '备注', type: 3, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, diff --git a/vite.config.js b/vite.config.js index b37ffcf2..fa1ec37b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,7 +12,8 @@ export default ({ mode, command }) => { port: 2888, proxy: { '/api': { - target: 'http://192.168.10.101:8888', + // target: 'http://192.168.10.101:8888', + target: 'http://192.168.10.123:8889', // target: 'http://192.168.10.48:8888', // target: 'http://192.168.10.101:8888', // target: 'http://192.168.10.75:8777',