计划需求提报完善
This commit is contained in:
@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
@ -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' },
|
||||
|
||||
@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
@ -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)=> {
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user