保洁+入驻
This commit is contained in:
248
apps/web-antd/src/views/property/clean_order/data.ts
Normal file
248
apps/web-antd/src/views/property/clean_order/data.ts
Normal file
@@ -0,0 +1,248 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'location',
|
||||
label: '位置',
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'area',
|
||||
label: '面积',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'cleanId',
|
||||
label: '保洁id',
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'name',
|
||||
label: '名称',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'prices',
|
||||
label: '单价',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'sumPeices',
|
||||
label: '总价',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'payState',
|
||||
label: '支付状态',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
fieldName: 'starTime',
|
||||
label: '开始时间',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
fieldName: 'endTime',
|
||||
label: '结束时间',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'unitId',
|
||||
label: '单位id',
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'unit',
|
||||
label: '申请单位',
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'persion',
|
||||
label: '联系人',
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'phone',
|
||||
label: '联系电话',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '主键',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '位置',
|
||||
field: 'location',
|
||||
},
|
||||
{
|
||||
title: '面积',
|
||||
field: 'area',
|
||||
},
|
||||
{
|
||||
title: '保洁id',
|
||||
field: 'cleanId',
|
||||
},
|
||||
{
|
||||
title: '名称',
|
||||
field: 'name',
|
||||
},
|
||||
{
|
||||
title: '单价',
|
||||
field: 'prices',
|
||||
},
|
||||
{
|
||||
title: '总价',
|
||||
field: 'sumPeices',
|
||||
},
|
||||
{
|
||||
title: '支付状态',
|
||||
field: 'payState',
|
||||
},
|
||||
{
|
||||
title: '开始时间',
|
||||
field: 'starTime',
|
||||
},
|
||||
{
|
||||
title: '结束时间',
|
||||
field: 'endTime',
|
||||
},
|
||||
{
|
||||
title: '单位id',
|
||||
field: 'unitId',
|
||||
},
|
||||
{
|
||||
title: '申请单位',
|
||||
field: 'unit',
|
||||
},
|
||||
{
|
||||
title: '联系人',
|
||||
field: 'persion',
|
||||
},
|
||||
{
|
||||
title: '联系电话',
|
||||
field: 'phone',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
title: '操作',
|
||||
width: 180,
|
||||
},
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '主键',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '位置',
|
||||
fieldName: 'location',
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '面积',
|
||||
fieldName: 'area',
|
||||
component: 'Textarea',
|
||||
},
|
||||
{
|
||||
label: '保洁id',
|
||||
fieldName: 'cleanId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '名称',
|
||||
fieldName: 'name',
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '单价',
|
||||
fieldName: 'prices',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '总价',
|
||||
fieldName: 'sumPeices',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '支付状态',
|
||||
fieldName: 'payState',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '开始时间',
|
||||
fieldName: 'starTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '结束时间',
|
||||
fieldName: 'endTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '单位id',
|
||||
fieldName: 'unitId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '申请单位',
|
||||
fieldName: 'unit',
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '联系人',
|
||||
fieldName: 'persion',
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '联系电话',
|
||||
fieldName: 'phone',
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
Reference in New Issue
Block a user