|
@@ -51,9 +51,42 @@
|
|
|
<!-- <el-table-column width="100" property="name" label="姓名"></el-table-column> -->
|
|
|
<el-table-column width="400" property="itinerary" label="ITIN"></el-table-column>
|
|
|
</el-table>
|
|
|
- <!-- <el-button slot="reference">click 激活</el-button> -->
|
|
|
<span slot="reference" style="cursor: pointer;">"移上查看详细"</span>
|
|
|
</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>
|
|
|
+ <span slot="reference" style="cursor: pointer;margin-left: 20px;">"移上查看客户名单"</span>
|
|
|
+ </el-popover>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="budgeting.length<=1">
|
|
@@ -71,6 +104,40 @@
|
|
|
<!-- <el-button slot="reference">click 激活</el-button> -->
|
|
|
<span slot="reference" style="cursor: pointer;">"移上查看详细"</span>
|
|
|
</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="birthDay" 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" label="身份证号码">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.idCardNo==""?'-':scope.row.idCardNo }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <span slot="reference" style="cursor: pointer;margin-left: 20px;">"移上查看客户名单"</span>
|
|
|
+ </el-popover>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="budgeting.length==0">
|
|
@@ -133,6 +200,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { el } from '@fullcalendar/core/internal-common';
|
|
|
+import { pinyin } from 'pinyin-pro';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -165,10 +233,20 @@ export default {
|
|
|
date: '2016-05-03',
|
|
|
name: '王小虎',
|
|
|
address: '上海市普陀区金沙江路 1518 弄'
|
|
|
- }]
|
|
|
+ }],
|
|
|
+ rollcallarr:[]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //拼音
|
|
|
+ pinyingxing(val){
|
|
|
+ return pinyin(val, { toneType: 'none' }).toUpperCase();
|
|
|
+ },
|
|
|
+ //fenge
|
|
|
+ fgarr(val){
|
|
|
+ val=val+""
|
|
|
+ return val.split(' ')[0]
|
|
|
+ },
|
|
|
btn(){
|
|
|
console.log(this.budgeting.length)
|
|
|
},
|
|
@@ -237,6 +315,7 @@ export default {
|
|
|
}
|
|
|
that.AirTicketResList();
|
|
|
that.getcostbudgeting();
|
|
|
+ that.PostTourClientListByDiId();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -247,6 +326,7 @@ export default {
|
|
|
AirTicketResSelectChange() {
|
|
|
this.AirTicketResList();
|
|
|
this.getcostbudgeting();
|
|
|
+ this.PostTourClientListByDiId();
|
|
|
},
|
|
|
//团组信息绑定
|
|
|
AirTicketResList() {
|
|
@@ -292,7 +372,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
upDate(index, row) {
|
|
|
-
|
|
|
this.$router.push({
|
|
|
path: "/home/OpAirTicketRes",
|
|
|
query: {
|
|
@@ -302,6 +381,30 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ //获取客户名单info
|
|
|
+ PostTourClientListByDiId() {
|
|
|
+ var that = this
|
|
|
+ var url = "/api/Groups/PostTourClientListByDiId"
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + that.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ portType:1,
|
|
|
+ diid: that.DiId,
|
|
|
+ pageId:104,
|
|
|
+ userId:that.userId
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.rollcallarr=res.data.data;
|
|
|
+ } else {
|
|
|
+ that.$message.error(res.data.smg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
addIf() {
|
|
|
if (this.DiId != 0 && this.DiId != '' && this.DiId != undefined) {
|
|
|
this.$router.push({
|