diff --git a/src/views/wf/ticketdetail.vue b/src/views/wf/ticketdetail.vue index ded02abf..6d2fba90 100644 --- a/src/views/wf/ticketdetail.vue +++ b/src/views/wf/ticketdetail.vue @@ -245,6 +245,9 @@ + + + { - this.operationBtn = res; + that.operationBtn = res; + if(res.length>0){ + for (let i = 0; i < res.length; i++) { + if(res[i].on_submit_func=="apps.opm.services.check_opl_audit_imgs"){ + that.audit_imgs_show = true; + } + } + } + }); }, //访客详情 @@ -747,11 +769,23 @@ export default { }, //许可证详情 getOpl() { - this.$API.opm.opl.read.req(this.projectId).then((res) => { - debugger; - console.log(res); - this.itemDetail = res; - this.operationId = res.operation; + let that = this; + that.$API.opm.opl.read.req(that.projectId).then((res) => { + // debugger; + // console.log(res); + that.itemDetail = res; + that.operationId = res.operation; + if(res.audit_imgs.length>0){ + that.audit_imgs = res.audit_imgs; + res.audit_imgs_.forEach((item) => { + let obj = {}; + Object.assign(obj, item); + obj.url = item.file; + that.fileurl.push(obj) + }); + // console.log('that.audit_imgs',that.audit_imgs) + // console.log('that.fileurl',that.fileurl) + } }); }, showMoreInfo() { @@ -822,6 +856,9 @@ export default { params.ticket_data.close_note = this.form.close_note; params.ticket_data.close_dos = this.form.close_dos; } + if(this.audit_imgs_show){ + params.ticket_data.audit_imgs = this.audit_imgs; + } this.$API.wf.ticket.ticketHandle .req(this.ticketId, params) .then((res) => {