(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["views2"],{a320:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("basic-container",[t("avue-skeleton",{attrs:{loading:e.waiting,avatar:"",rows:8}},[t("avue-affix",{attrs:{id:"avue-view","offset-top":114}},[t("div",{staticClass:"header"},[t("avue-title",{attrs:{value:e.process.processDefinitionName}}),"todo"!=e.process.status?t("div",[e._v("\n          主题："),t("avue-select",{attrs:{size:"mini",clearable:!1,dic:e.themeList},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})],1):e._e()],1)]),t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"申请信息",name:"first"}},[t("el-card",{attrs:{shadow:"never"}},[t("div",{ref:"printBody",class:"todo"!=e.process.status?"wf-theme-".concat(e.theme):""})]),"todo"==e.process.status?t("el-card",{staticStyle:{"margin-top":"20px"},attrs:{shadow:"never"}},[t("wf-examine-form",{ref:"examineForm",attrs:{comment:e.comment,process:e.process},on:{"update:comment":function(t){e.comment=t},"user-select":e.handleUserSelect}})],1):e._e()],1),t("el-tab-pane",{attrs:{label:"流转信息",name:"second"}},[t("el-card",{staticStyle:{"margin-top":"5px"},attrs:{shadow:"never"}},[t("wf-flow",{attrs:{flow:e.flow}})],1)],1),t("el-tab-pane",{attrs:{label:"流程跟踪",name:"third"}},["third"==e.activeName?[t("el-card",{staticStyle:{"margin-top":"5px"},attrs:{shadow:"never"}},[t("wf-design",{ref:"bpmn",staticStyle:{height:"500px"},attrs:{options:e.bpmnOption}})],1)]:e._e()],2)],1)],1),t("wf-button",{attrs:{loading:e.submitLoading,"button-list":e.buttonList,process:e.process,comment:e.comment},on:{examine:e.handleExamine,"user-select":e.handleUserSelect,print:e.handlePrint,rollback:e.handleRollbackTask,terminate:e.handleTerminateProcess}}),t("user-select",{ref:"user-select",attrs:{"check-type":e.checkType,"default-checked":e.defaultChecked},on:{onConfirm:e.handleUserSelectConfirm}})],1)},n=[],o=a("d8f4"),i=o["a"],r=(a("c930"),a("2877")),c=Object(r["a"])(i,s,n,!1,null,"4eab7de4",null);t["default"]=c.exports},c3cd:function(e,t,a){},c930:function(e,t,a){"use strict";a("c3cd")},d8f4:function(e,t,a){"use strict";(function(e){a("ac6a"),a("6b54");var s=a("23ed"),n=a("2169"),o=a("f500"),i=a("1f8b"),r=a("1a89"),c=a("1c19");t["a"]={mixins:[r["a"],c["a"]],components:{userSelect:i["default"],WfExamineForm:s["default"],WfButton:n["default"],WfFlow:o["default"]},watch:{"$route.query.p":{handler:function(t){if(t){var a=JSON.parse(e.from(t,"base64").toString()),s=a.taskId,n=a.processInsId;s&&n&&this.getDetail(s,n)}},immediate:!0}},data:function(){return{activeName:"first",defaults:{},form:{},option:{},vars:[],submitLoading:!1}},methods:{getDetail:function(e,t){var a=this;this.getTaskDetail(e,t).then((function(e){var t=e.process,s=e.form,n=t.variables,o=t.status,i=s.taskForm;console.log("process",t),console.log("taskForm",i),console.log("variables",n),console.log("status",o),a.waiting=!1}))},handleExamine:function(e){var t=this;this.submitLoading=!0,this.$refs.form.validate((function(a,s){if(a){var n={};t.vars.forEach((function(e){"comment"!=e&&t.form[e]&&(n[e]=t.form[e])})),t.handleCompleteTask(e,n).then((function(){t.$message.success("处理成功"),t.handleCloseTag("/plugin/workflow/process/todo")})).catch((function(){s(),t.submitLoading=!1}))}else s(),t.submitLoading=!1}))}}}}).call(this,a("b639").Buffer)}}]);