Browse Source

取消核销订单分页

voice^2
刘嘉炜 4 years ago
parent
commit
7999dc7e68
  1. 23
      src/pages/write_off/search_result/search_result.vue

23
src/pages/write_off/search_result/search_result.vue

@ -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('没有更多!');

Loading…
Cancel
Save