Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
zhengke
jz_Travel
Commits
9c21c180
Commit
9c21c180
authored
Jul 22, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2aa10059
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
707 additions
and
661 deletions
+707
-661
headeDatas.vue
pages/teamLeader/components/headeDatas.vue
+707
-661
No files found.
pages/teamLeader/components/headeDatas.vue
View file @
9c21c180
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
url("@/asset/css/flex.css")
;
@import
url("@/asset/css/flex.css")
;
.headeDatasTime
{
.headeDatasTime
{
padding-top
:
25rpx
;
padding-top
:
25rpx
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.headeDatasTime
img
{
.headeDatasTime
img
{
display
:
inline-block
;
display
:
inline-block
;
}
}
.headeDatasTime
text
{
.headeDatasTime
text
{
padding
:
0
20rpx
;
padding
:
0
20rpx
;
}
}
.headeDatasTimeImg1
{
.headeDatasTimeImg1
{
width
:
30rpx
;
width
:
30rpx
;
height
:
30rpx
;
height
:
30rpx
;
}
}
.headeDatasTimeImg2
{
.headeDatasTimeImg2
{
width
:
12rpx
;
width
:
12rpx
;
height
:
7rpx
;
height
:
7rpx
;
}
}
.headeDatasTitle
{
.headeDatasTitle
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
36rpx
;
font-size
:
36rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
padding
:
30rpx
0
49rpx
0
;
padding
:
30rpx
0
49rpx
0
;
}
}
.headeDatasText
{
.headeDatasText
{
color
:
#CDDCFF
;
color
:
#CDDCFF
;
font-size
:
24rpx
;
font-size
:
24rpx
;
}
}
.headeDatasNumText
{
.headeDatasNumText
{
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#fff
;
color
:
#fff
;
}
}
.headeDatasNumText
text
:first-child
{
.headeDatasNumText
text
:first-child
{
margin-right
:
10rpx
;
margin-right
:
10rpx
;
}
}
.headeDatasNumText
text
:last-child
{
.headeDatasNumText
text
:last-child
{
font-size
:
58rpx
;
font-size
:
58rpx
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.headeDatasCenterBox
{
.headeDatasCenterBox
{
font-weight
:
400
;
font-weight
:
400
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.headeDatasCenter
{
.headeDatasCenter
{
margin-top
:
1px
;
margin-top
:
1px
;
}
}
.headeDatasCenter
view
{
.headeDatasCenter
view
{
background
:
#3A7DF5
;
background
:
#3A7DF5
;
}
}
.headeDatasCenter
view
{
.headeDatasCenter
view
{
padding
:
22rpx
30rpx
;
padding
:
22rpx
30rpx
;
}
}
.headeDatasCenter
view
:first-child
{
.headeDatasCenter
view
:first-child
{
min-width
:
150rpx
;
min-width
:
150rpx
;
white-space
:
nowrap
;
white-space
:
nowrap
;
background
:
rgba
(
41
,
94
,
235
,
.2
);
background
:
rgba
(
41
,
94
,
235
,
.2
);
}
}
.headeDatasCenter
view
:nth-child
(
2
)
{
.headeDatasCenter
view
:nth-child
(
2
)
{
min-width
:
170rpx
;
min-width
:
170rpx
;
padding
:
22rpx
0rpx
22rpx
30rpx
;
padding
:
22rpx
0rpx
22rpx
30rpx
;
}
}
.headeDatasCenterBox.car
.headeDatasCenter
view
:first-child
{
.headeDatasCenterBox.car
.headeDatasCenter
view
:first-child
{
width
:
175rpx
;
width
:
175rpx
;
}
}
.triangle
{
.triangle
{
width
:
0
;
width
:
0
;
height
:
0
;
height
:
0
;
...
@@ -75,14 +93,16 @@
...
@@ -75,14 +93,16 @@
border-right
:
8rpx
solid
transparent
;
border-right
:
8rpx
solid
transparent
;
border-top
:
8rpx
solid
#fff
;
border-top
:
8rpx
solid
#fff
;
}
}
.headeDatasCurrency
{
.headeDatasCurrency
{
background
:
#EBA429
;
background
:
#EBA429
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
padding
:
15rpx
30rpx
;
padding
:
15rpx
30rpx
;
}
}
.nameTitle
{
.nameTitle
{
max-width
:
500rpx
;
max-width
:
500rpx
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -94,9 +114,11 @@
...
@@ -94,9 +114,11 @@
<view
class=
"PX40 PB40"
>
<view
class=
"PX40 PB40"
>
<view
class=
"row justify-center"
>
<view
class=
"row justify-center"
>
<view
class=
"headeDatasTime row items-center"
@
click=
"showOptionVisible(1)"
>
<view
class=
"headeDatasTime row items-center"
@
click=
"showOptionVisible(1)"
>
<img
class=
"headeDatasTimeImg1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669341003114.png"
/>
<img
class=
"headeDatasTimeImg1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669341003114.png"
/>
<text>
{{
dateObj
.
name
}}
</text>
<text>
{{
dateObj
.
name
}}
</text>
<img
class=
"headeDatasTimeImg2"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
<img
class=
"headeDatasTimeImg2"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
</view>
</view>
</view>
</view>
<view
class=
"headeDatasTitle row justify-center"
>
<view
class=
"headeDatasTitle row justify-center"
>
...
@@ -106,31 +128,42 @@
...
@@ -106,31 +128,42 @@
</view>
</view>
<view
v-if=
"params.type>1&¶ms.type<5"
class=
"row justify-center items-center"
>
<view
v-if=
"params.type>1&¶ms.type<5"
class=
"row justify-center items-center"
>
<view
v-if=
"params.type==2"
class=
"row justify-center items-center"
@
click=
"showOptionVisible(3)"
>
<view
v-if=
"params.type==2"
class=
"row justify-center items-center"
@
click=
"showOptionVisible(3)"
>
<view
class=
"nameTitle"
>
{{ datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo?datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo:datas.HotelOrderList[datas.hotelIndex].NewHotelName }}
</view>
<view
class=
"nameTitle"
>
<img
class=
"headeDatasTimeImg2 PL20"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
{{ datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo?datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo:datas.HotelOrderList[datas.hotelIndex].NewHotelName }}
</view>
<img
class=
"headeDatasTimeImg2 PL20"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
</view>
</view>
<view
v-if=
"params.type==3"
class=
"row justify-center items-center"
@
click=
"showOptionVisible(4)"
>
<view
v-if=
"params.type==3"
class=
"row justify-center items-center"
@
click=
"showOptionVisible(4)"
>
<view
class=
"nameTitle"
>
<view
class=
"nameTitle"
>
{{ datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo?datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo:datas.DiningSummaryList[datas.diningIndex].NewDiningName }}
{{ datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo?datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo:datas.DiningSummaryList[datas.diningIndex].NewDiningName }}
({{ datas.DiningSummaryList[datas.diningIndex].UseDinnerTypeStr }})
</view>
({{ datas.DiningSummaryList[datas.diningIndex].UseDinnerTypeStr }})
<img
class=
"headeDatasTimeImg2 PL20"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
</view>
<img
class=
"headeDatasTimeImg2 PL20"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
</view>
</view>
<view
v-if=
"params.type==4"
class=
"row justify-center items-center"
@
click=
"showOptionVisible(5)"
>
<view
v-if=
"params.type==4"
class=
"row justify-center items-center"
@
click=
"showOptionVisible(5)"
>
<view
class=
"nameTitle"
>
<view
class=
"nameTitle"
>
{{ datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo?datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo:datas.ScenicStatisticsList[datas.scenicIndex].ScenicName }}
{{ datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo?datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo:datas.ScenicStatisticsList[datas.scenicIndex].ScenicName }}
</view>
</view>
<img
class=
"headeDatasTimeImg2 PL20"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
<img
class=
"headeDatasTimeImg2 PL20"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"
/>
</view>
</view>
<img
@
click=
"showEditorVisible"
class=
"PL40"
style=
"width: 30rpx;height: 30rpx;display: inline-block;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638870767566609082.png"
/>
<img
@
click=
"showEditorVisible"
class=
"PL40"
style=
"width: 30rpx;height: 30rpx;display: inline-block;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638870767566609082.png"
/>
</view>
</view>
</view>
</view>
<view
class=
"headeDatasText text-center"
>
计划金额
</view>
<view
class=
"headeDatasText text-center"
>
计划金额
</view>
<view
class=
"headeDatasNumText text-center"
>
<view
class=
"headeDatasNumText text-center"
>
<text>
¥
</text>
<text>
¥
</text>
<text
v-if=
"params.type==1"
>
{{ datas.TotalPrice?datas.TotalPrice:0 }}
</text>
<text
v-if=
"params.type==1"
>
{{ datas.TotalPrice?datas.TotalPrice:0 }}
</text>
<text
v-else-if=
"params.type==2"
>
{{ datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice?datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice:0 }}
</text>
<text
<text
v-else-if=
"params.type==3"
>
{{ datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice?datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice:0 }}
</text>
v-else-if=
"params.type==2"
>
{{ datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice?datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice:0 }}
</text>
<text
v-else-if=
"params.type==4"
>
{{ datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice?datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice:0 }}
</text>
<text
v-else-if=
"params.type==3"
>
{{ datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice?datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice:0 }}
</text>
<text
v-else-if=
"params.type==4"
>
{{ datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice?datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice:0 }}
</text>
</view>
</view>
</view>
</view>
<view
v-if=
"params.type==1"
class=
"headeDatasCenterBox car"
stripe
>
<view
v-if=
"params.type==1"
class=
"headeDatasCenterBox car"
stripe
>
...
@@ -190,46 +223,42 @@
...
@@ -190,46 +223,42 @@
</view>
</view>
</view>
</view>
<!-- 单选 -->
<!-- 单选 -->
<singleChoice
v-if=
"optionVisible"
<singleChoice
v-if=
"optionVisible"
:current=
"optionObj.id"
:list=
"optionList"
@
close=
"close"
:current=
"optionObj.id"
@
change=
"popupOption"
></singleChoice>
:list=
"optionList"
@
close=
"close"
@
change=
"popupOption"
></singleChoice>
<!-- 编辑 -->
<!-- 编辑 -->
<editor
v-if=
"editorVisible"
<editor
v-if=
"editorVisible"
:title=
"editorObj.name"
@
close=
"close"
@
change=
"popupEditor"
></editor>
:title=
"editorObj.name"
@
close=
"close"
@
change=
"popupEditor"
></editor>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
singleChoice
from
"./singleChoice"
;
import
singleChoice
from
"./singleChoice"
;
import
editor
from
"./editor"
;
import
editor
from
"./editor"
;
export
default
{
export
default
{
props
:[
'data'
,
'currencyList'
],
props
:
[
'data'
,
'currencyList'
],
components
:
{
components
:
{
singleChoice
,
singleChoice
,
editor
,
editor
,
},
},
data
()
{
data
()
{
return
{
return
{
editorObj
:
{
editorObj
:
{
name
:
'酒店'
,
name
:
'酒店'
,
type
:
2
type
:
2
},
},
editorVisible
:
false
,
editorVisible
:
false
,
optionVisible
:
false
,
optionVisible
:
false
,
optionType
:
0
,
optionType
:
0
,
optionList
:
[],
//下拉list
optionList
:
[],
//下拉list
dateList
:
[],
//日期下拉
dateList
:
[],
//日期下拉
BusList
:
[],
//车信息
BusList
:
[],
//车信息
HotelOrderListReport
:
[],
//酒店信息,合团
HotelOrderListReport
:
[],
//酒店信息,合团
DiningList
:
[],
//餐厅
DiningList
:
[],
//餐厅
ScenicList
:
[],
//景点
ScenicList
:
[],
//景点
OtherList
:
[],
//其他订单信息
OtherList
:
[],
//其他订单信息
TipList
:
[],
//小费收入
TipList
:
[],
//小费收入
TeamList
:
[],
//团费小计
TeamList
:
[],
//团费小计
SelfPlayingIncomeList
:
[],
//自费收入
SelfPlayingIncomeList
:
[],
//自费收入
SelfPlayingExpendList
:
[],
//自费支出
SelfPlayingExpendList
:
[],
//自费支出
LeaderShopList
:
[],
//购物报账
LeaderShopList
:
[],
//购物报账
optionObj
:
{
optionObj
:
{
id
:
0
,
id
:
0
,
name
:
''
,
name
:
''
,
...
@@ -238,35 +267,60 @@ export default {
...
@@ -238,35 +267,60 @@ export default {
currencyObj
:
{
currencyObj
:
{
id
:
0
,
id
:
0
,
name
:
'选择币种'
,
name
:
'选择币种'
,
},
//币种id
},
//币种id
dateObj
:
{},
//日期id
dateObj
:
{},
//日期id
hotelObj
:
{},
//酒店id
hotelObj
:
{},
//酒店id
hotelList
:
[],
hotelList
:
[],
diningObj
:
{},
//餐id
diningObj
:
{},
//餐id
diningList
:
[],
diningList
:
[],
scenicObj
:
{},
//门票
scenicObj
:
{},
//门票
scenicsList
:
[],
scenicsList
:
[],
params
:
{},
params
:
{},
datas
:
null
,
//展示数据
datas
:
null
,
//展示数据
dataIndex
:
0
,
dataIndex
:
0
,
houseTypeList
:[
houseTypeList
:
[{
{
name
:
'单间'
,
id
:
1
},
name
:
'单间'
,
{
name
:
'标准间'
,
id
:
2
},
id
:
1
{
name
:
'大床房'
,
id
:
3
},
},
{
name
:
'三人间'
,
id
:
4
},
{
{
name
:
'双人间'
,
id
:
5
},
name
:
'标准间'
,
{
name
:
'不占床人'
,
id
:
6
},
id
:
2
},
{
name
:
'大床房'
,
id
:
3
},
{
name
:
'三人间'
,
id
:
4
},
{
name
:
'双人间'
,
id
:
5
},
{
name
:
'不占床人'
,
id
:
6
},
],
],
peopleTypeList
:[
peopleTypeList
:
[{
{
name
:
'成人'
,
id
:
1
},
name
:
'成人'
,
{
name
:
'小孩'
,
id
:
2
},
id
:
1
{
name
:
'婴儿'
,
id
:
3
}
},
{
name
:
'小孩'
,
id
:
2
},
{
name
:
'婴儿'
,
id
:
3
}
]
]
}
}
},
},
watch
:
{
watch
:
{
data
:
{
data
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
this
.
params
=
JSON
.
parse
(
JSON
.
stringify
(
newVal
))
this
.
params
=
JSON
.
parse
(
JSON
.
stringify
(
newVal
))
this
.
BusList
=
this
.
params
.
BusList
//车信息
this
.
BusList
=
this
.
params
.
BusList
//车信息
this
.
HotelOrderListReport
=
this
.
params
.
HotelOrderListReport
//酒店信息,合团
this
.
HotelOrderListReport
=
this
.
params
.
HotelOrderListReport
//酒店信息,合团
...
@@ -279,60 +333,60 @@ export default {
...
@@ -279,60 +333,60 @@ export default {
this
.
SelfPlayingExpendList
=
this
.
params
.
OtherOrderInfo
.
SelfPlayingExpendList
//自费支出
this
.
SelfPlayingExpendList
=
this
.
params
.
OtherOrderInfo
.
SelfPlayingExpendList
//自费支出
this
.
LeaderShopList
=
this
.
params
.
OtherOrderInfo
.
LeaderShopList
//购物报账
this
.
LeaderShopList
=
this
.
params
.
OtherOrderInfo
.
LeaderShopList
//购物报账
if
(
this
.
params
.
type
==
1
)
{
if
(
this
.
params
.
type
==
1
)
{
this
.
dataIndex
=
this
.
params
.
dataIndex1
this
.
dataIndex
=
this
.
params
.
dataIndex1
this
.
getRenderingDataBus
(
0
)
this
.
getRenderingDataBus
(
0
)
}
else
if
(
this
.
params
.
type
==
2
)
{
}
else
if
(
this
.
params
.
type
==
2
)
{
this
.
dataIndex
=
this
.
params
.
dataIndex2
this
.
dataIndex
=
this
.
params
.
dataIndex2
this
.
getRenderingDataHotel
(
0
)
this
.
getRenderingDataHotel
(
0
)
}
else
if
(
this
.
params
.
type
==
3
)
{
}
else
if
(
this
.
params
.
type
==
3
)
{
this
.
dataIndex
=
this
.
params
.
dataIndex3
this
.
dataIndex
=
this
.
params
.
dataIndex3
this
.
getRenderingDataDining
(
0
)
this
.
getRenderingDataDining
(
0
)
}
else
if
(
this
.
params
.
type
==
4
)
{
}
else
if
(
this
.
params
.
type
==
4
)
{
this
.
dataIndex
=
this
.
params
.
dataIndex4
this
.
dataIndex
=
this
.
params
.
dataIndex4
this
.
getRenderingDataScenic
(
0
)
this
.
getRenderingDataScenic
(
0
)
}
}
},
},
deep
:
true
,
deep
:
true
,
immediate
:
false
,
immediate
:
false
,
},
},
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
getPeopleName
(
type
)
{
getPeopleName
(
type
)
{
let
findIndex
=
this
.
peopleTypeList
.
findIndex
(
x
=>
x
.
id
==
type
)
let
findIndex
=
this
.
peopleTypeList
.
findIndex
(
x
=>
x
.
id
==
type
)
if
(
findIndex
!=
-
1
)
return
this
.
peopleTypeList
[
findIndex
].
name
if
(
findIndex
!=
-
1
)
return
this
.
peopleTypeList
[
findIndex
].
name
else
return
''
else
return
''
},
},
getHotelName
(
type
)
{
getHotelName
(
type
)
{
let
findIndex
=
this
.
houseTypeList
.
findIndex
(
x
=>
x
.
id
==
type
)
let
findIndex
=
this
.
houseTypeList
.
findIndex
(
x
=>
x
.
id
==
type
)
if
(
findIndex
!=
-
1
)
return
this
.
houseTypeList
[
findIndex
].
name
if
(
findIndex
!=
-
1
)
return
this
.
houseTypeList
[
findIndex
].
name
else
return
''
else
return
''
},
},
popupEditor
(
value
)
{
popupEditor
(
value
)
{
let
text
=
value
.
detail
.
__args__
let
text
=
value
.
detail
.
__args__
if
(
this
.
editorObj
.
type
==
2
)
{
if
(
this
.
editorObj
.
type
==
2
)
{
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
ActualUseInfo
=
text
[
0
]
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
ActualUseInfo
=
text
[
0
]
this
.
HotelOrderListReport
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
HotelOrderListReport
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
HotelOrderListReport
=
this
.
HotelOrderListReport
this
.
params
.
HotelOrderListReport
=
this
.
HotelOrderListReport
}
else
if
(
this
.
params
.
type
==
3
)
{
}
else
if
(
this
.
params
.
type
==
3
)
{
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
ReimburseList
.
ActualUseInfo
=
text
[
0
]
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
ReimburseList
.
ActualUseInfo
=
text
[
0
]
this
.
DiningList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
DiningList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
DiningList
=
this
.
DiningList
this
.
params
.
DiningList
=
this
.
DiningList
}
else
if
(
this
.
params
.
type
==
4
)
{
}
else
if
(
this
.
params
.
type
==
4
)
{
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
ReimburseList
.
ActualUseInfo
=
text
[
0
]
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
ReimburseList
.
ActualUseInfo
=
text
[
0
]
this
.
ScenicList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
ScenicList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
ScenicList
=
this
.
ScenicList
this
.
params
.
ScenicList
=
this
.
ScenicList
}
}
this
.
$emit
(
'change'
,
this
.
params
)
this
.
$emit
(
'change'
,
this
.
params
)
},
},
showEditorVisible
()
{
showEditorVisible
()
{
let
name
=
''
let
name
=
''
if
(
this
.
params
.
type
==
2
)
name
=
'酒店'
if
(
this
.
params
.
type
==
2
)
name
=
'酒店'
else
if
(
this
.
params
.
type
==
3
)
name
=
'餐食'
else
if
(
this
.
params
.
type
==
3
)
name
=
'餐食'
else
if
(
this
.
params
.
type
==
4
)
name
=
'门票'
else
if
(
this
.
params
.
type
==
4
)
name
=
'门票'
this
.
editorObj
=
{
this
.
editorObj
=
{
name
:
name
,
name
:
name
,
type
:
this
.
params
.
type
type
:
this
.
params
.
type
...
@@ -340,29 +394,22 @@ export default {
...
@@ -340,29 +394,22 @@ export default {
this
.
editorVisible
=
true
this
.
editorVisible
=
true
},
},
// 门票
// 门票
getRenderingDataScenic
(
type
)
{
getRenderingDataScenic
(
type
)
{
if
(
type
==
0
)
{
if
(
type
==
0
)
{
this
.
dateList
=
[]
this
.
dateList
=
[]
for
(
let
i
=
0
;
i
<
this
.
ScenicList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
ScenicList
.
length
;
i
++
)
{
let
data
=
this
.
ScenicList
[
i
]
let
data
=
this
.
ScenicList
[
i
]
if
(
data
.
Id
==
undefined
){
if
(
data
.
Id
==
undefined
)
{
this
.
$set
(
this
.
ScenicList
[
i
],
`Id`
,
i
+
1
);
this
.
$set
(
this
.
ScenicList
[
i
],
`Id`
,
i
+
1
);
}
}
// if(data.TotalMoney==undefined){
// this.$set(this.ScenicList[i], `TotalMoney`, 0);
// }
// 存选择项
// if(data.scenicIndex==undefined){
// this.$set(this.ScenicList[i], `scenicIndex`, 0);
// }
this
.
dateList
.
push
({
this
.
dateList
.
push
({
name
:
data
.
UseTimeStr
,
name
:
data
.
UseTimeStr
,
id
:
i
+
1
,
id
:
i
+
1
,
})
})
}
}
this
.
datas
=
this
.
ScenicList
[
this
.
dataIndex
]
this
.
datas
=
this
.
ScenicList
[
this
.
dataIndex
]
this
.
scenicsList
=
[]
this
.
scenicsList
=
[]
this
.
datas
.
ScenicStatisticsList
.
forEach
(
x
=>
{
this
.
datas
.
ScenicStatisticsList
.
forEach
(
x
=>
{
this
.
scenicsList
.
push
({
this
.
scenicsList
.
push
({
name
:
x
.
ScenicName
,
name
:
x
.
ScenicName
,
id
:
x
.
ID
id
:
x
.
ID
...
@@ -370,49 +417,49 @@ export default {
...
@@ -370,49 +417,49 @@ export default {
})
})
this
.
scenicObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
scenicsList
[
this
.
datas
.
scenicIndex
]))
this
.
scenicObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
scenicsList
[
this
.
datas
.
scenicIndex
]))
}
}
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
ScenicList
[
this
.
dataIndex
].
Id
})
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
return
x
.
id
==
this
.
ScenicList
[
this
.
dataIndex
].
Id
})
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
ScenicList
[
this
.
dataIndex
].
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
ReimburseList
.
CurrencyId
})
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
return
x
.
id
==
this
.
ScenicList
[
this
.
dataIndex
].
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
]
.
ReimburseList
.
CurrencyId
})
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
else
this
.
currencyObj
=
{
else
this
.
currencyObj
=
{
id
:
0
,
id
:
0
,
name
:
'选择币种'
name
:
'选择币种'
}
}
for
(
let
i
=
0
;
i
<
this
.
datas
.
ScenicStatisticsList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
datas
.
ScenicStatisticsList
.
length
;
i
++
)
{
this
.
datas
.
ScenicStatisticsList
[
i
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ScenicStatisticsList
[
i
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ScenicStatisticsList
[
i
].
CurrencyStr
=
this
.
currencyObj
.
id
?
this
.
currencyObj
.
name
:
''
this
.
datas
.
ScenicStatisticsList
[
i
].
CurrencyStr
=
this
.
currencyObj
.
id
?
this
.
currencyObj
.
name
:
''
this
.
datas
.
ScenicStatisticsList
[
i
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ScenicStatisticsList
[
i
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
for
(
let
j
=
0
;
j
<
this
.
datas
.
ScenicStatisticsList
[
i
].
ReimburseList
.
ReimburseDetailsList
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
this
.
datas
.
ScenicStatisticsList
[
i
].
ReimburseList
.
ReimburseDetailsList
this
.
datas
.
ScenicStatisticsList
[
i
].
ReimburseList
.
ReimburseDetailsList
[
j
].
CurrencyId
=
this
.
currencyObj
.
id
.
length
;
j
++
)
{
this
.
datas
.
ScenicStatisticsList
[
i
].
ReimburseList
.
ReimburseDetailsList
[
j
].
CurrencyId
=
this
.
currencyObj
.
id
}
}
}
}
},
},
// 餐食
// 餐食
getRenderingDataDining
(
type
)
{
getRenderingDataDining
(
type
)
{
if
(
type
==
0
)
{
if
(
type
==
0
)
{
this
.
dateList
=
[]
this
.
dateList
=
[]
for
(
let
i
=
0
;
i
<
this
.
DiningList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
DiningList
.
length
;
i
++
)
{
let
data
=
this
.
DiningList
[
i
]
let
data
=
this
.
DiningList
[
i
]
if
(
data
.
Id
==
undefined
){
if
(
data
.
Id
==
undefined
)
{
this
.
$set
(
this
.
DiningList
[
i
],
`Id`
,
i
+
1
);
this
.
$set
(
this
.
DiningList
[
i
],
`Id`
,
i
+
1
);
}
}
// if(data.TotalMoney==undefined){
// this.$set(this.DiningList[i], `TotalMoney`, 0);
// }
// 存选择项
// if(data.diningIndex==undefined){
// this.$set(this.DiningList[i], `diningIndex`, 0);
// }
this
.
dateList
.
push
({
this
.
dateList
.
push
({
name
:
data
.
UseTimeStr
,
name
:
data
.
UseTimeStr
,
id
:
i
+
1
,
id
:
i
+
1
,
})
})
}
}
this
.
datas
=
this
.
DiningList
[
this
.
dataIndex
]
this
.
datas
=
this
.
DiningList
[
this
.
dataIndex
]
this
.
diningList
=
[]
this
.
diningList
=
[]
this
.
datas
.
DiningSummaryList
.
forEach
(
x
=>
{
this
.
datas
.
DiningSummaryList
.
forEach
(
x
=>
{
this
.
diningList
.
push
({
this
.
diningList
.
push
({
name
:
x
.
DiningName
,
name
:
x
.
DiningName
,
id
:
x
.
DiningID
id
:
x
.
DiningID
...
@@ -420,49 +467,48 @@ export default {
...
@@ -420,49 +467,48 @@ export default {
})
})
this
.
diningObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
diningList
[
this
.
datas
.
diningIndex
]))
this
.
diningObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
diningList
[
this
.
datas
.
diningIndex
]))
}
}
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
DiningList
[
this
.
dataIndex
].
Id
})
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
return
x
.
id
==
this
.
DiningList
[
this
.
dataIndex
].
Id
})
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
DiningList
[
this
.
dataIndex
].
DiningSummaryList
[
this
.
datas
.
diningIndex
].
ReimburseList
.
CurrencyId
})
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
return
x
.
id
==
this
.
DiningList
[
this
.
dataIndex
].
DiningSummaryList
[
this
.
datas
.
diningIndex
]
.
ReimburseList
.
CurrencyId
})
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
else
this
.
currencyObj
=
{
else
this
.
currencyObj
=
{
id
:
0
,
id
:
0
,
name
:
'选择币种'
name
:
'选择币种'
}
}
for
(
let
i
=
0
;
i
<
this
.
datas
.
DiningSummaryList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
datas
.
DiningSummaryList
.
length
;
i
++
)
{
this
.
datas
.
DiningSummaryList
[
i
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
i
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
i
].
CurrencyStr
=
this
.
currencyObj
.
id
?
this
.
currencyObj
.
name
:
''
this
.
datas
.
DiningSummaryList
[
i
].
CurrencyStr
=
this
.
currencyObj
.
id
?
this
.
currencyObj
.
name
:
''
this
.
datas
.
DiningSummaryList
[
i
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
i
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
for
(
let
j
=
0
;
j
<
this
.
datas
.
DiningSummaryList
[
i
].
ReimburseList
.
ReimburseDetailsList
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
this
.
datas
.
DiningSummaryList
[
i
].
ReimburseList
.
ReimburseDetailsList
.
length
;
j
++
)
{
this
.
datas
.
DiningSummaryList
[
i
].
ReimburseList
.
ReimburseDetailsList
[
j
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
i
].
ReimburseList
.
ReimburseDetailsList
[
j
].
CurrencyId
=
this
.
currencyObj
.
id
}
}
}
}
},
},
// 酒店
// 酒店
getRenderingDataHotel
(
type
)
{
getRenderingDataHotel
(
type
)
{
if
(
type
==
0
)
{
if
(
type
==
0
)
{
this
.
dateList
=
[]
this
.
dateList
=
[]
for
(
let
i
=
0
;
i
<
this
.
HotelOrderListReport
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
HotelOrderListReport
.
length
;
i
++
)
{
let
data
=
this
.
HotelOrderListReport
[
i
]
let
data
=
this
.
HotelOrderListReport
[
i
]
if
(
data
.
Id
==
undefined
){
if
(
data
.
Id
==
undefined
)
{
this
.
$set
(
this
.
HotelOrderListReport
[
i
],
`Id`
,
i
+
1
);
this
.
$set
(
this
.
HotelOrderListReport
[
i
],
`Id`
,
i
+
1
);
}
}
// if(data.TotalMoney==undefined){
// this.$set(this.HotelOrderListReport[i], `TotalMoney`, 0);
// }
// 存选择项
// if(data.hotelIndex==undefined){
// this.$set(this.HotelOrderListReport[i], `hotelIndex`, 0);
// }
this
.
dateList
.
push
({
this
.
dateList
.
push
({
name
:
data
.
UseTimeStr
,
name
:
data
.
UseTimeStr
,
id
:
i
+
1
,
id
:
i
+
1
,
})
})
}
}
this
.
datas
=
this
.
HotelOrderListReport
[
this
.
dataIndex
]
this
.
datas
=
this
.
HotelOrderListReport
[
this
.
dataIndex
]
this
.
hotelList
=
[]
this
.
hotelList
=
[]
this
.
datas
.
HotelOrderList
.
forEach
(
x
=>
{
this
.
datas
.
HotelOrderList
.
forEach
(
x
=>
{
this
.
hotelList
.
push
({
this
.
hotelList
.
push
({
name
:
x
.
HotelName
,
name
:
x
.
HotelName
,
id
:
x
.
HotelId
id
:
x
.
HotelId
...
@@ -470,166 +516,165 @@ export default {
...
@@ -470,166 +516,165 @@ export default {
})
})
this
.
hotelObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
hotelList
[
this
.
datas
.
hotelIndex
]))
this
.
hotelObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
hotelList
[
this
.
datas
.
hotelIndex
]))
}
}
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
HotelOrderListReport
[
this
.
dataIndex
].
Id
})
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
return
x
.
id
==
this
.
HotelOrderListReport
[
this
.
dataIndex
].
Id
})
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
HotelOrderListReport
[
this
.
dataIndex
].
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
CurrencyId
})
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
return
x
.
id
==
this
.
HotelOrderListReport
[
this
.
dataIndex
].
HotelOrderList
[
this
.
datas
.
hotelIndex
]
.
ReimburseList
.
CurrencyId
})
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
else
this
.
currencyObj
=
{
else
this
.
currencyObj
=
{
id
:
0
,
id
:
0
,
name
:
'选择币种'
name
:
'选择币种'
}
}
for
(
let
i
=
0
;
i
<
this
.
datas
.
HotelOrderList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
datas
.
HotelOrderList
.
length
;
i
++
)
{
this
.
datas
.
HotelOrderList
[
i
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
i
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
i
].
CurrencyStr
=
this
.
currencyObj
.
id
?
this
.
currencyObj
.
name
:
''
this
.
datas
.
HotelOrderList
[
i
].
CurrencyStr
=
this
.
currencyObj
.
id
?
this
.
currencyObj
.
name
:
''
this
.
datas
.
HotelOrderList
[
i
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
i
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
for
(
let
j
=
0
;
j
<
this
.
datas
.
HotelOrderList
[
i
].
ReimburseList
.
ReimburseDetailsList
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
this
.
datas
.
HotelOrderList
[
i
].
ReimburseList
.
ReimburseDetailsList
.
length
;
j
++
)
{
this
.
datas
.
HotelOrderList
[
i
].
ReimburseList
.
ReimburseDetailsList
[
j
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
i
].
ReimburseList
.
ReimburseDetailsList
[
j
].
CurrencyId
=
this
.
currencyObj
.
id
}
}
}
}
// console.log(this.datas,'======酒店')
},
},
// 车
// 车
getRenderingDataBus
(
type
)
{
getRenderingDataBus
(
type
)
{
if
(
type
==
0
)
{
if
(
type
==
0
)
{
this
.
dateList
=
[]
this
.
dateList
=
[]
for
(
let
i
=
0
;
i
<
this
.
BusList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
BusList
.
length
;
i
++
)
{
let
data
=
this
.
BusList
[
i
]
let
data
=
this
.
BusList
[
i
]
if
(
data
.
TotalMoney
==
undefined
)
{
if
(
data
.
TotalMoney
==
undefined
)
{
this
.
$set
(
this
.
BusList
[
i
],
`TotalMoney`
,
0
);
this
.
$set
(
this
.
BusList
[
i
],
`TotalMoney`
,
0
);
}
}
if
(
data
.
CheckDateId
==
undefined
)
{
this
.
$set
(
this
.
BusList
[
i
],
`CheckDateId`
,
i
+
1
);
}
this
.
dateList
.
push
({
this
.
dateList
.
push
({
name
:
data
.
PlanDateStr
,
name
:
data
.
PlanDateStr
,
id
:
data
.
Id
,
id
:
i
+
1
,
})
})
}
}
this
.
datas
=
this
.
BusList
[
this
.
dataIndex
]
this
.
datas
=
this
.
BusList
[
this
.
dataIndex
]
}
}
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
BusList
[
this
.
dataIndex
].
Id
})
let
dates
=
this
.
dateList
.
filter
(
x
=>
{
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
return
x
.
id
==
this
.
BusList
[
this
.
dataIndex
].
CheckDateId
})
if
(
dates
.
length
==
0
)
dates
=
[
this
.
dateList
[
0
]]
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
dates
[
0
]))
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
return
x
.
id
==
this
.
BusList
[
this
.
dataIndex
].
ReimburseList
.
CurrencyId
})
let
list
=
this
.
currencyList
.
filter
(
x
=>
{
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
return
x
.
id
==
this
.
BusList
[
this
.
dataIndex
].
ReimburseList
.
CurrencyId
})
if
(
list
.
length
==
1
)
list
=
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
0
]))
else
this
.
currencyObj
=
{
else
this
.
currencyObj
=
{
id
:
0
,
id
:
0
,
name
:
'选择币种'
name
:
'选择币种'
}
}
this
.
datas
.
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
},
},
showOptionVisible
(
type
)
{
showOptionVisible
(
type
)
{
this
.
optionType
=
type
this
.
optionType
=
type
if
(
this
.
optionType
==
1
)
{
//时间
if
(
this
.
optionType
==
1
)
{
//时间
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dateList
))
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dateList
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dateObj
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dateObj
))
}
else
if
(
this
.
optionType
==
2
)
{
//币种
}
else
if
(
this
.
optionType
==
2
)
{
//币种
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
currencyList
))
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
currencyList
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
currencyObj
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
currencyObj
))
}
else
if
(
this
.
optionType
==
3
)
{
//酒店
}
else
if
(
this
.
optionType
==
3
)
{
//酒店
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
hotelList
))
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
hotelList
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
hotelObj
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
hotelObj
))
}
else
if
(
this
.
optionType
==
4
)
{
//餐食
}
else
if
(
this
.
optionType
==
4
)
{
//餐食
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
diningList
))
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
diningList
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
diningObj
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
diningObj
))
}
else
if
(
this
.
optionType
==
5
)
{
//门票
}
else
if
(
this
.
optionType
==
5
)
{
//门票
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
scenicsList
))
this
.
optionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
scenicsList
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
scenicObj
))
this
.
optionObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
scenicObj
))
}
}
this
.
optionVisible
=
true
this
.
optionVisible
=
true
},
},
close
()
{
close
()
{
this
.
optionVisible
=
false
this
.
optionVisible
=
false
this
.
editorVisible
=
false
this
.
editorVisible
=
false
},
},
// 获取选中时间及币种
// 获取选中时间及币种
popupOption
(
value
)
{
popupOption
(
value
)
{
this
.
optionVisible
=
false
this
.
optionVisible
=
false
// this.optionObj.id = value
if
(
this
.
optionType
==
1
)
{
//日期
if
(
this
.
optionType
==
1
)
{
//日期
this
.
getDate
(
value
)
this
.
getDate
(
value
)
}
else
if
(
this
.
optionType
==
2
)
{
//币种
}
else
if
(
this
.
optionType
==
2
)
{
//币种
this
.
getCurrency
(
value
)
this
.
getCurrency
(
value
)
}
else
if
(
this
.
optionType
==
3
)
{
//酒店
}
else
if
(
this
.
optionType
==
3
)
{
//酒店
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
)
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
)
if
(
this
.
dataIndex
!=
-
1
)
{
if
(
this
.
dataIndex
!=
-
1
)
{
this
.
datas
.
hotelIndex
=
newDataIndex
this
.
datas
.
hotelIndex
=
newDataIndex
this
.
HotelOrderListReport
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
HotelOrderListReport
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
HotelOrderListReport
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
HotelOrderListReport
))
this
.
params
.
HotelOrderListReport
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
HotelOrderListReport
))
// this.optionObj = this.optionList[this.dataIndex]
// this.dataIndex = newDataIndex
// this.getRenderingDataHotel()
}
}
this
.
hotelObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
this
.
hotelObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
}
else
if
(
this
.
optionType
==
4
)
{
//餐食
}
else
if
(
this
.
optionType
==
4
)
{
//餐食
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
)
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
)
if
(
this
.
dataIndex
!=
-
1
)
{
if
(
this
.
dataIndex
!=
-
1
)
{
this
.
datas
.
diningIndex
=
newDataIndex
this
.
datas
.
diningIndex
=
newDataIndex
this
.
DiningList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
DiningList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
DiningList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
DiningList
))
this
.
params
.
DiningList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
DiningList
))
// this.optionObj = this.optionList[this.dataIndex]
// this.dataIndex = newDataIndex
// this.getRenderingDataDining()
}
}
this
.
diningObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
this
.
diningObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
}
else
if
(
this
.
optionType
==
5
)
{
//门票
}
else
if
(
this
.
optionType
==
5
)
{
//门票
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
)
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
)
if
(
this
.
dataIndex
!=
-
1
)
{
if
(
this
.
dataIndex
!=
-
1
)
{
this
.
datas
.
scenicIndex
=
newDataIndex
this
.
datas
.
scenicIndex
=
newDataIndex
this
.
ScenicList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
ScenicList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
ScenicList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicList
))
this
.
params
.
ScenicList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicList
))
// this.optionObj = this.optionList[this.dataIndex]
// this.dataIndex = newDataIndex
// this.getRenderingDataScenic()
}
}
this
.
scenicgObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
this
.
scenicgObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
}
}
this
.
$emit
(
'change'
,
this
.
params
)
this
.
$emit
(
'change'
,
this
.
params
)
},
},
getDate
(
value
)
{
getDate
(
value
)
{
this
.
dateObj
.
id
=
value
this
.
dateObj
.
id
=
value
;
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
)
let
newDataIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
id
==
value
);
if
(
this
.
dataIndex
!=
-
1
)
{
if
(
this
.
dataIndex
!=
-
1
)
{
if
(
this
.
params
.
type
==
1
)
{
if
(
this
.
params
.
type
==
1
)
{
this
.
BusList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
BusList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
BusList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
BusList
))
this
.
params
.
BusList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
BusList
))
}
}
this
.
optionObj
=
this
.
optionList
[
this
.
dataIndex
]
this
.
optionObj
=
this
.
optionList
[
this
.
dataIndex
]
this
.
dataIndex
=
newDataIndex
this
.
dataIndex
=
newDataIndex
;
}
}
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
this
.
dateObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
));
if
(
this
.
params
.
type
==
1
){
if
(
this
.
params
.
type
==
1
)
{
this
.
params
.
dataIndex1
=
this
.
dataIndex
this
.
params
.
dataIndex1
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
2
)
{
}
else
if
(
this
.
params
.
type
==
2
)
{
this
.
params
.
dataIndex2
=
this
.
dataIndex
this
.
params
.
dataIndex2
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
3
)
{
}
else
if
(
this
.
params
.
type
==
3
)
{
this
.
params
.
dataIndex3
=
this
.
dataIndex
this
.
params
.
dataIndex3
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
4
)
{
}
else
if
(
this
.
params
.
type
==
4
)
{
this
.
params
.
dataIndex4
=
this
.
dataIndex
this
.
params
.
dataIndex4
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
5
)
{
}
else
if
(
this
.
params
.
type
==
5
)
{
this
.
params
.
dataIndex5
=
this
.
dataIndex
this
.
params
.
dataIndex5
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
6
)
{
}
else
if
(
this
.
params
.
type
==
6
)
{
this
.
params
.
dataIndex6
=
this
.
dataIndex
this
.
params
.
dataIndex6
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
7
){
}
else
if
(
this
.
params
.
type
==
7
)
{
this
.
params
.
dataIndex7
=
this
.
dataIndex
this
.
params
.
dataIndex7
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
8
)
{
}
else
if
(
this
.
params
.
type
==
8
)
{
this
.
params
.
dataIndex8
=
this
.
dataIndex
this
.
params
.
dataIndex8
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
9
)
{
}
else
if
(
this
.
params
.
type
==
9
)
{
this
.
params
.
dataIndex9
=
this
.
dataIndex
this
.
params
.
dataIndex9
=
this
.
dataIndex
}
else
if
(
this
.
params
.
type
==
10
)
{
}
else
if
(
this
.
params
.
type
==
10
)
{
this
.
params
.
dataIndex10
=
this
.
dataIndex
this
.
params
.
dataIndex10
=
this
.
dataIndex
}
}
},
},
getCurrency
(
value
)
{
getCurrency
(
value
)
{
let
list
=
this
.
optionList
.
filter
(
item
=>
{
let
list
=
this
.
optionList
.
filter
(
item
=>
{
return
item
.
id
==
value
return
item
.
id
==
value
})
})
this
.
optionObj
=
list
[
0
]
this
.
optionObj
=
list
[
0
]
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
this
.
currencyObj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
optionObj
))
if
(
this
.
params
.
type
==
1
)
{
if
(
this
.
params
.
type
==
1
)
{
this
.
datas
.
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
this
.
datas
.
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
...
@@ -637,29 +682,30 @@ export default {
...
@@ -637,29 +682,30 @@ export default {
});
});
this
.
BusList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
BusList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
BusList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
BusList
))
this
.
params
.
BusList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
BusList
))
}
else
if
(
this
.
params
.
type
==
2
)
{
}
else
if
(
this
.
params
.
type
==
2
)
{
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
this
.
datas
.
HotelOrderList
[
this
.
datas
.
hotelIndex
].
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
x
.
CurrencyId
=
this
.
currencyObj
.
id
x
.
CurrencyId
=
this
.
currencyObj
.
id
})
})
this
.
HotelOrderListReport
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
HotelOrderListReport
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
HotelOrderListReport
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
HotelOrderListReport
))
this
.
params
.
HotelOrderListReport
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
HotelOrderListReport
))
}
else
if
(
this
.
params
.
type
==
3
)
{
}
else
if
(
this
.
params
.
type
==
3
)
{
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
this
.
datas
.
DiningSummaryList
[
this
.
datas
.
diningIndex
].
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
x
.
CurrencyId
=
this
.
currencyObj
.
id
x
.
CurrencyId
=
this
.
currencyObj
.
id
})
})
this
.
DiningList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
DiningList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
params
.
DiningList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
DiningList
))
this
.
params
.
DiningList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
DiningList
))
}
else
if
(
this
.
params
.
type
==
4
)
{
}
else
if
(
this
.
params
.
type
==
4
)
{
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
CurrencyStr
=
this
.
currencyObj
.
name
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
ReimburseList
.
CurrencyId
=
this
.
currencyObj
.
id
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
this
.
datas
.
ScenicStatisticsList
[
this
.
datas
.
scenicIndex
].
ReimburseList
.
ReimburseDetailsList
.
forEach
(
x
=>
{
x
.
CurrencyId
=
this
.
currencyObj
.
id
x
.
CurrencyId
=
this
.
currencyObj
.
id
})
})
this
.
ScenicList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
this
.
ScenicList
[
this
.
dataIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datas
))
...
@@ -667,5 +713,5 @@ export default {
...
@@ -667,5 +713,5 @@ export default {
}
}
},
},
}
}
}
}
</
script
>
</
script
>
\ No newline at end of file
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