|
|
@@ -24,13 +24,13 @@
|
|
|
:value="formatDecimal(usedMargin, selectedRow.decimalPlace)" />
|
|
|
<Cell v-if="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy"
|
|
|
:title="$t('position.goods.deposit')" :value="formatDecimal(deposit)" />
|
|
|
- <Cell v-if="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy" :title="$t('position.goods.fees1')"
|
|
|
+ <!-- <Cell v-if="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy" :title="$t('position.goods.fees1')"
|
|
|
:value="formatDecimal(serivcefee)" />
|
|
|
<Cell v-if="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Sell" :title="$t('position.goods.fees2')"
|
|
|
- :value="formatDecimal(serivcefee)" />
|
|
|
+ :value="formatDecimal(serivcefee)" /> -->
|
|
|
<Cell :title="$t('position.goods.pricemove')" :value="formatDecimal(pricemove)" />
|
|
|
<Cell :title="$t('position.goods.expressfees')" :value="formatDecimal(shipping)" />
|
|
|
- <Cell :title="$t('position.goods.otherfees')" :value="formatDecimal(otherfees)" />
|
|
|
+ <!-- <Cell :title="$t('position.goods.otherfees')" :value="formatDecimal(otherfees)" /> -->
|
|
|
<Cell v-if="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy"
|
|
|
:title="$t('position.goods.deposit1')"
|
|
|
:value="formatDecimal(deposit + serivcefee + pricemove + shipping + otherfees)" />
|
|
|
@@ -98,7 +98,7 @@ const showContact = shallowRef(false) // 显示联系人选择列表
|
|
|
const { formSubmit, formData } = useOfflineDelivery()
|
|
|
const futuresStore = useFuturesStore()
|
|
|
const goods = futuresStore.getGoods(props.selectedRow.goodsCode)
|
|
|
-const quote = futuresStore.getGoodsQuote(props.selectedRow.goodsCode)
|
|
|
+// const quote = futuresStore.getGoodsQuote(props.selectedRow.goodsCode)
|
|
|
const { mindeliverylot = 0 } = goods ?? {}
|
|
|
|
|
|
const goodsname = computed(() => {
|
|
|
@@ -137,36 +137,53 @@ const formRules: { [key: string]: FieldRule[] } = {
|
|
|
// 升贴水
|
|
|
const pricemove = computed(() => {
|
|
|
const { buypricemovealgorithm, buypricemovevalue = 0.0, sellpricemovevalue = 0.0, sellpricemovealgorithm } = goods ?? {}
|
|
|
- const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
|
+ const { buyOrSell, holderAmount } = props.selectedRow.tHDetailEx
|
|
|
const { agreeUnit } = props.selectedRow
|
|
|
if (buyOrSell === BuyOrSell.Buy) {
|
|
|
- return buypricemovealgorithm === 1 ? 0.0 : buypricemovevalue * agreeUnit * enableqty.value
|
|
|
+ return buypricemovealgorithm === 1 ? holderAmount * buypricemovevalue : buypricemovevalue * agreeUnit * enableqty.value
|
|
|
} else {
|
|
|
- return sellpricemovealgorithm === 1 ? 0.0 : sellpricemovevalue * agreeUnit * enableqty.value
|
|
|
+ return sellpricemovealgorithm === 1 ? holderAmount * sellpricemovevalue : sellpricemovevalue * agreeUnit * enableqty.value
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+// 提货费 = 取交易费用配置 105
|
|
|
+// 固定: 可用量*合约单位*配置值
|
|
|
+// 比率:订单金额*配置值
|
|
|
+const serivcefee = computed(() => {
|
|
|
+ // const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
|
+ // const { tradefees = [], agreeunit = 0 } = quote.value ?? {}
|
|
|
+ // 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 props.selectedRow.tHDetailEx.holderAmount * (ExchangeValue+MemberDefaultValue)
|
|
|
+ return 0.0
|
|
|
+})
|
|
|
+
|
|
|
// 其他费用
|
|
|
const otherfees = computed(() => {
|
|
|
- const { buyotherfeealgorithm, buyotherfeevalue = 0.0, sellotherfeevalue = 0.0, sellotherfeealgorithm } = goods ?? {}
|
|
|
- const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
|
- const { agreeUnit } = props.selectedRow
|
|
|
- if (buyOrSell === BuyOrSell.Buy) {
|
|
|
- return buyotherfeealgorithm === 1 ? 0.0 : buyotherfeevalue * agreeUnit * enableqty.value
|
|
|
- } else {
|
|
|
- return sellotherfeealgorithm === 1 ? 0.0 : sellotherfeevalue * agreeUnit * enableqty.value
|
|
|
- }
|
|
|
+ // const { buyotherfeealgorithm, buyotherfeevalue = 0.0, sellotherfeevalue = 0.0, sellotherfeealgorithm } = goods ?? {}
|
|
|
+ // const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
|
+ // const { agreeUnit } = props.selectedRow
|
|
|
+ // if (buyOrSell === BuyOrSell.Buy) {
|
|
|
+ // return buyotherfeealgorithm === 1 ? 0.0 : buyotherfeevalue * agreeUnit * enableqty.value
|
|
|
+ // } else {
|
|
|
+ // return sellotherfeealgorithm === 1 ? 0.0 : sellotherfeevalue * agreeUnit * enableqty.value
|
|
|
+ // }
|
|
|
+ return 0.0
|
|
|
})
|
|
|
|
|
|
// 运费
|
|
|
const shipping = computed(() => {
|
|
|
const { buyshippingfeealgorithm, buyshippingfeevalue = 0.0, sellshippingfeevalue = 0.0, sellshippingfeealgorithm } = goods ?? {}
|
|
|
- const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
|
+ const { buyOrSell, holderAmount } = props.selectedRow.tHDetailEx
|
|
|
const { agreeUnit } = props.selectedRow
|
|
|
if (buyOrSell === BuyOrSell.Buy) {
|
|
|
- return buyshippingfeealgorithm === 1 ? 0.0 : buyshippingfeevalue * agreeUnit * enableqty.value
|
|
|
+ return buyshippingfeealgorithm === 1 ? holderAmount * buyshippingfeevalue : buyshippingfeevalue * agreeUnit * enableqty.value
|
|
|
} else {
|
|
|
- return sellshippingfeealgorithm === 1 ? 0.0 : sellshippingfeevalue * agreeUnit * enableqty.value
|
|
|
+ return sellshippingfeealgorithm === 1 ? holderAmount * sellshippingfeevalue : sellshippingfeevalue * agreeUnit * enableqty.value
|
|
|
}
|
|
|
})
|
|
|
|
|
|
@@ -186,21 +203,6 @@ const usedMargin = computed(() => {
|
|
|
return props.selectedRow.tHDetailEx.payedDeposit + props.selectedRow.tHDetailEx.restockDeposit
|
|
|
})
|
|
|
|
|
|
-// 提货费 = 取交易费用配置 105
|
|
|
-// 固定: 可用量*合约单位*配置值
|
|
|
-// 比率:订单金额*配置值
|
|
|
-const serivcefee = computed(() => {
|
|
|
- const { buyOrSell } = props.selectedRow.tHDetailEx
|
|
|
- const { tradefees = [], agreeunit = 0 } = quote.value ?? {}
|
|
|
- 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 props.selectedRow.tHDetailEx.holderAmount * (ExchangeValue+MemberDefaultValue)
|
|
|
-})
|
|
|
-
|
|
|
// 选择联系信息
|
|
|
const contactChange = (item: Model.UserReceiveInfoRsp) => {
|
|
|
const contact = `${item.receivername} ${item.phonenum}`
|