From 835d1f1893c5c427b65e4abf812f366dadf00585 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期三, 27 十一月 2024 13:25:05 +0800
Subject: [PATCH] add: -商户列表需要增加下单次数统计(已退款、已取消、待付款的不统计在内)
---
pages/marketing/point-mall/goods.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/pages/marketing/point-mall/goods.vue b/pages/marketing/point-mall/goods.vue
index 3c7e751..3fc5758 100644
--- a/pages/marketing/point-mall/goods.vue
+++ b/pages/marketing/point-mall/goods.vue
@@ -86,7 +86,15 @@
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: '商品图片:',
@@ -126,7 +134,7 @@
extraButtons: [
{
text: '上架',
- show: (row) => row.status === 'I' && row.stock>0,
+ show: (row) => row.status === 'I' && row.stock > 0,
atClick: async (row) => {
try {
await this.$elBusUtil.confirm('确定要上架吗?')
--
Gitblit v1.9.3