|
|
@@ -30,7 +30,8 @@
|
|
|
<Cell title="合同单号" :value="detail.wrtradedetailid" :is-link="!!detail.contractaddrbuy"
|
|
|
@click="openPDF(detail?.contractaddrbuy)" />
|
|
|
</CellGroup>
|
|
|
- <CellGroup title="点价信息" v-if="detail.pointflag && detail.buyuserid === detail.firstbuyuserid">
|
|
|
+ <CellGroup title="点价信息"
|
|
|
+ v-if="detail.pointflag && (detail.buyuserid === detail.firstbuyuserid || ['2', '3'].includes(type.toString()))">
|
|
|
<Cell title="已点价格" :value="detail.pointprice" />
|
|
|
<Cell title="已点收益" :value="detail.pointincome" />
|
|
|
</CellGroup>
|
|
|
@@ -40,16 +41,27 @@
|
|
|
</div>
|
|
|
<template #footer>
|
|
|
<div class="g-form__footer" v-if="detail">
|
|
|
- <Button block round type="primary"
|
|
|
- v-if="detail.buyuserid === detail.firstbuyuserid && detail.availabletime > 0 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
- @click="spotPricingSubmit">点价</Button>
|
|
|
- <Button block round type="primary"
|
|
|
- v-if="detail.thjdeliverymode === 1 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
- @click="showDialog">合同转让</Button>
|
|
|
- <Button block round type="primary" v-if="detail.orderstatus === 9" @click="spotCancelSubmit">撤销转让</Button>
|
|
|
- <Button block round type="primary" v-if="detail.orderstatus === 5" @click="spotConfirmSubmit">确认交收</Button>
|
|
|
- <Button block round type="primary" v-if="detail.orderstatus === 3" @click="spotApplySubmit">违约</Button>
|
|
|
- <Button block round type="primary" v-if="detail.orderstatus === 3" @click="spotPlaymentSubmit">支付</Button>
|
|
|
+ <!-- 参数类型为 2 时只显示点价按钮 -->
|
|
|
+ <template v-if="type.toString() === '2'">
|
|
|
+ <Button block round type="primary"
|
|
|
+ v-if="detail.buyuserid === detail.firstbuyuserid && detail.availabletime > 0 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
+ @click="spotPricingSubmit">点价</Button>
|
|
|
+ </template>
|
|
|
+ <template v-else-if="type.toString() !== '3'">
|
|
|
+ <Button block round type="primary"
|
|
|
+ v-if="detail.buyuserid === detail.firstbuyuserid && detail.availabletime > 0 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
+ @click="spotPricingSubmit">点价</Button>
|
|
|
+ <Button block round type="primary"
|
|
|
+ v-if="detail.thjdeliverymode === 1 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
+ @click="showDialog">合同转让</Button>
|
|
|
+ <Button block round type="primary" v-if="detail.orderstatus === 9"
|
|
|
+ @click="spotCancelSubmit">撤销转让</Button>
|
|
|
+ <Button block round type="primary" v-if="detail.orderstatus === 5"
|
|
|
+ @click="spotConfirmSubmit">确认交收</Button>
|
|
|
+ <Button block round type="primary" v-if="detail.orderstatus === 3" @click="spotApplySubmit">违约</Button>
|
|
|
+ <Button block round type="primary" v-if="detail.orderstatus === 3"
|
|
|
+ @click="spotPlaymentSubmit">支付</Button>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</template>
|
|
|
<!-- 转让价格 -->
|
|
|
@@ -73,9 +85,9 @@ import { useSpotPresaleDeliveryConfirm, useSpotPresaleBreachOfContractApply, use
|
|
|
import plus from '@/utils/h5plus'
|
|
|
|
|
|
const { route, router } = useNavigation()
|
|
|
+const { item, type } = route.params
|
|
|
/// 是否显示dialog
|
|
|
const show = shallowRef(false)
|
|
|
-const item = route.params.item
|
|
|
const detail = shallowRef<Model.THJPurchaseTradeDetailRsp>()
|
|
|
|
|
|
if (item) {
|