| | |
| | | //查看图片 |
| | | face(){ |
| | | wx.previewMedia({ |
| | | sources:[{url:managerCauseDetail.globalData.imageUrl+"/img/"+this.data.reportDetail.pic}] |
| | | sources:[{url:managerReportDetail.globalData.imageUrl+"/img/"+this.data.reportDetail.pic}] |
| | | }) |
| | | }, |
| | | //选择案件 |
| | |
| | | console.log(this.data.reportDetail) |
| | | |
| | | }, |
| | | cancel(){ |
| | | console.log("cancel") |
| | | wx.navigateBack({ |
| | | |
| | | }) |
| | | }, |
| | | //通过 |
| | | pass(){ |
| | | wx.request( |
| | | { |
| | | url: managerReportDetail.globalData.url +"/report/audit" , |
| | | method:"POST", |
| | | data:this.data.reportDetail, |
| | | header: { 'token':wx.getStorageSync('token') , |
| | | 'content-type': 'application/json' |
| | | } ,success:(res)=>{ |
| | | console.log(res) |
| | | wx.reLaunch({ |
| | | url:'../../cause/index' |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | |
| | | if(this.data.reportDetail.causeId==null){ |
| | | wx.showToast({ |
| | | title:"请选择关联案件", |
| | | icon:"error" |
| | | }) |
| | | }else{ |
| | | wx.request( |
| | | { |
| | | url: managerReportDetail.globalData.url +"/report/audit" , |
| | | method:"POST", |
| | | data:this.data.reportDetail, |
| | | header: { 'token':wx.getStorageSync('token') , |
| | | 'content-type': 'application/json' |
| | | } ,success:(res)=>{ |
| | | console.log(res) |
| | | wx.reLaunch({ |
| | | url:'../../cause/index' |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | onLoad(e) { |
| | | console.log(e) |
| | |
| | | { |
| | | url:managerReportDetail.globalData.url+"/report/" + e.id, |
| | | method: "GET", |
| | | // header: { 'token':wx.getStorageSync('token') }, |
| | | header: { 'token':wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | this.setData({ |
| | | reportDetail: res.data.data, |
| | |
| | | console.log(this.data.reportDetail) |
| | | for (let index = 0; index < this.data.images.length; index++) { |
| | | if(this.data.images!=null&&this.data.images[index]!=""&&this.data.images!=undefined){ |
| | | this.data.images[index]=managerCauseDetail.globalData.imageUrl+"/img/"+this.data.images[index] |
| | | this.data.images[index]=managerReportDetail.globalData.imageUrl+"/img/"+this.data.images[index] |
| | | } else{ |
| | | this.data.images=[] |
| | | } |
| | |
| | | { |
| | | url: managerReportDetail.globalData.url+ "/cause/getCauseList", |
| | | method: "GET", |
| | | // header: { 'token': wx.getStorageSync('token')}, |
| | | header: { 'token': wx.getStorageSync('token')}, |
| | | success: (res) => { |
| | | this.setData({ |
| | | causeList: res.data.data.records |