|
@ -9,11 +9,14 @@ import * as WorkshopApi from "@/api/wms/workshop"; |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const EquipmentSpotCheckMainRules = reactive({ |
|
|
export const EquipmentSpotCheckMainRules = reactive({ |
|
|
|
|
|
type: [required], |
|
|
number: [required], |
|
|
number: [required], |
|
|
equipmentCode: [required], |
|
|
equipmentCode: [required], |
|
|
planNumber: [required], |
|
|
planNumber: [required], |
|
|
planStartTime: [required], |
|
|
planStartTime: [required], |
|
|
planEndTime: [required], |
|
|
planEndTime: [required], |
|
|
|
|
|
status: [required], |
|
|
|
|
|
workshopCode: [required], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
@ -31,6 +34,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'number', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
isForm:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '来源字典', |
|
|
label: '来源字典', |
|
@ -39,6 +43,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.EAM_SPOTCHECK_SOURCES, |
|
|
dictType: DICT_TYPE.EAM_SPOTCHECK_SOURCES, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '点检描述', |
|
|
label: '点检描述', |
|
@ -49,6 +54,14 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isDetail:false, |
|
|
isDetail:false, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '设备类别', |
|
|
|
|
|
field: 'type', |
|
|
|
|
|
dictType: DICT_TYPE.DEVICE_TYPE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '设备编号', |
|
|
label: '设备编号', |
|
|
field: 'equipmentCode', |
|
|
field: 'equipmentCode', |
|
@ -74,20 +87,12 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '设备类别', |
|
|
|
|
|
field: 'type', |
|
|
|
|
|
dictType: DICT_TYPE.DEVICE_TYPE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '点检计划工单号', |
|
|
label: '点检计划工单号', |
|
|
field: 'planNumber', |
|
|
field: 'planNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计划开始时间', |
|
|
label: '计划开始时间', |
|
@ -95,6 +100,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -117,6 +123,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -139,6 +146,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -161,6 +169,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -203,6 +212,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'verifyer', |
|
|
field: 'verifyer', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
@ -213,6 +223,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'verifyContent', |
|
|
field: 'verifyContent', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '验证时间', |
|
|
label: '验证时间', |
|
@ -220,6 +231,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -241,12 +253,14 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'maintenancer', |
|
|
field: 'maintenancer', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '点检人电话', |
|
|
label: '点检人电话', |
|
|
field: 'maintenancePhone', |
|
|
field: 'maintenancePhone', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '完成时间', |
|
|
label: '完成时间', |
|
@ -254,6 +268,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -276,6 +291,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -293,10 +309,12 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否拍照1否0是', |
|
|
label: '是否拍照', |
|
|
field: 'isPictures', |
|
|
field: 'isPictures', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
dictType: DICT_TYPE.FALSE_OR_TRUE, |
|
|
|
|
|
dictClass: 'string', |
|
|
form: { |
|
|
form: { |
|
|
component: 'Radio' |
|
|
component: 'Radio' |
|
|
}, |
|
|
}, |
|
@ -347,6 +365,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'classType', |
|
|
field: 'classType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '所属厂区编号', |
|
|
label: '所属厂区编号', |
|
@ -440,6 +459,7 @@ export const EquipmentSpotCheckMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
isForm: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '地点ID', |
|
|
label: '地点ID', |
|
|