修改订单详情金额展示

This commit is contained in:
2024-11-23 17:44:21 +08:00
parent 862812caa3
commit 5076efee3a
7 changed files with 199 additions and 77 deletions

View File

@@ -3,7 +3,7 @@
<div class="u-p-15">
<div class="u-m-t-20">
<el-form label-width="90px" label-position="left">
<el-form-item label="总价">
<el-form-item label="应付金额">
<div class="color-red u-font-18 font-600">{{ form.money }}</div>
<!-- <el-input :value="form.money" disabled> </el-input> -->
</el-form-item>

View File

@@ -286,11 +286,13 @@ export default {
//相同商品抵扣券数组
const arr = this.quans.productCoupon.filter((v) => v.proId == row.proId);
const index = arr.findIndex((v) => v.id == row.id);
const item=this.goodsArr.find((v) => v.productId == row.proId);
if (index != -1) {
const n=returnProductCoupAllPrice(
$goodsPayPriceMap[row.proId],
index,
row.num
row.num,
item.isMember
)
return (n*this.discount).toFixed(2);
} else {
@@ -385,7 +387,7 @@ export default {
.catch(() => {});
}
if (this.fullReductionCouponSel.fullAmount > payPrice) {
this.$confirm(
this.$confirm(
"选择该商品券后将不满足选择抵扣券的最低满减需求,继续选择将取消选择的满减券",
"提示",
{
@@ -399,7 +401,11 @@ export default {
id: "",
};
})
.catch(() => {});
.catch(() => {
item.checked=false
const index = this.quansSelArr.findIndex((v) => v.id == item.id);
this.quansSelArr.splice(index, 1);
});
}
}
item.checked = !item.checked;
@@ -441,7 +447,6 @@ export default {
async open(data, propSelCoup) {
console.log(data);
this.orderPrice = data.orderPrice;
this.discount=data.discount||1
this.quansSelArr = [...propSelCoup];
$goodsPayPriceMap = returnGoodsPayPriceMap(this.goodsArr || []);
if (data.memberId) {