From 835d1f1893c5c427b65e4abf812f366dadf00585 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 27 十一月 2024 13:25:05 +0800 Subject: [PATCH] add: -商户列表需要增加下单次数统计(已退款、已取消、待付款的不统计在内) --- utils/form-item-config.js | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/utils/form-item-config.js b/utils/form-item-config.js index c557ea8..5bde403 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 -- Gitblit v1.9.3