mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-13 12:28:54 +08:00
feat: ✨ 管理端新增格式化价格文件插件并在代码中引入,更新代码需要install插件
This commit is contained in:
@@ -219,10 +219,7 @@ export default {
|
||||
key: "price",
|
||||
minWidth: 40,
|
||||
render: (h, params) => {
|
||||
return h(
|
||||
"div",
|
||||
this.$options.filters.unitPrice(params.row.price, "¥")
|
||||
);
|
||||
return h("priceColorScheme", {props:{value:params.row.price,color:this.$mainColor}} );
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -15,7 +15,9 @@
|
||||
<div>{{ form.goodsSku.storeName }}</div>
|
||||
</FormItem>
|
||||
<FormItem label="商品价格">
|
||||
<div>{{ form.goodsSku.price | unitPrice("¥") }}</div>
|
||||
<div>
|
||||
<priceColorScheme :value="form.goodsSku.price" :color="$mainColor"></priceColorScheme>
|
||||
</div>
|
||||
</FormItem>
|
||||
<FormItem label="库存">
|
||||
<div>{{ form.goodsSku.quantity }}</div>
|
||||
|
||||
@@ -91,10 +91,14 @@
|
||||
</div>
|
||||
</template>
|
||||
<template slot-scope="{ row }" slot="price">
|
||||
<div>{{ row.originalPrice | unitPrice("¥") }}</div>
|
||||
<div>
|
||||
<priceColorScheme :value="row.originalPrice" :color="$mainColor"></priceColorScheme>
|
||||
</div>
|
||||
</template>
|
||||
<template slot-scope="{ row }" slot="settlementPrice">
|
||||
<div>{{ row.settlementPrice | unitPrice("¥") }}</div>
|
||||
<div>
|
||||
<priceColorScheme :value="row.settlementPrice" :color="$mainColor"></priceColorScheme>
|
||||
</div>
|
||||
</template>
|
||||
<template slot-scope="{ row }" slot="quantity">
|
||||
<div>{{ row.activeStock }}</div>
|
||||
|
||||
Reference in New Issue
Block a user