| | |
| | | this.hform.HBarCode = parts[0] |
| | | this.hform.HProcNo = parts[1] |
| | | this.getHBarCodeData(parts[0]) |
| | | this.getHProcNoData(parts[0],parts[1]) |
| | | // this.getHProcNoData(parts[0],parts[1]) |
| | | }else{ |
| | | this.hform.HBarCode = res.result |
| | | this.getHBarCodeData(res.result) |
| | |
| | | if(res.data.code == 1){ |
| | | var data = res.data.data[0] |
| | | this.getHBarCodeData(data.HBarCode) |
| | | this.getHProcNoData(data.HBarCode,data.HProcNo) |
| | | // this.getHProcNoData(data.HBarCode,data.HProcNo) |
| | | |
| | | this.hform.HInterID= data.HInterID |
| | | this.hform.HBillNo= data.HBillNo |
| | |
| | | // this.hform.HCloseDate= data.HCloseDate |
| | | this.hform.HDeleteMan= data.HDeleteMan |
| | | this.hform.HDeleteDate= data.HDeleteDate |
| | | |
| | | this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo) |
| | | }else{ |
| | | uni.showToast({ |
| | | title:res.data.Message, |
| | |
| | | console.log(1,res); |
| | | uni.hideLoading() |
| | | if(res.data.count == 1){ |
| | | let pages = getCurrentPages(); |
| | | let prePage = pages[pages.length - 2]; |
| | | prePage.$vm.getList() |
| | | // let pages = getCurrentPages(); |
| | | // let prePage = pages[pages.length - 2]; |
| | | // prePage.$vm.getList() |
| | | if(this.isEdit){ |
| | | setTimeout(()=>{ |
| | | uni.redirectTo({ |
| | |
| | | }) |
| | | },1000) |
| | | }else{ |
| | | setTimeout(()=>{ |
| | | uni.navigateBack() |
| | | },1000) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: res.data.Message + '。是否继续新增?(点击取消返回上级页面)', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | | uni.redirectTo({ |
| | | url:'/pages/weiwaigxIn/form?OperationType=1' |
| | | }) |
| | | } else if (res.cancel) { |
| | | console.log('用户点击取消'); |
| | | setTimeout(()=>{ |
| | | uni.navigateBack(); |
| | | },50) |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | uni.showToast({ |
| | | title:res.data.Message, |
| | | icon:'none' |
| | | }) |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |