diff --git a/src/api/eam/device/deviceInspectionMain/index.ts b/src/api/eam/device/deviceInspectionMain/index.ts index 5f2e1c1..084fee0 100644 --- a/src/api/eam/device/deviceInspectionMain/index.ts +++ b/src/api/eam/device/deviceInspectionMain/index.ts @@ -67,4 +67,10 @@ export const finishInspection = (id: number) => { // 查询检修工单主列表 export const getDeviceInspectionMainNoPage = async (params) => { return await request.get({ url: `/eam/device-inspection-job-main/noPage`, params }) +} + + +//验证 +export const verifyOrder = async (id: number,verifyContent: string) => { + return await request.get({ url: `/eam/device-inspection-job-main/onVerify?id=`+id+`&verifyContent=` + verifyContent }) } \ No newline at end of file diff --git a/src/api/eam/mold/moldInspectionMain/index.ts b/src/api/eam/mold/moldInspectionMain/index.ts index 8f857ba..8cf6e4f 100644 --- a/src/api/eam/mold/moldInspectionMain/index.ts +++ b/src/api/eam/mold/moldInspectionMain/index.ts @@ -61,4 +61,10 @@ export const importTemplate = () => { // 查询检修工单主列表 export const getMoldInspectionMainNoPage = async (params) => { return await request.get({ url: `/eam/device-inspection-job-main/noPage`, params }) +} + + +//验证 +export const verifyOrder = async (id: number,verifyContent: string) => { + return await request.get({ url: `/eam/device-inspection-job-main/onVerify?id=`+id+`&verifyContent=` + verifyContent }) } \ No newline at end of file diff --git a/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts b/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts index 9ebd839..67f8c1f 100644 --- a/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts +++ b/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts @@ -35,7 +35,6 @@ export const DeviceInspectionMainRules = reactive({ maintenancePhone: [ { validator: validateHanset, message: '输入电话格式不正确', trigger: 'blur' } ], - status: [required], type: [required], faultType: [required], @@ -192,7 +191,7 @@ export const DeviceInspectionMain = useCrudSchemas(reactive([ component: 'Select', api: () => userListAll, componentProps: { - disabled: true, + disabled: false, optionsAlias: { labelField: 'nickname', valueField: 'id' @@ -236,7 +235,7 @@ export const DeviceInspectionMain = useCrudSchemas(reactive([ width: '150', }, isSearch: true, - dictType: DICT_TYPE.JX_STATUS, + dictType: DICT_TYPE.WEI_XIU_ORDER_STATUS, dictClass: 'string', form: { component: 'Select', @@ -308,6 +307,65 @@ export const DeviceInspectionMain = useCrudSchemas(reactive([ } }, }, + { + label: '验证人', + field: 'verifyer', + sort: 'custom', + isDetail: false, + isSearch: false, + isForm: false, + table: { + width: '150', + }, + api: () => userList, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userListAll.find((account) => account.id == cellValue)?.nickname + }, + search: { + show: true, + component: 'Select', + api: () => dutyUserList, + componentProps: { + optionsAlias: { + labelField: 'name', + valueField: 'id' + }, + filterable: true, + } + }, + form: { + component: 'Select', + api: () => dutyUserList, + componentProps: { + // disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + }, + filterable: true, + placeholder: "请选择维修人" + }, + } + }, + { + label: '验证人', + field: 'verifyerDetail', + sort: 'custom', + isSearch: false, + isTable: false, + isForm: false, + isDetail: true + }, + { + label: '验证意见', + field: 'verifyContent', + sort: 'custom', + isSearch: false, + isForm: false, + table: { + width: '230', + }, + }, { label: '操作', field: 'action', @@ -336,7 +394,9 @@ export const DeviceInspectionDetailRules = reactive({ { validator: validateNum, message: '请输入正整数', trigger: 'blur' }, ], number: [required], + status: [required], actualMinutes: [ + required, { validator: validateNum, message: '请输入正整数', trigger: 'blur' }, ], maintenance: [required], diff --git a/src/views/eam/device/deviceinspectionjob/index.vue b/src/views/eam/device/deviceinspectionjob/index.vue index 80b85fd..6b8e4e5 100644 --- a/src/views/eam/device/deviceinspectionjob/index.vue +++ b/src/views/eam/device/deviceinspectionjob/index.vue @@ -78,6 +78,36 @@ + + + + + + + + + + +