Commit a203a272 authored by 黄奎's avatar 黄奎

页面修改

parent 814dbfc7
<style> <style>
.el-dialog__header { .el-dialog__header {
background-color: #E95252!important; background-color: #E95252 !important;
padding: 20px 40px 10px; padding: 20px 40px 10px;
} }
.el-dialog__header .el-dialog__title{
color:white; .el-dialog__header .el-dialog__title {
} color: white;
.hollowFixedBtn{ background: #fff; color: #E95252; padding: 0 15px; height:30px;border:1px solid #E95252; cursor: pointer; border-radius: 15px;margin-left: 10px;} }
.hollowFixedBtn:hover{ box-shadow:2px 0px 4px rgba(144,6,6,0.25)}
.hollowFixedBtn:active{border-color: #CD2929;} .hollowFixedBtn {
.normalBtn{ color: #fff; padding: 0 15px; height:30px; background:#E95252; border: 1px solid #E95252; cursor: pointer; border-radius: 15px;margin-left: 10px;} background: #fff;
.normalBtn:hover{background: #E95252;box-shadow:2px 0px 4px rgba(144,6,6,0.25)} color: #E95252;
.normalBtn:active{background: #CD2929;} padding: 0 15px;
.leaderPayTable { height: 30px;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
.hollowFixedBtn:hover {
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.hollowFixedBtn:active {
border-color: #CD2929;
}
.normalBtn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
.normalBtn:hover {
background: #E95252;
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.normalBtn:active {
background: #CD2929;
}
.leaderPayTable {
width: 100%; width: 100%;
margin: 10px auto; margin: 10px auto;
text-align: center; text-align: center;
...@@ -23,66 +58,79 @@ ...@@ -23,66 +58,79 @@
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
.leaderPayTable th { .leaderPayTable th {
background: #e6e6e6; background: #e6e6e6;
padding: 8px 0; padding: 8px 0;
color: #333; color: #333;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
font-weight: bold; font-weight: bold;
} }
.leaderPayTable tr td {
.leaderPayTable tr td {
background-color: #fff; background-color: #fff;
padding: 8px 0; padding: 8px 0;
height: 32px; height: 32px;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
.leaderPayTable2 tr td{
.leaderPayTable2 tr td {
border: 1px solid #ccc; border: 1px solid #ccc;
line-height: 17px; line-height: 17px;
height: 25px; height: 25px;
font-size: 12px; font-size: 12px;
background: #fff; background: #fff;
text-align: center; text-align: center;
padding: 0;; padding: 0;
;
margin: 0; margin: 0;
} }
.LeaderPrintDiv .LeaderTitle {
.LeaderPrintDiv .LeaderTitle {
padding: 10px; padding: 10px;
text-align: left; text-align: left;
} }
.leaderPayTable .itemName {
.leaderPayTable .itemName {
text-align: left; text-align: left;
padding: 0 10px; padding: 0 10px;
} }
@media print {
@media print {
.LeaderPrintDiv .btnListDiv { .LeaderPrintDiv .btnListDiv {
display: none; display: none;
} }
} }
.comTotal {
.comTotal {
text-align: left; text-align: left;
padding-left: 30px !important; padding-left: 30px !important;
} }
.LeaderPrintDiv {
.LeaderPrintDiv {
width: 100%; width: 100%;
background: #f8f8f8; background: #f8f8f8;
position: absolute; position: absolute;
} }
.LeaderPrintDiv .childDiv {
.LeaderPrintDiv .childDiv {
width: 1000px; width: 1000px;
margin: 0 auto; margin: 0 auto;
} }
.LeaderPrintDiv .childDiv ._Titles {
.LeaderPrintDiv .childDiv ._Titles {
font-size: 14px; font-size: 14px;
} }
.wLeader2 .el-textarea__inner {
.wLeader2 .el-textarea__inner {
height: 130px; height: 130px;
} }
.LeaderPrintDiv .btnListDiv {
.LeaderPrintDiv .btnListDiv {
margin: 20px auto; margin: 20px auto;
text-align: center; text-align: center;
} }
.LeaderPrintDiv .leader2Btn {
.LeaderPrintDiv .leader2Btn {
color: #fff; color: #fff;
padding: 0 15px; padding: 0 15px;
height: 30px; height: 30px;
...@@ -90,59 +138,216 @@ ...@@ -90,59 +138,216 @@
border: 1px solid #e95252; border: 1px solid #e95252;
cursor: pointer; cursor: pointer;
border-radius: 15px; border-radius: 15px;
} }
.cursorpointer{cursor: pointer;}
.text-decoration{text-decoration: underline;} .cursorpointer {
input::-webkit-outer-spin-button, cursor: pointer;
input::-webkit-inner-spin-button { }
.text-decoration {
text-decoration: underline;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none; -webkit-appearance: none;
} }
input[type="number"] { input[type="number"] {
-moz-appearance: textfield; -moz-appearance: textfield;
} }
.w150{
.w150 {
width: 150px !important; width: 150px !important;
} }
.Receipt_box{padding: 15px;color: #c94052;width: 614px;background-color: rgba(242, 242, 242, 1);border: 1px solid rgba(228, 228, 228, 1)}
.Receipt_box.color_blur{color: #106BAF;} .Receipt_box {
.Receipt_box.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px} padding: 15px;
.rb_tit{font-size: 18px;text-align: center} color: #c94052;
.rb_stit{font-size: 14px;text-align: center} width: 614px;
.rb_stit span{display: inline-block;border-bottom: 2px solid #C94052;padding: 0 20px} background-color: rgba(242, 242, 242, 1);
.rb_top_row{display: flex;justify-content: space-between;font-size: 12px;} border: 1px solid rgba(228, 228, 228, 1)
.rb_top_row span._r_name{color: #333333} }
.rb_top_row span._r_bold{font-weight: bold}
.rb_top_row ._r_time span{color: #333333} .Receipt_box.color_blur {
._r_mb5{margin-bottom: 5px;} color: #106BAF;
.Receipt_table{width: 100%;font-size: 14px;text-align: center} }
.Receipt_table .th{font-weight: 200 !important}
._r_mt10{margin-top: 10px;} .Receipt_box.color_blur .rb_stit span {
._bg__{display: inline-block;padding: 2px 8px;color: white;border-radius: 4px} display: inline-block;
._bg_red{background-color: #E95252;} border-bottom: 2px solid #106BAF;
._bg_green{background-color: #2BB87C} padding: 0 20px
.text_d{text-decoration: underline;cursor: pointer;} }
.PingFangSC{font-weight: bold}
.Bill_par{position: relative;} .rb_tit {
tr._item_list{border-bottom: 1px solid #E5E5E5;height: 78px;} font-size: 18px;
tr._item_list td{border-bottom: 1px solid #e5e5e5; padding: 10px;} text-align: center
}
.rb_stit {
font-size: 14px;
text-align: center
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #C94052;
padding: 0 20px
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row span._r_name {
color: #333333
}
.rb_top_row span._r_bold {
font-weight: bold
}
.rb_top_row ._r_time span {
color: #333333
}
._r_mb5 {
margin-bottom: 5px;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center
}
.Receipt_table .th {
font-weight: 200 !important
}
._r_mt10 {
margin-top: 10px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px
}
._bg_red {
background-color: #E95252;
}
._bg_green {
background-color: #2BB87C
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.PingFangSC {
font-weight: bold
}
.Bill_par {
position: relative;
}
tr._item_list {
border-bottom: 1px solid #E5E5E5;
height: 78px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */ /* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child{border-left: 1px solid #e5e5e5;} tr._item_list td:first-child {
tr._item_list td:last-child{border-right: 1px solid #e5e5e5;} border-left: 1px solid #e5e5e5;
._head_img{width: 28px;height: 28px;border-radius: 50%;vertical-align:middle;} }
._btn_group{font-size: 14px;}
.icon-daiqueren{color: #4BCA81} tr._item_list td:last-child {
.icon-yiqueren{color: #4BCA81} border-right: 1px solid #e5e5e5;
.icon-yiquxiao{color: #959595} }
.icon-shenhebohui{color: #E95252}
.icon-icon-zancun{color: #FF9C01} ._head_img {
.singeRowTable tr:hover{background-color: white} width: 28px;
._TradeWayList{padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 10px 0;width: 230px} height: 28px;
._bold{font-weight: bold} border-radius: 50%;
._bank_name,._bank_type{display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;} vertical-align: middle;
._bank_name{margin-left: 10px;cursor: pointer;} }
._bank_type{background-color: #2AAEF2}
._bank_type2{background-color: #FF9C01} ._btn_group {
font-size: 14px;
}
.icon-daiqueren {
color: #4BCA81
}
.icon-yiqueren {
color: #4BCA81
}
.icon-yiquxiao {
color: #959595
}
.icon-shenhebohui {
color: #E95252
}
.icon-icon-zancun {
color: #FF9C01
}
.singeRowTable tr:hover {
background-color: white
}
._TradeWayList {
padding: 5px 10px;
background-color: #EEEEEE;
border-radius: 4px;
margin: 10px 0;
width: 230px
}
._bold {
font-weight: bold
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
cursor: pointer;
}
._bank_type {
background-color: #2AAEF2
}
._bank_type2 {
background-color: #FF9C01
}
</style> </style>
<template> <template>
...@@ -231,7 +436,8 @@ input[type="number"] { ...@@ -231,7 +436,8 @@ input[type="number"] {
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length"> <td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
{{subItem.Remarks}} {{subItem.Remarks}}
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length"><span class="cursorpointer text-decoratio" @click="godetail('ticket', subItem)">明细</span></td> <td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length"><span
class="cursorpointer text-decoratio" @click="godetail('ticket', subItem)">明细</span></td>
</tr> </tr>
</template> </template>
</template> </template>
...@@ -304,7 +510,8 @@ input[type="number"] { ...@@ -304,7 +510,8 @@ input[type="number"] {
<td> <td>
{{item2.Remarks}} {{item2.Remarks}}
</td> </td>
<td v-if="index2 ==0" :rowspan="item.data.length"><span class="cursorpointer text-decoratio" @click="godetail('bus', item2)">明细</span></td> <td v-if="index2 ==0" :rowspan="item.data.length"><span class="cursorpointer text-decoratio"
@click="godetail('bus', item2)">明细</span></td>
</tr> </tr>
</template> </template>
</table> </table>
...@@ -372,7 +579,8 @@ input[type="number"] { ...@@ -372,7 +579,8 @@ input[type="number"] {
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length"> <td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{subItem.Remarks}} {{subItem.Remarks}}
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length"><span class="cursorpointer text-decoratio" @click="godetail('dining', subItem)">明细</span></td> <td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length"><span
class="cursorpointer text-decoratio" @click="godetail('dining', subItem)">明细</span></td>
</tr> </tr>
</template> </template>
</template> </template>
...@@ -461,7 +669,8 @@ input[type="number"] { ...@@ -461,7 +669,8 @@ input[type="number"] {
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{subItem.Remarks}} {{subItem.Remarks}}
</td> </td>
<td v-if="childIndex==0 && subIndex ==0" :rowspan="item.row"><span class="cursorpointer text-decoration" @click="godetail('hotel', subItem)">明细</span></td> <td v-if="childIndex==0 && subIndex ==0" :rowspan="item.row"><span class="cursorpointer text-decoration"
@click="godetail('hotel', subItem)">明细</span></td>
</tr> </tr>
</template> </template>
</template> </template>
...@@ -481,12 +690,12 @@ input[type="number"] { ...@@ -481,12 +690,12 @@ input[type="number"] {
<!-- <span class="cursorpointer text-decoratio" @click="godetailAll('zifeizhiS')">明细</span> --> <!-- <span class="cursorpointer text-decoratio" @click="godetailAll('zifeizhiS')">明细</span> -->
</td> </td>
</tr> </tr>
<tr <tr v-show="(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)>0">
v-show="(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)>0"
>
<td>其他费用</td> <td>其他费用</td>
<td>0</td> <td>0</td>
<td>{{moneyFormat(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)}}</td> <td>
{{moneyFormat(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)}}
</td>
<td> <td>
<!-- <span class="cursorpointer text-decoratio" @click="godetailAll('qitaF')">明细</span> --> <!-- <span class="cursorpointer text-decoratio" @click="godetailAll('qitaF')">明细</span> -->
</td> </td>
...@@ -526,20 +735,25 @@ input[type="number"] { ...@@ -526,20 +735,25 @@ input[type="number"] {
</tr> </tr>
<tr class="_item_list" v-for="(item,index) in zhuijiaList"> <tr class="_item_list" v-for="(item,index) in zhuijiaList">
<td class="Bill_par"> <td class="Bill_par">
<span @click="goFncUrl('FinancialDocumentsDetail', item.FrID)" class="text_d PingFangSC" >{{item.FrID}}</span> <span @click="goFncUrl('FinancialDocumentsDetail', item.FrID)"
class="text_d PingFangSC">{{item.FrID}}</span>
</td> </td>
<td>{{item.BranchName}}</td> <td>{{item.BranchName}}</td>
<td><span class="_bg__" :class="item.Type==1 || item.Type==5?'_bg_green':'_bg_red'">{{item.TypeName}}</span></td> <td><span class="_bg__" :class="item.Type==1 || item.Type==5?'_bg_green':'_bg_red'">{{item.TypeName}}</span>
</td>
<td> <td>
<template v-for="(s,si) in item.CostTypeList"> <template v-for="(s,si) in item.CostTypeList">
<span class="_tag_span">{{s}}</span><br/> <span class="_tag_span">{{s}}</span><br />
</template> </template>
</td> </td>
<td class="_number"> <td class="_number">
<template v-if="item.TradeWayList&&item.TradeWayList.length>0"> <template v-if="item.TradeWayList&&item.TradeWayList.length>0">
<div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList"> <div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList">
<p class="_fex_cen clearfix"><span class="_bold">{{tw.Alias}}</span><span class="_bank_name">{{item.TradeWayList[0].TypeName}}</span><span class="_bank_type" :class="tw.AccountType=='私'?'':'_bank_type2'">{{tw.AccountType==""?$t('fnc.no'):tw.AccountType}}</span> </p> <p class="_fex_cen clearfix"><span class="_bold">{{tw.Alias}}</span><span
class="_bank_name">{{item.TradeWayList[0].TypeName}}</span><span class="_bank_type"
:class="tw.AccountType=='私'?'':'_bank_type2'">{{tw.AccountType==""?$t('fnc.no'):tw.AccountType}}</span>
</p>
<p>{{tw.BankNo}}</p> <p>{{tw.BankNo}}</p>
</div> </div>
</template> </template>
...@@ -550,7 +764,8 @@ input[type="number"] { ...@@ -550,7 +764,8 @@ input[type="number"] {
</template> </template>
</td> </td>
<td> <td>
<p>{{item.Type==1 ? $t('fnc.yingshou') : $t('fnc.yingfu') }}:<span class="">{{moneyFormat(item.OriginalMoneyTotal)}}</span></p> <p>{{item.Type==1 ? $t('fnc.yingshou') : $t('fnc.yingfu') }}:<span
class="">{{moneyFormat(item.OriginalMoneyTotal)}}</span></p>
<!-- <p>{{item.Type==1 ? $t('fnc.shishou') : $t('fnc.shifu') }}:<span class="">{{moneyFormat(item.PayMoney)}}</span></p> --> <!-- <p>{{item.Type==1 ? $t('fnc.shishou') : $t('fnc.shifu') }}:<span class="">{{moneyFormat(item.PayMoney)}}</span></p> -->
</td> </td>
<td> <td>
...@@ -582,16 +797,16 @@ input[type="number"] { ...@@ -582,16 +797,16 @@ input[type="number"] {
<!-- <th>实际报账金额</th> --> <!-- <th>实际报账金额</th> -->
<th>领队退款</th> <th>领队退款</th>
</tr> </tr>
<tr <tr v-for="(item, index) in TotalPriceData"
v-for="(item, index) in TotalPriceData" v-if="item.PlanPrice > 0 || item.PlanTotalPrice > 0 || item.ExpendTotalPrice > 0">
v-if="item.PlanPrice > 0 || item.PlanTotalPrice > 0 || item.ExpendTotalPrice > 0"
>
<td>{{item.CurrencyStr}}</td> <td>{{item.CurrencyStr}}</td>
<td>{{moneyFormat(item.PlanPrice)}}</td> <td>{{moneyFormat(item.PlanPrice)}}</td>
<td>{{moneyFormat(item.PlanTotalPrice)}}</td> <td>{{moneyFormat(item.PlanTotalPrice)}}</td>
<td>{{moneyFormat(item.ExpendTotalPrice)}}</td> <td>{{moneyFormat(item.ExpendTotalPrice)}}</td>
<!-- <td>{{index == 0 ? moneyFormat(AllBZPrice) : moneyFormat(item.ExpendTotalPrice)}}</td> --> <!-- <td>{{index == 0 ? moneyFormat(AllBZPrice) : moneyFormat(item.ExpendTotalPrice)}}</td> -->
<td>{{index == 0 ? moneyFormat(item.PlanTotalPrice - AllBZPrice): moneyFormat(item.PlanTotalPrice - item.ExpendTotalPrice)}}</td> <td>
{{index == 0 ? moneyFormat(item.PlanTotalPrice - AllBZPrice): moneyFormat(item.PlanTotalPrice - item.ExpendTotalPrice)}}
</td>
</tr> </tr>
<tr v-if="!TotalPriceData.length"> <tr v-if="!TotalPriceData.length">
<td colspan="5">暂无数据</td> <td colspan="5">暂无数据</td>
...@@ -636,7 +851,7 @@ input[type="number"] { ...@@ -636,7 +851,7 @@ input[type="number"] {
<td colspan="7">暂无数据</td> <td colspan="7">暂无数据</td>
</tr> </tr>
</table> </table>
<table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" > <table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0">
<tr> <tr>
<th width="140">团号</th> <th width="140">团号</th>
<th width="200">实际领款</th> <th width="200">实际领款</th>
...@@ -655,19 +870,12 @@ input[type="number"] { ...@@ -655,19 +870,12 @@ input[type="number"] {
财务单号: 财务单号:
<template v-for="(subItem, subIndex) in item.FinanceIds"> <template v-for="(subItem, subIndex) in item.FinanceIds">
<p style="margin: 0;text-align: left"> <p style="margin: 0;text-align: left">
<span <span class="cursorpointer text-decoration"
class="cursorpointer text-decoration" @click="goFncUrl('FinancialDocumentsDetail', subItem.FinanceId)">{{subItem.FinanceId}}</span>&nbsp;&nbsp;
@click="goFncUrl('FinancialDocumentsDetail', subItem.FinanceId)" <span class="cursorpointer text-decoration" @click="goFncUrl('Application', subItem.FinanceId)"
>{{subItem.FinanceId}}</span>&nbsp;&nbsp; v-if="subItem.IsPublic === 4">申请书</span> &nbsp;&nbsp;
<span <span class="cursorpointer text-decoration"
class="cursorpointer text-decoration" @click="goFncUrl('DebitNote', subItem.FinanceId)">借支单</span>
@click="goFncUrl('Application', subItem.FinanceId)"
v-if="subItem.IsPublic === 4"
>申请书</span> &nbsp;&nbsp;
<span
class="cursorpointer text-decoration"
@click="goFncUrl('DebitNote', subItem.FinanceId)"
>借支单</span>
</p> </p>
</template> </template>
</div> </div>
...@@ -675,33 +883,18 @@ input[type="number"] { ...@@ -675,33 +883,18 @@ input[type="number"] {
<td> <td>
<span v-if="item.LeaderClosePrice > 0">实际结算金额: {{item.LeaderClosePrice}}</span> <span v-if="item.LeaderClosePrice > 0">实际结算金额: {{item.LeaderClosePrice}}</span>
&nbsp;&nbsp; &nbsp;&nbsp;
<el-input <el-input size="mini" class="w150" type="number" v-model="item.LeaderGetPriceT"></el-input>
size="mini"
class="w150"
type="number"
v-model="item.LeaderGetPriceT"></el-input>
</td> </td>
<td> <td>
<p v-for="(subItem, subIndex) in item.FinanceCloseList" style=" margin: 0;"> <p v-for="(subItem, subIndex) in item.FinanceCloseList" style=" margin: 0;">
<span <span class="cursorpointer text-decoration"
class="cursorpointer text-decoration" @click="goFncUrl('FinancialDocumentsDetail', subItem.FinanceId)">{{subItem.FinanceId}}</span>&nbsp;&nbsp;
@click="goFncUrl('FinancialDocumentsDetail', subItem.FinanceId)"
>{{subItem.FinanceId}}</span>&nbsp;&nbsp;
</p> </p>
</td> </td>
<td width="80" class="_zhidan"> <td width="80" class="_zhidan">
<input v-if="TimeXiao" <input v-if="TimeXiao" type="button" value="制单" class="leader2Btn" @click="goZhiDan(item)">
type="button"
value="制单"
class="leader2Btn"
@click="goZhiDan(item)"
>
<input v-else-if="dataList.LeaderApply && dataList.LeaderApply.Status && dataList.LeaderApply.Status==2" <input v-else-if="dataList.LeaderApply && dataList.LeaderApply.Status && dataList.LeaderApply.Status==2"
type="button" type="button" value="制单" class="leader2Btn" @click="goZhiDan(item)">
value="制单"
class="leader2Btn"
@click="goZhiDan(item)"
>
</td> </td>
</tr> </tr>
...@@ -718,36 +911,27 @@ input[type="number"] { ...@@ -718,36 +911,27 @@ input[type="number"] {
<th>财务单号</th> <th>财务单号</th>
<th>制单</th> <th>制单</th>
</tr> </tr>
<tr <tr v-for="(item, index) in listCost">
v-for="(item, index) in listCost"
>
<td>{{item.Type == 1 ? "领兼地" : "领队"}}:{{item.LeaderOrGuidName}}</td> <td>{{item.Type == 1 ? "领兼地" : "领队"}}:{{item.LeaderOrGuidName}}</td>
<td>{{item.PeopleNum}}</td> <td>{{item.PeopleNum}}</td>
<td>{{moneyFormat(item.UnitPrice)}}</td> <td>{{moneyFormat(item.UnitPrice)}}</td>
<td> <td>
<el-input <el-input size="mini" class="w150" type="number" v-model="item.price"></el-input>
size="mini"
class="w150"
type="number"
v-model="item.price"></el-input>
</td> </td>
<td v-if="index == 0" :rowspan="listCost.length"> <td v-if="index == 0" :rowspan="listCost.length">
<span>已付款:{{moneyFormat(item.TotalPrice)}}</span> <span>已付款:{{moneyFormat(item.TotalPrice)}}</span>
<p>财务单号:<span v-for="(i, d) in item.FrId" class="cursorpointer text-decoration" @click="goFncUrl('FinancialDocumentsDetail', i)">{{i}} {{d == item.FrId.length-1 ? '' : '、'}}</span></p> <p>财务单号:<span v-for="(i, d) in item.FrId" class="cursorpointer text-decoration"
@click="goFncUrl('FinancialDocumentsDetail', i)">{{i}} {{d == item.FrId.length-1 ? '' : '、'}}</span></p>
</td> </td>
<td> <td>
<input <input type="button" value="制单" class="leader2Btn" @click="opendialog(item, index, item.price)">
type="button"
value="制单"
class="leader2Btn"
@click="opendialog(item, index, item.price)">
</td> </td>
</tr> </tr>
<tr v-if="!listCost.length"> <tr v-if="!listCost.length">
<td colspan="5">暂无数据</td> <td colspan="5">暂无数据</td>
</tr> </tr>
</table> </table>
<table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" > <table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0">
<tr> <tr>
<th width="140">团号</th> <th width="140">团号</th>
<th width="200">领款金额</th> <th width="200">领款金额</th>
...@@ -769,36 +953,25 @@ input[type="number"] { ...@@ -769,36 +953,25 @@ input[type="number"] {
<p v-for="(f, fd) in item.FinanceIds">{{Math.round(f.OriginalMoney * (f.Rate - f.Fee) * 100) / 100}}</p> <p v-for="(f, fd) in item.FinanceIds">{{Math.round(f.OriginalMoney * (f.Rate - f.Fee) * 100) / 100}}</p>
</td> </td>
<td width="80" class="_zhidan"> <td width="80" class="_zhidan">
<input <input type="button" value="制单" class="leader2Btn" @click="huiDuiShouYi(item, item.FinanceIds)">
type="button"
value="制单"
class="leader2Btn"
@click="huiDuiShouYi(item, item.FinanceIds)"
>
</td> </td>
</tr> </tr>
<tr v-if="!TotalNav && !TotalNav.length"> <tr v-if="!TotalNav && !TotalNav.length">
<td colspan="5">暂无数据</td> <td colspan="5">暂无数据</td>
</tr> </tr>
</table> </table>
<table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" > <table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0">
<tr> <tr>
<th colspan="7">稽核单据 <th colspan="7">稽核单据
</th> </th>
</tr> </tr>
<tr v-for="(item, index) in TotalNav"> <tr v-for="(item, index) in TotalNav">
<td colspan="3">{{item.TCNUMS}}</td> <td colspan="3">{{item.TCNUMS}}</td>
<td colspan="3"><el-input <td colspan="3">
size="mini" <el-input size="mini" class="w150" type="number" v-model="item.price"></el-input>
class="w150" </td>
type="number"
v-model="item.price"></el-input></td>
<td colspan="1"> <td colspan="1">
<input <input type="button" value="制稽核单" class="leader2Btn" @click="ZhiDanJiHe(item)">
type="button"
value="制稽核单"
class="leader2Btn"
@click="ZhiDanJiHe(item)">
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -813,7 +986,8 @@ input[type="number"] { ...@@ -813,7 +986,8 @@ input[type="number"] {
<template v-for="(item, index) in TotalNav"> <template v-for="(item, index) in TotalNav">
<tr v-for="(Sitem, Sindex) in item.FinanceAuditList"> <tr v-for="(Sitem, Sindex) in item.FinanceAuditList">
<td>{{Sindex+1}}</td> <td>{{Sindex+1}}</td>
<td><span class="cursorpointer text-decoration" @click="goFncUrl('FinancialDocumentsDetail', Sitem.FinanceId)">{{Sitem.FinanceId}}</span></td> <td><span class="cursorpointer text-decoration"
@click="goFncUrl('FinancialDocumentsDetail', Sitem.FinanceId)">{{Sitem.FinanceId}}</span></td>
<td>{{Sitem.CostTypeName}}</td> <td>{{Sitem.CostTypeName}}</td>
<td>{{Sitem.CreateDate}}</td> <td>{{Sitem.CreateDate}}</td>
<td>{{Sitem.Remark}}</td> <td>{{Sitem.Remark}}</td>
...@@ -823,7 +997,7 @@ input[type="number"] { ...@@ -823,7 +997,7 @@ input[type="number"] {
</template> </template>
</table> </table>
<table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" > <table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0">
<tr> <tr>
<th colspan="4">意见调查表</th> <th colspan="4">意见调查表</th>
</tr> </tr>
...@@ -838,48 +1012,29 @@ input[type="number"] { ...@@ -838,48 +1012,29 @@ input[type="number"] {
<td>{{item.CommonReport.HouseStatistics.RealityNum}}</td> <td>{{item.CommonReport.HouseStatistics.RealityNum}}</td>
<td>{{item.TotalGuestsurvey}}</td> <td>{{item.TotalGuestsurvey}}</td>
<td> <td>
<input <input type="button" value="明细" class="leader2Btn" @click="goDIaoCha(item)">
type="button"
value="明细"
class="leader2Btn"
@click="goDIaoCha(item)">
</td> </td>
</tr> </tr>
<tr v-if="!TotalNav && !TotalNav.length"> <tr v-if="!TotalNav && !TotalNav.length">
<td colspan="5">暂无数据</td> <td colspan="5">暂无数据</td>
</tr> </tr>
</table> </table>
<template <template v-if="dataList.LeaderApply && dataList.LeaderApply.Status && dataList.LeaderApply.Status==1">
v-if="dataList.LeaderApply && dataList.LeaderApply.Status && dataList.LeaderApply.Status==1" <el-input type="textarea" placeholder="请输入备注信息" v-model="dataList.LeaderApply.AccountForReason"
> class="wLeader2" />
<el-input
type="textarea"
placeholder="请输入备注信息"
v-model="dataList.LeaderApply.AccountForReason"
class="wLeader2"
/>
</template> </template>
<div class="btnListDiv"> <div class="btnListDiv">
<input <input type="button" class="leader2Btn" @click="AuditOrder(2)" value="审核通过"
type="button" v-show="dataList.LeaderApply.Status==1">
class="leader2Btn" <input type="button" class="leader2Btn" @click="AuditOrder(1)" value="审核不通过"
@click="AuditOrder(2)" v-show="dataList.LeaderApply.Status==1">
value="审核通过"
v-show="dataList.LeaderApply.Status==1"
>
<input
type="button"
class="leader2Btn"
@click="AuditOrder(1)"
value="审核不通过"
v-show="dataList.LeaderApply.Status==1"
>
<input type="button" class="leader2Btn" value="打印" @click="printTable()"> <input type="button" class="leader2Btn" value="打印" @click="printTable()">
<!-- <input type="button" class="leader2Btn" value="查看详情" @click="Lookdetails()"> --> <!-- <input type="button" class="leader2Btn" value="查看详情" @click="Lookdetails()"> -->
</div> </div>
</div> </div>
<a :href="blankUrl" id="blankLink" target="_blank" style="display:none">1</a> <a :href="blankUrl" id="blankLink" target="_blank" style="display:none">1</a>
<el-dialog title="选择账户" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie" v-loading="dialogFormVisibleLoding"> <el-dialog title="选择账户" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie"
v-loading="dialogFormVisibleLoding">
<el-form label-width="110px"> <el-form label-width="110px">
<el-form-item label="付款类型"> <el-form-item label="付款类型">
<el-select filterable v-model='lingjiandiMsg.IsPublic' class=""> <el-select filterable v-model='lingjiandiMsg.IsPublic' class="">
...@@ -897,28 +1052,19 @@ input[type="number"] { ...@@ -897,28 +1052,19 @@ input[type="number"] {
</el-form-item> </el-form-item>
<el-form-item label="账户"> <el-form-item label="账户">
<el-select filterable v-model='lingjiandiMsg.ClientID' class=""> <el-select filterable v-model='lingjiandiMsg.ClientID' class="">
<el-option v-for='item in ClientAccountListS' <el-option v-for='item in ClientAccountListS' :label='item.AccountHolder' :value='item.ID' :key='item.ID'>
:label='item.AccountHolder'
:value='item.ID'
:key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="币种"> <el-form-item label="币种">
<el-select filterable v-model='lingjiandiMsg.CurrencyId' class=""> <el-select filterable v-model='lingjiandiMsg.CurrencyId' class="">
<el-option v-for='item in currencyList' <el-option v-for='item in currencyList' :label='item.Name' :value='item.ID' :key='item.ID'>
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="预计付款日期"> <el-form-item label="预计付款日期">
<el-date-picker clearable class="w190 _border_b_1" <el-date-picker clearable class="w190 _border_b_1" v-model="lingjiandiMsg.PayDate" type="datetime"
v-model="lingjiandiMsg.PayDate" :placeholder="$t('fnc.qxzrqshijian')" align="right">
type="datetime"
:placeholder="$t('fnc.qxzrqshijian')"
align="right">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
...@@ -931,10 +1077,10 @@ input[type="number"] { ...@@ -931,10 +1077,10 @@ input[type="number"] {
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
planPriceList:[], planPriceList: [],
zhuijiaList: [], zhuijiaList: [],
zhuijiaMoney: 0, zhuijiaMoney: 0,
dialogFormVisibleLoding: false, dialogFormVisibleLoding: false,
...@@ -955,7 +1101,11 @@ export default { ...@@ -955,7 +1101,11 @@ export default {
NewCombinationNum: "" NewCombinationNum: ""
}, },
nav: [], nav: [],
dataList: {LeaderApply: {Status: 0}}, dataList: {
LeaderApply: {
Status: 0
}
},
//合计景点 //合计景点
totalScenicPrice: 0, totalScenicPrice: 0,
//合计餐饮 //合计餐饮
...@@ -972,11 +1122,11 @@ export default { ...@@ -972,11 +1122,11 @@ export default {
blankUrl: "", blankUrl: "",
TotalNav: [], TotalNav: [],
TimeXiao: false, TimeXiao: false,
list:[], list: [],
OtherTotalPrice:0, OtherTotalPrice: 0,
SelfPayingExpendTotalPrice:0, SelfPayingExpendTotalPrice: 0,
IncomeTotalPrice:0, IncomeTotalPrice: 0,
ExpendTotalPrice:0, ExpendTotalPrice: 0,
busDataList: [], busDataList: [],
DiningDataList: [], DiningDataList: [],
ScenicDataList: [], ScenicDataList: [],
...@@ -985,11 +1135,11 @@ export default { ...@@ -985,11 +1135,11 @@ export default {
BaoZhangPrice: {}, BaoZhangPrice: {},
AllBZPrice: 0, AllBZPrice: 0,
ClientAccountListS: [], ClientAccountListS: [],
currencyList:[], currencyList: [],
}; };
}, },
methods: { methods: {
getOrderType(type){ getOrderType(type) {
// 1-其他订单,2-小费收入,3-团费小计,4-自费收入,5-自费支出 // 1-其他订单,2-小费收入,3-团费小计,4-自费收入,5-自费支出
if (type == 1) return '其他订单' if (type == 1) return '其他订单'
else if (type == 2) return '小费收入' else if (type == 2) return '小费收入'
...@@ -997,10 +1147,11 @@ export default { ...@@ -997,10 +1147,11 @@ export default {
else if (type == 4) return '自费收入' else if (type == 4) return '自费收入'
else if (type == 5) return '自费支出' else if (type == 5) return '自费支出'
}, },
getzhuijiaList(){ getzhuijiaList() {
this.apipost( this.apipost(
'Financial_post_GetTravelFinanceReplenishList', { 'Financial_post_GetTravelFinanceReplenishList', {
TravelReplenish: this.$route.query.NewCombinationNum ? this.$route.query.NewCombinationNum : this.$route.query.id TravelReplenish: this.$route.query.NewCombinationNum ? this.$route.query.NewCombinationNum : this.$route
.query.id
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -1011,7 +1162,7 @@ export default { ...@@ -1011,7 +1162,7 @@ export default {
err => {} err => {}
) )
}, },
opendialog: function (item, index, price){ opendialog: function (item, index, price) {
if (!price) { if (!price) {
return this.$message.error('请输入金额') return this.$message.error('请输入金额')
} }
...@@ -1019,8 +1170,10 @@ export default { ...@@ -1019,8 +1170,10 @@ export default {
this.dialogFormVisible = true this.dialogFormVisible = true
this.dialogFormVisibleIndex = index this.dialogFormVisibleIndex = index
}, },
getCurrencyList: function(id){ getCurrencyList: function (id) {
this.apipost("financeinfo_post_GetList", {Name: ""}, res=>{ 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
...@@ -1030,38 +1183,40 @@ export default { ...@@ -1030,38 +1183,40 @@ export default {
closeChangeMachie(done) { // 弹=窗口关闭 closeChangeMachie(done) { // 弹=窗口关闭
done(); done();
}, },
financeinfo_post_GetClientAccountList(){ //获取付款 对象类型 新增用 financeinfo_post_GetClientAccountList() { //获取付款 对象类型 新增用
let msg = { let msg = {
ID:0, ID: 0,
Type: 7, Type: 7,
ObjID:0, ObjID: 0,
CardNum:'' CardNum: ''
} }
this.apipost('financeinfo_post_GetClientAccountList',msg, res => { this.apipost('financeinfo_post_GetClientAccountList', msg, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
this.ClientAccountListS = data; this.ClientAccountListS = data;
} }
}, err => {}) }, err => {})
}, },
// 全部明细 // 全部明细
godetailAll: function (name){ godetailAll: function (name) {
this.godetail(name) this.godetail(name)
}, },
// 明细 // 明细
godetail: function (name, obj) { godetail: function (name, obj) {
let path = "", TCIDs = this.msg.TCIDs, date = ''; let path = "",
TCIDs = this.msg.TCIDs,
date = '';
if (name == 'ticket') { if (name == 'ticket') {
path = 'leaderPayTicketDetail' path = 'leaderPayTicketDetail'
date = obj ? obj.UseTimeStr : 'all' date = obj ? obj.UseTimeStr : 'all'
} else if (name === 'bus') { } else if (name === 'bus') {
path="CarDetails" path = "CarDetails"
date=obj?obj.UseTime:'all'; date = obj ? obj.UseTime : 'all';
} else if (name === 'dining') { } else if (name === 'dining') {
path="DinningDetails" path = "DinningDetails"
date=obj?obj.UseTimeStr:'all'; date = obj ? obj.UseTimeStr : 'all';
} else if (name === 'hotel') { } else if (name === 'hotel') {
path = 'leaderPayHotelDetail' path = 'leaderPayHotelDetail'
date = obj ? obj.CheckInDateStr : 'all' date = obj ? obj.CheckInDateStr : 'all'
...@@ -1075,8 +1230,8 @@ export default { ...@@ -1075,8 +1230,8 @@ export default {
dom.click(); dom.click();
}, },
// 稽核单据 // 稽核单据
ZhiDanJiHe: function(obj){ ZhiDanJiHe: function (obj) {
if(!obj.price) { if (!obj.price) {
this.$message.error('请输入金额') this.$message.error('请输入金额')
return return
} }
...@@ -1092,26 +1247,27 @@ export default { ...@@ -1092,26 +1247,27 @@ export default {
TCIDList: TCIDARR, TCIDList: TCIDARR,
Money: obj.price, Money: obj.price,
}; };
let fullPath = `/ChoiceAddFinancialDocuments?Type=${2}&templateID=${templateID}&companyID=${obj.OutBranchId}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`; let fullPath =
`/ChoiceAddFinancialDocuments?Type=${2}&templateID=${templateID}&companyID=${obj.OutBranchId}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`;
let dom = document.querySelector("#blankLink"); let dom = document.querySelector("#blankLink");
dom.href = `http://${window.location.host}/#${fullPath}`; dom.href = `http://${window.location.host}/#${fullPath}`;
dom.click(); dom.click();
}, },
// 意见调查列表 // 意见调查列表
goDIaoCha: function (obj){ goDIaoCha: function (obj) {
let fullPath = `/investigationList?TCID=${obj.TCIDS}&blank=y&tab=问券调查列表`; let fullPath = `/investigationList?TCID=${obj.TCIDS}&blank=y&tab=问券调查列表`;
let dom = document.querySelector("#blankLink"); let dom = document.querySelector("#blankLink");
dom.href = `http://${window.location.host}/#${fullPath}`; dom.href = `http://${window.location.host}/#${fullPath}`;
dom.click(); dom.click();
}, },
// 汇兑收益金额制单 // 汇兑收益金额制单
huiDuiShouYi: function (obj, list){ huiDuiShouYi: function (obj, list) {
if (obj.ExchangeEarningPrice>0) { if (obj.ExchangeEarningPrice > 0) {
this.$message.error('已有财务单据,无法制单') this.$message.error('已有财务单据,无法制单')
return return
} }
let money = 0; let money = 0;
for(let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
money = money + Math.round(list[i].OriginalMoney * (list[i].Rate - list[i].Fee) * 100) / 100 money = money + Math.round(list[i].OriginalMoney * (list[i].Rate - list[i].Fee) * 100) / 100
} }
console.log(money) console.log(money)
...@@ -1131,25 +1287,41 @@ export default { ...@@ -1131,25 +1287,41 @@ export default {
Money: money, Money: money,
laRemark: "实际领款金额 * (实际领款汇率 - 出团汇率)", laRemark: "实际领款金额 * (实际领款汇率 - 出团汇率)",
}; };
let fullPath = `/ChoiceAddFinancialDocuments?Type=${0}&companyID=${userinfo.RB_Branch_id}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`; let fullPath =
`/ChoiceAddFinancialDocuments?Type=${0}&companyID=${userinfo.RB_Branch_id}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`;
let dom = document.querySelector("#blankLink"); let dom = document.querySelector("#blankLink");
dom.href = `http://${window.location.host}/#${fullPath}`; dom.href = `http://${window.location.host}/#${fullPath}`;
dom.click(); dom.click();
} }
}, },
// 保存报账金额 // 保存报账金额
saveBZPrice: function (){ saveBZPrice: function () {
let HotelPrice = this.BaoZhangPrice.HotelPrice ? parseFloat(this.BaoZhangPrice.HotelPrice) : 0 let HotelPrice = this.BaoZhangPrice.HotelPrice ? parseFloat(this.BaoZhangPrice.HotelPrice) : 0
let BusPrice = this.BaoZhangPrice.BusPrice ? parseFloat(this.BaoZhangPrice.BusPrice) : 0 let BusPrice = this.BaoZhangPrice.BusPrice ? parseFloat(this.BaoZhangPrice.BusPrice) : 0
let DiningPrice = this.BaoZhangPrice.DiningPrice ? parseFloat(this.BaoZhangPrice.DiningPrice) : 0 let DiningPrice = this.BaoZhangPrice.DiningPrice ? parseFloat(this.BaoZhangPrice.DiningPrice) : 0
let ScenicPrice = this.BaoZhangPrice.ScenicPrice ? parseFloat(this.BaoZhangPrice.ScenicPrice) : 0 let ScenicPrice = this.BaoZhangPrice.ScenicPrice ? parseFloat(this.BaoZhangPrice.ScenicPrice) : 0
let msg = [ let msg = [{
{TCIDs: this.msg.TCIDs, UserType: 1, TotalPrice: HotelPrice}, TCIDs: this.msg.TCIDs,
{TCIDs: this.msg.TCIDs, UserType: 2, TotalPrice: DiningPrice}, UserType: 1,
{TCIDs: this.msg.TCIDs, UserType: 3, TotalPrice: ScenicPrice}, TotalPrice: HotelPrice
{TCIDs: this.msg.TCIDs, UserType: 4, TotalPrice: BusPrice}, },
{
TCIDs: this.msg.TCIDs,
UserType: 2,
TotalPrice: DiningPrice
},
{
TCIDs: this.msg.TCIDs,
UserType: 3,
TotalPrice: ScenicPrice
},
{
TCIDs: this.msg.TCIDs,
UserType: 4,
TotalPrice: BusPrice
},
] ]
this.apipost('dmcstatistics_get_SetLeaderReimburseLessList', msg, res=>{ this.apipost('dmcstatistics_get_SetLeaderReimburseLessList', msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success('操作成功') this.$message.success('操作成功')
} else { } else {
...@@ -1157,9 +1329,10 @@ export default { ...@@ -1157,9 +1329,10 @@ export default {
} }
}, null) }, null)
}, },
getAllBZPrice: function (){ getAllBZPrice: function () {
let allPrice = this.TotalPriceData[0].ExpendTotalPrice let allPrice = this.TotalPriceData[0].ExpendTotalPrice
let endPrice = allPrice - this.totalScenicPrice - this.totalTrafficPrice - this.totalDinnerPrice - this.totalHotelPrice let endPrice = allPrice - this.totalScenicPrice - this.totalTrafficPrice - this.totalDinnerPrice - this
.totalHotelPrice
let HotelPrice = this.BaoZhangPrice.HotelPrice ? parseFloat(this.BaoZhangPrice.HotelPrice) : 0 let HotelPrice = this.BaoZhangPrice.HotelPrice ? parseFloat(this.BaoZhangPrice.HotelPrice) : 0
let BusPrice = this.BaoZhangPrice.BusPrice ? parseFloat(this.BaoZhangPrice.BusPrice) : 0 let BusPrice = this.BaoZhangPrice.BusPrice ? parseFloat(this.BaoZhangPrice.BusPrice) : 0
let DiningPrice = this.BaoZhangPrice.DiningPrice ? parseFloat(this.BaoZhangPrice.DiningPrice) : 0 let DiningPrice = this.BaoZhangPrice.DiningPrice ? parseFloat(this.BaoZhangPrice.DiningPrice) : 0
...@@ -1167,14 +1340,17 @@ export default { ...@@ -1167,14 +1340,17 @@ export default {
let newPrice = endPrice + HotelPrice + BusPrice + DiningPrice + ScenicPrice let newPrice = endPrice + HotelPrice + BusPrice + DiningPrice + ScenicPrice
this.AllBZPrice = newPrice this.AllBZPrice = newPrice
}, },
getBaoZhangPrice: function (){ getBaoZhangPrice: function () {
this.apipost('dmcstatistics_get_GetLeaderReimburseLessList', this.msg, res=>{ this.apipost('dmcstatistics_get_GetLeaderReimburseLessList', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let BaoZhangPrice = res.data.data let BaoZhangPrice = res.data.data
BaoZhangPrice.HotelPrice = BaoZhangPrice.HotelPrice > 0 ? BaoZhangPrice.HotelPrice : this.totalHotelPrice BaoZhangPrice.HotelPrice = BaoZhangPrice.HotelPrice > 0 ? BaoZhangPrice.HotelPrice : this
.totalHotelPrice
BaoZhangPrice.BusPrice = BaoZhangPrice.BusPrice > 0 ? BaoZhangPrice.BusPrice : this.totalTrafficPrice BaoZhangPrice.BusPrice = BaoZhangPrice.BusPrice > 0 ? BaoZhangPrice.BusPrice : this.totalTrafficPrice
BaoZhangPrice.DiningPrice = BaoZhangPrice.DiningPrice > 0 ? BaoZhangPrice.DiningPrice : this.totalDinnerPrice BaoZhangPrice.DiningPrice = BaoZhangPrice.DiningPrice > 0 ? BaoZhangPrice.DiningPrice : this
BaoZhangPrice. ScenicPrice = BaoZhangPrice. ScenicPrice > 0 ? BaoZhangPrice. ScenicPrice : this.totalScenicPrice .totalDinnerPrice
BaoZhangPrice.ScenicPrice = BaoZhangPrice.ScenicPrice > 0 ? BaoZhangPrice.ScenicPrice : this
.totalScenicPrice
this.BaoZhangPrice = BaoZhangPrice this.BaoZhangPrice = BaoZhangPrice
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
...@@ -1201,17 +1377,17 @@ export default { ...@@ -1201,17 +1377,17 @@ export default {
let obj = this.lingjiandiObj let obj = this.lingjiandiObj
let inputPrice = obj.price ? parseFloat(obj.price) : 0 let inputPrice = obj.price ? parseFloat(obj.price) : 0
let userinfo = this.getLocalStorage() let userinfo = this.getLocalStorage()
if(inputPrice<=0){ if (inputPrice <= 0) {
this.$message.error('请输入制单金额') this.$message.error('请输入制单金额')
return return
} }
let list = this.listCost let list = this.listCost
let allPrice = 0; let allPrice = 0;
let yizhiPrice = list[0].TotalPrice; let yizhiPrice = list[0].TotalPrice;
for(let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
allPrice = list[i].UnitPrice * list[i].PeopleNum allPrice = list[i].UnitPrice * list[i].PeopleNum
} }
if (allPrice < inputPrice + yizhiPrice){ if (allPrice < inputPrice + yizhiPrice) {
this.$message.error('金额有误') this.$message.error('金额有误')
return return
} }
...@@ -1243,12 +1419,14 @@ export default { ...@@ -1243,12 +1419,14 @@ export default {
TCID: obj.TCIDs, TCID: obj.TCIDs,
IsRelevanceTravel: IsRelevanceTravel, IsRelevanceTravel: IsRelevanceTravel,
OrderID: 0, OrderID: 0,
vorcherInos: [{FrIdStr:''}], vorcherInos: [{
FrIdStr: ''
}],
Description: "", Description: "",
OrderSource: OrderSource, OrderSource: OrderSource,
} }
this.dialogFormVisibleLoding = true this.dialogFormVisibleLoding = true
this.apipost('Financial_post_SetFinanceInfoCommonForOut', msg, res=>{ this.apipost('Financial_post_SetFinanceInfoCommonForOut', msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
obj.FrId.push(res.data.data) obj.FrId.push(res.data.data)
this.listCost[this.dialogFormVisibleIndex] = obj this.listCost[this.dialogFormVisibleIndex] = obj
...@@ -1261,8 +1439,8 @@ export default { ...@@ -1261,8 +1439,8 @@ export default {
this.dialogFormVisible = false this.dialogFormVisible = false
}, null) }, null)
}, },
goZhiDan: function(obj) { goZhiDan: function (obj) {
let id = [59,63,78]; let id = [59, 63, 78];
let TCIDARR = [obj.TCIDS]; let TCIDARR = [obj.TCIDS];
let orderObj = { let orderObj = {
OrderID: 0, OrderID: 0,
...@@ -1274,12 +1452,13 @@ export default { ...@@ -1274,12 +1452,13 @@ export default {
Money: obj.LeaderGetPriceT, Money: obj.LeaderGetPriceT,
TCNUMS: obj.TCNUMS TCNUMS: obj.TCNUMS
}; };
let fullPath = `/ChoiceAddFinancialDocuments?Type=${2}&templateID=${JSON.stringify(id)}&companyID=${obj.OutBranchId}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`; let fullPath =
`/ChoiceAddFinancialDocuments?Type=${2}&templateID=${JSON.stringify(id)}&companyID=${obj.OutBranchId}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`;
let dom = document.querySelector("#blankLink"); let dom = document.querySelector("#blankLink");
dom.href = `http://${window.location.host}/#${fullPath}`; dom.href = `http://${window.location.host}/#${fullPath}`;
dom.click(); dom.click();
}, },
goFncUrl: function(path, id) { goFncUrl: function (path, id) {
// this.$router.push({ name: path, query: { id: id, blank: "y" } }); // this.$router.push({ name: path, query: { id: id, blank: "y" } });
let fullPath = `/${path}?id=${id}&blank=y&tab=`; let fullPath = `/${path}?id=${id}&blank=y&tab=`;
let dom = document.querySelector("#blankLink"); let dom = document.querySelector("#blankLink");
...@@ -1289,13 +1468,14 @@ export default { ...@@ -1289,13 +1468,14 @@ export default {
getNavT() { getNavT() {
let _this = this let _this = this
this.apipost( this.apipost(
"dmcstatistics_post_GetNewHotelStaticsByTCIDs_V4", "dmcstatistics_post_GetNewHotelStaticsByTCIDs_V4", {
{ TCIDs: this.$route.query.id }, TCIDs: this.$route.query.id
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let TotalNav = res.data.data.list; let TotalNav = res.data.data.list;
let listCost = res.data.data.listCost; let listCost = res.data.data.listCost;
listCost.forEach(x=>{ listCost.forEach(x => {
x.price = 0 x.price = 0
}) })
TotalNav.forEach(x => { TotalNav.forEach(x => {
...@@ -1354,8 +1534,7 @@ export default { ...@@ -1354,8 +1534,7 @@ export default {
//获取顶部数据 //获取顶部数据
getNav() { getNav() {
this.apipost( this.apipost(
"dmcstatistics_post_GetNewStaticsByTCIDs", "dmcstatistics_post_GetNewStaticsByTCIDs", {
{
TCIDs: this.$route.query.id TCIDs: this.$route.query.id
}, },
res => { res => {
...@@ -1371,10 +1550,9 @@ export default { ...@@ -1371,10 +1550,9 @@ export default {
); );
}, },
// 获取总金额 // 获取总金额
getTotalPrice: function() { getTotalPrice: function () {
this.apipost( this.apipost(
"dmcstatistics_post_GetNewTotalPrice", "dmcstatistics_post_GetNewTotalPrice", {
{
TCIDs: this.$route.query.id TCIDs: this.$route.query.id
}, },
res => { res => {
...@@ -1403,8 +1581,7 @@ export default { ...@@ -1403,8 +1581,7 @@ export default {
//获取总额 //获取总额
getTotalMoney() { getTotalMoney() {
this.apipost( this.apipost(
"dmcstatistics_post_GetTotalPrice", "dmcstatistics_post_GetTotalPrice", {
{
TCIDs: this.$route.query.id TCIDs: this.$route.query.id
}, },
res => { res => {
...@@ -1468,33 +1645,33 @@ export default { ...@@ -1468,33 +1645,33 @@ export default {
//返回arr数组过滤后的结果,结果为一个数组 过滤条件是,如果res中没有某个键,就设置这个键的值为1 //返回arr数组过滤后的结果,结果为一个数组 过滤条件是,如果res中没有某个键,就设置这个键的值为1
return arr.filter((arr) => !res.has(arr[name]) && res.set(arr[name], 1)) return arr.filter((arr) => !res.has(arr[name]) && res.set(arr[name], 1))
}, },
getnewList(){ getnewList() {
this.loading = true; this.loading = true;
// dmcstatistics_post_GetNewPlanTotalPrice_V2 // dmcstatistics_post_GetNewPlanTotalPrice_V2
this.apipost('dmcstatistics_post_GetNewLeaderPayStatics_V1', this.msg, res => { this.apipost('dmcstatistics_post_GetNewLeaderPayStatics_V1', this.msg, res => {
this.loading = false; this.loading = false;
console.log("1131232",res); console.log("1131232", res);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.list = res.data.data; this.list = res.data.data;
// 预计金额 // 预计金额
this.planPriceList=this.list.planPriceList; this.planPriceList = this.list.planPriceList;
// 车 // 车
let busList = res.data.data.BusList let busList = res.data.data.BusList
var busmap = {}, var busmap = {},
busdest = []; busdest = [];
for(var i = 0; i < busList.length; i++){ for (var i = 0; i < busList.length; i++) {
var ai = busList[i]; var ai = busList[i];
if(!busmap[ai.PlanDateStr]){ if (!busmap[ai.PlanDateStr]) {
busdest.push({ busdest.push({
PlanDateStr: ai.PlanDateStr, PlanDateStr: ai.PlanDateStr,
data: [ai] data: [ai]
}); });
busmap[ai.PlanDateStr] = ai; busmap[ai.PlanDateStr] = ai;
}else{ } else {
for(var j = 0; j < busdest.length; j++){ for (var j = 0; j < busdest.length; j++) {
var dj = busdest[j]; var dj = busdest[j];
if(dj.PlanDateStr == ai.PlanDateStr){ if (dj.PlanDateStr == ai.PlanDateStr) {
dj.data.push(ai); dj.data.push(ai);
break; break;
} }
...@@ -1504,34 +1681,34 @@ export default { ...@@ -1504,34 +1681,34 @@ export default {
this.busDataList = busdest; this.busDataList = busdest;
// 餐 // 餐
let DiningList = [] let DiningList = []
for(let i = 0; i < res.data.data.DiningList.length; i++) { for (let i = 0; i < res.data.data.DiningList.length; i++) {
for(let o = 0; o < res.data.data.DiningList[i].DiningSummaryList.length; o++) { for (let o = 0; o < res.data.data.DiningList[i].DiningSummaryList.length; o++) {
DiningList.push(res.data.data.DiningList[i].DiningSummaryList[o]) DiningList.push(res.data.data.DiningList[i].DiningSummaryList[o])
} }
} }
var Diningmap = {}, var Diningmap = {},
Diningdest = []; Diningdest = [];
for(var i = 0; i < DiningList.length; i++){ for (var i = 0; i < DiningList.length; i++) {
var ai = DiningList[i]; var ai = DiningList[i];
if(!Diningmap[ai.UseTimeStr]){ if (!Diningmap[ai.UseTimeStr]) {
Diningdest.push({ Diningdest.push({
UseTimeStr: ai.UseTimeStr, UseTimeStr: ai.UseTimeStr,
DiningID: ai.DiningID, DiningID: ai.DiningID,
data: [ai] data: [ai]
}); });
Diningmap[ai.UseTimeStr] = ai; Diningmap[ai.UseTimeStr] = ai;
}else{ } else {
let list = [] let list = []
for(var j = 0; j < Diningdest.length; j++){ for (var j = 0; j < Diningdest.length; j++) {
var dj = Diningdest[j]; var dj = Diningdest[j];
if(dj.UseTimeStr == ai.UseTimeStr && dj.DiningID == ai.DiningID){ if (dj.UseTimeStr == ai.UseTimeStr && dj.DiningID == ai.DiningID) {
dj.data.push(ai); dj.data.push(ai);
break; break;
}else{ } else {
list.push(ai) list.push(ai)
} }
} }
for(let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
Diningdest.push({ Diningdest.push({
UseTimeStr: ai.UseTimeStr, UseTimeStr: ai.UseTimeStr,
DiningID: ai.DiningID, DiningID: ai.DiningID,
...@@ -1540,9 +1717,9 @@ export default { ...@@ -1540,9 +1717,9 @@ export default {
} }
} }
} }
for(var i = 0; i < Diningdest.length; i++){ for (var i = 0; i < Diningdest.length; i++) {
let row = 0; let row = 0;
for(var l = 0; l < Diningdest[i].data.length; l++){ for (var l = 0; l < Diningdest[i].data.length; l++) {
row = row + Diningdest[i].data[l].DiningPriceList.length row = row + Diningdest[i].data[l].DiningPriceList.length
} }
Diningdest[i].row = row Diningdest[i].row = row
...@@ -1551,35 +1728,35 @@ export default { ...@@ -1551,35 +1728,35 @@ export default {
// this.DiningDataList = Diningdest // this.DiningDataList = Diningdest
//票 //票
let ScenicList = [] let ScenicList = []
for(let i = 0; i < res.data.data.ScenicList.length; i++) { for (let i = 0; i < res.data.data.ScenicList.length; i++) {
for(let o = 0; o < res.data.data.ScenicList[i].ScenicStatisticsList.length; o++) { for (let o = 0; o < res.data.data.ScenicList[i].ScenicStatisticsList.length; o++) {
ScenicList.push(res.data.data.ScenicList[i].ScenicStatisticsList[o]) ScenicList.push(res.data.data.ScenicList[i].ScenicStatisticsList[o])
} }
} }
console.log(ScenicList) console.log(ScenicList)
var Scenicmap = {}, var Scenicmap = {},
Scenicdest = []; Scenicdest = [];
for(var i = 0; i < ScenicList.length; i++){ for (var i = 0; i < ScenicList.length; i++) {
var ai = ScenicList[i]; var ai = ScenicList[i];
if(!Scenicmap[ai.UseTimeStr]){ if (!Scenicmap[ai.UseTimeStr]) {
Scenicdest.push({ Scenicdest.push({
UseTimeStr: ai.UseTimeStr, UseTimeStr: ai.UseTimeStr,
TicketID: ai.TicketID, TicketID: ai.TicketID,
data: [ai] data: [ai]
}); });
Scenicmap[ai.UseTimeStr] = ai; Scenicmap[ai.UseTimeStr] = ai;
}else{ } else {
let list = [] let list = []
for(var j = 0; j < Scenicdest.length; j++){ for (var j = 0; j < Scenicdest.length; j++) {
var dj = Scenicdest[j]; var dj = Scenicdest[j];
if(dj.UseTimeStr == ai.UseTimeStr && dj.TicketID == ai.TicketID){ if (dj.UseTimeStr == ai.UseTimeStr && dj.TicketID == ai.TicketID) {
dj.data.push(ai); dj.data.push(ai);
break; break;
}else{ } else {
list.push(ai) list.push(ai)
} }
} }
for(let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
Scenicdest.push({ Scenicdest.push({
UseTimeStr: ai.UseTimeStr, UseTimeStr: ai.UseTimeStr,
TicketID: ai.TicketID, TicketID: ai.TicketID,
...@@ -1588,9 +1765,9 @@ export default { ...@@ -1588,9 +1765,9 @@ export default {
} }
} }
} }
for(var i = 0; i < Scenicdest.length; i++){ for (var i = 0; i < Scenicdest.length; i++) {
let row = 0; let row = 0;
for(var l = 0; l < Scenicdest[i].data.length; l++){ for (var l = 0; l < Scenicdest[i].data.length; l++) {
row = row + Scenicdest[i].data[l].TicketPriceList.length row = row + Scenicdest[i].data[l].TicketPriceList.length
} }
Scenicdest[i].row = row Scenicdest[i].row = row
...@@ -1599,35 +1776,35 @@ export default { ...@@ -1599,35 +1776,35 @@ export default {
// this.ScenicDataList = Scenicdest // this.ScenicDataList = Scenicdest
//酒 //酒
let HotelList = [] let HotelList = []
for(let i = 0; i < res.data.data.HotelOrderListReport.length; i++) { for (let i = 0; i < res.data.data.HotelOrderListReport.length; i++) {
for(let o = 0; o < res.data.data.HotelOrderListReport[i].HotelOrderList.length; o++) { for (let o = 0; o < res.data.data.HotelOrderListReport[i].HotelOrderList.length; o++) {
HotelList.push(res.data.data.HotelOrderListReport[i].HotelOrderList[o]) HotelList.push(res.data.data.HotelOrderListReport[i].HotelOrderList[o])
} }
} }
var Hotelmap = {}, var Hotelmap = {},
Hoteldest = []; Hoteldest = [];
for(var i = 0; i < HotelList.length; i++){ for (var i = 0; i < HotelList.length; i++) {
var ai = HotelList[i]; var ai = HotelList[i];
if(!Hotelmap[ai.CheckInDateStr]){ if (!Hotelmap[ai.CheckInDateStr]) {
Hoteldest.push({ Hoteldest.push({
CheckInDateStr: ai.CheckInDateStr, CheckInDateStr: ai.CheckInDateStr,
NewHotelId: ai.NewHotelId, NewHotelId: ai.NewHotelId,
data: [ai] data: [ai]
}); });
Hotelmap[ai.CheckInDateStr] = ai; Hotelmap[ai.CheckInDateStr] = ai;
}else{ } else {
for(var j = 0; j < Hoteldest.length; j++){ for (var j = 0; j < Hoteldest.length; j++) {
var dj = Hoteldest[j]; var dj = Hoteldest[j];
if(dj.CheckInDateStr == ai.CheckInDateStr && dj.NewHotelId == ai.NewHotelId){ if (dj.CheckInDateStr == ai.CheckInDateStr && dj.NewHotelId == ai.NewHotelId) {
dj.data.push(ai); dj.data.push(ai);
break; break;
} }
} }
} }
} }
for(var i = 0; i < Hoteldest.length; i++){ for (var i = 0; i < Hoteldest.length; i++) {
let row = 0; let row = 0;
for(var l = 0; l < Hoteldest[i].data.length; l++){ for (var l = 0; l < Hoteldest[i].data.length; l++) {
row = row + Hoteldest[i].data[l].OrderDetailsList.length row = row + Hoteldest[i].data[l].OrderDetailsList.length
} }
Hoteldest[i].row = row Hoteldest[i].row = row
...@@ -1685,7 +1862,7 @@ export default { ...@@ -1685,7 +1862,7 @@ export default {
}) })
return this.moneyFormat(totalPrice) return this.moneyFormat(totalPrice)
}, },
getzongJE(){ getzongJE() {
this.apipost('dmcstatistics_post_GetNewPlanTotalPrice', { this.apipost('dmcstatistics_post_GetNewPlanTotalPrice', {
TCIDs: this.msg.TCIDs TCIDs: this.msg.TCIDs
}, res => { }, res => {
...@@ -1716,5 +1893,6 @@ export default { ...@@ -1716,5 +1893,6 @@ export default {
this.getCurrencyList(); this.getCurrencyList();
this.getzhuijiaList() this.getzhuijiaList()
} }
}; };
</script> </script>
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