|
|
@ -6,7 +6,7 @@ import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMai |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { ItemSearchTable } from '../../basic/item/item.data' |
|
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
|
import { validateHanset, validateInteger, validateNum } from '@/utils/validator' |
|
|
|
import { validateHanset, validateNum, validateNum100 } from '@/utils/validator' |
|
|
|
import * as UserApi from '@/api/system/user' |
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
const userStore = useUserStore() |
|
|
@ -316,6 +316,11 @@ export const DeviceInspectionDetailRules = reactive({ |
|
|
|
chargePeoples: [ |
|
|
|
required, |
|
|
|
], |
|
|
|
peoples: [ |
|
|
|
required, |
|
|
|
{ validator: validateNum, message: '请输入正整数', trigger: 'blur' }, |
|
|
|
{ validator: validateNum100, message: '预估人数不得超出100', trigger: 'blur' }, |
|
|
|
], |
|
|
|
estimatedMinutes: [ |
|
|
|
required, |
|
|
|
{ validator: validateNum, message: '请输入正整数', trigger: 'blur' }, |
|
|
@ -395,7 +400,7 @@ export const DeviceInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '人数', |
|
|
|
label: '预估人数', |
|
|
|
field: 'peoples', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|