From 35f5473361471a4720b75d94a64914de869cbe5c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 27 Sep 2024 09:29:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E7=BB=84=E5=90=88=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E7=89=A9=E6=96=99=E4=BB=A3=E7=A0=81=E6=98=AF=E5=A4=9A?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itemSyntheticRelation/index.vue | 7 ++++++- .../itemSyntheticRelation/itemSyntheticRelation.data.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/index.vue b/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/index.vue index a8b25d9e0..fd91b2411 100644 --- a/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/index.vue @@ -80,7 +80,12 @@ const tableColumns = ref(ItemSyntheticRelation.allSchemas.tableColumns) const searchTableSuccess = (formField, searchField, val, formRef) => { nextTick(() => { const setV = {} - setV[formField] = val[0][searchField] + if (formField == 'itemCode') { + setV[formField] = val.map(item=>item.code).join(',') + setV['itemName'] = val.map(item=>item.name).join(',') + } else { + setV[formField] = val[0][searchField] + } formRef.setValues(setV) }) } diff --git a/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/itemSyntheticRelation.data.ts b/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/itemSyntheticRelation.data.ts index 4b6996416..1710f055f 100644 --- a/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/itemSyntheticRelation.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itemSyntheticRelation/itemSyntheticRelation.data.ts @@ -41,6 +41,7 @@ export const ItemSyntheticRelation = useCrudSchemas(reactive([ searchTitle: '物料基础信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + verificationPage: ItembasicApi.getItemListByCodes, // 查询弹窗所需分页方法 searchCondition: [{ key: 'available', value: 'TRUE',