|
@@ -5,7 +5,7 @@
|
|
|
<div class="g-product-list__box" v-for="(item, index) in dataList" :key="index">
|
|
<div class="g-product-list__box" v-for="(item, index) in dataList" :key="index">
|
|
|
<div class="g-product-list__titlebar">
|
|
<div class="g-product-list__titlebar">
|
|
|
<div class="left">
|
|
<div class="left">
|
|
|
- <b>订单号:{{ item.tradeid }}</b>
|
|
|
|
|
|
|
+ <b>{{ $t('position.goods.orderid') }}:{{ item.tradeid }}</b>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right">
|
|
<div class="right">
|
|
|
<b :class="!item.buyorsell ? 'g-price-up' : 'g-price-down'">
|
|
<b :class="!item.buyorsell ? 'g-price-up' : 'g-price-down'">
|
|
@@ -27,28 +27,16 @@
|
|
|
<span>{{ $t('position.goods.holddetail.holderamount') }}:</span>
|
|
<span>{{ $t('position.goods.holddetail.holderamount') }}:</span>
|
|
|
<span>{{ formatDecimal(item.tradeamount, item.decimalplace) }}</span>
|
|
<span>{{ formatDecimal(item.tradeamount, item.decimalplace) }}</span>
|
|
|
</li>
|
|
</li>
|
|
|
- <!-- <li>
|
|
|
|
|
- <span>{{ $t('position.goods.holddetail.usedMargin') }}:</span>
|
|
|
|
|
- <span>{{ formatDecimal(item.payeddeposit+item.refundabledeposit, item.decimalplace) }}</span>
|
|
|
|
|
- </li> -->
|
|
|
|
|
<li>
|
|
<li>
|
|
|
- <span>货值增减:</span>
|
|
|
|
|
|
|
+ <span>{{ $t('position.goods.closepl') }}:</span>
|
|
|
<span :class="handlePriceColor(item.floatpl)">
|
|
<span :class="handlePriceColor(item.floatpl)">
|
|
|
{{ formatDecimal(item.floatpl) }}
|
|
{{ formatDecimal(item.floatpl) }}
|
|
|
</span>
|
|
</span>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <span>退订价:</span>
|
|
|
|
|
|
|
+ <span>{{ $t('position.goods.holderamount') }}:</span>
|
|
|
<span>{{ formatDecimal(item.holderprice, item.decimalplace) }}</span>
|
|
<span>{{ formatDecimal(item.holderprice, item.decimalplace) }}</span>
|
|
|
</li>
|
|
</li>
|
|
|
- <!-- <li>
|
|
|
|
|
- <span>{{ $t('position.goods.holddetail.freezeqty') }}:</span>
|
|
|
|
|
- <span>{{ item.freezeqty }}</span>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <span>{{ $t('position.goods.holddetail.holderqty') }}:</span>
|
|
|
|
|
- <span>{{ enableqty(item) + getGoodsUnitName(item.goodunitid) }}</span>
|
|
|
|
|
- </li> -->
|
|
|
|
|
<li>
|
|
<li>
|
|
|
<span>{{ $t('position.goods.holddetail.tradetime') }}:</span>
|
|
<span>{{ $t('position.goods.holddetail.tradetime') }}:</span>
|
|
|
<span>{{ formatDate(item.tradetime, "YYYY-MM-DD HH:mm:ss") }}</span>
|
|
<span>{{ formatDate(item.tradetime, "YYYY-MM-DD HH:mm:ss") }}</span>
|
|
@@ -66,16 +54,11 @@ import { shallowRef } from 'vue'
|
|
|
import { Image } from 'vant'
|
|
import { Image } from 'vant'
|
|
|
import { formatDecimal, handlePriceColor } from '@/filters'
|
|
import { formatDecimal, handlePriceColor } from '@/filters'
|
|
|
import { getFileUrl, formatDate } from '@/filters'
|
|
import { getFileUrl, formatDate } from '@/filters'
|
|
|
-import { getGoodsUnitName } from '@/constants/unit'
|
|
|
|
|
import { getBuyOrSellName } from '@/constants/order'
|
|
import { getBuyOrSellName } from '@/constants/order'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryTradeHolderDetailEx } from '@/services/api/order'
|
|
import { queryTradeHolderDetailEx } from '@/services/api/order'
|
|
|
-import { useGlobalStore } from '@/stores'
|
|
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
|
|
|
|
|
-const globalStore = useGlobalStore()
|
|
|
|
|
-const riskType = globalStore.getSystemInfo('riskType') // 风控类型
|
|
|
|
|
-
|
|
|
|
|
const error = shallowRef(false)
|
|
const error = shallowRef(false)
|
|
|
const dataList = shallowRef<Model.TradeHolderDetailExRsp[]>([])
|
|
const dataList = shallowRef<Model.TradeHolderDetailExRsp[]>([])
|
|
|
|
|
|
|
@@ -96,11 +79,6 @@ const { loading, pageIndex, pageCount, run } = useRequest(queryTradeHolderDetail
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-// 可用重量
|
|
|
|
|
-const enableqty = (item: Model.TradeHolderDetailExRsp) => {
|
|
|
|
|
- return (item.holderqty - item.freezeqty) * item.agreeunit
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
const getImageUrl = (url: string) => {
|
|
const getImageUrl = (url: string) => {
|
|
|
const [firstImg] = url.split(',')
|
|
const [firstImg] = url.split(',')
|
|
|
return firstImg ? getFileUrl(firstImg) : ''
|
|
return firstImg ? getFileUrl(firstImg) : ''
|