计划需求提报完善

This commit is contained in:
‘huanghaiixia’
2026-04-13 16:16:00 +08:00
parent cd69290b69
commit 53b3e80814
5 changed files with 18 additions and 13 deletions

View File

@ -44,7 +44,7 @@ export const columns: BasicColumn[] = [
title: '年度',
componentType: 'input',
align: 'left',
width: 100,
sorter: true,
},
@ -53,7 +53,7 @@ export const columns: BasicColumn[] = [
title: '版本号',
componentType: 'input',
align: 'left',
width: 100,
sorter: true,
},
@ -89,7 +89,7 @@ export const columns: BasicColumn[] = [
title: '状态',
componentType: 'input',
align: 'left',
width: 80,
sorter: true,
},
];

View File

@ -104,7 +104,7 @@
showResetButton: true,
},
beforeFetch: (params) => {
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit };
},
afterFetch: (res) => {
tableRef.value.setToolBarWidth();
@ -115,7 +115,7 @@
striped: false,
actionColumn: {
width: 160,
width: 140,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },

View File

@ -26,7 +26,7 @@ export const columns: BasicColumn[] = [
title: '年度',
componentType: 'input',
align: 'left',
width: 100,
sorter: true,
},
@ -35,7 +35,7 @@ export const columns: BasicColumn[] = [
title: '版本号',
componentType: 'input',
align: 'left',
width: 100,
sorter: true,
},
@ -62,7 +62,7 @@ export const columns: BasicColumn[] = [
title: '状态',
componentType: 'input',
align: 'left',
width: 80,
sorter: true,
},
];

View File

@ -210,6 +210,7 @@
}
}
const updateData = (data)=> {
dataList.value = []
let arr = data?.lngPlanYearDemandList || [];
let objPng = {}
let objLng = {}
@ -342,6 +343,7 @@
}
async function handleSubmit(type) {
try {
await formRef.value.validateFields();
let objLng = {catCode:'LNG'}
let objPng = {catCode:'PNG'}
dataList.value.forEach((v,idx)=> {

View File

@ -113,7 +113,7 @@
},
immediate: false,
beforeFetch: (params) => {
return { ...params, FormId: formIdComputedRef.value, PK: 'id', page: params.limit, cuCode: curCuCode.value };
return { ...params, FormId: formIdComputedRef.value, PK: 'id',limit:params.limit||1, page: params.limit||1, cuCode: curCuCode.value };
},
afterFetch: (res) => {
tableRef.value.setToolBarWidth();
@ -212,10 +212,11 @@
});
}
function handleRefresh() {
checkBtn()
reload();
}
function handleSuccess() {
checkBtn()
reload();
}
@ -244,13 +245,15 @@
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
);
}
const checkBtn = async() => {
const checkRes = await checkCuPlanState(curCuCode.value)
addDisabled.value = Number((checkRes?.count ?? 0)) !== 0
}
onMounted(async() => {
const res = await getCompDept(userInfo.id)
curCuCode.value = res?.comp?.cuCode
reload({searchInfo:{'limit':1,'size':10,'page':1, cuCode: curCuCode.value}});
const checkRes = await checkCuPlanState(curCuCode.value)
addDisabled.value = (checkRes?.count ?? 0) !== 0
checkBtn()
const maxYearRes = await getCuMaxPlanYear(curCuCode.value)
cuMaxPlanYear.value = maxYearRes?.planYear ? Number(maxYearRes.planYear) : null