|
|
@@ -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>{{ item.goodsCode }}</b>
|
|
|
+ <b>{{ goodsname(item)}}</b>
|
|
|
<span>{{ formatDate(item.tHDetailEx.tradeTime) }}</span>
|
|
|
</div>
|
|
|
<div :class="['right', !item.tHDetailEx.buyOrSell ? 'buy' : 'sell']">
|
|
|
@@ -43,7 +43,7 @@
|
|
|
</li>
|
|
|
<li>
|
|
|
<span>{{ $t('position.goods.holddetail.holderqty') }}:</span>
|
|
|
- <span>{{ enableqty(item) + getGoodsUnitName(item.goodsUnitID) }}</span>
|
|
|
+ <span>{{ enableqty(item) }}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
<span>{{ $t('position.goods.preamounts') }}:</span>
|
|
|
@@ -93,7 +93,6 @@ import { getFileUrl } from '@/filters'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { getBuyOrSellName, BuyOrSell, PriceMode } from '@/constants/order'
|
|
|
import { formatDecimal, formatDate, handleRequestBigNumber, handlePriceColor } from '@/filters'
|
|
|
-import { getGoodsUnitName } from '@/constants/unit'
|
|
|
import { useSBYJOrderStore, i18n } from '@/stores'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
|
@@ -134,8 +133,8 @@ const showComponent = (componentName: string, row: Model.SBYJMyOrderRsp) => {
|
|
|
|
|
|
// 可用重量
|
|
|
const enableqty = (item: Model.SBYJMyOrderRsp) => {
|
|
|
- const { tHDetailEx, agreeUnit } = item
|
|
|
- return (tHDetailEx.holderQty - tHDetailEx.freezeQty) * agreeUnit
|
|
|
+ const { tHDetailEx } = item
|
|
|
+ return tHDetailEx.holderQty - tHDetailEx.freezeQty
|
|
|
}
|
|
|
|
|
|
const getImageUrl = (url: string) => {
|
|
|
@@ -145,6 +144,19 @@ const getImageUrl = (url: string) => {
|
|
|
return firstImg ? getFileUrl(firstImg) : ''
|
|
|
}
|
|
|
|
|
|
+const goodsname = (item: Model.SBYJMyOrderRsp) => {
|
|
|
+ switch (i18n.global.locale) {
|
|
|
+ case 'zh-CN':
|
|
|
+ return item.goodsName
|
|
|
+ case 'en-US':
|
|
|
+ return item.goodsnameen
|
|
|
+ case 'zh-TW':
|
|
|
+ return item.goodsnametw
|
|
|
+ default:
|
|
|
+ return item.goodsnameth
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
|
|
|
dialog({
|
|
|
message: t('position.goods.tips3'),
|