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
4ef1e612
Commit
4ef1e612
authored
Mar 14, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
8e443d2f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
989 additions
and
521 deletions
+989
-521
VisaProduct.vue
src/components/SalesVisa/VisaProduct.vue
+875
-492
leaderPay2.vue
src/components/leaderPay2.vue
+114
-29
No files found.
src/components/SalesVisa/VisaProduct.vue
View file @
4ef1e612
This diff is collapsed.
Click to expand it.
src/components/leaderPay2.vue
View file @
4ef1e612
...
...
@@ -31,20 +31,8 @@
text-align
:
left
;
padding
:
0
10px
;
}
.LeaderPrintDiv
.printBtn
{
color
:
#fff
;
padding
:
0
15px
;
height
:
30px
;
background
:
#E95252
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
position
:
fixed
;
right
:
50px
;
top
:
30px
;
}
@media
print
{
.LeaderPrintDiv
.
printBtn
{
display
:
none
}
.LeaderPrintDiv
.
btnListDiv
{
display
:
none
}
}
.comTotal
{
text-align
:
left
;
...
...
@@ -58,6 +46,22 @@
width
:
1000px
;
margin
:
0
auto
;
}
.wLeader2
.el-textarea__inner
{
height
:
130px
;
}
.LeaderPrintDiv
.btnListDiv
{
margin
:
20px
auto
;
text-align
:
center
;
}
.LeaderPrintDiv
.leader2Btn
{
color
:
#fff
;
padding
:
0
15px
;
height
:
30px
;
background
:
#E95252
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
}
</
style
>
<
template
>
...
...
@@ -65,10 +69,10 @@
<div
class=
"childDiv"
>
<table
border=
"0"
cellspacing=
'1'
class=
"leaderPayTable"
>
<tr>
<th
width=
"
8%
"
>
出发地
</th>
<th
width=
"
30%
"
>
行程名称
</th>
<th
width=
"1
5
%"
>
团号
</th>
<th
width=
"1
5
%"
>
出发时间
</th>
<th
width=
"
110
"
>
出发地
</th>
<th
width=
"
290
"
>
行程名称
</th>
<th
width=
"1
3
%"
>
团号
</th>
<th
width=
"1
3
%"
>
出发时间
</th>
<th
width=
"8%"
>
天数
</th>
<th
width=
"8%"
>
出团人数
</th>
<th
width=
"8%"
>
领队
</th>
...
...
@@ -115,15 +119,16 @@
</td>
</tr>
</template>
<tr
v-if=
"dataList.ScenicList.length>0"
>
<
!-- <
tr v-if="dataList.ScenicList.length>0">
<td class="comTotal" colspan="4">合计:{{totalScenicPrice}}</td>
</tr>
</tr>
-->
<tr
v-for=
"(item,index) in dataList.BusList"
>
<td
v-if=
"index==0"
:rowspan=
"dataList.BusList.length"
>
交通
</td>
<td>
<span
v-if=
'index==0'
>
接机
</span>
{{item.ParkExplain}}
<!-- <span v-if='index==0'>接机</span>
<span v-if='index!=0&&index!=dataList.BusList.length-1'>{{item.AirportPickUpStr}}</span>
<span
v-if=
'index==dataList.BusList.length-1'
>
送机
</span>
<span v-if='index==dataList.BusList.length-1'>送机</span>
-->
</td>
<td>
{{item.TotalPrice}} {{item.CurrencyStr}}
...
...
@@ -132,9 +137,9 @@
{{item.Remarks}}
</td>
</tr>
<tr
v-if=
"dataList.BusList.length>0"
>
<
!-- <
tr v-if="dataList.BusList.length>0">
<td class="comTotal" colspan="4">合计:{{totalTrafficPrice}}</td>
</tr>
</tr>
-->
<
template
v-for=
'(item,index) in dataList.DiningList'
>
<tr
class=
"splitP ScenicTr"
>
<td
v-if=
"index==0"
:rowspan=
"dataList.DiningList.length"
>
餐饮
</td>
...
...
@@ -155,9 +160,9 @@
</td>
</tr>
</template>
<tr
v-if=
"dataList.DiningList.length>0"
>
<
!-- <
tr v-if="dataList.DiningList.length>0">
<td class="comTotal" colspan="4">合计:{{totalDinnerPrice}}</td>
</tr>
</tr>
-->
<
template
v-for=
'(item,index) in dataList.HotelList'
>
<tr>
<td
v-if=
"index==0"
:rowspan=
"dataList.HotelList.length"
>
酒店
</td>
...
...
@@ -168,15 +173,62 @@
<td>
{{
item
.
Remarks
}}
</td>
</tr>
</
template
>
<tr
v-if=
"dataList.HotelList.length>0"
>
<
!-- <
tr v-if="dataList.HotelList.length>0">
<td class="comTotal" colspan="4">合计:{{totalHotelPrice}}</td>
</tr>
<tr>
<td colspan="4">总计:{{allTotal}}</td>
</tr>
</tr>
-->
</tbody>
</table>
<input
type=
"button"
class=
"printBtn"
value=
"打印"
@
click=
"printTable()"
>
<table
border=
"0"
cellspacing=
'1'
class=
"leaderPayTable"
>
<tr>
<th>
类型
</th>
<th>
金额
</th>
</tr>
<tr
v-show=
"totalList.PlanTotalPrice>0"
>
<td>
领取团款
</td>
<td>
{{totalList.PlanTotalPrice}}
</td>
</tr>
<tr
v-show=
"totalList.SelfPayingExpendTotalPrice>0"
>
<td>
自费支出
</td>
<td>
{{totalList.SelfPayingExpendTotalPrice}}
</td>
</tr>
<tr
v-show=
"totalList.SelfPayingIncomeTotalPrice>0"
>
<td>
自费收入
</td>
<td>
{{totalList.SelfPayingIncomeTotalPrice}}
</td>
</tr>
<tr
v-show=
"totalList.IncomeTotalPrice>0"
>
<td>
消费收入
</td>
<td>
{{totalList.IncomeTotalPrice}}
</td>
</tr>
<tr
v-show=
"(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)>0"
>
<td>
其他费用
</td>
<td>
{{totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice}}
</td>
</tr>
<tr
v-show=
"totalScenicPrice>0"
>
<td>
景点门票
</td>
<td>
{{totalScenicPrice}}
</td>
</tr>
<tr
v-show=
"totalTrafficPrice>0"
>
<td>
交通
</td>
<td>
{{totalTrafficPrice}}
</td>
</tr>
<tr
v-show=
"totalDinnerPrice>0"
>
<td>
餐饮
</td>
<td>
{{totalDinnerPrice}}
</td>
</tr>
<tr
v-show=
"totalHotelPrice>0"
>
<td>
酒店
</td>
<td>
{{totalHotelPrice}}
</td>
</tr>
</table>
<el-input
type=
"textarea"
v-if=
"isShowRemark"
placeholder=
"请输入备注信息"
v-model=
"dataList.LeaderApply.AccountForReason"
class=
"wLeader2"
/>
<div
class=
"btnListDiv"
>
<input
type=
"button"
class=
"leader2Btn"
@
click=
"AuditOrder(2)"
value=
"审核通过"
/>
<input
type=
"button"
class=
"leader2Btn"
@
click=
"AuditOrder(1)"
value=
"审核不通过"
/>
<input
type=
"button"
class=
"leader2Btn"
value=
"打印"
@
click=
"printTable()"
>
</div>
</div>
</div>
</template>
...
...
@@ -200,8 +252,10 @@ export default {
totalHotelPrice
:
0
,
//合计交通
totalTrafficPrice
:
0
,
allTotal
:
0
,
totalList
:[],
isShowRemark
:
false
,
}
},
methods
:
{
...
...
@@ -225,6 +279,7 @@ export default {
this
.
totalDinnerPrice
+=
parseFloat
(
x
.
DiningSummaryList
[
0
].
TotalPrice
);
})
this
.
allTotal
=
(
this
.
totalHotelPrice
+
this
.
totalTrafficPrice
+
this
.
totalScenicPrice
+
this
.
totalDinnerPrice
).
toFixed
(
2
);
this
.
isShowRemark
=
true
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
...
...
@@ -253,6 +308,35 @@ export default {
//打印
printTable
(){
window
.
print
();
},
//获取总额
getTotalMoney
(){
this
.
apipost
(
'dmcstatistics_post_GetTotalPrice'
,
{
TCIDs
:
this
.
$route
.
query
.
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
totalList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
//审核
AuditOrder
(
type
){
if
(
type
==
1
&&
(
this
.
dataList
.
LeaderApply
.
AccountForReason
==
null
||
this
.
dataList
.
LeaderApply
.
AccountForReason
==
''
)){
this
.
Error
(
'请填写备注信息'
);
return
;
}
this
.
dataList
.
LeaderApply
.
Status
=
type
;
let
msg
=
this
.
dataList
.
LeaderApply
;
this
.
apipost
(
'dmcstatistics_post_AuditLeaderapply'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
}
},
created
()
{
...
...
@@ -263,6 +347,7 @@ export default {
this
.
msg
.
TCIDs
=
this
.
$route
.
query
.
id
;
this
.
getNav
();
this
.
getList
();
this
.
getTotalMoney
();
},
}
</
script
>
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