diff --git a/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts b/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts index bc94d75..8a58e57 100644 --- a/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts +++ b/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts @@ -382,7 +382,7 @@ export const DeviceMaintenanceDetail = useCrudSchemas(reactive([ }, form:{ component: 'Select', - // api: () => userListAll, + // api: () => dutyUserList, componentProps: { multiple:true, collapseTags:true, diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 97e2cb1..a13a15a 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -850,7 +850,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { if (operatRecord.value.type == 'TECH') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -859,7 +859,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'DEVICE') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -868,7 +868,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'MOLD') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); diff --git a/src/views/eam/mold/moldmaintenancejob/index.vue b/src/views/eam/mold/moldmaintenancejob/index.vue index c3ef635..d0bc6f1 100644 --- a/src/views/eam/mold/moldmaintenancejob/index.vue +++ b/src/views/eam/mold/moldmaintenancejob/index.vue @@ -676,7 +676,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { if (operatRecord.value.type == 'TECH') { MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -685,7 +685,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'DEVICE') { MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -694,7 +694,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'MOLD') { MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); });