|
@@ -87,18 +87,17 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, defineAsyncComponent } from 'vue'
|
|
|
|
|
|
|
+import { shallowRef, defineAsyncComponent, onActivated } from 'vue'
|
|
|
import { Button, Image } from 'vant'
|
|
import { Button, Image } from 'vant'
|
|
|
import { getFileUrl } from '@/filters'
|
|
import { getFileUrl } from '@/filters'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { getBuyOrSellName, BuyOrSell, PriceMode } from '@/constants/order'
|
|
import { getBuyOrSellName, BuyOrSell, PriceMode } from '@/constants/order'
|
|
|
import { formatDecimal, formatDate, handleRequestBigNumber, handlePriceColor } from '@/filters'
|
|
import { formatDecimal, formatDate, handleRequestBigNumber, handlePriceColor } from '@/filters'
|
|
|
-import { useSBYJOrderStore, i18n, useFuturesStore, useLoginStore, useAccountStore } from '@/stores'
|
|
|
|
|
|
|
+import { useSBYJOrderStore, i18n, useFuturesStore } from '@/stores'
|
|
|
import { useOrder } from '@/business/trade'
|
|
import { useOrder } from '@/business/trade'
|
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
|
import { EBuildType, EDelistingType, EListingSelectType, EValidType } from '@/constants/client'
|
|
import { EBuildType, EDelistingType, EListingSelectType, EValidType } from '@/constants/client'
|
|
|
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 { getGoodsUnitName } from '@/constants/unit'
|
|
import { getGoodsUnitName } from '@/constants/unit'
|
|
|
|
|
|
|
|
defineProps({
|
|
defineProps({
|
|
@@ -165,9 +164,6 @@ const goodsname = (item: Model.SBYJMyOrderRsp) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
|
|
const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
|
|
|
- const loginStore = useLoginStore()
|
|
|
|
|
- const accountStore = useAccountStore()
|
|
|
|
|
-
|
|
|
|
|
dialog({
|
|
dialog({
|
|
|
message: t('position.goods.tips3'),
|
|
message: t('position.goods.tips3'),
|
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
@@ -175,9 +171,6 @@ const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
|
|
|
const { marketID, goodsID, buyOrSell, tradeID } = item.tHDetailEx
|
|
const { marketID, goodsID, buyOrSell, tradeID } = item.tHDetailEx
|
|
|
/// 市场ID
|
|
/// 市场ID
|
|
|
formData.Header = { GoodsID: goodsID }
|
|
formData.Header = { GoodsID: goodsID }
|
|
|
- formData.LoginID = loginStore.loginId
|
|
|
|
|
- formData.AccountID = accountStore.currentAccountId
|
|
|
|
|
- formData.OperatorID = loginStore.loginId
|
|
|
|
|
formData.MarketID = marketID
|
|
formData.MarketID = marketID
|
|
|
formData.BuyOrSell = buyOrSell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
formData.BuyOrSell = buyOrSell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
|
formData.GoodsID = goodsID
|
|
formData.GoodsID = goodsID
|
|
@@ -195,8 +188,6 @@ const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
|
|
|
fullloading((hideLoading) => {
|
|
fullloading((hideLoading) => {
|
|
|
formSubmit().then(() => {
|
|
formSubmit().then(() => {
|
|
|
hideLoading(t('position.goods.tips4'), 'success')
|
|
hideLoading(t('position.goods.tips4'), 'success')
|
|
|
- // 成交通知
|
|
|
|
|
- eventBus.$emit('OrderDealedNtf')
|
|
|
|
|
getSBYJMyOrders()
|
|
getSBYJMyOrders()
|
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
hideLoading(err, 'fail')
|
|
hideLoading(err, 'fail')
|
|
@@ -205,6 +196,7 @@ const onCloseSumit = (item: Model.SBYJMyOrderRsp) => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+onActivated(() => getSBYJMyOrders())
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|