zhengjinyi 1 year ago
parent
commit
4c75a5eaf0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/collection/sms.vue

+ 3 - 3
pages/collection/sms.vue

@@ -337,7 +337,7 @@ export default {
 					value: item.id
 				}))
 			}catch(error){
-				console.log('error',error) 
+				console.log('error',error)
 			}
 		},
 		// 识别收款短信
@@ -521,14 +521,14 @@ export default {
 			// 校验输入为数字
 			this.params.receiptAmount = this.handleReceiptAmount = this.checkedNumberVal(e.detail.value)
 			if (this.isCheckedCharge) {
-				this.params.receiptAmount = (Number(this.params.receiptAmount)*100 + this.params.handlingFee*100)/100
+				this.params.receiptAmount = (Number(this.params.receiptAmount) + this.params.handlingFee).toFixed(2)
 			}
 		},
 		handlingFeeNumber(e) {
 			// 校验输入为数字
 			this.params.handlingFee = Number(this.checkedNumberVal(e.detail.value))
 			if (this.isCheckedCharge) {
-				this.params.receiptAmount = (Number(this.params.receiptAmount)*100 + this.params.handlingFee*100)/100
+				this.params.receiptAmount =(Number(this.params.receiptAmount) + this.params.handlingFee).toFixed(2)
 			}
 		},
 		checkedNumberVal(val) {