|
|
@ -313,14 +313,21 @@ export const MoldMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '维修人', |
|
|
|
field: 'maintenances', |
|
|
|
sort: 'custom', |
|
|
|
api: () => userListAll, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue) => { |
|
|
|
const cellValueList = cellValue ? cellValue.split(',') : []; |
|
|
|
return userListAll |
|
|
|
.filter(item => cellValueList.includes(item.id.toString())) |
|
|
|
.map(item => item.nickname) |
|
|
|
.join(','); |
|
|
|
}, |
|
|
|
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(',');
|
|
|
|
// },
|
|
|
|
isTable:false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
initOptions: userListAll, |
|
|
@ -334,7 +341,7 @@ export const MoldMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
api: () => userListAll, |
|
|
|
// api: () => dutyUserList,
|
|
|
|
componentProps: { |
|
|
|
multiple: true, |
|
|
|
collapseTags: true, |
|
|
@ -346,6 +353,15 @@ export const MoldMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '维修人', |
|
|
|
field: 'maintenancesName', |
|
|
|
sort: 'custom', |
|
|
|
isForm:false, |
|
|
|
isDetail:true, |
|
|
|
isTable:true, |
|
|
|
isTableForm:false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备件', |
|
|
|
field: 'itemNumbers1', |
|
|
|