Commit 09a4505e authored by Step_by_step's avatar Step_by_step

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

parent 44b706f8
...@@ -99,6 +99,8 @@ const updateForm = async () => { ...@@ -99,6 +99,8 @@ const updateForm = async () => {
item.value = resData[item.propName].split(' ')[0] || ''; item.value = resData[item.propName].split(' ')[0] || '';
} else if (item.propName === "contractRate") { } else if (item.propName === "contractRate") {
item.value = resData[item.propName] * 100 || ''; item.value = resData[item.propName] * 100 || '';
} else if (item.propName === "repayment") {
item.value = '均等还款'
} }
item.disabled = true; item.disabled = true;
return item; return item;
...@@ -107,6 +109,13 @@ const updateForm = async () => { ...@@ -107,6 +109,13 @@ const updateForm = async () => {
} else { } else {
formConfig.replace(formConfigArr.map(item => { formConfig.replace(formConfigArr.map(item => {
if (item.propName !== "repayment") { 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; item.disabled = false;
} }
return item; return item;
...@@ -210,9 +219,9 @@ const backLast = () => { ...@@ -210,9 +219,9 @@ const backLast = () => {
</style> </style>
<route> <route>
{ {
meta: { meta: {
keepAlive: true keepAlive: true
} }
} }
</route> </route>
\ No newline at end of file \ No newline at end of file
...@@ -36,7 +36,7 @@ const getList = async () => { ...@@ -36,7 +36,7 @@ const getList = async () => {
return { return {
title: item.intentionNumber, title: item.intentionNumber,
other_title: item.creationDate, other_title: item.creationDate,
values: [["合同金额", "状态"], ["¥ " + item.contractAmount, item.intentionStatusN]], values: [["合同金额", "状态"], ["¥ " + (item.contractAmount || '0.00'), item.intentionStatusN]],
intentionId: item.intentionId 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