You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
20 KiB
1 lines
20 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7f170d09"],{4536:function(t,e,r){"use strict";r("8877")},"6a17":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[t._m(0),r("div",{staticClass:"searchcon"},[r("div",{staticClass:"search"},[r("el-form",{ref:"listQueryform",staticClass:"tab-header",attrs:{inline:!0,model:t.listQuery,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"流程名称"}},[r("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),r("el-form-item",{attrs:{label:"申请日期"}},[r("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"}}),r("label",[t._v("至")]),r("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),r("el-button",{attrs:{type:"primary"},on:{click:t.handleFilter}},[t._v("查询")])],1)],1)]),r("div",{staticClass:"listtop"},[r("div",{staticClass:"tit"},[t._v("已办任务列表")]),r("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),r("div",{staticClass:"listcon"},[r("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}},[r("el-table-column",{attrs:{width:"60px",label:"序号",type:"index",index:t.tableKey+1,align:"center"}}),r("el-table-column",{attrs:{width:"180px",label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(r){return t.handleCheck(e.row)}}},[t._v("详情")]),r("el-button",{directives:[{name:"show",rawName:"v-show",value:null===e.row.endTime&&e.row.startUserSid===t.listQuery.params.userSid,expression:"scope.row.endTime === null && scope.row.startUserSid === listQuery.params.userSid"}],attrs:{type:"danger",size:"small"},on:{click:function(r){return t.handleTerminate(e.row)}}},[t._v("终止")])]}}])}),r("el-table-column",{attrs:{label:"工作名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.procDefName))])]}}])}),r("el-table-column",{attrs:{label:"发起人",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.startUserName))])]}}])}),r("el-table-column",{attrs:{label:"发起日期",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("formatTimer")(e.row.createTime)))])]}}])}),r("el-table-column",{attrs:{label:"发起部门",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.startDeptName))])]}}])}),r("el-table-column",{attrs:{label:"当前处理人",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[null!=e.row.endTime?r("span"):r("span",[t._v(t._s(e.row.assigneeName))])]}}])}),r("el-table-column",{attrs:{label:"当前环节",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[null!=e.row.endTime?r("span",{staticClass:"bluezi",on:{click:function(r){return t.handleFlowRecord(e.row)}}},[t._v("已办结")]):r("span",{staticClass:"bluezi",on:{click:function(r){return t.handleFlowRecord(e.row)}}},[t._v(t._s(e.row.taskName))])]}}])})],1)],1),r("div",{staticClass:"pages"},[r("div",{staticClass:"tit"}),r("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),r("el-dialog",{attrs:{title:"",visible:t.centerDialogVisible,width:"78%",height:"1%","before-close":t.closeIt,center:""},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[r("iframe",{staticStyle:{width:"100%"},attrs:{frameborder:"0",id:"iframe_done",src:!0===this.centerDialogVisible?t.url:""}})]),r("el-dialog",{staticStyle:{overflow:"hidden"},attrs:{title:"审批记录",visible:t.editDialog,width:"80%"},on:{"update:visible":function(e){t.editDialog=e}}},[r("flow-records",{attrs:{xmlData:t.xmlData,taskData:t.taskList,flowRecordList:t.flowRecordList}})],1),r("el-dialog",{attrs:{center:"",visible:t.breakProcessVisible,width:"50%"},on:{"update:visible":function(e){t.breakProcessVisible=e}}},[r("el-form",{staticClass:"formadd",attrs:{model:t.dialogList}},[r("el-row",{staticStyle:{"border-top":"1px solid #E0E3EB"}},[r("el-col",{staticClass:"tleftb",attrs:{span:4}},[r("span",[t._v("终止原因")])]),r("el-col",{attrs:{span:20}},[r("el-form-item",[r("el-input",{attrs:{clearable:"",placeholder:"",type:"textarea",autosize:{minRows:2,maxRows:4},resize:"none"},model:{value:t.dialogList.comment,callback:function(e){t.$set(t.dialogList,"comment",e)},expression:"dialogList.comment"}})],1)],1)],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.handleConfirm}},[t._v("确定")]),r("el-button",{attrs:{size:"small"},on:{click:function(e){t.breakProcessVisible=!1}}},[t._v("取消")])],1)],1)],1)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"tab-header webtop"},[r("div",{staticStyle:{"text-align":"right"}},[r("a",{staticClass:"text-center",attrs:{href:"javascript:window.opener=null;window.open('','_self');window.close();"}},[t._v("关闭")])])])}],a=r("aa5f"),o=r("4d86"),s=r("7042"),l=r("5f87"),c=r("d032"),u=r("4025"),d=r("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,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(z){l=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var a=e&&e.prototype instanceof p?e:p,o=Object.create(a.prototype),s=new I(i||[]);return n(o,"_invoke",{value:_(t,r,s)}),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(z){return{type:"throw",arg:z}}}t.wrap=c;var d={};function p(){}function m(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(C([])));b&&b!==e&&r.call(b,a)&&(y=b);var w=g.prototype=p.prototype=Object.create(y);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function i(n,a,o,s){var l=u(t[n],t,a);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==f(d)&&r.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){c.value=t,o(c)}),(function(t){return i("throw",t,o,s)}))}s(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return N()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=S(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(n,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 x(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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(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 n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:N}}function N(){return{value:void 0,done:!0}}return m.prototype=g,n(w,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},k(L.prototype),l(L.prototype,o,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new L(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;D(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function p(t,e,r,n,i,a,o){try{var s=t[a](o),l=s.value}catch(c){return void r(c)}s.done?e(l):Promise.resolve(l).then(n,i)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){p(a,n,i,o,s,"next",t)}function s(t){p(a,n,i,o,s,"throw",t)}o(void 0)}))}}var g={name:"",components:{pageye:s["a"],Pagination:o["a"],flowRecords:a["a"]},data:function(){return{taskList:[],xmlData:"",dialogHeight:"80%",isDialogVisible:!1,centerDialogVisible:!1,editDialog:!1,flowRecordList:[],listLoading:!1,total:0,list:[],tableKey:0,taskName_now:"",url:"",loginInfo:{userSid:""},revokeList:{businessSid:"",instanceId:"",taskId:"",userSid:""},breakProcessVisible:!1,dialogList:{businessSid:"",comment:"",instanceId:"",taskId:"",orgSidPath:"",taskDefKey:"",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),r=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;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,r+"-"+n+"-"+i}},methods:{getModelDetail:function(t){var e=this,r=Object(l["a"])();Object(c["g"])(t,r).then((function(t){e.xmlData=t.data}))},getFlowViewer:function(t){var e=this,r=Object(l["a"])();Object(c["d"])(t,r).then((function(t){e.taskList=t.data}))},setIframeHeight:function(t){t.height=this.dialogHeight},handleMessage:function(t){var e=this;return m(h().mark((function r(){var n;return h().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.data.params.code,1==n?(e.init(),e.centerDialogVisible=!1):2==n&&(e.dialogHeight=t.data.params.data,e.setIframeHeight(document.getElementById("iframe_done")));case 2:case"end":return r.stop()}}),r)})))()},init:function(){var t=this,e=Object(l["a"])();Object(d["c"])(e).then((function(e){"200"===e.code&&(t.loginInfo=e.data,t.revokeList.userSid=t.loginInfo.sid,t.listQuery.params.userSid=t.loginInfo.sid,t.getList())}))},handleCheck:function(t){var e=this;this.selectUrl_list.proc_def_id=t.procDefId,this.selectUrl_list.taskDefKey=t.taskDefKey,this.selectUrl_list.type=2;var r={businessSid:t.processVariables.businessSid,instanceId:t.procInsId,taskId:t.taskId,taskDefKey:t.taskDefKey,taskName:t.taskName,deployId:t.deployId};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(r)):t.success&&""===t.data.url?e.$notify({title:"提示",message:"请在手机端进行审核",type:"error",duration:2e3}):e.$notify({title:"提示",message:"执行失败",type:"error",duration:2e3})})),this.taskName_now=t.taskName,this.revokeList.businessSid=t.processVariables.businessSid,this.revokeList.instanceId=t.procInsId,this.revokeList.taskId=t.taskId,this.getFlowRecordList(t.procInsId,t.deployId),this.centerDialogVisible=!0},closeIt:function(){this.url="",this.centerDialogVisible=!1},handleTerminate:function(t){this.breakProcessVisible=!0,this.dialogList.comment="",this.dialogList.businessSid=t.processVariables.businessSid,this.dialogList.instanceId=t.procInsId,this.dialogList.taskId=t.taskId,this.dialogList.taskDefKey=t.taskDefKey,this.dialogList.userSid=window.sessionStorage.getItem("userSid")},handleConfirm:function(){var t=this;if(""!==this.dialogList.comment){var e="请确认是否终止该申请";this.$confirm(e,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["a"])(t.dialogList).then((function(e){e.success&&(t.breakProcessVisible=!1,t.$message({showClose:!0,type:"success",message:"操作成功"}),t.getList())}))}))}else this.$message({showClose:!0,type:"error",message:"请填写终止原因"})},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 r=this,n=Object(l["a"])(),i={procInsId:t,deployId:e,token:n};Object(u["a"])(i).then((function(t){r.flowRecordList=t.data.flowList,t.data.formData&&(r.formConf=t.data.formData,r.formConfOpen=!0)})).catch((function(t){r.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(c["e"])({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"}}},y=g,v=(r("9dea"),r("2877")),b=Object(v["a"])(y,n,i,!1,null,null,null);e["default"]=b.exports},7042:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pagination-container e-pagination",class:{hidden:t.hidden}},[r("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=(r("4536"),r("2877")),l=Object(s["a"])(o,n,i,!1,null,null,null);e["a"]=l.exports},8877:function(t,e,r){},"9dea":function(t,e,r){"use strict";r("fe80")},fe80:function(t,e,r){}}]);
|