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

This commit is contained in:
Yer
2023-07-03 16:28:58 +08:00
parent 26a539662e
commit bf70527c58
26 changed files with 61 additions and 87 deletions

View File

@@ -196,7 +196,7 @@
订单金额
</dt>
<dd>
{{ complaintInfo.orderPrice | unitPrice('¥')}}
<priceColorScheme :value="complaintInfo.orderPrice" :color="$mainColor"></priceColorScheme>
</dd>
</dl>

View File

@@ -143,11 +143,9 @@
key: "applyRefundPrice",
width: 130,
render: (h, params) => {
return h(
"div",
this.$options.filters.unitPrice(params.row.applyRefundPrice, "¥")
);
return h("priceColorScheme", {props:{value:params.row.applyRefundPrice,color:this.$mainColor}} );
},
},
{
title: "会员名称",

View File

@@ -142,13 +142,10 @@
title: "申请退款金额",
key: "applyRefundPrice",
width: 130,
render: (h, params) => {
return h(
"div",
this.$options.filters.unitPrice(params.row.applyRefundPrice, "¥")
);
return h("priceColorScheme", {props:{value:params.row.applyRefundPrice,color:this.$mainColor}} );
},
},
{
title: "会员",

View File

@@ -22,7 +22,9 @@
</dl>
<dl>
<dt>申请退款金额</dt>
<dd>{{ afterSaleInfo.applyRefundPrice | unitPrice('¥') }}</dd>
<dd>
<priceColorScheme :value="afterSaleInfo.applyRefundPrice" :color="$mainColor" />
</dd>
</dl>
<dl v-if="afterSaleInfo.actualRefundPrice">
<dt>实际退款金额</dt>
@@ -89,7 +91,9 @@
<dl>
<dt>申请退款金额</dt>
<dd>{{ afterSaleInfo.applyRefundPrice | unitPrice('¥') }}</dd>
<dd>
<priceColorScheme :value="afterSaleInfo.applyRefundPrice" :color="$mainColor" />
</dd>
</dl>
<dl v-if="params.serviceStatus == 'PASS'">
<dt>实际退款金额</dt>

View File

@@ -202,10 +202,7 @@ export default {
minWidth: 100,
tooltip: true,
render: (h, params) => {
return h(
"div",
this.$options.filters.unitPrice(params.row.flowPrice, "¥")
);
return h("priceColorScheme", {props:{value:params.row.flowPrice,color:this.$mainColor}} );
},
},

View File

@@ -107,11 +107,10 @@ export default {
minWidth: 100,
tooltip: true,
render: (h, params) => {
return h(
"div",
this.$options.filters.unitPrice(params.row.flowPrice, "¥")
);
return h("priceColorScheme", {props:{value:params.row.flowPrice,color:this.$mainColor}} );
},
},
{

View File

@@ -96,10 +96,7 @@ export default {
key: "billPrice",
width: 150,
render: (h, params) => {
return h(
"div",
this.$options.filters.unitPrice(params.row.receiptPrice, "¥")
);
return h("priceColorScheme", {props:{value:params.row.receiptPrice,color:this.$mainColor}} );
},
},
{