Commit 6b148482 authored by 黄奎's avatar 黄奎

页面修改

parent 1f814fa1
<template> <template>
<div class="flexOne" style="min-width: 1200px;"> <div class="flexOne" style="min-width: 1200px;">
...@@ -30,7 +29,6 @@ ...@@ -30,7 +29,6 @@
<p class="fz12">姓名:{{item.DriverName}}</p> <p class="fz12">姓名:{{item.DriverName}}</p>
<p class="fz12">电话号码:{{item.DriverTel}}</p> <p class="fz12">电话号码:{{item.DriverTel}}</p>
</td> </td>
<!-- <td><span @click="goUrl('散客机票','individualTicket',item.AirTicketId)" class="guest_num">{{item.AirTicketId}}</span></td> -->
<td>{{item.TotalPrice}}</td> <td>{{item.TotalPrice}}</td>
<td class="fz12">{{item.BusCode}}</td> <td class="fz12">{{item.BusCode}}</td>
<td>{{item.BusNum}}</td> <td>{{item.BusNum}}</td>
...@@ -55,15 +53,11 @@ ...@@ -55,15 +53,11 @@
<p v-if="item.ReimburseList.SettlementType==1">现金支付</p> <p v-if="item.ReimburseList.SettlementType==1">现金支付</p>
<p v-if="item.ReimburseList.SettlementType==2">公司结算</p> <p v-if="item.ReimburseList.SettlementType==2">公司结算</p>
</td> </td>
<td > <td>
<div v-if="item.ReimburseList.VoucherPicList.length"> <div v-if="item.ReimburseList.VoucherPicList.length">
<div v-for="(vou, vouIndex) in item.ReimburseList.VoucherPicList" :key="vouIndex"> <div v-for="(vou, vouIndex) in item.ReimburseList.VoucherPicList" :key="vouIndex">
<el-image <el-image style="width: 20px;height: 20px;" :src="vou.url" :preview-src-list="item.listUrl">
style="width: 20px;height: 20px;"
:src="vou.url"
:preview-src-list="subItem.listUrl">
</el-image> </el-image>
<!-- <img @click="openImg(vou.url)" style="width: 20px;height: 20px;" :src="vou.url" alt=""> -->
</div> </div>
</div> </div>
<div v-else> <div v-else>
...@@ -82,13 +76,13 @@ ...@@ -82,13 +76,13 @@
</template> </template>
<script> <script>
import payURL from "../commonPage/payURL.vue"; import payURL from "../commonPage/payURL.vue";
import moment from "moment"; import moment from "moment";
export default { export default {
data() { data() {
return { return {
msg: { msg: {
TCIDs:'' TCIDs: ''
}, },
dataList: [], dataList: [],
...@@ -96,40 +90,46 @@ export default { ...@@ -96,40 +90,46 @@ export default {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
showID: -1, showID: -1,
companyList:[], companyList: [],
employeeList:[], employeeList: [],
urrencyTypeObj:{}, urrencyTypeObj: {},
}; };
}, },
components: {}, components: {},
created() { created() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.msg.TCIDs=this.$route.query.TCIDs?this.$route.query.TCIDs:""; this.msg.TCIDs = this.$route.query.TCIDs ? this.$route.query.TCIDs : "";
this.msg.date=this.$route.query.date?this.$route.query.date:""; this.msg.date = this.$route.query.date ? this.$route.query.date : "";
this.financeinfo_post_GetList(); this.financeinfo_post_GetList();
}, },
methods: { methods: {
financeinfo_post_GetList(){ // 币种类型 financeinfo_post_GetList() { // 币种类型
this.apipost('financeinfo_post_GetList',{Name:''},res=>{ this.apipost('financeinfo_post_GetList', {
if(res.data.resultCode==1){ Name: ''
}, res => {
if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.map(item => { data.map(item => {
this.urrencyTypeObj[0]="不限"; this.urrencyTypeObj[0] = "不限";
this.urrencyTypeObj[item.ID]=item.Name; this.urrencyTypeObj[item.ID] = item.Name;
}); });
}else{ } else {
} }
},err=>{}) }, err => {})
}, },
goUrl: function(name, path, id) { goUrl: function (name, path, id) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: { id: id, blank: "y", tab: name } query: {
id: id,
blank: "y",
tab: name
}
}); });
}, },
openImg(src){ openImg(src) {
window.open(src, "_blank"); window.open(src, "_blank");
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
...@@ -141,47 +141,44 @@ export default { ...@@ -141,47 +141,44 @@ export default {
this.currentPage = 1; this.currentPage = 1;
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => { this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => {
this.loading=false; this.loading = false;
if (res.data.resultCode == 1) {
if(res.data.resultCode == 1) {
this.dataList = []; this.dataList = [];
let data=res.data.data.BusList; let data = res.data.data.BusList;
if(this.msg.date!='all'){ if (this.msg.date != 'all') {
data.forEach(item => { data.forEach(item => {
if(item.UseTime==this.msg.date){ if (item.UseTime == this.msg.date) {
this.dataList.push(item); this.dataList.push(item);
} }
}); });
}else{ } else {
this.dataList=data; this.dataList = data;
} }
this.dataList.forEach(x => { this.dataList.forEach(x => {
x.ScenicStatisticsList.forEach(y=>{ x.listUrl = [];
y.listUrl = [] if (x.ReimburseList && x.ReimburseList.VoucherPicList && x.ReimburseList.VoucherPicList.length >
y.ReimburseList.VoucherPicList&&y.ReimburseList.VoucherPicList.forEach(z=>{ 0) {
y.listUrl.push(z.url) x.ReimburseList.VoucherPicList.forEach(z => {
}) x.listUrl.push(z.url)
}) })
}
}); });
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}, },
}, },
mounted() { mounted() {
this.getList(); this.getList();
} }
}; };
</script> </script>
<style scoped> <style scoped>
.groupTourOrderSearchTable {
.groupTourOrderSearchTable {
width: 100%; width: 100%;
min-width: 1500px; min-width: 1500px;
font-size: 14px; font-size: 14px;
...@@ -189,9 +186,9 @@ export default { ...@@ -189,9 +186,9 @@ export default {
border-bottom: 1px solid #cccccc; border-bottom: 1px solid #cccccc;
border-right: 1px solid #cccccc; border-right: 1px solid #cccccc;
/* border-collapse: collapse; */ /* border-collapse: collapse; */
} }
.groupTourOrderSearchTable tr th { .groupTourOrderSearchTable tr th {
background: #e6e6e6; background: #e6e6e6;
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
...@@ -199,37 +196,36 @@ export default { ...@@ -199,37 +196,36 @@ export default {
text-indent: 15px; text-indent: 15px;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.groupTourOrderSearchTable tr { .groupTourOrderSearchTable tr {
background: #fff; background: #fff;
text-align: left; text-align: left;
} }
.groupTourOrderSearchTable tr td { .groupTourOrderSearchTable tr td {
padding: 8px; padding: 8px;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.groupTourOrderSearchTable tr td p { .groupTourOrderSearchTable tr td p {
line-height: 20px; line-height: 20px;
} }
.groupTourOrderSearchTable .dowloadSpan:hover { .groupTourOrderSearchTable .dowloadSpan:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.groupTourOrderSearchTable span.personNo { .groupTourOrderSearchTable span.personNo {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.groupTourOrderSearchTable span.personNo:hover { .groupTourOrderSearchTable span.personNo:hover {
font-weight: bold; font-weight: bold;
color: #e95252; color: #e95252;
} }
</style> </style>
<template> <template>
<div class="flexOne" style="min-width: 1200px;"> <div class="flexOne" style="min-width: 1200px;">
...@@ -64,10 +63,7 @@ ...@@ -64,10 +63,7 @@
<td v-if="childIndex==0" :rowspan="subItem.ReimburseList.ReimburseDetailsList.length"> <td v-if="childIndex==0" :rowspan="subItem.ReimburseList.ReimburseDetailsList.length">
<div v-if="subItem.ReimburseList.VoucherPicList.length"> <div v-if="subItem.ReimburseList.VoucherPicList.length">
<div v-for="(vou, vouIndex) in subItem.ReimburseList.VoucherPicList" :key="vouIndex"> <div v-for="(vou, vouIndex) in subItem.ReimburseList.VoucherPicList" :key="vouIndex">
<el-image <el-image style="width: 20px;height: 20px;" :src="vou.url" :preview-src-list="subItem.listUrl">
style="width: 20px;height: 20px;"
:src="vou.url"
:preview-src-list="subItem.listUrl">
</el-image> </el-image>
<!-- <img @click="openImg(vou.url)" style="width: 20px;height: 20px;" :src="vou.url" alt=""> --> <!-- <img @click="openImg(vou.url)" style="width: 20px;height: 20px;" :src="vou.url" alt=""> -->
</div> </div>
...@@ -84,36 +80,30 @@ ...@@ -84,36 +80,30 @@
</template> </template>
</table> </table>
</div> </div>
<!-- <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"></el-pagination> -->
</div> </div>
</template> </template>
<script> <script>
import payURL from "../commonPage/payURL.vue"; export default {
import moment from "moment";
export default {
data() { data() {
return { return {
msg: { msg: {
TCIDs:'' TCIDs: ''
}, },
dataList: [], dataList: [],
loading: false, loading: false,
total: 0, total: 0,
currentPage: 1, currentPage: 1,
showID: -1, showID: -1,
companyList:[], companyList: [],
employeeList:[], employeeList: [],
urrencyTypeObj:{}, urrencyTypeObj: {},
}; };
}, },
components: {}, components: {},
created() { created() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.msg.TCIDs=this.$route.query.TCIDs?this.$route.query.TCIDs:""; this.msg.TCIDs = this.$route.query.TCIDs ? this.$route.query.TCIDs : "";
this.msg.date=this.$route.query.date?this.$route.query.date:""; this.msg.date = this.$route.query.date ? this.$route.query.date : "";
this.financeinfo_post_GetList(); this.financeinfo_post_GetList();
}, },
methods: { methods: {
...@@ -142,23 +132,29 @@ export default { ...@@ -142,23 +132,29 @@ export default {
}) })
return this.moneyFormat(totalPrice) return this.moneyFormat(totalPrice)
}, },
financeinfo_post_GetList(){ // 币种类型 financeinfo_post_GetList() { // 币种类型
this.apipost('financeinfo_post_GetList',{Name:''},res=>{ this.apipost('financeinfo_post_GetList', {
if(res.data.resultCode==1){ Name: ''
}, res => {
if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.map(item => { data.map(item => {
this.urrencyTypeObj[0]="不限"; this.urrencyTypeObj[0] = "不限";
this.urrencyTypeObj[item.ID]=item.Name; this.urrencyTypeObj[item.ID] = item.Name;
}); });
}else{ } else {
} }
},err=>{}) }, err => {})
}, },
goUrl: function(name, path, id) { goUrl: function (name, path, id) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: { id: id, blank: "y", tab: name } query: {
id: id,
blank: "y",
tab: name
}
}); });
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
...@@ -169,58 +165,60 @@ export default { ...@@ -169,58 +165,60 @@ export default {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.currentPage = 1; this.currentPage = 1;
}, },
openImg(src){ openImg(src) {
window.open(src, "_blank"); window.open(src, "_blank");
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => { this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => {
this.loading=false; this.loading = false;
if (res.data.resultCode == 1) {
if(res.data.resultCode == 1) {
this.dataList = []; this.dataList = [];
let data=res.data.data.DiningList; let data = res.data.data.DiningList;
if(this.msg.date!='all'){ if (this.msg.date != 'all') {
data.forEach(item => { data.forEach(item => {
if(item.UseTimeStr==this.msg.date){ if (item.UseTimeStr == this.msg.date) {
this.dataList.push(item); this.dataList.push(item);
} }
}); });
}else{ } else {
this.dataList=data; this.dataList = data;
} }
this.dataList.forEach(x => { this.dataList.forEach(x => {
x.ScenicStatisticsList.forEach(y=>{ x.DiningSummaryList.forEach(y => {
y.listUrl = [] y.listUrl = [];
y.ReimburseList.VoucherPicList&&y.ReimburseList.VoucherPicList.forEach(z=>{ if (y.ReimburseList && y.ReimburseList.VoucherPicList && y.ReimburseList.VoucherPicList
.length > 0) {
y.ReimburseList.VoucherPicList.forEach(z => {
y.listUrl.push(z.url) y.listUrl.push(z.url)
}) })
}
}) })
}); });
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}, },
}, },
mounted() { mounted() {
this.getList(); this.getList();
} }
}; };
</script> </script>
<style scoped> <style scoped>
.numSpan{ .numSpan {
display: inline-block; display: inline-block;
width:60px; width: 60px;
} }
.widthSpan{
.widthSpan {
display: inline-block; display: inline-block;
width: 45px; width: 45px;
} }
.groupTourOrderSearchTable {
.groupTourOrderSearchTable {
width: 100%; width: 100%;
min-width: 1500px; min-width: 1500px;
font-size: 14px; font-size: 14px;
...@@ -228,9 +226,9 @@ export default { ...@@ -228,9 +226,9 @@ export default {
border-bottom: 1px solid #cccccc; border-bottom: 1px solid #cccccc;
border-right: 1px solid #cccccc; border-right: 1px solid #cccccc;
/* border-collapse: collapse; */ /* border-collapse: collapse; */
} }
.groupTourOrderSearchTable tr th { .groupTourOrderSearchTable tr th {
background: #e6e6e6; background: #e6e6e6;
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
...@@ -238,37 +236,36 @@ export default { ...@@ -238,37 +236,36 @@ export default {
text-indent: 15px; text-indent: 15px;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.groupTourOrderSearchTable tr { .groupTourOrderSearchTable tr {
background: #fff; background: #fff;
text-align: left; text-align: left;
} }
.groupTourOrderSearchTable tr td { .groupTourOrderSearchTable tr td {
padding: 8px; padding: 8px;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.groupTourOrderSearchTable tr td p { .groupTourOrderSearchTable tr td p {
line-height: 20px; line-height: 20px;
} }
.groupTourOrderSearchTable .dowloadSpan:hover { .groupTourOrderSearchTable .dowloadSpan:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.groupTourOrderSearchTable span.personNo { .groupTourOrderSearchTable span.personNo {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.groupTourOrderSearchTable span.personNo:hover { .groupTourOrderSearchTable span.personNo:hover {
font-weight: bold; font-weight: bold;
color: #e95252; color: #e95252;
} }
</style> </style>
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
</tr> </tr>
<template v-for='(item,index) in dataList'> <template v-for='(item,index) in dataList'>
<template v-if="item.ReimburseList && item.ReimburseList.ReimburseDetailsList.length"> <template v-if="item.ReimburseList && item.ReimburseList.ReimburseDetailsList.length">
<tr v-for="(childItem,childIndex) in item.ReimburseList.ReimburseDetailsList" > <tr v-for="(childItem,childIndex) in item.ReimburseList.ReimburseDetailsList">
<td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length">{{item.CheckInDateStr}}</td> <td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length">{{item.CheckInDateStr}}
</td>
<td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length"> <td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length">
{{item.HotelName}} {{item.HotelName}}
</td> </td>
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
<span v-else-if="item.PayStyle === 3">预付</span> <span v-else-if="item.PayStyle === 3">预付</span>
<span v-else-if="item.PayStyle === 6">公司合团支付</span> <span v-else-if="item.PayStyle === 6">公司合团支付</span>
<span v-else></span> <span v-else></span>
</br> <br />
<span v-show="item.PayStyle==6">付款团号:{{item.PayTypeTCNUM}}</span> <span v-show="item.PayStyle==6">付款团号:{{item.PayTypeTCNUM}}</span>
</td> </td>
<td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length"> <td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length">
...@@ -52,12 +53,9 @@ ...@@ -52,12 +53,9 @@
<td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length"> <td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length">
<div v-if="item.ReimburseList.VoucherPicList.length"> <div v-if="item.ReimburseList.VoucherPicList.length">
<div v-for="(vou, vouIndex) in item.ReimburseList.VoucherPicList" :key="vouIndex"> <div v-for="(vou, vouIndex) in item.ReimburseList.VoucherPicList" :key="vouIndex">
<el-image <el-image style="width: 20px;height: 20px;" :src="vou.url" :preview-src-list="item.listUrl">
style="width: 20px;height: 20px;"
:src="vou.url"
:preview-src-list="subItem.listUrl">
</el-image> </el-image>
<!-- <img @click="openImg(vou.url)" style="width: 20px;height: 20px;" :src="vou.url" alt=""> -->
</div> </div>
</div> </div>
<div v-else> <div v-else>
...@@ -72,14 +70,13 @@ ...@@ -72,14 +70,13 @@
<tr v-else> <tr v-else>
<td colspan="9">暂无数据</td> <td colspan="9">暂无数据</td>
</tr> </tr>
</template> </template>
</table> </table>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
loading: true, loading: true,
...@@ -87,8 +84,11 @@ export default { ...@@ -87,8 +84,11 @@ export default {
currencyList: [], currencyList: [],
}; };
},created(){ },
this.apipost("financeinfo_post_GetList", {Name: ""}, res=>{ created() {
this.apipost("financeinfo_post_GetList", {
Name: ""
}, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let data = res.data.data; let data = res.data.data;
this.currencyList = data this.currencyList = data
...@@ -103,45 +103,46 @@ export default { ...@@ -103,45 +103,46 @@ export default {
filters: {}, filters: {},
methods: { methods: {
getCurrencyStr: function(id){ getCurrencyStr: function (id) {
for(let i = 0; i < this.currencyList.length; i++) { for (let i = 0; i < this.currencyList.length; i++) {
if (this.currencyList[i].ID == id) { if (this.currencyList[i].ID == id) {
return this.currencyList[i].Name return this.currencyList[i].Name
} }
} }
}, },
openImg(src){ openImg(src) {
window.open(src, "_blank"); window.open(src, "_blank");
}, },
//获取数据 //获取数据
getList(TCIDs, date) { getList(TCIDs, date) {
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"dmcstatistics_post_GetNewLeaderPayMoneyStatics", "dmcstatistics_post_GetNewLeaderPayMoneyStatics", {
{TCIDs: TCIDs}, TCIDs: TCIDs
},
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let data = res.data.data.HotelOrderListReport; let data = res.data.data.HotelOrderListReport;
let dataList = []; let dataList = [];
if(date!=='all') { if (date !== 'all') {
data.map(x=>{ data.map(x => {
if (x.UseTimeStr == date){ if (x.UseTimeStr == date) {
dataList.push(...x.HotelOrderList) dataList.push(...x.HotelOrderList)
} }
}) })
} else { } else {
data.map(x=>{ data.map(x => {
dataList.push(...x.HotelOrderList) dataList.push(...x.HotelOrderList)
}) })
} }
dataList.forEach(x => { dataList.forEach(x => {
x.ScenicStatisticsList.forEach(y=>{ x.listUrl = [];
y.listUrl = [] if (x.ReimburseList && x.ReimburseList.VoucherPicList && x.ReimburseList.VoucherPicList) {
y.ReimburseList.VoucherPicList&&y.ReimburseList.VoucherPicList.forEach(z=>{ x.ReimburseList.VoucherPicList.forEach(z => {
y.listUrl.push(z.url) y.listUrl.push(z.url);
})
}) })
}
}); });
this.dataList = dataList; this.dataList = dataList;
} else { } else {
...@@ -152,5 +153,6 @@ export default { ...@@ -152,5 +153,6 @@ export default {
); );
}, },
} }
}; };
</script> </script>
<template> <template>
<div class="flexOne" style="min-width: 1200px;"> <div class="flexOne" style="min-width: 1200px;">
<!-- 表格 --> <!-- 表格 -->
<div style="width: 100%; height: auto;min-height:500px;overflow-x: auto;margin-top:20px" class="ownScrollbarStyle"> <div style="width: 100%; height: auto;min-height:500px;overflow-x: auto;margin-top:20px" class="ownScrollbarStyle">
<table class="groupTourOrderSearchTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'> <table class="groupTourOrderSearchTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'>
...@@ -19,12 +17,8 @@ ...@@ -19,12 +17,8 @@
<td> <td>
<div v-if="item.VoucherPicList.length"> <div v-if="item.VoucherPicList.length">
<div v-for="(vou, vouIndex) in item.VoucherPicList" :key="vouIndex"> <div v-for="(vou, vouIndex) in item.VoucherPicList" :key="vouIndex">
<el-image <el-image style="width: 20px;height: 20px;" :src="vou.url" :preview-src-list="item.listUrl">
style="width: 20px;height: 20px;"
:src="vou.url"
:preview-src-list="subItem.listUrl">
</el-image> </el-image>
<!-- <img @click="openImg(vou.url)" style="width: 20px;height: 20px;" :src="vou.url" alt=""> -->
</div> </div>
</div> </div>
<div v-else> <div v-else>
...@@ -38,38 +32,33 @@ ...@@ -38,38 +32,33 @@
</tr> </tr>
</table> </table>
</div> </div>
<!-- <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"></el-pagination> -->
</div> </div>
</template> </template>
<script> <script>
import payURL from "../commonPage/payURL.vue"; export default {
import moment from "moment";
export default {
data() { data() {
return { return {
msg: { msg: {
TCIDs:'' TCIDs: ''
}, },
dataList: [], dataList: [],
loading: false, loading: false,
total: 0, total: 0,
currentPage: 1, currentPage: 1,
showID: -1, showID: -1,
companyList:[], companyList: [],
employeeList:[], employeeList: [],
urrencyTypeObj:{}, urrencyTypeObj: {},
}; };
}, },
components: {}, components: {},
created() { created() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.msg.TCIDs=this.$route.query.TCIDs?this.$route.query.TCIDs:""; this.msg.TCIDs = this.$route.query.TCIDs ? this.$route.query.TCIDs : "";
this.msg.date=this.$route.query.date?this.$route.query.date:""; this.msg.date = this.$route.query.date ? this.$route.query.date : "";
}, },
methods: { methods: {
openImg(src){ openImg(src) {
window.open(src, "_blank"); window.open(src, "_blank");
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
...@@ -80,58 +69,57 @@ export default { ...@@ -80,58 +69,57 @@ export default {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.currentPage = 1; this.currentPage = 1;
}, },
openImg(src){ openImg(src) {
window.open(src, "_blank"); window.open(src, "_blank");
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => { this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => {
this.loading=false; this.loading = false;
if (res.data.resultCode == 1) {
if(res.data.resultCode == 1) {
this.dataList = []; this.dataList = [];
let data=res.data.data.OtherOrderInfo.OtherList; let data = res.data.data.OtherOrderInfo.OtherList;
if(this.msg.date!='all'){ if (this.msg.date != 'all') {
data.forEach(item => { data.forEach(item => {
if(item.UseTimeStr==this.msg.date){ if (item.UseTimeStr == this.msg.date) {
this.dataList.push(item); this.dataList.push(item);
} }
}); });
}else{ } else {
this.dataList=data; this.dataList = data;
} }
this.dataList.forEach(x => { this.dataList.forEach(x => {
x.ScenicStatisticsList.forEach(y=>{ x.listUrl = [];
y.listUrl = [] if (x.VoucherPicList && x.VoucherPicList.length > 0) {
y.ReimburseList.VoucherPicList&&y.ReimburseList.VoucherPicList.forEach(z=>{ x.VoucherPicList.forEach(z => {
y.listUrl.push(z.url) x.listUrl.push(z.url)
})
}) })
}
}); });
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}, },
}, },
mounted() { mounted() {
this.getList(); this.getList();
} }
}; };
</script> </script>
<style scoped> <style scoped>
.numSpan{ .numSpan {
display: inline-block; display: inline-block;
width:60px; width: 60px;
} }
.widthSpan{
.widthSpan {
display: inline-block; display: inline-block;
width: 45px; width: 45px;
} }
.groupTourOrderSearchTable {
.groupTourOrderSearchTable {
width: 100%; width: 100%;
min-width: 1500px; min-width: 1500px;
font-size: 14px; font-size: 14px;
...@@ -139,9 +127,9 @@ export default { ...@@ -139,9 +127,9 @@ export default {
border-bottom: 1px solid #cccccc; border-bottom: 1px solid #cccccc;
border-right: 1px solid #cccccc; border-right: 1px solid #cccccc;
/* border-collapse: collapse; */ /* border-collapse: collapse; */
} }
.groupTourOrderSearchTable tr th { .groupTourOrderSearchTable tr th {
background: #e6e6e6; background: #e6e6e6;
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
...@@ -149,37 +137,36 @@ export default { ...@@ -149,37 +137,36 @@ export default {
text-indent: 15px; text-indent: 15px;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.groupTourOrderSearchTable tr { .groupTourOrderSearchTable tr {
background: #fff; background: #fff;
text-align: left; text-align: left;
} }
.groupTourOrderSearchTable tr td { .groupTourOrderSearchTable tr td {
padding: 8px; padding: 8px;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.groupTourOrderSearchTable tr td p { .groupTourOrderSearchTable tr td p {
line-height: 20px; line-height: 20px;
} }
.groupTourOrderSearchTable .dowloadSpan:hover { .groupTourOrderSearchTable .dowloadSpan:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.groupTourOrderSearchTable span.personNo { .groupTourOrderSearchTable span.personNo {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.groupTourOrderSearchTable span.personNo:hover { .groupTourOrderSearchTable span.personNo:hover {
font-weight: bold; font-weight: bold;
color: #e95252; color: #e95252;
} }
</style> </style>
...@@ -1024,7 +1024,6 @@ ...@@ -1024,7 +1024,6 @@
} }
}).catch(err => {}) }).catch(err => {})
}, },
// 生成pdf // 生成pdf
toContractPDF: function (title) { toContractPDF: function (title) {
let urlObj = this.domainManager(); let urlObj = this.domainManager();
...@@ -1156,5 +1155,4 @@ ...@@ -1156,5 +1155,4 @@
this.getShow(TID); this.getShow(TID);
} }
}; };
</script> </script>
\ No newline at end of file
...@@ -305,9 +305,12 @@ ...@@ -305,9 +305,12 @@
<input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="goUrl()" value="预览"> <input type="button" class="TCbtn-info" v-if="CtObj.status==1" @click="goUrl()" value="预览">
<input type="button" class="TCbtn-info" v-if="CtObj.auditContract==2" @click="getinvalid()" value="作废"> <input type="button" class="TCbtn-info" v-if="CtObj.auditContract==2" @click="getinvalid()" value="作废">
<input type="button" class="TCbtn-info" @click="dialogVisible=true,getGuestList()" value="复制合同" /> <input type="button" class="TCbtn-info" @click="dialogVisible=true,getGuestList()" value="复制合同" />
<template v-if="CtObj.auditContract!=2">
<input type="button" v-if="CtObj.auditContract!=2" class="btn-warning" @click="submitForm('CtObj')" <input type="button" class="btn-warning" @click="submitForm('CtObj')" value="保存" />
value="保存" /> </template>
<template v-if="CurrentUserInfo.EmployeeId==615">
<input type="button" class="btn-warning" @click="submitForm('CtObj')" value="保存(S)" />
</template>
</div> </div>
</div> </div>
<el-form label-width="180px" :model="CtObj" :rules="rules" ref="CtObj"> <el-form label-width="180px" :model="CtObj" :rules="rules" ref="CtObj">
...@@ -1552,8 +1555,10 @@ ...@@ -1552,8 +1555,10 @@
this.GetTrip(0, this.msg.TCID); this.GetTrip(0, this.msg.TCID);
} }
if (this.CtObj.auditContract == 2) { if (this.CtObj.auditContract == 2) {
if (this.CurrentUserInfo.EmployeeId != 615) {
this.goContract() this.goContract()
} }
}
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment