|
@@ -64,7 +64,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="g-order-list__btnbar" v-if="item.tHDetailEx.holderQty">
|
|
<div class="g-order-list__btnbar" v-if="item.tHDetailEx.holderQty">
|
|
|
<Button size="small" v-if="enableqty(item) != 0 && !onlyDelivery" @click="showComponent('close', item)" round>{{ $t('operation.close') }}</Button>
|
|
<Button size="small" v-if="enableqty(item) != 0 && !onlyDelivery" @click="showComponent('close', item)" round>{{ $t('operation.close') }}</Button>
|
|
|
- <Button size="small" @click="showComponent('delivery', item)" round>{{ $t('operation.delivery') }}</Button>
|
|
|
|
|
|
|
+ <Button size="small" v-if="deliveryflag(item) != 0" @click="showComponent('delivery', item)" round>{{ $t('operation.delivery') }}</Button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -82,7 +82,7 @@ import { useComponent } from '@/hooks/component'
|
|
|
import { getBuyOrSellName } from '@/constants/order'
|
|
import { getBuyOrSellName } from '@/constants/order'
|
|
|
import { formatDecimal, formatDate, handlePriceColor } from '@/filters'
|
|
import { formatDecimal, formatDate, handlePriceColor } from '@/filters'
|
|
|
import { getGoodsUnitName } from '@/constants/unit'
|
|
import { getGoodsUnitName } from '@/constants/unit'
|
|
|
-import { useSBYJOrderStore } from '@/stores'
|
|
|
|
|
|
|
+import { useSBYJOrderStore, useFuturesStore } from '@/stores'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
import eventBus from '@/services/bus'
|
|
import eventBus from '@/services/bus'
|
|
@@ -100,6 +100,13 @@ const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
|
const { getSBYJMyOrders, $toRefs } = useSBYJOrderStore()
|
|
const { getSBYJMyOrders, $toRefs } = useSBYJOrderStore()
|
|
|
const { orderComputedList, loading, error } = $toRefs()
|
|
const { orderComputedList, loading, error } = $toRefs()
|
|
|
|
|
|
|
|
|
|
+const futuresStore = useFuturesStore()
|
|
|
|
|
+
|
|
|
|
|
+const deliveryflag = (item: Model.SBYJMyOrderRsp) => {
|
|
|
|
|
+ const { deliveryflag } = futuresStore.getGoods(item.goodsCode) ?? {}
|
|
|
|
|
+ return deliveryflag
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const componentMap = new Map<string, unknown>([
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['close', defineAsyncComponent(() => import('./components/transfer/Index.vue'))],
|
|
['close', defineAsyncComponent(() => import('./components/transfer/Index.vue'))],
|
|
|
['delivery', defineAsyncComponent(() => import('./components/delivery/Index.vue'))],
|
|
['delivery', defineAsyncComponent(() => import('./components/delivery/Index.vue'))],
|