feat(ctr): 优化合同提交流程并添加更新功能
- 修改合同提交成功后的步骤重置逻辑,根据合同类型跳转到不同页面 - 更新合同信息页面,添加批量导出功能 - 优化合同信息获取逻辑,提高页面加载速度
This commit is contained in:
@ -319,7 +319,12 @@ const submitForm = async () => {
|
||||
}
|
||||
resetForm();
|
||||
ElMessage.success('合同提交成功');
|
||||
active.value = 0; // 重置步骤
|
||||
// active.value = 0; // 重置步骤
|
||||
if (contract_type.value === 'income') {
|
||||
proxy.$router.push('/ctr/incomeContract');
|
||||
} else {
|
||||
proxy.$router.push('/ctr/expensesContract');
|
||||
}
|
||||
} else {
|
||||
ElMessage.error('请填写完整的付款信息');
|
||||
}
|
||||
|
@ -220,14 +220,96 @@ const handleChoose = async () => {
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
const id = route.query.id;
|
||||
if (id) {
|
||||
const { data } = await getIncomeContract(id);
|
||||
form.value.id = data.id;
|
||||
form.value.contractOwner = data.contractOwner
|
||||
} else {
|
||||
router.push('/ctr/incomeContract');
|
||||
}
|
||||
// const id = route.query.id;
|
||||
// if (id) {
|
||||
// const { data } = await getIncomeContract(id);
|
||||
// form.value.id = data.id;
|
||||
// form.value.contractOwner = data.contractOwner
|
||||
// } else {
|
||||
// router.push('/ctr/incomeContract');
|
||||
// }
|
||||
|
||||
proxy?.download(
|
||||
'/progress/progressCategory/export',
|
||||
{
|
||||
"ids": [
|
||||
"1951552037761114114",
|
||||
"1951552037811445761",
|
||||
"1951552037811445762",
|
||||
"1951552037811445763",
|
||||
"1951552037811445764",
|
||||
"1951552037811445765",
|
||||
"1951552037811445766",
|
||||
"1951552037811445767",
|
||||
"1951552037865971713",
|
||||
"1951552037865971714",
|
||||
"1951552037865971715",
|
||||
"1951552037865971716",
|
||||
"1951552037865971717",
|
||||
"1951552037865971718",
|
||||
"1951552037865971719",
|
||||
"1951552037865971720",
|
||||
"1951552037865971721",
|
||||
"1951552037865971722",
|
||||
"1951552037865971723",
|
||||
"1951552037865971724",
|
||||
"1951552037865971725",
|
||||
"1951552037924691969",
|
||||
"1951552037924691970",
|
||||
"1951552037924691971",
|
||||
"1951552037924691972",
|
||||
"1951552037924691973",
|
||||
"1951552037924691974",
|
||||
"1951552037924691975",
|
||||
"1951552037924691976",
|
||||
"1951552037924691977",
|
||||
"1951552037962440706",
|
||||
"1951552037962440707",
|
||||
"1951552037962440708",
|
||||
"1951552037962440709",
|
||||
"1951552037962440710",
|
||||
"1951552037962440711",
|
||||
"1951552037962440712",
|
||||
"1951552038004383745",
|
||||
"1951552038004383746",
|
||||
"1951552038004383747",
|
||||
"1951552038004383748",
|
||||
"1951552038004383749",
|
||||
"1951552038004383750",
|
||||
"1951552038004383751",
|
||||
"1951552038004383752",
|
||||
"1951552038004383753",
|
||||
"1951552038004383754",
|
||||
"1951552038058909698",
|
||||
"1951552038058909699",
|
||||
"1951552038058909700",
|
||||
"1951552038058909701",
|
||||
"1951552038058909702",
|
||||
"1951552038058909703",
|
||||
"1951552038058909704",
|
||||
"1951552038096658434",
|
||||
"1951552038096658435",
|
||||
"1951552038096658436",
|
||||
"1951552038096658437",
|
||||
"1951552038096658438",
|
||||
"1951552038096658439",
|
||||
"1951552038096658440",
|
||||
"1951552038096658441",
|
||||
"1951552038096658442",
|
||||
"1951552038096658443",
|
||||
"1951552038096658444",
|
||||
"1951552038146990081",
|
||||
"1951552038146990082",
|
||||
"1951552038146990083",
|
||||
"1951552038146990084",
|
||||
"1951552038146990085",
|
||||
"1951552038188933122",
|
||||
"1951552038188933123",
|
||||
"1951552038188933124"
|
||||
]
|
||||
},
|
||||
`1.xlsx`
|
||||
);
|
||||
})
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
|
Reference in New Issue
Block a user