|
|
@@ -237,11 +237,22 @@ export default {
|
|
|
this.$msg(checkRes);
|
|
|
}
|
|
|
},
|
|
|
- async confirmStockOut(formData){
|
|
|
- let { data } = await createStockOutOrderApi(formData)
|
|
|
- this.$msg("确认成功")
|
|
|
- this.removeFromSaveDirect()
|
|
|
- this.pageTo({url:'/pagesStorehouse/allot/exDetails',query:{orderSn:data.orderSn}, type: 2})
|
|
|
+ confirmStockOut(formData){
|
|
|
+ let that = this
|
|
|
+ uni.showLoading({title: '加载中',mask:true})
|
|
|
+ createStockOutOrderApi(formData).then(res=>{
|
|
|
+ uni.hideLoading()
|
|
|
+ let data = res.data
|
|
|
+ if(data.orderSn){
|
|
|
+ that.$msg("提交成功")
|
|
|
+ that.removeFromSaveDirect()
|
|
|
+ setTimeout(function(){
|
|
|
+ that.pageTo({url:'/pagesStorehouse/allot/exDetails',query:{orderSn:data.orderSn}, type: 2})
|
|
|
+ },1500)
|
|
|
+ }else{
|
|
|
+ that.$msg('提交失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
}
|
|
|
};
|