|
|
@@ -49,6 +49,7 @@ import { useOrder } from '@/business/trade'
|
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
|
import { useFuturesStore } from '@/stores'
|
|
|
import { EPriceMode, EValidType, EOrderOperateType, EBuildType } from '@/constants/client'
|
|
|
+import { BuyOrSell } from '@/constants/order'
|
|
|
|
|
|
const props = defineProps({
|
|
|
selectedRow: {
|
|
|
@@ -112,6 +113,7 @@ const onSubmit = () => {
|
|
|
formData.BuildType = EBuildType.BUILDTYPE_CLOSE
|
|
|
formData.OrderQty = orderQty.value / agreeunit.value // 数量÷合约乘数
|
|
|
formData.RelatedID = tHDetailEx.tradeID // 关联单号
|
|
|
+ formData.BuyOrSell = tHDetailEx.buyOrSell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy // 持仓反方向
|
|
|
|
|
|
fullloading((hideLoading) => {
|
|
|
formSubmit().then(() => {
|