|
@@ -82,24 +82,61 @@
|
|
|
</div>
|
|
|
<div class="hotelr-form">
|
|
|
<div class="form-head">
|
|
|
- <el-popover placement="right" trigger="hover">
|
|
|
- <div>币种:{{bizhong}} 汇率:{{fournum(huilv)}}</div>
|
|
|
- <el-table :data="budgeting" border>
|
|
|
- <el-table-column width="50" property="day" label="天数"></el-table-column>
|
|
|
- <el-table-column width="100" property="date" label="日期"></el-table-column>
|
|
|
- <el-table-column width="300" property="accon" label="酒店名称"></el-table-column>
|
|
|
- <el-table-column width="300" property="itin" label="行程描述"></el-table-column>
|
|
|
- <el-table-column width="110" property="sgr" label="单人间(SGR)"></el-table-column>
|
|
|
- <el-table-column width="100" property="tbr" label="双人(TBR)"></el-table-column>
|
|
|
- <el-table-column width="100" property="jS_ES" label="套间(JS_ES)"></el-table-column>
|
|
|
- <el-table-column width="115" label="套房(SUITE)">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ townum(scope.row.suite) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <el-button slot="reference">移上提示每天详细房价</el-button>
|
|
|
- </el-popover>
|
|
|
+ <div style="display: flex;align-items: center;">
|
|
|
+ <el-popover placement="right" trigger="hover">
|
|
|
+ <div>币种:{{bizhong}} 汇率:{{fournum(huilv)}}</div>
|
|
|
+ <el-table :data="budgeting" border>
|
|
|
+ <el-table-column width="50" property="day" label="天数"></el-table-column>
|
|
|
+ <el-table-column width="100" property="date" label="日期"></el-table-column>
|
|
|
+ <el-table-column width="300" property="accon" label="酒店名称"></el-table-column>
|
|
|
+ <el-table-column width="300" property="itin" label="行程描述"></el-table-column>
|
|
|
+ <el-table-column width="110" property="sgr" label="单人间(SGR)"></el-table-column>
|
|
|
+ <el-table-column width="100" property="tbr" label="双人(TBR)"></el-table-column>
|
|
|
+ <el-table-column width="100" property="jS_ES" label="套间(JS_ES)"></el-table-column>
|
|
|
+ <el-table-column width="115" label="套房(SUITE)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ townum(scope.row.suite) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-button slot="reference">移上提示每天详细房价</el-button>
|
|
|
+ </el-popover>
|
|
|
+ <!-- 客户名单 -->
|
|
|
+ <el-popover
|
|
|
+ placement="bottom"
|
|
|
+ width="662"
|
|
|
+ trigger="hover">
|
|
|
+ <el-table max-height="600" border :data="rollcallarr">
|
|
|
+ <el-table-column width="100" property="date" label="姓名">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.lastName}}{{scope.row.firstName}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="200" property="lastName" label="拼音">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ pinyingxing(scope.row.lastName) }}/{{ pinyingxing(scope.row.firstName) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="50" property="sex" label="性别">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.sex==0?'男':'女'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="110" property="birthDay" label="生日">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ fgarr(scope.row.birthDay) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="200" property="idCardNo" label="身份证号码">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.idCardNo }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-button style="margin-left: 10px;" slot="reference">移上查看客户名单</el-button>
|
|
|
+ <!-- <span slot="reference" style="cursor: pointer;margin-left: 20px;">"移上查看客户名单"</span> -->
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
<div class="form-head-btn">
|
|
|
<el-button type="primary" @click="DownloadVOUCHER">VOUCHER</el-button>
|
|
|
<el-button type="primary" @click="ConfirmWord">确认单</el-button>
|
|
@@ -814,6 +851,7 @@
|
|
|
import { el } from '@fullcalendar/core/internal-common';
|
|
|
import { set } from 'vue';
|
|
|
import {debounce} from '../../store/statice'
|
|
|
+import { pinyin } from 'pinyin-pro';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -1071,9 +1109,19 @@ export default {
|
|
|
},
|
|
|
currencyarrs:[],
|
|
|
currencyarrss:[],
|
|
|
+ rollcallarr:[],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //拼音
|
|
|
+ pinyingxing(val){
|
|
|
+ return pinyin(val, { toneType: 'none' }).toUpperCase();
|
|
|
+ },
|
|
|
+ //fenge
|
|
|
+ fgarr(val){
|
|
|
+ val=val+""
|
|
|
+ return val.split(' ')[0]
|
|
|
+ },
|
|
|
//保留两位小数
|
|
|
townum(val){
|
|
|
return val.toFixed(2)
|
|
@@ -1117,6 +1165,31 @@ export default {
|
|
|
handleCurrentChange(val) {
|
|
|
this.currentPage = val;
|
|
|
},
|
|
|
+ //获取客户名单info
|
|
|
+ PostTourClientListByDiId(val) {
|
|
|
+ this.rollcallarr=[];
|
|
|
+ var that = this
|
|
|
+ var url = "/api/Groups/PostTourClientListByDiId"
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + that.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ portType:1,
|
|
|
+ diid: val?val:that.OpHotelReservationsData.diId,
|
|
|
+ pageId:104,
|
|
|
+ userId:233
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.rollcallarr=res.data.data;
|
|
|
+ } else {
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取ctable
|
|
|
PostPageLinkCTable() {
|
|
|
var url = "/api/Business/PostPageLinkCTable"
|
|
@@ -1183,6 +1256,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
that.PostHotelReservationsItemsByDiId()
|
|
|
+ setTimeout(function() {
|
|
|
+ that.PostTourClientListByDiId();
|
|
|
+ }, 200);
|
|
|
// that.PostHotelReservationsBasicsDataInit()
|
|
|
// that.delegationInfo=
|
|
|
}
|
|
@@ -1192,14 +1268,9 @@ export default {
|
|
|
},
|
|
|
//获取酒店表格
|
|
|
PostHotelReservationsItemsByDiId() {
|
|
|
+ this.loading=true;
|
|
|
var url = "/api/Groups/PostHotelReservationsItemsByDiId"
|
|
|
var that = this
|
|
|
- var data= {
|
|
|
- portType:1,
|
|
|
- userId:that.userId,
|
|
|
- pageId:that.pageId,
|
|
|
- diId:that.OpHotelReservationsData.diId
|
|
|
- }
|
|
|
that.tableDatas=[];
|
|
|
this.$axios({
|
|
|
method: 'post',
|
|
@@ -1216,9 +1287,10 @@ export default {
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
that.PostHotelReservationsBasicsDataInit()
|
|
|
- that.tableDatas=res.data.data
|
|
|
+ that.tableDatas=res.data.data;
|
|
|
}
|
|
|
}).catch(function (error) {
|
|
|
+ that.loading=false;
|
|
|
that.$message.error("获取酒店表格失败");
|
|
|
});
|
|
|
},
|
|
@@ -1299,8 +1371,10 @@ export default {
|
|
|
that.landtaxobj.payDId=that.payment[0].id;//地税支付方式
|
|
|
that.Hotelbreakfastobj.payDId=that.payment[0].id;//酒店早餐支付方式
|
|
|
}
|
|
|
+ that.loading=false;
|
|
|
}
|
|
|
}).catch(function (error) {
|
|
|
+ that.loading=false;
|
|
|
that.$message.error("获取基础数据失败");
|
|
|
});
|
|
|
},
|
|
@@ -2059,12 +2133,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//切换团组
|
|
|
- delegationSelectChange() {
|
|
|
+ delegationSelectChange(val) {
|
|
|
this.delegationInfo=[];
|
|
|
|
|
|
this.PostGroupListByCTableAndUserId();
|
|
|
this.AddToggle();
|
|
|
this.getcostbudgeting();
|
|
|
+ this.PostTourClientListByDiId(val);
|
|
|
},
|
|
|
|
|
|
|