From 2eeea7a6431f0b5fb25b338e2512c48deab8652e Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期二, 31 十二月 2024 10:39:18 +0800 Subject: [PATCH] add:短信新增统计字段 --- utils/form-item-config.js | 61 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/utils/form-item-config.js b/utils/form-item-config.js index c557ea8..62d834b 100644 --- a/utils/form-item-config.js +++ b/utils/form-item-config.js @@ -94,6 +94,37 @@ } } +export const getPartnerListNameWithIdConfig = () => { + return { + label: '合伙人:', + id: 'partnerId', + type: 'bus-select', + el: { + interfaceUri: 'flower/api/partner/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) => { + const listFilter= list.map((item) => ({ ...item, id: item.id + '',name:item.name+'(PID:'+item.id +')'})) + return listFilter + }, + }, + } +} + + export const getGoodsCategoryListConfig = ( checkStrictly = false, multiple = false @@ -206,3 +237,33 @@ }, } } + +export const getSupplierListWithIdConfig = () => { + 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) => { + const listFilter= list.map((item) => ({ ...item, id: item.id + '',name:item.name+'(SID:'+item.id +')'})) + return listFilter + }, + }, + } +} -- Gitblit v1.9.3