|
@ -9,11 +9,15 @@ import * as ItemApi from "@/api/eam/relationMaintenancePlanItem"; |
|
|
import {validateroundNumber} from "@/utils/validator"; |
|
|
import {validateroundNumber} from "@/utils/validator"; |
|
|
import {BasicFaultType} from "@/views/eam/basicFaultType/basicFaultType.data"; |
|
|
import {BasicFaultType} from "@/views/eam/basicFaultType/basicFaultType.data"; |
|
|
import * as BasicFaultTypeApi from "@/api/eam/basicFaultType"; |
|
|
import * as BasicFaultTypeApi from "@/api/eam/basicFaultType"; |
|
|
|
|
|
import {BasicMaintenanceOption} from "@/views/eam/basicMaintenanceOption/basicMaintenanceOption.data"; |
|
|
|
|
|
import * as BasicMaintenanceOptionApi from "@/api/eam/basicMaintenanceOption"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const EquipmentMaintenanceMainRules = reactive({ |
|
|
export const EquipmentMaintenanceMainRules = reactive({ |
|
|
number: [required], |
|
|
number: [required], |
|
|
sources: [required], |
|
|
sources: [required], |
|
|
|
|
|
optionCode:[required], |
|
|
equipmentCode: [required], |
|
|
equipmentCode: [required], |
|
|
type: [required], |
|
|
type: [required], |
|
|
planStartTime: [required], |
|
|
planStartTime: [required], |
|
@ -112,6 +116,28 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '保养方案', |
|
|
|
|
|
field: 'optionCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择保养方案', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '保养方案信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: BasicMaintenanceOption.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: BasicMaintenanceOptionApi.getBasicMaintenanceOptionPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '保养计划工单号', |
|
|
label: '保养计划工单号', |
|
|
field: 'planNumber', |
|
|
field: 'planNumber', |
|
|