修复营销管理数字范围问题
修复积分变动记录不刷新问题
| | |
| | | inputAttrs: { |
| | | precision: 0, |
| | | min: 0, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | } |
| | |
| | | el: { |
| | | inputAttrs: { |
| | | min: 1, |
| | | max: 99999999, |
| | | precision: 0, |
| | | controls: false, |
| | | }, |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 1, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | unit: '张', |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 1, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | unit: '张', |
| | |
| | | el: { |
| | | inputAttrs: { |
| | | min: 1, |
| | | max: 99999999, |
| | | precision: 0, |
| | | controls: false, |
| | | }, |
| | |
| | | columns: [ |
| | | { label: '序号', type: 'index' }, |
| | | { label: '等级名称', prop: 'name' }, |
| | | { label: '成长值', prop: 'startPoint' }, |
| | | { |
| | | label: '成长值', |
| | | formatter: (row) => |
| | | `${row.startPoint ?? ''} ~ ${row.endPoint ?? ''}`, |
| | | }, |
| | | { label: '等级折扣', prop: 'discountTypeStr' }, |
| | | { label: '操作人', prop: 'createName' }, |
| | | ], |
| | |
| | | el: { |
| | | unit: '', |
| | | separator: '<= 成长值范围 <', |
| | | inputAttrs: { |
| | | controls: false, |
| | | }, |
| | | controls: false, |
| | | min: 0, |
| | | max: 99999999, |
| | | }, |
| | | commonFormat: true, |
| | | commonFormatProps: ['startPoint', 'endPoint'], |
| | |
| | | el: { |
| | | precision: 2, |
| | | min: 0, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | unit: '元/扎', |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 0, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | unit: '成长值', |
| | |
| | | el: { |
| | | inputAttrs: { |
| | | min: 1, |
| | | max: 99999999, |
| | | precision: 0, |
| | | controls: false, |
| | | }, |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 0, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { required: true, message: '请输入库存', trigger: 'blur' }, |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 1, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 0, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { required: true, message: '请输入库存', trigger: 'blur' }, |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 1, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { |
| | |
| | | <el-dialog title="积分变动记录" :visible.sync="dialogVisible" width="80%"> |
| | | <el-bus-crud |
| | | v-if="customerId" |
| | | :key="customerId" |
| | | :key="dialogId" |
| | | :extra-query="{ customerId }" |
| | | v-bind="recordTableConfig" |
| | | /> |
| | |
| | | </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, |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 1, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 1, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { |
| | |
| | | { |
| | | text: '积分变动记录', |
| | | atClick: (row) => { |
| | | this.dialogId = uuidv4() |
| | | this.customerId = row.customerId |
| | | this.dialogVisible = true |
| | | }, |
| | |
| | | type: 'input-number', |
| | | el: { |
| | | min: 0, |
| | | max: 99999999, |
| | | precision: 2, |
| | | controls: false, |
| | | }, |
| | |
| | | type: 'input-number', |
| | | el: { |
| | | min: 0.01, |
| | | max: 99999999, |
| | | precision: 2, |
| | | controls: false, |
| | | }, |