From 2bfd55b486eeec533be0c92c3b50a78329b0fc55 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期一, 30 九月 2024 16:06:34 +0800
Subject: [PATCH] add:订单列表导出
---
pages/marketing/point-mall/goods.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/pages/marketing/point-mall/goods.vue b/pages/marketing/point-mall/goods.vue
index dbc71cf..3fc5758 100644
--- a/pages/marketing/point-mall/goods.vue
+++ b/pages/marketing/point-mall/goods.vue
@@ -83,9 +83,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: '商品图片:',
@@ -112,6 +121,7 @@
el: {
precision: 0,
min: 1,
+ max: 99999999,
controls: false,
},
rules: {
@@ -124,7 +134,7 @@
extraButtons: [
{
text: '上架',
- show: (row) => row.status === 'I',
+ show: (row) => row.status === 'I' && row.stock > 0,
atClick: async (row) => {
try {
await this.$elBusUtil.confirm('确定要上架吗?')
--
Gitblit v1.9.3