Commit 6269ef00 by 岑成威

fix: update evaluation price handling in signInfo component

1 parent e1e186e6
......@@ -577,20 +577,15 @@ Page({
)
const pickedTemplate =
template || this.getDefaultTemplate(this.data.contractTemplateList)
const evalPrice = formData.evalPrice || query?.evalPrice || ''
this.setData({
formFields: newFormFields,
'formData.paymentType': value,
'formData.finalPrice': '',
'formData.depositPrice': '',
'formData.fullPrice': '',
'formData.fullPrice': value == 2 ? evalPrice : '',
'formData.docTemplateId': pickedTemplate?.docTemplateId || '',
'formData.docTemplateName': pickedTemplate?.docTemplateName || ''
}, () => {
setTimeout(() => {
if (query?.evalPrice && value == 2) {
this.setData({ 'formData.fullPrice': query.evalPrice })
}
}, 150)
})
},
......
......@@ -433,7 +433,7 @@
<view class="flex align-center mb-24">
<view class="title-label-see">评估价</view>
<view>
{{ formData.fullPrice }}
{{ formData.evalPrice }}
<text>元</text>
</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!