Procházet zdrojové kódy

Merge branch 'master' of http://132.232.92.186:3000/XinXiBu/oa-system

liuhj před 11 měsíci
rodič
revize
9671dcd5da
1 změnil soubory, kde provedl 210 přidání a 65 odebrání
  1. 210 65
      src/components/Finance/Cost.vue

+ 210 - 65
src/components/Finance/Cost.vue

@@ -13,6 +13,70 @@
                     <el-button @click="dialogTableVisible = false" size="small">采用现有的自定义数据</el-button>
                 </div>
             </el-dialog>
+
+            <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">
+							<el-checkbox :value='checkboxsXJ.includes(scope.row.id)' @change='CheckboxChangeXJ(scope.row.id)'></el-checkbox>
+						</template>
+					</el-table-column>
+					<el-table-column prop="city" label="城市" width="120">
+					</el-table-column>
+					<el-table-column prop="name" label="酒店名称">
+					</el-table-column>
+					<el-table-column prop="checkInDate" label="入住日期" width="100">
+						<template slot-scope="scope">
+							{{scope.row.checkInDate|filter_time}}
+						</template>
+					</el-table-column>
+					<el-table-column prop="checkOutDate" label="退房日期" width="100">
+						<template slot-scope="scope">
+							{{scope.row.checkOutDate|filter_time}}
+						</template>
+					</el-table-column>
+					<el-table-column prop="selectDt" label="查询时间" width="150">
+					</el-table-column>
+					<el-table-column prop="createTime" label="SGR(价格/币种/数量)" width="120">
+						<template slot-scope="scope">
+							{{scope.row.singlePrice|townum}}&nbsp;/&nbsp;{{scope.row.singleCurrency}}&nbsp;/&nbsp;{{scope.row.singleQuantity}}
+						</template>
+					</el-table-column>
+					<el-table-column prop="createTime" label="TBR(价格/币种/数量)" width="120">
+						<template slot-scope="scope">
+							{{scope.row.doublePrice|townum}}&nbsp;/&nbsp;{{scope.row.doubleCurrency}}&nbsp;/&nbsp;{{scope.row.doubleQuantity}}
+						</template>
+					</el-table-column>
+					<el-table-column prop="createTime" label="JS/ES(价格/币种/数量)" width="120">
+						<template slot-scope="scope">
+							{{scope.row.suitePrice|townum}}&nbsp;/&nbsp;{{scope.row.suiteCurrency}}&nbsp;/&nbsp;{{scope.row.suiteQuantity}}
+						</template>
+					</el-table-column>
+					<el-table-column prop="createTime" label="SUITE(价格/币种/数量)" width="120">
+						<template slot-scope="scope">
+							{{scope.row.otherPrice|townum}}&nbsp;/&nbsp;{{scope.row.otherCurrency}}&nbsp;/&nbsp;{{scope.row.otherQuantity}}
+						</template>
+					</el-table-column>
+					<el-table-column prop="createUserName" label="查询人" width="80">
+					</el-table-column>
+					<!-- <el-table-column prop="remark" label="备注">
+                    </el-table-column> -->
+					<!-- <el-table-column prop="name" label="操 作" width="140">
+						<template slot-scope="scope">
+							@click="PostHotelReservationsDetails(scope.$index, scope.row)" 
+							<el-button @click="PostHotelInquiryInfo(scope.row)" type="primary" size="mini" icon="el-icon-edit"></el-button>
+							<el-button @click="PostHotelInquiryDel(scope.row)" type="danger" size="mini" icon="el-icon-delete"></el-button>
+						</template>
+					</el-table-column> -->
+				</el-table>
+                <div class="btn-dialog-cost">
+                    <el-button size="small" type="primary" @click='adoptHotelData'>采用酒店同事的询价数据</el-button>
+                    &nbsp;&nbsp;&nbsp;
+                    <el-button @click="dialogTableVisibleXJ = false" size="small">采用现有的自定义数据</el-button>
+                </div>
+              </el-dialog>
+
             <div class="cost-haed">
                 <div class="ser-btn">
                     <div class="ser-btn-li Cost_topFlex" style="display: flex;">
@@ -36,7 +100,8 @@
                     <div class="ser-btn-li">
                         <el-button size="small" :type="blackCodeIsTrue ? 'primary' : 'danger'"
                             @click="importBlackCode">导入机票行程数据</el-button>
-                        <el-button size="small" type="primary">导入收款账单</el-button>
+                        <el-button size="small" type="primary" @click="PostHotelInquiryPageItem">查看酒店询价价格</el-button>
+                        <!-- <el-button size="small" type="primary">导入收款账单</el-button> -->
                         <el-button size="small" type="primary" @click="GetPriceCheckWord">生成收款账单</el-button>
                         <el-button size="small" type="primary" @click="GetClientWord">导出客户报表</el-button>
                         <el-button size="small" type="primary" @click="GetGroupCostExcel">导出成本</el-button>
@@ -2673,13 +2738,17 @@ export default {
             //count: 0,
             x: 0,
             y: 0,
+            tableDatas:[],
+            dialogTableVisibleXJ:false,
+            checkboxsXJ:[],
+
         };
     },
     watch: {
         costTypeHotelNumbers: {
             handler(val) {
                 for (var i = 0; i < val.length; i++) {
-                    console.log(val[i]);
+                    //console.log(val[i]);
                     if (val[i].tbr == '') {
                         val[i].tbr = 0
                     }
@@ -2704,7 +2773,7 @@ export default {
                     } else {
                         this.centerheight = this.defaultheight + (this.tableData.length * 230) - ((this.tableData.length - 1) * 50);
                     }
-                    ////console.log('高度' + this.centerheight);
+                    //////console.log('高度' + this.centerheight);
                 }
             }
         }
@@ -2722,8 +2791,8 @@ export default {
         acconinput(val, index) {
             this.acconarr = [];
             this.acconarrs = [];
-            console.log(val);
-            console.log(index);
+            //console.log(val);
+            //console.log(index);
             for (var i = 0; i < this.tableData.length; i++) {
                 this.acconarr.push(this.tableData[i].accon)
             }
@@ -2733,7 +2802,7 @@ export default {
                 }
             }
             this.acconarrs = Array.from(new Set(this.acconarrs));
-            console.log(this.acconarrs)
+            //console.log(this.acconarrs)
             document.querySelectorAll('.accon-ul')[index].classList.add('accons-ul')
         },
         acconclick(val, index) {
@@ -2741,7 +2810,7 @@ export default {
         },
         getSummaries(param) {
             var that = this;
-            //console.log(param)
+            ////console.log(param)
             const { columns, data } = param;
             const sums = [];
             const sums1 = [];
@@ -2752,25 +2821,25 @@ export default {
             var ATime = { start: that.addOneDay(that.AGroupCostParameter.costTypeStartTime, 0), end: that.addOneDay(that.AGroupCostParameter.costTypeendTime, 0) };
             var BTime = { start: that.addOneDay(that.BGroupCostParameter.costTypeStartTime, 0), end: that.addOneDay(that.BGroupCostParameter.costTypeendTime, 0) };
 
-            ////console.log('ATime,BTime', ATime, BTime);
+            //////console.log('ATime,BTime', ATime, BTime);
             var data1 = [];
             var data2 = [];
 
-            ////console.log('datas', data);
+            //////console.log('datas', data);
 
-            if (that.costTypevalue == 'B') {
+            if (that.costTypevalue == 'B') {    
                 for (var i = 0; i < thisData.length; i++) {
                     var forTime = thisData[i].date;
                     if (forTime == '' && i != 0) {
                         forTime = thisData[i - 1].date;
                     }
                     if (forTime) {
-                        forTime = new Date(forTime).getDate();
+                        forTime = new Date(forTime).getTime();
                     }
-                    if (forTime >= new Date(ATime.start).getDate() && forTime <= new Date(ATime.end).getDate()) {
+                    if (forTime >= new Date(ATime.start).getTime() && forTime <= new Date(ATime.end).getTime()) {
                         data1.push(thisData[i])
                     }
-                    if (forTime >= new Date(BTime.start).getDate() && forTime <= new Date(BTime.end).getDate()) {
+                    if (forTime >= new Date(BTime.start).getTime() && forTime <= new Date(BTime.end).getTime()) {
                         data2.push(thisData[i])
                     }
                 }
@@ -2781,7 +2850,7 @@ export default {
                     that.peopleNumber = Number(that.AGroupCostParameter.costTypenumber);
                 }
             }
-            //console.log('3data', thisData, data1, data2);
+            ////console.log('3data', thisData, data1, data2);
             columns.forEach((column, index) => {
                 if (index === 0) {
                     prices[index] = "总计:";
@@ -2883,9 +2952,9 @@ export default {
                 }
             });
             this.titleText = texts;
-            ////console.log(that.sumTopPrice, 'sumTopPrice---------------');
+            //////console.log(that.sumTopPrice, 'sumTopPrice---------------');
             this.CalculatedPrice();
-            //////console.log(that.sumTopPrice, '------------');
+            ////////console.log(that.sumTopPrice, '------------');
             setTimeout(() => {
                 this.setLastTitle(prices);
                 if (that.costTypevalue == 'B') {
@@ -2900,7 +2969,7 @@ export default {
             return prices;
         },
         handleEdit(index, row, buttonIndex) {
-            //////console.log(index, row, buttonIndex);
+            ////////console.log(index, row, buttonIndex);
             this.rowIndex = index; // 行的索引
             var api = '';
             switch (buttonIndex) {
@@ -2941,7 +3010,7 @@ export default {
                     'Authorization': that.token,
                 }
             }).then(resp => {
-                ////console.log(resp.data.data, '------------------------------------');
+                //////console.log(resp.data.data, '------------------------------------');
                 that.outerVisible = true;
                 if (resp.data.code == 200) {
                     that.dialogTableData = resp.data.data;
@@ -2953,7 +3022,7 @@ export default {
 
         },
         handleDelete(index, row, rows) {
-            ////console.log(index, row, rows);
+            //////console.log(index, row, rows);
             this.$confirm('此操作将删除该条信息, 是否继续?', '提示', {
                 confirmButtonText: '确定',
                 cancelButtonText: '取消',
@@ -2974,7 +3043,7 @@ export default {
         },
         //减
         increase(val) {
-            console.log(this.tableData[val]);
+            //console.log(this.tableData[val]);
             if (this.tableData[val].day == "-") {
                 this.tableData[val].day = 0
             }
@@ -3070,7 +3139,7 @@ export default {
                     'Authorization': that.token,
                 }
             }).then(resp => {
-                ////console.log(resp.data.data, '------------------------------------');
+                //////console.log(resp.data.data, '------------------------------------');
                 if (resp.data.code == 200) {
 
                     that.options = resp.data.data.groupList;
@@ -3090,7 +3159,7 @@ export default {
                             for (var i = 0; i < that.CheckBoxListSelect.length; i++) {
                                 if (item.cbType == that.CheckBoxListSelect[i].cbType) {
                                     that.CheckBoxListSelect[i].cbValues = item.cbValues.split(',');
-                                    ////console.log(item.cbValues.split(','));
+                                    //////console.log(item.cbValues.split(','));
                                     break;
                                 }
                                 if (that.CheckBoxListSelect[i].diid == 0) {
@@ -3124,10 +3193,10 @@ export default {
 
                     if (resp.data.data.groupCost.length > 0) {
                         that.tableData = resp.data.data.groupCost;
-                        console.log(that.tableData);
+                        //console.log(that.tableData);
                         for (var i = 0; i < that.tableData.length; i++) {
                             for (var prop in that.tableData[i]) {
-                                console.log(that.tableData[i][prop]);
+                                //console.log(that.tableData[i][prop]);
                                 if (that.tableData[i][prop] == 0) {
                                     that.tableData[i][prop] = ''
                                 }
@@ -3186,7 +3255,7 @@ export default {
                         if (acostvalue != undefined) {
                             that.AGroupCostParameter = acostvalue;
                             that.isShare = that.AGroupCostParameter.isShare;//是否通知
-                            console.log(that.AGroupCostParameter)
+                            //console.log(that.AGroupCostParameter)
                             var result = Number(that.AGroupCostParameter.currency);
                             if (isNaN(result)) {
 
@@ -3506,10 +3575,10 @@ export default {
                                 let item = that.equalWhere[j];
                                 for (var p in item) {
                                     if (baoPi[i].type == p) {
-                                        ////console.log("key:" + p + "已经匹配 value:" + item[p]);
+                                        //////console.log("key:" + p + "已经匹配 value:" + item[p]);
                                         for (var m = 0; m < that.sheetDatal.length; m++) {
                                             if (that.sheetDatal[m].EnLabel == item[p]) {
-                                                ////console.log(" 1 key:" + that.sheetDatal[m].EnLabel + "已经匹配 1 value:" + baoPi[i].price);
+                                                //////console.log(" 1 key:" + that.sheetDatal[m].EnLabel + "已经匹配 1 value:" + baoPi[i].price);
                                                 that.sheetDatal[m].childList[0].tips = baoPi[i].price;
                                             }
                                         }
@@ -3636,7 +3705,7 @@ export default {
                         }
                     }
 
-                    console.log(pNumber, 'pNumber-------------');
+                    //console.log(pNumber, 'pNumber-------------');
                     if (this.grouptitleinfo.visitPNumber != pNumber) {
                         this.$message.error('团组人数与房间人数不一致!')
                         return resolve(false);
@@ -3694,7 +3763,7 @@ export default {
 
                     var ResultCostArr = this.Dataformat();
                     Data.groupCosts = ResultCostArr;
-                    ////console.log(Data, "save-------Data");
+                    //////console.log(Data, "save-------Data");
 
                     var that = this;
                     this.$axios.post('/api/Groups/SaveGroupCost', Data, {
@@ -3702,7 +3771,7 @@ export default {
                             'Authorization': that.token,
                         }
                     }).then(resp => {
-                        ////console.log(resp.data.data, '------------------------------------');
+                        //////console.log(resp.data.data, '------------------------------------');
                         if (resp.data.code == 200) {
                             this.$message({
                                 message: '保存成功!',
@@ -3950,7 +4019,7 @@ export default {
             this.currentPage = val;
         },
         SelChange(row, oldrow) {
-            ////console.log(row, oldrow);
+            //////console.log(row, oldrow);
             this.dialogSelectObject = row;
         },
         handleSizeChange(val) {
@@ -4073,8 +4142,8 @@ export default {
             SUITEsum = (SUITEsum * rate).toFixed(2);
             BSUITEsum = (BSUITEsum * rate).toFixed(2);
 
-            // ////console.log(Djsum, GWsum, LYJsum, 'Djsum,GWsum,LYJsum');
-            // ////console.log(SGRsum, TBRsum, JSESsum, SUITEsum, 'SGRsum,TBRsum,JSESsum,SUITEsum');
+            // //////console.log(Djsum, GWsum, LYJsum, 'Djsum,GWsum,LYJsum');
+            // //////console.log(SGRsum, TBRsum, JSESsum, SUITEsum, 'SGRsum,TBRsum,JSESsum,SUITEsum');
 
             var sgrfilter = this.costTypeHotelNumbers.filter(x => {
                 return x.type == 'Default'
@@ -4252,7 +4321,7 @@ export default {
             rightCheckArr = [...new Set(rightCheckArr)];
 
             try {
-                console.log('rightCheckArr', rightCheckArr);
+                //console.log('rightCheckArr', rightCheckArr);
                 this.CheckBoxListSelect.filter(item => item.cbType == 'Right')[0].cbValues = rightCheckArr;
             } catch (e) { }
 
@@ -4278,7 +4347,7 @@ export default {
             let GWCSUITE = (leftSum + Number(this.AGroupCostParameter.suitecb) + Number(this.AGroupCostParameter.gwccb)).toFixed(2);
             let GWCSGR = (leftSum + Number(this.AGroupCostParameter.sgrcb) + Number(this.AGroupCostParameter.gwccb)).toFixed(2);
             let GWCJSES = (leftSum + Number(this.AGroupCostParameter.jsescb) + Number(this.AGroupCostParameter.gwccb)).toFixed(2);
-            //////console.log(JJCSGR, JJCTBR, JJCSUITE, GWCSUITE, GWCSGR, GWCJSES, '666--------------------------');
+            ////////console.log(JJCSGR, JJCTBR, JJCSUITE, GWCSUITE, GWCSGR, GWCJSES, '666--------------------------');
 
             var rightSum = 0;
             this.OtherCostPropertyBJ.forEach((x) => {
@@ -4352,7 +4421,7 @@ export default {
             // }
 
 
-            //////console.log(groupCosts, gtroupQuotes, groupProfit, 'groupCosts, gtroupQuotes, groupProfit');
+            ////////console.log(groupCosts, gtroupQuotes, groupProfit, 'groupCosts, gtroupQuotes, groupProfit');
 
         },
         OtherCost() {
@@ -4403,7 +4472,7 @@ export default {
             }
         },
         NumberSetTime(number, index) {
-            console.log(number, index, this.grouptitleinfo.visitStartDate);
+            //console.log(number, index, this.grouptitleinfo.visitStartDate);
             number = parseInt(number);
             if (!isNaN(number)) {
                 var time = this.addOneDay(this.grouptitleinfo.visitStartDate, number - 1)
@@ -4427,7 +4496,7 @@ export default {
             return `${year}-${month}-${day}`;
         },
         costTypeSelect(val) {
-            ////console.log('costTypeSelect--------------------------------------------------------', val);
+            //////console.log('costTypeSelect--------------------------------------------------------', val);
         },
         async formVerify() {
             return new Promise((resolve, reject) => {
@@ -4461,7 +4530,7 @@ export default {
             })
         },
         topcheckboxChange(val, label) {
-            // console.log(val, label, 'topcheckboxChangeval');
+            // //console.log(val, label, 'topcheckboxChangeval');
             var that = this;
             if (!val) {
                 this.$confirm('此操作将清空整列数据, 是否继续?', '提示', {
@@ -4481,7 +4550,7 @@ export default {
                     if (label == 'SUITE') {
                         this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0].suite = 0
                     }
-                    ////console.log('确定清空数据');
+                    //////console.log('确定清空数据');
                     var fliterList = this.sumTopPrice.filter(x => x.label == label);
                     if (fliterList.length != 0) {
                         fliterList[0].Aprice = 0;
@@ -4539,7 +4608,7 @@ export default {
                         for (var i = 0; i < that.tableData.length; i++) {
                             that.tableData[i][prop] = initval;
                         }
-                        ////console.log(that.tableData, 'that.tableData数据');
+                        //////console.log(that.tableData, 'that.tableData数据');
                     }
 
                     this.$message({
@@ -4568,7 +4637,7 @@ export default {
                     'Authorization': this.token,
                 }
             }).then(resp => {
-                ////console.log(resp.data.data, '------------------------------------');
+                //////console.log(resp.data.data, '------------------------------------');
                 if (resp.data.code == 200) {
                     this.isShare = resp.data.data.isShare;
                     this.$message({
@@ -4781,7 +4850,7 @@ export default {
                     'Authorization': this.token,
                 }
             }).then(resp => {
-                ////console.log(resp, '------------------------------------');
+                //////console.log(resp, '------------------------------------');
                 try {
                     if (resp.data.code != 200) {
                         throw resp.data.msg;
@@ -4813,7 +4882,7 @@ export default {
         },
         async GetGroupCostExcel() {
 
-            ////console.log(this.titleText, 'this.titleText');
+            //////console.log(this.titleText, 'this.titleText');
 
             var isTrue = await this.save();
             if (!isTrue) {
@@ -4869,14 +4938,14 @@ export default {
             data.rightInfo = rightObject;
             data.titleModel = this.titleText;
 
-            ////console.log(data);
+            //////console.log(data);
 
             this.$axios.post('/api/Groups/ExportGroupCostExcelFile', data, {
                 headers: {
                     'Authorization': this.token,
                 }
             }).then(resp => {
-                ////console.log(resp, '------------------------------------');
+                //////console.log(resp, '------------------------------------');
                 if (resp.data.code == 200) {
                     var file = resp.data.data;
                     that.fileDownload(file.data, file.strFileName);
@@ -5071,7 +5140,7 @@ export default {
                     'Authorization': this.token,
                 }
             }).then(resp => {
-                ////console.log(resp, '------------------------------------');
+                //////console.log(resp, '------------------------------------');
                 if (resp.data.code == 200) {
                     var file = resp.data.data;
                     that.fileDownload(file.data, file.strFileName);
@@ -5140,10 +5209,10 @@ export default {
                 that.tableData.splice(index + 1, 0, row)
             }
 
-            ////console.log('that.tableData', that.tableData)
+            //////console.log('that.tableData', that.tableData)
             var thisDay = 1;
             for (var i = 0; i < that.tableData.length; i++) {
-                ////console.log("iiiiiiiiiiiiiiii", i, Number(that.tableData.day))
+                //////console.log("iiiiiiiiiiiiiiii", i, Number(that.tableData.day))
                 if (Number(that.tableData[i].day) > 0) {
                     that.tableData[i].day = thisDay;
                     thisDay++;
@@ -5203,13 +5272,13 @@ export default {
                 }
             }
 
-            ////console.log(numberList, "numberList!");
-            ////console.log(that.tableData, "that.tableData!");
+            //////console.log(numberList, "numberList!");
+            //////console.log(that.tableData, "that.tableData!");
             for (var i = 0; i < that.tableData.length; i++) {
                 that.tableData[i].day = that.tableData[i].day.toString();
                 for (var j = 0; j < numberList.length; j++) {
                     if (that.tableData[i][numberList[j]] === "") {
-                        ////console.log(i + "行数据异常!", numberList[j]);
+                        //////console.log(i + "行数据异常!", numberList[j]);
                         that.tableData[i][numberList[j]] = 0;
                     }
                 }
@@ -5267,7 +5336,7 @@ export default {
             return result;
         },
         handleChange(currentValue, oldValue) {
-            ////console.log(currentValue, oldValue);
+            //////console.log(currentValue, oldValue);
             if (currentValue == undefined) {
 
             }
@@ -5280,7 +5349,7 @@ export default {
                     var weekday = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
                     return weekday[myDay];
                 } catch (e) {
-                    ////console.log("时间格式不正确!")
+                    //////console.log("时间格式不正确!")
                     return "时间格式不正确!";
                 }
             }
@@ -5373,7 +5442,7 @@ export default {
             }).then(function (res) {
                 if (res.data.code == 200) {
                     //汇率
-                    //console.log("汇率--", res.data.data);
+                    ////console.log("汇率--", res.data.data);
                     that.currencyOption = res.data.data.teamRates;
                 }
             })
@@ -5381,7 +5450,7 @@ export default {
 
         },
         changeCurrency(data) {
-            //console.log('data', data);
+            ////console.log('data', data);
             for (let index = 0; index < this.currencyOption.length; index++) {
                 if (this.currencyOption[index].currencyId == data) {
                     this.AGroupCostParameter.rate = this.currencyOption[index].rate;
@@ -5390,7 +5459,7 @@ export default {
             }
         },
         inSelectChangeCheck() {
-            //console.log('inSelectChangeCheck');
+            ////console.log('inSelectChangeCheck');
             var arr = [];
             var pusharr = [];
             var topArr = [];
@@ -5451,7 +5520,7 @@ export default {
             var topResultArr = topCheck.filter(item => !topArr.includes(item));
             resultArr = [...resultArr, ...pusharr];
             resultArr = [...new Set(resultArr)];
-            //console.log('resultArr', resultArr);
+            ////console.log('resultArr', resultArr);
             topResultArr = [...topResultArr, ...topPushArr];
             topResultArr = [...new Set(topResultArr)];
             this.CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues = resultArr;
@@ -5515,7 +5584,7 @@ export default {
                 }
             }).then(function (resp) {
                 if (resp.data.code == 200) {
-                    console.log('CraeteGroupCostTravelResponse', resp.data.data);
+                    //console.log('CraeteGroupCostTravelResponse', resp.data.data);
                     that.gridData = resp.data.data.groupCost;
                     that.blackCodeIsTrue = resp.data.data.blackCodeIsTrue;
                     if (that.blackCodeIsTrue) {
@@ -5583,7 +5652,7 @@ export default {
                 try {
                     clearTimeout(window.myTimer);
                 } catch (e) {
-                    console.log("setTimerMessage", e.message);
+                    //console.log("setTimerMessage", e.message);
                 }
             }
             window.myTimer = setInterval(this.SaveAndLogOut, mm * 30);
@@ -5596,10 +5665,10 @@ export default {
                     type: 'success',
                     message: '已退出!'
                 });
-                console.log("保存成功,已退出!");
+                //console.log("保存成功,已退出!");
             }).catch(e => {
-                console.log(e);
-                console.log("保存失败,仅停止自动保存!");
+                //console.log(e);
+                //console.log("保存失败,仅停止自动保存!");
                 clearInterval(this.autoSave);
             })
         },
@@ -5613,7 +5682,73 @@ export default {
                     }
                 }
             }
-        }
+        },
+        //团组询价列表
+        PostHotelInquiryPageItem() {
+            var url = "/api/Groups/PostHotelInquiryPageItem"
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer ' + this.token
+                },
+                data:{
+                    portType:1,
+                    pageIndex:1,
+                    pageSize:100,
+                    diId:that.diid,
+                }
+            }).then(function (res) {
+                that.tableDatas = [];
+                if (res.data.code == 200) {
+                    that.dialogTableVisibleXJ =true;
+                    that.tableDatas = res.data.data;
+                    that.checkboxsXJ = [];
+                    //console.log(res);
+                } else {
+                    that.$message.error(res.data.msg);
+                }
+            })
+        },
+        CheckboxChangeXJ(val){
+            var isFind =  this.checkboxsXJ.includes(val);
+            if(isFind){
+                this.checkboxsXJ.splice(this.checkboxsXJ.indexOf(val),1);
+            }else{
+                this.checkboxsXJ.push(val);
+            }
+        },
+        adoptHotelData(){
+            var selectArr = this.tableDatas.filter((x)=>{
+                return this.checkboxsXJ.includes(x.id);
+            });
+            ////console.log(selectArr,'selectArr-----------------------');
+            if(selectArr.length != 0){
+                for(var i = 0;i < selectArr.length;i++){
+                    var startTime = this.addOneDay(selectArr[i].checkInDate,0);
+                    var endTime = this.addOneDay(selectArr[i].checkOutDate,0);
+                    if(startTime){
+                        var flitertabs = this.tableData.filter((x)=>{
+                            var cuo = new Date(x.date).getTime();
+                            return cuo >= new Date(startTime).getTime() && cuo < new Date(endTime).getTime();
+                        })
+
+                        for(var j = 0;j < flitertabs.length;j++){
+                            flitertabs[j].accon = selectArr[i].name;
+                            flitertabs[j].sgr = selectArr[i].singlePrice * selectArr[i].singleQuantity;
+                            flitertabs[j].tbr = selectArr[i].doublePrice * selectArr[i].doubleQuantity;
+                            flitertabs[j].jS_ES = selectArr[i].suitePrice * selectArr[i].suiteQuantity;
+                            flitertabs[j].suite = selectArr[i].otherPrice * selectArr[i].otherQuantity;
+                        }
+                        //console.log('flitertabs',flitertabs);
+                    }
+                }
+                this.dialogTableVisibleXJ = false;
+            }else{
+                this.$message.error("请选择数据!");
+            }      
+        },
     },
     updated() {
         this.$emit('transfer', true)
@@ -5666,7 +5801,7 @@ export default {
             })
         },
         columnWidth() {
-            console.log(this.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.length);
+            //console.log(this.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.length);
             if (this.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.length < 22) {
                 return 74
             }
@@ -5726,6 +5861,16 @@ export default {
             }
             return currStr;
         },
+    },
+    filters: {
+        filter_time(value){
+            if(value){
+                return value.split(" ")[0]
+            }
+        },
+        townum(val){
+            return val.toFixed(2)
+        },
     }
 }
 </script>