|
@@ -1,30 +1,27 @@
|
|
<template>
|
|
<template>
|
|
- <div class="DownloadOpitinerary-all">
|
|
|
|
|
|
+ <div class="DownloadOpitinerary-all" element-loading-text="加载数据量过大,请稍等。" v-loading.fullscreen.lock="fullscreenLoading">
|
|
<div class="DownloadOpitinerary-search-head">
|
|
<div class="DownloadOpitinerary-search-head">
|
|
<el-form label-width="75px">
|
|
<el-form label-width="75px">
|
|
<el-form-item label="国家:">
|
|
<el-form-item label="国家:">
|
|
- <el-select filterable v-model="countryData" placeholder="请选择国家">
|
|
|
|
- <el-option v-for="(item,index) in countryDatas" :key="index" :label="item" :value="item"></el-option>
|
|
|
|
|
|
+ <el-select @change="SwitchingCountry" filterable clearable v-model="countryData" placeholder="请选择国家">
|
|
|
|
+ <el-option v-for="(item,index) in countryDatas" :key="index" :label="item.name" :value="item.name"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-form label-width="75px">
|
|
<el-form label-width="75px">
|
|
<el-form-item label="地区:">
|
|
<el-form-item label="地区:">
|
|
- <el-select filterable v-model="companyname" placeholder="请选择地区">
|
|
|
|
- <el-option v-for="(item,index) in companynamearr" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
|
|
|
+ <el-select @change="switchingArea($event)" filterable clearable v-model="citiesData" placeholder="请选择地区">
|
|
|
|
+ <el-option v-for="(item,index) in citiesDatas" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-form label-width="75px">
|
|
<el-form label-width="75px">
|
|
<el-form-item label="团组名:">
|
|
<el-form-item label="团组名:">
|
|
- <el-select filterable v-model="teamNameData" placeholder="请选择团组名">
|
|
|
|
|
|
+ <el-select @change="SwitchingGroup" filterable clearable v-model="teamNameData" placeholder="请选择团组名">
|
|
<el-option v-for="(item,index) in teamNameDatas" :key="index" :label="item" :value="item"></el-option>
|
|
<el-option v-for="(item,index) in teamNameDatas" :key="index" :label="item" :value="item"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <div style="margin-left: 20px;">
|
|
|
|
- <el-button type="primary">查询</el-button>
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="DownloadOpitinerary-table">
|
|
<div class="DownloadOpitinerary-table">
|
|
<el-table
|
|
<el-table
|
|
@@ -32,12 +29,9 @@
|
|
border
|
|
border
|
|
style="width: 100%">
|
|
style="width: 100%">
|
|
<!-- <el-table-column
|
|
<!-- <el-table-column
|
|
- prop="num"
|
|
|
|
|
|
+ prop="row_Number"
|
|
label="序 号"
|
|
label="序 号"
|
|
width="55">
|
|
width="55">
|
|
- <template slot-scope="scope">
|
|
|
|
- {{(currentPage - 1) * pageSize + scope.$index + 1}}
|
|
|
|
- </template>
|
|
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="teamLev"
|
|
prop="teamLev"
|
|
@@ -99,19 +93,18 @@
|
|
size="mini"
|
|
size="mini"
|
|
title="下载OP行程单"
|
|
title="下载OP行程单"
|
|
type="primary"
|
|
type="primary"
|
|
- @click="handleEdit(scope.$index, scope.row)">下载OP行程单</el-button>
|
|
|
|
|
|
+ @click="PostMateOpGroupDownload(scope.row)">下载OP行程单</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <div class="block">
|
|
|
|
|
|
+ <div class="block" style="margin-top: 10px;">
|
|
<el-pagination
|
|
<el-pagination
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
- :current-page="currentPage4"
|
|
|
|
- :page-sizes="[100, 200, 300, 400]"
|
|
|
|
- :page-size="100"
|
|
|
|
|
|
+ :current-page="pageIndex"
|
|
|
|
+ :page-sizes="[10, 12, 20, 50]"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
- :total="400">
|
|
|
|
|
|
+ :total="tabletotal">
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -122,22 +115,28 @@ export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
userId:'',
|
|
userId:'',
|
|
- companyname:'',
|
|
|
|
- companynamearr:[],
|
|
|
|
|
|
+ citiesData:'',
|
|
|
|
+ citiesDatas:[],
|
|
countryData:'',
|
|
countryData:'',
|
|
countryDatas:[],
|
|
countryDatas:[],
|
|
teamNameData:'',
|
|
teamNameData:'',
|
|
teamNameDatas:[],
|
|
teamNameDatas:[],
|
|
- currentPage4: 4,
|
|
|
|
|
|
+ currentPage4: 1,
|
|
tableData: [],
|
|
tableData: [],
|
|
|
|
+ tabletotal:0,
|
|
|
|
+ pageIndex:1,
|
|
|
|
+ pageSize:12,
|
|
|
|
+ fullscreenLoading:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
- console.log(`每页 ${val} 条`);
|
|
|
|
|
|
+ this.pageSize=val;
|
|
|
|
+ this.PostMateOpGroupPageList();
|
|
},
|
|
},
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
- console.log(`当前页: ${val}`);
|
|
|
|
|
|
+ this.pageIndex=val;
|
|
|
|
+ this.PostMateOpGroupPageList();
|
|
},
|
|
},
|
|
filteryear(val){
|
|
filteryear(val){
|
|
let gstime=val.visitDate.split(' ')[0]
|
|
let gstime=val.visitDate.split(' ')[0]
|
|
@@ -145,6 +144,7 @@ export default {
|
|
},
|
|
},
|
|
//获取下拉框
|
|
//获取下拉框
|
|
PostMateOpGroupInit() {
|
|
PostMateOpGroupInit() {
|
|
|
|
+ this.fullscreenLoading=true;
|
|
var url = "/api/Groups/PostMateOpGroupInit"
|
|
var url = "/api/Groups/PostMateOpGroupInit"
|
|
var that = this
|
|
var that = this
|
|
this.$axios({
|
|
this.$axios({
|
|
@@ -152,24 +152,33 @@ export default {
|
|
url: url,
|
|
url: url,
|
|
headers: {
|
|
headers: {
|
|
Authorization: 'Bearer '
|
|
Authorization: 'Bearer '
|
|
|
|
+ },
|
|
|
|
+ data:{
|
|
|
|
+ currUserId:that.userId
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- that.countryDatas=res.data.data.countryDatas;
|
|
|
|
- that.teamNameDatas=res.data.data.teamNameDatas;
|
|
|
|
|
|
+ that.countryDatas=res.data.data.countriesDatas;
|
|
|
|
+ that.teamNameDatas=res.data.data.teamNames;
|
|
|
|
+ that.citiesDatas=res.data.data.citiesDatas;
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ that.PostMateOpGroupPageList();
|
|
}else{
|
|
}else{
|
|
that.$message({
|
|
that.$message({
|
|
message:res.data.msg,
|
|
message:res.data.msg,
|
|
duration:1000,
|
|
duration:1000,
|
|
type:"error"
|
|
type:"error"
|
|
});
|
|
});
|
|
|
|
+ that.fullscreenLoading=false;
|
|
}
|
|
}
|
|
}).catch(function (error) {
|
|
}).catch(function (error) {
|
|
|
|
+ that.fullscreenLoading=false;
|
|
that.$message.error('请联系信息部!');
|
|
that.$message.error('请联系信息部!');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//获取表格
|
|
//获取表格
|
|
PostMateOpGroupPageList() {
|
|
PostMateOpGroupPageList() {
|
|
|
|
+ console.log(this.pageIndex);
|
|
var url = "/api/Groups/PostMateOpGroupPageList"
|
|
var url = "/api/Groups/PostMateOpGroupPageList"
|
|
var that = this
|
|
var that = this
|
|
this.$axios({
|
|
this.$axios({
|
|
@@ -182,15 +191,16 @@ export default {
|
|
portType:1,
|
|
portType:1,
|
|
userId:that.userId,
|
|
userId:that.userId,
|
|
pageId:183,
|
|
pageId:183,
|
|
- pageIndex:1,
|
|
|
|
- pageSize:10,
|
|
|
|
- country:'',
|
|
|
|
|
|
+ pageIndex:that.pageIndex,
|
|
|
|
+ pageSize:that.pageSize,
|
|
|
|
+ country:that.countryData,
|
|
area:'',
|
|
area:'',
|
|
- teamName:''
|
|
|
|
|
|
+ teamName:that.teamNameData
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- that.tableData=res.data.data
|
|
|
|
|
|
+ that.tableData=res.data.data;
|
|
|
|
+ that.tabletotal=res.data.count;
|
|
}else{
|
|
}else{
|
|
that.$message({
|
|
that.$message({
|
|
message:res.data.msg,
|
|
message:res.data.msg,
|
|
@@ -202,11 +212,73 @@ export default {
|
|
that.$message.error('请联系信息部!');
|
|
that.$message.error('请联系信息部!');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //切换地区
|
|
|
|
+ switchingArea(val){
|
|
|
|
+ this.pageIndex=1;
|
|
|
|
+ for (let i = 0; i < this.citiesDatas.length; i++) {
|
|
|
|
+ if(val==this.citiesDatas[i].id){
|
|
|
|
+ for (let j = 0; j < this.countryDatas.length; j++) {
|
|
|
|
+ if (this.citiesDatas[i].parentId==this.countryDatas[j].id) {
|
|
|
|
+ this.countryData=this.countryDatas[j].name;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.PostMateOpGroupPageList()
|
|
|
|
+ },
|
|
|
|
+ //切换国家
|
|
|
|
+ SwitchingCountry(val){
|
|
|
|
+ this.pageIndex=1;
|
|
|
|
+ this.PostMateOpGroupPageList();
|
|
|
|
+ },
|
|
|
|
+ //切换团组
|
|
|
|
+ SwitchingGroup(val){
|
|
|
|
+ this.pageIndex=1;
|
|
|
|
+ this.PostMateOpGroupPageList();
|
|
|
|
+ },
|
|
|
|
+ //下载op行程单
|
|
|
|
+ PostMateOpGroupDownload(roew) {
|
|
|
|
+ this.fullscreenLoading=true;
|
|
|
|
+ var url = "/api/Groups/PostMateOpGroupDownload"
|
|
|
|
+ var that = this
|
|
|
|
+ this.$axios({
|
|
|
|
+ method: 'post',
|
|
|
|
+ url: url,
|
|
|
|
+ headers: {
|
|
|
|
+ Authorization: 'Bearer '
|
|
|
|
+ },
|
|
|
|
+ data:{
|
|
|
|
+ portType:1,
|
|
|
|
+ userId:that.userId,
|
|
|
|
+ pageId:183,
|
|
|
|
+ diId:roew.id,
|
|
|
|
+ }
|
|
|
|
+ }).then(function (res) {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: "导出成功!",
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ window.open(res.data.data)
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ }else{
|
|
|
|
+ that.$message({
|
|
|
|
+ message:res.data.msg,
|
|
|
|
+ duration:1000,
|
|
|
|
+ type:"error"
|
|
|
|
+ });
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ }
|
|
|
|
+ }).catch(function (error) {
|
|
|
|
+ that.fullscreenLoading=false;
|
|
|
|
+ that.$message.error('请联系信息部!');
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
|
|
this.PostMateOpGroupInit();
|
|
this.PostMateOpGroupInit();
|
|
- this.PostMateOpGroupPageList();
|
|
|
|
|
|
+ // this.PostMateOpGroupPageList();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -231,5 +303,6 @@ export default {
|
|
}
|
|
}
|
|
.DownloadOpitinerary-table .block{
|
|
.DownloadOpitinerary-table .block{
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
+
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|