li.shaoyi 10 bulan lalu
induk
melakukan
de1c93d3fb
1 mengubah file dengan 10 tambahan dan 3 penghapusan
  1. 10 3
      src/packages/tss/views/order/position/Index.vue

+ 10 - 3
src/packages/tss/views/order/position/Index.vue

@@ -17,7 +17,7 @@
                 <div class="order-list__box" v-for="(item, index) in orderComputedList" :key="index">
                     <div class="order-list__titlebar">
                         <div class="left">
-                            <b>{{ goodsname(item)}}</b>
+                            <b>{{ goodsname(item) }}</b>
                             <span>{{ formatDate(item.tHDetailEx.tradeTime) }}</span>
                         </div>
                         <div :class="['right', !item.tHDetailEx.buyOrSell ? 'buy' : 'sell']">
@@ -70,7 +70,8 @@
                         </div>
                     </div>
                     <div class="order-list__btnbar" v-if="item.tHDetailEx.holderQty">
-                        <Button type="primary" v-if="enableqty(item) && [1, 3].includes(goodstradetype(item))" @click="onCloseSumit(item)">
+                        <Button type="primary" v-if="enableqty(item) && [1, 3].includes(goodstradetype(item))"
+                            @click="onCloseSumit(item)">
                             {{ $t('operation.close') }}
                         </Button>
                         <Button type="danger" @click="showComponent('delivery', item)">
@@ -92,7 +93,7 @@ import { getFileUrl } from '@/filters'
 import { useComponent } from '@/hooks/component'
 import { getBuyOrSellName, BuyOrSell, PriceMode } from '@/constants/order'
 import { formatDecimal, formatDate, handleRequestBigNumber, handlePriceColor } from '@/filters'
-import { useSBYJOrderStore, i18n, useFuturesStore } from '@/stores'
+import { useSBYJOrderStore, i18n, useFuturesStore, useLoginStore, useAccountStore } from '@/stores'
 import { useOrder } from '@/business/trade'
 import { dialog, fullloading } from '@/utils/vant'
 import { EBuildType, EDelistingType, EListingSelectType, EValidType } from '@/constants/client'
@@ -164,6 +165,9 @@ const goodsname = (item: Model.SBYJMyOrderRsp) => {
 }
 
 const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
+    const loginStore = useLoginStore()
+    const accountStore = useAccountStore()
+
     dialog({
         message: t('position.goods.tips3'),
         showCancelButton: true,
@@ -171,6 +175,9 @@ const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
         const { marketID, goodsID, buyOrSell, tradeID } = item.tHDetailEx
         /// 市场ID
         formData.Header = { GoodsID: goodsID }
+        formData.LoginID = loginStore.loginId
+        formData.AccountID = accountStore.currentAccountId
+        formData.OperatorID = loginStore.loginId
         formData.MarketID = marketID
         formData.BuyOrSell = buyOrSell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
         formData.GoodsID = goodsID