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 | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/pages/marketing/point-mall/goods.vue b/pages/marketing/point-mall/goods.vue
index 0821523..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('确定要上架吗?')
@@ -177,6 +187,7 @@
)
if (code === 0) {
this.$message.success('上架成功')
+ this.$refs.crud.clearSelection()
}
} catch (e) {
return false
@@ -200,6 +211,7 @@
)
if (code === 0) {
this.$message.success('下架成功')
+ this.$refs.crud.clearSelection()
}
} catch (e) {
return false
--
Gitblit v1.9.3