diff --git a/src/views/members/memberDetails.vue b/src/views/members/memberDetails.vue index 5cfa817..94a932d 100644 --- a/src/views/members/memberDetails.vue +++ b/src/views/members/memberDetails.vue @@ -49,7 +49,7 @@ - +
会员类型: @@ -77,6 +77,10 @@
+ 原价: + +
+
会员价格:
@@ -115,7 +119,10 @@ - + + + + @@ -157,6 +164,7 @@ vipShow: false , memberGrade: '', vipName: '', + oldMoney: '', money: '', award: '', rate: '', @@ -169,6 +177,7 @@ form: { id: '', vipName: '', + oldMoney: 0.00, money: 0.00, award: 0.00, rate: 0.00, @@ -282,6 +291,7 @@ method: 'post', data: this.$http.adornData({ 'vipName': this.vipName, + 'oldMoney': this.oldMoney, 'money': this.money, 'award': this.award, 'vipType': this.vipType, @@ -298,6 +308,7 @@ duration: 1500, onClose: () => { this.vipName = '' + this.oldMoney = '' this.money = '' this.award = '' this.rate = '' @@ -313,6 +324,7 @@ this.dialogFormVisible1 = true this.form.id = rows.id this.form.vipName = rows.vipName + this.form.oldMoney = rows.oldMoney this.form.money = rows.money this.form.award = rows.award this.form.vipNameType = rows.vipNameType @@ -353,6 +365,7 @@ data: this.$http.adornData({ 'id': this.form.id, 'vipName': this.form.vipName, + 'oldMoney': this.form.oldMoney, 'money': this.form.money, 'award': this.form.award, 'vipType': this.form.vipType, diff --git a/src/views/travelConf/add-or-update.vue b/src/views/travelConf/add-or-update.vue index 6270af2..1ebb43d 100644 --- a/src/views/travelConf/add-or-update.vue +++ b/src/views/travelConf/add-or-update.vue @@ -160,7 +160,7 @@ //清空多余内容 let cleanField = []; if(saveData.pricingType == 1){ - cleanField = [ 'seasonsType', 'timeIntervalType', 'startingPrice', 'freeKilometers', 'nightTravelExpenses', 'pricePerKilometer' ]; + cleanField = [ 'seasonsType', 'timeIntervalType', 'startingPrice', 'freeKilometers', 'pricePerKilometer' ]; }else if(saveData.pricingType == 2) { cleanField = [ 'fixedType', 'fixedPrice' ]; } @@ -170,6 +170,8 @@ }); } + console.log(cleanField); + this.$http({ url: this.$http.adornUrl(`travelConf/${!saveData.id ? 'add' : 'update'}`), method: 'post',