mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-06-24 19:10:20 +08:00
feat: ✨ 商家端新增格式化价格文件插件并在代码中引入,更新代码需要install插件
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
title: "账单号",
|
||||
key: "sn",
|
||||
minWidth: 250,
|
||||
tooltip: true
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: "生成时间",
|
||||
@@ -103,10 +103,7 @@
|
||||
key: "billPrice",
|
||||
minWidth: 100,
|
||||
render: (h, params) => {
|
||||
return h(
|
||||
"div",
|
||||
this.$options.filters.unitPrice(params.row.billPrice, "¥")
|
||||
);
|
||||
return h("priceColorScheme", {props:{value:params.row.billPrice,color:this.$mainColor}} );
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -180,10 +180,7 @@ export default {
|
||||
title: "订单金额",
|
||||
key: "finalPrice",
|
||||
render: (h, params) => {
|
||||
return h(
|
||||
"div",
|
||||
this.$options.filters.unitPrice(params.row.finalPrice, "¥")
|
||||
);
|
||||
return h("priceColorScheme", {props:{value:params.row.finalPrice,color:this.$mainColor}} );
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -191,13 +188,7 @@ export default {
|
||||
key: "kanjiaSettlementPrice",
|
||||
render: (h, params) => {
|
||||
if (params.row.kanjiaSettlementPrice) {
|
||||
return h(
|
||||
"div",
|
||||
this.$options.filters.unitPrice(
|
||||
params.row.kanjiaSettlementPrice,
|
||||
"¥"
|
||||
)
|
||||
);
|
||||
return h("priceColorScheme", {props:{value:params.row.kanjiaSettlementPrice,color:this.$mainColor}} );
|
||||
} else {
|
||||
return h("div", "¥0.00");
|
||||
}
|
||||
|
||||
@@ -106,11 +106,9 @@
|
||||
key: "billPrice",
|
||||
minWidth: 100,
|
||||
render: (h, params) => {
|
||||
return h(
|
||||
"div",
|
||||
this.$options.filters.unitPrice(params.row.billPrice, "¥")
|
||||
);
|
||||
return h("priceColorScheme", {props:{value:params.row.billPrice,color:this.$mainColor}} );
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user