|
@@ -198,11 +198,11 @@
|
|
|
@mousewheel.native.prevent
|
|
|
:disabled='!isNew'></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="缴费人数"
|
|
|
- prop="maxNum"
|
|
|
+ <el-form-item label="缴费金额"
|
|
|
+ prop="maxAmount"
|
|
|
:rules="[{ required: true, validator: validMaxNum, trigger: 'blur' }]"
|
|
|
v-if="maskForm.type == 12">
|
|
|
- <el-input v-model.trim="maskForm.maxNum"
|
|
|
+ <el-input v-model.trim="maskForm.maxAmount"
|
|
|
type="number"
|
|
|
@mousewheel.native.prevent></el-input>
|
|
|
</el-form-item>
|
|
@@ -392,9 +392,9 @@ import load from '@/utils/loading'
|
|
|
import vueQr from 'vue-qr'
|
|
|
let validMaxNum = (rule, value, callback) => {
|
|
|
if (value == '' && typeof value == 'string' || value == null) {
|
|
|
- callback(new Error('请输入缴费人数'))
|
|
|
+ callback(new Error('请输入缴费金额'))
|
|
|
} else if (value < 0) {
|
|
|
- callback(new Error('输入缴费人数必须大于0'))
|
|
|
+ callback(new Error('输入缴费金额必须大于0'))
|
|
|
} else {
|
|
|
callback()
|
|
|
}
|
|
@@ -447,7 +447,7 @@ export default {
|
|
|
title: '',
|
|
|
code: '',
|
|
|
musicGroupId: '',
|
|
|
- maxNum: null,
|
|
|
+ maxAmount: null,
|
|
|
subMoney: ''
|
|
|
},
|
|
|
maskMusicList: [],
|
|
@@ -543,7 +543,7 @@ export default {
|
|
|
musicGroupId: null,
|
|
|
type: null,
|
|
|
money: null,
|
|
|
- maxNum: null,
|
|
|
+ maxAmount: null,
|
|
|
desc: null,
|
|
|
title: null,
|
|
|
code: null
|
|
@@ -602,7 +602,7 @@ export default {
|
|
|
maskForm.organId = row.organId
|
|
|
maskForm.money = row.amount
|
|
|
maskForm.subMoney = row.discountAmount
|
|
|
- maskForm.maxNum = row.maxNum
|
|
|
+ maskForm.maxAmount = row.maxAmount
|
|
|
maskForm.musicGroupId = row.musicGroupId ? row.musicGroupId : null
|
|
|
if (row.userId) {
|
|
|
queryUserMusicInfos({ userId: row.userId }).then(studentInfo => {
|
|
@@ -636,7 +636,7 @@ export default {
|
|
|
}
|
|
|
this.$refs['maskForm'].validate(item => {
|
|
|
if(item) {
|
|
|
- updateZero(cleanDeep({ id: maskForm.id, maxNum: maskForm.maxNum })).then(res => {
|
|
|
+ updateZero(cleanDeep({ id: maskForm.id, maxAmount: maskForm.maxAmount })).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('更新成功')
|
|
|
this.zeroVisible = false;
|
|
@@ -657,7 +657,7 @@ export default {
|
|
|
amount: this.maskForm.money,
|
|
|
musicGroupId: this.maskForm.musicGroupId,
|
|
|
discountAmount: this.maskForm.subMoney,
|
|
|
- maxNum: this.maskForm.maxNum
|
|
|
+ maxAmount: this.maskForm.maxAmount
|
|
|
}
|
|
|
addZero(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -827,7 +827,7 @@ export default {
|
|
|
money: '',
|
|
|
desc: '',
|
|
|
title: '',
|
|
|
- maxNum: null,
|
|
|
+ maxAmount: null,
|
|
|
code: ''
|
|
|
}
|
|
|
// this.$refs['maskForm'].resetFields()
|