From c0596c121a30249efdffa3d5795d1956310541ae Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 7 Jun 2024 16:44:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/alloc-maintenance.vue | 2 +- pages/management/in-storage.vue | 4 ---- utils/getData2.js | 24 ++++++++++++++++++++---- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/pages/management/alloc-maintenance.vue b/pages/management/alloc-maintenance.vue index b58900c..cdc197e 100644 --- a/pages/management/alloc-maintenance.vue +++ b/pages/management/alloc-maintenance.vue @@ -232,7 +232,7 @@ import ScanInput from '@/components/ScanInput.vue' import Pagination from '@/components/Pagination.vue' import GridDetail from '@/components/GridDetail.vue' - import {getWarehouseInfo, getOrganizationInfo, getUserInfo, allocationPage, allocationBillPage, allocationBillUpdate, allocationBillConfirm, allocationBillInventoryInfo} from '@/utils/getData2.js' + import {getWarehouseInfo, getOrganizationInfo, allocationPage, allocationBillPage, allocationBillUpdate, allocationBillConfirm, allocationBillInventoryInfo} from '@/utils/getData2.js' export default { components: { NavBar, diff --git a/pages/management/in-storage.vue b/pages/management/in-storage.vue index d06942d..06bd5c8 100644 --- a/pages/management/in-storage.vue +++ b/pages/management/in-storage.vue @@ -268,10 +268,6 @@ let res = await getUserInfo() if (res.code === 1) { this.range2 = [...res.result] - this.range2.map(e => { - this.$set(e, 'text', e.cgymc) - this.$set(e, 'value', e.cgybm) - }) } }, // 查询一级表格 diff --git a/utils/getData2.js b/utils/getData2.js index e4a36b2..0100c1a 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -60,10 +60,26 @@ export const easOutInBillDetailUpdate = (arr) => request({ data: arr }) // 6.获取仓管员信息 ------ 下拉框带搜索功能 -export const getUserInfo = () => request({ - url:'api/easOutInBill/getUserInfo', - data: {} -}) +export const getUserInfo = () => { + let res = { + result: [ + {text: '钱舟峰', value: 'A110813006'}, + {text: '李建辉', value: 'A240221002'}, + {text: '胡敬红', value: 'A110307006'}, + {text: '潘慧敏', value: 'A230805001'}, + {text: '王华', value: 'A211218001'}, + {text: '唐梦叶', value: 'A200601003'}, + {text: '杨娟', value: 'A240409002'}, + {text: '殷利红', value: 'A140306003'}, + {text: '潘慧嘉', value: 'A230527001'}, + {text: '伍长月', value: 'A140429007'}, + {text: '魏旭', value: 'A210308006'} + ], + code: 1, + desc: '查询成功' + } + return res +} // 7.获取组织机构信息 ------ 下拉框带搜索功能 export const getOrganizationInfo = () => request({ url:'api/easOutInBill/getOrganizationInfo',