Commit 09a4505e authored by Step_by_step's avatar Step_by_step

fix: 融资计算器,融资意向 微小 bug 修复

parent 44b706f8
......@@ -99,6 +99,8 @@ const updateForm = async () => {
item.value = resData[item.propName].split(' ')[0] || '';
} else if (item.propName === "contractRate") {
item.value = resData[item.propName] * 100 || '';
} else if (item.propName === "repayment") {
item.value = '均等还款'
}
item.disabled = true;
return item;
......@@ -107,6 +109,13 @@ const updateForm = async () => {
} else {
formConfig.replace(formConfigArr.map(item => {
if (item.propName !== "repayment") {
if (['firstGoldRatio', 'priceOfItem', 'term'].includes(item.propName)) {
item.value = 0;
} else if (['contractRate', 'firstRentDay'].includes(item.propName)) {
item.value = '';
} else if (item.propName === "repayment") {
item.value = '均等还款'
}
item.disabled = false;
}
return item;
......@@ -210,9 +219,9 @@ const backLast = () => {
</style>
<route>
{
meta: {
keepAlive: true
}
{
meta: {
keepAlive: true
}
</route>
\ No newline at end of file
}
</route>
\ No newline at end of file
......@@ -36,7 +36,7 @@ const getList = async () => {
return {
title: item.intentionNumber,
other_title: item.creationDate,
values: [["合同金额", "状态"], ["¥ " + item.contractAmount, item.intentionStatusN]],
values: [["合同金额", "状态"], ["¥ " + (item.contractAmount || '0.00'), item.intentionStatusN]],
intentionId: item.intentionId
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment