diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 2f2fc1a..05a4fa5 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -546,10 +546,10 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { } } -const openFormCallBack = (type, row, masterParmas,callback) => { +const openFormCallBack = (type, row, masterParmas, callback) => { if (operatRecord.value.type == 'TECH') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { - if (item.field == 'maintenances') { + if (item.field == 'maintenance') { selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { item.componentProps.options = response callback(); @@ -558,7 +558,7 @@ const openFormCallBack = (type, row, masterParmas,callback) => { }) } else if (operatRecord.value.type == 'DEVICE') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { - if (item.field == 'maintenances') { + if (item.field == 'maintenance') { selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { item.componentProps.options = response callback(); @@ -567,7 +567,7 @@ const openFormCallBack = (type, row, masterParmas,callback) => { }) } else if (operatRecord.value.type == 'MOLD') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { - if (item.field == 'maintenances') { + if (item.field == 'maintenance') { selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { item.componentProps.options = response callback();