|
@@ -38,6 +38,7 @@ export default {
|
|
|
tabIndex: 0,
|
|
tabIndex: 0,
|
|
|
lsFhNum:0,
|
|
lsFhNum:0,
|
|
|
lsShNum:0,
|
|
lsShNum:0,
|
|
|
|
|
+ needRefresh:0,
|
|
|
tabs: [
|
|
tabs: [
|
|
|
{
|
|
{
|
|
|
name: "全部",
|
|
name: "全部",
|
|
@@ -70,16 +71,25 @@ export default {
|
|
|
},
|
|
},
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
|
if (!this.list.finished) {
|
|
if (!this.list.finished) {
|
|
|
- this.getCgList().then((res) => {
|
|
|
|
|
- uni.stopPullDownRefresh();
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ this.getCgList().then((res) => {
|
|
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
|
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(){
|
|
onLoad(){
|
|
|
this.getCgList()
|
|
this.getCgList()
|
|
|
},
|
|
},
|
|
|
|
|
+ onShow() {
|
|
|
|
|
+ //采购成功之后的订单详情页过来不刷新
|
|
|
|
|
+ if(this.needRefresh == 0){
|
|
|
|
|
+ this.needRefresh = 1
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.resetList()
|
|
|
|
|
+ this.getCgList()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
init(){
|
|
init(){
|
|
|
|
|
|