|
@@ -6,7 +6,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.goodsnamedisplay }}</b>
|
|
|
|
|
|
|
+ <b>{{ goodsname(item) }}</b>
|
|
|
<span>{{ formatDate(item.reqtime) }}</span>
|
|
<span>{{ formatDate(item.reqtime) }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right">
|
|
<div class="right">
|
|
@@ -32,14 +32,14 @@
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<span>{{ $t('delivery.offline.deliveryqty') }}:</span>
|
|
<span>{{ $t('delivery.offline.deliveryqty') }}:</span>
|
|
|
- <span>{{ item.deliveryqty }}</span>
|
|
|
|
|
|
|
+ <span>{{ item.deliverylot }}</span>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<span>{{ $t('delivery.offline.applydate') }}:</span>
|
|
<span>{{ $t('delivery.offline.applydate') }}:</span>
|
|
|
<span>{{ formatDate(item.reqtime) }}</span>
|
|
<span>{{ formatDate(item.reqtime) }}</span>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <span>{{ $t('delivery.offline.deliveryinfo2') }}:</span>
|
|
|
|
|
|
|
+ <span>{{ $t('delivery.offline.deliveryinfo1') }}:</span>
|
|
|
<span>{{ item.deliveryinfo }}</span>
|
|
<span>{{ item.deliveryinfo }}</span>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -122,6 +122,19 @@ const onCancel = (row: Model.MineTradeGoodsDeliveryOfflinesRsp) => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const goodsname = (item: Model.MineTradeGoodsDeliveryOfflinesRsp) => {
|
|
|
|
|
+ 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 getImageUrl = (url: string) => {
|
|
const getImageUrl = (url: string) => {
|
|
|
const [firstImg] = url.split(',')
|
|
const [firstImg] = url.split(',')
|
|
|
return firstImg ? getFileUrl(firstImg) : ''
|
|
return firstImg ? getFileUrl(firstImg) : ''
|