|
@@ -7,7 +7,7 @@
|
|
|
<CellGroup title="委托信息">
|
|
<CellGroup title="委托信息">
|
|
|
<Cell title="商品" :value="detail.wrstandardname" />
|
|
<Cell title="商品" :value="detail.wrstandardname" />
|
|
|
<Cell title="仓库" :value="detail.warehousename" />
|
|
<Cell title="仓库" :value="detail.warehousename" />
|
|
|
- <Cell title="类型" :value="detail.wrtradetype === 1 ? '挂牌' : '摘牌' " />
|
|
|
|
|
|
|
+ <Cell title="类型" :value="detail.wrtradetype === 1 ? '挂牌' : '摘牌'" />
|
|
|
<Cell title="方向" :value="detail.tradeqty" />
|
|
<Cell title="方向" :value="detail.tradeqty" />
|
|
|
<Cell title="委托价格" :value="detail.fixedprice.toFixed(2)" />
|
|
<Cell title="委托价格" :value="detail.fixedprice.toFixed(2)" />
|
|
|
<Cell title="挂牌数量" :value="detail.orderqty" />
|
|
<Cell title="挂牌数量" :value="detail.orderqty" />
|
|
@@ -22,7 +22,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<div class="g-form__footer" v-if="detail">
|
|
<div class="g-form__footer" v-if="detail">
|
|
|
- <Button block v-if="detail.wrtradeorderstatus === (3 | 7)" round type="primary" @click="spotConfirmSubmit">撤销</Button>
|
|
|
|
|
|
|
+ <Button block v-if="detail.wrtradeorderstatus === (3 | 7)" round type="primary"
|
|
|
|
|
+ @click="spotConfirmSubmit">撤销</Button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</app-view>
|
|
</app-view>
|
|
@@ -35,8 +36,7 @@ import { useNavigation } from '@/hooks/navigation'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { CellGroup, Cell, Empty, Button, Toast } from 'vant'
|
|
import { CellGroup, Cell, Empty, Button, Toast } from 'vant'
|
|
|
import { formatDate } from "@/filters";
|
|
import { formatDate } from "@/filters";
|
|
|
-import { useWrListingCancelOrder } from "@/business/trade";
|
|
|
|
|
-import { number } from '@intlify/core-base';
|
|
|
|
|
|
|
+import { useWrListingCancelOrder } from "@/business/trade"
|
|
|
|
|
|
|
|
const { route, router } = useNavigation()
|
|
const { route, router } = useNavigation()
|
|
|
const item = route.params.item
|
|
const item = route.params.item
|
|
@@ -54,7 +54,7 @@ const spotConfirmSubmit = () => {
|
|
|
showCancelButton: true
|
|
showCancelButton: true
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
fullloading((hideLoading) => {
|
|
fullloading((hideLoading) => {
|
|
|
- cancelSubmit(<number><unknown>(detail.value?.wrtradeorderid ?? '0'), detail.value?.buyorsell ?? 0).then(() => {
|
|
|
|
|
|
|
+ cancelSubmit((detail.value?.wrtradeorderid ?? '0'), detail.value?.buyorsell ?? 0).then(() => {
|
|
|
hideLoading()
|
|
hideLoading()
|
|
|
dialog('撤销请求成功,请耐心等待审核。').then(() => {
|
|
dialog('撤销请求成功,请耐心等待审核。').then(() => {
|
|
|
router.back()
|
|
router.back()
|
|
@@ -66,8 +66,4 @@ const spotConfirmSubmit = () => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-</script>
|
|
|
|
|
-
|
|
|
|
|
-<style lang="less">
|
|
|
|
|
-@import './index.less';
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</script>
|