|
@@ -661,16 +661,20 @@ export default {
|
|
|
addZero () {
|
|
|
this.$refs['maskForm'].validate(item => {
|
|
|
if (item) {
|
|
|
+ let maskForm = this.maskForm
|
|
|
let obj = {
|
|
|
- chargeType: this.maskForm.type,
|
|
|
- detail: this.maskForm.desc,
|
|
|
- title: this.maskForm.title,
|
|
|
- organId: this.maskForm.organId,
|
|
|
- amount: this.maskForm.money,
|
|
|
- musicGroupId: this.maskForm.musicGroupId,
|
|
|
- discountAmount: this.maskForm.subMoney,
|
|
|
- maxAmount: this.maskForm.maxAmount,
|
|
|
- openMaxTerm: this.maskForm.openMaxTerm
|
|
|
+ chargeType: maskForm.type,
|
|
|
+ detail: maskForm.desc,
|
|
|
+ title: maskForm.title,
|
|
|
+ organId: maskForm.organId,
|
|
|
+ amount: maskForm.money,
|
|
|
+ musicGroupId: maskForm.musicGroupId,
|
|
|
+ discountAmount: maskForm.subMoney,
|
|
|
+ }
|
|
|
+
|
|
|
+ if(maskForm.type == 12) {
|
|
|
+ obj.maxAmount = maskForm.maxAmount,
|
|
|
+ obj.openMaxTerm = maskForm.openMaxTerm
|
|
|
}
|
|
|
addZero(obj).then(res => {
|
|
|
if (res.code == 200) {
|