Commit 212ba2ef authored by 黄奎's avatar 黄奎

地接生成财务单据

parent 0530948a
...@@ -29,11 +29,12 @@ ...@@ -29,11 +29,12 @@
</ul> </ul>
</div> </div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; "> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; ">
<table border="0" cellspacing="1" cellpadding="0" class="roomReservationsTalbe" style="border: 1px solid rgb(230, 230, 230);background: #ccc;min-width: 1600px"> <table border="0" cellspacing="1" cellpadding="0" class="roomReservationsTalbe" style="border: 1px solid rgb(230, 230, 230);background: #ccc;min-width: 1600px"
v-loading="loading">
<tr> <tr>
<th colspan="5">公司通用信息</th> <th colspan="5">公司通用信息</th>
<th colspan="8">导游操作</th> <th colspan="8">导游操作</th>
<th colspan="9">地接OP</th> <th colspan="10">地接OP</th>
</tr> </tr>
<tr> <tr>
<th width="115">序号</th> <th width="115">序号</th>
...@@ -56,17 +57,18 @@ ...@@ -56,17 +57,18 @@
<th width="80">返佣总计</th> <th width="80">返佣总计</th>
<th width="80">汇率</th> <th width="80">汇率</th>
<th width="80">凭证</th> <th width="80">凭证</th>
<th width="80">财务单据</th>
<th width="80">操作</th> <th width="80">操作</th>
</tr> </tr>
<tr v-if="list.length==0"> <tr v-if="list.length==0">
<td colspan="22">暂无数据</td> <td colspan="22">暂无数据</td>
</tr> </tr>
<tbody v-for="(outItem,outindex) in list" :class="{roomReservationsSplitTrCss:outindex%2!=0}" v-loading="loading"> <tbody v-for="(outItem,outindex) in list" :class="{roomReservationsSplitTrCss:outindex%2!=0}">
<template v-for="(item,index) in outItem.StaticsReportList"> <template v-for="(item,index) in outItem.StaticsReportList">
<tr> <tr>
<td :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<div style="max-width: 100px; min-width: 50px; ">{{outindex+1}}</div> <div style="max-width: 100px; min-width: 50px; ">{{outindex+1}}</div>
<div v-if='outItem.StaticsReportList.length>1' title="合团号">{{outItem.NewCombinationNum}}</div> <div v-if='outItem.StaticsReportList.length>1' title="合团号">{{outItem.NewCombinationNum}}</div>
</td> </td>
<td> <td>
<div class="w80"> <div class="w80">
...@@ -90,7 +92,7 @@ ...@@ -90,7 +92,7 @@
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopName}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopName}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].EnterTimeStr}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].EnterTimeStr}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
...@@ -113,8 +115,8 @@ ...@@ -113,8 +115,8 @@
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--凭证上传--> <!--凭证上传-->
<div v-for="subItem in item.CommonReport.PriceShopList"> <div v-for="subItem in item.CommonReport.PriceShopList">
<p v-for="(img, imgIndex) in subItem.ShopDetailsList[0].imgList" title="点击下载" @click="downLoadPZ(img)" v-if="img !== ''" <p v-for="(img, imgIndex) in subItem.ShopDetailsList[0].imgList" title="点击下载" @click="downLoadPZ(img)"
style="cursor: pointer;">{{ '凭证' + (imgIndex + 1)}}</p> v-if="img !== ''" style="cursor: pointer;">{{ '凭证' + (imgIndex + 1)}}</p>
</div> </div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
...@@ -128,7 +130,7 @@ ...@@ -128,7 +130,7 @@
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].GuideCommission}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].GuideCommission}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<template v-for="subItem in item.CommonReport.PriceShopList"> <template v-for="subItem in item.CommonReport.PriceShopList">
<div v-for="sonItem in subItem.ShopDetailsList">{{sonItem.CompanyCommission}}</div> <div v-for="sonItem in subItem.ShopDetailsList">{{sonItem.CompanyCommission}}</div>
</template> </template>
<!--公司佣金调整--> <!--公司佣金调整-->
...@@ -138,22 +140,31 @@ ...@@ -138,22 +140,31 @@
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].OtherDeduct}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].OtherDeduct}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--返佣总计(返佣余额)--> <!--返佣总计(返佣余额)-->
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].BackTotalMoney}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].BackTotalMoney}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--汇率--> <!--汇率-->
<div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].DMCRate}}</div> <div v-for="subItem in item.CommonReport.PriceShopList">{{subItem.ShopDetailsList[0].DMCRate}}</div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<!--地接OP凭证--> <!--地接OP凭证-->
<div v-for="subItem in item.CommonReport.PriceShopList"> <div v-for="subItem in item.CommonReport.PriceShopList">
<p v-for="(img, imgIndex) in subItem.ShopDetailsList[0].dmcImageList" title="点击下载" @click="downLoadPZ(img)" v-if="img !== ''" <p v-for="(img, imgIndex) in subItem.ShopDetailsList[0].dmcImageList" title="点击下载" @click="downLoadPZ(img)"
style="cursor: pointer;">{{ '凭证' + (imgIndex + 1)}}</p> v-if="img !== ''" style="cursor: pointer;">{{ '凭证' + (imgIndex + 1)}}</p>
</div> </div>
</td> </td>
<td class="more_td" :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<template v-for="subItem in item.CommonReport.PriceShopList">
<div>
<!--subItem.ShopDetailsList-->
<p style="cursor: pointer;color:blue; display:none;" @click="CreateBill(subItem.ShopDetailsList,outItem.StaticsReportList)">生成单据</p>
</div>
</template>
</td>
<td :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <td :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'>
<p style="cursor: pointer;color:blue" @click="goHuiZhi(outItem.TCIDs, item.LeaderName, item.GuideName, item.StartCityNames, item.TCNUMS)">选择购物店</p> <p style="cursor: pointer;color:blue;margin-top:5px;" @click="goHuiZhi(outItem.TCIDs, item.LeaderName, item.GuideName, item.StartCityNames, item.TCNUMS)">选择购物店</p>
<p style="cursor: pointer;color:blue;margin-top:10px" @click="goUrlT('ShoppingReimbursementDetails',outItem.TCIDs,'购物报账详情')">操作</p> <p style="cursor: pointer;color:blue;margin-top:10px" @click="goUrlT('ShoppingReimbursementDetails',outItem.TCIDs,'购物报账详情')">操作</p>
</td> </td>
</tr> </tr>
...@@ -281,9 +292,9 @@ ...@@ -281,9 +292,9 @@
this.currentPage = 1; this.currentPage = 1;
}, },
getList() { getList() {
this.loading = true this.loading = true;
this.apipost('dmcstatistics_post_GetUniteCombinationNumService', this.msg, res => { this.apipost('dmcstatistics_post_GetUniteCombinationNumService', this.msg, res => {
this.loading = false this.loading = false
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.msg.total = res.data.data.count; this.msg.total = res.data.data.count;
let data = res.data.data.pageData.data; let data = res.data.data.pageData.data;
...@@ -301,6 +312,34 @@ ...@@ -301,6 +312,34 @@
} }
}, err => {}) }, err => {})
}, },
//生成单据
CreateBill(ShopDetailsList, outItem) {
this.loading = true;
var array = [];
outItem.forEach(subItem => {
var obj = {
LeaderId: subItem.LeaderId != null ? subItem.LeaderId : 0,
LeaderName: subItem.LeaderName != null ? subItem.LeaderName : "",
TCID: subItem.TCID,
GuideId: subItem.GuideId != null ? subItem.GuideId : 0,
GuideName: subItem.GuideName != null ? subItem.GuideName : "",
TCNUM: subItem.TCNUMS,
}
array.push(obj)
});
var billMsg = {
ShopDetailsList: ShopDetailsList,
LeaderGuide: array
};
this.apipost('dmcstatistics_post_ShopCreateBill', billMsg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.Info(res.data.message);
} else {
this.$message.error(res.data.message)
}
}, err => {})
},
}, },
mounted() { mounted() {
let myDate = new Date(); let myDate = new Date();
...@@ -310,7 +349,8 @@ ...@@ -310,7 +349,8 @@
parseInt(myDate.getMonth() + 1) + parseInt(myDate.getMonth() + 1) +
"-" + "-" +
myDate.getDate(); myDate.getDate();
this.msg.StartDate = nowDate; //this.msg.StartDate = nowDate;
this.msg.StartDate = '2019-01-01';
this.getLineTeamList(); this.getLineTeamList();
this.getList() this.getList()
}, },
......
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