|
@@ -192,12 +192,12 @@ const usedMargin = computed(() => {
|
|
|
const serivcefee = computed(() => {
|
|
const serivcefee = computed(() => {
|
|
|
const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
|
const { tradefees = [], agreeunit = 0 } = quote.value ?? {}
|
|
const { tradefees = [], agreeunit = 0 } = quote.value ?? {}
|
|
|
- const { FeeAlgorithm = 1, ExchangeValue = 0.0, MemberDefaultValue = 0.0 } = tradefees.find((e) => e.FeeID === (buyOrSell === BuyOrSell.Buy ? 101 : 102)) ?? {}
|
|
|
|
|
- // 比例
|
|
|
|
|
- if (FeeAlgorithm === 1) {
|
|
|
|
|
|
|
+ const { FeeAlgorithm = 1, ExchangeValue = 0.0, MemberDefaultValue = 0.0 } = tradefees.find((e) => e.FeeID === (buyOrSell === BuyOrSell.Buy ? 105 : 106)) ?? {}
|
|
|
|
|
+ // 固定
|
|
|
|
|
+ if (FeeAlgorithm === 2) {
|
|
|
return enableqty.value * agreeunit * (ExchangeValue+MemberDefaultValue)
|
|
return enableqty.value * agreeunit * (ExchangeValue+MemberDefaultValue)
|
|
|
}
|
|
}
|
|
|
- // 固定
|
|
|
|
|
|
|
+ // 比例
|
|
|
return props.selectedRow.tHDetailEx.holderAmount * (ExchangeValue+MemberDefaultValue)
|
|
return props.selectedRow.tHDetailEx.holderAmount * (ExchangeValue+MemberDefaultValue)
|
|
|
})
|
|
})
|
|
|
|
|
|