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