优化订单详情中显示的价格问题

This commit is contained in:
lemon橪
2022-03-02 15:02:18 +08:00
parent 403ae0a963
commit c879cb2af0
2 changed files with 5 additions and 6 deletions

View File

@@ -587,7 +587,7 @@ export default {
if (!params.row.goodsPrice) { if (!params.row.goodsPrice) {
return h("div", this.$options.filters.unitPrice(0, "¥")); return h("div", this.$options.filters.unitPrice(0, "¥"));
} }
return h("div", this.$options.filters.unitPrice(params.row.goodsPrice, "¥")); return h("div", this.$options.filters.unitPrice(params.row.unitPrice, "¥"));
}, },
}, },
@@ -601,7 +601,7 @@ export default {
key: "subTotal", key: "subTotal",
minWidth: 100, minWidth: 100,
render: (h, params) => { render: (h, params) => {
return h("div", this.$options.filters.unitPrice(params.row.subTotal, "¥")); return h("div", this.$options.filters.unitPrice(params.row.flowPrice, "¥"));
}, },
}, },
], ],
@@ -674,8 +674,7 @@ export default {
}, },
modifyPrice() { modifyPrice() {
//默认要修改的金额为订单总金额 //默认要修改的金额为订单总金额
this.modifyPriceForm.price = this.orderInfo.order.subTotal; this.modifyPriceForm.price = this.orderInfo.order.flowPrice;
console.log(this.modifyPriceForm.price)
this.modal = true; this.modal = true;
}, },
//修改订单金额提交 //修改订单金额提交

View File

@@ -643,7 +643,7 @@ export default {
render: (h, params) => { render: (h, params) => {
return h( return h(
"div", "div",
this.$options.filters.unitPrice(params.row.subTotal, "¥") this.$options.filters.unitPrice(params.row.flowPrice, "¥")
); );
}, },
}, },