Commit 9c21c180 authored by 黄奎's avatar 黄奎

1

parent 2aa10059
<style lang="scss" scoped> <style lang="scss" scoped>
@import url("@/asset/css/flex.css"); @import url("@/asset/css/flex.css");
.headeDatasTime{
padding-top: 25rpx; .headeDatasTime {
font-weight: 500; padding-top: 25rpx;
font-size: 32rpx; font-weight: 500;
color: #FFFFFF; font-size: 32rpx;
} color: #FFFFFF;
.headeDatasTime img{ }
display: inline-block;
} .headeDatasTime img {
.headeDatasTime text{ display: inline-block;
padding: 0 20rpx; }
}
.headeDatasTimeImg1{ .headeDatasTime text {
width: 30rpx; padding: 0 20rpx;
height: 30rpx; }
}
.headeDatasTimeImg2{ .headeDatasTimeImg1 {
width: 12rpx; width: 30rpx;
height: 7rpx; height: 30rpx;
} }
.headeDatasTitle{
font-weight: 500; .headeDatasTimeImg2 {
font-size: 36rpx; width: 12rpx;
color: #FFFFFF; height: 7rpx;
padding: 30rpx 0 49rpx 0; }
}
.headeDatasText{ .headeDatasTitle {
color: #CDDCFF; font-weight: 500;
font-size: 24rpx; font-size: 36rpx;
} color: #FFFFFF;
.headeDatasNumText{ padding: 30rpx 0 49rpx 0;
font-size: 28rpx; }
color: #fff;
} .headeDatasText {
.headeDatasNumText text:first-child{ color: #CDDCFF;
margin-right: 10rpx; font-size: 24rpx;
} }
.headeDatasNumText text:last-child{
font-size: 58rpx; .headeDatasNumText {
font-family: PingFang SC; font-size: 28rpx;
font-weight: bold; color: #fff;
} }
.headeDatasCenterBox{
font-weight: 400; .headeDatasNumText text:first-child {
font-size: 28rpx; margin-right: 10rpx;
color: #FFFFFF; }
}
.headeDatasCenter{ .headeDatasNumText text:last-child {
margin-top: 1px; font-size: 58rpx;
} font-family: PingFang SC;
.headeDatasCenter view{ font-weight: bold;
background: #3A7DF5; }
}
.headeDatasCenter view{ .headeDatasCenterBox {
padding: 22rpx 30rpx; font-weight: 400;
} font-size: 28rpx;
.headeDatasCenter view:first-child{ color: #FFFFFF;
min-width: 150rpx; }
white-space: nowrap;
background: rgba(41, 94, 235, .2); .headeDatasCenter {
} margin-top: 1px;
.headeDatasCenter view:nth-child(2){ }
min-width: 170rpx;
padding: 22rpx 0rpx 22rpx 30rpx; .headeDatasCenter view {
} background: #3A7DF5;
.headeDatasCenterBox.car .headeDatasCenter view:first-child{ }
width: 175rpx;
} .headeDatasCenter view {
.triangle { padding: 22rpx 30rpx;
width: 0; }
height: 0;
border-left: 8rpx solid transparent; .headeDatasCenter view:first-child {
border-right: 8rpx solid transparent; min-width: 150rpx;
border-top: 8rpx solid #fff; white-space: nowrap;
} background: rgba(41, 94, 235, .2);
.headeDatasCurrency{ }
background: #EBA429;
font-weight: 500; .headeDatasCenter view:nth-child(2) {
font-size: 28rpx; min-width: 170rpx;
color: #FFFFFF; padding: 22rpx 0rpx 22rpx 30rpx;
padding: 15rpx 30rpx; }
}
.nameTitle{ .headeDatasCenterBox.car .headeDatasCenter view:first-child {
max-width: 500rpx; width: 175rpx;
white-space: nowrap; }
overflow: hidden;
text-overflow: ellipsis; .triangle {
} width: 0;
height: 0;
border-left: 8rpx solid transparent;
border-right: 8rpx solid transparent;
border-top: 8rpx solid #fff;
}
.headeDatasCurrency {
background: #EBA429;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
padding: 15rpx 30rpx;
}
.nameTitle {
max-width: 500rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style> </style>
<template> <template>
<view class="headeDatasBox"> <view class="headeDatasBox">
<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"
<text>{{ dateObj.name }}</text> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669341003114.png" />
<img class="headeDatasTimeImg2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"/> <text>{{ dateObj.name }}</text>
</view> <img class="headeDatasTimeImg2"
</view> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png" />
<view class="headeDatasTitle row justify-center"> </view>
<view class="text-center nameTitle" v-if="params.type==1"> </view>
<template v-if="datas.DriverName">{{ datas.DriverName }}({{ datas.DriverTel }})</template> <view class="headeDatasTitle row justify-center">
<template v-else>暂无司机信息</template> <view class="text-center nameTitle" v-if="params.type==1">
</view> <template v-if="datas.DriverName">{{ datas.DriverName }}({{ datas.DriverTel }})</template>
<view v-if="params.type>1&&params.type<5" class="row justify-center items-center"> <template v-else>暂无司机信息</template>
<view v-if="params.type==2" class="row justify-center items-center" @click="showOptionVisible(3)"> </view>
<view class="nameTitle">{{ datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo?datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo:datas.HotelOrderList[datas.hotelIndex].NewHotelName }}</view> <view v-if="params.type>1&&params.type<5" class="row justify-center items-center">
<img class="headeDatasTimeImg2 PL20" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"/> <view v-if="params.type==2" class="row justify-center items-center" @click="showOptionVisible(3)">
</view> <view class="nameTitle">
<view v-if="params.type==3" class="row justify-center items-center" @click="showOptionVisible(4)"> {{ datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo?datas.HotelOrderList[datas.hotelIndex].ReimburseList.ActualUseInfo:datas.HotelOrderList[datas.hotelIndex].NewHotelName }}
<view class="nameTitle"> </view>
{{ datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo?datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo:datas.DiningSummaryList[datas.diningIndex].NewDiningName }} <img class="headeDatasTimeImg2 PL20"
({{ datas.DiningSummaryList[datas.diningIndex].UseDinnerTypeStr }})</view> 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> <view v-if="params.type==3" class="row justify-center items-center" @click="showOptionVisible(4)">
<view v-if="params.type==4" class="row justify-center items-center" @click="showOptionVisible(5)"> <view class="nameTitle">
<view class="nameTitle"> {{ datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo?datas.DiningSummaryList[datas.diningIndex].ReimburseList.ActualUseInfo:datas.DiningSummaryList[datas.diningIndex].NewDiningName }}
{{ datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo?datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo:datas.ScenicStatisticsList[datas.scenicIndex].ScenicName }} ({{ datas.DiningSummaryList[datas.diningIndex].UseDinnerTypeStr }})
</view> </view>
<img class="headeDatasTimeImg2 PL20" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png"/> <img class="headeDatasTimeImg2 PL20"
</view> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.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 v-if="params.type==4" class="row justify-center items-center" @click="showOptionVisible(5)">
</view> <view class="nameTitle">
<view class="headeDatasText text-center">计划金额</view> {{ datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo?datas.ScenicStatisticsList[datas.scenicIndex].ReimburseList.ActualUseInfo:datas.ScenicStatisticsList[datas.scenicIndex].ScenicName }}
<view class="headeDatasNumText text-center"> </view>
<text>¥</text> <img class="headeDatasTimeImg2 PL20"
<text v-if="params.type==1">{{ datas.TotalPrice?datas.TotalPrice:0 }}</text> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638869669873781692.png" />
<text v-else-if="params.type==2">{{ datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice?datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice:0 }}</text> </view>
<text v-else-if="params.type==3">{{ datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice?datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice:0 }}</text> <img @click="showEditorVisible" class="PL40"
<text v-else-if="params.type==4">{{ datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice?datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice:0 }}</text> style="width: 30rpx;height: 30rpx;display: inline-block;"
</view> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638870767566609082.png" />
</view> </view>
<view v-if="params.type==1" class="headeDatasCenterBox car" stripe> </view>
<view class="headeDatasCenter row"> <view class="headeDatasText text-center">计划金额</view>
<view>车牌号</view> <view class="headeDatasNumText text-center">
<view class="flex1">{{ datas.BusCode?datas.BusCode:'暂无' }}</view> <text>¥</text>
</view> <text v-if="params.type==1">{{ datas.TotalPrice?datas.TotalPrice:0 }}</text>
<view class="headeDatasCenter row"> <text
<view>车辆号</view> v-else-if="params.type==2">{{ datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice?datas.HotelOrderList[datas.hotelIndex].TradingTotalPrice:0 }}</text>
<view class="flex1">{{ datas.BusNum?datas.BusNum:'暂无' }}</view> <text
</view> v-else-if="params.type==3">{{ datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice?datas.DiningSummaryList[datas.diningIndex].TradingTotalPrice:0 }}</text>
<view class="headeDatasCenter row"> <text
<view>用车方式</view> v-else-if="params.type==4">{{ datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice?datas.ScenicStatisticsList[datas.scenicIndex].TradingTotalPrice:0 }}</text>
<view class="flex1">{{ datas.AirportPickUpStr?datas.AirportPickUpStr:'暂无' }}</view> </view>
</view> </view>
</view> <view v-if="params.type==1" class="headeDatasCenterBox car" stripe>
<view v-if="params.type==2" class="headeDatasCenterBox" stripe> <view class="headeDatasCenter row">
<view class="headeDatasCenter row"> <view>车牌号</view>
<view>床位</view> <view class="flex1">{{ datas.BusCode?datas.BusCode:'暂无' }}</view>
<view>占床:{{ datas.HotelOrderList[datas.hotelIndex].HouseStatistics.NeedBed }}</view> </view>
<view class="flex1">不占床:{{ datas.HotelOrderList[datas.hotelIndex].HouseStatistics.NoNeedBed }}</view> <view class="headeDatasCenter row">
</view> <view>车辆号</view>
<template v-for="item in datas.HotelOrderList[datas.hotelIndex].OrderDetailsList"> <view class="flex1">{{ datas.BusNum?datas.BusNum:'暂无' }}</view>
<view class="headeDatasCenter row" v-if="item.HouseTypeCount>0"> </view>
<view>{{ getHotelName(item.HouseType) }}</view> <view class="headeDatasCenter row">
<view>数量:{{ item.HouseTypeCount }}</view> <view>用车方式</view>
<view class="flex1">单价:¥{{ item.UnitPrice }}</view> <view class="flex1">{{ datas.AirportPickUpStr?datas.AirportPickUpStr:'暂无' }}</view>
</view> </view>
</template> </view>
</view> <view v-if="params.type==2" class="headeDatasCenterBox" stripe>
<view v-if="params.type==3" class="headeDatasCenterBox din" stripe> <view class="headeDatasCenter row">
<template v-for="item in datas.DiningSummaryList[datas.diningIndex].DiningPriceList"> <view>床位</view>
<view class="headeDatasCenter row"> <view>占床:{{ datas.HotelOrderList[datas.hotelIndex].HouseStatistics.NeedBed }}</view>
<view>{{ getPeopleName(item.PeopleType) }}</view> <view class="flex1">不占床:{{ datas.HotelOrderList[datas.hotelIndex].HouseStatistics.NoNeedBed }}</view>
<view>人数:{{ item.UsePeopleNum }}</view> </view>
<view class="flex1">单价:¥{{ item.PeoplePrice }}</view> <template v-for="item in datas.HotelOrderList[datas.hotelIndex].OrderDetailsList">
</view> <view class="headeDatasCenter row" v-if="item.HouseTypeCount>0">
</template> <view>{{ getHotelName(item.HouseType) }}</view>
</view> <view>数量:{{ item.HouseTypeCount }}</view>
<view v-if="params.type==4" class="headeDatasCenterBox" stripe> <view class="flex1">单价:¥{{ item.UnitPrice }}</view>
<template v-for="item in datas.ScenicStatisticsList[datas.scenicIndex].TicketPriceList"> </view>
<view class="headeDatasCenter row"> </template>
<view>{{ getPeopleName(item.PeopleType) }}</view> </view>
<view>人数:{{ item.PeopleNum }}</view> <view v-if="params.type==3" class="headeDatasCenterBox din" stripe>
<view class="flex1">单价:¥{{ item.PeoplePrice }}</view> <template v-for="item in datas.DiningSummaryList[datas.diningIndex].DiningPriceList">
</view> <view class="headeDatasCenter row">
</template> <view>{{ getPeopleName(item.PeopleType) }}</view>
</view> <view>人数:{{ item.UsePeopleNum }}</view>
<view class="headeDatasCurrency row justify-between" @click="showOptionVisible(2)"> <view class="flex1">单价:¥{{ item.PeoplePrice }}</view>
<view> </view>
实际金额:¥{{ datas&&datas.TotalMoney>=0?datas.TotalMoney.toFixed(2):0.0 }} </template>
</view> </view>
<view class="row items-center"> <view v-if="params.type==4" class="headeDatasCenterBox" stripe>
<text style="color: red;">*</text> <template v-for="item in datas.ScenicStatisticsList[datas.scenicIndex].TicketPriceList">
<text class="ML10">币种:{{ currencyObj.name }}</text> <view class="headeDatasCenter row">
<view class="triangle ML10"></view> <view>{{ getPeopleName(item.PeopleType) }}</view>
</view> <view>人数:{{ item.PeopleNum }}</view>
</view> <view class="flex1">单价:¥{{ item.PeoplePrice }}</view>
<!-- 单选 --> </view>
<singleChoice v-if="optionVisible" </template>
:current="optionObj.id" </view>
:list="optionList" <view class="headeDatasCurrency row justify-between" @click="showOptionVisible(2)">
@close="close" @change="popupOption"></singleChoice> <view>
<!-- 编辑 --> 实际金额:¥{{ datas&&datas.TotalMoney>=0?datas.TotalMoney.toFixed(2):0.0 }}
<editor v-if="editorVisible" </view>
:title="editorObj.name" <view class="row items-center">
@close="close" @change="popupEditor"></editor> <text style="color: red;">*</text>
</view> <text class="ML10">币种:{{ currencyObj.name }}</text>
<view class="triangle ML10"></view>
</view>
</view>
<!-- 单选 -->
<singleChoice v-if="optionVisible" :current="optionObj.id" :list="optionList" @close="close"
@change="popupOption"></singleChoice>
<!-- 编辑 -->
<editor v-if="editorVisible" :title="editorObj.name" @close="close" @change="popupEditor"></editor>
</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: '',
}, },
currentIndex: 0, currentIndex: 0,
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
], },
peopleTypeList:[ {
{name:'成人',id:1}, name: '大床房',
{name:'小孩',id:2}, id: 3
{name:'婴儿',id:3} },
] {
} name: '三人间',
}, id: 4
watch: { },
data:{ {
handler(newVal,oldVal){ name: '双人间',
this.params = JSON.parse(JSON.stringify(newVal)) id: 5
this.BusList = this.params.BusList //车信息 },
this.HotelOrderListReport = this.params.HotelOrderListReport //酒店信息,合团 {
this.DiningList = this.params.DiningList //餐厅 name: '不占床人',
this.ScenicList = this.params.ScenicList //景点 id: 6
this.OtherList = this.params.OtherOrderInfo.OtherList //其他订单信息 },
this.TipList = this.params.OtherOrderInfo.TipList //小费收入 ],
this.TeamList = this.params.OtherOrderInfo.TeamList //团费小计 peopleTypeList: [{
this.SelfPlayingIncomeList = this.params.OtherOrderInfo.SelfPlayingIncomeList //自费收入 name: '成人',
this.SelfPlayingExpendList = this.params.OtherOrderInfo.SelfPlayingExpendList //自费支出 id: 1
this.LeaderShopList = this.params.OtherOrderInfo.LeaderShopList //购物报账 },
{
name: '小孩',
id: 2
},
{
name: '婴儿',
id: 3
}
]
}
},
watch: {
data: {
handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal))
this.BusList = this.params.BusList //车信息
this.HotelOrderListReport = this.params.HotelOrderListReport //酒店信息,合团
this.DiningList = this.params.DiningList //餐厅
this.ScenicList = this.params.ScenicList //景点
this.OtherList = this.params.OtherOrderInfo.OtherList //其他订单信息
this.TipList = this.params.OtherOrderInfo.TipList //小费收入
this.TeamList = this.params.OtherOrderInfo.TeamList //团费小计
this.SelfPlayingIncomeList = this.params.OtherOrderInfo.SelfPlayingIncomeList //自费收入
this.SelfPlayingExpendList = this.params.OtherOrderInfo.SelfPlayingExpendList //自费支出
this.LeaderShopList = this.params.OtherOrderInfo.LeaderShopList //购物报账
if (this.params.type == 1) {
this.dataIndex = this.params.dataIndex1
this.getRenderingDataBus(0)
} else if (this.params.type == 2) {
this.dataIndex = this.params.dataIndex2
this.getRenderingDataHotel(0)
} else if (this.params.type == 3) {
this.dataIndex = this.params.dataIndex3
this.getRenderingDataDining(0)
} else if (this.params.type == 4) {
this.dataIndex = this.params.dataIndex4
this.getRenderingDataScenic(0)
}
},
deep: true,
immediate: false,
},
},
mounted() {
},
methods: {
getPeopleName(type) {
let findIndex = this.peopleTypeList.findIndex(x => x.id == type)
if (findIndex != -1) return this.peopleTypeList[findIndex].name
else return ''
},
getHotelName(type) {
let findIndex = this.houseTypeList.findIndex(x => x.id == type)
if (findIndex != -1) return this.houseTypeList[findIndex].name
else return ''
},
popupEditor(value) {
let text = value.detail.__args__
if (this.editorObj.type == 2) {
this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.ActualUseInfo = text[0]
this.HotelOrderListReport[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.HotelOrderListReport = this.HotelOrderListReport
} else if (this.params.type == 3) {
this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.ActualUseInfo = text[0]
this.DiningList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.DiningList = this.DiningList
} else if (this.params.type == 4) {
this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.ActualUseInfo = text[0]
this.ScenicList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.ScenicList = this.ScenicList
}
this.$emit('change', this.params)
},
showEditorVisible() {
let name = ''
if (this.params.type == 2) name = '酒店'
else if (this.params.type == 3) name = '餐食'
else if (this.params.type == 4) name = '门票'
this.editorObj = {
name: name,
type: this.params.type
}
this.editorVisible = true
},
// 门票
getRenderingDataScenic(type) {
if (type == 0) {
this.dateList = []
for (let i = 0; i < this.ScenicList.length; i++) {
let data = this.ScenicList[i]
if (data.Id == undefined) {
this.$set(this.ScenicList[i], `Id`, i + 1);
}
this.dateList.push({
name: data.UseTimeStr,
id: i + 1,
})
}
this.datas = this.ScenicList[this.dataIndex]
this.scenicsList = []
this.datas.ScenicStatisticsList.forEach(x => {
this.scenicsList.push({
name: x.ScenicName,
id: x.ID
})
})
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
})
if (dates.length == 0) dates = [this.dateList[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
})
if (list.length == 1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0]))
else this.currencyObj = {
id: 0,
name: '选择币种'
}
for (let i = 0; i < this.datas.ScenicStatisticsList.length; i++) {
this.datas.ScenicStatisticsList[i].CurrencyId = this.currencyObj.id
this.datas.ScenicStatisticsList[i].CurrencyStr = this.currencyObj.id ? this.currencyObj.name : ''
this.datas.ScenicStatisticsList[i].ReimburseList.CurrencyId = this.currencyObj.id
for (let j = 0; j < this.datas.ScenicStatisticsList[i].ReimburseList.ReimburseDetailsList
.length; j++) {
this.datas.ScenicStatisticsList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this
.currencyObj.id
}
}
},
// 餐食
getRenderingDataDining(type) {
if (type == 0) {
this.dateList = []
for (let i = 0; i < this.DiningList.length; i++) {
let data = this.DiningList[i]
if (data.Id == undefined) {
this.$set(this.DiningList[i], `Id`, i + 1);
}
this.dateList.push({
name: data.UseTimeStr,
id: i + 1,
})
}
this.datas = this.DiningList[this.dataIndex]
this.diningList = []
this.datas.DiningSummaryList.forEach(x => {
this.diningList.push({
name: x.DiningName,
id: x.DiningID
})
})
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
})
if (dates.length == 0) dates = [this.dateList[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
})
if (list.length == 1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0]))
else this.currencyObj = {
id: 0,
name: '选择币种'
}
for (let i = 0; i < this.datas.DiningSummaryList.length; i++) {
this.datas.DiningSummaryList[i].CurrencyId = this.currencyObj.id
this.datas.DiningSummaryList[i].CurrencyStr = this.currencyObj.id ? this.currencyObj.name : ''
this.datas.DiningSummaryList[i].ReimburseList.CurrencyId = this.currencyObj.id
for (let j = 0; j < this.datas.DiningSummaryList[i].ReimburseList.ReimburseDetailsList.length; j++) {
this.datas.DiningSummaryList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this.currencyObj
.id
}
}
},
// 酒店
getRenderingDataHotel(type) {
if (type == 0) {
this.dateList = []
for (let i = 0; i < this.HotelOrderListReport.length; i++) {
let data = this.HotelOrderListReport[i]
if (data.Id == undefined) {
this.$set(this.HotelOrderListReport[i], `Id`, i + 1);
}
this.dateList.push({
name: data.UseTimeStr,
id: i + 1,
})
}
this.datas = this.HotelOrderListReport[this.dataIndex]
this.hotelList = []
this.datas.HotelOrderList.forEach(x => {
this.hotelList.push({
name: x.HotelName,
id: x.HotelId
})
})
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
})
if (dates.length == 0) dates = [this.dateList[0]]
this.dateObj = JSON.parse(JSON.stringify(dates[0]))
if(this.params.type==1){ let list = this.currencyList.filter(x => {
this.dataIndex = this.params.dataIndex1 return x.id == this.HotelOrderListReport[this.dataIndex].HotelOrderList[this.datas.hotelIndex]
this.getRenderingDataBus(0) .ReimburseList.CurrencyId
}else if(this.params.type==2){ })
this.dataIndex = this.params.dataIndex2 if (list.length == 1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0]))
this.getRenderingDataHotel(0) else this.currencyObj = {
}else if(this.params.type==3){ id: 0,
this.dataIndex = this.params.dataIndex3 name: '选择币种'
this.getRenderingDataDining(0) }
}else if(this.params.type==4){ for (let i = 0; i < this.datas.HotelOrderList.length; i++) {
this.dataIndex = this.params.dataIndex4 this.datas.HotelOrderList[i].CurrencyId = this.currencyObj.id
this.getRenderingDataScenic(0) this.datas.HotelOrderList[i].CurrencyStr = this.currencyObj.id ? this.currencyObj.name : ''
} this.datas.HotelOrderList[i].ReimburseList.CurrencyId = this.currencyObj.id
}, for (let j = 0; j < this.datas.HotelOrderList[i].ReimburseList.ReimburseDetailsList.length; j++) {
deep:true, this.datas.HotelOrderList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this.currencyObj.id
immediate:false, }
}, }
}, },
mounted() { // 车
getRenderingDataBus(type) {
}, if (type == 0) {
methods: { this.dateList = []
getPeopleName(type){ for (let i = 0; i < this.BusList.length; i++) {
let findIndex = this.peopleTypeList.findIndex(x=>x.id==type) let data = this.BusList[i]
if(findIndex!=-1) return this.peopleTypeList[findIndex].name if (data.TotalMoney == undefined) {
else return '' this.$set(this.BusList[i], `TotalMoney`, 0);
}, }
getHotelName(type){ if (data.CheckDateId == undefined) {
let findIndex = this.houseTypeList.findIndex(x=>x.id==type) this.$set(this.BusList[i], `CheckDateId`, i + 1);
if(findIndex!=-1) return this.houseTypeList[findIndex].name }
else return '' this.dateList.push({
}, name: data.PlanDateStr,
popupEditor(value){ id: i + 1,
let text = value.detail.__args__ })
if(this.editorObj.type==2){ }
this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.ActualUseInfo = text[0] this.datas = this.BusList[this.dataIndex]
this.HotelOrderListReport[this.dataIndex] = JSON.parse(JSON.stringify(this.datas)) }
this.params.HotelOrderListReport = this.HotelOrderListReport let dates = this.dateList.filter(x => {
}else if(this.params.type==3){ return x.id == this.BusList[this.dataIndex].CheckDateId
this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.ActualUseInfo = text[0] })
this.DiningList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas)) if (dates.length == 0) dates = [this.dateList[0]]
this.params.DiningList = this.DiningList this.dateObj = JSON.parse(JSON.stringify(dates[0]))
}else if(this.params.type==4){
this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.ActualUseInfo = text[0]
this.ScenicList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.ScenicList = this.ScenicList
}
this.$emit('change',this.params)
},
showEditorVisible(){
let name = ''
if(this.params.type==2) name = '酒店'
else if(this.params.type==3) name = '餐食'
else if(this.params.type==4) name = '门票'
this.editorObj = {
name: name,
type: this.params.type
}
this.editorVisible = true
},
// 门票
getRenderingDataScenic(type){
if(type==0){
this.dateList = []
for(let i=0;i<this.ScenicList.length;i++){
let data = this.ScenicList[i]
if(data.Id==undefined){
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({
name: data.UseTimeStr,
id: i+1,
})
}
this.datas = this.ScenicList[this.dataIndex]
this.scenicsList = []
this.datas.ScenicStatisticsList.forEach(x=>{
this.scenicsList.push({
name: x.ScenicName,
id: x.ID
})
})
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})
if(dates.length==0) dates = [this.dateList[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})
if(list.length==1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0]))
else this.currencyObj = {
id: 0,
name: '选择币种'
}
for(let i=0;i<this.datas.ScenicStatisticsList.length;i++){
this.datas.ScenicStatisticsList[i].CurrencyId = this.currencyObj.id
this.datas.ScenicStatisticsList[i].CurrencyStr = this.currencyObj.id?this.currencyObj.name:''
this.datas.ScenicStatisticsList[i].ReimburseList.CurrencyId = this.currencyObj.id
for(let j=0;j<this.datas.ScenicStatisticsList[i].ReimburseList.ReimburseDetailsList.length;j++){
this.datas.ScenicStatisticsList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this.currencyObj.id
}
}
},
// 餐食
getRenderingDataDining(type){
if(type==0){
this.dateList = []
for(let i=0;i<this.DiningList.length;i++){
let data = this.DiningList[i]
if(data.Id==undefined){
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({
name: data.UseTimeStr,
id: i+1,
})
}
this.datas = this.DiningList[this.dataIndex]
this.diningList = []
this.datas.DiningSummaryList.forEach(x=>{
this.diningList.push({
name: x.DiningName,
id: x.DiningID
})
})
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})
if(dates.length==0) dates = [this.dateList[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})
if(list.length==1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0]))
else this.currencyObj = {
id: 0,
name: '选择币种'
}
for(let i=0;i<this.datas.DiningSummaryList.length;i++){
this.datas.DiningSummaryList[i].CurrencyId = this.currencyObj.id
this.datas.DiningSummaryList[i].CurrencyStr = this.currencyObj.id?this.currencyObj.name:''
this.datas.DiningSummaryList[i].ReimburseList.CurrencyId = this.currencyObj.id
for(let j=0;j<this.datas.DiningSummaryList[i].ReimburseList.ReimburseDetailsList.length;j++){
this.datas.DiningSummaryList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this.currencyObj.id
}
}
},
// 酒店
getRenderingDataHotel(type){
if(type==0){
this.dateList = []
for(let i=0;i<this.HotelOrderListReport.length;i++){
let data = this.HotelOrderListReport[i]
if(data.Id==undefined){
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({
name: data.UseTimeStr,
id: i+1,
})
}
this.datas = this.HotelOrderListReport[this.dataIndex]
this.hotelList = []
this.datas.HotelOrderList.forEach(x=>{
this.hotelList.push({
name: x.HotelName,
id: x.HotelId
})
})
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})
if(dates.length==0) dates = [this.dateList[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.BusList[this.dataIndex].ReimburseList.CurrencyId
else this.currencyObj = { })
id: 0, if (list.length == 1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0]))
name: '选择币种' else this.currencyObj = {
} id: 0,
for(let i=0;i<this.datas.HotelOrderList.length;i++){ name: '选择币种'
this.datas.HotelOrderList[i].CurrencyId = this.currencyObj.id }
this.datas.HotelOrderList[i].CurrencyStr = this.currencyObj.id?this.currencyObj.name:'' this.datas.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++){ showOptionVisible(type) {
this.datas.HotelOrderList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this.currencyObj.id this.optionType = type
} if (this.optionType == 1) { //时间
} this.optionList = JSON.parse(JSON.stringify(this.dateList))
// console.log(this.datas,'======酒店') this.optionObj = JSON.parse(JSON.stringify(this.dateObj))
}, } else if (this.optionType == 2) { //币种
// 车 this.optionList = JSON.parse(JSON.stringify(this.currencyList))
getRenderingDataBus(type){ this.optionObj = JSON.parse(JSON.stringify(this.currencyObj))
if(type==0){ } else if (this.optionType == 3) { //酒店
this.dateList = [] this.optionList = JSON.parse(JSON.stringify(this.hotelList))
for(let i=0;i<this.BusList.length;i++){ this.optionObj = JSON.parse(JSON.stringify(this.hotelObj))
let data = this.BusList[i] } else if (this.optionType == 4) { //餐食
if(data.TotalMoney==undefined){ this.optionList = JSON.parse(JSON.stringify(this.diningList))
this.$set(this.BusList[i], `TotalMoney`, 0); this.optionObj = JSON.parse(JSON.stringify(this.diningObj))
} } else if (this.optionType == 5) { //门票
this.dateList.push({ this.optionList = JSON.parse(JSON.stringify(this.scenicsList))
name: data.PlanDateStr, this.optionObj = JSON.parse(JSON.stringify(this.scenicObj))
id: data.Id, }
}) this.optionVisible = true
} },
this.datas = this.BusList[this.dataIndex] close() {
} this.optionVisible = false
let dates = this.dateList.filter(x=>{return x.id==this.BusList[this.dataIndex].Id}) this.editorVisible = false
if(dates.length==0) dates = [this.dateList[0]] },
this.dateObj = JSON.parse(JSON.stringify(dates[0])) // 获取选中时间及币种
popupOption(value) {
this.optionVisible = false
if (this.optionType == 1) { //日期
this.getDate(value)
} else if (this.optionType == 2) { //币种
this.getCurrency(value)
} else if (this.optionType == 3) { //酒店
let newDataIndex = this.optionList.findIndex(item => item.id == value)
if (this.dataIndex != -1) {
this.datas.hotelIndex = newDataIndex
this.HotelOrderListReport[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.HotelOrderListReport = JSON.parse(JSON.stringify(this.HotelOrderListReport))
}
this.hotelObj = JSON.parse(JSON.stringify(this.optionObj))
} else if (this.optionType == 4) { //餐食
let newDataIndex = this.optionList.findIndex(item => item.id == value)
if (this.dataIndex != -1) {
this.datas.diningIndex = newDataIndex
this.DiningList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.DiningList = JSON.parse(JSON.stringify(this.DiningList))
}
this.diningObj = JSON.parse(JSON.stringify(this.optionObj))
} else if (this.optionType == 5) { //门票
let newDataIndex = this.optionList.findIndex(item => item.id == value)
if (this.dataIndex != -1) {
this.datas.scenicIndex = newDataIndex
this.ScenicList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.ScenicList = JSON.parse(JSON.stringify(this.ScenicList))
}
this.scenicgObj = JSON.parse(JSON.stringify(this.optionObj))
}
this.$emit('change', this.params)
},
getDate(value) {
this.dateObj.id = value;
let newDataIndex = this.optionList.findIndex(item => item.id == value);
if (this.dataIndex != -1) {
if (this.params.type == 1) {
this.BusList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.BusList = JSON.parse(JSON.stringify(this.BusList))
}
this.optionObj = this.optionList[this.dataIndex]
this.dataIndex = newDataIndex;
}
this.dateObj = JSON.parse(JSON.stringify(this.optionObj));
let list = this.currencyList.filter(x=>{return x.id==this.BusList[this.dataIndex].ReimburseList.CurrencyId}) if (this.params.type == 1) {
if(list.length==1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0])) this.params.dataIndex1 = this.dataIndex
else this.currencyObj = { } else if (this.params.type == 2) {
id: 0, this.params.dataIndex2 = this.dataIndex
name: '选择币种' } else if (this.params.type == 3) {
} this.params.dataIndex3 = this.dataIndex
this.datas.ReimburseList.CurrencyId = this.currencyObj.id } else if (this.params.type == 4) {
}, this.params.dataIndex4 = this.dataIndex
showOptionVisible(type){ } else if (this.params.type == 5) {
this.optionType = type this.params.dataIndex5 = this.dataIndex
if(this.optionType==1) {//时间 } else if (this.params.type == 6) {
this.optionList = JSON.parse(JSON.stringify(this.dateList)) this.params.dataIndex6 = this.dataIndex
this.optionObj = JSON.parse(JSON.stringify(this.dateObj)) } else if (this.params.type == 7) {
}else if(this.optionType==2) {//币种 this.params.dataIndex7 = this.dataIndex
this.optionList = JSON.parse(JSON.stringify(this.currencyList)) } else if (this.params.type == 8) {
this.optionObj = JSON.parse(JSON.stringify(this.currencyObj)) this.params.dataIndex8 = this.dataIndex
}else if(this.optionType==3) {//酒店 } else if (this.params.type == 9) {
this.optionList = JSON.parse(JSON.stringify(this.hotelList)) this.params.dataIndex9 = this.dataIndex
this.optionObj = JSON.parse(JSON.stringify(this.hotelObj)) } else if (this.params.type == 10) {
}else if(this.optionType==4) {//餐食 this.params.dataIndex10 = this.dataIndex
this.optionList = JSON.parse(JSON.stringify(this.diningList)) }
this.optionObj = JSON.parse(JSON.stringify(this.diningObj)) },
}else if(this.optionType==5) {//门票 getCurrency(value) {
this.optionList = JSON.parse(JSON.stringify(this.scenicsList)) let list = this.optionList.filter(item => {
this.optionObj = JSON.parse(JSON.stringify(this.scenicObj)) return item.id == value
} })
this.optionVisible = true this.optionObj = list[0]
}, this.currencyObj = JSON.parse(JSON.stringify(this.optionObj))
close(){ if (this.params.type == 1) {
this.optionVisible = false this.datas.CurrencyStr = this.currencyObj.name
this.editorVisible = false this.datas.ReimburseList.CurrencyId = this.currencyObj.id
}, this.datas.ReimburseList.ReimburseDetailsList.forEach(x => {
// 获取选中时间及币种 x.CurrencyId = this.currencyObj.id
popupOption(value){ });
this.optionVisible = false this.BusList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
// this.optionObj.id = value this.params.BusList = JSON.parse(JSON.stringify(this.BusList))
if(this.optionType==1) {//日期 } else if (this.params.type == 2) {
this.getDate(value) this.datas.HotelOrderList[this.datas.hotelIndex].CurrencyId = this.currencyObj.id
}else if(this.optionType==2) {//币种 this.datas.HotelOrderList[this.datas.hotelIndex].CurrencyStr = this.currencyObj.name
this.getCurrency(value) this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.CurrencyId = this.currencyObj.id
}else if(this.optionType==3) {//酒店 this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.ReimburseDetailsList.forEach(x => {
let newDataIndex = this.optionList.findIndex(item=>item.id==value) x.CurrencyId = this.currencyObj.id
if(this.dataIndex!=-1) { })
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)) } else if (this.params.type == 3) {
// this.optionObj = this.optionList[this.dataIndex] this.datas.DiningSummaryList[this.datas.diningIndex].CurrencyId = this.currencyObj.id
// this.dataIndex = newDataIndex this.datas.DiningSummaryList[this.datas.diningIndex].CurrencyStr = this.currencyObj.name
this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.CurrencyId = this.currencyObj.id
// this.getRenderingDataHotel() this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.ReimburseDetailsList.forEach(x => {
} x.CurrencyId = this.currencyObj.id
this.hotelObj = JSON.parse(JSON.stringify(this.optionObj)) })
}else if(this.optionType==4) {//餐食 this.DiningList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
let newDataIndex = this.optionList.findIndex(item=>item.id==value) this.params.DiningList = JSON.parse(JSON.stringify(this.DiningList))
if(this.dataIndex!=-1) { } else if (this.params.type == 4) {
this.datas.diningIndex = newDataIndex this.datas.ScenicStatisticsList[this.datas.scenicIndex].CurrencyId = this.currencyObj.id
this.DiningList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas)) this.datas.ScenicStatisticsList[this.datas.scenicIndex].CurrencyStr = this.currencyObj.name
this.params.DiningList = JSON.parse(JSON.stringify(this.DiningList)) this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.CurrencyId = this.currencyObj.id
// this.optionObj = this.optionList[this.dataIndex] this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.ReimburseDetailsList.forEach(
// this.dataIndex = newDataIndex x => {
x.CurrencyId = this.currencyObj.id
// this.getRenderingDataDining() })
} this.ScenicList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.diningObj = JSON.parse(JSON.stringify(this.optionObj)) this.params.ScenicList = JSON.parse(JSON.stringify(this.ScenicList))
}else if(this.optionType==5) {//门票 }
let newDataIndex = this.optionList.findIndex(item=>item.id==value) },
if(this.dataIndex!=-1) { }
this.datas.scenicIndex = newDataIndex }
this.ScenicList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
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.$emit('change',this.params)
},
getDate(value){
this.dateObj.id = value
let newDataIndex = this.optionList.findIndex(item=>item.id==value)
if(this.dataIndex!=-1) {
if(this.params.type==1){
this.BusList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.BusList = JSON.parse(JSON.stringify(this.BusList))
}
this.optionObj = this.optionList[this.dataIndex]
this.dataIndex = newDataIndex
}
this.dateObj = JSON.parse(JSON.stringify(this.optionObj))
if(this.params.type==1){
this.params.dataIndex1 = this.dataIndex
}else if(this.params.type==2){
this.params.dataIndex2 = this.dataIndex
}else if(this.params.type==3){
this.params.dataIndex3 = this.dataIndex
}else if(this.params.type==4){
this.params.dataIndex4 = this.dataIndex
}else if(this.params.type==5){
this.params.dataIndex5 = this.dataIndex
}else if(this.params.type==6){
this.params.dataIndex6 = this.dataIndex
}else if(this.params.type==7){
this.params.dataIndex7 = this.dataIndex
}else if(this.params.type==8){
this.params.dataIndex8 = this.dataIndex
}else if(this.params.type==9){
this.params.dataIndex9 = this.dataIndex
}else if(this.params.type==10){
this.params.dataIndex10 = this.dataIndex
}
},
getCurrency(value){
let list = this.optionList.filter(item=>{
return item.id==value
})
this.optionObj = list[0]
this.currencyObj = JSON.parse(JSON.stringify(this.optionObj))
if(this.params.type==1){
this.datas.CurrencyStr = this.currencyObj.name
this.datas.ReimburseList.CurrencyId = this.currencyObj.id
this.datas.ReimburseList.ReimburseDetailsList.forEach(x => {
x.CurrencyId = this.currencyObj.id
});
this.BusList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.BusList = JSON.parse(JSON.stringify(this.BusList))
}else if(this.params.type==2){
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].ReimburseList.CurrencyId = this.currencyObj.id
this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.ReimburseDetailsList.forEach(x=>{
x.CurrencyId = this.currencyObj.id
})
this.HotelOrderListReport[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.HotelOrderListReport = JSON.parse(JSON.stringify(this.HotelOrderListReport))
}else if(this.params.type==3){
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].ReimburseList.CurrencyId = this.currencyObj.id
this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.ReimburseDetailsList.forEach(x=>{
x.CurrencyId = this.currencyObj.id
})
this.DiningList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.DiningList = JSON.parse(JSON.stringify(this.DiningList))
}else if(this.params.type==4){
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].ReimburseList.CurrencyId = this.currencyObj.id
this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.ReimburseDetailsList.forEach(x=>{
x.CurrencyId = this.currencyObj.id
})
this.ScenicList[this.dataIndex] = JSON.parse(JSON.stringify(this.datas))
this.params.ScenicList = JSON.parse(JSON.stringify(this.ScenicList))
}
},
}
}
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment