|
|
@ -8,6 +8,8 @@ import { validateNum100, validateNum } from '@/utils/validator' |
|
|
|
const factoryList = await selectAllFactoryArea() |
|
|
|
const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }) |
|
|
|
const dutyUserList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }) |
|
|
|
import * as UserApi from '@/api/system/user' |
|
|
|
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const DeviceMaintainOrderMainRules = reactive({ |
|
|
@ -151,27 +153,23 @@ export const DeviceMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: '150', |
|
|
|
}, |
|
|
|
isDetail:false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '接单时间', |
|
|
|
field: 'receiveTime', |
|
|
|
label: '接单人员', |
|
|
|
field: 'maintenanceName', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: '150', |
|
|
|
}, |
|
|
|
formatter: dateFormatter, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
isDetail:true, |
|
|
|
isTable:false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '完成时间', |
|
|
|
field: 'finishedTime', |
|
|
|
label: '接单时间', |
|
|
|
field: 'receiveTime', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
@ -185,10 +183,13 @@ export const DeviceMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail:{ |
|
|
|
dateFormat:'YYYY-MM-DD HH:mm:ss' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '验证时间', |
|
|
|
field: 'verifyTime', |
|
|
|
label: '完成时间', |
|
|
|
field: 'finishedTime', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
@ -202,6 +203,9 @@ export const DeviceMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail:{ |
|
|
|
dateFormat:'YYYY-MM-DD HH:mm:ss' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|