|
@@ -287,7 +287,7 @@
|
|
complete: () => {}
|
|
complete: () => {}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- this.getIndexBuyData()
|
|
|
|
|
|
+ // this.getIndexBuyData()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -449,6 +449,19 @@
|
|
this.$api.doRequest('get', url, data).then(res => {
|
|
this.$api.doRequest('get', url, data).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
let data = res.data.data.records
|
|
let data = res.data.data.records
|
|
|
|
+ console.log(data)
|
|
|
|
+ console.log(that.taskInfo)
|
|
|
|
+ if (res.data.data.records.length == 0 && this.pages == 1 && this.statusFlag ==
|
|
|
|
+ 3 ||
|
|
|
|
+ res.data.data.records.length == 0 && this.pages == 1 && this
|
|
|
|
+ .statusFlag == 1 ||
|
|
|
|
+ res.data.data.records.length == 0 && this.pages == 1 && this
|
|
|
|
+ .statusFlag == 5||
|
|
|
|
+ res.data.data.records.length == 0 && this.pages == 1 && this
|
|
|
|
+ .statusFlag == 7) {
|
|
|
|
+ console.log()
|
|
|
|
+ this.taskInfo = []
|
|
|
|
+ }
|
|
//采购信息
|
|
//采购信息
|
|
if (data.length > 0) {
|
|
if (data.length > 0) {
|
|
if (pages==1) {
|
|
if (pages==1) {
|
|
@@ -464,6 +477,8 @@
|
|
that.isLoadMore = false
|
|
that.isLoadMore = false
|
|
that.loadStatus = 'nomore'
|
|
that.loadStatus = 'nomore'
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ console.log(that.taskInfo)
|
|
for (var i = 0; i < this.taskInfo.length; i++) {
|
|
for (var i = 0; i < this.taskInfo.length; i++) {
|
|
let _str = this.taskInfo[i]
|
|
let _str = this.taskInfo[i]
|
|
// let a = this.getRoles()
|
|
// let a = this.getRoles()
|
|
@@ -535,17 +550,7 @@
|
|
} else {
|
|
} else {
|
|
that.isSole = false
|
|
that.isSole = false
|
|
}
|
|
}
|
|
- if (res.data.data.records.length == 0 && this.pages == 1 && this.statusFlag ==
|
|
|
|
- 3 ||
|
|
|
|
- res.data.data.records.length == 0 && this.pages == 1 && this
|
|
|
|
- .statusFlag == 1 ||
|
|
|
|
- res.data.data.records.length == 0 && this.pages == 1 && this
|
|
|
|
- .statusFlag == 5||
|
|
|
|
- res.data.data.records.length == 0 && this.pages == 1 && this
|
|
|
|
- .statusFlag == 7) {
|
|
|
|
- console.log()
|
|
|
|
- this.taskInfo = []
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
} else {
|
|
} else {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|