This commit is contained in:
@@ -96,7 +96,8 @@ export const columns: VxeGridProps['columns'] = [
|
||||
width: 100,
|
||||
slots: {
|
||||
default: ({row}) => {
|
||||
return renderDict(row.status, 'wy_sf');
|
||||
return row.isTimeOut ? renderDict(row.isTimeOut, 'wy_sf') : '';
|
||||
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -105,7 +106,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
fixed: 'right',
|
||||
slots: {default: 'action'},
|
||||
title: '操作',
|
||||
width: 180,
|
||||
width: 300,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -142,38 +143,37 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
// },
|
||||
// rules: 'selectRequired',
|
||||
// },
|
||||
{
|
||||
label: '派单时间',
|
||||
fieldName: 'dispatchTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
disabledDate: disabledDate
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '发起人',
|
||||
fieldName: 'initiatorName',
|
||||
component: 'ApiSelect',
|
||||
formItemClass: 'col-span-2',
|
||||
rules: 'selectRequired',
|
||||
|
||||
},
|
||||
{
|
||||
label: '处理人',
|
||||
fieldName: 'handler',
|
||||
component: 'ApiSelect',
|
||||
formItemClass: 'col-span-2',
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
// {
|
||||
// label: '派单时间',
|
||||
// fieldName: 'dispatchTime',
|
||||
// component: 'DatePicker',
|
||||
// componentProps: {
|
||||
// showTime: true,
|
||||
// format: 'YYYY-MM-DD HH:mm:ss',
|
||||
// valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
// disabledDate: disabledDate
|
||||
// },
|
||||
// rules: 'selectRequired',
|
||||
// },
|
||||
// {
|
||||
// label: '发起人',
|
||||
// fieldName: 'initiatorName',
|
||||
// component: 'ApiSelect',
|
||||
// formItemClass: 'col-span-2',
|
||||
// rules: 'selectRequired',
|
||||
//
|
||||
// },
|
||||
// {
|
||||
// label: '处理人',
|
||||
// fieldName: 'handler',
|
||||
// component: 'ApiSelect',
|
||||
// formItemClass: 'col-span-2',
|
||||
// rules: 'selectRequired',
|
||||
// },
|
||||
{
|
||||
label: '具体位置',
|
||||
fieldName: 'location',
|
||||
component: 'Input',
|
||||
formItemClass: 'col-span-2',
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
@@ -188,34 +188,66 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
labelWidth: 110,
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '完成时间',
|
||||
fieldName: 'compleTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '评价',
|
||||
fieldName: 'serviceEvalua',
|
||||
component: 'Rate',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '是否超时',
|
||||
fieldName: 'isTimeOut',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
options: getDictOptions('wy_sf'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
// {
|
||||
// label: '完成时间',
|
||||
// fieldName: 'compleTime',
|
||||
// component: 'DatePicker',
|
||||
// componentProps: {
|
||||
// showTime: true,
|
||||
// format: 'YYYY-MM-DD HH:mm:ss',
|
||||
// valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
// },
|
||||
// rules: 'selectRequired',
|
||||
// },
|
||||
// {
|
||||
// label: '评价',
|
||||
// fieldName: 'serviceEvalua',
|
||||
// component: 'Rate',
|
||||
// rules: 'required',
|
||||
// },
|
||||
// {
|
||||
// label: '是否超时',
|
||||
// fieldName: 'isTimeOut',
|
||||
// component: 'RadioGroup',
|
||||
// componentProps: {
|
||||
// buttonStyle: 'solid',
|
||||
// options: getDictOptions('wy_sf'),
|
||||
// },
|
||||
// rules: 'selectRequired',
|
||||
// },
|
||||
];
|
||||
const disabledDate = (current: Dayjs) => {
|
||||
return current && current < dayjs().endOf('day');
|
||||
};
|
||||
export const ordersModalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: 'id',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '状态',
|
||||
fieldName: 'status',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
options: getDictOptions('wy_gdclzt'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: '处理人',
|
||||
fieldName: 'handler',
|
||||
component: 'ApiSelect',
|
||||
formItemClass: 'col-span-2',
|
||||
rules: 'selectRequired',
|
||||
dependencies: {
|
||||
disabled: (formValue) =>formValue.status === '2' ,
|
||||
triggerFields: ['status'],
|
||||
},
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user