Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
212ba2ef
Commit
212ba2ef
authored
Jan 31, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地接生成财务单据
parent
0530948a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
17 deletions
+57
-17
ShoppingReimbursement.vue
src/components/ShoppingStore/ShoppingReimbursement.vue
+57
-17
No files found.
src/components/ShoppingStore/ShoppingReimbursement.vue
View file @
212ba2ef
...
...
@@ -29,11 +29,12 @@
</ul>
</div>
<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>
<th
colspan=
"5"
>
公司通用信息
</th>
<th
colspan=
"8"
>
导游操作
</th>
<th
colspan=
"
9
"
>
地接OP
</th>
<th
colspan=
"
10
"
>
地接OP
</th>
</tr>
<tr>
<th
width=
"115"
>
序号
</th>
...
...
@@ -56,17 +57,18 @@
<th
width=
"80"
>
返佣总计
</th>
<th
width=
"80"
>
汇率
</th>
<th
width=
"80"
>
凭证
</th>
<th
width=
"80"
>
财务单据
</th>
<th
width=
"80"
>
操作
</th>
</tr>
<tr
v-if=
"list.length==0"
>
<td
colspan=
"22"
>
暂无数据
</td>
</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"
>
<tr>
<td
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
<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>
<div
class=
"w80"
>
...
...
@@ -90,7 +92,7 @@
<td
class=
"more_td"
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
<div
v-for=
"subItem in item.CommonReport.PriceShopList"
>
{{
subItem
.
ShopName
}}
</div>
</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>
</td>
<td
class=
"more_td"
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
...
...
@@ -113,8 +115,8 @@
<td
class=
"more_td"
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
<!--凭证上传-->
<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 !== ''"
style=
"cursor: pointer;"
>
{{ '凭证' + (imgIndex + 1)}}
</p>
<p
v-for=
"(img, imgIndex) in subItem.ShopDetailsList[0].imgList"
title=
"点击下载"
@
click=
"downLoadPZ(img)"
v-if=
"img !== ''"
style=
"cursor: pointer;"
>
{{ '凭证' + (imgIndex + 1)}}
</p>
</div>
</td>
<td
class=
"more_td"
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
...
...
@@ -128,7 +130,7 @@
<div
v-for=
"subItem in item.CommonReport.PriceShopList"
>
{{subItem.ShopDetailsList[0].GuideCommission}}
</div>
</td>
<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>
</
template
>
<!--公司佣金调整-->
...
...
@@ -138,22 +140,31 @@
<div
v-for=
"subItem in item.CommonReport.PriceShopList"
>
{{subItem.ShopDetailsList[0].OtherDeduct}}
</div>
</td>
<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>
</td>
<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>
</td>
<td
class=
"more_td"
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
<!--地接OP凭证-->
<!--地接OP凭证-->
<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 !== ''"
style=
"cursor: pointer;"
>
{{ '凭证' + (imgIndex + 1)}}
</p>
<p
v-for=
"(img, imgIndex) in subItem.ShopDetailsList[0].dmcImageList"
title=
"点击下载"
@
click=
"downLoadPZ(img)"
v-if=
"img !== ''"
style=
"cursor: pointer;"
>
{{ '凭证' + (imgIndex + 1)}}
</p>
</div>
</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'
>
<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>
</td>
</tr>
...
...
@@ -281,9 +292,9 @@
this
.
currentPage
=
1
;
},
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
;
this
.
apipost
(
'dmcstatistics_post_GetUniteCombinationNumService'
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
let
data
=
res
.
data
.
data
.
pageData
.
data
;
...
...
@@ -301,6 +312,34 @@
}
},
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
()
{
let
myDate
=
new
Date
();
...
...
@@ -310,7 +349,8 @@
parseInt
(
myDate
.
getMonth
()
+
1
)
+
"-"
+
myDate
.
getDate
();
this
.
msg
.
StartDate
=
nowDate
;
//this.msg.StartDate = nowDate;
this
.
msg
.
StartDate
=
'2019-01-01'
;
this
.
getLineTeamList
();
this
.
getList
()
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment