密炼生产计划优化
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<MesXslAutoSmallMaterialDemandPlanList />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import MesXslAutoSmallMaterialDemandPlanList from '../../xslmes/mesXslAutoSmallMaterialDemandPlan/MesXslAutoSmallMaterialDemandPlanList.vue';
|
||||
</script>
|
||||
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<MesXslAutoSmallMaterialPlanMaintainList />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import MesXslAutoSmallMaterialPlanMaintainList from '../../xslmes/mesXslAutoSmallMaterialPlanMaintain/MesXslAutoSmallMaterialPlanMaintainList.vue';
|
||||
</script>
|
||||
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<MesXslManualSmallMaterialDemandPlanList />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import MesXslManualSmallMaterialDemandPlanList from '../../xslmes/mesXslManualSmallMaterialDemandPlan/MesXslManualSmallMaterialDemandPlanList.vue';
|
||||
</script>
|
||||
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<MesXslManualSmallMaterialPlanMaintainList />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import MesXslManualSmallMaterialPlanMaintainList from '../../xslmes/mesXslManualSmallMaterialPlanMaintain/MesXslManualSmallMaterialPlanMaintainList.vue';
|
||||
</script>
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user