|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
if(data.status == 4){
|
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
|
setTimeout(function(){
|
|
|
- //that.pageTo({url: '/pagesPurchase/info?orderSn='+that.info.orderSn,type:2})
|
|
|
+ that.goBackBefore()
|
|
|
},1100)
|
|
|
}
|
|
|
})
|
|
|
@@ -138,13 +138,13 @@ export default {
|
|
|
//uni.hideLoading()
|
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
|
setTimeout(function(){
|
|
|
- //uni.navigateBack()
|
|
|
+ that.goBackBefore()
|
|
|
},1300)
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
goBackFn() {
|
|
|
- //uni.navigateBack({})
|
|
|
+ this.goBackBefore()
|
|
|
},
|
|
|
commitChange(type){
|
|
|
let that = this
|
|
|
@@ -193,10 +193,20 @@ export default {
|
|
|
//uni.hideLoading()
|
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
|
setTimeout(function(){
|
|
|
- //that.pageTo({url: '/pagesPurchase/info?orderSn='+that.info.orderSn,type:2})
|
|
|
- },1100)
|
|
|
+ that.goBackBefore()
|
|
|
+ },1800)
|
|
|
})
|
|
|
},
|
|
|
+ goBackBefore(){
|
|
|
+ let query = {};
|
|
|
+ let backType = this.$route.query.backType ? this.$route.query.backType : 'add'
|
|
|
+ if(backType == 'add'){
|
|
|
+ this.$router.push({path:'/in/add',query})
|
|
|
+ }
|
|
|
+ if(backType == 'list'){
|
|
|
+ this.$router.push({path:'/in/list',query})
|
|
|
+ }
|
|
|
+ },
|
|
|
linkChange(i){
|
|
|
if(this.flowersList[i].suggestPrice && Number(this.flowersList[i].suggestPrice)>0){
|
|
|
let skMore = this.flowersList[i].skMore ? Number(this.flowersList[i].skMore) : 0
|