|
|
@@ -8,11 +8,13 @@
|
|
|
<div class="form-price" v-if="quote">
|
|
|
<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" class="g-form__container" @submit="onSubmit">
|
|
|
@@ -54,7 +56,7 @@ import { handleRequestBigNumber, handleNumberValue, formatDecimal, parsePercent
|
|
|
import { getGoodsUnitName } from '@/constants/unit'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
import { useFuturesStore } from '@/stores'
|
|
|
-import { EPriceMode, EValidType, EOrderOperateType, EBuildType } from '@/constants/client'
|
|
|
+import { EPriceMode, EValidType, EBuildType } from '@/constants/client'
|
|
|
import { BuyOrSell } from '@/constants/order'
|
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
@@ -115,7 +117,7 @@ const onSubmit = () => {
|
|
|
formData.PriceMode = EPriceMode.PRICEMODE_MARKET
|
|
|
formData.GoodsID = goodsid
|
|
|
formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
- formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
|
|
|
+ formData.OperateType = 24
|
|
|
formData.BuildType = EBuildType.BUILDTYPE_CLOSE
|
|
|
formData.OrderQty = orderQty.value / agreeunit.value // 数量÷合约乘数
|
|
|
formData.RelatedID = handleRequestBigNumber(tHDetailEx.tradeID) // 关联单号
|