From 0ebc22340d4a1009d53ac1f47604891fecd0f47c Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 24 九月 2024 10:18:21 +0800
Subject: [PATCH] add:会员等级筛选
---
pages/marketing/point-mall/coupon/index.vue | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/pages/marketing/point-mall/coupon/index.vue b/pages/marketing/point-mall/coupon/index.vue
index 0d6fcc3..28008a5 100644
--- a/pages/marketing/point-mall/coupon/index.vue
+++ b/pages/marketing/point-mall/coupon/index.vue
@@ -59,6 +59,7 @@
el: {
inputAttrs: {
min: 1,
+ max: 99999999,
precision: 0,
controls: false,
},
@@ -74,9 +75,18 @@
el: {
precision: 0,
min: 0,
+ max: 99999999,
controls: false,
},
- rules: { required: true, message: '请输入库存', trigger: 'blur' },
+ rules: [
+ { required: true, message: '请输入库存', trigger: 'blur' },
+ {
+ type: 'number',
+ min: 1,
+ message: '库存必须大于0',
+ trigger: 'blur',
+ },
+ ],
},
{
label: '积分数量:',
@@ -85,6 +95,7 @@
el: {
precision: 0,
min: 1,
+ max: 99999999,
controls: false,
},
rules: {
@@ -98,7 +109,8 @@
{
text: '上架',
show: (row) =>
- row.status === 'inactive' || row.status === 'expired',
+ (row.status === 'inactive' || row.status === 'expired') &&
+ row.couponAmount > 0,
atClick: async (row) => {
try {
await this.$elBusUtil.confirm('确定要上架吗?')
--
Gitblit v1.9.3