From 7762e3bb4aa09e0fbccdd5cb612c1f132ba2a0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=B8=85?= <3115919733@qq.com> Date: Wed, 21 May 2025 09:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A7=E4=BD=8D=E4=BF=A1=E6=81=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wareHouse/index.ts | 13 ++++ .../flatWarehouse/wareHouseLocation/index.vue | 72 ++++++++++++++++--- 2 files changed, 74 insertions(+), 11 deletions(-) diff --git a/src/api/wareHouse/index.ts b/src/api/wareHouse/index.ts index 0daa6eb..916180e 100644 --- a/src/api/wareHouse/index.ts +++ b/src/api/wareHouse/index.ts @@ -61,4 +61,17 @@ export function delStorage(data: any) { method: 'post', data: data, }); +} + +/** + * + * @param data 获取仓库信息 + * @returns + */ +export function getLocation(data: any) { + return request({ + url: '/api/api/wareHouse/getLocation', + method: 'post', + data: data, + }); } \ No newline at end of file diff --git a/src/views/basics/flatWarehouse/wareHouseLocation/index.vue b/src/views/basics/flatWarehouse/wareHouseLocation/index.vue index 14c22f9..303d664 100644 --- a/src/views/basics/flatWarehouse/wareHouseLocation/index.vue +++ b/src/views/basics/flatWarehouse/wareHouseLocation/index.vue @@ -3,17 +3,30 @@ - + + + + + + + + + + + + + - - - + + + - + + + + + + + + - - + + { materialTableConfig.value.column = [ + { header: "组织编码", field: "erpFactory", hide: false }, + { header: "组织名称", field: "orgName", hide: false }, + { header: "仓库编码", field: "erpLocation", hide: false }, + { header: "仓库名称", field: "erpLocationName", hide: false }, { header: "货位编码", field: "storageName", hide: false }, - { header: "货位描述", field: "description", hide: false }, + { header: "货位名称", field: "description", hide: false }, { header: "货位属性", field: "storageUseType", hide: false } ] handleQuery(); updateTableHeight(); // 打印机 getPRINTLIST(); + hangERPFactoryQuery(); window.addEventListener('resize', handleResize); getStorageUseTypeList() }) @@ -431,4 +465,20 @@ function getStorageUseTypeList() { }) }) } + +function hangERPFactoryQuery() { + getORG({ orgNo: null}).then((res: any) => { + state.ERPFactoryList = res.resultObj + }) + +} + +function erpLocationEnter() { + getLocation({erpLocation: state.formData.erpLocation}).then((res: any) => { + if(res.success && res.resultObj){ + state.formData.erpLocationName = res.resultObj.erpLocationName + state.formData.erpFactory = res.resultObj.erpFactory + } + }) +}