Browse Source

修复测试bug

master
ljlong_2630 8 months ago
parent
commit
5c890e7d77
  1. 8
      src/views/eam/device/devicemaintenancejob/index.vue

8
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') { if (operatRecord.value.type == 'TECH') {
DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => {
if (item.field == 'maintenances') { if (item.field == 'maintenance') {
selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => {
item.componentProps.options = response item.componentProps.options = response
callback(); callback();
@ -558,7 +558,7 @@ const openFormCallBack = (type, row, masterParmas,callback) => {
}) })
} else if (operatRecord.value.type == 'DEVICE') { } else if (operatRecord.value.type == 'DEVICE') {
DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => {
if (item.field == 'maintenances') { if (item.field == 'maintenance') {
selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => {
item.componentProps.options = response item.componentProps.options = response
callback(); callback();
@ -567,7 +567,7 @@ const openFormCallBack = (type, row, masterParmas,callback) => {
}) })
} else if (operatRecord.value.type == 'MOLD') { } else if (operatRecord.value.type == 'MOLD') {
DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => {
if (item.field == 'maintenances') { if (item.field == 'maintenance') {
selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => {
item.componentProps.options = response item.componentProps.options = response
callback(); callback();

Loading…
Cancel
Save