|
|
@@ -36,25 +36,19 @@
|
|
|
</CellGroup>
|
|
|
<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 + '元'" />
|
|
|
+ <Cell title="今日点价收益" :value="detail.todaypointincome + '元'" />
|
|
|
+ <Cell title="点价总收益" :value="detail.pointincome + '元'" />
|
|
|
</CellGroup>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<Empty />
|
|
|
</div>
|
|
|
<template #footer>
|
|
|
- <div class="g-form__footer" v-if="detail">
|
|
|
- <!-- 参数类型为 2 时只显示点价按钮 -->
|
|
|
- <template v-if="type.toString() === '2'">
|
|
|
- <Button :class="spotgoods?.priceflag ? '' : 'van-button--disabled'" 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 :class="spotgoods?.priceflag ? '' : 'van-button--disabled'" block round type="primary"
|
|
|
- v-if="detail.buyuserid === detail.firstbuyuserid && detail.availabletime > 0 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
- @click="spotPricingSubmit">点价</Button>
|
|
|
+ <div class="g-form__footer" v-if="detail && type.toString() !== '3'">
|
|
|
+ <Button :class="spotgoods?.priceflag ? '' : 'van-button--disabled'" block round type="primary"
|
|
|
+ v-if="detail.buyuserid === detail.firstbuyuserid && detail.availabletime > 0 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
+ @click="spotPricingSubmit">点价</Button>
|
|
|
+ <template v-if="type.toString() !== '2'">
|
|
|
<Button block round type="primary"
|
|
|
v-if="detail.thjdeliverymode === 1 && detail.presalestatus === 2 && detail.orderstatus === 1"
|
|
|
@click="openComponent('transfer')">合同转让</Button>
|
|
|
@@ -123,10 +117,10 @@ const { data: spotgoods } = useRequest(querySpotgoodsPrice, {
|
|
|
// 确认点价
|
|
|
const spotPricingSubmit = () => {
|
|
|
const { availabletime = 0, pointtimes = 0 } = detail.value ?? {}
|
|
|
- const { priceflag, wrstandardname, spotgoodsprice = 0 } = spotgoods.value ?? {}
|
|
|
+ const { priceflag, ystspotgoodsprice, todayspotgoodsprice, diffprice } = spotgoods.value ?? {}
|
|
|
|
|
|
if (priceflag) {
|
|
|
- let message = `${wrstandardname}当前现货价为${spotgoodsprice},是否点价?\n`
|
|
|
+ let message = `今日差价${diffprice}(昨结${ystspotgoodsprice},今开${todayspotgoodsprice}),是否点价?\n`
|
|
|
message += `<span style="color:red;">剩余点价次数${availabletime}/${pointtimes}</span>`
|
|
|
|
|
|
dialog({
|
|
|
@@ -146,7 +140,7 @@ const spotPricingSubmit = () => {
|
|
|
})
|
|
|
})
|
|
|
} else {
|
|
|
- dialog('河钢招标价未公布或当前订单价格低于下单价格')
|
|
|
+ dialog('价格未公布或当前差价不大于0')
|
|
|
}
|
|
|
}
|
|
|
|