feat:简化 ApiSelect 的 api 写法~
parent
3b4c01cedf
commit
ad00cf839c
|
|
@ -109,7 +109,7 @@ export function useGridFormSchemaMessage(): VbenFormSchema[] {
|
|||
label: '用户编号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户编号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户编号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择引用知识库',
|
||||
api: () => getSimpleKnowledgeList(),
|
||||
api: getSimpleKnowledgeList,
|
||||
labelField: 'name',
|
||||
mode: 'multiple',
|
||||
valueField: 'id',
|
||||
|
|
@ -106,7 +106,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择引用工具',
|
||||
api: () => getToolSimpleList(),
|
||||
api: getToolSimpleList,
|
||||
mode: 'multiple',
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择API 秘钥',
|
||||
api: () => getApiKeySimpleList(),
|
||||
api: getApiKeySimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户编号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户编号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择成员',
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
mode: 'tags',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
// componentProps: {
|
||||
// placeholder: '请选择发起人',
|
||||
// allowClear: true,
|
||||
// api: () => getSimpleUserList(),
|
||||
// api: getSimpleUserList,
|
||||
// labelField: 'nickname',
|
||||
// valueField: 'id',
|
||||
// },
|
||||
|
|
@ -48,7 +48,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
componentProps: {
|
||||
placeholder: '请输入流程分类',
|
||||
allowClear: true,
|
||||
api: () => getCategorySimpleList(),
|
||||
api: getCategorySimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'code',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
componentProps: {
|
||||
placeholder: '请选择发起人',
|
||||
allowClear: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -54,7 +54,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
componentProps: {
|
||||
placeholder: '请输入流程分类',
|
||||
allowClear: true,
|
||||
api: () => getCategorySimpleList(),
|
||||
api: getCategorySimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'code',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||
field: 'processInstanceName',
|
||||
title: '流程名称',
|
||||
minWidth: 200,
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
field: 'summary',
|
||||
|
|
@ -62,12 +61,12 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||
{
|
||||
field: 'activityName',
|
||||
title: '抄送节点',
|
||||
minWidth: 180,
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
field: 'createUser.nickname',
|
||||
title: '抄送人',
|
||||
minWidth: 180,
|
||||
minWidth: 120,
|
||||
formatter: ({ cellValue }) => {
|
||||
return cellValue || '-';
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { DICT_TYPE } from '@vben/constants';
|
|||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { getCategorySimpleList } from '#/api/bpm/category';
|
||||
import { getSimpleProcessDefinitionList } from '#/api/bpm/definition';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
|
||||
/** 列表的搜索表单 */
|
||||
|
|
@ -19,7 +20,6 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
allowClear: true,
|
||||
},
|
||||
},
|
||||
// TODO @AI:是不是直接 import 下,不要动态;
|
||||
{
|
||||
fieldName: 'processDefinitionKey',
|
||||
label: '所属流程',
|
||||
|
|
@ -27,12 +27,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
componentProps: {
|
||||
placeholder: '请选择流程定义',
|
||||
allowClear: true,
|
||||
api: async () => {
|
||||
const { getSimpleProcessDefinitionList } = await import(
|
||||
'#/api/bpm/definition'
|
||||
);
|
||||
return await getSimpleProcessDefinitionList();
|
||||
},
|
||||
api: getSimpleProcessDefinitionList,
|
||||
labelField: 'name',
|
||||
valueField: 'key',
|
||||
},
|
||||
|
|
@ -44,7 +39,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
componentProps: {
|
||||
placeholder: '请输入流程分类',
|
||||
allowClear: true,
|
||||
api: () => getCategorySimpleList(),
|
||||
api: getCategorySimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'code',
|
||||
},
|
||||
|
|
@ -78,7 +73,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||
field: 'processInstance.name',
|
||||
title: '流程',
|
||||
minWidth: 200,
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
field: 'processInstance.summary',
|
||||
|
|
|
|||
|
|
@ -95,8 +95,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||
{
|
||||
label: '撤回',
|
||||
type: 'link',
|
||||
icon: ACTION_ICON.EDIT,
|
||||
color: 'warning',
|
||||
danger: true,
|
||||
icon: ACTION_ICON.DELETE,
|
||||
popConfirm: {
|
||||
title: '确定要撤回该任务吗?',
|
||||
confirm: handleWithdraw.bind(null, row),
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||
field: 'processInstance.name',
|
||||
title: '流程',
|
||||
minWidth: 200,
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
field: 'processInstance.startUser.nickname',
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { DICT_TYPE } from '@vben/constants';
|
|||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { getCategorySimpleList } from '#/api/bpm/category';
|
||||
import { getSimpleProcessDefinitionList } from '#/api/bpm/definition';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
|
||||
/** 列表的搜索表单 */
|
||||
|
|
@ -19,7 +20,6 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
allowClear: true,
|
||||
},
|
||||
},
|
||||
// TODO @AI:是不是直接 import 下,不要动态;
|
||||
{
|
||||
fieldName: 'processDefinitionKey',
|
||||
label: '所属流程',
|
||||
|
|
@ -27,12 +27,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
componentProps: {
|
||||
placeholder: '请选择流程定义',
|
||||
allowClear: true,
|
||||
api: async () => {
|
||||
const { getSimpleProcessDefinitionList } = await import(
|
||||
'#/api/bpm/definition'
|
||||
);
|
||||
return await getSimpleProcessDefinitionList();
|
||||
},
|
||||
api: getSimpleProcessDefinitionList,
|
||||
labelField: 'name',
|
||||
valueField: 'key',
|
||||
},
|
||||
|
|
@ -44,7 +39,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
componentProps: {
|
||||
placeholder: '请输入流程分类',
|
||||
allowClear: true,
|
||||
api: () => getCategorySimpleList(),
|
||||
api: getCategorySimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'code',
|
||||
},
|
||||
|
|
@ -81,7 +76,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
|||
field: 'processInstance.name',
|
||||
title: '流程',
|
||||
minWidth: 200,
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
field: 'processInstance.summary',
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
disabled: (values) => values.id,
|
||||
},
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
@ -54,7 +54,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '客户名称',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
@ -80,7 +80,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '商机状态组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getBusinessStatusTypeSimpleList(),
|
||||
api: getBusinessStatusTypeSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择商机状态组',
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
@ -121,7 +121,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '地址',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
fieldNames: { label: 'name', value: 'id', children: 'children' },
|
||||
placeholder: '请选择地址',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
disabled: (values) => values.id,
|
||||
},
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
@ -54,7 +54,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
@ -134,7 +134,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '直属上级',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleContactList(),
|
||||
api: getSimpleContactList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择直属上级',
|
||||
|
|
@ -145,7 +145,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '地址',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
fieldNames: { label: 'name', value: 'id', children: 'children' },
|
||||
placeholder: '请选择地址',
|
||||
},
|
||||
|
|
@ -188,7 +188,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '客户',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -63,7 +63,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
@ -137,7 +137,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '公司签约人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -263,7 +263,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '客户',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
disabled: (values) => values.id,
|
||||
},
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
@ -130,7 +130,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '地址',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
fieldNames: { label: 'name', value: 'id', children: 'children' },
|
||||
placeholder: '请选择地址',
|
||||
allowClear: true,
|
||||
|
|
@ -220,7 +220,7 @@ export function useImportFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export function useDistributeFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ export function useFormSchema(confType: LimitConfType): VbenFormSchema[] {
|
|||
label: '规则适用人群',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export function useTransferFormSchema(): VbenFormSchema[] {
|
|||
label: '选择新负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -116,7 +116,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '选择人员',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
disabled: (values) => values.id,
|
||||
},
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
disabled: (values) => values.id,
|
||||
},
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
@ -58,7 +58,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
@ -188,7 +188,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '客户',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -45,7 +45,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
@ -153,7 +153,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '客户',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择客户',
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '员工',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择员工',
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '员工',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
allowClear: true,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '员工',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择员工',
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '员工',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择员工',
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -66,7 +66,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择财务人员',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -119,7 +119,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择付款账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -241,7 +241,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -254,7 +254,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -267,7 +267,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择财务人员',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -280,7 +280,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择付款账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择客户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -66,7 +66,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择财务人员',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -119,7 +119,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择收款账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -241,7 +241,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择客户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -254,7 +254,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -267,7 +267,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择财务人员',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -280,7 +280,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择收款账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '单位',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getProductUnitSimpleList(),
|
||||
api: getProductUnitSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择单位',
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -174,7 +174,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择结算账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -319,7 +319,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -341,7 +341,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -354,7 +354,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -367,7 +367,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -389,7 +389,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择结算账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -530,7 +530,7 @@ export function useOrderGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -140,7 +140,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择结算账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -261,7 +261,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -283,7 +283,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -296,7 +296,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -173,7 +173,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择结算账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -319,7 +319,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -341,7 +341,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -354,7 +354,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -367,7 +367,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -516,7 +516,7 @@ export function useOrderGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择客户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -66,7 +66,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择销售人员',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -153,7 +153,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择结算账户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -275,7 +275,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -297,7 +297,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择客户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -310,7 +310,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -544,7 +544,7 @@ export function useOrderGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择客户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -80,7 +80,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择销售人员',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -187,7 +187,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
disabled: true,
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getAccountSimpleList(),
|
||||
api: getAccountSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -333,7 +333,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -355,7 +355,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择客户',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getCustomerSimpleList(),
|
||||
api: getCustomerSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -368,7 +368,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -381,7 +381,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -531,7 +531,7 @@ export function useOrderGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -202,7 +202,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -215,7 +215,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export function useFormSchema(formType: string): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -187,7 +187,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -209,7 +209,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择供应商',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSupplierSimpleList(),
|
||||
api: getSupplierSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -222,7 +222,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -235,7 +235,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -200,7 +200,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择调出仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -213,7 +213,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择调入仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -226,7 +226,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择创建人',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -32,7 +32,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择产品',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getProductSimpleList(),
|
||||
api: getProductSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
@ -28,7 +28,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
placeholder: '请选择仓库',
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
api: () => getWarehouseSimpleList(),
|
||||
api: getWarehouseSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export function useImportTableFormSchema(): VbenFormSchema[] {
|
|||
label: '数据源',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getDataSourceConfigList(),
|
||||
api: getDataSourceConfigList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
autoSelect: 'first',
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '关联场景联动规则',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleRuleSceneList(),
|
||||
api: getSimpleRuleSceneList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
@ -76,7 +76,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '接收的用户',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '告警配置',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleAlertConfigList(),
|
||||
api: getSimpleAlertConfigList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择告警配置',
|
||||
|
|
@ -40,7 +40,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
@ -53,7 +53,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '设备',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeviceList(),
|
||||
api: getSimpleDeviceList,
|
||||
labelField: 'deviceName',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择设备',
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
@ -89,7 +89,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '设备分组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeviceGroupList(),
|
||||
api: getSimpleDeviceGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
@ -156,7 +156,7 @@ export function useGroupFormSchema(): VbenFormSchema[] {
|
|||
label: '设备分组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeviceGroupList(),
|
||||
api: getSimpleDeviceGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
@ -199,7 +199,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
@ -249,7 +249,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '设备分组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeviceGroupList(),
|
||||
api: getSimpleDeviceGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择设备分组',
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '父级分组',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeviceGroupList(),
|
||||
api: getSimpleDeviceGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择父级分组',
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '所属产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
@ -85,7 +85,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '所属产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
@ -86,7 +86,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '父级分类',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductCategoryList(),
|
||||
api: getSimpleProductCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择父级分类',
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ export function useFormSchema(formApi?: any): VbenFormSchema[] {
|
|||
label: '产品分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductCategoryList(),
|
||||
api: getSimpleProductCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品分类',
|
||||
|
|
@ -246,7 +246,7 @@ export function useBasicFormSchema(formApi?: any): VbenFormSchema[] {
|
|||
label: '产品分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductCategoryList(),
|
||||
api: getSimpleProductCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品分类',
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleProductList(),
|
||||
api: getSimpleProductList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '商品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSpuSimpleList(),
|
||||
api: getSpuSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择商品',
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export function useInfoFormSchema(): VbenFormSchema[] {
|
|||
label: '商品品牌',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleBrandList(),
|
||||
api: getSimpleBrandList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
@ -181,7 +181,7 @@ export function useDeliveryFormSchema(): VbenFormSchema[] {
|
|||
label: '运费模板',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleTemplateList(),
|
||||
api: getSimpleTemplateList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '文章分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleArticleCategoryList(),
|
||||
api: getSimpleArticleCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择文章分类',
|
||||
|
|
@ -144,7 +144,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '文章分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleArticleCategoryList(),
|
||||
api: getSimpleArticleCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择文章分类',
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiTreeSelect',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
fieldNames: { label: 'name', value: 'id', children: 'children' },
|
||||
placeholder: '请选择省市区',
|
||||
},
|
||||
|
|
@ -146,7 +146,7 @@ export function useBindFormSchema(): VbenFormSchema[] {
|
|||
label: '门店店员',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
mode: 'tags',
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '快递公司',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeliveryExpressList(),
|
||||
api: getSimpleDeliveryExpressList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择快递公司',
|
||||
|
|
@ -90,7 +90,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '自提门店',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeliveryPickUpStoreList(),
|
||||
api: getSimpleDeliveryPickUpStoreList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择自提门店',
|
||||
|
|
@ -369,7 +369,7 @@ export function useAddressFormSchema(): VbenFormSchema[] {
|
|||
label: '所在地',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
childrenField: 'children',
|
||||
|
|
@ -422,7 +422,7 @@ export function useDeliveryFormSchema(): VbenFormSchema[] {
|
|||
label: '物流公司',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeliveryExpressList(),
|
||||
api: getSimpleDeliveryExpressList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择物流公司',
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '所在地',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
fieldNames: { label: 'name', value: 'id', children: 'children' },
|
||||
placeholder: '请选择所在地',
|
||||
},
|
||||
|
|
@ -100,7 +100,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '用户标签',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleTagList(),
|
||||
api: getSimpleTagList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
@ -112,7 +112,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '用户分组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleGroupList(),
|
||||
api: getSimpleGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户分组',
|
||||
|
|
@ -173,7 +173,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户标签',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleTagList(),
|
||||
api: getSimpleTagList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
@ -186,7 +186,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户等级',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleLevelList(),
|
||||
api: getSimpleLevelList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户等级',
|
||||
|
|
@ -198,7 +198,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户分组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleGroupList(),
|
||||
api: getSimpleGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户分组',
|
||||
|
|
@ -327,7 +327,7 @@ export function useLevelFormSchema(): VbenFormSchema[] {
|
|||
label: '用户等级',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleLevelList(),
|
||||
api: getSimpleLevelList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户等级',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '应用编号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getAppList(),
|
||||
api: getAppList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
autoSelect: 'first',
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ export function useDataFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: (values) => {
|
||||
return {
|
||||
api: () => getSimpleDictTypeList(),
|
||||
api: getSimpleDictTypeList,
|
||||
placeholder: '请输入字典类型',
|
||||
labelField: 'name',
|
||||
valueField: 'type',
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择邮箱账号',
|
||||
|
|
@ -185,7 +185,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ export function useSendNotifyFormSchema(): VbenFormSchema[] {
|
|||
label: '接收人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择接收人',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '操作人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择短信渠道',
|
||||
|
|
@ -146,7 +146,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '租户套餐',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getTenantPackageList(),
|
||||
api: getTenantPackageList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择租户套餐',
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '岗位',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimplePostList(),
|
||||
api: getSimplePostList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
@ -213,7 +213,7 @@ export function useAssignRoleFormSchema(): VbenFormSchema[] {
|
|||
label: '角色',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleRoleList(),
|
||||
api: getSimpleRoleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择成员',
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
mode: 'tags',
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export function useImportTableFormSchema(): VbenFormSchema[] {
|
|||
label: '数据源',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getDataSourceConfigList(),
|
||||
api: getDataSourceConfigList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
autoSelect: 'first',
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '商品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSpuSimpleList(),
|
||||
api: getSpuSimpleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择商品',
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ export function useValueFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: (values) => {
|
||||
return {
|
||||
api: () => getPropertySimpleList(),
|
||||
api: getPropertySimpleList,
|
||||
placeholder: '请选择属性',
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export function useInfoFormSchema(): VbenFormSchema[] {
|
|||
label: '商品品牌',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleBrandList(),
|
||||
api: getSimpleBrandList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
@ -181,7 +181,7 @@ export function useDeliveryFormSchema(): VbenFormSchema[] {
|
|||
label: '运费模板',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleTemplateList(),
|
||||
api: getSimpleTemplateList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '文章分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleArticleCategoryList(),
|
||||
api: getSimpleArticleCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择文章分类',
|
||||
|
|
@ -140,7 +140,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '文章分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleArticleCategoryList(),
|
||||
api: getSimpleArticleCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择文章分类',
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiTreeSelect',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
childrenField: 'children',
|
||||
|
|
@ -147,7 +147,7 @@ export function useBindFormSchema(): VbenFormSchema[] {
|
|||
label: '门店店员',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
multiple: true,
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '快递公司',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeliveryExpressList(),
|
||||
api: getSimpleDeliveryExpressList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择快递公司',
|
||||
|
|
@ -90,7 +90,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '自提门店',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeliveryPickUpStoreList(),
|
||||
api: getSimpleDeliveryPickUpStoreList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择自提门店',
|
||||
|
|
@ -371,7 +371,7 @@ export function useAddressFormSchema(): VbenFormSchema[] {
|
|||
label: '所在地',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
childrenField: 'children',
|
||||
|
|
@ -422,7 +422,7 @@ export function useDeliveryFormSchema(): VbenFormSchema[] {
|
|||
label: '物流公司',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeliveryExpressList(),
|
||||
api: getSimpleDeliveryExpressList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择物流公司',
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '所在地',
|
||||
component: 'ApiTreeSelect',
|
||||
componentProps: {
|
||||
api: () => getAreaTree(),
|
||||
api: getAreaTree,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
childrenField: 'children',
|
||||
|
|
@ -98,7 +98,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '用户标签',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleTagList(),
|
||||
api: getSimpleTagList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
multiple: true,
|
||||
|
|
@ -110,7 +110,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '用户分组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleGroupList(),
|
||||
api: getSimpleGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户分组',
|
||||
|
|
@ -171,7 +171,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户标签',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleTagList(),
|
||||
api: getSimpleTagList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
multiple: true,
|
||||
|
|
@ -184,7 +184,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户等级',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleLevelList(),
|
||||
api: getSimpleLevelList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户等级',
|
||||
|
|
@ -196,7 +196,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '用户分组',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleGroupList(),
|
||||
api: getSimpleGroupList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户分组',
|
||||
|
|
@ -325,7 +325,7 @@ export function useLevelFormSchema(): VbenFormSchema[] {
|
|||
label: '用户等级',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleLevelList(),
|
||||
api: getSimpleLevelList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择用户等级',
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ const [Grid] = useVbenVxeGrid({
|
|||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
clearable: true,
|
||||
api: () => getSimpleDeliveryExpressList(),
|
||||
api: getSimpleDeliveryExpressList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '全部',
|
||||
|
|
@ -120,7 +120,7 @@ const [Grid] = useVbenVxeGrid({
|
|||
label: '自提门店',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleDeliveryPickUpStoreList(),
|
||||
api: getSimpleDeliveryPickUpStoreList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '应用编号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getAppList(),
|
||||
api: getAppList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
autoSelect: 'first',
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ export function useDataFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: (values) => {
|
||||
return {
|
||||
api: () => getSimpleDictTypeList(),
|
||||
api: getSimpleDictTypeList,
|
||||
placeholder: '请输入字典类型',
|
||||
labelField: 'name',
|
||||
valueField: 'type',
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择邮箱账号',
|
||||
|
|
@ -177,7 +177,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ export function useSendNotifyFormSchema(): VbenFormSchema[] {
|
|||
label: '接收人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择接收人',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '操作人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择短信渠道',
|
||||
|
|
@ -144,7 +144,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '租户套餐',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getTenantPackageList(),
|
||||
api: getTenantPackageList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择租户套餐',
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '岗位',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimplePostList(),
|
||||
api: getSimplePostList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
multiple: true,
|
||||
|
|
@ -212,7 +212,7 @@ export function useAssignRoleFormSchema(): VbenFormSchema[] {
|
|||
label: '角色',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleRoleList(),
|
||||
api: getSimpleRoleList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
multiple: true,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export function useImportTableFormSchema(): VbenFormSchema[] {
|
|||
label: '数据源',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getDataSourceConfigList(),
|
||||
api: getDataSourceConfigList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
autoSelect: 'first',
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '负责人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择负责人',
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ export function useDataFormSchema(): VbenFormSchema[] {
|
|||
component: 'ApiSelect',
|
||||
componentProps: (values) => {
|
||||
return {
|
||||
api: () => getSimpleDictTypeList(),
|
||||
api: getSimpleDictTypeList,
|
||||
placeholder: '请输入字典类型',
|
||||
labelField: 'name',
|
||||
valueField: 'type',
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择邮箱账号',
|
||||
|
|
@ -187,7 +187,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ export function useSendNotifyFormSchema(): VbenFormSchema[] {
|
|||
label: '接收人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择接收人',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '操作人',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleUserList(),
|
||||
api: getSimpleUserList,
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
clearable: true,
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue