|
|
@@ -42,11 +42,11 @@
|
|
|
<ul class="order-total__center">
|
|
|
<li>
|
|
|
<span>订单金额:</span>
|
|
|
- <span>{{ handleNumberValue(formatDecimal(totalAmount)) }}</span>
|
|
|
+ <span>{{ formatDecimal(totalAmount) }}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
<span>订单服务费:</span>
|
|
|
- <span>{{ handleNumberValue(formatDecimal(serivcefee)) }}</span>
|
|
|
+ <span>{{ formatDecimal(serivcefee) }}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
<span>预付款:</span>
|
|
|
@@ -56,11 +56,11 @@
|
|
|
<ul class="order-total__bottom">
|
|
|
<li>
|
|
|
<span>合计总额:</span>
|
|
|
- <span>{{ handleNumberValue(formatDecimal(serivcefee + usedMargin.deposit)) }}</span>
|
|
|
+ <span>{{ formatDecimal(serivcefee + usedMargin.deposit) }}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
<span>应付:</span>
|
|
|
- <span>{{ handleNumberValue(formatDecimal(serivcefee + usedMargin.deposit)) }}</span>
|
|
|
+ <span>{{ formatDecimal(serivcefee + usedMargin.deposit) }}</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -135,13 +135,13 @@ const totalAmount = computed(() => {
|
|
|
// 比率:订单金额*配置值
|
|
|
const serivcefee = computed(() => {
|
|
|
const { tradefees = [], agreeunit = 0 } = quote.value ?? {}
|
|
|
- const { FeeAlgorithm = 1, ExchangeValue = 0.0 } = tradefees.find((e) => e.FeeID === (props.orderType === 1 ? 105 : 106)) ?? {}
|
|
|
- // 比例
|
|
|
- if (FeeAlgorithm === 1) {
|
|
|
- return props.orderQty * agreeunit * ExchangeValue
|
|
|
- }
|
|
|
+ const { FeeAlgorithm = 1, ExchangeValue = 0.0, MemberDefaultValue = 0.0 } = tradefees.find((e) => e.FeeID === (props.orderType === 1 ? 101 : 102)) ?? {}
|
|
|
// 固定
|
|
|
- return totalAmount.value * ExchangeValue
|
|
|
+ if (FeeAlgorithm === 2) {
|
|
|
+ return props.orderQty * agreeunit * (ExchangeValue+MemberDefaultValue)
|
|
|
+ }
|
|
|
+ // 比例
|
|
|
+ return totalAmount.value * (ExchangeValue+MemberDefaultValue)
|
|
|
})
|
|
|
|
|
|
// 预付款
|