diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 6289ca1..974dd52 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -145,6 +145,7 @@ import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts' import { useUserStore } from '@/store/modules/user' import { selecUserByType } from '@/api/system/dept' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +import { emit } from 'process' const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD') defineOptions({ name: 'DeviceMaintenanceMain' }) @@ -680,7 +681,7 @@ const detailValidate = (data) => { } } // 子表提交 -const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { +const detailSubmitForm= async (formType,data,formRef,tableList) => { try { let data1 = { id:data.id, @@ -701,7 +702,6 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { } formRef.dialogVisible = false // 刷新当前列表 - await getList() detailRef.value.tableObject.tableList.forEach(item=>{ if (item.itemNumbers?.length>0) { let str = '' @@ -712,6 +712,9 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { } }) + await detailRef.value.getList() + await getList() + } finally { formRef.value.formLoading = false }