chunk-6a587188.12e8babd.js
34.8 KB
(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;o<e.flowTaskNodeList.length;o++)i(o);e.assignNodeList=a}setTimeout((function(){e.$nextTick((function(){e.$refs.form&&e.$refs.form.init(t)}))}),500)})).catch((function(){e.loading=!1}))},getSystemFormView:function(t,e){return t?function(e){return Promise.all([n.e("chunk-commons"),n.e("chunk-7aba73af"),n.e("chunk-62fca47c"),n.e("chunk-49f13072"),n.e("chunk-597d75ab")]).then(function(){var s=[n("4b3b")("./".concat(t))];e.apply(null,s)}.bind(this)).catch(n.oe)}:function(t){try{n.e("chunk-86730570").then(function(){var s=[n("6122")("./".concat(e))];t.apply(null,s)}.bind(this)).catch(n.oe)}catch(s){Promise.all([n.e("chunk-commons"),n.e("chunk-affa8b84")]).then(function(){var s=[n("e495")("./".concat(e))];t.apply(null,s)}.bind(this)).catch(n.oe)}}},eventLancher:function(t){this.$refs.form&&this.$refs.form.dataFormSubmit(t)},eventReciver:function(t,e){if(this.formData=t,this.eventType=e,"save"===e||"submit"===e)return this.submitOrSave();"audit"!==e&&"reject"!==e||(this.handleId="",this.reason="",this.copyIds="",this.handleReset(),this.visible=!0)},submitOrSave:function(){var t=this;if(this.formData.status="submit"===this.eventType?0:1,"save"===this.eventType)return this.handleRequest();this.$confirm("您确定要提交当前流程吗, 是否继续?","提示",{type:"warning"}).then((function(){t.handleRequest()})).catch((function(){}))},handleRequest:function(){var t=this;this.formData.id||delete this.formData.id,"save"===this.eventType&&(this.btnLoading=!0);var e=null;e=1==this.setting.formType?this.formData.id?c["g"]:c["a"]:this.formData.id?c["d"]:c["b"],e(this.setting.enCode,this.formData).then((function(e){t.$message({message:e.msg,type:"success",duration:1500,onClose:function(){"save"===t.eventType&&(t.btnLoading=!1),t.$emit("close",!0)}})})).catch((function(){"save"===t.eventType&&(t.btnLoading=!1)}))},revoke:function(){var t=this;this.$prompt("","撤回流程",{confirmButtonText:"确定",cancelButtonText:"取消",inputPlaceholder:"请输入撤回原因(选填)",inputType:"textarea",inputValue:"",closeOnClickModal:!1}).then((function(e){var n=e.value;Object(l["d"])(t.setting.id,{handleOpinion:n}).then((function(e){t.$message({type:"success",message:e.msg,duration:1e3,onClose:function(){t.$emit("close",!0)}})}))})).catch((function(){}))},press:function(){var t=this;this.$confirm("此操作将提示该节点尽快处理,是否继续?","提示",{type:"warning"}).then((function(){Object(l["c"])(t.setting.id).then((function(e){t.$message({type:"success",message:e.msg,duration:1e3})}))})).catch((function(){}))},recall:function(){var t=this;this.$prompt("","撤回审核",{confirmButtonText:"确定",cancelButtonText:"取消",inputPlaceholder:"请输入撤回原因(选填)",inputType:"textarea",inputValue:"",closeOnClickModal:!1}).then((function(e){var n=e.value;Object(r["f"])(t.setting.taskId,{handleOpinion:n}).then((function(e){t.$message({type:"success",message:e.msg,duration:1e3,onClose:function(){t.$emit("close",!0)}})}))})).catch((function(){}))},cancel:function(){var t=this;this.$prompt("","终止审核不可恢复",{confirmButtonText:"确定",cancelButtonText:"取消",inputPlaceholder:"请输入终止原因(选填)",inputType:"textarea",inputValue:"",closeOnClickModal:!1}).then((function(e){var n=e.value;Object(r["c"])(t.setting.taskId,{handleOpinion:n}).then((function(e){t.$message({type:"success",message:e.msg,duration:1e3,onClose:function(){t.$emit("close",!0)}})}))})).catch((function(){}))},openUserBox:function(t){var e=this;this.userBoxVisible=!0,this.$nextTick((function(){e.$refs.userBox.init()}))},handleTransfer:function(t){var e=this;Object(r["h"])(this.setting.taskId,{freeApproverUserId:t}).then((function(t){e.$message({type:"success",message:t.msg,duration:1e3,onClose:function(){e.$emit("close",!0)}})}))},openAssignBox:function(){var t=this;this.assignVisible=!0,this.$nextTick((function(){t.$refs["assignForm"].resetFields()}))},handleAssign:function(){var t=this;this.$refs["assignForm"].validate((function(e){e&&Object(r["a"])(t.setting.taskId,t.assignForm).then((function(e){t.$message({type:"success",message:e.msg,duration:1e3,onClose:function(){t.$emit("close",!0)}})}))}))},handleApproval:function(){var t=this;if(!this.properties.hasSign||this.signImg){var e={handleOpinion:this.reason,formData:this.formData,enCode:this.setting.enCode,signImg:this.signImg,copyIds:this.copyIds};"audit"===this.eventType&&this.properties.hasFreeApprover&&(e=Object(i["a"])({freeApproverUserId:this.handleId},e));var n="audit"===this.eventType?r["b"]:r["g"];this.approvalBtnLoading=!0,n(this.setting.taskId,e).then((function(e){t.$message({type:"success",message:e.msg,duration:1e3,onClose:function(){t.approvalBtnLoading=!1,t.visible=!1,t.$emit("close",!0)}})})).catch((function(){t.approvalBtnLoading=!1}))}else this.$message({message:"请签名",type:"error"})},handleReset:function(){var t=this;this.signImg="",this.$nextTick((function(){t.$refs.esign&&t.$refs.esign.reset()}))},handleGenerate:function(){var t=this;this.$refs.esign.generate().then((function(e){e&&(t.signImg=e)})).catch((function(e){t.$message({message:"请签名",type:"warning"})}))},setPageLoad:function(t){this.loading=!!t},setLoad:function(t){this.btnLoading=!!t}}},v=m,g=(n("eb61"),n("2877")),w=Object(g["a"])(v,s,a,!1,null,"17cdea46",null);e["default"]=w.exports},7361:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return r}));var s=n("b775");function a(t){return Object(s["a"])({url:"/api/workflow/Engine/FlowLaunch",method:"get",data:t})}function i(t){return Object(s["a"])({url:"/api/workflow/Engine/FlowLaunch/".concat(t),method:"DELETE"})}function o(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowLaunch/".concat(t,"/Actions/Withdraw"),method:"PUT",data:e})}function r(t){return Object(s["a"])({url:"/api/workflow/Engine/FlowLaunch/Press/".concat(t),method:"post"})}},"826a":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return i})),n.d(e,"g",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return u}));n("a481");var s=n("b775");function a(t,e){return t=t.replace(t[0],t[0].toUpperCase()),Object(s["a"])({url:"/api/workflow/Form/".concat(t,"/").concat(e),method:"get"})}function i(t,e){return t=t.replace(t[0],t[0].toUpperCase()),Object(s["a"])({url:"/api/workflow/Form/".concat(t),method:"post",data:e})}function o(t,e){return t=t.replace(t[0],t[0].toUpperCase()),Object(s["a"])({url:"/api/workflow/Form/".concat(t,"/").concat(e.id),method:"put",data:e})}function r(t){return Object(s["a"])({url:"/api/workflow/Engine/FlowTask/".concat(t),method:"get"})}function l(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowTask",method:"post",data:e})}function c(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowTask/".concat(e.id),method:"put",data:e})}function u(){return Object(s["a"])({url:"/api/workflow/Form/LeaveApply/QuotaSummary",method:"get"})}},afcb:function(t,e,n){!function(e,n){t.exports=n()}("undefined"!=typeof self&&self,(function(){return function(t){function e(s){if(n[s])return n[s].exports;var a=n[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,s){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=1)}([function(t,e,n){"use strict";function s(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}e.a={props:{width:{type:Number,default:document.body.offsetWidth},height:{type:Number,default:500},lineWidth:{type:Number,default:4},lineColor:{type:String,default:"#000000"},bgColor:{type:String,default:""},isCrop:{type:Boolean,default:!1}},data:function(){return{hasDrew:!1,resultImg:"",points:[],canvasTxt:null,startX:0,startY:0,isDrawing:!1,sratio:1}},computed:{ratio:function(){return this.height/this.width},stageInfo:function(){return this.$refs.canvas.getBoundingClientRect()},myBg:function(){return this.bgColor?this.bgColor:"rgba(255, 255, 255, 0)"}},watch:{myBg:function(t){this.$refs.canvas.style.background=t}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this,e=this.$refs.canvas;e.height=this.height,e.width=this.width,e.style.background=this.myBg,this.$_resizeHandler(),document.onmouseup=function(){t.isDrawing=!1}},methods:{$_resizeHandler:function(){var t=this.$refs.canvas;t.style.width=this.width+"px";var e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.canvasTxt=t.getContext("2d"),this.canvasTxt.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.canvasTxt.scale(1/this.sratio,1/this.sratio)},mouseDown:function(t){t=t||event,t.preventDefault(),this.isDrawing=!0,this.hasDrew=!0;var e={x:t.offsetX,y:t.offsetY};this.drawStart(e)},mouseMove:function(t){if(t=t||event,t.preventDefault(),this.isDrawing){var e={x:t.offsetX,y:t.offsetY};this.drawMove(e)}},mouseUp:function(t){t=t||event,t.preventDefault();var e={x:t.offsetX,y:t.offsetY};this.drawEnd(e),this.isDrawing=!1},touchStart:function(t){if(t=t||event,t.preventDefault(),this.hasDrew=!0,1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawStart(e)}},touchMove:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawMove(e)}},touchEnd:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawEnd(e)}},drawStart:function(t){this.startX=t.x,this.startY=t.y,this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.push(t)},drawMove:function(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.strokeStyle=this.lineColor,this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.startY=t.y,this.startX=t.x,this.points.push(t)},drawEnd:function(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.push(t),this.points.push({x:-1,y:-1})},generate:function(){var t=this;return new Promise((function(e,n){if(t.hasDrew){var a=t.canvasTxt.getImageData(0,0,t.$refs.canvas.width,t.$refs.canvas.height);t.canvasTxt.globalCompositeOperation="destination-over",t.canvasTxt.fillStyle=t.myBg,t.canvasTxt.fillRect(0,0,t.$refs.canvas.width,t.$refs.canvas.height),t.resultImg=t.$refs.canvas.toDataURL();var i=t.resultImg;if(t.canvasTxt.clearRect(0,0,t.$refs.canvas.width,t.$refs.canvas.height),t.canvasTxt.putImageData(a,0,0),t.canvasTxt.globalCompositeOperation="source-over",t.isCrop){var o,r=t.getCropArea(a.data),l=document.createElement("canvas"),c=l.getContext("2d");l.width=r[2]-r[0],l.height=r[3]-r[1];var u=(o=t.canvasTxt).getImageData.apply(o,s(r));c.globalCompositeOperation="destination-over",c.putImageData(u,0,0),c.fillStyle=t.myBg,c.fillRect(0,0,l.width,l.height),i=l.toDataURL(),l=null}e(i)}else n("Warning: Not Signned!")}))},reset:function(){this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.$emit("update:bgColor",""),this.$refs.canvas.style.background="rgba(255, 255, 255, 0)",this.points=[],this.hasDrew=!1,this.resultImg=""},getCropArea:function(t){for(var e=this.$refs.canvas.width,n=0,s=this.$refs.canvas.height,a=0,i=0;i<this.$refs.canvas.width;i++)for(var o=0;o<this.$refs.canvas.height;o++){var r=4*(i+this.$refs.canvas.width*o);(t[r]>0||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;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(s[i]=!0)}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&s[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(t,e,n){function s(t){for(var e=0;e<t.length;e++){var n=t[e],s=u[n.id];if(s){s.refs++;for(var a=0;a<s.parts.length;a++)s.parts[a](n.parts[a]);for(;a<n.parts.length;a++)s.parts.push(i(n.parts[a]));s.parts.length>n.parts.length&&(s.parts.length=n.parts.length)}else{var o=[];for(a=0;a<n.parts.length;a++)o.push(i(n.parts[a]));u[n.id]={id:n.id,refs:1,parts:o}}}}function a(){var t=document.createElement("style");return t.type="text/css",p.appendChild(t),t}function i(t){var e,n,s=document.querySelector("style["+g+'~="'+t.id+'"]');if(s){if(h)return m;s.parentNode.removeChild(s)}if(w){var i=d++;s=f||(f=a()),e=o.bind(null,s,i,!1),n=o.bind(null,s,i,!0)}else s=a(),e=r.bind(null,s),n=function(){s.parentNode.removeChild(s)};return e(t),function(s){if(s){if(s.css===t.css&&s.media===t.media&&s.sourceMap===t.sourceMap)return;e(t=s)}else n()}}function o(t,e,n,s){var a=n?"":s.css;if(t.styleSheet)t.styleSheet.cssText=b(e,a);else{var i=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}function r(t,e){var n=e.css,s=e.media,a=e.sourceMap;if(s&&t.setAttribute("media",s),v.ssrId&&t.setAttribute(g,e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(7),u={},p=l&&(document.head||document.getElementsByTagName("head")[0]),f=null,d=0,h=!1,m=function(){},v=null,g="data-vue-ssr-id",w="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,a){h=n,v=a||{};var i=c(t,e);return s(i),function(e){for(var n=[],a=0;a<i.length;a++){var o=i[a],r=u[o.id];r.refs--,n.push(r)}e?(i=c(t,e),s(i)):i=[];for(a=0;a<n.length;a++){r=n[a];if(0===r.refs){for(var l=0;l<r.parts.length;l++)r.parts[l]();delete u[r.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],s={},a=0;a<e.length;a++){var i=e[a],o=i[0],r=i[1],l=i[2],c=i[3],u={id:t+":"+a,css:r,media:l,sourceMap:c};s[o]?s[o].parts.push(u):n.push(s[o]={id:o,parts:[u]})}return n}},function(t,e){t.exports=function(t,e,n,s,a,i){var o,r=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(o=t,r=t.default);var c,u="function"==typeof r?r.options:r;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),a&&(u._scopeId=a),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):s&&(c=s),c){var p=u.functional,f=p?u.render:u.beforeCreate;p?(u._injectStyles=c,u.render=function(t,e){return c.call(e),f(t,e)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:r,options:u}}},function(t,e,n){"use strict";var s=function(){var t=this,e=t.$createElement;return(t._self._c||e)("canvas",{ref:"canvas",on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseup:t.mouseUp,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}})},a=[],i={render:s,staticRenderFns:a};e.a=i}])}))},b0b4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var s=n("85f2"),a=n.n(s);function i(t,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),a()(t,s.key,s)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}},ce76: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("el-col",{staticStyle:{"padding-left":"20px",overflow:"auto"},attrs:{span:18}},[n("el-timeline",{attrs:{reverse:""}},[t._l(t.list,(function(e,s){return[2==e.handleStatus?n("el-timeline-item",{key:s,attrs:{timestamp:t._f("toDate")(e.handleTime),placement:"top"}},[n("el-card",[n("p",{staticClass:"timeline-cell"},[t._v("发起人:"+t._s(e.userName))])])],1):3==e.handleStatus?n("el-timeline-item",{key:s,attrs:{timestamp:t._f("toDate")(e.handleTime),placement:"top"}},[n("el-card",[n("p",{staticClass:"timeline-cell"},[t._v("撤回节点:"+t._s(e.nodeName))]),n("p",{staticClass:"timeline-cell"},[t._v("撤回人员:"+t._s(e.userName))]),n("p",{staticClass:"timeline-cell"},[t._v("撤回原因:"+t._s(e.handleOpinion))])])],1):4==e.handleStatus?n("el-timeline-item",{key:s,attrs:{timestamp:t._f("toDate")(e.handleTime),placement:"top"}},[n("el-card",[n("el-row",[n("el-col",{attrs:{span:18}},[n("p",{staticClass:"timeline-cell"},[t._v("审核节点:"+t._s(e.nodeName))])]),n("el-col",{attrs:{span:6}},[n("p",{staticClass:"timeline-cell",staticStyle:{"text-align":"right"}},[n("el-link",{attrs:{underline:!1,type:"danger"}},[t._v("流程终止")])],1)])],1),n("p",{staticClass:"timeline-cell"},[t._v("执行人员:"+t._s(e.userName))]),n("p",{staticClass:"timeline-cell"},[t._v("执行动作:终止")]),n("p",{staticClass:"timeline-cell"},[t._v("终止原因:"+t._s(e.handleOpinion))])],1)],1):5==e.handleStatus?n("el-timeline-item",{key:s,attrs:{timestamp:t._f("toDate")(e.handleTime),placement:"top"}},[n("el-card",[n("el-row",[n("el-col",{attrs:{span:18}},[n("p",{staticClass:"timeline-cell"},[t._v("审核节点:"+t._s(e.nodeName))])]),n("el-col",{attrs:{span:6}},[n("p",{staticClass:"timeline-cell",staticStyle:{"text-align":"right"}},[n("el-link",{attrs:{underline:!1,type:"primary"}},[t._v("流程指派")])],1)])],1),n("p",{staticClass:"timeline-cell"},[t._v("执行人员:"+t._s(e.userName))]),n("p",{staticClass:"timeline-cell"},[t._v("执行动作:指派")]),n("p",{staticClass:"timeline-cell"},[t._v("指派人员:"+t._s(e.operatorId))])],1)],1):6==e.handleStatus?n("el-timeline-item",{key:s,attrs:{timestamp:t._f("toDate")(e.handleTime),placement:"top"}},[n("el-card",[n("el-row",[n("el-col",{attrs:{span:18}},[n("p",{staticClass:"timeline-cell"},[t._v("审核节点:"+t._s(e.nodeName))])]),n("el-col",{attrs:{span:6}},[n("p",{staticClass:"timeline-cell",staticStyle:{"text-align":"right"}},[n("el-link",{attrs:{underline:!1,type:"primary"}},[t._v("流程加签")])],1)])],1),n("p",{staticClass:"timeline-cell"},[t._v("执行人员:"+t._s(e.userName))]),n("p",{staticClass:"timeline-cell"},[t._v("执行动作:加签")]),n("p",{staticClass:"timeline-cell"},[t._v("加签人员:"+t._s(e.operatorId))])],1)],1):7==e.handleStatus?n("el-timeline-item",{key:s,attrs:{timestamp:t._f("toDate")(e.handleTime),placement:"top"}},[n("el-card",[n("el-row",[n("el-col",{attrs:{span:18}},[n("p",{staticClass:"timeline-cell"},[t._v("审核节点:"+t._s(e.nodeName))])]),n("el-col",{attrs:{span:6}},[n("p",{staticClass:"timeline-cell",staticStyle:{"text-align":"right"}},[n("el-link",{attrs:{underline:!1,type:"primary"}},[t._v("流程转办")])],1)])],1),n("p",{staticClass:"timeline-cell"},[t._v("执行人员:"+t._s(e.userName))]),n("p",{staticClass:"timeline-cell"},[t._v("执行动作:转办")]),n("p",{staticClass:"timeline-cell"},[t._v("转办人员:"+t._s(e.operatorId))])],1)],1):n("el-timeline-item",{key:s,attrs:{timestamp:t._f("toDate")(e.handleTime),placement:"top"}},[n("el-card",[n("el-row",[n("el-col",{attrs:{span:18}},[n("p",{staticClass:"timeline-cell"},[t._v("审核节点:"+t._s(e.nodeName))])]),n("el-col",{attrs:{span:6}},[n("p",{staticClass:"timeline-cell",staticStyle:{"text-align":"right"}},[1==e.handleStatus?n("el-link",{attrs:{underline:!1,type:"success"}},[t._v("审核通过\n ")]):n("el-link",{attrs:{underline:!1,type:"danger"}},[t._v("审核拒绝")])],1)])],1),n("p",{staticClass:"timeline-cell"},[t._v("审核人员:"+t._s(e.userName)+t._s(1==e.status?"(加签)":""))]),e.handleOpinion?n("p",{staticClass:"timeline-cell"},[t._v("\n 审核意见:"+t._s(e.handleOpinion))]):t._e(),e.signImg?n("p",{staticClass:"timeline-cell"},[t._v("\n 审核签名:"),n("img",{staticClass:"signImg",attrs:{src:e.signImg}})]):t._e()],1)],1)]})),t.endTime?n("el-timeline-item",{attrs:{timestamp:t._f("toDate")(t.endTime),placement:"top"}},[n("el-card",[n("p",{staticClass:"timeline-cell"},[t._v("流程结束")])])],1):t._e()],2)],1)},a=[],i=(n("c5f6"),{props:{list:{type:Array,default:[]},endTime:{type:Number,default:0}},name:"recordList"}),o=i,r=n("2877"),l=Object(r["a"])(o,s,a,!1,null,null,null);e["default"]=l.exports},d225:function(t,e,n){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return s}))},dd77:function(t,e,n){},e200:function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"g",(function(){return r})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"a",(function(){return p}));var s=n("b775");function a(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/List/".concat(t),method:"get",data:e})}function i(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/".concat(t),method:"get",data:e})}function o(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/Audit/".concat(t),method:"post",data:e})}function r(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/Reject/".concat(t),method:"post",data:e})}function l(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/Recall/".concat(t),method:"post",data:e})}function c(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/Cancel/".concat(t),method:"post",data:e})}function u(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/Transfer/".concat(t),method:"post",data:e})}function p(t,e){return Object(s["a"])({url:"/api/workflow/Engine/FlowBefore/Assign/".concat(t),method:"post",data:e})}},eb61:function(t,e,n){"use strict";n("dd77")}}]);