cloudroam
2024-09-14 2382033e55f86779eec1c8a87644f02ab3e2a8b2
pages/marketing/point-mall/goods.vue
@@ -83,6 +83,7 @@
            el: {
              precision: 0,
              min: 0,
              max: 99999999,
              controls: false,
            },
            rules: { required: true, message: '请输入库存', trigger: 'blur' },
@@ -112,6 +113,7 @@
            el: {
              precision: 0,
              min: 1,
              max: 99999999,
              controls: false,
            },
            rules: {
@@ -124,7 +126,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 +179,7 @@
                )
                if (code === 0) {
                  this.$message.success('上架成功')
                  this.$refs.crud.clearSelection()
                }
              } catch (e) {
                return false
@@ -200,6 +203,7 @@
                )
                if (code === 0) {
                  this.$message.success('下架成功')
                  this.$refs.crud.clearSelection()
                }
              } catch (e) {
                return false