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