Commit a405187c authored by 黄奎's avatar 黄奎

领队报账详情页面修改

parent 8fcf67b0
...@@ -28,19 +28,19 @@ ...@@ -28,19 +28,19 @@
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" :rowspan="list.BusList.length+1">车辆使用</td> <th width="80" class="bgwhite" :rowspan="list.BusList.length+1">车辆使用</th>
<td width="100">使用时间</td> <th width="100">使用时间</th>
<td width="300">司机姓名</td> <th width="300">司机姓名</th>
<td width="100">司机电话</td> <th width="100">司机电话</th>
<td width="150">车配号</td> <th width="150">车配号</th>
<td width="150">车辆号</td> <th width="150">车辆号</th>
<td width="80">用车方式</td> <th width="80">用车方式</th>
<td width="150">实际信息</td> <th width="150">实际信息</th>
<td width="150">实际金额</td> <th width="150">实际金额</th>
<td width="150">预计金额</td> <th width="150">预计金额</th>
<td width="150">付款方式</td> <th width="150">付款方式</th>
<td width="300">备注</td> <th width="300">备注</th>
<td width="300">凭证</td> <th width="300">凭证</th>
</tr> </tr>
<tr v-for='(item,index) in list.BusList'> <tr v-for='(item,index) in list.BusList'>
<td>{{item.PlanDateStr}}</td> <td>{{item.PlanDateStr}}</td>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<td> <td>
{{busTotalPrice(item.ReimburseList.ReimburseDetailsList)}} {{busTotalPrice(item.ReimburseList.ReimburseDetailsList)}}
</td> </td>
<!-- 添加实际金额和付款方式--> <!--添加实际金额和付款方式-->
<td class="jdtd" valign="middle"> <td class="jdtd" valign="middle">
{{item.CostPrice*(Number(item.TransferNum)+1)+item.HighSpeedPrice}} {{item.CostPrice*(Number(item.TransferNum)+1)+item.HighSpeedPrice}}
</td> </td>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</td> </td>
<td> <td>
<div class="uploadListDiv ownScrollbarStyle"> <div class="uploadListDiv ownScrollbarStyle">
<p v-for="(img,index) in item.VoucherPicList" @click="analyzeItem(item.VoucherPicList,index)"> <p v-for="(img,imgIndex) in item.VoucherPicList" @click="analyzeItem(item.VoucherPicList,imgIndex)">
{{img.FileName}} {{img.FileName}}
</p> </p>
</div> </div>
...@@ -86,231 +86,244 @@ ...@@ -86,231 +86,244 @@
</table> </table>
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" rowspan="50">酒店使用</td> <th width="80" class="bgwhite" colspan="10">酒店使用</th>
<td width="100">使用时间</td> </tr>
<td width="300">酒店名称</td> <tr class="title">
<td width="100">占床/不占床</td> <th width="100">使用时间</th>
<td width="150">房间类型/数量</td> <th width="300">酒店名称</th>
<td width="150">实际信息</td> <th width="100">占床/不占床</th>
<td width="80">实际金额</td> <th width="150">房间类型/数量</th>
<td width="80">预计金额</td> <th width="150">实际信息</th>
<td width="80">付款方式</td> <th width="80">实际金额</th>
<td width="300">备注</td> <th width="80">预计金额</th>
<td>凭证</td> <th width="80">付款方式</th>
<th width="300">备注</th>
<th>凭证</th>
</tr> </tr>
<template v-for="(outItem,outIndex) in list.HotelOrderListReport"> <template v-for="(outItem,outIndex) in list.HotelOrderListReport">
<tr class="HotelTr" v-for='(item,index) in outItem.HotelOrderList'> <template v-for='(subItem,subIndex) in outItem.HotelOrderList'>
<td>{{item.CheckInDateStr}}</td> <template v-for="(childItem,childIndex) in subItem.HouseStatistics.HouseTypeList"
<td> v-if="childItem.HouseTypeCount>0">
<div class="itemName">{{item.HotelName}}</div> <tr v-if="subItem.RowSpan>1">
</td> <td v-if="childIndex==0" :rowspan="subItem.RowSpan">{{subItem.CheckInDateStr}}</td>
<td> <td v-if="childIndex==0" :rowspan="subItem.RowSpan">
{{item.HouseStatistics.NeedBed}}/{{item.HouseStatistics.NoNeedBed}} {{subItem.HotelName}}
</td> </td>
<td> <td v-if="childIndex==0" :rowspan="subItem.RowSpan">
<div class="alcenter"> {{subItem.HouseStatistics.NeedBed}}/{{subItem.HouseStatistics.NoNeedBed}}
<p v-for="x in item.HouseStatistics.HouseTypeList" v-if="x.HouseTypeCount!==0"> </td>
{{x.HouseTypeName}}{{x.HouseTypeCount}} <td >
</p> {{childItem.HouseTypeName}}{{childItem.HouseTypeCount}}
</div> </td>
</td> <td v-if="childIndex==0" :rowspan="subItem.RowSpan">
<td> <template v-for="(sonItem,sonIndex) in subItem.ReimburseList.ReimburseDetailsList">
<template v-for="(sonItem,sonIndex) in item.ReimburseList.ReimburseDetailsList"> <template v-if="sonItem.ID!==0 && childIndex==sonIndex">
<div v-if="sonItem.ID!==0"> {{sonItem.UserTypeStr}}{{sonItem.UserNum}}*{{sonItem.UnitPrice}}
{{sonItem.UserTypeStr}}{{sonItem.UserNum}}*{{sonItem.UnitPrice}} </template>
</div> </template>
</template> </td>
</td> <td v-if="childIndex==0" :rowspan="subItem.RowSpan">
{{hotelTotalPrice(subItem.OrderDetailsList)}}
<td> </td>
<div v-for="subItem in outItem.HotelOrderList"> <td class="jdtd" valign="middle" v-if="childIndex==0" :rowspan="subItem.RowSpan">
{{hotelTotalPrice(subItem.OrderDetailsList)}} {{HotelPrice(subItem)}}
</div> </td>
</td> <td class="jdtd" valign="middle" v-if="childIndex==0" :rowspan="subItem.RowSpan">
{{subItem.PayType !=null && subItem.PayType !='' ? (subItem.PayType== 1? '现付' :(subItem.PayType ==2 ? '签单' :(subItem.PayType == 4 ? '预付' :(subItem.PayType ==5 ?'实物抵扣' :'')))):''}}
<td class="jdtd" valign="middle"> </td>
{{HotelPrice(item)}} <td class="jdtd" valign="middle" v-if="childIndex==0" :rowspan="subItem.RowSpan" >
</td> {{subItem.ReimburseList.Remarks}}
<td class="jdtd" valign="middle"> </td>
{{item.PayType !=null && item.PayType !='' ? (item.PayType== 1? '现付' :(item.PayType ==2 ? '签单' :(item.PayType == 4 ? '预付' :(item.item.PayType ==5 ?'实物抵扣' :'')))):''}} <td v-if="childIndex==0" :rowspan="subItem.RowSpan">
<div class="uploadListDiv ownScrollbarStyle" style="overflow-y: auto;">
</td> <p v-for="(img,index) in subItem.ReimburseList.VoucherPicList"
@click="analyzeItem(subItem.VoucherPicList,index)">
<td class="jdtd" valign="middle"> {{img.FileName}}
{{item.ReimburseList.Remarks}} </p>
</td> </div>
<td> </td>
<div class="uploadListDiv ownScrollbarStyle" style="overflow-y: auto;"> </tr>
<p v-for="(img,index) in item.ReimburseList.VoucherPicList" @click="analyzeItem(item.VoucherPicList,index)"> <tr v-else>
{{img.FileName}} <td>{{subItem.CheckInDateStr}}</td>
</p> <td>
</div> {{subItem.HotelName}}
</td> </td>
</tr> <td>
{{subItem.HouseStatistics.NeedBed}}/{{subItem.HouseStatistics.NoNeedBed}}
</td>
<td>
{{childItem.HouseTypeName}}:{{childItem.HouseTypeCount}}
</td>
<td>
<template v-for="(sonItem,sonIndex) in subItem.ReimburseList.ReimburseDetailsList">
<template v-if="sonItem.ID!==0 && childIndex==sonIndex">
{{sonItem.UserTypeStr}}{{sonItem.UserNum}}*{{sonItem.UnitPrice}}
</template>
</template>
</td>
<td>
{{hotelTotalPrice(subItem.OrderDetailsList)}}
</td>
<td class="jdtd" valign="middle">
{{HotelPrice(subItem)}}
</td>
<td class="jdtd" valign="middle">
{{subItem.PayType !=null && subItem.PayType !='' ? (subItem.PayType== 1? '现付' :(subItem.PayType ==2 ? '签单' :(subItem.PayType == 4 ? '预付' :(subItem.PayType ==5 ?'实物抵扣' :'')))):''}}
</td>
<td class="jdtd" valign="middle">
{{subItem.ReimburseList.Remarks}}
</td>
<td>
<div class="uploadListDiv ownScrollbarStyle" style="overflow-y: auto;">
<p v-for="(img,index) in subItem.ReimburseList.VoucherPicList"
@click="analyzeItem(subItem.VoucherPicList,index)">
{{img.FileName}}
</p>
</div>
</td>
</tr>
</template>
</template>
</template> </template>
</table> </table>
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr>
<th colspan="10" class="bgwhite">餐食使用</th>
</tr>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" :rowspan="list.DiningList.length+1">餐食使用</td> <th width="100">使用时间</th>
<td width="100">使用时间</td> <th width="300">餐厅名称</th>
<td width="300">餐厅名称</td> <th width="100">类别</th>
<td width="100">类别</td> <th width="150">用餐人数</th>
<td width="150">用餐人数</td> <th width="150">实际信息</th>
<td width="150">实际信息</td> <th width="80">实际金额</th>
<td width="80">实际金额</td> <th width="80">预计金额</th>
<td width="80">预计金额</td> <th width="80">付款方式</th>
<td width="80">付款方式</td> <th width="300">备注</th>
<td width="300">备注</td> <th>凭证</th>
<td>凭证</td>
</tr> </tr>
<template v-for='(item,index) in list.DiningList'> <template v-for='(item,index) in list.DiningList'>
<tr class="splitP ScenicTr" v-for='(titem,tindex) in item.DiningSummaryList'> <template v-for='(subItem,subIndex) in item.DiningSummaryList'>
<td>{{titem.UseTimeStr}}</td> <tr class="splitP ScenicTr" v-for='(childItem,childIndex) in subItem.DiningPriceList'>
<td> <td v-if="childIndex==0" :rowspan="3">
<div class="itemName" v-for="subItem in item.DiningSummaryList"> {{item.UseTimeStr}}
</td>
<td v-if="childIndex==0" :rowspan="3">
{{subItem.DiningName}} {{subItem.DiningName}}
</div> </td>
</td> <td v-if="childIndex==0" :rowspan="3">
<td>
<p v-for="subItem in item.DiningSummaryList">
{{subItem.UseDinnerTypeStr}} {{subItem.UseDinnerTypeStr}}
</p> </td>
</td> <td>
<td valign="top"> {{peopleStrToWord(childItem.PeopleType)}}:{{childItem.PeopleNum}}
<div v-for="subItem in item.DiningSummaryList"> </td>
<p v-for="childItem in subItem.DiningPriceList"> <td v-if="childIndex==0" :rowspan="3">
{{peopleStrToWord(childItem.PeopleType)}}:{{childItem.PeopleNum}} <template v-if="subItem.ReimburseList.ReimburseDetailsList[0].ID!==0">
</p> {{subItem.ReimburseList.ReimburseDetailsList[0].UserTypeStr}}{{subItem.ReimburseList.ReimburseDetailsList[0].UserNum}}*{{subItem.ReimburseList.ReimburseDetailsList[0].UnitPrice}}
</div> </template>
</td> </td>
<td> <td v-if="childIndex==0" :rowspan="3">
<template v-for="(ssItem,ssIndex) in titem.ReimburseList.ReimburseDetailsList">
<div v-if="ssItem.ID!==0" class="itemName">
{{ssItem.UserTypeStr}}{{ssItem.UserNum}}*{{ssItem.UnitPrice}}
</div>
</template>
</td>
<td>
<div v-for="subItem in item.DiningSummaryList">
{{diningTotalPrice(subItem.ReimburseList.ReimburseDetailsList)}} {{diningTotalPrice(subItem.ReimburseList.ReimburseDetailsList)}}
</div> </td>
</td> <td class="jdtd" valign="middle" v-if="childIndex==0" :rowspan="3">
<td class="jdtd" valign="middle"> {{calculationPrice(subItem)}}
<div v-for="subItem in item.DiningSummaryList"> </td>
{{calculationPrice(subItem)}} <td class="jdtd" valign="middle" v-if="childIndex==0" :rowspan="3">
</div> {{item.PayType !=null && item.PayType !='' ? (item.PayType== 1? '现付' :(item.PayType ==2 ? '签单' :(item.PayType == 4 ? '预付' :(item.PayType ==5 ?'实物抵扣' :'')))):''}}
</td> </td>
<td class="jdtd" valign="middle"> <td class="jdtd" valign="middle" v-if="childIndex==0" :rowspan="3">
{{item.PayType !=null && item.PayType !='' ? (item.PayType== 1? '现付' :(item.PayType ==2 ? '签单' :(item.PayType == 4 ? '预付' :(item.item.PayType ==5 ?'实物抵扣' :'')))):''}} {{subItem.Remarks}}
</td>
</td> <td v-if="childIndex==0" :rowspan="3">
<td class="jdtd" valign="middle"> <div class="uploadListDiv ownScrollbarStyle" style="overflow-y: auto;">
{{titem.Remarks}} <p v-for="(img,imgIndex) in subItem.ReimburseList.VoucherPicList"
</td> @click="analyzeItem(subItem.VoucherPicList,imgIndex)">
<td> {{img.FileName}}
<div class="uploadListDiv ownScrollbarStyle" style="overflow-y: auto;"> </p>
<p v-for="(img,index) in titem.ReimburseList.VoucherPicList" @click="analyzeItem(titem.VoucherPicList,index)"> </div>
{{img.FileName}} </td>
</p> </tr>
</div> </template>
</td>
</tr>
</template> </template>
</tbody> </tbody>
</table> </table>
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr>
<th colspan="10" class="bgwhite">门票使用</th>
</tr>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" :rowspan="list.ScenicList.length+1">门票使用</td> <th width="100">使用时间</th>
<td width="100">使用时间</td> <th width="300">景点名称</th>
<td width="300">景点名称</td> <th width="100">总人数</th>
<td width="100">总人数</td> <th width="150">门票类别</th>
<td width="150">门票类别</td> <th width="150">实际信息</th>
<td width="150">实际信息</td> <th width="80">实际金额</th>
<td width="80">实际金额</td> <th width="80">预计金额</th>
<td width="80">预计金额</td> <th width="80">付款方式</th>
<td width="80">付款方式</td> <th width="300">备注</th>
<td width="300">备注</td> <th>凭证</th>
<td>凭证</td>
</tr> </tr>
<template v-for='(item,index) in list.ScenicList'> <template v-for='(item,index) in list.ScenicList'>
<tr class="splitP ScenicTr"> <template v-for="(subItem,subIndex) in item.ScenicStatisticsList">
<td>{{item.UseTimeStr}}</td> <tr class="splitP ScenicTr" v-for="(childItem,childIndex) in subItem.TicketPriceList">
<td> <td v-if="childIndex==0&&subIndex==0" :rowspan="3*item.ScenicStatisticsList.length">{{item.UseTimeStr}}
<div class="itemName" v-for="subItem in item.ScenicStatisticsList"> </td>
<td v-if="childIndex==0" :rowspan="3">
{{subItem.ScenicName}} {{subItem.ScenicName}}
</div> </td>
</td> <td v-if="childIndex==0" :rowspan="3">
<td>
<div v-for="subItem in item.ScenicStatisticsList">
{{subItem.UseAccount}} {{subItem.UseAccount}}
</div> </td>
</td> <td>
<td> {{peopleStrToWord(childItem.PeopleType)}}:{{childItem.PeopleNum}}
<div v-for="subItem in item.ScenicStatisticsList"> </td>
<p v-for="o in subItem.TicketPriceList"> <td v-if="childIndex==0" :rowspan="3">
{{peopleStrToWord(o.PeopleType)}}:{{o.PeopleNum}} {{subItem.ReimburseList.ReimburseDetailsList[0].UserTypeStr}}{{subItem.ReimburseList.ReimburseDetailsList[0].UserNum}}*{{subItem.ReimburseList.ReimburseDetailsList[0].UnitPrice}}
</p> </td>
</div> <td v-if="childIndex==0" :rowspan="3">
</td>
<td>
<template v-for='(sitem,sindex) in item.ScenicStatisticsList'>
<template v-for="(ssItem,ssIndex) in sitem.ReimburseList.ReimburseDetailsList">
<div :style="{height:60/sitem.ReimburseList.ReimburseDetailsList.length+'px',lineHeight:60/sitem.ReimburseList.ReimburseDetailsList.length+'px'}">
{{ssItem.UserTypeStr}}{{ssItem.UserNum}}*{{ssItem.UnitPrice}}
</div>
</template>
</template>
</td>
<td>
<div v-for="subItem in item.ScenicStatisticsList">
{{diningTotalPrice(subItem.ReimburseList.ReimburseDetailsList)}} {{diningTotalPrice(subItem.ReimburseList.ReimburseDetailsList)}}
</div> </td v-if="childIndex==0" :rowspan="3">
</td> <td v-if="childIndex==0" :rowspan="3">
<td class="jdtd" valign="middle">
<div v-for="subItem in item.ScenicStatisticsList">
{{ScenicspotPrice(subItem)}} {{ScenicspotPrice(subItem)}}
</div> </td v-if="childIndex==0" :rowspan="3">
</td> <td v-if="childIndex==0" :rowspan="3">
<td class="jdtd" valign="middle"> {{item.PayType !=null && item.PayType !='' ? (item.PayType== 1? '现付' :(item.PayType ==2 ? '签单' :(item.PayType == 4 ? '预付' :(item.item.PayType ==5 ?'实物抵扣' :'')))):''}}
{{item.PayType !=null && item.PayType !='' ? (item.PayType== 1? '现付' :(item.PayType ==2 ? '签单' :(item.PayType == 4 ? '预付' :(item.item.PayType ==5 ?'实物抵扣' :'')))):''}} </td>
</td> <td v-if="childIndex==0" :rowspan="3">
<td> {{subItem.Remarks}}
<template v-for='(sitem,sindex) in item.ScenicStatisticsList'> </td>
{{sitem.Remarks}} <td v-if="childIndex==0" :rowspan="3">
</template> <div class="uploadListDiv ownScrollbarStyle" style="overflow-y: auto;">
</td> <p v-for="(img,imgIndex) in subItem.ReimburseList.VoucherPicList"
<td> @click="analyzeItem(subItem.VoucherPicList,imgIndex)">
<div class="uploadListDiv ownScrollbarStyle" style="overflow-y: auto;">
<template v-for='(sitem,sindex) in item.ScenicStatisticsList'>
<p v-for="(img,index) in sitem.ReimburseList.VoucherPicList" @click="analyzeItem(sitem.VoucherPicList,index)">
{{img.FileName}} {{img.FileName}}
</p> </p>
</template> </div>
</div> </td>
</td> </tr>
</tr> </template>
</template> </template>
</tbody> </tbody>
</table> </table>
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" :rowspan="list.OtherOrderInfo.OtherList.length+1">其他费用</td> <th width="80" class="bgwhite" :rowspan="list.OtherOrderInfo.OtherList.length+1">其他费用</th>
<td width="100">使用时间</td> <th width="100">使用时间</th>
<td width="300">费用项目</td> <th width="300">费用项目</th>
<td width="100">总人数</td> <th width="100">总人数</th>
<td width="150">单价</td> <th width="150">单价</th>
<td width="150">金额小计</td> <th width="150">金额小计</th>
<td width="80">返佣</td> <th width="80">返佣</th>
<td width="300">总金额</td> <th width="300">总金额</th>
<td>备注</td> <th>备注</th>
</tr> </tr>
<tr v-for='(item,index) in list.OtherOrderInfo.OtherList'> <tr v-for='(item,index) in list.OtherOrderInfo.OtherList'>
<td> <td>
{{item.UseDateStr}} {{item.UseDateStr}}
</td> </td>
<td> <td>
{{getCostProjectStr(item.CostProject)}} {{getCostProjectStr(item.CostProject)}}
...@@ -339,11 +352,11 @@ ...@@ -339,11 +352,11 @@
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" rowspan="2">小费收入</td> <th width="80" class="bgwhite" rowspan="2">小费收入</th>
<td width="100">人数</td> <th width="100">人数</th>
<td width="300">单价</td> <th width="300">单价</th>
<td width="100">总金额</td> <th width="100">总金额</th>
<td>备注</td> <th>备注</th>
</tr> </tr>
<tr v-for='(item,index) in list.OtherOrderInfo.TipList'> <tr v-for='(item,index) in list.OtherOrderInfo.TipList'>
<td> <td>
...@@ -362,9 +375,9 @@ ...@@ -362,9 +375,9 @@
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" rowspan="2">团费小计</td> <th width="80" class="bgwhite" rowspan="2">团费小计</th>
<td width="100">金额</td> <th width="100">金额</th>
<td>备注</td> <th>备注</th>
</tr> </tr>
<tr v-for='(item,index) in list.OtherOrderInfo.TeamList'> <tr v-for='(item,index) in list.OtherOrderInfo.TeamList'>
<td> <td>
...@@ -379,13 +392,13 @@ ...@@ -379,13 +392,13 @@
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" :rowspan="list.OtherOrderInfo.SelfPlayingIncomeList.length+1">自费收入</td> <th width="80" class="bgwhite" :rowspan="list.OtherOrderInfo.SelfPlayingIncomeList.length+1">自费收入</th>
<td width="100">使用时间</td> <th width="100">使用时间</th>
<td width="300">人数</td> <th width="300">人数</th>
<td width="100">单价</td> <th width="100">单价</th>
<td width="150">金额小计</td> <th width="150">金额小计</th>
<td width="150">总金额</td> <th width="150">总金额</th>
<td>备注</td> <th>备注</th>
</tr> </tr>
<tr v-for='(item,index) in list.OtherOrderInfo.SelfPlayingIncomeList'> <tr v-for='(item,index) in list.OtherOrderInfo.SelfPlayingIncomeList'>
<td> <td>
...@@ -410,14 +423,14 @@ ...@@ -410,14 +423,14 @@
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tbody> <tbody>
<tr class="title"> <tr class="title">
<td width="80" class="bgwhite" :rowspan="list.OtherOrderInfo.SelfPlayingExpendList.length+1">自费支出</td> <th width="80" class="bgwhite" :rowspan="list.OtherOrderInfo.SelfPlayingExpendList.length+1">自费支出</th>
<td width="100">使用时间</td> <th width="100">使用时间</th>
<td width="300">人数</td> <th width="300">人数</th>
<td width="100">单价</td> <th width="100">单价</th>
<td width="150">金额小计</td> <th width="150">金额小计</th>
<td width="150">返佣</td> <th width="150">返佣</th>
<td width="80">总金额</td> <th width="80">总金额</th>
<td>备注</td> <th>备注</th>
</tr> </tr>
<tr v-for='(item,index) in list.OtherOrderInfo.SelfPlayingExpendList'> <tr v-for='(item,index) in list.OtherOrderInfo.SelfPlayingExpendList'>
<td> <td>
...@@ -443,7 +456,7 @@ ...@@ -443,7 +456,7 @@
</tbody> </tbody>
</table> </table>
<el-input type="textarea" v-model="UploadMsg.Remarks" rows="6" placeholder="请输入备注信息"></el-input> <el-input type="textarea" v-model="UploadMsg.Remarks" rows="6" placeholder="请输入备注信息"></el-input>
<br/> <br />
<p class="alcenter"> <p class="alcenter">
<input type="button" value="审核通过" class="normalBtn" @click="saveData(1)" /> <input type="button" value="审核通过" class="normalBtn" @click="saveData(1)" />
<input type="button" value="审核不通过" class="normalBtn" @click="saveData(2)" /> <input type="button" value="审核不通过" class="normalBtn" @click="saveData(2)" />
...@@ -481,23 +494,27 @@ ...@@ -481,23 +494,27 @@
TravelDayNum: 0, TravelDayNum: 0,
RealityNum: 0, RealityNum: 0,
isShow: false, isShow: false,
UploadMsg:{ UploadMsg: {
Remarks:"" Remarks: ""
}, },
} }
}, },
methods: { methods: {
//获取自费项目类型字符串 //获取自费项目类型字符串
getCostProjectStr(type) getCostProjectStr(type) {
{ var str = "";
var str=""; switch (type) {
switch(type) case "1":
{ str = "导游津贴";
case "1" :str="导游津贴";break; break;
case "2" :str="司机津贴";break; case "2":
case "3" :str="其他支出";break; str = "司机津贴";
} break;
return str; case "3":
str = "其他支出";
break;
}
return str;
}, },
addOtherList() { addOtherList() {
this.list.OtherOrderInfo.OtherList.push({ this.list.OtherOrderInfo.OtherList.push({
...@@ -561,10 +578,10 @@ ...@@ -561,10 +578,10 @@
return totalPrice return totalPrice
}, },
hotelTotalPrice(obj){ hotelTotalPrice(obj) {
let totalPrice=0 let totalPrice = 0
obj.forEach(x=>{ obj.forEach(x => {
totalPrice+=x.UnitPrice*(x.HouseGuestNum-x.HotelDiscount)*(1-x.RebateRatio/100) totalPrice += x.UnitPrice * (x.HouseGuestNum - x.HotelDiscount) * (1 - x.RebateRatio / 100)
}) })
return this.moneyFormat(totalPrice) return this.moneyFormat(totalPrice)
}, },
...@@ -591,20 +608,17 @@ ...@@ -591,20 +608,17 @@
}, },
saveData(type) { saveData(type) {
//通过 //通过
if(type==1) if (type == 1) {
{ this.list.LeaderApply.Status = 1;
this.list.LeaderApply.Status=1;
} }
//不通过 //不通过
else if(type==2) else if (type == 2) {
{ this.list.LeaderApply.Status = 2;
this.list.LeaderApply.Status=2; if (this.UploadMsg.Remarks == "") {
if(this.UploadMsg.Remarks=="")
{
this.Info("请填写不通过的原因!"); this.Info("请填写不通过的原因!");
return return
} }
this.list.LeaderApply.AuditReason=this.UploadMsg.Remarks; this.list.LeaderApply.AuditReason = this.UploadMsg.Remarks;
} }
this.apipost('dmcstatistics_post_SetLeaderApplyExcreteList', this.list, res => { this.apipost('dmcstatistics_post_SetLeaderApplyExcreteList', this.list, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -656,12 +670,13 @@ ...@@ -656,12 +670,13 @@
}, err => {}) }, err => {})
}, },
getList() { getList() {
this.loading = true this.loading = true;
this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => { this.apipost('dmcstatistics_post_GetNewLeaderPayMoneyStatics', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.loading = false; this.loading = false;
this.isShow = true; this.isShow = true;
this.list = res.data.data this.list = res.data.data;
console.log("this.list", this.list.HotelOrderListReport);
this.list.OtherOrderInfo.OtherList.forEach(item => { this.list.OtherOrderInfo.OtherList.forEach(item => {
item.CostProject = item.CostProject.toString() item.CostProject = item.CostProject.toString()
}) })
...@@ -697,7 +712,7 @@ ...@@ -697,7 +712,7 @@
// 酒店 // 酒店
HotelPrice(obj) { HotelPrice(obj) {
let totalPrice = 0; let totalPrice = 0;
obj.OrderDetailsList.forEach(item => { obj.OrderDetailsList.forEach(item => {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100); totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100);
}) })
...@@ -705,12 +720,12 @@ ...@@ -705,12 +720,12 @@
return obj.TotalPrice; return obj.TotalPrice;
}, },
// 餐饮 // 餐饮
calculationPrice(obj){ calculationPrice(obj) {
let totalPrice = 0; let totalPrice = 0;
obj.DiningPriceList.forEach(item => { obj.DiningPriceList.forEach(item => {
totalPrice += item.PeoplePrice * (item.PeopleNum - item.Discount) * (1 - item.DiscountPrice / 100); totalPrice += item.PeoplePrice * (item.PeopleNum - item.Discount) * (1 - item.DiscountPrice / 100);
}) })
return totalPrice.toFixed(2) return totalPrice.toFixed(2)
}, },
// 景点 // 景点
ScenicspotPrice(obj) { ScenicspotPrice(obj) {
...@@ -721,8 +736,6 @@ ...@@ -721,8 +736,6 @@
obj.TotalPrice = totalPrice.toFixed(2); obj.TotalPrice = totalPrice.toFixed(2);
return obj.TotalPrice return obj.TotalPrice
}, },
}, },
mounted() { mounted() {
this.isUpdate = this.$route.query.isUpdate; this.isUpdate = this.$route.query.isUpdate;
...@@ -731,6 +744,7 @@ ...@@ -731,6 +744,7 @@
this.getList(); this.getList();
} }
} }
</script> </script>
<style> <style>
...@@ -757,173 +771,36 @@ ...@@ -757,173 +771,36 @@
.leaderReimbursementTableNav tr td { .leaderReimbursementTableNav tr td {
background: #fff; background: #fff;
text-align: center; text-align: center;
height: 40px; height: 20px;
font-size: 12px; font-size: 12px;
padding: 0 10px; }
.leaderReimbursementTableNav ._go_detail p {
cursor: pointer;
line-height: 25px;
} }
.leaderReimbursementTable { .leaderReimbursementTable {
background: #d6cece;
width: 100%; width: 100%;
margin: 20px 0; margin: 20px 0;
} border-collapse: collapse;
.leaderReimbursementTable tbody {
margin: 10px 0;
} }
.leaderReimbursementTable tr th { .leaderReimbursementTable tr th {
background: #E6E6E6; background: #E6E6E6;
height: 40px; height: 40px;
font-size: 12px; font-size: 13px;
color: #333; color: #333;
} border: 1px solid #ccc;
.leaderReimbursementTable tr {
background: #fff;
text-align: center; text-align: center;
height: 40px;
}
.leaderReimbursementTable tr.title td {
background: #E6E6E6;
}
.leaderReimbursementTable tr td div {
word-break: normal;
}
.leaderReimbursementTable tr td.bgwhite {
background: #fff !important;
font-weight: bold;
} }
.leaderReimbursementTable tr td { .leaderReimbursementTable tr td {
border: 1px solid #ccc;
line-height: 25px;
height: 25px;
font-size: 12px; font-size: 12px;
} background: #fff;
.leaderReimbursementTable tr td .pDateStyle {
border-bottom: 1px solid #E6E6E6;
min-height: 24px;
line-height: 24px;
margin-top: 0;
box-sizing: content-box;
padding: 0 10px;
}
.leaderReimbursementTable tr td .pDateStyle:last-child {
border-bottom: none;
}
.leaderReimbursementTable tr td .pDateStyle>span:after {
content: '/';
}
.leaderReimbursementTable tr td .pDateStyle>span:last-child:after {
content: ''
}
.leaderReimbursementTable tr td .link p:hover {
text-decoration: underline;
cursor: pointer;
}
.leaderReimbursementTable tr td .phoverStype:hover {
text-decoration: underline;
cursor: pointer;
}
.leaderReimbursementTable tr td input[type='text'] {
height: 20px !important;
padding: 0;
text-align: center; text-align: center;
} }
</style>
.leaderReimbursementTable tr td .sel input { \ No newline at end of file
height: 34px !important;
}
.leaderReimbursementTable .splitP td>p {
height: 20px;
line-height: 20px;
border-bottom: 1px solid #ccc;
}
.leaderReimbursementTable .splitP td>p:last-child {
border-bottom: none;
}
.leaderReimbursementTable .ScenicTr td>div {
height: 60px;
line-height: 60px;
border-bottom: 1px solid #ccc;
}
.leaderReimbursementTable .ScenicTr td>div:last-child {
border-bottom: none;
}
.leaderReimbursementTable .ScenicTr td>div p {
line-height: 20px;
border-bottom: 1px solid #ccc;
}
.leaderReimbursementTable .ScenicTr td>div p:last-child {
border-bottom: none;
}
.leaderReimbursementTable .HotelTr td>div {
border-bottom: 1px solid #ccc;
}
.leaderReimbursementTable .HotelTr td>div:last-child {
border-bottom: none;
}
.leaderReimbursementTable .HotelTr td>div p {
line-height: 19px;
border-bottom: 1px solid #ccc;
}
.leaderReimbursementTable .HotelTr td>div p:last-child {
border-bottom: none;
}
.leaderReimbursementTable tr td .el-upload-list {
display: none;
}
.leaderReimbursementTable .uploadListDiv {
height: 100% !important;
overflow-y: auto;
width: 100%;
}
.leaderReimbursementTable .uploadListDiv>p {
border-bottom: 1px solid #ccc;
cursor: pointer;
width: 100% !important;
}
.leaderReimbursementTable .uploadListDiv>p:last-child {
border-bottom: none;
}
.leaderReimbursementTable .uploadListDiv>p i {
color: #999;
vertical-align: sub;
margin: 3px;
}
.leaderReimbursementTable .jdtd {
padding: 0 10px;
text-align: left;
}
.leaderReimbursementTable .leaderPayTable .el-input__prefix {
display: none;
}
.leaderReimbursementTable .itemName{
text-align:left; padding:0 10px;
}
</style>
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