(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a587188"],{"226a":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-center"}},[n("div",{staticClass:"NCC-preview-main flow-form-main nohead"},[n("div",{staticClass:"btns"},["-1"==t.setting.opType&&t.setting.id||0==t.setting.opType||1==t.setting.opType||2==t.setting.opType?[t.properties.hasPrintBtn&&t.properties.printId?n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.printBrowseVisible=!0}}},[t._v("\n "+t._s(t.properties.printBtnText||"打 印"))]):t._e()]:t._e(),"-1"==t.setting.opType?[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.eventLancher("submit")}}},[t._v("\n "+t._s(t.properties.submitBtnText||"提交审核"))]),n("el-button",{attrs:{type:"warning",loading:t.btnLoading},on:{click:function(e){return t.eventLancher("save")}}},[t._v("\n "+t._s(t.properties.saveBtnText||"保存草稿"))])]:t._e(),1==t.setting.opType?[t.properties.hasTransferBtn?n("el-button",{attrs:{type:"warning"},on:{click:function(e){return t.openUserBox("transfer")}}},[t._v(t._s(t.properties.transferBtnText||"转 办"))]):t._e(),t.properties.hasAuditBtn?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.eventLancher("audit")}}},[t._v("\n "+t._s(t.properties.auditBtnText||"通 过"))]):t._e(),t.properties.hasRejectBtn?n("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.eventLancher("reject")}}},[t._v("\n "+t._s(t.properties.rejectBtnText||"拒 绝"))]):t._e()]:t._e(),0==t.setting.opType&&1==t.setting.status?[t.properties.hasPressBtn||void 0===t.properties.hasPressBtn?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.press()}}},[t._v("\n "+t._s(t.properties.pressBtnText||"催 办"))]):t._e(),t.properties.hasRevokeBtn||void 0===t.properties.hasRevokeBtn?n("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.revoke()}}},[t._v("\n "+t._s(t.properties.revokeBtnText||"撤 回"))]):t._e()]:t._e(),2==t.setting.opType&&t.properties.hasRevokeBtn?n("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.recall()}}},[t._v(t._s(t.properties.revokeBtnText||"撤 回"))]):t._e(),4==t.setting.opType?[1==t.setting.status?n("el-button",{attrs:{type:"primary"},on:{click:t.openAssignBox}},[t._v("指 派\n ")]):t._e(),2!=t.setting.status&&5!=t.setting.status?n("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.cancel()}}},[t._v("终 止")]):t._e()]:t._e(),n("el-button",{on:{click:function(e){return t.goBack()}}},[t._v(t._s(t.$t("common.cancelButton")))])],2),0!=t.setting.opType&&4!=t.setting.opType||"0"!==t.activeTab?t._e():n("div",{staticClass:"approve-result"},[n("div",{staticClass:"approve-result-img",class:t._f("flowStatus")(t.flowTaskInfo.status)})]),n("el-tabs",{staticClass:"NCC-el_tabs",model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[n("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{label:"表单信息"}},[n(t.currentView,{ref:"form",tag:"component",on:{close:t.goBack,eventReciver:t.eventReciver,setLoad:t.setLoad,setPageLoad:t.setPageLoad}})],1),n("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{label:"流程信息"}},[t.flowTemplateJson.nodeId?n("Process",{attrs:{conf:t.flowTemplateJson}}):t._e()],1),"-1"!=t.setting.opType?n("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{label:"流转记录"}},[n("recordList",{attrs:{list:t.flowTaskOperatorRecordList,endTime:t.endTime}})],1):t._e()],1),n("el-dialog",{staticClass:"NCC-dialog NCC-dialog_center",attrs:{title:"audit"===t.eventType?"审批通过":"审批拒绝","close-on-click-modal":!1,visible:t.visible,"lock-scroll":"","append-to-body":"",width:"600px"},on:{"update:visible":function(e){t.visible=e}}},[n("el-form",{attrs:{"label-width":"80px"}},["audit"===t.eventType&&t.properties.hasFreeApprover?n("el-form-item",{attrs:{label:"加签人员"}},[n("user-select",{attrs:{placeholder:"请选择加签人员,不选即该节点审核结束"},model:{value:t.handleId,callback:function(e){t.handleId=e},expression:"handleId"}})],1):t._e(),n("el-form-item",{attrs:{label:"审批意见"}},[n("el-input",{attrs:{placeholder:"请输入审批意见(选填)",type:"textarea",rows:4},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}})],1),t.properties.hasSign?n("el-form-item",[n("div",{staticClass:"sign-main"},[n("div",{staticClass:"sign-head"},[n("div",{staticClass:"sign-tip"},[t._v("请在这里输入你的签名")]),n("div",{staticClass:"sign-action"},[n("el-button",{staticClass:"clear-btn",attrs:{size:"mini"},on:{click:t.handleReset}},[t._v("清空")]),n("el-button",{staticClass:"sure-btn",attrs:{size:"mini",disabled:!!t.signImg},on:{click:t.handleGenerate}},[t._v("确定签名")])],1)]),n("div",{staticClass:"sign-box"},[t.signImg?t._e():n("vue-esign",{ref:"esign",attrs:{height:330,lineWidth:5}}),t.signImg?n("img",{staticClass:"sign-img",attrs:{src:t.signImg,alt:""}}):t._e()],1)])]):t._e(),t.properties.isCustomCopy?n("el-form-item",{attrs:{label:"抄送人员"}},[n("user-select",{attrs:{placeholder:"请选择",multiple:""},model:{value:t.copyIds,callback:function(e){t.copyIds=e},expression:"copyIds"}})],1):t._e()],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.visible=!1}}},[t._v(t._s(t.$t("common.cancelButton")))]),n("el-button",{attrs:{type:"primary",loading:t.approvalBtnLoading},on:{click:function(e){return t.handleApproval()}}},[t._v("\n "+t._s(t.$t("common.confirmButton"))+"\n ")])],1)],1),n("el-dialog",{staticClass:"NCC-dialog NCC-dialog_center",attrs:{title:"指派","close-on-click-modal":!1,visible:t.assignVisible,"lock-scroll":"","append-to-body":"",width:"600px"},on:{"update:visible":function(e){t.assignVisible=e}}},[n("el-form",{ref:"assignForm",attrs:{"label-width":"80px",model:t.assignForm,rules:t.assignRules}},[n("el-form-item",{attrs:{label:"指派节点",prop:"nodeCode"}},[n("el-select",{attrs:{placeholder:"请选择指派节点"},model:{value:t.assignForm.nodeCode,callback:function(e){t.$set(t.assignForm,"nodeCode",e)},expression:"assignForm.nodeCode"}},t._l(t.assignNodeList,(function(t){return n("el-option",{key:t.nodeCode,attrs:{label:t.nodeName,value:t.nodeCode}})})),1)],1),n("el-form-item",{attrs:{label:"指派人",prop:"freeApproverUserId"}},[n("user-select",{attrs:{placeholder:"请选择指派人"},model:{value:t.assignForm.freeApproverUserId,callback:function(e){t.$set(t.assignForm,"freeApproverUserId",e)},expression:"assignForm.freeApproverUserId"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.assignVisible=!1}}},[t._v(t._s(t.$t("common.cancelButton")))]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleAssign()}}},[t._v(t._s(t.$t("common.confirmButton"))+"\n ")])],1)],1),t.userBoxVisible?n("UserBox",{ref:"userBox",attrs:{title:t.userBoxTitle},on:{submit:t.handleTransfer}}):t._e(),n("print-browse",{attrs:{visible:t.printBrowseVisible,id:t.properties.printId,formId:t.setting.id,fullName:t.setting.fullName},on:{"update:visible":function(e){t.printBrowseVisible=e}}})],1)])},a=[],i=n("db72"),o=(n("ac6a"),n("5451")),r=n("e200"),l=n("7361"),c=n("826a"),u=n("ce76"),p=n("94ab"),f=n("6637"),d=n("afcb"),h=n.n(d),m={components:{recordList:u["default"],Process:p["a"],vueEsign:h.a,PrintBrowse:f["a"]},data:function(){return{userBoxVisible:!1,userBoxTitle:"审批人",assignVisible:!1,assignForm:{nodeCode:"",freeApproverUserId:""},assignRules:{nodeCode:[{required:!0,message:"请选择指派节点",trigger:"change"}],freeApproverUserId:[{required:!0,message:"请选择指派人",trigger:"change"}]},assignNodeList:[],currentView:"",formData:{},setting:{},flowFormInfo:{},flowTaskInfo:{},flowTaskNodeList:[],flowTemplateJson:{},flowTaskOperatorRecordList:[],properties:{},endTime:0,visible:!1,reason:"",handleId:"",activeTab:"0",loading:!1,btnLoading:!1,approvalBtnLoading:!1,printBrowseVisible:!1,eventType:"",signImg:"",copyIds:""}},methods:{goBack:function(t){this.$emit("close",t)},init:function(t){this.loading=!0,this.activeTab="0",this.setting=t,"-1"==this.setting.opType?this.getEngineInfo(t):this.getBeforeInfo(t)},getEngineInfo:function(t){var e=this;Object(o["e"])(t.flowId).then((function(s){t.type=s.data.type,t.fullName=s.data.fullName,1==t.formType?e.currentView=e.getSystemFormView(s.data.formUrl,t.enCode):e.currentView=function(t){return Promise.all([n.e("chunk-commons"),n.e("chunk-efa58356")]).then(function(){var e=[n("6b4f")];t.apply(null,e)}.bind(this)).catch(n.oe)},t.formConf=s.data.formData,e.flowTemplateJson=s.data.flowTemplateJson?JSON.parse(s.data.flowTemplateJson):null,e.flowTemplateJson.state="state-curr",t.formOperates=[],e.properties=e.flowTemplateJson&&e.flowTemplateJson.properties||{},e.flowTemplateJson&&e.flowTemplateJson.properties&&e.flowTemplateJson.properties.formOperates&&(t.formOperates=e.flowTemplateJson.properties.formOperates||[]),setTimeout((function(){e.$nextTick((function(){e.$refs.form&&e.$refs.form.init(t)}))}),500)})).catch((function(){e.loading=!1}))},getBeforeInfo:function(t){var e=this;Object(r["d"])(t.id,{taskNodeId:t.taskNodeId}).then((function(s){if(e.flowFormInfo=s.data.flowFormInfo,e.flowTaskInfo=s.data.flowTaskInfo,t.fullName=e.flowTaskInfo.fullName,t.type=e.flowTaskInfo.type,1==t.formType?e.currentView=e.getSystemFormView(e.flowTaskInfo.formUrl,t.enCode):e.currentView=function(t){return Promise.all([n.e("chunk-commons"),n.e("chunk-efa58356")]).then(function(){var e=[n("6b4f")];t.apply(null,e)}.bind(this)).catch(n.oe)},e.flowTaskNodeList=s.data.flowTaskNodeList,e.flowTemplateJson=e.flowTaskInfo.flowTemplateJson?JSON.parse(e.flowTaskInfo.flowTemplateJson):null,e.flowTaskOperatorRecordList=s.data.flowTaskOperatorRecordList,e.properties=s.data.approversProperties||{},e.endTime=100==e.flowTaskInfo.completion?e.flowTaskInfo.endTime:0,t.formConf=s.data.flowFormInfo,1!=t.opType&&(t.readonly=!0),t.formOperates=[],0==t.opType?(e.properties=e.flowTemplateJson&&e.flowTemplateJson.properties||{},e.flowTemplateJson&&e.flowTemplateJson.properties&&e.flowTemplateJson.properties.formOperates&&(t.formOperates=e.flowTemplateJson.properties.formOperates||[])):t.formOperates=s.data.formOperates||[],e.flowTaskNodeList.length){for(var a=[],i=function(n){var s=e.flowTaskNodeList[n];4==t.opType&&1==s.type&&a.push(s);var i=function t(e){if(Array.isArray(e)&&e.forEach((function(e){return t(e)})),e.nodeId===s.nodeCode)return 0==s.type&&(e.state="state-past"),1==s.type&&(e.state="state-curr"),void("approver"!==s.nodeType&&"start"!==s.nodeType&&"subFlow"!==s.nodeType||(e.content=s.userName));e.conditionNodes&&Array.isArray(e.conditionNodes)&&t(e.conditionNodes),e.childNode&&t(e.childNode)};i(e.flowTemplateJson)},o=0;o0||t[r+1]>0||t[r+2]||t[r+3]>0)&&(a=Math.max(o,a),n=Math.max(i,n),s=Math.min(o,s),e=Math.min(i,e))}return e++,n++,s++,a++,[e,s,n,a]}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(2);s.a.install=function(t){this.installed||(this.installed=!0,t.component("vueEsign",s.a))},e.default=s.a,"undefined"!=typeof window&&window.Vue&&window.Vue.use(s.a)},function(t,e,n){"use strict";function s(t){n(3)}var a=n(0),i=n(9),o=n(8),r=s,l=o(a.a,i.a,!1,r,"data-v-25d47434",null);e.a=l.exports},function(t,e,n){var s=n(4);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals),n(6)("4828dc1e",s,!0,{})},function(t,e,n){e=t.exports=n(5)(!1),e.push([t.i,"canvas[data-v-25d47434]{max-width:100%;display:block}",""])},function(t,e){function n(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var i=s(a);return[n].concat(a.sources.map((function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"}))).concat([i]).join("\n")}return[n].join("\n")}function s(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var s=n(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var s={},a=0;an.parts.length&&(s.parts.length=n.parts.length)}else{var o=[];for(a=0;a