From aab5e957dfeaa71bb56771f101d7b26c88e2e83a Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 14 十一月 2024 09:28:23 +0800
Subject: [PATCH] add: -商户列表需要增加下单次数统计(已退款、已取消、待付款的不统计在内)
---
utils/form-item-config.js | 68 +++++++++++++++++++++++++++++++++
1 files changed, 67 insertions(+), 1 deletions(-)
diff --git a/utils/form-item-config.js b/utils/form-item-config.js
index b25980b..5bde403 100644
--- a/utils/form-item-config.js
+++ b/utils/form-item-config.js
@@ -76,6 +76,7 @@
current: 1,
size: 2000,
status: 'P',
+ isEnabled: 1,
},
props: {
label: 'name',
@@ -93,7 +94,41 @@
}
}
-export const getGoodsCategoryListConfig = (checkStrictly = false) => {
+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
+) => {
return {
label: '商品分类:',
id: 'categoryId',
@@ -105,7 +140,9 @@
value: 'id',
emitPath: false,
checkStrictly,
+ multiple,
},
+ filterable: true,
clearable: true,
style: 'width:100%',
},
@@ -171,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