修改bug

This commit is contained in:
Teo
2025-08-13 19:47:46 +08:00
parent 2879a0243e
commit 544cc07862
8 changed files with 769 additions and 13 deletions

View File

@ -190,7 +190,7 @@ const total = ref(0);
const mainTotal = ref(0);
const batchOptions = ref<any[]>([]);
const { wf_business_status } = toRefs<any>(proxy?.useDict('wf_business_status'));
const route = useRoute();
const queryFormRef = ref<ElFormInstance>();
const cailiaoshebeiFormRef = ref<ElFormInstance>();
@ -250,7 +250,7 @@ const batchNumber = ref('');
const { queryParams, form, rules } = toRefs(data);
/** 查询物资-材料设备列表 */
const getList = async (type: string) => {
const getList = async (type?: string) => {
loading.value = true;
const res = await listBatch(queryParams.value.batchData);
batchOptions.value = res.rows;
@ -451,7 +451,7 @@ const handleAudit = async () => {
proxy?.$modal.msgError('请选择批次号');
return;
}
proxy?.$tab.closePage(proxy.$route);
proxy?.$tab.closePage(route);
proxy?.$tab.openPage('/materials-management/batchPlan/indexEdit', '审核物资设备批次需求计划', {
id: queryParams.value.mainData.mrpBaseId,
status: form.value.mrpBaseBo.status + '_batchRequirements',