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
b22ad21f
Commit
b22ad21f
authored
Jun 25, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7936d278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
17 deletions
+33
-17
leaderReimbursement.vue
src/components/LeaderManagement/leaderReimbursement.vue
+33
-17
No files found.
src/components/LeaderManagement/leaderReimbursement.vue
View file @
b22ad21f
...
...
@@ -119,7 +119,7 @@
</table>
<table
class=
"leaderReimbursementTable"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
>
<tr>
<th
colspan=
"1
4
"
class=
"bgwhite"
>
酒店使用
</th>
<th
colspan=
"1
5
"
class=
"bgwhite"
>
酒店使用
</th>
</tr>
<tr
class=
"title"
>
<th
width=
"100"
>
使用时间
</th>
...
...
@@ -133,6 +133,7 @@
<th
width=
""
>
单价/人
</th>
<th
width=
""
>
金额小计
</th>
<th
width=
""
>
返佣
</th>
<th
width=
""
>
税入/税别
</th>
<th
width=
""
>
总金额
</th>
<th
width=
""
>
付款方式
</th>
<th
width=
"100"
>
备注
</th>
...
...
@@ -179,10 +180,18 @@
{{
moneyFormat
(
childItem
.
UnitPrice
*
(
childItem
.
BookNum
-
childItem
.
HotelDiscount
))
}}
</td>
<td>
{{
childItem
.
RebateRatio
}}
%
{{
childItem
.
RebateRatio
}}
%
</td>
<td>
<template
v-if=
"childItem.TaxType==1"
>
税入
</
template
>
<
template
v-if=
"childItem.TaxType==2"
>
税别
</
template
>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
{{
hotelTotalPrice
(
subItem
.
OrderDetailsList
)
}}
{{hotelTotalPrice(subItem.OrderDetailsList
,childItem
)}}
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<span
v-if=
"subItem.PayStyle === 1"
>
现付
</span>
...
...
@@ -202,7 +211,7 @@
</template>
<tr
v-if=
"TotalNav.reimburseTotalPrice"
>
<td>
总金额
</td>
<td
colspan=
"1
4
"
>
<td
colspan=
"1
5
"
>
{{moneyFormat(TotalNav.reimburseTotalPrice.ExpendTotalPrice)}}
</td>
<!-- <td>签单/预付/抵扣总金额</td>
...
...
@@ -422,9 +431,7 @@
@
click=
"goFncUrl('DebitNote', subItem.FinanceId)"
>
借支单
</span></p>
</td>
<td
width=
"80"
class=
"_zhidan"
>
<input
type=
"button"
value=
"制单"
class=
"normalBtn"
@
click=
"goZhiDan(item)"
/>
<input
type=
"button"
value=
"制单"
class=
"normalBtn"
@
click=
"goZhiDan(item)"
/>
</td>
</tr>
</table>
...
...
@@ -542,15 +549,15 @@
goZhiDan
:
function
(
obj
)
{
if
(
this
.
list
.
hotelNoSureInfo
!==
''
)
{
this
.
$confirm
(
`
${
this
.
list
.
hotelNoSureInfo
}
,是否去制单?`
,
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
'warning'
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
'warning'
}).
then
(()
=>
{
this
.
goZhiDan2
(
obj
)
this
.
goZhiDan2
(
obj
)
}).
catch
(()
=>
{
return
false
return
false
});
}
else
{
}
else
{
this
.
goZhiDan2
(
obj
)
}
},
...
...
@@ -622,13 +629,22 @@
})
return
this
.
moneyFormat
(
totalPrice
)
},
hotelTotalPrice
(
obj
)
{
hotelTotalPrice
(
obj
,
subItem
)
{
console
.
log
(
"subItem"
,
subItem
);
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
if
(
x
.
PayStyle
===
1
)
{
totalPrice
+=
x
.
UnitPrice
*
(
x
.
BookNum
-
x
.
HotelDiscount
)
*
(
1
-
x
.
RebateRatio
/
100
)
if
(
subItem
.
TaxType
==
2
)
{
if
(
x
.
PayStyle
===
1
)
{
totalPrice
+=
x
.
UnitPrice
*
(
x
.
BookNum
-
x
.
HotelDiscount
)
*
(
1
+
0.08
-
x
.
RebateRatio
/
100
)
}
else
{
totalPrice
+=
0
}
}
else
{
totalPrice
+=
0
if
(
x
.
PayStyle
===
1
)
{
totalPrice
+=
x
.
UnitPrice
*
(
x
.
BookNum
-
x
.
HotelDiscount
)
*
(
1
-
x
.
RebateRatio
/
100
)
}
else
{
totalPrice
+=
0
}
}
})
return
this
.
moneyFormat
(
totalPrice
)
...
...
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