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
d7181097
Commit
d7181097
authored
Oct 29, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改价格bug
parent
9689ed74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
35 deletions
+11
-35
DinningDetails.vue
src/components/LeaderManagement/DinningDetails.vue
+11
-35
No files found.
src/components/LeaderManagement/DinningDetails.vue
View file @
d7181097
...
...
@@ -13,6 +13,7 @@
<th>
用餐人数
</th>
<th>
单价
</th>
<th>
金额
</th>
<th>
实付
</th>
<th>
币种
</th>
<th>
支付方式
</th>
<th>
备注
</th>
...
...
@@ -20,41 +21,6 @@
<tr>
<td
v-show=
"dataList.length==0"
colspan=
"16"
align=
"center"
>
暂无数据
</td>
</tr>
<!--
<tbody
v-for=
"(item,index) in dataList"
:key=
"index"
>
<tr>
<td>
{{
item
.
UseTimeStr
}}
</td>
<td>
<p
v-for=
"(i,index) in item.DiningSummaryList"
:key=
"index"
>
{{
i
.
DiningName
}}
(
{{
i
.
UseDinnerTypeStr
}}
)
</p>
</td>
<td>
<p
v-for=
"(i,index) in item.DiningSummaryList"
:key=
"index"
>
{{
i
.
TotalPrice
}}
</p>
</td>
<td>
<div
v-for=
"(i,index) in item.DiningSummaryList"
:key=
"index"
>
<p><span
class=
"widthSpan"
>
成人
</span>
人数:
<span
class=
"numSpan"
>
{{
i
.
DiningPriceList
[
0
].
PeopleNum
}}
</span>
单价:
{{
i
.
DiningPriceList
[
0
].
PeoplePrice
}}
</p>
<p><span
class=
"widthSpan"
>
儿童
</span>
人数:
<span
class=
"numSpan"
>
{{
i
.
DiningPriceList
[
1
].
PeopleNum
}}
</span>
单价:
{{
i
.
DiningPriceList
[
1
].
PeoplePrice
}}
</p>
<p><span
class=
"widthSpan"
>
婴儿
</span>
人数:
<span
class=
"numSpan"
>
{{
i
.
DiningPriceList
[
2
].
PeopleNum
}}
</span>
单价:
{{
i
.
DiningPriceList
[
2
].
PeoplePrice
}}
</p>
</div>
</td>
<td>
<p
v-for=
"(i,index) in item.DiningSummaryList"
:key=
"index"
>
{{
diningTotalPrice
(
i
,
i
.
DiningPriceList
)
}}
</p>
</td>
<td>
{{
urrencyTypeObj
[
item
.
DiningSummaryList
[
0
].
ReimburseList
.
CurrencyId
]
}}
</td>
<td>
<span
v-if=
"item.DiningSummaryList[0].PayStyle === 1"
>
现付
</span>
<span
v-else-if=
"item.DiningSummaryList[0].PayStyle === 2"
>
公司结算
</span>
<span
v-else-if=
"item.DiningSummaryList[0].PayStyle === 3"
>
预付
</span>
<span
v-else-if=
"item.DiningSummaryList[0].PayStyle === 6"
>
公司合团支付
</span>
</td>
<td>
{{
item
.
Remarks
}}
</td>
</tr>
</tbody>
-->
<template
v-for=
'(item,index) in dataList'
>
<template
v-for=
"(subItem,subIndex) in item.DiningSummaryList"
>
<tr
v-for=
"(childItem,childIndex) in subItem.DiningPriceList"
>
...
...
@@ -79,6 +45,9 @@
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.DiningPriceList.length"
>
{{
diningTotalPrice
(
subItem
,
subItem
.
DiningPriceList
)
}}
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.DiningPriceList.length"
>
{{
diningTotalPrice2
(
subItem
,
subItem
.
ReimburseList
.
ReimburseDetailsList
)
}}
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.DiningPriceList.length"
>
<span
v-if=
"subItem.PayStyle === 1"
>
现付
</span>
<span
v-else-if=
"subItem.PayStyle === 2"
>
公司结算
</span>
...
...
@@ -150,6 +119,13 @@ export default {
}
return
this
.
moneyFormat
(
totalPrice
)
},
diningTotalPrice2
(
sObj
,
obj
)
{
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
UnitPrice
})
return
this
.
moneyFormat
(
totalPrice
)
},
financeinfo_post_GetList
(){
// 币种类型
this
.
apipost
(
'financeinfo_post_GetList'
,{
Name
:
''
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
...
...
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