计划需求提报完善
This commit is contained in:
@ -44,7 +44,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '年度',
|
title: '年度',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '版本号',
|
title: '版本号',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '状态',
|
title: '状态',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 80,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -104,7 +104,7 @@
|
|||||||
showResetButton: true,
|
showResetButton: true,
|
||||||
},
|
},
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
|
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit };
|
||||||
},
|
},
|
||||||
afterFetch: (res) => {
|
afterFetch: (res) => {
|
||||||
tableRef.value.setToolBarWidth();
|
tableRef.value.setToolBarWidth();
|
||||||
@ -115,7 +115,7 @@
|
|||||||
|
|
||||||
striped: false,
|
striped: false,
|
||||||
actionColumn: {
|
actionColumn: {
|
||||||
width: 160,
|
width: 140,
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
slots: { customRender: 'action' },
|
slots: { customRender: 'action' },
|
||||||
|
|||||||
@ -26,7 +26,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '年度',
|
title: '年度',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '版本号',
|
title: '版本号',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '状态',
|
title: '状态',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 80,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -210,6 +210,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const updateData = (data)=> {
|
const updateData = (data)=> {
|
||||||
|
dataList.value = []
|
||||||
let arr = data?.lngPlanYearDemandList || [];
|
let arr = data?.lngPlanYearDemandList || [];
|
||||||
let objPng = {}
|
let objPng = {}
|
||||||
let objLng = {}
|
let objLng = {}
|
||||||
@ -342,6 +343,7 @@
|
|||||||
}
|
}
|
||||||
async function handleSubmit(type) {
|
async function handleSubmit(type) {
|
||||||
try {
|
try {
|
||||||
|
await formRef.value.validateFields();
|
||||||
let objLng = {catCode:'LNG'}
|
let objLng = {catCode:'LNG'}
|
||||||
let objPng = {catCode:'PNG'}
|
let objPng = {catCode:'PNG'}
|
||||||
dataList.value.forEach((v,idx)=> {
|
dataList.value.forEach((v,idx)=> {
|
||||||
|
|||||||
@ -113,7 +113,7 @@
|
|||||||
},
|
},
|
||||||
immediate: false,
|
immediate: false,
|
||||||
beforeFetch: (params) => {
|
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) => {
|
afterFetch: (res) => {
|
||||||
tableRef.value.setToolBarWidth();
|
tableRef.value.setToolBarWidth();
|
||||||
@ -212,10 +212,11 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function handleRefresh() {
|
function handleRefresh() {
|
||||||
|
checkBtn()
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
|
checkBtn()
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,13 +245,15 @@
|
|||||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
const checkBtn = async() => {
|
||||||
|
const checkRes = await checkCuPlanState(curCuCode.value)
|
||||||
|
addDisabled.value = Number((checkRes?.count ?? 0)) !== 0
|
||||||
|
}
|
||||||
onMounted(async() => {
|
onMounted(async() => {
|
||||||
const res = await getCompDept(userInfo.id)
|
const res = await getCompDept(userInfo.id)
|
||||||
curCuCode.value = res?.comp?.cuCode
|
curCuCode.value = res?.comp?.cuCode
|
||||||
reload({searchInfo:{'limit':1,'size':10,'page':1, cuCode: curCuCode.value}});
|
reload({searchInfo:{'limit':1,'size':10,'page':1, cuCode: curCuCode.value}});
|
||||||
const checkRes = await checkCuPlanState(curCuCode.value)
|
checkBtn()
|
||||||
addDisabled.value = (checkRes?.count ?? 0) !== 0
|
|
||||||
|
|
||||||
const maxYearRes = await getCuMaxPlanYear(curCuCode.value)
|
const maxYearRes = await getCuMaxPlanYear(curCuCode.value)
|
||||||
cuMaxPlanYear.value = maxYearRes?.planYear ? Number(maxYearRes.planYear) : null
|
cuMaxPlanYear.value = maxYearRes?.planYear ? Number(maxYearRes.planYear) : null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user