|
@@ -1,22 +1,33 @@
|
|
|
<template>
|
|
<template>
|
|
|
<app-view class="transfer-detail g-form">
|
|
<app-view class="transfer-detail g-form">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
- <app-navbar title="转让订单详情" />
|
|
|
|
|
|
|
+ <app-navbar title="订单详情" />
|
|
|
</template>
|
|
</template>
|
|
|
<div v-if="details" class="transfer-detail__container g-form__container">
|
|
<div v-if="details" class="transfer-detail__container g-form__container">
|
|
|
<CellGroup title="转让信息">
|
|
<CellGroup title="转让信息">
|
|
|
- <Cell title="商品" :value="handleNoneValue(details.wrstandardname)" />
|
|
|
|
|
- <Cell title="仓库" :value="handleNoneValue(details.warehousename)" />
|
|
|
|
|
|
|
+ <Cell title="商品" :value="details.wrstandardname" />
|
|
|
|
|
+ <Cell title="参考价" :value="details.tradeprice.toFixed(2)" />
|
|
|
<Cell title="转让价格" :value="details.transferprice.toFixed(2)" />
|
|
<Cell title="转让价格" :value="details.transferprice.toFixed(2)" />
|
|
|
- <Cell title="转让数量" :value="details.transferqty" />
|
|
|
|
|
|
|
+ <Cell title="数量" :value="details.transferqty" />
|
|
|
<Cell title="转让金额" :value="details.transferamount.toFixed(2)" />
|
|
<Cell title="转让金额" :value="details.transferamount.toFixed(2)" />
|
|
|
- <Cell title="预售价格" :value="details.tradeprice.toFixed(2)" />
|
|
|
|
|
- <Cell title="已付定金" :value="details.payeddeposit" />
|
|
|
|
|
- <Cell title="转让状态" :value="getTHJTransferStatusName(details.transferstatus)" />
|
|
|
|
|
- <Cell title="受让人" :value="handleNoneValue(details.buyusername)" />
|
|
|
|
|
- <Cell title="转让单号" :value="handleNoneValue(details.transferid)" />
|
|
|
|
|
- <Cell title="合同单号" :value="details.wrstandardid" v-if="details.transferstatus === 4"
|
|
|
|
|
- :is-link="!!details.contractaddrbuy" @click="openPDF(details?.contractaddrbuy)" />
|
|
|
|
|
|
|
+ <Cell title="预付款(含定金)" :value="handleNumberValue(details.payeddeposit.toFixed(2))" />
|
|
|
|
|
+ <Cell title="定金比例" :value="parsePercent(details.depositrate)" />
|
|
|
|
|
+ <Cell title="状态" :value="getTHJTransferStatusName(details.transferstatus)" />
|
|
|
|
|
+ <Cell title="转让时间" :value="formatDate(details.createtime)" />
|
|
|
|
|
+ <Cell title="到期日期" :value="details.enddate" />
|
|
|
|
|
+ </CellGroup>
|
|
|
|
|
+ <CellGroup title="交收信息">
|
|
|
|
|
+ <Cell title="交收方式" :value="getTHJDeliveryModeName(details.thjdeliverymode)" />
|
|
|
|
|
+ <Cell title="联系人" :value="details.contactname" v-if="details.contactname" />
|
|
|
|
|
+ <Cell title="联系方式" :value="details.contactinfo" v-if="details.contactinfo" />
|
|
|
|
|
+ <Cell title="目的地地址" :value="details.desaddress" v-if="details.desaddress" />
|
|
|
|
|
+ <Cell title="发票信息" title-style="flex:none" v-if="details.receiptinfo">
|
|
|
|
|
+ <template #value>
|
|
|
|
|
+ <div style="white-space: pre-line">{{ details.receiptinfo }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </Cell>
|
|
|
|
|
+ <Cell title="合同单号" :value="details.transferid" :is-link="!!details.contractaddr"
|
|
|
|
|
+ @click="openPDF(details?.contractaddr)" />
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else>
|
|
<div v-else>
|
|
@@ -38,14 +49,14 @@ import { CellGroup, Cell, Empty, Button, Toast } from 'vant'
|
|
|
import { getUrl } from '@/filters'
|
|
import { getUrl } from '@/filters'
|
|
|
import { useSpotPresaleTransferCancel } from "@/business/trade"
|
|
import { useSpotPresaleTransferCancel } from "@/business/trade"
|
|
|
import { useQueryTTHJPurchaseTransferOrderDetail } from "@/business/order"
|
|
import { useQueryTTHJPurchaseTransferOrderDetail } from "@/business/order"
|
|
|
-import { handleNoneValue } from '@/filters'
|
|
|
|
|
-import { getTHJTransferStatusName } from "@/constants/order"
|
|
|
|
|
|
|
+import { handleNumberValue, parsePercent, formatDate } from '@/filters'
|
|
|
|
|
+import { getTHJTransferStatusName, getTHJDeliveryModeName } from "@/constants/order"
|
|
|
|
|
|
|
|
const { router, getQueryString } = useNavigation()
|
|
const { router, getQueryString } = useNavigation()
|
|
|
-const wrtradedetailid = getQueryString('id')
|
|
|
|
|
|
|
+const transferid = getQueryString('id')
|
|
|
|
|
|
|
|
-const { getTHJPurchaseTransferOrderDetail, details } = useQueryTTHJPurchaseTransferOrderDetail(wrtradedetailid)
|
|
|
|
|
-const { transferCancelSubmit } = useSpotPresaleTransferCancel(wrtradedetailid)
|
|
|
|
|
|
|
+const { getTHJPurchaseTransferOrderDetail, details } = useQueryTTHJPurchaseTransferOrderDetail(transferid)
|
|
|
|
|
+const { transferCancelSubmit } = useSpotPresaleTransferCancel()
|
|
|
|
|
|
|
|
// 打开pdf文件
|
|
// 打开pdf文件
|
|
|
const openPDF = (file?: string) => {
|
|
const openPDF = (file?: string) => {
|
|
@@ -60,7 +71,7 @@ const spotCancelSubmit = () => {
|
|
|
showCancelButton: true
|
|
showCancelButton: true
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
fullloading((hideLoading) => {
|
|
fullloading((hideLoading) => {
|
|
|
- transferCancelSubmit().then(() => {
|
|
|
|
|
|
|
+ transferCancelSubmit(details.value?.wrtradedetailid).then(() => {
|
|
|
hideLoading()
|
|
hideLoading()
|
|
|
dialog('转让撤销提交成功。').then(() => {
|
|
dialog('转让撤销提交成功。').then(() => {
|
|
|
router.back()
|
|
router.back()
|