From 7e42cc8f4aa1c66077e12e140c3d5d3ded14a6b5 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期日, 29 九月 2024 16:08:57 +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 e854756..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', + show: (row) => row.status === 'I' && row.stock > 0, atClick: async (row) => { try { await this.$elBusUtil.confirm('确定要上架吗?') -- Gitblit v1.9.3