|
@@ -281,11 +281,15 @@
|
|
|
// 提交
|
|
|
submitOrder(){
|
|
|
if(this.totalCategory){
|
|
|
- uni.$emit("chooseBackProduct",this.chooseList)
|
|
|
- this.$store.commit('setShuntBackList',this.chooseList);
|
|
|
- uni.navigateTo({
|
|
|
- url:'/pages/shuntBackManage/addBackOrder?shelfSn='+ this.nowData.shelfSn+'&shelfName='+this.nowData.shelfName
|
|
|
- })
|
|
|
+ if(this.nowData.chooseKey && this.nowData.chooseKey.length>0){
|
|
|
+ uni.$emit("chooseBackProduct",this.chooseList)
|
|
|
+ uni.navigateBack()
|
|
|
+ }else{
|
|
|
+ this.$store.commit('setShuntBackList',this.chooseList);
|
|
|
+ uni.redirectTo({
|
|
|
+ url:'/pages/shuntBackManage/addBackOrder?shelfSn='+ this.nowData.shelfSn+'&shelfName='+this.nowData.shelfName
|
|
|
+ })
|
|
|
+ }
|
|
|
}else{
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|