Commit a405187c authored by 黄奎's avatar 黄奎

领队报账详情页面修改

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