夜间出行
This commit is contained in:
parent
188ab7e615
commit
e0bf39f3fa
|
@ -75,6 +75,10 @@
|
||||||
<div style="margin-bottom: 20px;">
|
<div style="margin-bottom: 20px;">
|
||||||
<span style="width: 200px;display: inline-block;text-align: right;">优惠力度:</span>
|
<span style="width: 200px;display: inline-block;text-align: right;">优惠力度:</span>
|
||||||
<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>
|
<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>
|
||||||
<div style="margin-bottom: 20px;" :hidden="vipShow">
|
<div style="margin-bottom: 20px;" :hidden="vipShow">
|
||||||
<span style="width: 200px;display: inline-block;text-align: right;">会员价格:</span>
|
<span style="width: 200px;display: inline-block;text-align: right;">会员价格:</span>
|
||||||
|
@ -114,6 +118,9 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="优惠力度:" :label-width="formLabelWidth">
|
<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-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-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>
|
||||||
<el-form-item label="会员价格:" :label-width="formLabelWidth" :hidden="vipShow">
|
<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-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>
|
||||||
|
@ -157,6 +164,7 @@
|
||||||
vipShow: false ,
|
vipShow: false ,
|
||||||
memberGrade: '',
|
memberGrade: '',
|
||||||
vipName: '',
|
vipName: '',
|
||||||
|
oldMoney: '',
|
||||||
money: '',
|
money: '',
|
||||||
award: '',
|
award: '',
|
||||||
rate: '',
|
rate: '',
|
||||||
|
@ -169,6 +177,7 @@
|
||||||
form: {
|
form: {
|
||||||
id: '',
|
id: '',
|
||||||
vipName: '',
|
vipName: '',
|
||||||
|
oldMoney: 0.00,
|
||||||
money: 0.00,
|
money: 0.00,
|
||||||
award: 0.00,
|
award: 0.00,
|
||||||
rate: 0.00,
|
rate: 0.00,
|
||||||
|
@ -282,6 +291,7 @@
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'vipName': this.vipName,
|
'vipName': this.vipName,
|
||||||
|
'oldMoney': this.oldMoney,
|
||||||
'money': this.money,
|
'money': this.money,
|
||||||
'award': this.award,
|
'award': this.award,
|
||||||
'vipType': this.vipType,
|
'vipType': this.vipType,
|
||||||
|
@ -298,6 +308,7 @@
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.vipName = ''
|
this.vipName = ''
|
||||||
|
this.oldMoney = ''
|
||||||
this.money = ''
|
this.money = ''
|
||||||
this.award = ''
|
this.award = ''
|
||||||
this.rate = ''
|
this.rate = ''
|
||||||
|
@ -313,6 +324,7 @@
|
||||||
this.dialogFormVisible1 = true
|
this.dialogFormVisible1 = true
|
||||||
this.form.id = rows.id
|
this.form.id = rows.id
|
||||||
this.form.vipName = rows.vipName
|
this.form.vipName = rows.vipName
|
||||||
|
this.form.oldMoney = rows.oldMoney
|
||||||
this.form.money = rows.money
|
this.form.money = rows.money
|
||||||
this.form.award = rows.award
|
this.form.award = rows.award
|
||||||
this.form.vipNameType = rows.vipNameType
|
this.form.vipNameType = rows.vipNameType
|
||||||
|
@ -353,6 +365,7 @@
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'id': this.form.id,
|
'id': this.form.id,
|
||||||
'vipName': this.form.vipName,
|
'vipName': this.form.vipName,
|
||||||
|
'oldMoney': this.form.oldMoney,
|
||||||
'money': this.form.money,
|
'money': this.form.money,
|
||||||
'award': this.form.award,
|
'award': this.form.award,
|
||||||
'vipType': this.form.vipType,
|
'vipType': this.form.vipType,
|
||||||
|
|
|
@ -160,7 +160,7 @@
|
||||||
//清空多余内容
|
//清空多余内容
|
||||||
let cleanField = [];
|
let cleanField = [];
|
||||||
if(saveData.pricingType == 1){
|
if(saveData.pricingType == 1){
|
||||||
cleanField = [ 'seasonsType', 'timeIntervalType', 'startingPrice', 'freeKilometers', 'nightTravelExpenses', 'pricePerKilometer' ];
|
cleanField = [ 'seasonsType', 'timeIntervalType', 'startingPrice', 'freeKilometers', 'pricePerKilometer' ];
|
||||||
}else if(saveData.pricingType == 2) {
|
}else if(saveData.pricingType == 2) {
|
||||||
cleanField = [ 'fixedType', 'fixedPrice' ];
|
cleanField = [ 'fixedType', 'fixedPrice' ];
|
||||||
}
|
}
|
||||||
|
@ -170,6 +170,8 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(cleanField);
|
||||||
|
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`travelConf/${!saveData.id ? 'add' : 'update'}`),
|
url: this.$http.adornUrl(`travelConf/${!saveData.id ? 'add' : 'update'}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
Loading…
Reference in New Issue