|
|
@ -212,20 +212,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '接单时间', |
|
|
|
field: 'receivingTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isDetail: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
@ -370,20 +359,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '完成时间', |
|
|
|
field: 'completionTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: true, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
@ -446,20 +424,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '确认时间', |
|
|
|
field: 'applyTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: true, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
@ -522,20 +489,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '验证时间', |
|
|
|
field: 'verifyTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: true, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
@ -615,19 +571,19 @@ export const DeviceMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'maintenances', |
|
|
|
sort: 'custom', |
|
|
|
isDetail: false, |
|
|
|
// formatter: (_: Recordable, __: TableColumn, cellValue) => {
|
|
|
|
// let cellValueList = []
|
|
|
|
// if (Array.isArray(cellValue)) {
|
|
|
|
// cellValueList = cellValue
|
|
|
|
// } else {
|
|
|
|
// cellValueList = cellValue ? cellValue.split(',') : [];
|
|
|
|
// }
|
|
|
|
// // const cellValueList = cellValue ? cellValue.split(',') : [];
|
|
|
|
// return userListAll
|
|
|
|
// .filter(item => cellValueList.includes(item.id.toString()))
|
|
|
|
// .map(item => item.nickname)
|
|
|
|
// .join(',');
|
|
|
|
// },
|
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue) => { |
|
|
|
let cellValueList = [] |
|
|
|
if (Array.isArray(cellValue)) { |
|
|
|
cellValueList = cellValue |
|
|
|
} else { |
|
|
|
cellValueList = cellValue ? cellValue.split(',') : []; |
|
|
|
} |
|
|
|
// const cellValueList = cellValue ? cellValue.split(',') : [];
|
|
|
|
return userListAll |
|
|
|
.filter(item => cellValueList.includes(item.id.toString())) |
|
|
|
.map(item => item.nickname) |
|
|
|
.join(','); |
|
|
|
}, |
|
|
|
isTable:true, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|