|
|
@@ -190,8 +190,8 @@
|
|
|
<span v-else-if="item!=null">¥0.00</span>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
- <div style="float: right;margin: 20px" v-if="item.totalPrice!=null">
|
|
|
- 合计:<span class="color-danger">¥{{item.totalPrice.toFixed(2)}}</span>
|
|
|
+ <div style="float: right;margin: 20px" v-if="item.payMoney!=null">
|
|
|
+ 合计:<span class="color-danger">¥{{item.payMoney.toFixed(2)}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -481,11 +481,12 @@ export default {
|
|
|
* 折扣率百分比(四舍五入保留两位小数),用于费用信息展示
|
|
|
*/
|
|
|
discountRatePercent() {
|
|
|
- if (!this.item || this.productTotal <= 0) {
|
|
|
+ if (!this.item || !this.item.totalPrice || parseFloat(this.item.totalPrice) <= 0) {
|
|
|
return '0.00';
|
|
|
}
|
|
|
const payMoney = parseFloat(this.item.payMoney) || 0;
|
|
|
- const rate = parseFloat((payMoney / this.productTotal).toFixed(2));
|
|
|
+ const totalPrice = parseFloat(this.item.totalPrice) || 0;
|
|
|
+ const rate = parseFloat((payMoney / totalPrice).toFixed(2));
|
|
|
return (rate * 100).toFixed(2);
|
|
|
}
|
|
|
},
|