|
@@ -89,7 +89,8 @@
|
|
|
<div class="left">
|
|
<div class="left">
|
|
|
<h4
|
|
<h4
|
|
|
:class="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? 'g-price-up' : 'g-price-down'">
|
|
:class="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? 'g-price-up' : 'g-price-down'">
|
|
|
- {{ selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? $t('enum.BuyOrSell.Buy') : $t('enum.BuyOrSell.Sell') }}{{ ':' }}
|
|
|
|
|
|
|
+ {{ selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? $t('enum.BuyOrSell.Buy') :
|
|
|
|
|
+ $t('enum.BuyOrSell.Sell') }}{{ ':' }}
|
|
|
{{ selectedRow.goodsCode + '/' + selectedRow.goodsName }}
|
|
{{ selectedRow.goodsCode + '/' + selectedRow.goodsName }}
|
|
|
{{ formatDecimal(selectedRow.tHDetailEx.holderPrice, selectedRow.decimalPlace) }}
|
|
{{ formatDecimal(selectedRow.tHDetailEx.holderPrice, selectedRow.decimalPlace) }}
|
|
|
</h4>
|
|
</h4>
|
|
@@ -156,7 +157,8 @@
|
|
|
v-if="riskType === 1 && selectedRow.tHDetailEx.holderQty">补充</Button>
|
|
v-if="riskType === 1 && selectedRow.tHDetailEx.holderQty">补充</Button>
|
|
|
<template v-if="enableqty(selectedRow)">
|
|
<template v-if="enableqty(selectedRow)">
|
|
|
<Button size="small" @click="showComponent('delivery')" round>
|
|
<Button size="small" @click="showComponent('delivery')" round>
|
|
|
- {{ selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? $t('enum.BuyOrSell.Buy') : $t('enum.BuyOrSell.Sell') }}
|
|
|
|
|
|
|
+ {{ selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? $t('enum.BuyOrSell.Buy') :
|
|
|
|
|
+ $t('enum.BuyOrSell.Sell') }}
|
|
|
</Button>
|
|
</Button>
|
|
|
<Button v-if="canClose" size="small" @click="showComponent('closeholder')" round>终止</Button>
|
|
<Button v-if="canClose" size="small" @click="showComponent('closeholder')" round>终止</Button>
|
|
|
</template>
|
|
</template>
|
|
@@ -233,18 +235,19 @@ const enableqty = (item: Model.SBYJMyOrderRsp) => {
|
|
|
|
|
|
|
|
// 数量步长列表
|
|
// 数量步长列表
|
|
|
const qtyStepList = computed(() => {
|
|
const qtyStepList = computed(() => {
|
|
|
- // 任务 #6013
|
|
|
|
|
- const param1009 = userStore.getSystemParamValue('1009') ?? 1
|
|
|
|
|
|
|
+ // 任务 #6640
|
|
|
|
|
+ const param1009 = userStore.getSystemParamValue('1009')
|
|
|
|
|
|
|
|
- const { traderules = [], agreeunit = 0 } = quote.value ?? {}
|
|
|
|
|
- const { ParamValue = 1 } = traderules.find((e) => e.RuleID === 103) ?? {}
|
|
|
|
|
- const min = ParamValue * agreeunit // ParamValue 是数量
|
|
|
|
|
- return [
|
|
|
|
|
- 1 * (+param1009) * min,
|
|
|
|
|
- 5 * (+param1009) * min,
|
|
|
|
|
- 10 * (+param1009) * min,
|
|
|
|
|
- 50 * (+param1009) * min
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ if (param1009) {
|
|
|
|
|
+ const values = param1009.split(',')
|
|
|
|
|
+ const { traderules = [], agreeunit = 0 } = quote.value ?? {}
|
|
|
|
|
+ const { ParamValue = 1 } = traderules.find((e) => e.RuleID === 103) ?? {}
|
|
|
|
|
+ const min = ParamValue * agreeunit // ParamValue 是数量
|
|
|
|
|
+
|
|
|
|
|
+ return values.map((value) => (+value) * min)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return []
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const showChart = () => {
|
|
const showChart = () => {
|