From cf9a8ed8dcd2c509d63a0bd3f683f65c2df96888 Mon Sep 17 00:00:00 2001
From: mayf <m13160102112@163.com>
Date: 星期五, 18 十月 2024 10:42:53 +0800
Subject: [PATCH] 财务报表调整
---
utils/form-item-config.js | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/utils/form-item-config.js b/utils/form-item-config.js
index aca653c..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
@@ -177,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