|
@ -4,6 +4,7 @@ import { selecUserByType } from '@/api/system/dept' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { ItemSearchTable } from '../../basic/item/item.data' |
|
|
import { ItemSearchTable } from '../../basic/item/item.data' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
|
|
|
import { validateHanset, validateInteger, validateNum } from '@/utils/validator' |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }) |
|
|
const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }) |
|
|
const dutyUserList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }) |
|
|
const dutyUserList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }) |
|
@ -221,9 +222,21 @@ export const DeviceMaintainOrderDetailRules = reactive({ |
|
|
concurrencyStamp: [required], |
|
|
concurrencyStamp: [required], |
|
|
name: [required], |
|
|
name: [required], |
|
|
number: [required], |
|
|
number: [required], |
|
|
peoples: [required], |
|
|
peoples: [ |
|
|
estimatedMinutes: [required], |
|
|
|
|
|
actualMinutes: [required], |
|
|
required, |
|
|
|
|
|
{ validator:validateNum, message: '请输入正整数', trigger: 'blur'}, |
|
|
|
|
|
], |
|
|
|
|
|
estimatedMinutes: [ |
|
|
|
|
|
|
|
|
|
|
|
required, |
|
|
|
|
|
{ validator:validateNum, message: '请输入正整数', trigger: 'blur'}, |
|
|
|
|
|
], |
|
|
|
|
|
actualMinutes: [ |
|
|
|
|
|
|
|
|
|
|
|
required, |
|
|
|
|
|
{ validator:validateNum, message: '请输入正整数', trigger: 'blur'}, |
|
|
|
|
|
], |
|
|
chargePeoples: [required], |
|
|
chargePeoples: [required], |
|
|
completionTime: [required], |
|
|
completionTime: [required], |
|
|
engineer: [required], |
|
|
engineer: [required], |
|
|