|
|
@ -1,4 +1,5 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
|
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' |
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
@ -151,7 +152,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '维修人', |
|
|
|
label: '接单人', |
|
|
|
field: 'maintenance', |
|
|
|
sort: 'custom', |
|
|
|
isDetail: false, |
|
|
@ -191,7 +192,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '维修人', |
|
|
|
label: '接单人', |
|
|
|
field: 'maintenanceDetail', |
|
|
|
sort: 'custom', |
|
|
|
isDetail: true, |
|
|
@ -203,6 +204,32 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '接单时间', |
|
|
|
field: 'receivingTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '接单时间', |
|
|
|
field: 'receivingTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isDetail: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '类型', |
|
|
|
field: 'type', |
|
|
@ -216,6 +243,17 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
// dictType: DICT_TYPE.APP_DEVICE_MOLD_TYPE,
|
|
|
|
isSearch: true, |
|
|
|
search: { |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
options: deviceMoldTypeList, |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'label', |
|
|
|
valueField: 'value' |
|
|
|
}, |
|
|
|
filterable: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
@ -323,6 +361,32 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
dictType: DICT_TYPE.ORDER_COMPLETE_RESULT, |
|
|
|
dictClass: 'string', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '完成时间', |
|
|
|
field: 'completionTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '完成时间', |
|
|
|
field: 'completionTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: true, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '报修人', |
|
|
|
field: 'declarer', |
|
|
@ -373,6 +437,32 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '确认时间', |
|
|
|
field: 'applyTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '确认时间', |
|
|
|
field: 'applyTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: true, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '验证人', |
|
|
|
field: 'verifyer', |
|
|
@ -423,7 +513,32 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '验证时间', |
|
|
|
field: 'verifyTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '验证时间', |
|
|
|
field: 'verifyTimeDetail', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isDetail: true, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: '200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|