| | |
| | | uni.hideLoading() |
| | | if (res.code == 0) { |
| | | this.$u.toast('接单成功'); |
| | | //判断是不是集装箱 是否需要输入 |
| | | if(this.activeObj.isContainerNum){ |
| | | this.enterCode = true; |
| | | }else{ |
| | | this.enterCode = false; |
| | | } |
| | | |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '接单失败'); |
| | | } |
| | |
| | | }, |
| | | cancelCodeEnter(){ |
| | | this.activeObj.containerNumber = this.enterCodeStr; |
| | | this.$reqPut('tmtaskCoalPut',this.activeObj).then(res=>{ |
| | | this.$reqPut('addContainer',{ |
| | | id:this.activeObj.tmId, |
| | | containerNumber:this.activeObj.containerNumber |
| | | }).then(res=>{ |
| | | this.$u.toast('操作成功'); |
| | | this.enterCodeStr = ''; |
| | | this.enterCode = false; |