| | |
| | | cancel(){ |
| | | console.log("cancel") |
| | | wx.navigateBack({ |
| | | |
| | | }) |
| | | }, |
| | | //通过 |
| | |
| | | url: managerReportDetail.globalData.url +"/report/audit" , |
| | | method:"POST", |
| | | data:this.data.reportDetail, |
| | | header: { 'token':wx.getStorageSync('token') , |
| | | header: { |
| | | 'token': wx.getStorageSync('token'), |
| | | 'content-type': 'application/json' |
| | | } ,success:(res)=>{ |
| | | console.log(res) |
| | |
| | | } |
| | | }, |
| | | onLoad(e) { |
| | | console.log(e) |
| | | wx.request( |
| | | { |
| | | url:managerReportDetail.globalData.url+"/report/" + e.id, |
| | | method: "GET", |
| | | header: { 'token':wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | let contractMaterials = res.data.data.contractMaterials.split(",") |
| | | let elseMaterials = res.data.data.elseMaterials.split(",") |
| | | let idCardMaterials = res.data.data.idCardMaterials.split(",") |
| | | let transactionMaterials = res.data.data.transactionMaterials.split(",") |
| | | this.setData({ |
| | | reportDetail: res.data.data, |
| | | images:res.data.data.reportMaterials.split(",") |
| | | images: [...idCardMaterials,...contractMaterials,...transactionMaterials,...elseMaterials] |
| | | }) |
| | | 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]=managerReportDetail.globalData.imageUrl+"/img/"+this.data.images[index] |
| | |
| | | this.setData({ |
| | | images:this.data.images |
| | | }) |
| | | console.log(this.data.images) |
| | | } |
| | | }) |
| | | wx.request( |