diff --git a/constant/url.js b/constant/url.js index 0023e13..afb0344 100644 --- a/constant/url.js +++ b/constant/url.js @@ -54,5 +54,7 @@ export default { //查询费用信息 listFee:baseUrl +'app/fee.listFee', //查询缴费历史 - queryFeeDetail: baseUrl + "app/fee.queryFeeDetail" + queryFeeDetail: baseUrl + "app/fee.queryFeeDetail", + // 投诉 处理意见 + listWorkflowAuditInfo: baseUrl + 'app/workflow.listWorkflowAuditInfo' } diff --git a/pages/complaintOrderDetail/complaintOrderDetail.vue b/pages/complaintOrderDetail/complaintOrderDetail.vue index ce640fc..b2f2587 100644 --- a/pages/complaintOrderDetail/complaintOrderDetail.vue +++ b/pages/complaintOrderDetail/complaintOrderDetail.vue @@ -66,18 +66,38 @@ {{auditHistoryOrder.context}} - - - 审核信息 - - - - - - 审核结果 + + + + + - - {{auditHistoryOrder.stateName}} + + + + 工单 + + + {{item.auditName}} 于 {{item.auditTime}} 处理完成 + + + {{item.auditName}} 正在处理 + + + 处理意见: {{item.message}} + + + + + + + + + + + + + @@ -89,7 +109,11 @@ data() { return { complaintId:'', - auditHistoryOrder:{} + auditHistoryOrder:{}, + audits:[], + srcPath:'', + viewImage: false, + viewImageSrc: '', } }, onLoad(options) { @@ -97,7 +121,12 @@ console.log('options',options); this.complaintId = _complaintId; + this.srcPath=this.url.hcBaseUrl; + this._loadComplaintHistoryOrder(); + + + this._listWorkflowAuditInfo(); }, methods: { _loadComplaintHistoryOrder:function(){ @@ -105,6 +134,52 @@ this.auditHistoryOrder = wx.getStorageSync("_complaintOrderDetail_"+this.complaintId); }, + _listWorkflowAuditInfo: function(_active) { + let that = this; + let _paramIn = { + businessKey: that.complaintId, + communityId: that.auditHistoryOrder.communityId + }; + this.context.request({ + url: this.url.listWorkflowAuditInfo, + header: this.context.getHeaders(), + method: "GET", + data: _paramIn, + success: function(res) { + let _json = res.data; + + if (_json.code == 0) { + let _audits = _json.data; + + that.audits = _audits; + + return; + } + + wx.showToast({ + title: _json.msg, + icon: 'none', + duration: 2000 + }); + }, + fail: function(e) { + wx.showToast({ + title: "服务器异常了", + icon: 'none', + duration: 2000 + }) + } + }) + }, + preview: function(e) { + console.log('图片地址', e); + let _url = e.target.dataset.url; + this.viewImageSrc = _url; + this.viewImage = true; + }, + closeViewImage: function() { + this.viewImage = false; + }, } }