|
|
@ -121,6 +121,7 @@ |
|
|
|
}, |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
brandInfo: {}, |
|
|
|
modalScrollViewHeight: '', |
|
|
|
incomeTime: '', |
|
|
|
|
|
|
@ -145,11 +146,17 @@ |
|
|
|
let _timeStr = util.formatDate({}); |
|
|
|
this.incomeTime = _timeStr; |
|
|
|
this.incomeTypeInfo = incomeTypeLs[0]; |
|
|
|
this.refreshPage(); |
|
|
|
util.$_once('turnoverToDetailsRecord', data=>{ |
|
|
|
let { brandInfo, stadiumInfo } = data; |
|
|
|
this.confirmSelectStore = stadiumInfo || null; |
|
|
|
this.brandInfo = brandInfo || {}; |
|
|
|
this.refreshPage(); |
|
|
|
}) |
|
|
|
}, |
|
|
|
onReachBottom(){ |
|
|
|
let { incomeTime, type, incomeTypeInfo, confirmSelectStore, confirmSelectScene, page } = this; |
|
|
|
let { brandInfo, incomeTime, type, incomeTypeInfo, confirmSelectStore, confirmSelectScene, page } = this; |
|
|
|
this.getRecordLs({ |
|
|
|
brand_id: brandInfo.id || '', |
|
|
|
type: type || '', |
|
|
|
time_str: incomeTime || '', |
|
|
|
income_type: incomeTypeInfo.eng || '', |
|
|
@ -162,12 +169,13 @@ |
|
|
|
|
|
|
|
// 弹窗重置按钮 |
|
|
|
modalResetBtn(){ |
|
|
|
let { incomeTypeInfo } = this; |
|
|
|
let { brandInfo, incomeTypeInfo } = this; |
|
|
|
this.modalSelectScene = null; |
|
|
|
this.modalSelectStore = null; |
|
|
|
// 不同店铺场景值不一样 |
|
|
|
this.sceneLs = []; |
|
|
|
this.getSceneLs({ |
|
|
|
brand_id: brandInfo.id || '', |
|
|
|
income_type: incomeTypeInfo.eng || '', |
|
|
|
}); |
|
|
|
}, |
|
|
@ -184,7 +192,7 @@ |
|
|
|
this.modalSelectScene = e || null; |
|
|
|
}, |
|
|
|
stadiumChange(e){ |
|
|
|
let { incomeTypeInfo, storeList, modalSelectStore } = this; |
|
|
|
let { brandInfo, incomeTypeInfo, storeList, modalSelectStore } = this; |
|
|
|
let _idx = e.detail.value; |
|
|
|
let _stadium = storeList[_idx] || {}; |
|
|
|
if(modalSelectStore&&(modalSelectStore.id == _stadium.id))return; |
|
|
@ -193,6 +201,7 @@ |
|
|
|
// 不同店铺场景值不一样 |
|
|
|
this.sceneLs = []; |
|
|
|
this.getSceneLs({ |
|
|
|
brand_id: brandInfo.id || '', |
|
|
|
income_type: incomeTypeInfo.eng || '', |
|
|
|
stadium_id: _stadium.id |
|
|
|
}); |
|
|
@ -200,7 +209,7 @@ |
|
|
|
}, |
|
|
|
// 弹窗筛选显示 |
|
|
|
filterShow(){ |
|
|
|
let { incomeTypeInfo, confirmSelectStore, confirmSelectScene } = this; |
|
|
|
let { brandInfo, incomeTypeInfo, confirmSelectStore, confirmSelectScene } = this; |
|
|
|
this.modalSelectScene = confirmSelectScene || null; |
|
|
|
this.modalSelectStore = confirmSelectStore || null; |
|
|
|
|
|
|
@ -208,12 +217,13 @@ |
|
|
|
this.$nextTick(async _=>{ |
|
|
|
this.initFilterScrollView(); |
|
|
|
if(true)try{ |
|
|
|
await this.getStoreList(); |
|
|
|
await this.getStoreList(brandInfo.id || '',); |
|
|
|
}catch(err){ |
|
|
|
console.warn('getStore err ->', err) |
|
|
|
}; |
|
|
|
|
|
|
|
this.getSceneLs({ |
|
|
|
brand_id: brandInfo.id || '', |
|
|
|
income_type: incomeTypeInfo.eng || '', |
|
|
|
stadium_id: (confirmSelectStore&&confirmSelectStore.id) || '' |
|
|
|
}); |
|
|
@ -221,11 +231,11 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
// 获取弹窗品牌店铺列表 |
|
|
|
getStoreList(){ |
|
|
|
getStoreList(brand_id){ |
|
|
|
util.showLoad(); |
|
|
|
return server.get({ |
|
|
|
url: INCOME_API.stadiumList, |
|
|
|
data: {}, |
|
|
|
data: { brand_id }, |
|
|
|
failMsg: '加载店铺列表失败!', |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
@ -274,11 +284,12 @@ |
|
|
|
|
|
|
|
refreshPage(){ |
|
|
|
this.$nextTick(_=>{ |
|
|
|
let { incomeTime, type, incomeTypeInfo, confirmSelectStore, confirmSelectScene } = this; |
|
|
|
let { brandInfo, incomeTime, type, incomeTypeInfo, confirmSelectStore, confirmSelectScene } = this; |
|
|
|
this.page = 1; |
|
|
|
this.incomeLs = []; |
|
|
|
this.incomeMes = {}; |
|
|
|
this.getRecordLs({ |
|
|
|
brand_id: brandInfo.id || '', |
|
|
|
type: type || '', |
|
|
|
time_str: incomeTime || '', |
|
|
|
income_type: incomeTypeInfo.eng || '', |
|
|
|