Commit febc7f7a authored by 黄奎's avatar 黄奎

11

parent 5fcec80d
...@@ -235,23 +235,19 @@ ...@@ -235,23 +235,19 @@
dataIndex: 0, dataIndex: 0,
ReimIndex: 0, ReimIndex: 0,
ReimDatas: {}, ReimDatas: {},
BusList: [], //车信息 DiningList: [], //餐厅
HotelOrderListReport: [], //酒店信息,合团
DiningList: [], //餐厅
ScenicList: [], //景点
OtherList: [], //其他订单信息
TipList: [], //小费收入
TeamList: [], //团费小计
SelfPlayingIncomeList: [], //自费收入
SelfPlayingExpendList: [], //自费支出
LeaderShopList: [], //购物报账
} }
}, },
watch: { watch: {
dataIndex3: { data: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
if (newVal != oldVal) { if (newVal && oldVal) {
this.initData(); if (newVal.dataIndex3 != oldVal.dataIndex3) {
this.initData();
} else if (oldVal.DiningList[this.dataIndex3].diningIndex != newVal.DiningList[this.dataIndex3]
.diningIndex) {
this.initData();
}
} }
}, },
deep: true, deep: true,
......
...@@ -237,16 +237,23 @@ ...@@ -237,16 +237,23 @@
} }
}, },
watch: { watch: {
dataIndex4: { data: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
if (newVal != oldVal) { if (newVal && oldVal) {
this.initData(); //切换日期
if (newVal.dataIndex4 != oldVal.dataIndex4) {
this.initData();
}
//切换同一天的景点
else if (oldVal.ScenicList[this.dataIndex3].scenicIndex != newVal.ScenicList[this.dataIndex3]
.scenicIndex) {
this.initData();
}
} }
}, },
deep: true, deep: true,
immediate: true immediate: true
}, },
}, },
mounted() { mounted() {
this.initData(); this.initData();
...@@ -260,13 +267,6 @@ ...@@ -260,13 +267,6 @@
this.getTotal() this.getTotal()
}, },
getNum() { getNum() {
// if (type == '数量') {
// this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.ReimburseDetailsList[index]
// .UserNum = e.value
// } else if (type == '金额') {
// this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.ReimburseDetailsList[index]
// .UnitPrice = e.value
// }
this.getTotal() this.getTotal()
}, },
getTotal() { getTotal() {
......
...@@ -101,7 +101,8 @@ ...@@ -101,7 +101,8 @@
@change="getNewData" :optionList="diningTypeList"> @change="getNewData" :optionList="diningTypeList">
</productInfor3> </productInfor3>
<!-- 门票信息--> <!-- 门票信息-->
<productInfor4 v-else-if="params.type==4" :data="params" :dataIndex4="params.dataIndex4" @change="getNewData" :optionList="scenicTypeList"> <productInfor4 v-else-if="params.type==4" :data="params" :dataIndex4="params.dataIndex4"
@change="getNewData" :optionList="scenicTypeList">
</productInfor4> </productInfor4>
<!-- 其它信息--> <!-- 其它信息-->
<otherInfor1 v-else-if="params.type==5" :currencyList="currencyList" :data="params" @change="getNewData" <otherInfor1 v-else-if="params.type==5" :currencyList="currencyList" :data="params" @change="getNewData"
...@@ -541,6 +542,7 @@ ...@@ -541,6 +542,7 @@
title: '保存中...' title: '保存中...'
}) })
this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", this.params, (res) => { this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", this.params, (res) => {
uni.hideLoading()
console.log("dmcstatistics_post_SetNewLeaderApplyList_V2", JSON.parse(JSON.stringify(res console.log("dmcstatistics_post_SetNewLeaderApplyList_V2", JSON.parse(JSON.stringify(res
.data))); .data)));
if (res.resultCode == 1) { if (res.resultCode == 1) {
...@@ -550,7 +552,6 @@ ...@@ -550,7 +552,6 @@
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}); });
uni.hideLoading()
this.init() this.init()
} }
...@@ -573,7 +574,9 @@ ...@@ -573,7 +574,9 @@
this.scrollLeft = item.left this.scrollLeft = item.left
}, },
init() { init() {
uni.showLoading() uni.showLoading({
title: '数据加载中...'
});
this.apipost("dmcstatistics_post_GetNewLeaderPayMoneyStatics", this.msg, (res) => { this.apipost("dmcstatistics_post_GetNewLeaderPayMoneyStatics", this.msg, (res) => {
console.log("dmcstatistics_post_GetNewLeaderPayMoneyStatics", JSON.parse(JSON.stringify(res console.log("dmcstatistics_post_GetNewLeaderPayMoneyStatics", JSON.parse(JSON.stringify(res
.data))); .data)));
......
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