Commit a2a0b485 authored by 黄奎's avatar 黄奎

页面修改

parent 59d575d4
<style> <style>
.GOd_Table { .GOd_Table {
width: 100%; width: 100%;
font-size: 12px; font-size: 12px;
color: #333; color: #333;
...@@ -7,47 +7,46 @@ ...@@ -7,47 +7,46 @@
border-collapse: collapse; border-collapse: collapse;
background-color: #fff; background-color: #fff;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
.GOd_Table td { .GOd_Table td {
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
text-align: center; text-align: center;
height: 40px; height: 40px;
padding: 5px; padding: 5px;
} }
.GOd_Table th { .GOd_Table th {
background-color: #e6e6e6; background-color: #e6e6e6;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
height: 40px; height: 40px;
} }
.GD_comDiv { .GD_comDiv {
width: 100%; width: 100%;
height: 25px; height: 25px;
line-height: 25px; line-height: 25px;
text-align: center; text-align: center;
border-bottom: 1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1;
} }
.GOd_Table td .GD_comDiv:last-child { .GOd_Table td .GD_comDiv:last-child {
border: none; border: none;
} }
.GD_comPad { .GD_comPad {
padding: 0 !important; padding: 0 !important;
} }
.groundLastTable { .groundLastTable {
margin: 20px 0; margin: 20px 0;
font-size: 12px; font-size: 12px;
} }
.gdBtn { .gdBtn {
position: relative; position: relative;
top: -45px; top: -45px;
} }
</style> </style>
<template> <template>
...@@ -55,280 +54,331 @@ ...@@ -55,280 +54,331 @@
<div v-loading="loading"> <div v-loading="loading">
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="9">{{$t('ground.dyldyxjhb')}}</th> <th colspan="9">{{ $t("ground.dyldyxjhb") }}</th>
</tr> </tr>
<tr> <tr>
<th width="150">{{$t('sm.chufadi')}}</th> <th width="150">{{ $t("sm.chufadi") }}</th>
<th>{{$t('ground.hbsj')}}</th> <th>{{ $t("ground.hbsj") }}</th>
<th>{{$t('sm.jiheshijian')}}</th> <th>{{ $t("sm.jiheshijian") }}</th>
<th width="500">{{$t('ground.ctmchen')}}</th> <th width="500">{{ $t("ground.ctmchen") }}</th>
<th>{{$t('ground.tianshu')}}</th> <th>{{ $t("ground.tianshu") }}</th>
<th>{{$t('Operation.Op_jinchudian')}}</th> <th>{{ $t("Operation.Op_jinchudian") }}</th>
<th>{{$t('ground.ctrenshu')}}</th> <th>{{ $t("ground.ctrenshu") }}</th>
<th>{{$t('leader.leader_Leader')}}</th> <th>{{ $t("leader.leader_Leader") }}</th>
<th>{{$t('leader.leader_Guide')}}</th> <th>{{ $t("leader.leader_Guide") }}</th>
</tr> </tr>
<tr v-for="item in BaseInfo"> <tr v-for="item in BaseInfo">
<td>{{item.StartCityNames}}</td> <td>{{ item.StartCityNames }}</td>
<td> <td>
<span v-if="item.FlightList.length>0">{{item.FlightList[0].Departure_time}}</span> <span v-if="item.FlightList.length > 0">{{
item.FlightList[0].Departure_time
}}</span>
</td> </td>
<td>{{item.GatherTime}}</td> <td>{{ item.GatherTime }}</td>
<td style="text-align:left;">{{item.Titles}}</td> <td style="text-align:left;">{{ item.Titles }}</td>
<td>{{item.DayNum}}</td> <td>{{ item.DayNum }}</td>
<td>{{item.InOut}}</td> <td>{{ item.InOut }}</td>
<td>{{item.TotalSeat}}+1</td> <td>{{ item.TotalSeat }}+1</td>
<td>{{item.LeaderName}}</td> <td>{{ item.LeaderName }}</td>
<td>{{item.GuideName}}</td> <td>{{ item.GuideName }}</td>
</tr> </tr>
<tr> <tr>
<td>{{$t('ground.tsyaoqiu')}}</td> <td>{{ $t("ground.tsyaoqiu") }}</td>
<td colspan="8"></td> <td colspan="8"></td>
</tr> </tr>
<tr> <tr>
<td rowspan="5"> <td rowspan="5">
{{$t('ground.bmfzr')}} {{ $t("ground.bmfzr") }}
</td> </td>
<td>{{$t('ground.jpfzren')}}</td> <td>{{ $t("ground.jpfzren") }}</td>
<td> <td>
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].CreateByName' class='w200'></el-input> <el-input
v-model="PrincipalList[0].CreateByName"
class="w200"
></el-input>
</template> </template>
</td> </td>
<td>{{$t('restaurant.res_ContactNumber')}}</td> <td>{{ $t("restaurant.res_ContactNumber") }}</td>
<td colspan="5"> <td colspan="5">
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].CreateByMobile' class='w200'></el-input> <el-input
v-model="PrincipalList[0].CreateByMobile"
class="w200"
></el-input>
</template> </template>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>{{$t('ground.dffzren')}}</td> <td>{{ $t("ground.dffzren") }}</td>
<td> <td>
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].HConfirmName' class='w200'></el-input> <el-input
v-model="PrincipalList[0].HConfirmName"
class="w200"
></el-input>
</template> </template>
</td> </td>
<td>{{$t('restaurant.res_ContactNumber')}}</td> <td>{{ $t("restaurant.res_ContactNumber") }}</td>
<td colspan="5"> <td colspan="5">
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].HConfirmMobile' class='w200'></el-input> <el-input
v-model="PrincipalList[0].HConfirmMobile"
class="w200"
></el-input>
</template> </template>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>{{$t('ground.zlfzren')}}</td> <td>{{ $t("ground.zlfzren") }}</td>
<td> <td>
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].BConfirmName' class='w200'></el-input> <el-input
v-model="PrincipalList[0].BConfirmName"
class="w200"
></el-input>
</template> </template>
</td> </td>
<td>{{$t('restaurant.res_ContactNumber')}}</td> <td>{{ $t("restaurant.res_ContactNumber") }}</td>
<td colspan="5"> <td colspan="5">
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].BConfirmMobile' class='w200'></el-input> <el-input
v-model="PrincipalList[0].BConfirmMobile"
class="w200"
></el-input>
</template> </template>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>{{$t('ground.dcfzeren')}}</td> <td>{{ $t("ground.dcfzeren") }}</td>
<td> <td>
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].DConfirmName' class='w200'></el-input> <el-input
v-model="PrincipalList[0].DConfirmName"
class="w200"
></el-input>
</template> </template>
</td> </td>
<td>{{$t('restaurant.res_ContactNumber')}}</td> <td>{{ $t("restaurant.res_ContactNumber") }}</td>
<td colspan="5"> <td colspan="5">
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].DConfirmMobile' class='w200'></el-input> <el-input
v-model="PrincipalList[0].DConfirmMobile"
class="w200"
></el-input>
</template> </template>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>{{$t('ground.mpfzeren')}}</td> <td>{{ $t("ground.mpfzeren") }}</td>
<td> <td>
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].TConfirmName' class='w200'></el-input> <el-input
v-model="PrincipalList[0].TConfirmName"
class="w200"
></el-input>
</template> </template>
</td> </td>
<td>{{$t('restaurant.res_ContactNumber')}}</td> <td>{{ $t("restaurant.res_ContactNumber") }}</td>
<td colspan="5"> <td colspan="5">
<template v-if="PrincipalList.length>0"> <template v-if="PrincipalList.length > 0">
<el-input v-model='PrincipalList[0].TConfirmMobile' class='w200'></el-input> <el-input
v-model="PrincipalList[0].TConfirmMobile"
class="w200"
></el-input>
</template> </template>
</td> </td>
</tr> </tr>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="9">{{$t('ground.clshiyong')}}</th> <th colspan="9">{{ $t("ground.clshiyong") }}</th>
</tr> </tr>
<tr> <tr>
<th>{{$t('ground.chepeihao')}}</th> <th>{{ $t("ground.usebusTime") }}</th>
<th>{{$t('ground.clgs')}}</th> <th>{{ $t("ground.clgs") }}</th>
<th>{{$t('ground.usebusTime')}}</th> <th>{{ $t("ground.chepaihao") }}</th>
<th>{{$t('ground.chepaihao')}}</th> <th>{{ $t("ground.sijiName") }}</th>
<th>{{$t('ground.sijiName')}}</th> <th>{{ $t("ground.sijiPhone") }}</th>
<th>{{$t('ground.sijiPhone')}}</th> <th>{{ $t("pub.pubRemark") }}</th>
<th>{{$t('pub.pubRemark')}}</th>
</tr> </tr>
<tr v-for="item in DMCStaticsCommon.BusList"> <tr v-for="item in DMCStaticsCommon.BusList">
<td>{{item.BusCode}}</td> <td>{{ item.PlanDateStr }}</td>
<td>{{item.SupplierName}}</td> <td>{{ item.SupplierName }}</td>
<td>{{item.PlanDateStr}}</td> <td>{{ item.BusNum }}</td>
<td>{{item.BusNum}}</td> <td>{{ item.DriverName }}</td>
<td>{{item.DriverName}}</td> <td>{{ item.DriverTel }}</td>
<td>{{item.DriverTel}}</td> <td width="300">{{ item.Remarks }}</td>
<td width="300">{{item.Remarks}}</td>
</tr> </tr>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="17">{{$t('ground.jdshiyong')}}</th> <th colspan="17">{{ $t("ground.jdshiyong") }}</th>
</tr> </tr>
<tr> <tr>
<th width="80">{{$t('ground.dfanghao')}}</th> <th width="80">{{ $t("ground.dfanghao") }}</th>
<th width="180">{{$t('hotel.hotel_name')}}</th> <th width="180">{{ $t("hotel.hotel_name") }}</th>
<th width="100">{{$t('hotel.table_CheckInDate')}}</th> <th width="100">{{ $t("hotel.table_CheckInDate") }}</th>
<th width="80">{{$t('op.TakeBed')}}/{{$t('op.NoneedBed')}}</th> <th width="80">{{ $t("op.TakeBed") }}/{{ $t("op.NoneedBed") }}</th>
<th width="80">{{$t('ground.shijiyfs')}}</th> <th width="80">{{ $t("ground.shijiyfs") }}</th>
<th width="80">{{$t('restaurant.res_ContactNumber')}}</th> <th width="80">{{ $t("restaurant.res_ContactNumber") }}</th>
<th width="200">{{$t('admin.admin_address')}}</th> <th width="200">{{ $t("admin.admin_address") }}</th>
<th width="200">{{$t('pub.pubRemark')}}</th> <th width="200">{{ $t("pub.pubRemark") }}</th>
</tr> </tr>
<tbody v-for="item in DMCStaticsCommon.HotelOrderListReport"> <tbody v-for="item in DMCStaticsCommon.HotelOrderListReport">
<tr v-for="subItem in item.HotelOrderList"> <tr v-for="subItem in item.HotelOrderList">
<td>{{subItem.ReserveNo}}</td> <td>{{ subItem.ReserveNo }}</td>
<td style="text-align:left;">{{subItem.HotelName}}</td> <td style="text-align:left;">{{ subItem.HotelName }}</td>
<td>{{subItem.CheckInDateStr}}</td> <td>{{ subItem.CheckInDateStr }}</td>
<td>{{getHotelTotalNum(subItem)}}</td> <td>{{ getHotelTotalNum(subItem) }}</td>
<td>{{getHotelTotal(subItem)}}</td> <td>{{ getHotelTotal(subItem) }}</td>
<td>{{subItem.Tel}}</td> <td>{{ subItem.Tel }}</td>
<td style="text-align:left;">{{subItem.Address}}</td> <td style="text-align:left;">{{ subItem.Address }}</td>
<td style="text-align:left;">{{subItem.Remarks}}</td> <td style="text-align:left;">{{ subItem.Remarks }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="15">{{$t('ground.canshishiyong')}}</th> <th colspan="15">{{ $t("ground.canshishiyong") }}</th>
</tr> </tr>
<tr> <tr>
<th width="80">{{$t('ground.dchao')}}</th> <th width="80">{{ $t("ground.dchao") }}</th>
<th width="80">{{$t('restaurant.res_etTime')}}</th> <th width="80">{{ $t("restaurant.res_etTime") }}</th>
<th width="80">{{$t('restaurant.res_resName')}}</th> <th width="80">{{ $t("restaurant.res_resName") }}</th>
<th width="50">{{$t('ground.leibie')}}</th> <th width="50">{{ $t("ground.leibie") }}</th>
<th width="80">{{$t('ground.cayinlexing')}}</th> <th width="80">{{ $t("ground.cayinlexing") }}</th>
<th width="80">{{$t('ground.zongrenshu')}}</th> <th width="80">{{ $t("ground.zongrenshu") }}</th>
<th width="80">{{$t('restaurant.res_ContactNumber')}}</th> <th width="80">{{ $t("restaurant.res_ContactNumber") }}</th>
<th width="200">{{$t('admin.admin_address')}}</th> <th width="200">{{ $t("admin.admin_address") }}</th>
<th width="300">{{$t('pub.pubRemark')}}</th> <th width="300">{{ $t("pub.pubRemark") }}</th>
</tr> </tr>
<tbody v-for="item in DMCStaticsCommon.DiningList"> <tbody v-for="item in DMCStaticsCommon.DiningList">
<tr v-for="subItem in item.DiningSummaryList"> <tr v-for="subItem in item.DiningSummaryList">
<td>{{subItem.ReserveNo}}</td> <td>{{ subItem.ReserveNo }}</td>
<td>{{subItem.UseTimeStr}}</td> <td>{{ subItem.UseTimeStr }}</td>
<td style="text-align:left;">{{subItem.DiningName}}</td> <td style="text-align:left;">{{ subItem.DiningName }}</td>
<td>{{subItem.UseDinnerTypeStr}}</td> <td>{{ subItem.UseDinnerTypeStr }}</td>
<td>{{subItem.MealName}}</td> <td>{{ subItem.MealName }}</td>
<td>{{getDinnerTotal(subItem)}} <td>{{ getDinnerTotal(subItem) }}</td>
</td> <td>{{ subItem.Tel }}</td>
<td>{{subItem.Tel}}</td> <td style="text-align:left;">{{ subItem.Address }}</td>
<td style="text-align:left;">{{subItem.Address}}</td> <td style="text-align:left;">{{ subItem.Remarks }}</td>
<td style="text-align:left;">{{subItem.Remarks}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="12">{{$t('ground.mpshiyong')}}</th> <th colspan="12">{{ $t("ground.mpshiyong") }}</th>
</tr> </tr>
<tr> <tr>
<th>{{$t('ground.youlanshijian')}}</th> <th>{{ $t("ground.youlanshijian") }}</th>
<th width="400">{{$t('visaT.jdname')}}</th> <th width="400">{{ $t("visaT.jdname") }}</th>
<th>{{$t('ground.zongrenshu')}}</th> <th>{{ $t("ground.zongrenshu") }}</th>
<th>{{$t('restaurant.res_ContactNumber')}}</th> <th>{{ $t("restaurant.res_ContactNumber") }}</th>
<th width="300">{{$t('admin.admin_address')}}</th> <th width="300">{{ $t("admin.admin_address") }}</th>
<th width="200">{{$t('pub.pubRemark')}}</th> <th width="200">{{ $t("pub.pubRemark") }}</th>
</tr> </tr>
<tbody v-for="item in DMCStaticsCommon.ScenicList"> <tbody v-for="item in DMCStaticsCommon.ScenicList">
<tr v-for="subItem in item.ScenicStatisticsList"> <tr v-for="subItem in item.ScenicStatisticsList">
<td>{{subItem.UseTimeStr}}</td> <td>{{ subItem.UseTimeStr }}</td>
<td style="text-align:left;">{{subItem.ScenicName}}</td> <td style="text-align:left;">{{ subItem.ScenicName }}</td>
<td> <td>
{{getScenicTotal(subItem)}} {{ getScenicTotal(subItem) }}
</td> </td>
<td>{{subItem.Tel}}</td> <td>{{ subItem.Tel }}</td>
<td style="text-align:left;">{{subItem.Address}}</td> <td style="text-align:left;">{{ subItem.Address }}</td>
<td style="text-align:left;">{{subItem.Remarks}}</td> <td style="text-align:left;">{{ subItem.Remarks }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="6">{{$t('salesModule.LKMD')}}</th> <th colspan="6">{{ $t("salesModule.LKMD") }}</th>
</tr> </tr>
<tr> <tr>
<th>{{$t('system.table_Passport')}}</th> <th>{{ $t("system.table_Passport") }}</th>
<th>{{$t('system.table_sex')}}</th> <th>{{ $t("system.table_sex") }}</th>
<th>{{$t('ground.CustomerName')}}</th> <th>{{ $t("ground.CustomerName") }}</th>
<th>{{$t('ground.csnianyue')}}</th> <th>{{ $t("ground.csnianyue") }}</th>
<th>{{$t('ground.zhiye')}}</th> <th>{{ $t("ground.zhiye") }}</th>
</tr> </tr>
<tr v-for="item in guestList"> <tr v-for="item in guestList">
<td>{{item.PassportNo}}</td> <td>{{ item.PassportNo }}</td>
<td>{{item.SexStr}}</td> <td>{{ item.SexStr }}</td>
<td>{{item.userName}}</td> <td>{{ item.userName }}</td>
<td>{{item.Birthday}}</td> <td>{{ item.Birthday }}</td>
<td>{{item.Duty}}</td> <td>{{ item.Duty }}</td>
</tr> </tr>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="4">{{$t('ground.gwd')}}</th> <th colspan="4">{{ $t("ground.gwd") }}</th>
</tr> </tr>
<tr> <tr>
<th>{{$t('ground.dm')}}</th> <th>{{ $t("ground.dm") }}</th>
<th>{{$t('ground.jdsj')}}</th> <th>{{ $t("ground.jdsj") }}</th>
<th>{{$t('admin.admin_address')}}</th> <th>{{ $t("admin.admin_address") }}</th>
</tr> </tr>
<tr v-for="item in shopList"> <tr v-for="item in shopList">
<td>{{item.ShopName}}</td> <td>{{ item.ShopName }}</td>
<td>{{item.StoreTimeStr}}</td> <td>{{ item.StoreTimeStr }}</td>
<td>{{item.Address}}</td> <td>{{ item.Address }}</td>
</tr> </tr>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="2">{{$t('ground.xcneirong')}}</th> <th colspan="2">{{ $t("ground.xcneirong") }}</th>
</tr> </tr>
<tr v-for="item in JourneyTitle"> <tr v-for="item in JourneyTitle">
<td width="100">{{$t('tips.di')}}{{item.DayNum}}{{$t('hotel.hotel_day')}}</td> <td width="100">
<td style="text-align:left;">{{item.Title}}</td> {{ $t("tips.di") }}{{ item.DayNum }}{{ $t("hotel.hotel_day") }}
</td>
<td style="text-align:left;">{{ item.Title }}</td>
</tr> </tr>
</table> </table>
<table class="groundLastTable"> <table class="groundLastTable">
<tr> <tr>
<td style="vertical-align:top;"> <td style="vertical-align:top;">
{{$t('hotel.hotel_attention')}}: {{ $t("hotel.hotel_attention") }}:
</td> </td>
<td> <td>
<el-input v-model="PostConfig.PlanDescription" type="textarea" class="w700" <el-input
:autosize="{minRows: 3, maxRows: 3 }" resize="none" :placeholder="$t('hotel.hotel_attention')" maxlength="300"></el-input> v-model="PostConfig.PlanDescription"
<input type="button" class="normalBtn gdBtn" @click="UpdateLeaderPay" :value="$t('pub.saveBtn')" /> type="textarea"
<input type="button" class="normalBtn gdBtn" @click="DownLoadLeaderPay" :value="$t('adm.adm_download')" /> class="w700"
:autosize="{ minRows: 3, maxRows: 3 }"
resize="none"
:placeholder="$t('hotel.hotel_attention')"
maxlength="300"
></el-input>
<input
type="button"
class="normalBtn gdBtn"
@click="UpdateLeaderPay"
:value="$t('pub.saveBtn')"
/>
<input
type="button"
class="normalBtn gdBtn"
@click="DownLoadLeaderPay"
:value="$t('adm.adm_download')"
/>
</td> </td>
</tr> </tr>
</table> </table>
<div style="width:100%;height:100%;">
</div> <div style="width:100%;height:100%;"></div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
TCIDs: "", TCIDs: "",
...@@ -350,7 +400,7 @@ ...@@ -350,7 +400,7 @@
TCIDs: "", TCIDs: "",
PlanDescription: "" PlanDescription: ""
}, },
loading2: false, loading2: false
}; };
}, },
methods: { methods: {
...@@ -358,24 +408,21 @@ ...@@ -358,24 +408,21 @@
getHotelTotal(item) { getHotelTotal(item) {
var totalCount = 0; var totalCount = 0;
item.OrderDetailsList.forEach(subItem => { item.OrderDetailsList.forEach(subItem => {
totalCount+= subItem.HouseTypeCount; totalCount += subItem.HouseTypeCount;
}); });
return totalCount; return totalCount;
}, },
getHotelTotalNum(item) { getHotelTotalNum(item) {
var totalCount = 0; var totalCount = 0;
var noBed=0; var noBed = 0;
item.OrderDetailsList.forEach((subItem,subIndex) => { item.OrderDetailsList.forEach((subItem, subIndex) => {
if(subItem.HouseType<=4) if (subItem.HouseType <= 4) {
{ totalCount += subItem.BookNum;
totalCount+= subItem.BookNum; } else if (subItem.HouseType == 6) {
} noBed += subItem.BookNum;
else if(subItem.HouseType==6)
{
noBed+= subItem.BookNum;
} }
}); });
return totalCount+"/"+noBed; return totalCount + "/" + noBed;
}, },
//景点统计 //景点统计
getScenicTotal(item) { getScenicTotal(item) {
...@@ -397,11 +444,14 @@ ...@@ -397,11 +444,14 @@
getConfirmName() { getConfirmName() {
let msg = { let msg = {
TCIDs: this.TCIDs, TCIDs: this.TCIDs,
NewCombinationNum: '', NewCombinationNum: ""
}; };
//更新酒店图片 //更新酒店图片
this.loading2 = true; this.loading2 = true;
this.apipost("dmcstatistics_post_GetExtendLeaderAllStatics", msg, res => { this.apipost(
"dmcstatistics_post_GetExtendLeaderAllStatics",
msg,
res => {
this.loading2 = false; this.loading2 = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.BaseInfo = res.data.data.BaseInfo; this.BaseInfo = res.data.data.BaseInfo;
...@@ -411,7 +461,6 @@ ...@@ -411,7 +461,6 @@
this.DMCStaticsCommon = res.data.data.DMCStaticsCommon; this.DMCStaticsCommon = res.data.data.DMCStaticsCommon;
this.shopList = res.data.data.shopList; this.shopList = res.data.data.shopList;
this.PostConfig = res.data.data.DMCStaticsCommon.LeaderApply; this.PostConfig = res.data.data.DMCStaticsCommon.LeaderApply;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -421,54 +470,66 @@ ...@@ -421,54 +470,66 @@
}, },
//获取人员类型 //获取人员类型
peopleStrToWord(str) { peopleStrToWord(str) {
if (str == '1') if (str == "1") return "成人";
return '成人' if (str == "2") return "儿童";
if (str == '2') if (str == "3") return "婴儿";
return '儿童'
if (str == '3')
return '婴儿'
}, },
//总金额 //总金额
diningTotalPrice(obj) { diningTotalPrice(obj) {
let totalPrice = 0 let totalPrice = 0;
obj.forEach(x => { obj.forEach(x => {
totalPrice += x.PeoplePrice * (x.PeopleNum - x.Discount) * (1 - x.DiscountPrice / 100) totalPrice +=
}) x.PeoplePrice *
return totalPrice (x.PeopleNum - x.Discount) *
(1 - x.DiscountPrice / 100);
});
return totalPrice;
}, },
//景点 //景点
scenicTotalPrice(obj) { scenicTotalPrice(obj) {
let totalPrice = 0 let totalPrice = 0;
obj.forEach(x => { obj.forEach(x => {
totalPrice += x.PeoplePrice * (x.UsePeopleNum - x.Discount) * (1 - x.DiscountPrice / 100) totalPrice +=
}) x.PeoplePrice *
return totalPrice (x.UsePeopleNum - x.Discount) *
(1 - x.DiscountPrice / 100);
});
return totalPrice;
}, },
UpdateLeaderPay() { UpdateLeaderPay() {
this.PostConfig.TCIDs = this.TCIDs; this.PostConfig.TCIDs = this.TCIDs;
this.apipost('dmcstatistics_post_AuditLeaderapply', { this.apipost(
"dmcstatistics_post_AuditLeaderapply",
{
LeaderApply: this.PostConfig, LeaderApply: this.PostConfig,
LeaderGuidePlan: this.PrincipalList[0] LeaderGuidePlan: this.PrincipalList[0]
}, res => { },
res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) },
err => {}
);
}, },
DownLoadLeaderPay() { DownLoadLeaderPay() {
let msg = { let msg = {
TCIDs: this.TCIDs, TCIDs: this.TCIDs,
NewCombinationNum: '', NewCombinationNum: "",
uid: this.getLocalStorage().EmployeeId uid: this.getLocalStorage().EmployeeId
}; };
let fileName = "导游计划表" + this.$commonUtils.getCurrentDate() + ".xls"; let fileName = "导游计划表" + this.$commonUtils.getCurrentDate() + ".xls";
this.loading = true; this.loading = true;
this.GetLocalFile("dmcstatistics_get_DwonLoadLeaderapply", msg, fileName, this.GetLocalFile(
"dmcstatistics_get_DwonLoadLeaderapply",
msg,
fileName,
res => { res => {
this.loading = false; this.loading = false;
}); }
);
} }
}, },
mounted() { mounted() {
...@@ -476,6 +537,5 @@ ...@@ -476,6 +537,5 @@
this.PostConfig.TCIDs = this.TCIDs; this.PostConfig.TCIDs = this.TCIDs;
this.getConfirmName(); this.getConfirmName();
} }
}; };
</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