mayf
2024-09-07 a98fde3130a0b5e480e4662827f25d16d79012d2
修复营销管理数字范围问题
修复积分变动记录不刷新问题
已修改8个文件
33 ■■■■ 文件已修改
components/coupon/member-rule.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/coupon/activity/index.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/coupon/user/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/member-level.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/point-mall/coupon/index.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/point-mall/goods.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/point-mall/point-distribution.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/coupon-form.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/coupon/member-rule.vue
@@ -86,6 +86,7 @@
      inputAttrs: {
        precision: 0,
        min: 0,
        max: 99999999,
        controls: false,
      },
    }
pages/marketing/coupon/activity/index.vue
@@ -165,6 +165,7 @@
            el: {
              inputAttrs: {
                min: 1,
                max: 99999999,
                precision: 0,
                controls: false,
              },
@@ -182,6 +183,7 @@
            el: {
              precision: 0,
              min: 1,
              max: 99999999,
              controls: false,
            },
            unit: '张',
@@ -198,6 +200,7 @@
            el: {
              precision: 0,
              min: 1,
              max: 99999999,
              controls: false,
            },
            unit: '张',
pages/marketing/coupon/user/index.vue
@@ -63,6 +63,7 @@
            el: {
              inputAttrs: {
                min: 1,
                max: 99999999,
                precision: 0,
                controls: false,
              },
pages/marketing/member-level.vue
@@ -15,7 +15,11 @@
        columns: [
          { label: '序号', type: 'index' },
          { label: '等级名称', prop: 'name' },
          { label: '成长值', prop: 'startPoint' },
          {
            label: '成长值',
            formatter: (row) =>
              `${row.startPoint ?? ''} ~ ${row.endPoint ?? ''}`,
          },
          { label: '等级折扣', prop: 'discountTypeStr' },
          { label: '操作人', prop: 'createName' },
        ],
@@ -49,9 +53,9 @@
            el: {
              unit: '',
              separator: '<= 成长值范围 <',
              inputAttrs: {
                controls: false,
              },
              controls: false,
              min: 0,
              max: 99999999,
            },
            commonFormat: true,
            commonFormatProps: ['startPoint', 'endPoint'],
@@ -103,6 +107,7 @@
            el: {
              precision: 2,
              min: 0,
              max: 99999999,
              controls: false,
            },
            unit: '元/扎',
@@ -129,6 +134,7 @@
            el: {
              precision: 0,
              min: 0,
              max: 99999999,
              controls: false,
            },
            unit: '成长值',
pages/marketing/point-mall/coupon/index.vue
@@ -59,6 +59,7 @@
            el: {
              inputAttrs: {
                min: 1,
                max: 99999999,
                precision: 0,
                controls: false,
              },
@@ -74,6 +75,7 @@
            el: {
              precision: 0,
              min: 0,
              max: 99999999,
              controls: false,
            },
            rules: { required: true, message: '请输入库存', trigger: 'blur' },
@@ -85,6 +87,7 @@
            el: {
              precision: 0,
              min: 1,
              max: 99999999,
              controls: false,
            },
            rules: {
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: {
pages/marketing/point-mall/point-distribution.vue
@@ -4,7 +4,7 @@
    <el-dialog title="积分变动记录" :visible.sync="dialogVisible" width="80%">
      <el-bus-crud
        v-if="customerId"
        :key="customerId"
        :key="dialogId"
        :extra-query="{ customerId }"
        v-bind="recordTableConfig"
      />
@@ -13,11 +13,13 @@
</template>
<script>
import { v4 as uuidv4 } from 'uuid'
export default {
  data() {
    return {
      dialogVisible: false,
      customerId: null,
      dialogId: null,
      tableConfig: {
        url: 'flower/api/customer/point/page',
        hasNew: false,
@@ -59,6 +61,7 @@
                el: {
                  precision: 0,
                  min: 1,
                  max: 99999999,
                  controls: false,
                },
                rules: {
@@ -110,6 +113,7 @@
                el: {
                  precision: 0,
                  min: 1,
                  max: 99999999,
                  controls: false,
                },
                rules: {
@@ -151,6 +155,7 @@
          {
            text: '积分变动记录',
            atClick: (row) => {
              this.dialogId = uuidv4()
              this.customerId = row.customerId
              this.dialogVisible = true
            },
utils/coupon-form.js
@@ -55,6 +55,7 @@
      type: 'input-number',
      el: {
        min: 0,
        max: 99999999,
        precision: 2,
        controls: false,
      },
@@ -73,6 +74,7 @@
      type: 'input-number',
      el: {
        min: 0.01,
        max: 99999999,
        precision: 2,
        controls: false,
      },