feat(custom): \!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-05 16:38:10 +08:00
parent a4c2674fbe
commit 9fa1a81b8a
8 changed files with 15 additions and 246 deletions

View File

@@ -173,11 +173,11 @@
:min="0"
/>
</n-form-item-gi>
<n-form-item-gi :span="20" label="商品扣比例" path="discount">
<n-form-item-gi :span="20" label="商品扣比例" path="discount">
<n-input-number
v-model:value="nowRow.discount"
clearable
placeholder="请输入扣比例...."
placeholder="请输入扣比例...."
:min="0"
:precision="0"
>
@@ -337,7 +337,7 @@ const rules = {
discount: {
required: true,
type: 'number',
message: '请输入扣比例',
message: '请输入扣比例',
trigger: 'blur',
},
}
@@ -444,32 +444,19 @@ const columns = ref([
align: 'center',
},
{
title: '积分抵扣',
slot: 'exchange',
title: '抵扣后价格(元)',
key: 'discount_price',
align: 'center',
render: (row) => {
return h(
'span',
{},
{
default: () => (row.exchange ? `${(row.exchange / 100).toFixed(2)}元` : '无'),
}
)
},
},
{
title: '折扣比例(%)',
slot: 'discount',
title: '积分抵扣(元)',
key: 'exchange',
align: 'center',
},
{
title: '折扣比例(%',
key: 'discount',
align: 'center',
render: (row) => {
return h(
'span',
{},
{
default: () => `${row.discount}%`,
}
)
},
},
{
title: '商品库存',