feat: 新增保洁管理菜单
This commit is contained in:
150
apps/web-antd/src/views/property/clean/cleanOrders/data.ts
Normal file
150
apps/web-antd/src/views/property/clean/cleanOrders/data.ts
Normal file
@@ -0,0 +1,150 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'name',
|
||||
label: '劳务名称',
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'measure',
|
||||
label: '计量单位',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'method',
|
||||
label: '计算方式',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'peices',
|
||||
label: '单价',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'frequency',
|
||||
label: '保洁频率',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'standard',
|
||||
label: '保洁标准',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'stater',
|
||||
label: '状态',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '主键id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '劳务名称',
|
||||
field: 'name',
|
||||
},
|
||||
{
|
||||
title: '计量单位',
|
||||
field: 'measure',
|
||||
},
|
||||
{
|
||||
title: '计算方式',
|
||||
field: 'method',
|
||||
},
|
||||
{
|
||||
title: '单价',
|
||||
field: 'peices',
|
||||
},
|
||||
{
|
||||
title: '保洁频率',
|
||||
field: 'frequency',
|
||||
},
|
||||
{
|
||||
title: '保洁标准',
|
||||
field: 'standard',
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
field: 'remark',
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
field: 'stater',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
title: '操作',
|
||||
width: 180,
|
||||
},
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '主键id',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '劳务名称',
|
||||
fieldName: 'name',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '计量单位',
|
||||
fieldName: 'measure',
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '计算方式',
|
||||
fieldName: 'method',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '单价',
|
||||
fieldName: 'peices',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '保洁频率',
|
||||
fieldName: 'frequency',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '保洁标准',
|
||||
fieldName: 'standard',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '备注',
|
||||
fieldName: 'remark',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '状态',
|
||||
fieldName: 'stater',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
Reference in New Issue
Block a user