密炼生产计划优化

This commit is contained in:
2026-06-17 15:47:53 +08:00
parent e28352f8ea
commit 7d7198b802
44 changed files with 2074 additions and 16 deletions

View File

@@ -0,0 +1,7 @@
<template>
<MesXslAutoSmallMaterialDemandPlanList />
</template>
<script lang="ts" setup>
import MesXslAutoSmallMaterialDemandPlanList from '../../xslmes/mesXslAutoSmallMaterialDemandPlan/MesXslAutoSmallMaterialDemandPlanList.vue';
</script>

View File

@@ -0,0 +1,7 @@
<template>
<MesXslAutoSmallMaterialPlanMaintainList />
</template>
<script lang="ts" setup>
import MesXslAutoSmallMaterialPlanMaintainList from '../../xslmes/mesXslAutoSmallMaterialPlanMaintain/MesXslAutoSmallMaterialPlanMaintainList.vue';
</script>

View File

@@ -0,0 +1,7 @@
<template>
<MesXslManualSmallMaterialDemandPlanList />
</template>
<script lang="ts" setup>
import MesXslManualSmallMaterialDemandPlanList from '../../xslmes/mesXslManualSmallMaterialDemandPlan/MesXslManualSmallMaterialDemandPlanList.vue';
</script>

View File

@@ -0,0 +1,7 @@
<template>
<MesXslManualSmallMaterialPlanMaintainList />
</template>
<script lang="ts" setup>
import MesXslManualSmallMaterialPlanMaintainList from '../../xslmes/mesXslManualSmallMaterialPlanMaintain/MesXslManualSmallMaterialPlanMaintainList.vue';
</script>

View File

@@ -17,6 +17,7 @@
const selectedRow = ref<Recordable | null>(null);
const onlySales = ref(false);
const excludeProductionFB1 = ref(false);
const [registerTable, { reload, getSelectRowKeys, getSelectRows, setSelectedRowKeys, clearSelectedRowKeys }] = useTable({
api: materialList,
@@ -35,6 +36,7 @@
...params,
enableFlag: params.enableFlag ?? 1,
onlySales: onlySales.value ? 1 : undefined,
excludeProductionFB1: excludeProductionFB1.value ? 1 : undefined,
}),
rowSelection: {
type: 'radio',
@@ -49,6 +51,7 @@
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
selectedRow.value = null;
onlySales.value = !!data?.onlySales;
excludeProductionFB1.value = !!data?.excludeProductionFB1;
clearSelectedRowKeys?.();
setModalProps({ confirmLoading: false });
const materialId = data?.materialId as string | undefined;
@@ -84,9 +87,9 @@
}
emit('select', {
materialId: row.id,
materialName: row.materialName || '',
aliasName: row.aliasName || '',
materialCode: row.materialCode || '',
materialName: row.materialName || row.material_name || '',
aliasName: row.aliasName || row.alias_name || '',
materialCode: row.materialCode || row.material_code || '',
});
closeModal();
}