(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a1507b96"],{4072:function(t,e,n){},"44f2":function(t,e,n){"use strict";n("4072")},4536:function(t,e,n){"use strict";n("8877")},7042:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container e-pagination",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{background:t.background,"current-page":t.current,"page-size":t.Size,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.current=e},"update:current-page":function(e){t.current=e},"update:pageSize":function(e){t.Size=e},"update:page-size":function(e){t.Size=e},"size-chage":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},i=[],a={name:"Pageination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,15,20,30,50]}},layout:{type:String,default:"sizes"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{current:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},Size:{get:function(){return this.limit},set:function(){this.$emit("update:limit",val)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{pageNum:this.current,pageSize:t})},handleCurrentChange:function(t){this.$emit("pagination",{pageNum:t,pageSize:this.Size})}}},o=a,s=(n("4536"),n("2877")),c=Object(s["a"])(o,r,i,!1,null,null,null);e["a"]=c.exports},8877:function(t,e,n){},d73b:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[t._m(0),n("div",{staticClass:"searchcon"},[n("div",{staticClass:"search"},[n("el-form",{ref:"listQueryform",staticClass:"tab-header",attrs:{inline:!0,model:t.listQuery,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"流程名称"}},[n("el-input",{attrs:{placeholder:"流程名称",clearable:""},model:{value:t.listQuery.params.proDefName,callback:function(e){t.$set(t.listQuery.params,"proDefName",e)},expression:"listQuery.params.proDefName"}})],1),n("el-form-item",{attrs:{label:"申请日期"}},[n("el-date-picker",{attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:t.listQuery.params.startDate,callback:function(e){t.$set(t.listQuery.params,"startDate",e)},expression:"listQuery.params.startDate"}}),n("label",[t._v("至")]),n("el-date-picker",{attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:t.listQuery.params.endDate,callback:function(e){t.$set(t.listQuery.params,"endDate",e)},expression:"listQuery.params.endDate"}})],1),n("el-button",{attrs:{type:"primary"},on:{click:t.handleFilter}},[t._v("查询")])],1)],1)]),n("div",{staticClass:"listtop"},[n("div",{staticClass:"tit"},[t._v("待办任务列表")]),n("pageye",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination",attrs:{total:t.total,page:t.listQuery.current,limit:t.listQuery.size},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:t.getList}})],1),n("div",{staticClass:"listcon"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:""},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{width:"60px",label:"序号",type:"index",index:t.tableKey+1,align:"center"}}),n("el-table-column",{attrs:{width:"100px",label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(n){return t.handleCheck(e.row)}}},[t._v("办理")])]}}])}),n("el-table-column",{attrs:{label:"工作名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.procDefName))])]}}])}),n("el-table-column",{attrs:{width:"100px",label:"发起人",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.startUserName))])]}}])}),n("el-table-column",{attrs:{width:"100px",label:"发起日期",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("formatTimer")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"发起部门",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.startDeptName))])]}}])}),n("el-table-column",{attrs:{width:"100px",label:"提交日期",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("formatTimer")(e.row.processCreateTime)))])]}}])}),n("el-table-column",{attrs:{label:"当前环节",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"bluezi",on:{click:function(n){return t.handleFlowRecord(e.row)}}},[t._v(t._s(e.row.taskName))])]}}])})],1)],1),n("div",{staticClass:"pages"},[n("div",{staticClass:"tit"}),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination",attrs:{total:t.total,page:t.listQuery.current,limit:t.listQuery.size},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:t.getList}})],1),n("el-dialog",{attrs:{title:"",visible:t.centerDialogVisible,width:"78%",height:"1%","before-close":t.closeIt,center:""},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[n("iframe",{staticStyle:{width:"100%"},attrs:{frameborder:"0",id:"iframe",src:!0===this.centerDialogVisible?t.url:""}})]),n("el-dialog",{staticStyle:{overflow:"hidden"},attrs:{title:"审批记录",visible:t.editDialog,width:"80%"},on:{"update:visible":function(e){t.editDialog=e}}},[n("flow-records",{attrs:{xmlData:t.xmlData,taskData:t.taskList,flowRecordList:t.flowRecordList}})],1)],1)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tab-header webtop"},[n("div",{staticStyle:{"text-align":"right"}},[n("a",{staticClass:"text-center",attrs:{href:"javascript:window.opener=null;window.open('','_self');window.close();"}},[t._v("关闭")])])])}],a=n("aa5f"),o=n("4d86"),s=n("7042"),c=n("d032"),l=n("5f87"),u=n("4025"),d=n("c24f");function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var a=e&&e.prototype instanceof p?e:p,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:k(t,n,s)}),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(N){return{type:"throw",arg:N}}}t.wrap=l;var d={};function p(){}function g(){}function y(){}var m={};c(m,a,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(j([])));b&&b!==e&&n.call(b,a)&&(m=b);var w=y.prototype=p.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function i(r,a,o,s){var c=u(t[r],t,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==f(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,o,s)}),(function(t){i("throw",t,o,s)})):e.resolve(d).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,s)}))}s(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function k(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function _(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function p(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,i)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function o(t){p(a,r,i,o,s,"next",t)}function s(t){p(a,r,i,o,s,"throw",t)}o(void 0)}))}}var y={name:"",components:{pageye:s["a"],Pagination:o["a"],flowRecords:a["a"]},data:function(){return{taskList:[],xmlData:"",dialogHeight:"80%",centerDialogVisible:!1,editDialog:!1,flowRecordList:[],listLoading:!1,total:0,dialogList:{},list:[],tableKey:0,url:"",taskName_now:"",loginInfo:{userSid:""},agreeList:{businessSid:"",comment:"",instanceId:"",taskId:"",userSid:"",taskDefKey:""},regectList:{businessSid:"",comment:"",instanceId:"",taskId:"",userSid:""},stopList:{businessSid:"",comment:"",instanceId:"",taskId:"",userSid:""},selectUrl_list:{proc_def_id:"",taskDefKey:"",type:""},listQuery:{current:1,size:10,params:{proDefName:"",startDate:"",endDate:"",userSid:""}}}},mounted:function(){window.addEventListener("message",this.handleMessage)},created:function(){this.init()},filters:{formatTimer:function(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth()+1;r=r<10?"0"+r:r;var i=e.getDate();i=i<10?"0"+i:i;var a=e.getHours();a=a<10?"0"+a:a;var o=e.getMinutes();o=o<10?"0"+o:o;var s=e.getSeconds();return s=s<10?"0"+s:s,n+"-"+r+"-"+i}},methods:{getModelDetail:function(t){var e=this,n=Object(l["a"])();Object(c["g"])(t,n).then((function(t){e.xmlData=t.data}))},getFlowViewer:function(t){var e=this,n=Object(l["a"])();Object(c["d"])(t,n).then((function(t){e.taskList=t.data}))},setIframeHeight:function(t){t.height=this.dialogHeight},handleMessage:function(t){var e=this;return g(h().mark((function n(){var r;return h().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.data.params.code,1==r?(e.init(),e.centerDialogVisible=!1):2==r&&(e.dialogHeight=t.data.params.data,e.setIframeHeight(document.getElementById("iframe")));case 2:case"end":return n.stop()}}),n)})))()},init:function(){var t=this,e=Object(l["a"])();Object(d["c"])(e).then((function(e){"200"===e.code&&(t.loginInfo=e.data,t.agreeList.userSid=t.loginInfo.sid,t.regectList.userSid=t.loginInfo.sid,t.stopList.userSid=t.loginInfo.sid,t.listQuery.params.userSid=t.loginInfo.sid,t.getList())}))},handleCheck:function(t){var e=this;this.centerDialogVisible=!0,this.agreeList.businessSid=t.processVariables.businessSid,this.agreeList.instanceId=t.procInsId,this.agreeList.taskId=t.taskId,this.agreeList.taskDefKey=t.taskDefKey,this.regectList.businessSid=t.processVariables.businessSid,this.regectList.instanceId=t.procInsId,this.regectList.taskId=t.taskId,this.stopList.businessSid=t.processVariables.businessSid,this.stopList.instanceId=t.procInsId,this.stopList.taskId=t.taskId,this.selectUrl_list.proc_def_id=t.procDefId,this.selectUrl_list.taskDefKey=t.taskDefKey,this.selectUrl_list.type=1;var n={businessSid:t.processVariables.businessSid,instanceId:t.procInsId,taskId:t.taskId,taskName:t.taskName,deployId:t.deployId,taskDefKey:t.taskDefKey};Object(c["i"])(this.selectUrl_list).then((function(t){t.success&&""!==t.data.url?(e.url="http://anrui.yyundong.com"+t.data.url+"?token="+Object(l["a"])()+"&data="+encodeURI(JSON.stringify(n)),console.log("已办拼接url:",e.url)):t.success&&""===t.data.url?e.$notify({title:"提示",message:"请在手机端进行审核",type:"error",duration:2e3}):e.$notify({title:"提示",message:"执行失败",type:"error",duration:2e3})}))},closeIt:function(){this.url="",this.centerDialogVisible=!1},openAgree:function(){var t=this;this.$confirm("是否确认执行同意操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.handleAgree()})).catch((function(){t.$message({type:"info",message:"已取消同意"})}))},openReject:function(){var t=this;this.$confirm("是否确认执行驳回操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.handleReject()})).catch((function(){t.$message({type:"info",message:"已取消驳回"})}))},openStop:function(){var t=this;this.$confirm("是否确认执行终止操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.handleStop()})).catch((function(){t.$message({type:"info",message:"已取消终止"})}))},handleAgree:function(){var t=this;this.agreeList.comment=this.dialogList.comment,Object(c["c"])(this.agreeList).then((function(e){"200"===e.code?(alert("操作成功!"),t.refreshIt()):t.$notify({title:"提示",message:"操作失败",type:"error",duration:2e3})}))},handleStop:function(){var t=this;this.stopList.comment=this.dialogList.comment,Object(c["b"])(this.stopList).then((function(e){"200"===e.code?(t.$notify({title:"提示",message:"执行成功",type:"success",duration:2e3}),t.refreshIt()):t.$notify({title:"提示",message:"执行失败",type:"error",duration:2e3})}))},handleReject:function(){var t=this;this.regectList.comment=this.dialogList.comment,Object(c["h"])(this.regectList).then((function(e){"200"===e.code?(t.$notify({title:"提示",message:"执行成功",type:"success",duration:2e3}),t.refreshIt()):t.$notify({title:"提示",message:"执行失败",type:"error",duration:2e3})}))},refreshIt:function(){this.centerDialogVisible=!1,this.getList()},handleFlowRecord:function(t){this.getModelDetail(t.deployId),this.getFlowViewer(t.procInsId),this.getFlowRecordList(t.procInsId,t.deployId),this.editDialog=!0},getFlowRecordList:function(t,e){var n=this,r=Object(l["a"])(),i={procInsId:t,deployId:e,token:r};Object(u["a"])(i).then((function(t){n.flowRecordList=t.data.flowList,t.data.formData&&(n.formConf=t.data.formData,n.formConfOpen=!0)})).catch((function(t){n.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(c["f"])({current:this.listQuery.current,size:this.listQuery.size,params:{proDefName:this.listQuery.params.proDefName,startDate:this.listQuery.params.startDate,endDate:this.listQuery.params.endDate,userSid:this.listQuery.params.userSid}}).then((function(e){t.listLoading=!1,t.list=e.data.records,t.total=e.data.total}))},handleFilter:function(){this.listQuery.pageNumber=1,this.getList()},handleSelectionChange:function(){},indexMethod:function(){return 0},setIcon:function(t){return t?"el-icon-check":"el-icon-time"},setColor:function(t){return t?"#2bc418":"#b3bdbb"}}},m=y,v=(n("44f2"),n("2877")),b=Object(v["a"])(m,r,i,!1,null,"44c24f0a",null);e["default"]=b.exports}}]);