From e5b2e7b18abc6713347cbd24053a7611cbf66edf Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 27 十一月 2024 14:26:46 +0800 Subject: [PATCH] 569-供应商列表:1.序号ID修改为供应商ID,并移动到第一列 2.增加供应商ID查询框 --- utils/form-item-config.js | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/utils/form-item-config.js b/utils/form-item-config.js index 5093906..5bde403 100644 --- a/utils/form-item-config.js +++ b/utils/form-item-config.js @@ -208,3 +208,32 @@ }, } } + +export const getSupplierListConfig = () => { + return { + label: '供应商:', + id: 'supplierId', + type: 'bus-select', + el: { + interfaceUri: 'flower/api/supplier/page', + extraQuery: { + current: 1, + size: 2000, + status: 'P', + isEnabled: 1, + }, + props: { + label: 'name', + value: 'id', + dataPath: 'records', + }, + filterable: true, + clearable: true, + style: 'width:100%', + // 列表返回的是id是int但是存的是string情况 + filterOptions: (list) => { + return list.map((item) => ({ ...item, id: item.id + '' })) + }, + }, + } +} -- Gitblit v1.9.3