优化种类生成逻辑

This commit is contained in:
geht
2026-05-25 20:42:13 +08:00
parent 441c19e87a
commit 72aeee0f10
8 changed files with 59 additions and 21 deletions

View File

@@ -70,6 +70,9 @@
import MesXslMixerMaterialKindCfgEditModal from './components/MesXslMixerMaterialKindCfgEditModal.vue';
import { columns, searchFormSchema, superQuerySchema } from './MesXslMixerMaterialKindCfg.data';
import { batchDelete, deleteOne, getExportUrl, getImportUrl, list } from './MesXslMixerMaterialKindCfg.api';
//update-begin---author:cursor ---date:20260525 for【XSLMES-20260525-A53】种类配置变更后清除前端 lookup 缓存-----------
import { clearMixingMaterialKindLookupCache } from '../mesXslMixingSpec/MesXslMixingSpec.data';
//update-end---author:cursor ---date:20260525 for【XSLMES-20260525-A53】种类配置变更后清除前端 lookup 缓存-----------
const queryParam = reactive<any>({});
const [registerBatchModal, { openModal: openBatchModal }] = useModal();
@@ -138,6 +141,9 @@
}
function handleSuccess() {
//update-begin---author:cursor ---date:20260525 for【XSLMES-20260525-A53】种类配置变更后清除前端 lookup 缓存-----------
clearMixingMaterialKindLookupCache();
//update-end---author:cursor ---date:20260525 for【XSLMES-20260525-A53】种类配置变更后清除前端 lookup 缓存-----------
selectedRowKeys.value = [];
reload();
}