夜间出行
This commit is contained in:
parent
188ab7e615
commit
e0bf39f3fa
|
@ -49,7 +49,7 @@
|
|||
</el-pagination>
|
||||
</div>
|
||||
<el-dialog title="添加会员" :visible.sync="dialogFormVisible" center>
|
||||
|
||||
|
||||
<div style="margin-bottom: 20px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">会员类型:</span>
|
||||
<el-radio-group v-model="form.vipType" @change="handleHylx">
|
||||
|
@ -77,6 +77,10 @@
|
|||
<el-input v-model="rate" type="number" style="width:65%;" min="0" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;" :hidden="vipShow">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">原价:</span>
|
||||
<el-input style="width:50%;" v-model="oldMoney" type="number" placeholder="请输入原价" min="0" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;" :hidden="vipShow">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">会员价格:</span>
|
||||
<el-input style="width:50%;" v-model="money" type="number" placeholder="请输入会员价格" min="0" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input>
|
||||
</div>
|
||||
|
@ -115,7 +119,10 @@
|
|||
<el-form-item label="优惠力度:" :label-width="formLabelWidth">
|
||||
<el-input v-model="form.rate" type="number" style="width:65%;" min="0" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="会员价格:" :label-width="formLabelWidth" :hidden="vipShow">
|
||||
<el-form-item label="原价:" :label-width="formLabelWidth" :hidden="vipShow">
|
||||
<el-input v-model="form.oldMoney" type="number" style="width:65%;" min="0" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="会员价格:" :label-width="formLabelWidth" :hidden="vipShow">
|
||||
<el-input v-model="form.money" type="number" style="width:65%;" min="0" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="邀请赏金:" :label-width="formLabelWidth" :hidden="vipShow">
|
||||
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue