|
@@ -3,19 +3,19 @@
|
|
|
<div class="cost-box">
|
|
|
<el-dialog width="500" title="机票行程数据" :visible.sync="dialogTableVisible">
|
|
|
<el-table border :data="gridData">
|
|
|
- <el-table-column property="day" label="DAY" width="150"></el-table-column>
|
|
|
- <el-table-column property="date" label="DATE" width="200"></el-table-column>
|
|
|
- <el-table-column property="itin" label="ITIN"></el-table-column>
|
|
|
+ <el-table-column property="day" label="DAY" width="150"></el-table-column>
|
|
|
+ <el-table-column property="date" label="DATE" width="200"></el-table-column>
|
|
|
+ <el-table-column property="itin" label="ITIN"></el-table-column>
|
|
|
</el-table>
|
|
|
<div class="btn-dialog-cost">
|
|
|
<el-button @click="confirmationTP" size="small" type="primary">采用机票同事的行程数据</el-button>
|
|
|
|
|
|
- <el-button @click="dialogTableVisible=false" size="small">采用现有的自定义数据</el-button>
|
|
|
+ <el-button @click="dialogTableVisible = false" size="small">采用现有的自定义数据</el-button>
|
|
|
</div>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
- <el-dialog width="80%" title="酒店询价数据" :visible.sync="dialogTableVisibleXJ">
|
|
|
- <el-table :data="tableDatas" border
|
|
|
+ <el-dialog width="80%" title="酒店询价数据" :visible.sync="dialogTableVisibleXJ">
|
|
|
+ <el-table :data="tableDatas" border
|
|
|
>
|
|
|
<el-table-column type="index" label="选中" width="55">
|
|
|
<template slot-scope="scope">
|
|
@@ -369,8 +369,9 @@
|
|
|
v-model="scope.row[item.prop]"
|
|
|
@change="dateChange(scope.row[item.prop], scope.$index)">
|
|
|
</el-input> -->
|
|
|
- <el-date-picker @change="TimeUpdateAnewOrderby(scope.$index)" :clearable="false" size="mini" v-model="scope.row[item.prop]"
|
|
|
- type="date" value-format="yyyy-MM-dd" placeholder="选择日期">
|
|
|
+ <el-date-picker @change="TimeUpdateAnewOrderby(scope.$index)" :clearable="false"
|
|
|
+ size="mini" v-model="scope.row[item.prop]" type="date" value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</span>
|
|
|
<div style="position: absolute;left: 36%;">
|
|
@@ -2731,8 +2732,8 @@ export default {
|
|
|
acconarrs: [],
|
|
|
isShare: 0,
|
|
|
blackCodeIsTrue: false,
|
|
|
- dialogTableVisible:false,
|
|
|
- gridData:[],
|
|
|
+ dialogTableVisible: false,
|
|
|
+ gridData: [],
|
|
|
//监听变量
|
|
|
//count: 0,
|
|
|
x: 0,
|
|
@@ -4178,7 +4179,7 @@ export default {
|
|
|
let result = {};
|
|
|
for (let flight of ["经济舱", "公务舱"]) {
|
|
|
if (flight === "经济舱") {
|
|
|
- this.matchRooms(hotelRooms, flights, ["SGR", "TBR", "JSES", "SUITE"], flight, result);
|
|
|
+ this.matchRooms(hotelRooms, flights, ["TBR", "SGR", "JSES", "SUITE"], flight, result);
|
|
|
} else if (flight === "公务舱") {
|
|
|
this.matchRooms(hotelRooms, flights, ["SUITE", "JSES", "SGR", "TBR"], flight, result);
|
|
|
}
|
|
@@ -4295,6 +4296,7 @@ export default {
|
|
|
var JJCSUITERS = (result.hasOwnProperty("经济舱SUITE") ? result["经济舱SUITE"] : 0)
|
|
|
var txtGWCSUITERS = (result.hasOwnProperty("公务舱SUITE") ? result["公务舱SUITE"] : 0)
|
|
|
|
|
|
+ console.log(txtJJCSGRRS, lblGWCSGRRS, txtJJCTBRRS, txtGWCJSESRS, JJCSUITERS, txtGWCSUITERS, 'test');
|
|
|
|
|
|
if (txtJJCSGRRS > 0) {
|
|
|
rightCheckArr.push('经济舱 SGR');
|
|
@@ -5568,7 +5570,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
importBlackCode() {
|
|
|
- this.gridData=[];
|
|
|
+ this.gridData = [];
|
|
|
var url = "/api/Groups/CraeteGroupCostTravel"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -5583,11 +5585,11 @@ export default {
|
|
|
}).then(function (resp) {
|
|
|
if (resp.data.code == 200) {
|
|
|
//console.log('CraeteGroupCostTravelResponse', resp.data.data);
|
|
|
- that.gridData=resp.data.data.groupCost;
|
|
|
+ that.gridData = resp.data.data.groupCost;
|
|
|
that.blackCodeIsTrue = resp.data.data.blackCodeIsTrue;
|
|
|
if (that.blackCodeIsTrue) {
|
|
|
- that.dialogTableVisible=true;
|
|
|
- }else{
|
|
|
+ that.dialogTableVisible = true;
|
|
|
+ } else {
|
|
|
that.$message.error("机票数据未录入!");
|
|
|
}
|
|
|
// that.tableData = resp.data.data.groupCost;
|
|
@@ -5605,7 +5607,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
//机票行程确认赋值
|
|
|
- confirmationTP(){
|
|
|
+ confirmationTP() {
|
|
|
this.tableData = this.gridData;
|
|
|
for (var i = 0; i < this.tableData.length; i++) {
|
|
|
for (var prop in this.tableData[i]) {
|
|
@@ -5614,7 +5616,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.dialogTableVisible=false;
|
|
|
+ this.dialogTableVisible = false;
|
|
|
},
|
|
|
//监听鼠标
|
|
|
MonitorMouse() {
|
|
@@ -5670,16 +5672,16 @@ export default {
|
|
|
clearInterval(this.autoSave);
|
|
|
})
|
|
|
},
|
|
|
- TimeUpdateAnewOrderby(index){
|
|
|
- if(index == 0 && this.tableData.length > 0){
|
|
|
- var start = this.tableData[0].date;
|
|
|
- for (var i = 0; i < this.tableData.length; i++) {
|
|
|
- if(this.tableData[i].date){
|
|
|
- this.tableData[i].date = start;
|
|
|
- start = this.addOneDay(start,1)
|
|
|
- }
|
|
|
+ TimeUpdateAnewOrderby(index) {
|
|
|
+ if (index == 0 && this.tableData.length > 0) {
|
|
|
+ var start = this.tableData[0].date;
|
|
|
+ for (var i = 0; i < this.tableData.length; i++) {
|
|
|
+ if (this.tableData[i].date) {
|
|
|
+ this.tableData[i].date = start;
|
|
|
+ start = this.addOneDay(start, 1)
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
},
|
|
|
//团组询价列表
|
|
|
PostHotelInquiryPageItem() {
|
|
@@ -6123,7 +6125,8 @@ export default {
|
|
|
.accon-ul:last-child {
|
|
|
bottom: 15px;
|
|
|
}
|
|
|
-.btn-dialog-cost{
|
|
|
+
|
|
|
+.btn-dialog-cost {
|
|
|
margin-top: 20px;
|
|
|
text-align: right;
|
|
|
}
|