| | |
| | | this.coc = result.coc; |
| | | this.cocId = result.coc.Id; |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.errorMsgList; |
| | | this.showSpinner = false; |
| | | this.showPage = true; |
| | | }else{ |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.errorMsgList; |
| | | this.showSpinner = false; |
| | | this.showPage = true; |
| | | console.log("error:"+result.errorMsg); |
| | |
| | | this.returnFLGbln = result.returnFLGbln; |
| | | this.coc = result.coc; |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.errorMsgList; |
| | | this.detailsSummary = result.detailsSummary; |
| | | for(var i in this.detailsSummary){ |
| | | if(this.detailsSummary[i].Prod != null){ |
| | |
| | | }else { |
| | | this.showSpinner = false; |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.errorMsgList; |
| | | console.log("error:"+result.errorMsg); |
| | | this.showMyToast('获取失败',result.errorMsg,'error'); |
| | | } |
| | |
| | | if(result.result == 'Success'){ |
| | | this.showSpinner = false; |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.errorMsgList; |
| | | var url = result.url; |
| | | const config = { |
| | | type: 'standard__webPage', |
| | |
| | | }else { |
| | | this.showSpinner = false; |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | console.log("error:"+error); |
| | | this.errorMsgs = result.errorMsgList; |
| | | console.log("error1:"+result.errorMsg); |
| | | this.showMyToast('到货确认失败',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch(error=>{ |
| | | this.showSpinner = false; |
| | | console.log("error:"+error); |
| | | console.log("error2:"+error); |
| | | this.showMyToast('到货确认失败',error,'error'); |
| | | }) |
| | | } |
| | |
| | | // 登录返品 |
| | | updateGoodsOfReturn(){ |
| | | this.showSpinner = true; |
| | | updateGoodsOfReturn({arrControllerStr : this.arrController,showGoodsofReturnListStr : this.showGoodsofReturnList}) |
| | | updateGoodsOfReturn({arrControllerStr : this.arrController,showGoodsofReturnListStr : JSON.stringify(this.showGoodsofReturnList)}) |
| | | .then(result=>{ |
| | | this.showSpinner = false; |
| | | this.arrController = result.arrGoodCon; |
| | | if(result.result == 'Success'){ |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.errorMsgList; |
| | | var url = result.url; |
| | | const config = { |
| | | type: 'standard__webPage', |
| | |
| | | }else { |
| | | this.showSpinner = false; |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.warningMsgList; |
| | | console.log("error:"+error); |
| | | this.errorMsgs = result.errorMsgList; |
| | | console.log("error1:"+result.errorMsg); |
| | | this.showMyToast('登录返品失败',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch(error=>{ |
| | | this.showSpinner = false; |
| | | console.log("error:"+error); |
| | | console.log("error2:"+JSON.stringify(error)); |
| | | this.showMyToast('登录返品失败',error,'error'); |
| | | }) |
| | | } |