|
@@ -13,8 +13,9 @@ export class StorePendingPage implements OnInit {
|
|
|
|
|
|
pendingList = [1]
|
|
|
current: number = 1
|
|
|
- size: number = 10
|
|
|
+ size: number = 2
|
|
|
form = {}
|
|
|
+ total: number = 0
|
|
|
storeQCDetailList = []
|
|
|
|
|
|
constructor(public userData: UserData,
|
|
@@ -33,9 +34,9 @@ export class StorePendingPage implements OnInit {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- ionViewDidEnter() {
|
|
|
- this.getList();
|
|
|
- }
|
|
|
+ // ionViewDidEnter() {
|
|
|
+ // this.getList();
|
|
|
+ // }
|
|
|
|
|
|
showFullScreenImage(data) {
|
|
|
this.commonService.fullScreenImg(data);
|
|
@@ -45,7 +46,8 @@ export class StorePendingPage implements OnInit {
|
|
|
this.form['current'] = this.current
|
|
|
this.form['size'] = this.size
|
|
|
let data = await this.userData.getStorePendingList(this.form)
|
|
|
- this.pendingList = data
|
|
|
+ this.pendingList = data.records
|
|
|
+ this.total = data.total
|
|
|
for (let i of this.pendingList) {
|
|
|
if (i["pictures"] && i["pictures"].length !== 0) {
|
|
|
i["imgsrc"] = i["pictures"][0].smallPicture
|
|
@@ -70,4 +72,12 @@ export class StorePendingPage implements OnInit {
|
|
|
await this.userData.rejectWarehouse(pending.sscId,pending.pid)
|
|
|
this.getList()
|
|
|
}
|
|
|
+ async loadData(event) {
|
|
|
+ this.size += 10
|
|
|
+ this.getList()
|
|
|
+ event.target.complete();
|
|
|
+ if (this.total < this.size) {
|
|
|
+ event.target.disabled = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|