|
|
@@ -69,6 +69,15 @@ export default {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
},
|
|
|
+ onReachBottom() {
|
|
|
+ if (!this.list.finished) {
|
|
|
+ this._list().then((res) => {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
async init() {
|
|
|
this._list();
|
|
|
@@ -77,23 +86,17 @@ export default {
|
|
|
let options = {
|
|
|
page: this.list.page,
|
|
|
pageSize: this.list.pageSize,
|
|
|
- status: this.tabs[this.tabIndex].key
|
|
|
+ status: this.tabs[this.tabIndex].key,
|
|
|
+ ghsId:this.option.ghsId
|
|
|
};
|
|
|
return getPurchaseListApi(options)
|
|
|
.then(res => {
|
|
|
- const {
|
|
|
- data: { allNum, unPayNum, unSendNum, sendingNum, finishNum }
|
|
|
- } = res;
|
|
|
-
|
|
|
+ const { data: { allNum, unPayNum, unSendNum, sendingNum, finishNum } } = res
|
|
|
this.completes(res);
|
|
|
for (let index = 0; index < this.tabs.length; index++) {
|
|
|
const element = this.tabs[index];
|
|
|
if (element.key == "") {
|
|
|
- // this.tabs[index].value = allNum;
|
|
|
- this.$set(this.tabs, index, {
|
|
|
- ...this.tabs[index],
|
|
|
- value: allNum
|
|
|
- });
|
|
|
+ this.$set(this.tabs, index, { ...this.tabs[index], value: allNum })
|
|
|
} else if (element.key == PURCHASE_ORDER_STATUS.CONFIRM) {
|
|
|
this.tabs[index].value = unPayNum;
|
|
|
} else if (element.key == PURCHASE_ORDER_STATUS.UNDIS) {
|