feat: ✨ 管理端新增格式化价格文件插件并在代码中引入,更新代码需要install插件

This commit is contained in:
Yer
2023-07-04 10:24:21 +08:00
parent bf70527c58
commit 3c83179579
48 changed files with 165 additions and 263 deletions

View File

@@ -222,14 +222,7 @@ export default {
key: "applyRefundPrice",
width: 110,
render: (h, params) => {
if (params.row.applyRefundPrice == null) {
return h("div", this.$options.filters.unitPrice(0, "¥"));
} else {
return h(
"div",
this.$options.filters.unitPrice(params.row.applyRefundPrice, "¥")
);
}
return h("priceColorScheme", {props:{value:params.row.applyRefundPrice,color:this.$mainColor}} );
},
},
{

View File

@@ -19,11 +19,15 @@
</dl>
<dl>
<dt>申请退款金额</dt>
<dd>¥{{ afterSaleInfo.applyRefundPrice | unitPrice }}</dd>
<dd>
<priceColorScheme :value="afterSaleInfo.applyRefundPrice" :color="$mainColor"></priceColorScheme>
</dd>
</dl>
<dl v-if="afterSaleInfo.actualRefundPrice">
<dt>实际退款金额</dt>
<dd>¥{{ afterSaleInfo.actualRefundPrice | unitPrice }}</dd>
<dd>
<priceColorScheme :value="afterSaleInfo.applyRefundPrice" :color="$mainColor"></priceColorScheme>
</dd>
</dl>
<dl v-if="afterSaleInfo.refundPoint">
<dt>退还积分</dt>
@@ -79,7 +83,9 @@
</dl>
<dl>
<dt>申请退款金额</dt>
<dd>{{ afterSaleInfo.applyRefundPrice | unitPrice("¥") }}</dd>
<dd>
<priceColorScheme :value="afterSaleInfo.applyRefundPrice" :color="$mainColor"></priceColorScheme>
</dd>
</dl>
<dl>
<dt>实际退款金额</dt>

View File

@@ -112,6 +112,7 @@
},
{
title: "投诉主题",
width: 100,
key: "complainTopic",
tooltip: true
},

View File

@@ -180,7 +180,7 @@
订单金额
</dt>
<dd>
{{complaintInfo.orderPrice}}
<priceColorScheme :value="complaintInfo.orderPrice" :color="$mainColor"></priceColorScheme>
</dd>
</dl>