(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6fdec24d"],{"063d":function(t,e,n){"use strict";n("f3f3")},"0a3f":function(t,e,n){},"5fa0":function(t,e,n){"use strict";n("0a3f")},"72ff":function(t,e,n){"use strict";n.d(e,"l",(function(){return o})),n.d(e,"i",(function(){return i})),n.d(e,"a",(function(){return c})),n.d(e,"x",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"w",(function(){return u})),n.d(e,"d",(function(){return d})),n.d(e,"u",(function(){return m})),n.d(e,"c",(function(){return f})),n.d(e,"k",(function(){return h})),n.d(e,"b",(function(){return b})),n.d(e,"s",(function(){return p})),n.d(e,"q",(function(){return g})),n.d(e,"j",(function(){return k})),n.d(e,"t",(function(){return v})),n.d(e,"v",(function(){return _})),n.d(e,"n",(function(){return w})),n.d(e,"p",(function(){return j})),n.d(e,"o",(function(){return y})),n.d(e,"m",(function(){return I})),n.d(e,"r",(function(){return O})),n.d(e,"f",(function(){return A})),n.d(e,"h",(function(){return F}));var r=n("b775");function o(t){return Object(r["b"])({url:"/cms/cmsArticle/list",method:"get",params:t})}function i(t){return Object(r["b"])({url:"/cms/cmsArticle/"+t,method:"get"})}function c(t){return Object(r["b"])({url:"/cms/cmsArticle",method:"post",data:t})}function a(t){return Object(r["b"])({url:"/cms/cmsArticle/edit",method:"post",data:t})}function s(t){return Object(r["b"])({url:"/cms/cmsArticle/"+t,method:"post"})}function l(t){return Object(r["b"])({url:"/cms/cmsArticle/export",method:"get",params:t})}function u(t){return Object(r["b"])({url:"/cms/cmsArticle/top/"+t,method:"get"})}function d(t){return Object(r["b"])({url:"/cms/cmsArticle/cancelTop/"+t,method:"get"})}function m(t){return Object(r["b"])({url:"/cms/cmsArticle/slide/"+t,method:"get"})}function f(t){return Object(r["b"])({url:"/cms/cmsArticle/cancelSlide/"+t,method:"get"})}function h(t){return Object(r["b"])({url:"/cms/cmsArticle/hot/"+t,method:"get"})}function b(t){return Object(r["b"])({url:"/cms/cmsArticle/cancelHot/"+t,method:"get"})}function p(t){return Object(r["b"])({url:"/cms/cmsArticle/release/"+t,method:"get"})}function g(t){return Object(r["b"])({url:"/cms/cmsArticle/offline/"+t,method:"get"})}function k(t){return Object(r["b"])({url:"/cms/cmsArticle/getArticleClass/"+t,method:"get"})}function v(t){return Object(r["b"])({url:"/cms/cmsArticle/saveArticleClass",method:"post",data:t})}function _(t){return Object(r["b"])({url:"/cms/cmsArticle/submit/"+t,method:"get"})}function w(t){return Object(r["b"])({url:"/cms/cmsArticle/todoList",method:"get",params:t})}function j(t){return Object(r["b"])({url:"/cms/cmsArticle/migrationClass",method:"post",data:t})}function y(t){return Object(r["b"])({url:"/cms/cmsArticle/migrationArticle",method:"post",data:t})}function I(t){return Object(r["b"])({url:"/cms/cmsArticle/recycleList",method:"get",params:t})}function O(t){return Object(r["b"])({url:"/cms/cmsArticle/recover/"+t,method:"get"})}function A(t){return Object(r["b"])({url:"/cms/cmsArticle/completelyRemove/"+t,method:"post"})}function F(t){return Object(r["b"])({url:"/cms/cmsArticle/auditFlow/"+t,method:"get"})}},c9d2:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("el-button",{staticStyle:{float:"right","margin-bottom":"5px","margin-top":"-18px"},attrs:{type:"primary"},on:{click:t.goBack}},[t._v("返回")]),t.flowRecordList?e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",{staticClass:"el-icon-notebook-1"},[t._v("审批记录")])]),e("el-col",{attrs:{span:16,offset:4}},[e("div",{staticClass:"block"},[e("el-timeline",t._l(t.flowRecordList,(function(n,r){return e("el-timeline-item",{key:r,attrs:{icon:t.setIcon(n.finishTime),color:t.setColor(n.finishTime)}},[e("p",{staticStyle:{"font-weight":"700"}},[t._v(t._s(n.taskName))]),e("el-card",{attrs:{"body-style":{padding:"10px"}}},[n.assigneeName?e("label",{staticStyle:{"font-weight":"normal","margin-right":"30px"}},[t._v("实际办理： "+t._s(n.assigneeName)+" "),e("el-tag",{attrs:{type:"info",size:"mini"}},[t._v(t._s(n.deptName))])],1):t._e(),n.candidate?e("label",{staticStyle:{"font-weight":"normal","margin-right":"30px"}},[t._v("候选办理： "+t._s(n.candidate))]):t._e(),e("label",{staticStyle:{"font-weight":"normal"}},[t._v("接收时间： ")]),e("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[t._v(t._s(n.createTime))]),n.finishTime?e("label",{staticStyle:{"margin-left":"30px","font-weight":"normal"}},[t._v("办结时间： ")]):t._e(),e("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[t._v(t._s(n.finishTime))]),n.duration?e("label",{staticStyle:{"margin-left":"30px","font-weight":"normal"}},[t._v("耗时： ")]):t._e(),e("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[t._v(t._s(n.duration))]),n.comment?e("p",["1"===n.comment.type?e("el-tag",{attrs:{type:"success"}},[t._v(" "+t._s(n.comment.comment))]):t._e(),"2"===n.comment.type?e("el-tag",{attrs:{type:"warning"}},[t._v(" "+t._s(n.comment.comment))]):t._e(),"3"===n.comment.type?e("el-tag",{attrs:{type:"danger"}},[t._v(" "+t._s(n.comment.comment))]):t._e()],1):t._e()])],1)})),1)],1)])],1):t._e(),e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",{staticClass:"el-icon-picture-outline"},[t._v("审批流程")])]),e("div",[e("flow",{staticStyle:{"margin-top":"-10rem","margin-bottom":"-8rem","margin-right":"10rem"},attrs:{xmlData:t.xmlData,taskData:t.taskList}})],1)])],1)},o=[],i=(n("a15b"),n("a434"),n("d3b7"),n("159b"),n("ddb0"),n("6e55")),c=n("1538"),a=n("e099"),s=n("589b"),l=(n("542c"),n("c0c7"),n("72ff"),{name:"FlowAuditIndex",components:{flow:s["default"]},props:{obj:{type:Object}},data:function(){return{xmlData:"",taskList:[],defaultProps:{children:"children",label:"label"},loading:!1,flowRecordList:[],formConfCopy:{},src:null,rules:{},variablesForm:{},taskForm:{returnTaskShow:!1,delegateTaskShow:!1,defaultTaskShow:!0,sendUserShow:!1,multiple:!1,comment:"审核通过",procInsId:"",instanceId:"",deployId:"",taskId:"",procDefId:"",vars:"",targetKey:""}}},created:function(){this.taskForm.deployId=this.obj.deployId,this.taskForm.taskId=this.obj.taskId,this.taskForm.procInsId=this.obj.procInsId,this.taskForm.instanceId=this.obj.procInsId,this.taskForm.procDefId=this.obj.procDefId,this.getFlowViewer(this.taskForm.procInsId),this.getModelDetail(this.taskForm.deployId),this.taskForm.taskId&&(this.processVariables(this.taskForm.taskId),this.getNextFlowNode(this.taskForm.taskId)),this.getFlowRecordList(this.taskForm.procInsId,this.taskForm.deployId),this.finished=this.obj.finished},mounted:function(){},methods:{reset:function(){this.audit=this.$options.data().audit},filterNode:function(t,e){return!t||-1!==e.label.indexOf(t)},getModelDetail:function(t){var e=this;Object(c["h"])(t).then((function(t){e.xmlData=t.data}))},getFlowViewer:function(t){var e=this;Object(c["e"])(t).then((function(t){e.taskList=t.data}))},setIcon:function(t){return t?"el-icon-check":"el-icon-time"},setColor:function(t){return t?"#2bc418":"#b3bdbb"},handleClose:function(t){this.userData.splice(this.userData.indexOf(t),1)},handleCheckChange:function(t){this.taskForm.values=t instanceof Array?{approval:t.join(",")}:{approval:t}},getFlowRecordList:function(t,e){var n=this,r={procInsId:t,deployId:e};Object(i["e"])(r).then((function(t){if(n.flowRecordList=t.data.flowList,n.flowRecordList.length>0){var e=n.flowRecordList[n.flowRecordList.length-1].formDta.variables;n.variablesData=e||{},n.variableOpen=!0}t.data.formData&&(t.data.formData&&(n.formConf=t.data.formData),n.formConfOpen=!0)})).catch((function(t){n.goBack()}))},fillFormData:function(t,e){t.fields.forEach((function(t){var n=e[t.__vModel__];n&&(t.__config__.defaultValue=n)}))},processVariables:function(t){var e=this;t&&Object(c["f"])(t).then((function(t){e.variablesData=t.data.variables||{},e.variableOpen=!0}))},getNextFlowNode:function(t){var e=this,n={taskId:t};Object(a["f"])(n).then((function(t){var n=t.data;n&&("assignee"===n.type?e.userDataList=t.data.userList:"candidateUsers"===n.type?(e.userDataList=t.data.userList,e.taskForm.multiple=!0):"candidateGroups"===n.type?(t.data.roleList.forEach((function(t){t.userId=t.roleId,t.nickName=t.roleName})),e.userDataList=t.data.roleList,e.taskForm.multiple=!1):"multiInstance"===n.type&&(e.userDataList=t.data.userList,e.taskForm.multiple=!0),e.taskForm.sendUserShow=!0)}))},goBack:function(){this.$emit("ok")}}}),u=l,d=(n("063d"),n("5fa0"),n("2877")),m=Object(d["a"])(u,r,o,!1,null,"5e81cf68",null);e["default"]=m.exports},f3f3:function(t,e,n){}}]);