|
@@ -71,8 +71,15 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ toDetail(data){
|
|
|
+ uni.$emit("updateQueryByCodeList")
|
|
|
+ uni.redirectTo({
|
|
|
+ url: "/pages/digitalShelf/orderDetail?shelfOrderSn="+data.shelfOrderSn
|
|
|
+ })
|
|
|
+ },
|
|
|
// 确认取货
|
|
|
outShelfOrder(){
|
|
|
+ const _this = this
|
|
|
this.loading = true
|
|
|
shelfOrderOnceCreate({
|
|
|
billSource: this.nowData.billSource,
|
|
@@ -88,12 +95,9 @@
|
|
|
content: res.data.remindMessage,
|
|
|
confirmText: '知道了',
|
|
|
showCancel: false,
|
|
|
- success(res) {
|
|
|
- if(res.confirm){
|
|
|
- uni.$emit("updateQueryByCodeList")
|
|
|
- uni.redirectTo({
|
|
|
- url: "/pages/digitalShelf/orderDetail?shelfOrderSn="+res.data.shelfOrderSn
|
|
|
- })
|
|
|
+ success(ret) {
|
|
|
+ if(ret.confirm){
|
|
|
+ _this.toDetail(res.data)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -103,10 +107,7 @@
|
|
|
title: res.message,
|
|
|
duration: 4000
|
|
|
})
|
|
|
- uni.$emit("updateQueryByCodeList")
|
|
|
- uni.redirectTo({
|
|
|
- url: "/pages/digitalShelf/orderDetail?shelfOrderSn="+res.data.shelfOrderSn
|
|
|
- })
|
|
|
+ _this.toDetail(res.data)
|
|
|
}
|
|
|
}else{
|
|
|
uni.showModal({
|