|
|
@ -62,17 +62,19 @@ export default { |
|
|
|
writeOffList: [], // 核销列表, |
|
|
|
curDate: util.formatDate({}), |
|
|
|
page: 1, |
|
|
|
totalNum: 0, |
|
|
|
} |
|
|
|
}, |
|
|
|
onReachBottom(){ |
|
|
|
let { page, curDate, curStadium } = this; |
|
|
|
this.getList({ |
|
|
|
brand_id: curStadium.brand_id || '', |
|
|
|
stadium_id: curStadium.id || '', |
|
|
|
date: curDate || '', |
|
|
|
page: ++page, |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 20210716测试:取消分页,返回当天 |
|
|
|
// onReachBottom(){ |
|
|
|
// let { page, curDate, curStadium } = this; |
|
|
|
// this.getList({ |
|
|
|
// brand_id: curStadium.brand_id || '', |
|
|
|
// stadium_id: curStadium.id || '', |
|
|
|
// date: curDate || '', |
|
|
|
// page: ++page, |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
onLoad(){ |
|
|
|
this.initPage(); |
|
|
|
}, |
|
|
@ -121,7 +123,7 @@ export default { |
|
|
|
}) |
|
|
|
util.routeTo(`/pages/write_off/operate/operate`, 'nT'); |
|
|
|
}, |
|
|
|
getList({ brand_id, stadium_id = '', date = '', page = 1, page_size = 15 }){ |
|
|
|
getList({ brand_id, stadium_id = '', date = '', page = 1, page_size = '' }){ |
|
|
|
util.showLoad(); |
|
|
|
servers.get({ |
|
|
|
url: API.writeOff.listVerifyRecord, |
|
|
@ -130,6 +132,7 @@ export default { |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
util.hideLoad(); |
|
|
|
this.totalNum = res.total || 0; |
|
|
|
let _list = res.list || []; |
|
|
|
if(page == 1)return this.writeOffList = _list; |
|
|
|
if(!_list.length)return util.showNone('没有更多!'); |
|
|
|