Commit a528dd64 authored by 黄奎's avatar 黄奎

页面修改

parent 53fdc9d8
......@@ -246,6 +246,7 @@
<td>{{item.B2BMemberPrice}}</td>
<td>{{item.TotalSeat}}</td>
<td>
<span :title="$t('objFill.v101.dianjtbmqdan')" class="Order_RS" :class="{'RS_RedType':item.OrderTotalNum>0}"
@click="goUrl('RegistrationList',item.TCID,'设置领队')">{{item.OrderTotalNum-item.OrderLeaderGuestNum}}
<span v-if="item.OrderLeaderGuestNum>0">+{{item.OrderLeaderGuestNum}}</span>
......
......@@ -81,8 +81,8 @@
</td>
<td>{{priceFlight.ArrivalAirPortName}}</td>
<td>
<el-input v-if="priceFlight.IsShowTime||priceFlight.IsShow" :placeholder="$t('system.query_arrivalTime')" class="w80"
:value="priceFlight.ArrivalTime" @input="e => changeTime(index,e)">
<el-input v-if="priceFlight.IsShowTime||priceFlight.IsShow" :placeholder="$t('system.query_arrivalTime')"
class="w80" :value="priceFlight.ArrivalTime" @input="e => changeTime(index,e)">
</el-input>
<span v-else> {{priceFlight.ArrivalTime}}</span>
</td>
......@@ -217,21 +217,21 @@
}
},
methods: {
changeTime(index,value) {
changeTime(index, value) {
const valueArr = value.split(':')
if(valueArr.length <= 2) {
if(valueArr[0] < 24) {
if(!valueArr[1] || valueArr[1] < 60) {
if (valueArr.length <= 2) {
if (valueArr[0] < 24) {
if (!valueArr[1] || valueArr[1] < 60) {
this.$set(this.priceFlightList[index], 'ArrivalTime', value)
}
}
}
},
changeDepartureTime(index,value) {
changeDepartureTime(index, value) {
const valueArr = value.split(':')
if(valueArr.length <= 2) {
if(valueArr[0] < 24) {
if(!valueArr[1] || valueArr[1] < 60) {
if (valueArr.length <= 2) {
if (valueArr[0] < 24) {
if (!valueArr[1] || valueArr[1] < 60) {
this.$set(this.priceFlightList[index], 'DepartureTime', value)
}
}
......@@ -263,7 +263,7 @@
//交通类型切换
getTrafficType(item) {
if (item.TrafficType == 2) {
this.airLineSelectChange(item,1);
this.airLineSelectChange(item, 1);
}
},
//航空公司下拉
......@@ -287,7 +287,7 @@
msg,
res => {
if (res.data.resultCode == 1) {
item.airportNameList =[];
item.airportNameList = [];
item.airportNameList = res.data.data
}
},
......@@ -306,8 +306,9 @@
}
})
},
initFlightList(AirTicketId) {
initFlightList(AirTicketId, TCID) {
let msg = {
TCID: TCID,
AirTicketId: AirTicketId,
DeleteAirticketIds: ''
}
......@@ -353,10 +354,10 @@
},
//保存航班信息
savePriceFlight(item) {
if(!/([0|1][0-9])|(2[0|1|2|3]):[0|1|2|3|4|5][0-9]/.test(item.DepartureTime)) {
if (!/([0|1][0-9])|(2[0|1|2|3]):[0|1|2|3|4|5][0-9]/.test(item.DepartureTime)) {
this.$message.error(this.$t('objFill.qifeijgesbd'))
return
} else if(!/([0|1][0-9])|(2[0|1|2|3]):[0|1|2|3|4|5][0-9]/.test(item.ArrivalTime)) {
} else if (!/([0|1][0-9])|(2[0|1|2|3]):[0|1|2|3|4|5][0-9]/.test(item.ArrivalTime)) {
this.$message.error(this.$t('objFill.daodasjgsbd'))
return
}
......@@ -399,7 +400,7 @@
var that = this
var msg = that.$t('sm.shanchuhangbbnhf')
if (type == 2) {
msg = this.$t('objFill.yingcanhbxs')+'【' + item.FlightNumber + '】'+ this.$t('objFill.hangbanqjscz')
msg = this.$t('objFill.yingcanhbxs') + '【' + item.FlightNumber + '】' + this.$t('objFill.hangbanqjscz')
}
that.Confirm(msg, function () {
if (index > -1) {
......@@ -458,7 +459,7 @@
init() {
this.postData = this.priceData
if (this.postData.AirTicketId != 0 && this.postData.PriceFlight == null) {
this.initFlightList(this.postData.AirTicketId)
this.initFlightList(this.postData.AirTicketId, this.postData.TCID);
} else if (
this.postData.PriceFlight != undefined &&
this.postData.PriceFlight != null &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment