|
|
@@ -7,11 +7,13 @@
|
|
|
<div class="form-price">
|
|
|
<dl>
|
|
|
<dt>回购价</dt>
|
|
|
- <dd :class="quote.bidColor">{{ handleNumberValue(formatDecimal(quote.bid, quote.decimalplace)) }}</dd>
|
|
|
+ <dd :class="quote.bidColor">{{ handleNumberValue(formatDecimal(quote.bid, quote.decimalplace)) }}
|
|
|
+ </dd>
|
|
|
</dl>
|
|
|
<dl>
|
|
|
<dt>销售价</dt>
|
|
|
- <dd :class="quote.askColor">{{ handleNumberValue(formatDecimal(quote.ask, quote.decimalplace)) }}</dd>
|
|
|
+ <dd :class="quote.askColor">{{ handleNumberValue(formatDecimal(quote.ask, quote.decimalplace)) }}
|
|
|
+ </dd>
|
|
|
</dl>
|
|
|
</div>
|
|
|
<Form ref="formRef" @submit="onSubmit">
|
|
|
@@ -51,11 +53,17 @@
|
|
|
<td>
|
|
|
<span>{{ formatDecimal(item.tHDetailEx.holderPrice) }}</span>
|
|
|
</td>
|
|
|
- <td>
|
|
|
- <span :class="item.tHDetailEx.depositRate <= item.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
|
|
|
+ <td v-if="riskType === 1">
|
|
|
+ <span
|
|
|
+ :class="item.tHDetailEx.depositRate <= item.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
|
|
|
{{ parsePercent(item.tHDetailEx.depositRate) }}
|
|
|
</span>
|
|
|
</td>
|
|
|
+ <td v-if="riskType === 2">
|
|
|
+ <span :class="handlePriceColor(item.tHDetailEx.floatPL)">
|
|
|
+ {{ formatDecimal(item.tHDetailEx.floatPL) }}
|
|
|
+ </span>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
@@ -64,15 +72,16 @@
|
|
|
<div class="g-order-list__box">
|
|
|
<div class="g-order-list__titlebar">
|
|
|
<div class="left">
|
|
|
- <h4 :class="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? 'g-price-up' : 'g-price-down'">
|
|
|
+ <h4
|
|
|
+ :class="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? 'g-price-up' : 'g-price-down'">
|
|
|
{{ selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? '买料:' : '卖料:' }}
|
|
|
{{ selectedRow.goodsCode + '/' + selectedRow.goodsName }}
|
|
|
</h4>
|
|
|
</div>
|
|
|
- <div class="right">
|
|
|
+ <div class="right" v-if="riskType === 1">
|
|
|
<span
|
|
|
:class="selectedRow.tHDetailEx.depositRate <= selectedRow.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">{{
|
|
|
- parsePercent(selectedRow.tHDetailEx.depositRate) }}</span>
|
|
|
+ parsePercent(selectedRow.tHDetailEx.depositRate) }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="g-order-list__content">
|
|
|
@@ -104,7 +113,7 @@
|
|
|
{{ formatDecimal(selectedRow.tHDetailEx.floatPL) }}
|
|
|
</span>
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li v-if="riskType === 1">
|
|
|
<span>已补定金</span>
|
|
|
<span>{{ handleNumberValue(selectedRow.tHDetailEx.restockDeposit) }}</span>
|
|
|
</li>
|
|
|
@@ -126,7 +135,7 @@
|
|
|
</div>
|
|
|
<div class="g-order-list__btnbar">
|
|
|
<Button size="small" @click="showComponent('supplement')" round
|
|
|
- v-if="selectedRow.tHDetailEx.holderQty">补充</Button>
|
|
|
+ v-if="riskType === 1 && selectedRow.tHDetailEx.holderQty">补充</Button>
|
|
|
<template v-if="enableqty(selectedRow)">
|
|
|
<Button size="small" @click="showComponent('delivery')" round>
|
|
|
{{ selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? '提料' : '交料' }}
|
|
|
@@ -138,8 +147,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</ActionSheet>
|
|
|
- <component ref="componentRef" v-bind="{ selectedRow }" :is="componentMap.get(componentId)" @closed="closeComponent"
|
|
|
- v-if="componentId" />
|
|
|
+ <component ref="componentRef" v-bind="{ selectedRow }" :is="componentMap.get(componentId)"
|
|
|
+ @closed="closeComponent" v-if="componentId" />
|
|
|
</app-view>
|
|
|
</template>
|
|
|
|
|
|
@@ -148,7 +157,7 @@ import { useOrder } from '@/business/trade'
|
|
|
import { shallowRef, onMounted, onUnmounted, computed, onActivated, defineAsyncComponent } from 'vue'
|
|
|
import { Form, Field, Stepper, Button, FieldRule, FormInstance, Radio, RadioGroup, showToast, ActionSheet } from 'vant'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
-import { useFuturesStore, useUserStore, useSBYJOrderStore } from '@/stores'
|
|
|
+import { useGlobalStore, useFuturesStore, useUserStore, useSBYJOrderStore } from '@/stores'
|
|
|
import { getGoodsUnitName } from '@/constants/unit'
|
|
|
import { formatDecimal, parsePercent, handleNumberValue, handlePriceColor } from '@/filters'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
@@ -162,8 +171,11 @@ import { getUserId } from '@/services/methods/user'
|
|
|
const { getQueryString } = useNavigation()
|
|
|
const { formData, formSubmit } = useOrder()
|
|
|
const { getSBYJMyOrders, getOrderListByGoodsId } = useSBYJOrderStore()
|
|
|
+const globalStore = useGlobalStore()
|
|
|
const futuresStore = useFuturesStore()
|
|
|
const userStore = useUserStore()
|
|
|
+
|
|
|
+const riskType = globalStore.getSystemInfo('riskType') // 风控类型
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const goodscode = getQueryString('goodscode') ?? ''
|
|
|
const quote = futuresStore.getGoodsQuote(goodscode)
|
|
|
@@ -197,11 +209,13 @@ const enableqty = (item: Model.SBYJMyOrderRsp) => {
|
|
|
|
|
|
// 数量步长列表
|
|
|
const qtyStepList = computed(() => {
|
|
|
+ // 任务 #6013
|
|
|
+ const param1009 = userStore.getSystemParamValue('1009') ?? 1
|
|
|
return [
|
|
|
- agreeunit.value * 100,
|
|
|
- agreeunit.value * 500,
|
|
|
- agreeunit.value * 1000,
|
|
|
- agreeunit.value * 5000
|
|
|
+ agreeunit.value * 1 * (+param1009),
|
|
|
+ agreeunit.value * 5 * (+param1009),
|
|
|
+ agreeunit.value * 10 * (+param1009),
|
|
|
+ agreeunit.value * 50 * (+param1009)
|
|
|
]
|
|
|
})
|
|
|
|