|
@@ -242,20 +242,29 @@
|
|
},
|
|
},
|
|
// 一键取货
|
|
// 一键取货
|
|
onceQh(item,index){
|
|
onceQh(item,index){
|
|
- this.loading = true
|
|
|
|
- takeGoods({sn:item.shelfOrderSn}).then(res => {
|
|
|
|
- if(res.status == 200){
|
|
|
|
- this.list.splice(index,1)
|
|
|
|
- if(this.current == 0){
|
|
|
|
- this.tabList[0].count = this.tabList[0].count - 1
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.message,
|
|
|
|
- icon:"none"
|
|
|
|
- })
|
|
|
|
- this.loading = false
|
|
|
|
- })
|
|
|
|
|
|
+ const _this = this
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '确认一键取货吗?',
|
|
|
|
+ success: (ret) => {
|
|
|
|
+ if(ret.confirm){
|
|
|
|
+ _this.loading = true
|
|
|
|
+ takeGoods({sn:item.shelfOrderSn}).then(res => {
|
|
|
|
+ if(res.status == 200){
|
|
|
|
+ _this.list.splice(index,1)
|
|
|
|
+ if(_this.current == 0){
|
|
|
|
+ _this.tabList[0].count = _this.tabList[0].count - 1
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.message,
|
|
|
|
+ icon:"none"
|
|
|
|
+ })
|
|
|
|
+ _this.loading = false
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|