From e06e563a554ee12b752e20e3a1aa5f26839fda63 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 17 十月 2024 14:45: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