Approval.5161ba73.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Approval"],{"1b99":function(t,e,n){},"38f0":function(t,e,n){"use strict";var a=n("5b7e"),r=n.n(a);r.a},"3a46":function(t,e,n){"use strict";var a=n("5f9c"),r=n.n(a);r.a},"51c7":function(t,e,n){},"5b7e":function(t,e,n){},"5f9c":function(t,e,n){},"6e6e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],i=n("a34a"),o=n.n(i),s=n("ddf4");function c(t,e,n,a,r,i,o){try{var s=t[i](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(a,r)}function u(t){return function(){var e=this,n=arguments;return new Promise(function(a,r){var i=t.apply(e,n);function o(t){c(i,a,r,o,s,"next",t)}function s(t){c(i,a,r,o,s,"throw",t)}o(void 0)})}}var l={name:"mheader",props:{name:String,isNative:{type:Boolean,default:!0},isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},data:function(){return{navBarHeight:0,headStyle:{},titleHeight:44}},mounted:function(){this.isNative||(Object(s["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=u(o.a.mark(function t(){var e,n,a=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),n=sessionStorage.getItem("titleHeight"),!e||!n){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:n+"px",lineHeight:n+"px"},t.next=9;break;case 7:return t.next=9,Object(s["b"])({api:"getNavHeight"},function(t){var e=t.content,n={},r=e.dpi||2;if(e.navHeight){var i=e.navHeight/r;sessionStorage.setItem("navHeight",i),a.navBarHeight=i,n={paddingTop:i+"px"}}if(e.titleHeight){var o=e.titleHeight/r;sessionStorage.setItem("titleHeight",o),a.titleHeight=o,n.height=o+"px",n.lineHeight=o+"px"}a.headStyle=n});case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}},beforeDestroy:function(){this.isNative||(Object(s["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},p=l,f=(n("38f0"),n("2877")),d=Object(f["a"])(p,a,r,!1,null,"6a74717c",null);e["a"]=d.exports},"764a":function(t,e,n){"use strict";n.d(e,"o",function(){return i}),n.d(e,"j",function(){return o}),n.d(e,"c",function(){return s}),n.d(e,"g",function(){return c}),n.d(e,"k",function(){return u}),n.d(e,"d",function(){return l}),n.d(e,"h",function(){return p}),n.d(e,"f",function(){return f}),n.d(e,"l",function(){return d}),n.d(e,"i",function(){return h}),n.d(e,"p",function(){return v}),n.d(e,"e",function(){return m}),n.d(e,"m",function(){return b}),n.d(e,"n",function(){return y}),n.d(e,"a",function(){return g}),n.d(e,"b",function(){return w});var a=n("2b7c"),r=n("981f").default,i=function(t){return r({url:"/api-web/uploadFile",method:"post",data:t})},o=function(t){return r({url:"/api-web/import/oaUploadFile",method:"post",data:t})};function s(t){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/process/classify",method:"get",params:t})}function c(t){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/work-order/list",method:"get",hideLoading:!0,params:t})}function u(t){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/work-order/process-structure",method:"get",params:t})}function l(t){return Object(a["a"])({baseURL:"/api-oa",noClean:!0,url:"/api/v1/work-order/create",method:"post",data:t})}function p(t){return Object(a["a"])({baseURL:"/api-oa",noClean:!0,url:"/api/v1/work-order/handle",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/eduOrganization/getOrganCooperation",method:"get",params:t})}function d(t){return Object(a["a"])({baseURL:"/api-oa",noClean:!0,url:"/api/v1/sysUserList",method:"get",params:t})}function h(t){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/work-order/inversion",method:"post",data:t})}function v(t){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/work-order/urge",method:"get",params:t})}function m(){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/getinfo",method:"get"})}function b(){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/dashboard/todoCount",method:"get"})}function y(t){return Object(a["a"])({baseURL:"/api-oa",url:"/api/v1/work-order/unity",method:"get",params:t})}function g(t){return Object(a["a"])({url:"/oa/syncPayLog",method:"post",requestType:"form",data:t})}function w(t){return Object(a["a"])({url:"/oa/checkCourseReturnFee",method:"post",data:t})}},"7e08":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"approval"},[n("van-sticky",[n("div",{staticClass:"user-container m-shadow"},[n("van-grid",{attrs:{"column-num":3,border:!1}},[n("van-grid-item",{attrs:{text:"需我审批",badge:t.upcoming},on:{click:function(e){return t.gotoMyApproval(1)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("i",{staticClass:"icon icon1"})]},proxy:!0}])}),n("van-grid-item",{attrs:{text:"我发起的"},on:{click:function(e){return t.gotoMyApproval(2)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("i",{staticClass:"icon icon3"})]},proxy:!0}])}),n("van-grid-item",{attrs:{text:"我相关的"},on:{click:function(e){return t.gotoMyApproval(3)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("i",{staticClass:"icon icon2"})]},proxy:!0}])})],1)],1)]),t.dataShow?n("apply-modal",{attrs:{applyList:t.applyList}}):n("m-empty")],1)},r=[],i=n("a34a"),o=n.n(i),s=n("6e6e"),c=n("d678"),u=n("764a"),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"workflow"},[n("van-collapse",{attrs:{border:!1},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[t._l(t.applyList,function(e,a){return[e.process_list2&&e.process_list2.length>0?n("van-collapse-item",{key:a,attrs:{name:a},scopedSlots:t._u([{key:"title",fn:function(){return[n("h2",{staticClass:"title"},[t._v(t._s(e.name))])]},proxy:!0}],null,!0)},[n("div",{staticClass:"grid"},t._l(e.process_list2,function(e){return n("div",{key:e.id,staticClass:"grid-item",on:{click:function(n){return t.onHref(e)}}},[n("e-icon",{staticClass:"icon",attrs:{"icon-name":e.icon}}),n("p",[t._v(t._s(e.name))])],1)}),0)]):t._e()]})],2)],1)},p=[],f={props:{applyList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{activeNames:[0]}},methods:{onHref:function(t){this.$router.push({path:"/approvalApply",query:{processId:t.id,name:t.name}})}}},d=f,h=(n("3a46"),n("2877")),v=Object(h["a"])(d,l,p,!1,null,"5f0048ce",null),m=v.exports;function b(t,e,n,a,r,i,o){try{var s=t[i](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(a,r)}function y(t){return function(){var e=this,n=arguments;return new Promise(function(a,r){var i=t.apply(e,n);function o(t){b(i,a,r,o,s,"next",t)}function s(t){b(i,a,r,o,s,"throw",t)}o(void 0)})}}var g={name:"approval",components:{MHeader:s["a"],ApplyModal:m,MEmpty:c["a"]},data:function(){return{applyStatus:!1,applyList:[],dataShow:!0,upcoming:null,backUrl:{status:!0,path:"/home"}}},mounted:function(){var t=y(o.a.mark(function t(){var e,n,a;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return document.title="OA审批",t.prev=1,t.next=4,Object(u["m"])();case 4:e=t.sent,n=e.data,a=n>0?n:null,this.upcoming=a&&a>99?"99+":a,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:this.onApplyList();case 13:case"end":return t.stop()}},t,this,[[1,10]])}));function e(){return t.apply(this,arguments)}return e}(),methods:{onApplyList:function(){var t=y(o.a.mark(function t(){var e,n;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(u["c"])();case 3:e=t.sent,n=e.data||[],n.forEach(function(t){t.process_list2=[],t.process_list&&t.process_list.length>0&&t.process_list.forEach(function(e){0==e.sub&&t.process_list2.push(e)})}),this.applyList=e.data,this.dataShow=e.data.length>0,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),this.dataShow=!1;case 13:this.applyStatus=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])}));function e(){return t.apply(this,arguments)}return e}(),gotoMyApproval:function(t){this.$router.push({path:"/myApproval",query:{classify:t}})}}},w=g,O=(n("b759"),Object(h["a"])(w,a,r,!1,null,"260f617e",null));e["default"]=O.exports},b759:function(t,e,n){"use strict";var a=n("1b99"),r=n.n(a);r.a},c063:function(t,e,n){"use strict";var a=n("51c7"),r=n.n(a);r.a},d678:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mempty",class:t.full?"full":null},[n("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),n("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},r=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=i,s=(n("c063"),n("2877")),c=Object(s["a"])(o,a,r,!1,null,"45d1a48f",null);e["a"]=c.exports},ddf4:function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return d});var a=n("ff51");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return s="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},s(t)}var c=function(){},u={},l=Object(a["b"])();l.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===s(t.data)?t.data:JSON.parse(t.data):{},n=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(v){}if(!n){var a=Object.keys(u).filter(function(t){return 0===t.indexOf(e.api)}),r=!0,i=!1,o=void 0;try{for(var l,p=a[Symbol.iterator]();!(r=(l=p.next()).done);r=!0){var f=l.value,d=u[f]||c;d(e)}}catch(m){i=!0,o=m}finally{try{r||null==p.return||p.return()}finally{if(i)throw o}}return}var h=u[e.content.uuid||e.uuid||e.api+e.uuid]||c;h(e)}catch(v){console.error("通信消息解析错误",v)}});var p=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,f=function(t,e){if(l.isApp){var n=Object(a["g"])();u[n]=e||c,t.content=t.content?i({},t.content,{uuid:n}):{uuid:n},p.postMessage(JSON.stringify(t))}},d=function(t,e){if(l.isApp){var n=t+Object(a["g"])();u[n]=e||c}}}}]);