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
b0e7d6fe
Commit
b0e7d6fe
authored
May 16, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面优化
parent
573e470f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
719 additions
and
546 deletions
+719
-546
leaderReimbursement.vue
src/components/LeaderManagement/leaderReimbursement.vue
+719
-546
No files found.
src/components/LeaderManagement/leaderReimbursement.vue
View file @
b0e7d6fe
...
@@ -194,7 +194,8 @@
...
@@ -194,7 +194,8 @@
<td>
<td>
<div
class=
"alcenter"
>
<div
class=
"alcenter"
>
<div
v-for=
"subItem in outItem.HotelOrderList"
>
<div
v-for=
"subItem in outItem.HotelOrderList"
>
<p
v-for=
"childItem in subItem.OrderDetailsList"
class=
"cursorpointer text-decoration"
@
click=
"goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'roomReservationsDetails')"
>
<p
v-for=
"childItem in subItem.OrderDetailsList"
class=
"cursorpointer text-decoration"
@
click=
"goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'roomReservationsDetails')"
>
{{
moneyFormat
(
childItem
.
UnitPrice
)
}}
{{
moneyFormat
(
childItem
.
UnitPrice
)
}}
</p>
</p>
</div>
</div>
...
@@ -276,7 +277,8 @@
...
@@ -276,7 +277,8 @@
<tr
class=
"splitP ScenicTr"
v-for=
'(item,index) in list.DiningList'
>
<tr
class=
"splitP ScenicTr"
v-for=
'(item,index) in list.DiningList'
>
<td>
{{
item
.
UseTimeStr
}}
</td>
<td>
{{
item
.
UseTimeStr
}}
</td>
<td>
<td>
<p
style=
"height: 60px!important; display: flex;align-items: center; padding:0 20px;"
v-for=
"subItem in item.DiningSummaryList"
>
<p
style=
"height: 60px!important; display: flex;align-items: center; padding:0 20px;"
v-for=
"subItem in item.DiningSummaryList"
>
{{
subItem
.
RealName
?
subItem
.
RealName
:
subItem
.
DiningName
}}
{{
subItem
.
RealName
?
subItem
.
RealName
:
subItem
.
DiningName
}}
</p>
</p>
</td>
</td>
...
@@ -294,14 +296,15 @@
...
@@ -294,14 +296,15 @@
</td>
</td>
<td>
<td>
<div
v-for=
"subItem in item.DiningSummaryList"
>
<div
v-for=
"subItem in item.DiningSummaryList"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
>
{{
childItem
.
Discount
}}
{{
childItem
.
Discount
}}
</p>
</p>
</div>
</div>
</td>
</td>
<td>
<td>
<div
v-for=
"subItem in item.DiningSummaryList"
>
<div
v-for=
"subItem in item.DiningSummaryList"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
class=
"cursorpointer text-decoration"
@
click=
"goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'bookDinnerStatisticsDetails')"
>
<p
v-for=
"childItem in subItem.DiningPriceList"
class=
"cursorpointer text-decoration"
@
click=
"goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'bookDinnerStatisticsDetails')"
>
{{
moneyFormat
(
childItem
.
PeoplePrice
)
}}
{{
moneyFormat
(
childItem
.
PeoplePrice
)
}}
</p>
</p>
</div>
</div>
...
@@ -393,7 +396,8 @@
...
@@ -393,7 +396,8 @@
</td>
</td>
<td>
<td>
<div
v-for=
"subItem in item.ScenicStatisticsList"
>
<div
v-for=
"subItem in item.ScenicStatisticsList"
>
<p
v-for=
"o in subItem.TicketPriceList"
class=
"cursorpointer text-decoration"
@
click=
"goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'admissionStatisticsDetails')"
>
<p
v-for=
"o in subItem.TicketPriceList"
class=
"cursorpointer text-decoration"
@
click=
"goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'admissionStatisticsDetails')"
>
{{
moneyFormat
(
o
.
PeoplePrice
)
}}
{{
moneyFormat
(
o
.
PeoplePrice
)
}}
</p>
</p>
</div>
</div>
...
@@ -451,18 +455,27 @@
...
@@ -451,18 +455,27 @@
<th>
财务单号
</th>
<th>
财务单号
</th>
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
<tr
v-for=
'(item, index) in nav'
>
<tr
v-for=
'(item, index) in nav'
>
<td
:rowspan=
"nav.length"
width=
"180"
v-if=
"index===0"
>
总金额:
{{
moneyFormat
(
TotalNav
.
reimburseTotalPrice
.
PlanPrice
)
}}
</td>
<td
:rowspan=
"nav.length"
width=
"180"
v-if=
"index===0"
>
总金额:
{{
moneyFormat
(
TotalNav
.
reimburseTotalPrice
.
PlanPrice
)
}}
</td>
<td>
{{
item
.
TCNUMS
}}
</td>
<td>
{{
item
.
TCNUMS
}}
</td>
<td
style=
"display: flex;align-items: center;padding: 5px 20px; height: 40px;"
>
<td
style=
"display: flex;align-items: center;padding: 5px 20px; height: 40px;"
>
<p
style=
"padding-right: 20px;"
v-if=
"item.LeaderGetPrice>0"
>
已领款:
<span
style=
"color: red;"
>
{{
moneyFormat
(
item
.
LeaderGetPrice
)
}}
</span></p>
<p
style=
"padding-right: 20px;"
v-if=
"item.LeaderGetPrice>0"
>
已领款:
<span
<el-input
v-if=
"item.LeaderGetPrice
<
(
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0
.
95
)"
class=
"w300"
type=
"number"
v-model=
"item.LeaderGetPriceT"
></el-input>
style=
"color: red;"
>
{{
moneyFormat
(
item
.
LeaderGetPrice
)
}}
</span></p>
<el-input
v-if=
"item.LeaderGetPrice
<
(
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0
.
95
)"
class=
"w300"
type=
"number"
v-model=
"item.LeaderGetPriceT"
></el-input>
</td>
</td>
<td>
<td>
<p
v-for=
"(subItem, subIndex) in item.FinanceIds"
><span
class=
"cursorpointer text-decoration"
@
click=
"goFncUrl('FinancialDocumentsDetail', subItem.FinanceId)"
>
{{
subItem
.
FinanceId
}}
</span>
<span
class=
"cursorpointer text-decoration"
@
click=
"goFncUrl('Application', subItem.FinanceId)"
v-if=
"subItem.IsPublic === 4"
>
申请书
</span>
<span
class=
"cursorpointer text-decoration"
@
click=
"goFncUrl('DebitNote', subItem.FinanceId)"
>
借支单
</span></p>
<p
v-for=
"(subItem, subIndex) in item.FinanceIds"
><span
class=
"cursorpointer text-decoration"
@
click=
"goFncUrl('FinancialDocumentsDetail', subItem.FinanceId)"
>
{{
subItem
.
FinanceId
}}
</span>
<span
class=
"cursorpointer text-decoration"
@
click=
"goFncUrl('Application', subItem.FinanceId)"
v-if=
"subItem.IsPublic === 4"
>
申请书
</span>
<span
class=
"cursorpointer text-decoration"
@
click=
"goFncUrl('DebitNote', subItem.FinanceId)"
>
借支单
</span></p>
</td>
</td>
<td
width=
"80"
class=
"_zhidan"
>
<td
width=
"80"
class=
"_zhidan"
>
<input
type=
"button"
v-if=
"isUpdate=='true' && item.LeaderGetPrice
<
(
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0
.
95
)"
value=
"制单"
class=
"normalBtn"
@
click=
"goZhiDan(item)"
/>
<input
type=
"button"
v-if=
"isUpdate=='true' && item.LeaderGetPrice
<
(
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0
.
95
)"
value=
"制单"
class=
"normalBtn"
@
click=
"goZhiDan(item)"
/>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -480,38 +493,44 @@
...
@@ -480,38 +493,44 @@
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isUpdate
:
'false'
,
isUpdate
:
'false'
,
loading
:
false
,
loading
:
false
,
defaultSelectValue
:
0
,
defaultSelectValue
:
0
,
initialIndex
:
0
,
initialIndex
:
0
,
picIsShow
:
false
,
picIsShow
:
false
,
picObj
:[],
picObj
:
[],
TemporaryItem
:{},
TemporaryItem
:
{},
msg
:{
msg
:
{
TCIDs
:
''
,
TCIDs
:
''
,
NewCombinationNum
:
''
NewCombinationNum
:
''
},
},
list
:[],
list
:
[],
nav
:[],
nav
:
[],
TravelDayNum
:
0
,
TravelDayNum
:
0
,
RealityNum
:
0
,
RealityNum
:
0
,
UseCount
:
''
,
UseCount
:
''
,
//定团号
//定团号
NewCombinationNum
:
''
,
NewCombinationNum
:
''
,
TotalNav
:
[],
TotalNav
:
[],
LeaderGetPrice
:
0
,
LeaderGetPrice
:
0
,
}
}
},
},
methods
:
{
methods
:
{
goFncUrl
:
function
(
path
,
id
)
{
goFncUrl
:
function
(
path
,
id
)
{
this
.
$router
.
push
({
name
:
path
,
query
:{
"id"
:
id
,
blank
:
'y'
}
})
this
.
$router
.
push
({
name
:
path
,
query
:
{
"id"
:
id
,
blank
:
'y'
}
})
},
},
goHotelDetail
:
function
(
id
,
num
,
TCNUM
,
path
)
{
goHotelDetail
:
function
(
id
,
num
,
TCNUM
,
path
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
path
,
name
:
path
,
query
:{
query
:
{
"id"
:
id
,
"id"
:
id
,
"NewCombinationNum"
:
num
,
"NewCombinationNum"
:
num
,
"TCNUM"
:
TCNUM
,
"TCNUM"
:
TCNUM
,
...
@@ -522,17 +541,16 @@
...
@@ -522,17 +541,16 @@
goZhiDan
:
function
(
obj
)
{
goZhiDan
:
function
(
obj
)
{
let
allMoney
=
this
.
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0.95
let
allMoney
=
this
.
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0.95
let
totailMoney
=
0
let
totailMoney
=
0
this
.
nav
.
forEach
(
x
=>
{
this
.
nav
.
forEach
(
x
=>
{
totailMoney
+=
parseFloat
(
x
.
LeaderGetPriceT
)
totailMoney
+=
parseFloat
(
x
.
LeaderGetPriceT
)
totailMoney
+=
x
.
LeaderGetPrice
totailMoney
+=
x
.
LeaderGetPrice
})
})
console
.
log
(
allMoney
,
totailMoney
)
if
((
allMoney
-
totailMoney
)
<
0
)
return
this
.
$message
.
error
(
'最大领款为预付合计金额的95%!'
)
if
((
allMoney
-
totailMoney
)
<
0
)
return
this
.
$message
.
error
(
'最大领款为预付合计金额的95%!'
)
if
(
!
obj
.
LeaderGetPriceT
||
obj
.
LeaderGetPriceT
<=
0
)
return
this
.
$message
.
error
(
'请输入金额!'
)
if
(
!
obj
.
LeaderGetPriceT
||
obj
.
LeaderGetPriceT
<=
0
)
return
this
.
$message
.
error
(
'请输入金额!'
)
let
TCIDARR
=
[
obj
.
TCIDS
]
let
TCIDARR
=
[
obj
.
TCIDS
]
let
orderObj
=
{
let
orderObj
=
{
OrderID
:
0
,
OrderID
:
0
,
OrderSource
:
8
,
OrderSource
:
8
,
Obj
:
{},
Obj
:
{},
SourceID
:
0
,
SourceID
:
0
,
TCIDList
:
TCIDARR
,
TCIDList
:
TCIDARR
,
...
@@ -540,10 +558,10 @@
...
@@ -540,10 +558,10 @@
Money
:
obj
.
LeaderGetPriceT
,
Money
:
obj
.
LeaderGetPriceT
,
TCNUMS
:
obj
.
TCNUMS
TCNUMS
:
obj
.
TCNUMS
}
}
let
id
=
[
43
,
48
]
let
id
=
[
43
,
48
]
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'ChoiceAddFinancialDocuments'
,
name
:
'ChoiceAddFinancialDocuments'
,
query
:{
query
:
{
"Type"
:
2
,
"Type"
:
2
,
"templateID"
:
JSON
.
stringify
(
id
),
"templateID"
:
JSON
.
stringify
(
id
),
"companyID"
:
obj
.
OutBranchId
,
"companyID"
:
obj
.
OutBranchId
,
...
@@ -553,10 +571,10 @@
...
@@ -553,10 +571,10 @@
}
}
});
});
},
},
addOtherList
(
index
,
id
)
{
addOtherList
(
index
,
id
)
{
this
.
list
.
OtherOrderReportList
.
OtherList
.
push
({
this
.
list
.
OtherOrderReportList
.
OtherList
.
push
({
OrderType
:
'1'
,
OrderType
:
'1'
,
ID
:
0
,
ID
:
0
,
UseDate
:
''
,
UseDate
:
''
,
CostProject
:
'0'
,
CostProject
:
'0'
,
TotalNum
:
'0'
,
TotalNum
:
'0'
,
...
@@ -564,19 +582,19 @@
...
@@ -564,19 +582,19 @@
Rebate
:
'0'
,
Rebate
:
'0'
,
TotalPrice
:
'0'
,
TotalPrice
:
'0'
,
Remark
:
''
,
Remark
:
''
,
TCIDs
:
this
.
$route
.
query
.
id
,
TCIDs
:
this
.
$route
.
query
.
id
,
TCID
:
id
,
TCID
:
id
,
UseCount
:
this
.
UseCount
,
UseCount
:
this
.
UseCount
,
VoucherPicList
:
[]
VoucherPicList
:
[]
})
})
},
},
deleteOtherListItem
(
outIndex
,
index
)
{
deleteOtherListItem
(
outIndex
,
index
)
{
this
.
list
.
OtherOrderReportList
.
OtherList
.
splice
(
index
,
1
)
this
.
list
.
OtherOrderReportList
.
OtherList
.
splice
(
index
,
1
)
},
},
addSelfPlayingIncomeList
(
index
,
id
)
{
addSelfPlayingIncomeList
(
index
,
id
)
{
this
.
list
.
OtherOrderReportList
.
SelfPlayingIncomeList
.
push
({
this
.
list
.
OtherOrderReportList
.
SelfPlayingIncomeList
.
push
({
OrderType
:
'4'
,
OrderType
:
'4'
,
ID
:
0
,
ID
:
0
,
UseDate
:
''
,
UseDate
:
''
,
CostProject
:
0
,
CostProject
:
0
,
TotalNum
:
'0'
,
TotalNum
:
'0'
,
...
@@ -584,19 +602,19 @@
...
@@ -584,19 +602,19 @@
Rebate
:
'0'
,
Rebate
:
'0'
,
TotalPrice
:
'0'
,
TotalPrice
:
'0'
,
Remark
:
''
,
Remark
:
''
,
TCID
:
id
,
TCID
:
id
,
UseCount
:
this
.
UseCount
,
UseCount
:
this
.
UseCount
,
TCIDs
:
this
.
$route
.
query
.
id
,
TCIDs
:
this
.
$route
.
query
.
id
,
VoucherPicList
:
[]
VoucherPicList
:
[]
})
})
},
},
deleteSelfPlayingIncomeListItem
(
outIndex
,
index
)
{
deleteSelfPlayingIncomeListItem
(
outIndex
,
index
)
{
this
.
list
.
OtherOrderReportList
.
SelfPlayingIncomeList
.
splice
(
index
,
1
)
this
.
list
.
OtherOrderReportList
.
SelfPlayingIncomeList
.
splice
(
index
,
1
)
},
},
addSelfPlayingExpendList
(
index
,
id
)
{
addSelfPlayingExpendList
(
index
,
id
)
{
this
.
list
.
OtherOrderReportList
.
SelfPlayingExpendList
.
push
({
this
.
list
.
OtherOrderReportList
.
SelfPlayingExpendList
.
push
({
OrderType
:
'5'
,
OrderType
:
'5'
,
ID
:
0
,
ID
:
0
,
UseDate
:
''
,
UseDate
:
''
,
CostProject
:
''
,
CostProject
:
''
,
TotalNum
:
'0'
,
TotalNum
:
'0'
,
...
@@ -604,53 +622,53 @@
...
@@ -604,53 +622,53 @@
Rebate
:
'0'
,
Rebate
:
'0'
,
TotalPrice
:
'0'
,
TotalPrice
:
'0'
,
Remark
:
''
,
Remark
:
''
,
TCID
:
id
,
TCID
:
id
,
UseCount
:
this
.
UseCount
,
UseCount
:
this
.
UseCount
,
TCIDs
:
this
.
$route
.
query
.
id
,
TCIDs
:
this
.
$route
.
query
.
id
,
VoucherPicList
:
[]
VoucherPicList
:
[]
})
})
},
},
deleteSelfPlayingExpendList
(
outIndex
,
index
)
{
deleteSelfPlayingExpendList
(
outIndex
,
index
)
{
this
.
list
.
OtherOrderReportList
.
SelfPlayingExpendList
.
splice
(
index
,
1
)
this
.
list
.
OtherOrderReportList
.
SelfPlayingExpendList
.
splice
(
index
,
1
)
},
},
busTotalPrice
(
obj
){
busTotalPrice
(
obj
)
{
let
totalPrice
=
0
let
totalPrice
=
0
obj
.
forEach
(
item
=>
{
obj
.
forEach
(
item
=>
{
totalPrice
+=
Number
(
item
.
CostPrice
)
+
Number
(
item
.
HighSpeedPrice
)
+
Number
(
item
.
StopPrice
)
totalPrice
+=
Number
(
item
.
CostPrice
)
+
Number
(
item
.
HighSpeedPrice
)
+
Number
(
item
.
StopPrice
)
})
})
return
this
.
moneyFormat
(
totalPrice
)
return
this
.
moneyFormat
(
totalPrice
)
},
},
hotelTotalPrice
(
obj
){
hotelTotalPrice
(
obj
)
{
let
totalPrice
=
0
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
UnitPrice
*
(
x
.
BookNum
-
x
.
HotelDiscount
)
*
(
1
-
x
.
RebateRatio
/
100
)
totalPrice
+=
x
.
UnitPrice
*
(
x
.
BookNum
-
x
.
HotelDiscount
)
*
(
1
-
x
.
RebateRatio
/
100
)
})
})
return
this
.
moneyFormat
(
totalPrice
)
return
this
.
moneyFormat
(
totalPrice
)
},
},
diningTotalPrice
(
obj
){
diningTotalPrice
(
obj
)
{
let
totalPrice
=
0
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
PeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
PeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
})
})
return
this
.
moneyFormat
(
totalPrice
)
return
this
.
moneyFormat
(
totalPrice
)
},
},
scenicTotalPrice
(
obj
){
scenicTotalPrice
(
obj
)
{
let
totalPrice
=
0
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
UsePeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
UsePeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
})
})
return
this
.
moneyFormat
(
totalPrice
)
return
this
.
moneyFormat
(
totalPrice
)
},
},
otherTotalPrice
(
obj
){
otherTotalPrice
(
obj
)
{
let
totalPrice
=
0
let
totalPrice
=
0
obj
.
forEach
(
item
=>
{
obj
.
forEach
(
item
=>
{
totalPrice
+=
item
.
TotalNum
*
item
.
UnitPrice
*
(
1
-
item
.
Rebate
/
100
)
totalPrice
+=
item
.
TotalNum
*
item
.
UnitPrice
*
(
1
-
item
.
Rebate
/
100
)
})
})
return
this
.
moneyFormat
(
totalPrice
)
return
this
.
moneyFormat
(
totalPrice
)
},
},
saveData
()
{
saveData
()
{
this
.
apipost
(
'dmcstatistics_post_SetOtherOrderList'
,
this
.
list
.
OtherOrderReportList
,
res
=>
{
this
.
apipost
(
'dmcstatistics_post_SetOtherOrderList'
,
this
.
list
.
OtherOrderReportList
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
getNav
()
this
.
getNav
()
this
.
getList
()
this
.
getList
()
...
@@ -659,145 +677,300 @@
...
@@ -659,145 +677,300 @@
}
}
},
err
=>
{})
},
err
=>
{})
},
},
saveitem
(
obj
){
saveitem
(
obj
)
{
this
.
TemporaryItem
=
obj
this
.
TemporaryItem
=
obj
},
},
analyzeItem
(
obj
,
index
){
//预览
analyzeItem
(
obj
,
index
)
{
//预览
this
.
picObj
=
[]
this
.
picObj
=
[]
obj
.
forEach
(
item
=>
{
obj
.
forEach
(
item
=>
{
this
.
picObj
.
push
(
item
.
url
)
this
.
picObj
.
push
(
item
.
url
)
})
})
this
.
initialIndex
=
index
this
.
initialIndex
=
index
this
.
picIsShow
=
true
this
.
picIsShow
=
true
},
},
peopleStrToWord
(
str
){
peopleStrToWord
(
str
)
{
if
(
str
==
'1'
)
if
(
str
==
'1'
)
return
'成人'
return
'成人'
if
(
str
==
'2'
)
if
(
str
==
'2'
)
return
'儿童'
return
'儿童'
if
(
str
==
'3'
)
if
(
str
==
'3'
)
return
'婴儿'
return
'婴儿'
},
},
UseDinnerTypeToWord
(
str
){
UseDinnerTypeToWord
(
str
)
{
if
(
str
==
1
)
if
(
str
==
1
)
return
'早餐'
return
'早餐'
if
(
str
==
2
)
if
(
str
==
2
)
return
'午餐'
return
'午餐'
if
(
str
==
3
)
if
(
str
==
3
)
return
'晚餐'
return
'晚餐'
},
},
getNav
(){
getNav
()
{
let
_this
=
this
let
_this
=
this
this
.
apipost
(
'dmcstatistics_post_GetHotelStaticsByTCIDs'
,{
TCIDs
:
this
.
$route
.
query
.
id
},
res
=>
{
this
.
apipost
(
'dmcstatistics_post_GetHotelStaticsByTCIDs'
,
{
if
(
res
.
data
.
resultCode
==
1
){
TCIDs
:
this
.
$route
.
query
.
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
nav
=
res
.
data
.
data
let
nav
=
res
.
data
.
data
let
num
=
0
;
let
num
=
0
;
nav
.
forEach
(
x
=>
{
nav
.
forEach
(
x
=>
{
nav
.
LeaderGetPriceT
=
0
;
nav
.
LeaderGetPriceT
=
0
;
num
+=
x
.
LeaderGetPrice
num
+=
x
.
LeaderGetPrice
})
})
nav
.
forEach
((
x
,
i
)
=>
{
nav
.
forEach
((
x
,
i
)
=>
{
if
(
i
===
0
)
{
if
(
i
===
0
)
{
x
.
LeaderGetPriceT
=
Math
.
floor
(((
_this
.
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0.95
)
-
num
)
*
100
)
/
100
;
x
.
LeaderGetPriceT
=
Math
.
floor
(((
_this
.
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0.95
)
-
num
)
*
100
)
/
100
;
}
else
{
}
else
{
x
.
LeaderGetPriceT
=
0
x
.
LeaderGetPriceT
=
0
}
}
})
})
this
.
nav
=
nav
this
.
nav
=
nav
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
getTotalNav
(){
getTotalNav
()
{
this
.
apipost
(
'dmcstatistics_post_GetNewPlanTotalPrice'
,{
TCIDs
:
this
.
$route
.
query
.
id
},
res
=>
{
this
.
apipost
(
'dmcstatistics_post_GetNewPlanTotalPrice'
,
{
if
(
res
.
data
.
resultCode
==
1
){
TCIDs
:
this
.
$route
.
query
.
id
this
.
TotalNav
=
res
.
data
.
data
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
TotalNav
=
res
.
data
.
data
this
.
getNav
()
this
.
getNav
()
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
getList
(){
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
apipost
(
'dmcstatistics_post_GetGroupLeaderUserMoneyPlan'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'dmcstatistics_post_GetGroupLeaderUserMoneyPlan'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
loading
=
false
console
.
log
(
res
.
data
.
data
)
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
l
oading
=
false
this
.
l
ist
=
res
.
data
.
data
;
this
.
list
=
res
.
data
.
data
this
.
UseCount
=
this
.
list
.
UseCount
;
this
.
UseCount
=
this
.
list
.
UseCount
this
.
list
.
OtherOrderReportList
.
OtherList
.
forEach
(
x
=>
{
this
.
list
.
OtherOrderReportList
.
OtherList
.
forEach
(
x
=>
{
x
.
CostProject
=
x
.
CostProject
.
toString
();
x
.
CostProject
=
x
.
CostProject
.
toString
()
});
})
}
else
{
// this.list.OtherOrderReportList.forEach(item=>{
this
.
$message
.
error
(
res
.
data
.
message
);
// item.OtherList.forEach(x=>{
// x.CostProject=x.CostProject.toString()
// })
// })
}
else
{
this
.
loading
=
false
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
},
},
mounted
()
{
mounted
()
{
this
.
isUpdate
=
this
.
$route
.
query
.
isUpdate
;
this
.
isUpdate
=
this
.
$route
.
query
.
isUpdate
;
this
.
msg
.
TCIDs
=
this
.
$route
.
query
.
id
;
this
.
msg
.
TCIDs
=
this
.
$route
.
query
.
id
;
this
.
NewCombinationNum
=
this
.
$route
.
query
.
NewCombinationNum
;
this
.
NewCombinationNum
=
this
.
$route
.
query
.
NewCombinationNum
;
this
.
getList
()
this
.
getList
()
this
.
getTotalNav
()
this
.
getTotalNav
()
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.leaderReimbursementTableNav
{
background
:
#d6cece
;
width
:
100%
;
margin
:
20px
0
;}
.leaderReimbursementTableNav
{
.leaderReimbursementTableNav
tr
th
{
background
:
#E6E6E6
;
height
:
40px
;
font-size
:
12px
;
color
:
#333
;}
background
:
#d6cece
;
.leaderReimbursementTableNav
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;
font-size
:
12px
;}
width
:
100%
;
.leaderReimbursementTableNav
tr
td
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;
font-size
:
12px
;
padding
:
0
10px
;}
margin
:
20px
0
;
.leaderReimbursementTable
{
background
:
#d6cece
;
width
:
100%
;
margin
:
20px
0
;}
}
.leaderReimbursementTable
tbody
{
margin
:
10px
0
;}
.leaderReimbursementTable
tr
th
{
background
:
#E6E6E6
;
height
:
40px
;
font-size
:
12px
;
color
:
#333
;}
.leaderReimbursementTableNav
tr
th
{
.leaderReimbursementTable
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;}
background
:
#E6E6E6
;
.leaderReimbursementTable
tr
.title
td
{
background
:
#E6E6E6
;}
height
:
40px
;
.leaderReimbursementTable
tr
td
div
{
word-break
:
normal
;}
font-size
:
12px
;
.leaderReimbursementTable
tr
td
.bgwhite
{
background
:
#fff
!important
;
font-weight
:
bold
;}
color
:
#333
;
.leaderReimbursementTable
tr
td
{
font-size
:
12px
;}
}
.leaderReimbursementTable
tr
td
.pDateStyle
{
border-bottom
:
1px
solid
#E6E6E6
;
min-height
:
24px
;
line-height
:
24px
;
margin-top
:
0
;
box-sizing
:
content-box
;
padding
:
0
10px
;}
.leaderReimbursementTable
tr
td
.pDateStyle
:last-child
{
border-bottom
:
none
;}
.leaderReimbursementTableNav
tr
{
.leaderReimbursementTable
tr
td
.pDateStyle
>
span
:after
{
content
:
'/'
;}
background
:
#fff
;
.leaderReimbursementTable
tr
td
.pDateStyle
>
span
:last-child:after
{
content
:
''
}
text-align
:
center
;
.leaderReimbursementTable
tr
td
.link
p
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;}
height
:
40px
;
.leaderReimbursementTable
tr
td
.phoverStype
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;}
font-size
:
12px
;
.leaderReimbursementTable
tr
td
input
[
type
=
'text'
]
{
height
:
20px
!important
;
padding
:
0
;
text-align
:
center
;}
}
.leaderReimbursementTable
tr
td
.sel
input
{
height
:
34px
!important
;}
.leaderReimbursementTable
.splitP
td
>
p
{
height
:
20px
;
line-height
:
20px
;
border-bottom
:
1px
solid
#ccc
;}
.leaderReimbursementTableNav
tr
td
{
.leaderReimbursementTable
.splitP
td
>
p
:last-child
{
border-bottom
:
none
;}
background
:
#fff
;
.leaderReimbursementTable
.ScenicTr
td
>
div
{
height
:
60px
;
line-height
:
60px
;
border-bottom
:
1px
solid
#ccc
;}
text-align
:
center
;
.leaderReimbursementTable
.ScenicTr
td
>
div
:last-child
{
border-bottom
:
none
;}
height
:
40px
;
.leaderReimbursementTable
.ScenicTr
td
>
div
p
{
line-height
:
20px
;
border-bottom
:
1px
solid
#ccc
;}
font-size
:
12px
;
.leaderReimbursementTable
.ScenicTr
td
>
div
p
:last-child
{
border-bottom
:
none
;}
padding
:
0
10px
;
}
.leaderReimbursementTable
.HotelTr
td
>
div
{
/*height:100px*/
line-height
:
100px
;
border-bottom
:
1px
solid
#ccc
;}
.leaderReimbursementTable
.HotelTr
td
>
div
:last-child
{
border-bottom
:
none
;}
.leaderReimbursementTable
{
.leaderReimbursementTable
.HotelTr
td
>
div
p
{
line-height
:
19px
;
border-bottom
:
1px
solid
#ccc
;}
background
:
#d6cece
;
.leaderReimbursementTable
.HotelTr
td
>
div
p
:last-child
{
border-bottom
:
none
;}
width
:
100%
;
.leaderReimbursementTable
tr
td
.el-upload-list
{
display
:
none
;}
margin
:
20px
0
;
.leaderReimbursementTable
.uploadListDiv
{
height
:
100%
!important
;
overflow-y
:
auto
;
width
:
100%
;}
}
.leaderReimbursementTable
.uploadListDiv
>
p
{
border-bottom
:
1px
solid
#ccc
;
cursor
:
pointer
;
width
:
100%
!important
;}
.leaderReimbursementTable
.uploadListDiv
>
p
:last-child
{
border-bottom
:
none
;}
.leaderReimbursementTable
tbody
{
.leaderReimbursementTable
.uploadListDiv
>
p
i
{
color
:
#999
;
vertical-align
:
sub
;
margin
:
3px
;}
margin
:
10px
0
;
.leaderReimbursementTable
.jdtd
>
div
{
height
:
auto
!important
;
padding
:
0
10px
;}
}
.leaderReimbursementTable
.leaderPayTable
.el-input__prefix
{
display
:
none
;}
.leaderReimbursementTable
.HotelTr
td
div
.alcenter
>
div
:nth-child
(
2
)
{
border-top
:
1px
solid
#ccc
;}
.leaderReimbursementTable
tr
th
{
.leaderReimbursementTable
td
._zhidan
{
background
:
#E6E6E6
;
height
:
40px
;
font-size
:
12px
;
color
:
#333
;
}
.leaderReimbursementTable
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;
}
.leaderReimbursementTable
tr
.title
td
{
background
:
#E6E6E6
;
}
.leaderReimbursementTable
tr
td
div
{
word-break
:
normal
;
}
.leaderReimbursementTable
tr
td
.bgwhite
{
background
:
#fff
!important
;
font-weight
:
bold
;
}
.leaderReimbursementTable
tr
td
{
font-size
:
12px
;
}
.leaderReimbursementTable
tr
td
.pDateStyle
{
border-bottom
:
1px
solid
#E6E6E6
;
min-height
:
24px
;
line-height
:
24px
;
margin-top
:
0
;
box-sizing
:
content-box
;
padding
:
0
10px
;
}
.leaderReimbursementTable
tr
td
.pDateStyle
:last-child
{
border-bottom
:
none
;
}
.leaderReimbursementTable
tr
td
.pDateStyle
>
span
:after
{
content
:
'/'
;
}
.leaderReimbursementTable
tr
td
.pDateStyle
>
span
:last-child:after
{
content
:
''
}
.leaderReimbursementTable
tr
td
.link
p
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.leaderReimbursementTableNav
._go_detail
p
{
.leaderReimbursementTable
tr
td
.phoverStype
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;
}
.leaderReimbursementTable
tr
td
input
[
type
=
'text'
]
{
height
:
20px
!important
;
padding
:
0
;
text-align
:
center
;
}
.leaderReimbursementTable
tr
td
.sel
input
{
height
:
34px
!important
;
}
.leaderReimbursementTable
.splitP
td
>
p
{
height
:
20px
;
line-height
:
20px
;
border-bottom
:
1px
solid
#ccc
;
}
.leaderReimbursementTable
.splitP
td
>
p
:last-child
{
border-bottom
:
none
;
}
.leaderReimbursementTable
.ScenicTr
td
>
div
{
height
:
60px
;
line-height
:
60px
;
border-bottom
:
1px
solid
#ccc
;
}
.leaderReimbursementTable
.ScenicTr
td
>
div
:last-child
{
border-bottom
:
none
;
}
.leaderReimbursementTable
.ScenicTr
td
>
div
p
{
line-height
:
20px
;
border-bottom
:
1px
solid
#ccc
;
}
.leaderReimbursementTable
.ScenicTr
td
>
div
p
:last-child
{
border-bottom
:
none
;
}
.leaderReimbursementTable
.HotelTr
td
>
div
{
line-height
:
100px
;
border-bottom
:
1px
solid
#ccc
;
}
.leaderReimbursementTable
.HotelTr
td
>
div
:last-child
{
border-bottom
:
none
;
}
.leaderReimbursementTable
.HotelTr
td
>
div
p
{
line-height
:
19px
;
border-bottom
:
1px
solid
#ccc
;
}
.leaderReimbursementTable
.HotelTr
td
>
div
p
:last-child
{
border-bottom
:
none
;
}
.leaderReimbursementTable
tr
td
.el-upload-list
{
display
:
none
;
}
.leaderReimbursementTable
.uploadListDiv
{
height
:
100%
!important
;
overflow-y
:
auto
;
width
:
100%
;
}
.leaderReimbursementTable
.uploadListDiv
>
p
{
border-bottom
:
1px
solid
#ccc
;
cursor
:
pointer
;
width
:
100%
!important
;
}
.leaderReimbursementTable
.uploadListDiv
>
p
:last-child
{
border-bottom
:
none
;
}
.leaderReimbursementTable
.uploadListDiv
>
p
i
{
color
:
#999
;
vertical-align
:
sub
;
margin
:
3px
;
}
.leaderReimbursementTable
.jdtd
>
div
{
height
:
auto
!important
;
padding
:
0
10px
;
}
.leaderReimbursementTable
.leaderPayTable
.el-input__prefix
{
display
:
none
;
}
.leaderReimbursementTable
.HotelTr
td
div
.alcenter
>
div
:nth-child
(
2
)
{
border-top
:
1px
solid
#ccc
;
}
.leaderReimbursementTable
td
._zhidan
{
cursor
:
pointer
;
}
.leaderReimbursementTableNav
._go_detail
p
{
cursor
:
pointer
;
cursor
:
pointer
;
line-height
:
25px
;
line-height
:
25px
;
}
}
...
...
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