ecinc-cloud-yoagwgl 9.5.234 → 9.6.236
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ecyoagwgl.umd.min.js
CHANGED
|
@@ -304,4 +304,4 @@ a.version="2.30.1",o(Kn),a.fn=co,a.min=er,a.max=tr,a.now=nr,a.utc=h,a.unix=uo,a.
|
|
|
304
304
|
* (c) 2021 Evan You
|
|
305
305
|
* @license MIT
|
|
306
306
|
*/
|
|
307
|
-
function S(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var Y="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},j=Y.__VUE_DEVTOOLS_GLOBAL_HOOK__;function C(e){j&&(e._devtoolHook=j,j.emit("vuex:init",e),j.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){j.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){j.emit("vuex:action",e,t)}),{prepend:!0}))}function O(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function N(e){return null!==e&&"object"===typeof e}function P(e){return e&&"function"===typeof e.then}function E(e,t){return function(){return e(t)}}var H=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},F={namespaced:{configurable:!0}};F.namespaced.get=function(){return!!this._rawModule.namespaced},H.prototype.addChild=function(e,t){this._children[e]=t},H.prototype.removeChild=function(e){delete this._children[e]},H.prototype.getChild=function(e){return this._children[e]},H.prototype.hasChild=function(e){return e in this._children},H.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},H.prototype.forEachChild=function(e){O(this._children,e)},H.prototype.forEachGetter=function(e){this._rawModule.getters&&O(this._rawModule.getters,e)},H.prototype.forEachAction=function(e){this._rawModule.actions&&O(this._rawModule.actions,e)},H.prototype.forEachMutation=function(e){this._rawModule.mutations&&O(this._rawModule.mutations,e)},Object.defineProperties(H.prototype,F);var A=function(e){this.register([],e,!1)};function I(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;I(e.concat(r),t.getChild(r),n.modules[r])}}A.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},A.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},A.prototype.update=function(e){I([],this.root,e)},A.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var a=new H(t,n);if(0===e.length)this.root=a;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],a)}t.modules&&O(t.modules,(function(t,a){r.register(e.concat(a),t,n)}))},A.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},A.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var z;var R=function(e){var t=this;void 0===e&&(e={}),!z&&"undefined"!==typeof window&&window.Vue&&ne(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new z,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,i=o.dispatch,s=o.commit;this.dispatch=function(e,t){return i.call(a,e,t)},this.commit=function(e,t,n){return s.call(a,e,t,n)},this.strict=r;var l=this._modules.root.state;q(this,l,[],this._modules.root),U(this,l),n.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.devtools:z.config.devtools;d&&C(this)},W={state:{configurable:!0}};function G(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function B(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;q(e,n,[],e._modules.root,!0),U(e,n,t)}function U(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};O(a,(function(t,n){o[n]=E(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var i=z.config.silent;z.config.silent=!0,e._vm=new z({data:{$$state:t},computed:o}),z.config.silent=i,e.strict&&X(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),z.nextTick((function(){return r.$destroy()})))}function q(e,t,n,r,a){var o=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!o&&!a){var s=ee(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){z.set(s,l,r.state)}))}var d=r.context=V(e,i,n);r.forEachMutation((function(t,n){var r=i+n;K(e,r,t,d)})),r.forEachAction((function(t,n){var r=t.root?n:i+n,a=t.handler||t;Q(e,r,a,d)})),r.forEachGetter((function(t,n){var r=i+n;Z(e,r,t,d)})),r.forEachChild((function(r,o){q(e,t,n.concat(o),r,a)}))}function V(e,t,n){var r=""===t,a={dispatch:r?e.dispatch:function(n,r,a){var o=te(n,r,a),i=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,i)},commit:r?e.commit:function(n,r,a){var o=te(n,r,a),i=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,i,s)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return J(e,t)}},state:{get:function(){return ee(e.state,n)}}}),a}function J(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,r)===t){var o=a.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function K(e,t,n,r){var a=e._mutations[t]||(e._mutations[t]=[]);a.push((function(t){n.call(e,r.state,t)}))}function Q(e,t,n,r){var a=e._actions[t]||(e._actions[t]=[]);a.push((function(t){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return P(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}function Z(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function X(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function ee(e,t){return t.reduce((function(e,t){return e[t]}),e)}function te(e,t,n){return N(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function ne(e){z&&e===z||(z=e,S(z))}W.state.get=function(){return this._vm._data.$$state},W.state.set=function(e){0},R.prototype.commit=function(e,t,n){var r=this,a=te(e,t,n),o=a.type,i=a.payload,s=(a.options,{type:o,payload:i}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},R.prototype.dispatch=function(e,t){var n=this,r=te(e,t),a=r.type,o=r.payload,i={type:a,payload:o},s=this._actions[a];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(d){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(d){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(d){0}t(e)}))}))}},R.prototype.subscribe=function(e,t){return G(e,this._subscribers,t)},R.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return G(n,this._actionSubscribers,t)},R.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},R.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},R.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),q(this,this.state,e,this._modules.get(e),n.preserveState),U(this,this.state)},R.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=ee(t.state,e.slice(0,-1));z.delete(n,e[e.length-1])})),B(this)},R.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},R.prototype.hotUpdate=function(e){this._modules.update(e),B(this,!0)},R.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(R.prototype,W);ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=se(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof a?a.call(this,t,n):t[a]},n[r].vuex=!0})),n})),ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=se(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n}));var re=ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;a=e+a,n[r]=function(){if(!e||se(this.$store,"mapGetters",e))return this.$store.getters[a]},n[r].vuex=!0})),n}));ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=se(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n}));function ae(e){return oe(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function oe(e){return Array.isArray(e)||N(e)}function ie(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function se(e,t,n){var r=e._modulesNamespaceMap[n];return r}function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return(t=pe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e){var t=me(e,"string");return"symbol"==le(t)?t:t+""}function me(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var fe={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}}},data:function(){return{updatecolumn:!0,enevlelist:[]}},computed:ce({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("loadEnevlelist",this.loadEnevlelist);var e=sessionStorage.getItem(this.loginUser.orgCode+"_LEVEL");this.enevlelist=e?JSON.parse(e):[]},mounted:function(){},beforeDestroy:function(){this.$bus.off("loadEnevlelist",this.loadEnevlelist)},methods:{fileSetting:function(){this.$bus.emit("fileSetting",this.row)},editorForm:function(){this.$bus.emit("editorForm",this.row)},loadEnevlelist:function(){var e=this,t=sessionStorage.getItem(this.loginUser.orgCode+"_LEVEL");this.enevlelist=t?JSON.parse(t):[],this.updatecolumn=!1,this.$nextTick((function(){e.updatecolumn=!0}))},getEnevle:function(e){var t=this,n=null;return this.enevlelist.forEach((function(e){t.row.elvVal!==e.eLevel&&t.row.elevel!==e.eName&&t.row.flELevel!==e.eLevel&&t.row.flELevel!==e.eName||(n=e)})),null!==n?"color"===e?n.color:n.eName:this.row.elevel||this.row.flELevel}}},he=fe,ge=(n(8160),m(he,D,k,!1,null,"01bdb8c2",null)),ye=ge.exports,_e=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wflow-container wflow-container-top-bar"},[t("div",{staticClass:"header-title"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"12px"}},[t("PageHeader",{attrs:{"sys-title":""}}),t("span",{staticStyle:{"margin-top":"10px"}},[e._v(e._s(e.logoTitle))])],1),e.TopBtn.length>0?t("TopBtn",{ref:"TopBtn",attrs:{"top-btn":e.TopBtn}}):e._e()],1),t("div",{staticClass:"wflow-busiattach"},[t("div",{staticClass:"mainform-have-sidebar",style:{width:e.InlineTextEditorShow?"100%":""}},[t("ModuleTextEditor",{ref:"InlineTextEditor",attrs:{"wf-attach-url":e.wfAttachUrl,"office-type":e.officeType,"body-file-editor":2,vo:e.vo}})],1)])])},ve=[],be=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"flex",height:"calc(100vh - 71px)"}},[t("div",{staticStyle:{flex:"1"}},[t("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"btnEcdocSaved",type:"default"},on:{click:e.btnEcdocSavedClick}}),t("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"windowOpen",type:"default"},on:{click:e.windowOpen}}),e.ecweboffice&&2===e.bodyFileEditor&&"ech5"===e.officeType?t("ecweboffice",{ref:"ecweboffice",staticStyle:{width:"100%"},attrs:{"editor-url":e.editorUrl}}):e._e()],1),t("div",{staticStyle:{"background-color":"#fff"}},[e._t("right-sidebar")],2)])},we=[];function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function Le(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Le=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Me(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Me(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Te(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Te(o,r,a,i,s,"next",e)}function s(e){Te(o,r,a,i,s,"throw",e)}i(void 0)}))}}var De={name:"ModuleTextEditor",props:{vo:{type:Object,default:function(){return{}}},wfAttachUrl:{type:String,default:"wfInstance/wfBusiAttach"},officeType:{type:String,default:"ech5"},bodyFileEditor:{type:Number,default:0},curTN:{type:Object,default:function(){return null}}},data:function(){return{bodyFileUrl:"",bodyFileCanEdit:0,ecweboffice:!1,waiting:!1,editorUrl:"",mbDownUrl:""}},computed:{},watch:{},created:function(){this.$options.components["ecweboffice"]=this.$loadComponent("@/wapp/workflow/webOffice/ecweboffice"),null===this.curTN&&(this.curTN=this.$vnode.context.curTN),this.$bus.on("btnOpenWordClick",this.btnOpenWordClick),this.$bus.on("btnNoTitleModifyFlTypeClick",this.btnNoTitleModifyFlTypeClick),this.$bus.on("selectContractTemplate",this.selectContractTemplate)},beforeDestroy:function(){this.$bus.off("btnOpenWordClick",this.btnOpenWordClick),this.$bus.off("btnNoTitleModifyFlTypeClick",this.btnNoTitleModifyFlTypeClick),this.$bus.off("selectContractTemplate",this.selectContractTemplate)},mounted:function(){},methods:{selectContractTemplate:function(e){var t=this;this.mbDownUrl="htgl/htmb/",this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",value:e.wfInstance.orgCode}],url:"htgl/htmb/querydata"}).then((function(n){"success"===n.code?(n.body.listdata.forEach((function(e){e.value=e.id,e.text=e.templateName})),t.$bus.emit("openListitemDialog",t.$tx("gwgl.messages.selectModuleTip","选择合同模版"),n.body.listdata,(function(r){if("success"===r.code){var a=n.body.listdata.filter((function(e){if(e.id===r.value)return!0}));e.vo.htmbId=a[0].id,e.vo.htmbName=a[0].templateName,2===e.wfInstance.haveDoc?t.$confirm(t.$tx("gwgl.messages.haveModule","该合同已经有模版!")+"<br>"+t.$tx("gwgl.messages.haveModule2","是否替换当前模版?"),t.$tx("common.confirmOperate","确认操作"),{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.btnOpenWordClick(e)})).catch((function(){e.embeddedEditorToggle(!1)})):t.btnOpenWordClick(e)}else e.embeddedEditorToggle(!1)}),e.vo.htmbId,t.$tx("gwgl.components.contractModule","合同模版"),t.$tx("gwgl.components.selectNewM","请选择新的合同模版:"))):(e.embeddedEditorToggle(!1),t.$alert(n.message,t.$tx("common.operationTip","操作提示"),{type:"error"}))}))},btnNoTitleModifyFlTypeClick:function(e){var t=this;this.mbDownUrl="gwgl/fwmb/",this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"sortNo,name"},data:[{compare:"=",field:"orgCode",value:e.wfInstance.orgCode},{compare:"=",field:"status",value:1}],url:"gwgl/fwmb/querydata"}).then((function(n){"success"===n.code?(n.body.listdata.forEach((function(e){e.value=e.id,e.text=e.name})),t.$bus.emit("openListitemDialog",t.$tx("gwgl.components.updateGwType","修改公文类型"),n.body.listdata,(function(r){if("success"===r.code){var a=n.body.listdata.filter((function(e){if(e.id===r.value)return!0}));e.vo.flWord=a[0].fileWord,e.vo.flFormName=a[0].formTitle,e.vo.flRedTitle=a[0].fileHeader,e.vo.gwmbId=a[0].id,e.vo.flType=a[0].name,e.vo.signedFileName&&null!==e.vo.signedFileName&&""!==e.vo.signedFileName?t.$confirm(t.$tx("gwgl.messages.haveGz","该公文已经盖章,重新编辑正文后需要重新盖章!")+"<br>"+t.$tx("gwgl.messages.haveGz2","是否继续?"),t.$tx("common.confirmOperate","确认操作"),{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.btnOpenWordClick(e,"RedliningOnce")})).catch((function(){e.embeddedEditorToggle(!1)})):2===e.wfInstance.haveDoc?t.$confirm(t.$tx("gwgl.messages.haveTh","该公文已经套过红!")+"<br>"+t.$tx("gwgl.messages.haveGz2","是否继续?"),t.$tx("common.confirmOperate","确认操作"),{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.btnOpenWordClick(e,"Redlining")})).catch((function(){e.embeddedEditorToggle(!1)})):t.btnOpenWordClick(e,"Redlining")}else e.embeddedEditorToggle(!1)}),e.vo.gwmbId,t.$tx("gwgl.components.gwType","公文类型"),t.$tx("gwgl.components.selectNewGw","请选择新的公文类型:"))):(e.embeddedEditorToggle(!1),t.$alert(n.message,t.$tx("common.operationTip","操作提示"),{type:"error"}))}))},btnOpenWordClick:function(e,t,n){var r=this;console.log(t,"openType"),this.openType=t,e.formValidate((function(){var n=[],a="";a="/apigw".substring(1)+"/gwgl/fwmb/download?id="+r.vo.id+"&dataField=fileContent&nameField=mbFileName";var o={};"ech5"===r.officeType&&r.btnOpenEcdocEditorClick(e,n,o,a,"","",t)}))},btnOpenEcdocEditorClick:function(e,t,n,r,a,o,i){var s=this;return xe(Le().mark((function t(){var n,a,o,i,l;return Le().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=s,a=location.href.split("#")[0].split("windex.html")[0],r=a+r,o=e.vo.mbFileName,i="ATTACH",r+="&attachsType="+i,l=s.$tx("gwgl.components.isLoading","正在下载文件,请稍候..."),s.$bus.emit("showDoingDialog",l),s.$http({method:"GET",url:"wopi/getAccessToken",params:{downUrl:r,fileName:o}}).then((function(t){if("success"===t.code){s.tSessionId=t.body.tSessionId;var r,o=t.body.editorUrl;o.indexOf("lang=")<0&&(o+="&lang=zh-CN"),console.log(o,"editorUrl ---- 235"),s.editorUrl=o,new Promise((function(e,t){n.$nextTick((function(){s.ecweboffice=!0,n.$nextTick((function(){r=n.$refs.ecweboffice,r&&e(!0)}))}))})).then((function(n){if(n){s.$bus.emit("closeDoingDialog");var r=s.$tx("gwgl.components.loadingSave","正在保存附件,请稍候...");s.doctimer=setInterval((function(){if(!s.ecweboffice&&!s.waiting&&(clearInterval(s.doctimer),window.fileStatus>0)){s.$bus.emit("showDoingDialog",r);var n=a+"/apigw".substring(1)+"/gwgl/fwmb/upload";s.checkEcincEditorFinished(e,t.body.attachId,n,0,"")}s.ecweboffice||(clearInterval(s.doctimer),s.btnEcdocSavedClick(!0))}),500)}}));var i=a+"/apigw".substring(1)+"/gwgl/fwmb/upload";i+="?id="+e.vo.id,i+="&dataField=fileContent",i+="&nameField=mbFileName",i+="&method=put",document.querySelector("#btnEcdocSaved").uploadUrl=i,console.log(document.querySelector("#btnEcdocSaved"),"btnEcdocSaved"),document.querySelector("#btnEcdocSaved").checkSave=!1}else s.$alert(t.message,s.$tx("common.operationTip","操作提示"),{type:"error"})}));case 9:case"end":return t.stop()}}),t)})))()},btnEcdocSavedClick:function(e){if("ech5"===this.officeType){var t=document.querySelector("#btnEcdocSaved");if(console.log(t.srcEvent),t.srcEvent){var n=t.srcEvent.data;if(n){"string"===typeof n&&(n=JSON.parse(n));var r=!1;if(e&&t.checkSave)r=!0;else if("UI_Save"===n.MessageId||"Action_Save_Resp"===n.MessageId)r=!0;else if("Doc_ModifiedStatus"===n.MessageId&&n.Values.Modified)return void(t.checkSave=!1);if(r&&!this.waiting){delete t.srcEvent.data,delete t.checkSave;var a=document.querySelector("#btnEcdocSaved").uploadUrl,o=this.$tx("gwgl.components.reloadFile","正在重新加载文件,请稍候"),i="BODY";-1!==a.indexOf("=ATTACH")&&(o=this.$tx("gwgl.components.loadingSave","正在保存附件,请稍候..."),i="ATTACH"),this.$bus.emit("showDoingDialog",o);var s=this.$vnode.context;this.checkEcincEditorFinished(s,this.tSessionId,a,0,i)}else this.$bus.emit("closeDoingDialog")}}}},checkEcincEditorFinished:function(e,t,n,r,a){var o=this;this.waiting=!0,this.$http({method:"GET",url:"wopi/checkFinished",params:{fileId:t,uploadUrl:n,checkCount:r}}).then((function(i){"success"===i.code?i.body.waiting?setTimeout((function(){o.waiting=!0,o.checkEcincEditorFinished(e,t,n,++r,a)}),1e3):i.body.finished?(o.waiting=!1,o.$bus.emit("closeDoingDialog")):i.body.saved&&(o.waiting=!1,e.InlineTextEditorShow=!1,e.btnSubmitClick(e.actionType)):o.$bus.emit("closeDoingDialog")}))},getSessionId:function(){var e=this;return new Promise((function(t,n){e.$http({method:"GET",params:{timeLength:60},url:"base/user/getSessionId"}).then((function(e){"success"===e.code?t(e.body.tSessionId):n(e.msg)}))}))},imgUrl:function(e){var t=e.oriangialName||e.fileName;return t=t.substring(t.lastIndexOf(".")),".doc"===t||".docx"===t?"images/w-imgs/email/word.png":".ppt"===t||".pptx"===t?"images/w-imgs/email/ppt.png":".xls"===t||".xlsx"===t?"images/w-imgs/email/excel.png":".pdf"===t?"images/w-imgs/email/pdf.png":".txt"===t?"images/w-imgs/email/txt.png":".audio"===t||".amr"===t||".mp3"===t||".wav"===t?"images/w-imgs/email/audio.png":".video"===t||".mp4"===t||".mov"===t?"images/w-imgs/email/video.png":".zip"===t||".rar"===t?"images/w-imgs/email/zip.png":".image"===t||".mp4"===t||".jpg"===t||".jpeg"===t||".png"===t||".gif"===t||".bmp"===t||".svg"===t?"images/w-imgs/email/picture.png":" "===t?"images/w-imgs/email/none.png":"images/w-imgs/email/其他.png"}}},ke=De,Se=(n(7030),m(ke,be,we,!1,null,"4b14c1db",null)),Ye=Se.exports,je=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"flex"}},[t("div",{staticClass:"TopBtn",class:{"bottom-bar":"bottom"===e.btnPosition}},e._l(e.topBtns,(function(n){return t("div",{key:n,staticClass:"commandBtn",attrs:{code:n.btnCode}},[t("el-button",{attrs:{plain:""},nativeOn:{click:function(t){return e.handleBtnClick(n)}}},[-1!==n.btnIcon.indexOf(".svg")?t("svg-icon",{class:n.btnIcon.substring(0,n.btnIcon.indexOf(".svg")),attrs:{"icon-class":n.btnIcon.substring(0,n.btnIcon.indexOf(".svg"))}}):e._e(),-1===n.btnIcon.indexOf(".svg")?t("i",{class:"el-icon-"+n.btnIcon}):e._e(),t("span",[e._v(e._s(n.btnName))])],1)],1)})),0)])},Ce=[],Oe={name:"TopBtn",components:{},props:{topBtn:{type:Array,default:function(){return[]}},btnPosition:{type:String,default:function(){return"top"}}},data:function(){return{topBtns:[],submitBtn:null}},computed:{},watch:{TopBtn:{handler:function(e,t){this.setCommandBtns()},deep:!0}},created:function(){this.setCommandBtns()},beforeDestroy:function(){},mounted:function(){},methods:{setCommandBtns:function(){this.topBtns=[],this.topBtns=this.topBtn},handleBtnClick:function(e){console.log(e,"btn"),void 0!==e.btnParams&&null!==e.btnParams?e.btnClick.apply(this.$vnode.context,e.btnParams):e.btnClick.apply(this.$vnode.context)}}},Ne=Oe,Pe=(n(8100),m(Ne,je,Ce,!1,null,"5ec99cdd",null)),Ee=Pe.exports,He={components:{ModuleTextEditor:Ye,TopBtn:Ee},props:{},data:function(){return{officeType:"ech5",wfAttachUrl:"htgl/htmb",bodyfile:{},logoTitle:"",TopBtn:[{btnAlign:1,btnCode:null,btnGroupId:null,btnIcon:"glyphicon-off.svg",btnJavascript:"btnCloseClick()",btnName:"关 闭",btnOrderNo:null,btnShow:null,btnType:"1",id:null,nodeId:null,passenger:{},visitType:0},{btnAlign:1,btnCode:null,btnGroupId:null,btnIcon:"saved.svg",btnJavascript:"btnSaveAndCloseClick()",btnName:this.$tx("pageBtns.saveAndClose","保存关闭"),btnOrderNo:null,btnShow:null,btnType:"1",id:null,nodeId:null,passenger:{},visitType:0},{btnAlign:1,btnCode:null,btnGroupId:null,btnIcon:"save.svg",btnJavascript:"btnSaveClick()",btnName:this.$tx("pageBtns.save","保存"),btnOrderNo:null,btnShow:null,btnType:"1",id:null,nodeId:null,passenger:{},visitType:0}],vo:{},actionType:"",InlineTextEditorShow:!0}},computed:{},watch:{},created:function(){var e=this;this.logoTitle=this.$route.query.title,this.vo=JSON.parse(this.$route.query.row),console.log(this.logoTitle,this.vo,"query 参数传递"),this.TopBtn.forEach((function(t){var n=t.btnJavascript;if(-1!==n.indexOf("(")){var r=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==r&&(r=r.replace(/'/g,"").split(","),t.btnParams=r),n=n.split("(")[0]}void 0!==e[n]&&(t.btnClick=e[n])}))},beforeDestroy:function(){},mounted:function(){this.$bus.emit("btnOpenWordClick",this)},methods:{btnCloseClick:function(e){(e||confirm(this.$tx("gwgl.messages.editConfig","若当前编辑未保存,则内容修改无效,是否继续?")))&&window.close()},btnSaveAndCloseClick:function(){console.log("关闭且保存"),this.btnSubmitClick("SaveAndClose")},btnSaveClick:function(){this.btnSubmitClick("Save")},btnSubmitClick:function(e,t){var n=this;this.formValidate((function(){if(n.actionType=e,n.InlineTextEditorShow&&"AutoSave"!==e)return console.log(" this.$refs.InlineTextEditor.$refs.ecweboffice",n.$refs.InlineTextEditor.$refs.ecweboffice),void n.$refs.InlineTextEditor.$refs.ecweboffice.save();"SaveAndClose"===e&&(n.$message.success(n.$tx("common.saveSuccess")),setTimeout((function(){n.btnCloseClick(!0)}),300)),"Save"===e&&n.$message.success(n.$tx("common.saveSuccess")),n.InlineTextEditorShow=!0}))}}},Fe=He,Ae=(n(1341),m(Fe,_e,ve,!1,null,"6dd6ca80",null)),$e=Ae.exports,Ie=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{title:e.$tx("gwgl.components.transferNotice","转通知公告"),visible:e.dzggShow,width:"1000px"},on:{"update:visible":function(t){e.dzggShow=t},close:e.toclose}},[t("div",[t("el-form",{attrs:{model:e.dzggObj}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{ref:"tdlbl_制度标题",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flSubject",expression:"'flSubject'"}],staticClass:"field"},[e._v("文件标题")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"flSubject",attrs:{field:{defaultValue:null,elementCanEdit:"1",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"input",emptyMessage:e.$tx("gwgl.components.zdTitleEmptyMessage","请输入制度主题"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:e.$tx("gwgl.components.zdTitle","制度标题"),propName:"flSubject",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"dzggObj.flSubject",option:[]},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_公告类型 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"type",expression:"'type'"}],staticClass:"field"},[e._v("公告类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"type",attrs:{field:{cssClass:null,cssStyle:null,defaultValue:null,elementCanEdit:"1",elementCssHeight:null,elementCssWidth:null,elementFormatter:e.$tx("gwgl.components.notice","公告")+":"+e.$tx("gwgl.components.notice","公告")+"\n"+e.$tx("gwgl.components.inform","通知")+":"+e.$tx("gwgl.components.inform","通知")+"\n"+e.$tx("gwgl.components.praise","表扬")+":"+e.$tx("gwgl.components.praise","表扬")+"\n"+e.$tx("gwgl.components.criticize","批评")+":"+e.$tx("gwgl.components.criticize","批评")+"\n"+e.$tx("gwgl.components.other","其他")+":"+e.$tx("gwgl.components.other","其他"),elementReadonly:0,elementType:"radio",emptyMessage:e.$tx("gwgl.components.selectType","请选择公告类型"),errorMessage:null,formTdAlign:"text-left",formTdColspan:24,isRequired:1,onBlurEvent:null,onChangeEvent:null,onClickEvent:"@change='handleTypeChange'",onDblClickEvent:null,onFocusEvent:null,onKeyDownEvent:null,onKeyPressEvent:null,onKeyUpEvent:null,onMouseDownEvent:null,onMouseOverEvent:null,onMouseUpEvent:null,passenger:{},propComment:"公告类型",propName:"type",propType:"String",textFormatter:"radio",valueMaxLength:20,valueMinLength:null,model:"dzggObj.type",option:[{value:e.$tx("gwgl.components.notice","公告"),name:e.$tx("gwgl.components.notice","公告")},{value:e.$tx("gwgl.components.inform","通知"),name:e.$tx("gwgl.components.inform","通知")},{value:e.$tx("gwgl.components.praise","表扬"),name:e.$tx("gwgl.components.praise","表扬")},{value:e.$tx("gwgl.components.criticize","批评"),name:e.$tx("gwgl.components.criticize","批评")},{value:e.$tx("gwgl.components.other","其他"),name:e.$tx("gwgl.components.other","其他")}],optionGenerateType:0,clearable:!0,filterable:!1,allowCreate:!1},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_是否置顶",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"isTop",expression:"'isTop'"}],staticClass:"field"},[e._v(e._s(e.$tx("gwgl.components.isTop")))])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"isTop",attrs:{field:{defaultValue:"0",elementCanEdit:"1",elementCssHeight:null,elementCssWidth:null,elementFormatter:"0:"+e.$tx("common.no","否")+" \n1:"+e.$tx("common.no","否"),elementReadonly:0,elementType:"radio",emptyMessage:e.$tx("gwgl.common.please","请输入")+"0:"+e.$tx("common.no","否")+" 1:"+e.$tx("common.yes","是"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:e.$tx("gwgl.common.isTop"),propName:"isTop",propType:"Short",textFormatter:"integer",valueMaxLength:null,valueMinLength:null,model:"dzggObj.isTop",option:[{value:"0",name:e.$tx("common.no","否")},{value:"1",name:e.$tx("common.yes","是")}],optionGenerateType:0,clearable:!0,filterable:!1,allowCreate:!1},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_公告时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"ggTime",expression:"'ggTime'"}],staticClass:"field"},[e._v("公告时间")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("datetime-range",{attrs:{vo:e.dzggObj,type:"datetime","v-model-start":"startTime","v-model-end":"endTime","can-edit":1,"placeholder-start":e.$tx("fields.startTime","开始时间"),"placeholder-end":e.$tx("fields.endTime","结束时间"),required:!0,format:"yyyy-MM-dd HH:mm"}})],1)]),e._e(),t("tr",[t("td",{ref:"tdlbl_发布范围 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"publishScope",expression:"'publishScope'"}],staticClass:"field"},[e._v("发布范围")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"publishScope",attrs:{field:{textFormatter:"radio",elementType:"radio",propName:"publishScope",propType:"Short",model:"dzggObj.publishScope",emptyMessage:e.$tx("gwgl.components.publishScopeRange","请选择发布范围"),isRequired:0,elementCanEdit:"1",defaultValue:"0",elementReadonly:0,option:[{value:"0",name:e.$tx("gwgl.components.allPerson","全部人员")},{value:"1",name:e.$tx("gwgl.components.fields.readersName","指定人员")}],elementFormatter:"0:"+e.$tx("gwgl.components.allPerson","全部人员")+"\n1:"+e.$tx("gwgl.components.fields.readersName","指定人员"),propComment:"发布范围",optionGenerateType:0,clearable:!0,filterable:!1,allowCreate:!1},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),1==e.dzggObj.publishScope?t("tr",[t("td",{ref:"tdlbl_查阅人",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"readersName",expression:"'readersName'"}],staticClass:"field"},[e._v("指定人员")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"readersName",attrs:{field:{defaultValue:null,elementCanEdit:"1",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:e.$tx("gwgl.components.readeremptyMessage","请输入查阅人"),errorMessage:null,formTdAlign:"text-left",formTdColspan:24,isRequired:0,onClickEvent:null,passenger:{},propComment:"查阅人",propName:"readersName",propType:"String",textFormatter:"textarea",valueMaxLength:2147483647,valueMinLength:null,model:"dzggObj.readersName",option:[],dialog:1,dialogType:"staff",dialogMultiple:!0,dialogOrgLevel:"",autosize:!1,dialogSubOrgName:"",valueIdsField:"readersAccountId"},vo:e.dzggObj,"can-edit":e.canEdit,autosize:!1}})],1)]):e._e(),t("tr",[t("td",{ref:"tdlbl_转规章制度文件",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"publishFiles",expression:"'publishFiles'"}],staticClass:"field"},[e._v("发布文件")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e.bodyfile?t("span",{staticStyle:{color:"#409eff"},on:{click:e.toview}},[e._v(e._s(e.bodyfile.fileName))]):t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"autoReadFile",expression:"'autoReadFile'"}]},[e._v("自动读取正文")])])]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"attachs",expression:"'attachs'"}],ref:"tdlbl_附件",staticClass:"el-table__cell tdlbl tdw17"},[e._v("附件")]),t("td",{staticClass:"el-table__cell tdcont tdcont",attrs:{colspan:"5"}},[e.$parent&&e.$parent.attachments?t("div",[t("el-table",{ref:"multipleTable",staticClass:"eltable",attrs:{"show-header":!1,data:e.attachments},on:{"selection-change":e.headSelectRow}},[t("el-table-column",{staticStyle:{border:"none"},attrs:{type:"selection",width:"35px",align:"right","show-overflow-tooltip":!0}}),t("el-table-column",{staticStyle:{border:"none"},attrs:{prop:"fileName",label:e.$tx("gwgl.components.fileName","文件名"),width:"",align:"left","show-overflow-tooltip":!0}}),t("el-table-column",{staticStyle:{border:"none"},attrs:{prop:"fileSize",label:e.$tx("gwgl.components.fileSize","文件大小"),width:"100px",align:"right","show-overflow-tooltip":!0}})],1)],1):t("div",[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.noData",expression:"'common.noData'"}]},[e._v("暂无数据")])])])])])])])])])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"cancel",expression:"'cancel'"}],on:{click:e.toclose}},[e._v("取 消")]),t("el-button",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.zggzdFn}},[e._v("确 定")])],1)])],1)},ze=[],Re={components:{},props:{vo:{type:Object,default:function(){return{}}},bodyfile:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"gwgl",moduleCode:"components",attachments:[],dzggShow:!1,selectFileIds:"",dzggObj:{},nowTime:this.$moment(new Date).format("YYYY-MM-DD HH:mm")}},computed:{},watch:{},created:function(){this.$bus.on("btnTotzggClick",this.btnTotzggClick)},beforeDestroy:function(){this.$bus.off("btnTotzggClick",this.btnTotzggClick)},mounted:function(){},methods:{toclose:function(){this.dzggShow=!1,this.$parent.FromDialogShow=!1,this.$options.components["FromDialog"]="",console.log(this.$options.components)},zggzdFn:function(){var e=this,t=this;t.dzggObj.flSubject?t.dzggObj.type?(this.dzggObj.passenger.attachments&&this.dzggObj.passenger.attachments.length>0&&(this.dzggObj.passenger.attachments=this.dzggObj.passenger.attachments.filter((function(t){return e.dzggObj.passenger.selectFileIds.includes(t.id)}))),this.$http({method:"post",url:"/ecoa/dzgg/activateWfInstance",data:this.dzggObj}).then((function(t){"success"===t.code?(console.log("res",t),e.$message.success(t.message),e.dzggShow=!1):(e.$message.error(t.message),e.dzggShow=!1)}))):this.$alert(this.$tx("gwgl.components.selectType","请选择公告类型"),this.$tx("common.operationTip","操作提示"),{type:"warning"}):this.$alert(this.$tx("gwgl.components.fixTitle","请填写文件标题!"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!=n&&(n+="、"),""!=r&&(r+=","),n+=e.name,r+=e.personId})),this.$set(this.dzggObj,"readersName",n),this.$set(this.dzggObj,"readersAccountId",r),console.log("123",this.dzggObj.readersName),console.log("123",this.dzggObj.readersAccountId)},toview:function(){console.log(this,"thisssss"),window.open("/apigw/"+this.$parent.wfEngineUrl+"/downloadById?attachIds="+this.bodyfile.id+"&inline=true")},headSelectRow:function(e){var t="";e.forEach((function(e){e.id&&(""!==t&&(t+=","),t+=e.id)})),this.selectFileIds=t,this.dzggObj.passenger.selectFileIds=this.selectFileIds},btnTotzggClick:function(){var e=this;if(this.dzggObj={readersName:"",publishScope:0,endTime:"",startTime:"",isTop:0,type:"公告",passenger:{attachments:[]},flSubject:this.vo.flSubject},this.$parent.attachments){var t=this.$parent.attachments;t=t.filter((function(t){return"BODY"===t.fileType&&t.id===e.bodyfile.id||"BODY"!==t.fileType})),t=JSON.parse(JSON.stringify(t)),t.forEach((function(t){setTimeout((function(){e.$nextTick((function(){e.$refs.multipleTable.toggleRowSelection(t)}))})),t.fileName.indexOf(".doc")>-1&&"BODY"===t.fileType&&(t.fileName="文件正文.doc")})),this.dzggObj.passenger.attachments=t,this.attachments=this.dzggObj.passenger.attachments}this.dzggShow=!0}}},We=Re,Ge=(n(7658),m(We,Ie,ze,!1,null,"35a63f69",null)),Be=Ge.exports,Ue=function(){var e=this,t=e._self._c;return t("div",{staticClass:"internalCommsInfo",staticStyle:{"margin-top":"20px"}},[t("el-form",{staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"departStatus",expression:"'departStatus'"}],staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"6"}},[e._v("部门办理情况")])]),t("tr",[t("td",{staticClass:"el-table__cell tdcont tdw83 internalCommsInfo_table",staticStyle:{padding:"0 !important"},attrs:{colspan:"6"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[t("el-table-column",{attrs:{label:e.$tx("fields.index","序号"),type:"index",width:"50",align:"center"}}),t("el-table-column",{attrs:{prop:"deptName",label:e.$tx("gwgl.components.fields.deptName","部门名称"),width:"130",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"signingTime",label:e.$tx("gwgl.components.fields.signingTime","签收时间"),width:"135",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[e._v(e._s(e._f("timeFormat")(n.row.signingTime)))])]}}])}),t("el-table-column",{attrs:{prop:"internalCommsContent",label:e.$tx("gwgl.components.fields.internalCommsContent","回复内容"),align:"left","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"creator",label:e.$tx("gwgl.components.fields.creator","经办人"),width:"110",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"createTime",label:e.$tx("gwgl.components.fields.createTime","回复时间"),width:"135",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[e._v(e._s(e._f("timeFormat")(n.row.signingTime)))])]}}])}),t("el-table-column",{attrs:{prop:"address",label:e.$tx("gwgl.components.fields.attachs","附件"),width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return e._l(n.row.passenger.attachments,(function(n){return t("div",{key:n.id},[t("el-link",{on:{click:function(t){return e.fileClick(n)}}},[e._v(e._s(n.fileName))])],1)}))}}])})],1)],1)])])])])])])],1)},qe=[],Ve=n(5093),Je={filters:{timeFormat:function(e){return e?Ve(new Date(e)).format("YYYY-MM-DD HH:mm"):""}},props:{vo:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"gwgl",moduleCode:"components",tableData:[]}},computed:{},watch:{},created:function(){this.getQueryData()},beforeDestroy:function(){},mounted:function(){},methods:{getQueryData:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"applyId",merge:!0,value:this.vo.id}],url:"gwgl/internalCommsInfo/querydata"}).then((function(t){"success"==t.code?e.tableData=t.body.listdata:e.$alert(t.message,{type:"warning"})}))},fileClick:function(e){window.open("/apigw/gwgl/internalComms/downloadById?inline=true&attachIds=".concat(e.id,"&topdf=true&httpPort=").concat(location.port))}}},Ke=Je,Qe=(n(4795),m(Ke,Ue,qe,!1,null,"51438016",null)),Ze=Qe.exports,Xe=function(){var e=this,t=e._self._c;return t("div",["color"===e.column.field?t("span",{staticStyle:{padding:"2px 30px"},style:{background:e.row.color}}):e._e(),"dealDays"===e.column.field?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"gwgl.common.numDay",expression:"'gwgl.common.numDay'"}],attrs:{num:e.row.dealDays}},[e._v(e._s(e.row.dealDays)+" 天")]):e._e()])},et=[],tt={props:{column:{type:Object,default:null},row:{type:Object,default:null},index:{type:Number,default:null}}},nt=tt,rt=m(nt,Xe,et,!1,null,"765c37f0",null),at=rt.exports,ot=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("div",{staticClass:"searchType-content block-table-heder"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"byClassification",expression:"'byClassification'"}],staticClass:"title",class:"0"===e.searchType?"active":"",on:{click:function(t){e.searchType="0"}}},[e._v("按分类")]),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"byTime",expression:"'byTime'"}],staticClass:"title",class:"1"===e.searchType?"active":"",on:{click:function(t){e.searchType="1"}}},[e._v("按时间")]),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"byRecordType",expression:"'byRecordType'"}],staticClass:"title",class:"2"===e.searchType?"active":"",on:{click:function(t){e.searchType="2"}}},[e._v("按文种")])]),t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onExpand:e.treeBeforeExpand}})],1),t("RightPanel",[null!=e.treeNode?t("FileList",{attrs:{"edit-permission":e.editPermission,"tree-node":e.treeNode,"search-type":e.searchType,language:e.language,"map-list":e.mapList,"gdflsz-vos":e.gdflszVos}}):e._e()],1)],1)},it=[],st=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{position:"relative"}},[e.tableShow?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tableList,"toolbar-btns":e.listpageBtns,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded,"on-cell-click":e.cellclick,"on-selected-rows-change":e.selectedRowsChange}},[t("div",{staticStyle:{"line-height":"32px",color:"#606266","font-size":"var(--portalFontSize14)"},attrs:{slot:"toolbarLeft-slotLeft"},slot:"toolbarLeft-slotLeft"},[t("span",[e._v(e._s(e.$tx("gwgl.gdgl.recursionFile",{dataType:e.num},"当前归档文件".concat(e.num,"件"))))])])]):e._e(),t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"wf-attach":!0,"batch-save-namefield":"attachmentName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("FileForm",{attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":e.moduleInfo}})]}}])}),t("FilingSystem")],1)},lt=[],dt=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{class:e.wfEngineUrl?"el-table el-table--fit":"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body el-table__body-no",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileTitle",expression:"'fileTitle'"}],attrs:{moduleCode:"common"}},[e._v("文件标题")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"文件标题",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.common.fileTitlePlaceholder","请输入文件标题")},model:{value:e.vo.flSubject,callback:function(t){e.$set(e.vo,"flSubject",t)},expression:"vo.flSubject"}}):t("span",{domProps:{textContent:e._s(e.vo.flSubject)}})],1)]}}])})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flContent",expression:"'flContent'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("摘要")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[e.canEdit?t("el-input",{attrs:{type:"textarea","show-word-limit":"",placeholder:e.$tx("gwgl.gdgl.abstractPlaceholder","请输入摘要")},model:{value:e.vo.flContent,callback:function(t){e.$set(e.vo,"flContent",t)},expression:"vo.flContent"}}):t("span",{domProps:{textContent:e._s(e.vo.flContent)}})],1)]),t("tr",{directives:[{name:"show",rawName:"v-show",value:"会议通知"!==e.chooseFlGwType&&!e.wflowform,expression:"chooseFlGwType !== '会议通知' && !wflowform"}]},[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileName",expression:"'fileName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("文件正文")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("form-item",{ref:"fileData",attrs:{field:{defaultValue:"fileName",elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:null,elementType:"file",emptyMessage:e.$tx("gwgl.gdgl.fileZwEmptyMessage","请选择文件正文"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"文件正文",propName:"fileData",propType:"byte[]",textFormatter:".doc, .docx, .pdf",valueMaxLength:50,valueMinLength:null,model:"vo.fileData",option:[],downloadUrl:"",nameField:"fileName",limitCount:null},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"gwType",expression:"'gwType'"}]},[e._v("公文种类")])]),t("td",{staticClass:"el-table__cell",class:"收文阅办"!==e.chooseFlGwType&&"文件传阅"!==e.chooseFlGwType?"tdcont tdw83":"tdcont tdw33",attrs:{colspan:"收文阅办"!==e.chooseFlGwType&&"文件传阅"!==e.chooseFlGwType?3:1}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"公文种类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$tx("gwgl.gdgl.gwTypePlaceholder","请输入公文种类")},on:{change:e.flGwTypeChange},model:{value:e.vo.flGwType,callback:function(t){e.$set(e.vo,"flGwType",t)},expression:"vo.flGwType"}},e._l(e.vo.passenger.flGwTypeOptions,(function(e,n){return t("el-option",{key:n,attrs:{label:e.name,value:e.name}})})),1):t("span",{domProps:{textContent:e._s(e.vo.flGwType)}})],1)]}}])})],1),"收文阅办"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"swCode",expression:"'swCode'"}]},[e._v("收文编号")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"收文编号",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.swCodePlaceholder","请输入收文编号")},model:{value:e.vo.flSwzh,callback:function(t){e.$set(e.vo,"flSwzh",t)},expression:"vo.flSwzh"}}):t("span",{domProps:{textContent:e._s(e.vo.flSwzh)}})],1)]}}],null,!1,3442028541)})],1)]:e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"startTime",expression:"'startTime'"}]},[e._v("会议开始时间")])]):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"会议开始时间",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:e.$tx("gwgl.gdgl.meetingStartTimePlaceholder","请选择会议开始时间")},model:{value:e.vo.startTime,callback:function(t){e.$set(e.vo,"startTime",t)},expression:"vo.startTime"}}):t("span",{domProps:{textContent:e._s(e.timeTranslate(e.vo.startTime))}})],1)]}}],null,!1,2252135302)})],1):e._e()],2),t("tr",["单位发文"===e.chooseFlGwType||"请示报告"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flCreateDate",expression:"'flCreateDate'"}]},[e._v("拟稿日期")])]):e._e(),"单位发文"===e.chooseFlGwType||"请示报告"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"拟稿日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.draftDatePlaceholder","请选择成文日期")},model:{value:e.vo.flCreateDate,callback:function(t){e.$set(e.vo,"flCreateDate",t)},expression:"vo.flCreateDate"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flCreateDate))}})],1)]}}],null,!1,1852918566)})],1):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"callDate",expression:"'callDate'"}]},[e._v("召集日期")])]):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"召集日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.callDatePlaceholder","请选择召集日期")},model:{value:e.vo.flCreateDate,callback:function(t){e.$set(e.vo,"flCreateDate",t)},expression:"vo.flCreateDate"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flCreateDate))}})],1)]}}],null,!1,3698933052)})],1):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"endTime",expression:"'endTime'"}]},[e._v("会议结束时间")])]):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"会议结束时间",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:e.$tx("gwgl.gdgl.meetingEndTimePlaceholder","会议结束时间")},model:{value:e.vo.endTime,callback:function(t){e.$set(e.vo,"endTime",t)},expression:"vo.endTime"}}):t("span",{domProps:{textContent:e._s(e.timeTranslate(e.vo.endTime))}})],1)]}}],null,!1,421202649)})],1):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flLwrq",expression:"'flLwrq'"}]},[e._v("来文日期")])]):e._e(),"部门便函"===e.chooseFlGwType||"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flCreateDate",expression:"'flCreateDate'"}]},[e._v("创建日期")])]):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"来文日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.submissionDatePlaceholder","请选择来文日期")},model:{value:e.vo.flLwrq,callback:function(t){e.$set(e.vo,"flLwrq",t)},expression:"vo.flLwrq"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flLwrq))}})],1)]}}],null,!1,541277182)})],1):e._e(),"部门便函"===e.chooseFlGwType||"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"创建日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.createTimePlaceholder","请选择创建日期")},model:{value:e.vo.flCreateDate,callback:function(t){e.$set(e.vo,"flCreateDate",t)},expression:"vo.flCreateDate"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flCreateDate))}})],1)]}}],null,!1,2650363856)})],1):e._e(),"单位发文"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flGrade",expression:"'flGrade'"}]},[e._v("文件字号")])]):e._e(),"单位发文"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"文件字号",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.documentSizePlaceholder","请填写文件字号")},model:{value:e.vo.flGrade,callback:function(t){e.$set(e.vo,"flGrade",t)},expression:"vo.flGrade"}}):t("span",{domProps:{innerHTML:e._s(e.vo.flGrade)}})],1)]}}],null,!1,1569961036)})],1):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType?t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"documentType",expression:"'documentType'"}]},[e._v("来文字号")]):e._e(),"文件传阅"===e.chooseFlGwType?t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"documentCode",expression:"'documentCode'"}]},[e._v("来文编号")]):e._e()]):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType?e.$tx("gwgl.gdgl.documentType"):e.$tx("gwgl.gdgl.documentCode"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.flLwzhPlaceholder",{font:"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType?"字":"编",size:"号"},"请填写来文字号")},model:{value:e.vo.flLwzh,callback:function(t){e.$set(e.vo,"flLwzh",t)},expression:"vo.flLwzh"}}):t("span",{domProps:{textContent:e._s(e.vo.flLwzh)}})],1)]}}],null,!1,831323577)})],1):e._e(),"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replyTime",expression:"'replyTime'"}]},[e._v("回复时限")])]):e._e(),"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"回复时限",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.responseTimePlaceholder","请选择回复时限")},model:{value:e.vo.replyTime,callback:function(t){e.$set(e.vo,"replyTime",t)},expression:"vo.replyTime"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.replyTime))}})],1)]}}],null,!1,1901139929)})],1):e._e(),"部门便函"===e.chooseFlGwType||"请示报告"===e.chooseFlGwType?t("td",{attrs:{colspan:"2"}}):e._e()]),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flLwdw",expression:"'flLwdw'"}]},[e._v("来文单位")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"来文单位",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.reportingUnitPlaceholder","请输入来文单位")},model:{value:e.vo.flLwdw,callback:function(t){e.$set(e.vo,"flLwdw",t)},expression:"vo.flLwdw"}}):t("span",{domProps:{textContent:e._s(e.vo.flLwdw)}})],1)]}}],null,!1,56236278)})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flSLevel",expression:"'flSLevel'"}]},[e._v("密级")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"密级",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$tx("gwgl.gdgl.classificationPlaceholder","请选择密级")},model:{value:e.vo.flSLevel,callback:function(t){e.$set(e.vo,"flSLevel",t)},expression:"vo.flSLevel"}},e._l(e.vo.passenger.flSLevelOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.text,value:e.value}})})),1):t("span",{domProps:{textContent:e._s(e.vo.flSLevel)}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"gdType",expression:"'gdType'"}]},[e._v("归档类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{domProps:{textContent:e._s(e.gdTypeObj[e.vo.gdType])}})])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"creator",expression:"'creator'"}]},[e._v("归档人")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[e._v(" "+e._s(e.vo.creator)+" ")]),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"gdTime",expression:"'gdTime'"}]},[e._v("归档日期")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"归档日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$tx("gwgl.gdgl.filingDatePlaceholder","请选择归档日期"),type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.vo.gdTime,callback:function(t){e.$set(e.vo,"gdTime",t)},expression:"vo.gdTime"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.gdTime))}})],1)]}}])})],1)]),e.vo.isnew?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"categoryName",expression:"'categoryName'"}]},[e._v("归档分类管理")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"gdtype",expression:"'gdtype'"}],ref:"gdTypeTree",staticStyle:{width:"100%"},attrs:{readonly:"","init-tree-data":e.treeData,"dialog-title":e.$tx("gwgl.components.archiveClassificationSelect","选择归档分类"),multiple:!1,placeholder:e.$tx("gwgl.components.archiveClassificationPlaceholder"),name:""},model:{value:e.vo.categoryName,callback:function(t){e.$set(e.vo,"categoryName",t)},expression:"vo.categoryName"}}):t("span",{domProps:{textContent:e._s(e.vo.categoryName)}})],1)]}}],null,!1,2740719594)})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flELevel",expression:"'flELevel'"}]},[e._v("紧急程度")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("form-item",{ref:"flELevel",attrs:{field:{cssClass:null,cssStyle:null,defaultValue:"",elementCanEdit:"{{curTN.tnCanEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:":",elementReadonly:null,elementType:"select",emptyMessage:e.$tx("gwgl.gdgl.urgencyEmptyMessage","请选择紧急程度"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onBlurEvent:null,onChangeEvent:null,onClickEvent:null,onDblClickEvent:null,onFocusEvent:null,onKeyDownEvent:null,onKeyPressEvent:null,onKeyUpEvent:null,onMouseDownEvent:null,onMouseOverEvent:null,onMouseUpEvent:null,passenger:{},propComment:"紧急程度 ",propName:"flELevel",propType:"String",textFormatter:null,valueMaxLength:null,valueMinLength:null,model:"vo.flELevel",option:[{name:"",value:""}],optionGenerateType:0},vo:e.vo,"can-edit":e.canEdit}})],1)]):e._e(),"会议通知"===e.chooseFlGwType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"address",expression:"'address'"}]},[e._v("会议地点")])]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"会议地点",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.meetingAddressPlaceholder","请输入会议地点")},model:{value:e.vo.address,callback:function(t){e.$set(e.vo,"address",t)},expression:"vo.address"}}):t("span",{domProps:{textContent:e._s(e.vo.address)}})],1)]}}],null,!1,2867847702)})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"accessRightsType",expression:"'accessRightsType'"}],attrs:{moduleCode:"components"}},[e._v("文件查阅权限")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{attrs:{disabled:!e.canEdit},model:{value:e.vo.accessRightsType,callback:function(t){e.$set(e.vo,"accessRightsType",t)},expression:"vo.accessRightsType"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"allPersonnel",expression:"'allPersonnel'"}],attrs:{label:0,"module-code":"components"}},[e._v("全体人员可阅")]),e.vo.busiDataId&&"gwgl/gdwj"!==e.wfEngineUrl?t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"originalHandler",expression:"'originalHandler'"}],attrs:{label:1,"module-code":"components"}},[e._v("原经办人可阅")]):e._e(),e.vo.busiDataId&&"gwgl/gdwj"!==e.wfEngineUrl?t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"handlerDesignated",expression:"'handlerDesignated'"}],attrs:{label:2,"module-code":"components"}},[e._v("原经办人+指定人可阅")]):e._e(),e.vo.busiDataId&&"gwgl/gdwj"!==e.wfEngineUrl?e._e():t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"designatedReaders",expression:"'designatedReaders'"}],attrs:{label:2,"module-code":"components"}},[e._v("指定可阅人")])],1)],1)]),2===e.vo.accessRightsType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"appoints",expression:"'appoints'"}],attrs:{moduleCode:"components"}},[e._v("指定类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定类型",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{attrs:{disabled:!e.canEdit},on:{change:e.changAppoints},model:{value:e.vo.appoints,callback:function(t){e.$set(e.vo,"appoints",t)},expression:"vo.appoints"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyGroup",expression:"'specifyGroup'"}],attrs:{label:"1","module-code":"components"}},[e._v("指定群组")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyDepart",expression:"'specifyDepart'"}],attrs:{label:"2","module-code":"components"}},[e._v("指定部门")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyPerson",expression:"'specifyPerson'"}],attrs:{label:"3","module-code":"components"}},[e._v("指定人员")])],1)],1)]}}],null,!1,3388011351)})],1)]):e._e(),2===e.vo.accessRightsType&&""!==e.vo.appoints&&null!==e.vo.appoints?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),"1"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectGroup",expression:"'selectGroup'"}],attrs:{moduleCode:"components"}},[e._v("选择群组")]):e._e(),"2"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectDepart",expression:"'selectDepart'"}],attrs:{moduleCode:"components"}},[e._v("选择部门")]):e._e(),"3"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectPerson",expression:"'selectPerson'"}],attrs:{moduleCode:"components"}},[e._v("选择人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"群组",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"1"===e.vo.appoints,expression:"vo.appoints === '1'"},{name:"can-edit",rawName:"v-can-edit"},{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:e.$tx("gwgl.components.GroupPlaceholder","请选择群组"),readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,1512767669)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"部门",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"2"===e.vo.appoints,expression:"vo.appoints === '2'"},{name:"can-edit",rawName:"v-can-edit"},{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:e.$tx("gwgl.components.DepartPlaceholder","请选择部门"),"org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,1198639595)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"3"===e.vo.appoints,expression:"vo.appoints === '3'"},{name:"can-edit",rawName:"v-can-edit"},{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:e.$tx("gwgl.components.PersonPlaceholder","请选择人员"),readonly:"readonly",multiple:"true",type:"textarea",name:"deptIds","root-org-code":e.vo.orgCode},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3367502863)})],1)]):e._e()])])])])])},ct=[],ut=n(5093),pt={components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{i18npkg:"gwgl",moduleCode:"gdgl",gwType:[{title:"单位发文",value:"单位发文"},{title:"收文阅办",value:"收文阅办"},{title:"部门收文",value:"部门收文"},{title:"文件传阅",value:"文件传阅"},{title:"部门便函",value:"部门便函"},{title:"意见征集",value:"意见征集"},{title:"会议通知",value:"会议通知"},{title:"请示报告",value:"请示报告"}],security:[{title:"一般",value:"1"},{title:"特殊",value:"2"}],gdType:[{title:this.$tx("gwgl.components.electronicFilling","电子归档"),value:1},{title:this.$tx("gwgl.components.paperArchiving","纸质归档"),value:2}],gdTypeObj:{1:this.$tx("gwgl.components.electronicFilling","电子归档"),2:this.$tx("gwgl.components.paperArchiving","纸质归档")},root:[],treeData:[],loginUser:null,chooseFlGwType:null,wflowform:!1,wfEngineUrl:""}},computed:{dateTranslate:function(){return function(e){return e?ut(e).format("YYYY年MM月DD日"):""}},timeTranslate:function(){return function(e){return e?ut(e).format("YYYY-MM-DD HH:mm"):""}}},watch:{"vo.flGwType":function(e){var t=this.vo.passenger.flGwTypeOptions.filter((function(t){return t.name===e}))[0];void 0!==t&&(this.chooseFlGwType=t.wfName)}},created:function(){var e=this,t=this.vo.passenger.flGwTypeOptions.filter((function(t){return t.name===e.vo.flGwType}))[0];void 0!==t&&(this.chooseFlGwType=t.wfName),this.loginUser=this.$store.getters.loginUser,-1!==location.href.indexOf("/wflow")&&(this.canEdit=0,this.wflowform=!0),this.wfEngineUrl=this.$route.query.wfEngineUrl,this.queryData()},mounted:function(){},beforeDestroy:function(){},methods:{onWflowFormOpened:function(){},onWflowFormBeforeSubmit:function(){},onWflowFormSubmited:function(){},queryData:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"categoryLevel asc,orderno asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:"/gwgl/gdflsz/querydata"}).then((function(t){"success"===t.code?(e.treeData=e.treeData=e.treeDataAdapter(e.root.concat(t.body.listdata)),console.log(e.treeData,"gwgl")):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){return e.forEach((function(e){null===e.parentId||""===e.parentId||void 0===e.parentId?e.pId="1":e.pId=e.parentId,e.name=e.categoryName,e.title=e.categoryName})),e},onGdtypeCompleted:function(e,t){this.vo.categoryName=e[0].name,this.vo.categoryId=e[0].categoryFullId},onSelectSuborgCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectWorkgroupCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(r+="、"),""!==n&&(n+="、"),n+=e.name,r+=e.personId})),this.$set(this.vo,"deptOrName",n),this.$set(this.vo,"deptIds",r)},changAppoints:function(e){this.vo.deptIds="",this.vo.deptOrName="",e===this.activeId&&(this.vo.deptIds=this.activedeptIds,this.vo.deptOrName=this.activeText)},flGwTypeChange:function(){this.vo.number=""},clearAccessRightsType:function(){this.vo.accessRightsType=null,this.vo.appoints=null,this.vo.deptOrName="",this.vo.deptIds=""}}},mt=pt,ft=(n(543),m(mt,dt,ct,!1,null,"123cdbf8",null)),ht=ft.exports,gt=n(5373),yt=n.n(gt);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function vt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */vt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==_t(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(_t(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function bt(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function wt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){bt(o,r,a,i,s,"next",e)}function s(e){bt(o,r,a,i,s,"throw",e)}i(void 0)}))}}var Mt=n(5093),Lt={components:{FileForm:ht,FilingSystem:h},props:{searchType:{type:String,default:function(){return"0"}},treeNode:{type:Object,default:function(){return{}}},editPermission:{type:Boolean,default:function(){return!1}},language:{type:Array,default:function(){return[]}},gdflszVos:{type:Array,default:function(){return[]}},mapList:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gdgl",title:"归档文件",loginUser:this.$store.getters.loginUser,tableShow:!1,moduleInfo:{getByIdUrl:"gwgl/gdwj/getById",listDataUrl:"gwgl/gdwj/archiveQuery",moduleCode:"gwgl",addNewUrl:"gwgl/gdwj/addNew",insertUrl:"gwgl/gdwj/insert",updateUrl:"gwgl/gdwj/update",uploadUrl:"gwgl/gdwj/upload",winWidth:1e3,winHeight:650},tableList:[{field:"state",checkbox:!0,width:"45px"},{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{propFormatter:"component:@/wapp/gwgl/components/GwglTbColumns",listAdvSearchElement:"",field:"flELevel",width:"100px",elementFormatter:this.$tx("gwgl.gdgl.flELevelFormatter","平件:平件\n急件:急件\n特急:特急"),sortable:!1,propType:"String",align:"center",title:"紧急程度 ",searchable:!1},{field:"flSubject",title:"文件标题",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!1,listAdvSearchElement:"input",listAdvSearchIndex:0},{field:"flGwType",title:"公文种类",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0,listAdvSearchElement:"select",listAdvSearchIndex:3,elementFormatter:"单位发文:单位发文\r\n收文阅办:收文阅办\r\n文件传阅:文件传阅\r\n请示报告:请示报告\r\n部门便函:部门便函\r\n单位函:单位函\r\n办公室文件:办公室文件\r\n"},{field:"gdType",title:"归档类型",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0,listAdvSearchElement:"select",listAdvSearchIndex:3,elementFormatter:"1:电子归档\r\n2:纸质归档\r\n1,2:全部类型\r\n"},{field:"flSLevel",title:"密级",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!1,sortable:!0,listAdvSearchElement:"input",listAdvSearchIndex:2,elementFormatter:"1:一般\r\n2:特殊\r\n"},{field:"creator",title:"归档人",width:"80px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!1,listAdvSearchElement:"input",listAdvSearchIndex:3},{field:"gdTime",title:"归档日期",width:"160px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0,listAdvSearchElement:"date",elementFormatter:"format:yyyy年MM月dd日\r\n",listAdvSearchIndex:4},{field:"fl",title:"文件分类",width:"100",align:"center",valign:"middle",enabled:!1,cellStyle:{css:{cursor:"pointer"}},searchable:!1,sortable:!1,listAdvSearchElement:"select",listAdvSearchIndex:2,elementFormatter:""}],listpageBtns:[],listpageBtnsb:[{btnName:this.$tx("gwgl.gdgl.borrowingApplication","借阅申请"),btnIcon:"plus",btnClick:this.jieyuesq,btnPermission:"",id:"btn_add",btnType:"toolbar"},{btnName:this.$tx("pageBtns.export","导出"),btnIcon:"export.svg",btnClick:this.doloadFile,btnPermission:"",id:"btn_download",btnType:"toolbar"}],listpageBtnsa:[{btnName:"新增",btnIcon:"plus",btnClick:this.addObject,btnPermission:"",id:"btn_add",btnType:"toolbar",btnI18nCode:"add"},{id:"btn_seetingId",btnName:this.$tx("pageBtns.setting","设置"),btnIcon:"s-tools",btnClick:this.setting,btnPermission:"setting",btnType:"toolbar"},{btnName:this.$tx("pageBtns.export","导出"),btnIcon:"export.svg",btnClick:this.doloadFile,btnPermission:"",id:"btn_export",btnType:"toolbar",btnI18nCode:"export"},{btnName:"批量下载",btnIcon:"export.svg",btnClick:this.batchSaveFiles,btnPermission:"batchSaveAllFiles",id:"btn_export",btnType:"toolbar",btnI18nCode:"batchSaveAllFiles"},{id:"btn_deleteId",btnName:this.$tx("pageBtns.setting","设置"),btnIcon:"",btnClick:this.setting,btnPermission:"setting",btnType:"column"}],downloadFileTitle:[{title:"序号",width:45,align:"center",colspan:1,rowspan:1,code:"index"},{title:"紧急程度",width:100,align:"center",colspan:1,rowspan:1,code:"flELevel"},{title:"文件标题",width:300,align:"left",colspan:1,rowspan:1,code:"flSubject"},{title:"文件类型",width:100,align:"center",colspan:1,rowspan:1,code:"flGwType"},{title:"归档类型",width:100,align:"center",colspan:1,rowspan:1,code:"gdType"},{title:"密级",width:100,align:"center",colspan:1,rowspan:1,code:"flSLevel"},{title:"归档人",width:80,align:"center",colspan:1,rowspan:1,code:"creator"},{title:"归档日期",width:150,align:"center",colspan:1,rowspan:1,code:"gdTime"}],canEdit:1,rowsSelected:[],num:"",allDate:[],cellNot:!0}},computed:{},watch:{treeNode:function(){this.setListDataUrl()}},created:function(){this.$bus.on("fileSetting",this.setting),this.$bus.on("editorForm",this.editorForm),this.listpageBtns=this.editPermission?this.listpageBtnsa:this.listpageBtnsb,this.editPermission&&this.tableList.push({field:"operate",title:"操作",width:"100px",align:"center",valign:"middle",propFormatter:"component:@/wapp/gwgl/components/GwglTbColumns"}),this.setListDataUrl()},beforeDestroy:function(){this.$bus.off("fileSetting",this.setting),this.$bus.off("editorForm",this.editorForm)},mounted:function(){console.log("listpageBtns",this.listpageBtns);var e=":全部文种\r\n";this.language.forEach((function(t){e+=t.name+":"+t.name+"\r\n"})),this.tableList[3].elementFormatter=e},methods:{jieyuesq:function(){if(this.rowsSelected.length>0){var e=JSON.stringify(this.rowsSelected);localStorage.setItem("gwjyInnerList",e);var t=window.open("#/wflow?wfEngineUrl=gwgl/jysq&busiCode=gwJysq&wfName=借阅申请&startNodeName=&gwjy=1"),n=setInterval((function(){t.closed&&(console.log("新窗口已被关闭"),clearInterval(n),localStorage.removeItem("gwjyInnerList"))}),1e3)}else this.$message.warning(this.$tx("gwgl.messages.selectData","请先选择数据!"))},onListDataBeforeLoad:function(e,t){t.searchAndOr||(t.searchAndOr="or",t.searchMap["flSubject"]="",t.searchMap["flGwType"]="",t.searchMap["gdType"]="",t.searchMap["creator"]="",t.searchMap["gdTime"]=""),t.orderBy="gdTime desc"},onListDataLoaded:function(e,t){var n=this;console.log(284,t),this.allDate=t.list,this.$http({url:"/gwgl/gdwj/numberOfArchives",method:"GET",contentType:"application/x-www-form-urlencoded"}).then((function(e){"success"===e.code&&(n.num=e.body.num)}))},selectedRowsChange:function(e){this.rowsSelected=e},addObject:function(){var e=this;this.$nextTick((function(){e.$bus.emit("openBusiform",e.moduleInfo,null,1)}))},setting:function(e){var t=this,n=[];n=e?[e]:this.rowsSelected,this.cellNot=!1,this.$bus.emit("openDialog",{rowsSelected:n,url:"",edit:!0}),setTimeout((function(){t.cellNot=!0}),1e3)},editorForm:function(e){var t=this;this.cellNot=!1,this.$nextTick((function(){t.$bus.emit("openBusiform",t.moduleInfo,e,1)})),setTimeout((function(){t.cellNot=!0}),1e3)},cellclick:function(e,t,n,r){if(this.editPermission&&this.cellNot){if(void 0===e.wfEngineUrl){var a=this.moduleInfo.listDataUrl.split("/");a=encodeURI(a[0]+"/"+a[1]),e.wfEngineUrl="/wflow?wfEngineUrl="+a+"&busiDataId="+e.id}window.open("./#"+e.wfEngineUrl+"&gdId="+e.id)}},setListDataUrl:function(){var e=this;return wt(vt().mark((function t(){var n;return vt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n="","0"===e.searchType?n="0"===e.treeNode.id?"gwgl/gdwj/archiveQuery":"1"===e.treeNode.id?"gwgl/gdwj/archiveQuery?categoryId=-1":"gwgl/gdwj/archiveQuery?categoryId="+e.treeNode.id:"1"===e.searchType?n="0"===e.treeNode.id?"gwgl/gdwj/archiveQuery":"gwgl/gdwj/archiveQuery?keyDate="+e.treeNode.name:"2"===e.searchType&&(n="0"===e.treeNode.id?"gwgl/gdwj/archiveQuery":"gwgl/gdwj/archiveQuery?flGwType="+e.treeNode.name),e.tableShow=!1,e.$nextTick((function(){e.tableShow=!0})),e.$set(e.moduleInfo,"listDataUrl",n);case 5:case"end":return t.stop()}}),t)})))()},doloadFile:function(){var e=this;return wt(vt().mark((function t(){var n,r;return vt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.rowsSelected,console.log(355,e.rowsSelected),console.log(358,e.allDate),0===n.length&&(n=e.allDate),r=[],n.forEach((function(t,n){var a=[];e.downloadFileTitle.forEach((function(r){var o={value:"",align:"",colspan:1,rowspan:1};"index"===r.code?o.value=n+1:"gdType"===r.code?o.value=1===t[r.code]?e.$tx("gwgl.components.electronicFilling","电子归档"):e.$tx("gwgl.components.paperArchiving","纸质归档"):"gdTime"===r.code?o.value=Mt(t[r.code]).format("YYYY年MM月DD日"):o.value=t[r.code],o.align=r.align,a.push(o)})),r.push(a)})),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},data:yt().stringify({rows:JSON.stringify(r),titles:JSON.stringify([e.downloadFileTitle]),fileName:e.treeNode.name+"-归档文件"}),url:"common/exportXlsFile"}).then((function(t){"success"===t.code?window.open("/apigw/"+t.body.xlsurl,"_blank"):e.$message.error(t.message)}));case 7:case"end":return t.stop()}}),t)})))()},batchSaveFiles:function(){var e=this;return wt(vt().mark((function t(){return vt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.rowsSelected.length){t.next=3;break}return e.$alert("请选择要下载的文件","操作提示",{confirmButtonText:"确定",type:"warning"}),t.abrupt("return");case 3:e.$http({method:"POST",url:"/gwgl/webForm/gwgdBatchDownload",data:e.rowsSelected}).then((function(t){"success"===t.code?window.open("/apigw/"+t.body.zipurl):e.$message.error(t.message)}));case 4:case"end":return t.stop()}}),t)})))()},onBasicFormBeforeOpen:function(e,t,n){t.isnew&&(t.accessRightsType=0,t.creator=this.loginUser.personName,t.flGwType=t.passenger.flGwTypeOptions[0].name),n.resolve(!0)},onBasicFormOpened:function(e,t){e.isnew&&(t.gdType=2)},onBasicFormBeforeSubmit:function(e,t,n){"归档分类"===t.categoryName&&(t.categoryId="",t.categoryName=""),this.$set(t,"wfEngineUrl","/wflow?wfEngineUrl=gwgl/gdwj&busiDataId="+t.id),n.resolve(!0)}}},Tt=Lt,xt=m(Tt,st,lt,!1,null,"78d17c06",null),Dt=xt.exports,kt={components:{FileList:Dt},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gdgl",treeData:[],treeNode:null,searchType:"0",loginUser:this.$store.getters.loginUser,root:{file:[{id:"0",parentId:"0",name:"所有文件",categoryName:"所有文件",open:!0,title:"所有文件"}],time:[{id:"0",name:"所有文件",year:"所有文件",open:!0,title:"所有文件"}],type:[{id:"0",name:"所有文件",categoryName:"所有文件",open:!0,title:"所有文件"}]},zTree:null,editPermission:!1,language:[]}},computed:{},watch:{searchType:function(e){this.getTreeList()}},created:function(){var e=this.$store.state.user.roles||[];e.some((function(e){return["dwAdministrators","dwLeaders"].includes(e)}))&&(this.editPermission=!0),this.$route.meta.params&&this.$route.meta.params.indexOf("searchType1")>-1?this.searchType="1":this.$route.meta.params&&this.$route.meta.params.indexOf("searchType2")>-1&&(this.searchType="2"),this.getTreeList()},beforeDestroy:function(){},mounted:function(){},methods:{onTreeCreated:function(e){var t=this;this.zTree=e;var n=this.zTree,r=n.getNodes();r.length>0&&this.$nextTick((function(){t.onTreeNodeClick("",r[0].id,r[0]),n.selectNode(r[0])}))},onTreeNodeClick:function(e,t,n){console.log(n,"treeNode"),this.treeNode=n},getTreeList:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{},data:[],url:"/gwgl/gdwj/classificationQueryCollection"}).then((function(t){"success"===t.code?(e.language=t.body.language,e.gdflszVos=t.body.gdflszVos,e.mapList=t.body.mapList,"0"===e.searchType?e.treeData=e.treeDataAdapter(e.root.file.concat(t.body.gdflszVos)):"1"===e.searchType?e.treeData=e.treeDataAdapter(e.root.time.concat(t.body.mapList)):"2"===e.searchType&&(t.body.language.forEach((function(e){e.id="",e.parentId=""})),e.treeData=e.treeDataAdapter(e.root.type.concat(t.body.language)))):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId||""===e.parentId||void 0===e.parentId?e.pId="0":e.pId=e.parentId,"0"===t.searchType?(e.name=e.categoryName,e.title=e.categoryName):"1"===t.searchType?(e.title=e.year,e.name=e.year):"2"===t.searchType&&(e.title=e.name)})),e}}},St=kt,Yt=(n(4868),m(St,ot,it,!1,null,"70c91108",null)),jt=Yt.exports,Ct=function(){var e=this,t=e._self._c;return t("div",[e.dialogFormVisible&&"dept"===e.sendType?t("SendDeptFile",{attrs:{"corp-leaders":e.corpLeaders,"inner-depts":e.innerDepts,"wf-instance":e.wfInstance,"busi-data":e.busiData,"fw-bodyfile":e.fwBodyfile,"fw-attachs":e.fwAttachs}}):e._e(),e.dialogFormVisible&&"corp"===e.sendType?t("SendCorpFile",{attrs:{"tree-nodes":e.treeNodes,"corp-orgs":e.corpOrgs,"wf-instance":e.wfInstance,"busi-data":e.busiData,"fw-bodyfile":e.fwBodyfile,"fw-attachs":e.fwAttachs}}):e._e(),e.dialogFormVisible&&"all"===e.sendType?t("SendGroupFile",{attrs:{"corp-leaders":e.corpLeaders,"inner-depts":e.innerDepts,"commom-tree":e.commomTree,"corp-orgs":e.corpOrgs,"wf-instance":e.wfInstance,"busi-data":e.busiData,"fw-bodyfile":e.fwBodyfile,"fw-attachs":e.fwAttachs}}):e._e(),t("SendlogList",{attrs:{"wf-instance":e.wfInstance}}),t("ReceiptFile")],1)},Ot=[],Nt=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,visible:e.dialogFormVisible,"destroy-on-close":!0,width:"1200px",title:e.winTitle},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("thead",[t("th",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"leaders",expression:"'leaders'"}],staticStyle:{"text-align":"center"}},[e._v("领导阅文")]),t("th",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"receiptDocuments",expression:"'receiptDocuments'"}],staticStyle:{"text-align":"center"},attrs:{moduleCode:"portlet"}},[e._v("部门收文")])]),t("tbody",[t("tr",[t("td",[t("el-row",[t("el-col",{staticClass:"ztree-container listitem",attrs:{span:"11"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("GiantTree",{attrs:{"ztree-id":"corpLeadersTree",nodes:e.corpLeaders,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)]),t("el-col",{staticClass:"selectBtn-container",attrs:{span:"2"}},[t("div",[t("el-button",{staticClass:"el-icon-d-arrow-right",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpLeadersTree",!0)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")]),t("br"),t("br"),t("div",[t("el-button",{staticClass:"el-icon-d-arrow-left",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpLeadersTree",!1)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"del",expression:"'del'"}]},[e._v("删除")])]),t("el-col",{staticClass:"ztree-container",attrs:{span:"11"}},[t("div",{staticClass:"treeNode selectnode"},e._l(e.sendToList.corpLeadersTree,(function(n,r){return t("span",{key:r,on:{click:function(t){return e.removeSelectedNode(r,"corpLeadersTree")}}},[e._v(" "+e._s(n.title)+" "),t("i",{staticClass:"el-icon-close"}),t("br")])})),0)])],1)],1),t("td",[t("el-row",[t("el-col",{staticClass:"ztree-container listitem",attrs:{span:"11"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("GiantTree",{attrs:{"ztree-id":"innerDeptsTree",nodes:e.innerDepts,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)]),t("el-col",{staticClass:"selectBtn-container",attrs:{span:"2"}},[t("div",[t("el-button",{staticClass:"el-icon-d-arrow-right",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("innerDeptsTree",!0)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")]),t("br"),t("br"),t("div",[t("el-button",{staticClass:"el-icon-d-arrow-left",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("innerDeptsTree",!1)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"del",expression:"'del'"}]},[e._v("删除")])]),t("el-col",{staticClass:"ztree-container",attrs:{span:"11"}},[t("div",{staticClass:"treeNode selectnode"},e._l(e.sendToList.innerDeptsTree,(function(n,r){return t("span",{key:r,on:{click:function(t){return e.removeSelectedNode(r,"innerDeptsTree")}}},[e._v(" "+e._s(n.title)+" "),t("i",{staticClass:"el-icon-close"}),t("br")])})),0)])],1)],1)]),t("tr",[t("td",{staticClass:"fwAttach-container",attrs:{colspan:"2"}},[t("div",[t("el-checkbox",{attrs:{disabled:"true"},model:{value:e.fwBodyfile.needSend,callback:function(t){e.$set(e.fwBodyfile,"needSend",t)},expression:"fwBodyfile.needSend"}},[e._v(e._s(e.fwBodyfile.fileName))])],1),e._l(e.attachments,(function(n){return t("div",{key:n.id},[t("el-checkbox",{attrs:{"true-label":!0,"false-label":!1},model:{value:n.needSend,callback:function(t){e.$set(n,"needSend",t)},expression:"attach.needSend"}},[e._v(e._s(n.fileName))])],1)}))],2)])])])])])]),e.loading?e._e():t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{plain:"",icon:"el-icon-close",type:"default",disabled:e.sendDoing},on:{click:e.handleDialogClose}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{icon:"el-icon-check",type:"primary",loading:e.sendDoing},on:{click:e.handleSubmitForm}},[e._v("确定")])],1)],1):e._e()},Pt=[];function Et(e){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function Ht(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ht=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Et(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Et(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Ft(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function At(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ft(o,r,a,i,s,"next",e)}function s(e){Ft(o,r,a,i,s,"throw",e)}i(void 0)}))}}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t,n){return(t=Rt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rt(e){var t=Wt(e,"string");return"symbol"==Et(t)?t:t+""}function Wt(e,t){if("object"!=Et(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Gt={name:"SendDeptFile",components:{},props:{corpLeaders:{type:Array,default:function(){return{}}},innerDepts:{type:Array,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},busiData:{type:Object,default:function(){return{}}},fwBodyfile:{type:Object,default:function(){return{}}},fwAttachs:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!0,loading:!1,winTitle:this.$tx("gwgl.gwjh.winTitle","发送本单位"),corpLeadersTree:{},innerDeptsTree:{},attachments:[],multiple:!0,sendToList:{corpLeadersTree:[],innerDeptsTree:[]},sendDoing:!1}},computed:It({},re(["loginUser"])),watch:{fwBodyfile:function(){void 0!==this.fwBodyfile.id&&(this.loading=!1)},fwAttachs:function(){this.attachments=JSON.parse(JSON.stringify(this.fwAttachs))},corpLeaders:function(){this.treeDataAdapter("corpLeadersTree",this.corpLeaders)},innerDepts:function(){this.treeDataAdapter("innerDeptsTree",this.innerDepts)}},created:function(){},beforeDestroy:function(){},mounted:function(){this.loading=!0},methods:{onTreeCreated:function(e,t){this[t]=e},treeDataAdapter:function(e,t){this.sendToList[e]=[];for(var n=0;n<t.length;n++){var r=t[n];if("innerDeptsTree"===e){var a="2,3".split(",");r.pId=r.parentId,r.title=r.orgFullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),null!==this.busiData.flMainSend&&-1!==this.busiData.flMainSend.indexOf(r.name)&&(r.checked=!0,this.sendToList[e].push(r)),null!==this.busiData.flCopySend&&-1!==this.busiData.flCopySend.indexOf(r.name)&&(r.checked=!0,this.sendToList[e].push(r)),r.orgLevel>a[a.length-1]||1!==r.isRealOrg?t.splice(n--,1):-1!==a.join(",").indexOf(r.orgLevel)&&(r.canSelect=!0)}else"corpLeadersTree"===e&&(r.personId?(r.pId=r.orgId,r.title=r.name+"/"+r.account,r.canSelect=!0):(r.pId=r.parentID,r.name=r.nName,r.title=r.fullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),0===n&&(r.open=!0),r.canSelect=!1))}return t},onTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},handleSelectAll:function(e,t){if(this[e].checkAllNodes(t),t){this.sendToList[e]=this[e].getCheckedNodes();for(var n=0;n<this.sendToList[e].length;n++)this.sendToList[e][n].canSelect||this.sendToList[e].splice(n--,1)}else this.sendToList[e]=[]},onTreeNodeCheck:function(e,t,n){this.sendToList[t]=this[t].getCheckedNodes();for(var r=0;r<this.sendToList[t].length;r++)this.sendToList[t][r].canSelect||this.sendToList[t].splice(r--,1)},removeSelectedNode:function(e,t){var n=this[t].getNodeByParam("id",this.sendToList[t][e].id,null);null!=n&&this[t].checkNode(n,!1,!0,!1),this.sendToList[t].splice(e,1)},handleSubmitForm:function(){var e=this,t=this;this.sendToList["corpLeadersTree"]&&0!==this.sendToList["corpLeadersTree"].length||this.sendToList["innerDeptsTree"]&&0!==this.sendToList["innerDeptsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(At(Ht().mark((function n(){var r,a;return Ht().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=t.fwBodyfile&&r.push(t.fwBodyfile),t.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:a,fwOrgId:t.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(t.busiData),corpLeaders:JSON.stringify(t.sendToList["corpLeadersTree"]),innerDepts:JSON.stringify(t.sendToList["innerDeptsTree"]),fwAttachs:JSON.stringify(r)}),url:"gwjh/sendFile/startSendDeptFile"}).then((function(n){if("success"===n.code){var r=e.$vnode.context.$vnode.context;t.busiData.flBeenSend=1,t.busiData.flSenderAccount=e.loginUser.personAccount;var a=!1,o="";r.commandBar.forEach((function(e){"btnViewSendlogClick"!==e.btnCode&&"发送跟踪"!==e.btnName||(a=!0),""===o&&e.btnName&&-1!==e.btnName.indexOf("发送")&&(null!=e.btnGroupId?o=e.btnGroupId:2===e.btnType&&(o=e.id))})),a||""===o||r.commandBar.push({btnAlign:1,btnCode:"btnViewSendlogClick",btnGroupId:o,btnIcon:null,btnClick:function(){e.$bus.emit("btnViewSendlogClick",r)},btnName:"发送跟踪",btnOrderNo:"70",btnShow:1,btnType:"3",visitType:0});var i=0,s=0,l="";n.body.sendlogList.forEach((function(e){"99"===e.jhStatus?(s++,l+=e.passenger.errMsg+"<br>"):i++})),0===s?t.$message({type:n.code,message:n.message,showClose:!0}):t.$alert(t.$tx("gwgl.messages.sendFileSuccess",{num:i,failNum:s})+"<br>"+l,t.$tx("common.operationTip","操作提示"),{type:"warning",dangerouslyUseHTMLString:!0}),t.sendDoing=!1,t.handleDialogClose()}else{t.sendDoing=!1;var d="<br>";n.body.sendlogList&&n.body.sendlogList.forEach((function(e){"99"===e.jhStatus&&(d+=e.passenger.errMsg+"<br>")})),t.$alert(n.message+d,t.$tx("common.confirmOperate","确认操作"),{type:"error",dangerouslyUseHTMLString:!0})}}));case 6:case"end":return n.stop()}}),n)})))).catch((function(e){"cancel"!==e&&console.error(e)})):this.$alert(this.$tx("gwgl.messages.selectLeader","请选择阅文领导、收文部门。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handleDialogClose:function(){this.$vnode.context.dialogFormVisible=!1,this.$vnode.context.fwBodyfile={},this.$vnode.context.fwAttachs=[]}}},Bt=Gt,Ut=(n(2727),m(Bt,Nt,Pt,!1,null,"4580fba6",null)),qt=Ut.exports,Vt=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,visible:e.dialogFormVisible,"destroy-on-close":!0,width:"1200px",title:e.winTitle},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),e.loading?e._e():t("div",{staticClass:"select-container"},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-input",{attrs:{placeholder:e.$tx("gwgl.gwjh.keyPlaceholder","请输入搜索关键字")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchTreeNode.apply(null,arguments)}},model:{value:e.searchkey,callback:function(t){e.searchkey=t},expression:"searchkey"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchTreeNode},slot:"append"})],1)],1)],1),t("el-row",{staticStyle:{"margin-top":"10px"}},[t("el-col",{staticClass:"ztree-container",staticStyle:{"overflow-y":"inherit"},attrs:{span:"7"}},[t("div",{staticClass:"treeNode"},[t("GiantTree",{attrs:{"ztree-id":"areaNodeTree",nodes:e.areaNodeTreeData,multiple:!1,"show-icon":!0,"show-line":!0},on:{onCreated:e.onTreeCreated,onClick:e.onAreaTreeNodeClick}})],1)]),t("el-col",{staticClass:"ztree-container listitem",staticStyle:{"overflow-y":"inherit"},attrs:{span:"8"}},[t("div",{staticClass:"treeNode"},[null!==e.rootOrgTreeData&&0!==e.rootOrgTreeData.length?t("GiantTree",{attrs:{"ztree-id":"corpOrgsTree",nodes:e.rootOrgTreeData,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onRootOrgTreeNodeClick,onCheck:e.onRootOrgTreeNodeCheck}}):e._e(),null===e.rootOrgTreeData||0===e.rootOrgTreeData.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.rootOrgTreeData?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)]),t("el-col",{staticClass:"selectBtn-container",attrs:{span:"1"}},[t("div",[t("el-button",{staticClass:"el-icon-d-arrow-right",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpOrgsTree",!0)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")]),t("br"),t("br"),t("div",[t("el-button",{staticClass:"el-icon-d-arrow-left",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpOrgsTree",!1)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"clear",expression:"'clear'"}]},[e._v("清除")])]),t("el-col",{staticClass:"ztree-container",attrs:{span:"8"}},[t("div",{staticClass:"treeNode selectnode"},e._l(e.sendToList.corpOrgsTree,(function(n,r){return t("span",{key:r,on:{click:function(t){return e.removeSelectedNode(r,"corpOrgsTree")}}},[e._v(" "+e._s(n.title)+" "),t("i",{staticClass:"el-icon-close"}),t("br")])})),0)])],1),t("el-row",[t("el-col",{staticClass:"fwAttach-container",attrs:{span:"24"}},[t("div",[t("el-checkbox",{attrs:{disabled:"true"},model:{value:e.fwBodyfile.needSend,callback:function(t){e.$set(e.fwBodyfile,"needSend",t)},expression:"fwBodyfile.needSend"}},[e._v(e._s(e.fwBodyfile.fileName))])],1),e._l(e.attachments,(function(n){return t("div",{key:n.id},[t("el-checkbox",{attrs:{"true-label":!0,"false-label":!1},model:{value:n.needSend,callback:function(t){e.$set(n,"needSend",t)},expression:"attach.needSend"}},[e._v(e._s(n.fileName))])],1)}))],2)],1)],1),e.loading?e._e():t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{plain:"",icon:"el-icon-close",type:"default",disabled:e.sendDoing},on:{click:e.handleDialogClose}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{icon:"el-icon-check",type:"primary",loading:e.sendDoing},on:{click:e.handleSubmitForm}},[e._v("确定")])],1)]):e._e()},Jt=[];function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Kt(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Kt(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Zt(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Xt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Zt(o,r,a,i,s,"next",e)}function s(e){Zt(o,r,a,i,s,"throw",e)}i(void 0)}))}}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return(t=rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e){var t=an(e,"string");return"symbol"==Kt(t)?t:t+""}function an(e,t){if("object"!=Kt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var on={name:"SendCorpFile",components:{},props:{corpOrgs:{type:Array,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},busiData:{type:Object,default:function(){return{}}},fwBodyfile:{type:Object,default:function(){return{}}},fwAttachs:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!0,loading:!1,winTitle:"发送外单位",searchkey:"",attachments:[],multiple:!0,areaNodeTreeData:[],rootOrgTreeData:[],rootOrgTreeDataBak:[],sendToList:{corpOrgsTree:[]},sendDoing:!1}},computed:tn({},re(["loginUser"])),watch:{fwBodyfile:function(){void 0!==this.fwBodyfile.id&&(this.loading=!1)},fwAttachs:function(){this.attachments=JSON.parse(JSON.stringify(this.fwAttachs))},corpOrgs:function(){var e=this;this.corpOrgs.forEach((function(t){"rootOrg"===t.type?e.rootOrgTreeData.push(t):e.areaNodeTreeData.push(t)})),this.treeDataAdapter("areaNodeTree",this.areaNodeTreeData),this.treeDataAdapter("corpOrgsTree",this.rootOrgTreeData),this.rootOrgTreeDataBak=JSON.parse(JSON.stringify(this.rootOrgTreeData))}},created:function(){},beforeDestroy:function(){},mounted:function(){this.loading=!0},methods:{onTreeCreated:function(e,t){this[t]=e},treeDataAdapter:function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.id=r.fullID,-1!==r.id.indexOf("-")?r.pId=r.fullID.substring(0,r.fullID.lastIndexOf("-")):r.pId=r.parentID,r.name=r.nName,r.title=r.name,0===n&&(r.open=!0),"rootOrg"===r.type?(r.isParent=!1,r.canSelect=!0):r.nocheck=!0}return t},searchTreeNode:function(){var e=this;this["areaNodeTree"].selectNode(this.areaNodeTreeData[0]);var t=JSON.parse(JSON.stringify(this.rootOrgTreeDataBak)),n={};this.sendToList["corpOrgsTree"].forEach((function(e){n[e.id]=e.id})),this.rootOrgTreeData=[],t.forEach((function(t){-1===t.fullName.indexOf(e.searchkey)&&""!==e.searchkey||(void 0!==n[t.id]&&(t.checked=!0),e.rootOrgTreeData.push(t))}))},onAreaTreeNodeClick:function(e,t,n){var r=this;this.searchkey="";var a={};this.sendToList["corpOrgsTree"].forEach((function(e){a[e.id]=e.id}));var o=JSON.parse(JSON.stringify(this.rootOrgTreeDataBak));this.rootOrgTreeData=[],o.forEach((function(e){0===e.fullID.indexOf(n.fullID)&&(void 0!==a[e.id]&&(e.checked=!0),r.rootOrgTreeData.push(e))}))},onRootOrgTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},handleSelectAll:function(e,t){var n=this,r={};this.sendToList[e].forEach((function(e){r[e.id]=e.id})),this[e].checkAllNodes(t),this.rootOrgTreeData.forEach((function(a){t?a.checked?void 0===r[a.id]&&n[e].checkNode(a,!0,!0,!0):n[e].checkNode(a,!0,null,!0):a.checked?n[e].checkNode(a,!1,null,!0):void 0!==r[a.id]&&n[e].checkNode(a,!1,!0,!0)}))},onRootOrgTreeNodeCheck:function(e,t,n){var r={};if(this.sendToList[t].forEach((function(e){r[e.id]=e.id})),n.checked)void 0===r[n.id]&&this.sendToList[t].push(n);else for(var a=0;a<this.sendToList[t].length;a++)n.id===this.sendToList[t][a].id&&this.sendToList[t].splice(a--,1)},removeSelectedNode:function(e,t){var n=this[t].getNodeByParam("id",this.sendToList[t][e].id,null);null!=n&&this[t].checkNode(n,!1,!0,!1),this.sendToList[t].splice(e,1)},handleSubmitForm:function(){var e=this,t=this;this.sendToList["corpOrgsTree"]&&0!==this.sendToList["corpOrgsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(Xt(Qt().mark((function n(){var r,a;return Qt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=e.fwBodyfile&&r.push(e.fwBodyfile),e.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:a,fwOrgId:t.wfInstance.createOrgId.split("-")[0]},data:yt().stringify({fwBusiData:JSON.stringify(t.busiData),corpOrgs:JSON.stringify(t.sendToList["corpOrgsTree"]),fwAttachs:JSON.stringify(r)}),url:"gwjh/sendFile/startSendCorpFile"}).then((function(n){if("success"===n.code){var r=e.$vnode.context.$vnode.context;t.busiData.flBeenSend=1,t.busiData.flSenderAccount=e.loginUser.personAccount;var a=!1,o="";r.commandBar.forEach((function(e){"btnViewSendlogClick"!==e.btnCode&&"发送跟踪"!==e.btnName||(a=!0),""===o&&-1!==e.btnName.indexOf("发送")&&(null!=e.btnGroupId?o=e.btnGroupId:2===e.btnType&&(o=e.id))})),a||""===o||r.commandBar.push({btnAlign:1,btnCode:"btnViewSendlogClick",btnGroupId:o,btnIcon:null,btnClick:function(){e.$bus.emit("btnViewSendlogClick",r)},btnName:"发送跟踪",btnOrderNo:"70",btnShow:1,btnType:"3",visitType:0});var i=0,s=0,l="";n.body.sendlogList.forEach((function(e){"99"===e.jhStatus?(s++,l+=e.passenger.errMsg+"<br>"):i++})),0===s?t.$message({type:n.code,message:n.message,showClose:!0}):t.$alert(t.$tx("gwgl.messages.sendFileSuccess",{num:i,failNum:s},"发送文件成功".concat(i,"份,失败").concat(s,"份!"))+"<br>"+l,t.$tx("common.operationTip","操作提示"),{type:"warning",dangerouslyUseHTMLString:!0}),e.sendDoing=!1,t.handleDialogClose()}else{e.sendDoing=!1;var d="<br>";n.body.sendlogList&&n.body.sendlogList.forEach((function(e){"99"===e.jhStatus&&(d+=e.passenger.errMsg+"<br>")})),t.$alert(n.message+d,t.$tx("common.confirmOperate","确认操作"),{type:"error",dangerouslyUseHTMLString:!0})}}));case 6:case"end":return n.stop()}}),n)})))).catch((function(e){"cancel"!==e&&console.error(e)})):this.$alert(this.$tx("gwgl.messages.selectGwDepart","请选择收文单位。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handleDialogClose:function(){this.$vnode.context.dialogFormVisible=!1,this.$vnode.context.fwBodyfile={},this.$vnode.context.fwAttachs=[]}}},sn=on,ln=(n(1757),m(sn,Vt,Jt,!1,null,"bb9d6ec0",null)),dn=ln.exports,cn=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.dialogFormVisible,"destroy-on-close":!1,"close-on-click-modal":!1,width:"1000px",title:e.title},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{staticStyle:{"max-height":"570px","overflow-y":"auto","border-bottom":"1px solid #ebeef5"},attrs:{label:"本单位",name:"bmswLog"}},[e.loading?e._e():t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.bmswLogList,border:""}},[t("el-table-column",{attrs:{align:"center",type:"index",label:e.$tx("fields.index","序号"),width:"45"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.bmswDeptName","收文部门"),prop:"bmswDeptName",align:"left"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.sendTime","发送时间"),prop:"fwSendTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swReceiveTime","到达时间"),prop:"swReceiveTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swOpenTime","开始办理时间"),prop:"swOpenTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("common.operate","操作"),width:"130",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.swReceiveTime?e._e():t("el-link",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"processingStatus",expression:"'processingStatus'"}],attrs:{type:"primary"},on:{click:function(t){return e.btnRetryCreateChildWlfowgClick(n.row)}}},[e._v("重新发送")]),n.row.swReceiveTime?t("el-link",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"processingStatus",expression:"'processingStatus'"}],attrs:{type:"primary"},on:{click:function(t){return e.viewBmswWorkForm(n.row)}}},[e._v("办理情况")]):e._e(),n.row.swReceiveTime?t("el-link",{class:{"disabled-link":"9"===n.row.jhStatus},attrs:{type:"primary"},on:{click:function(t){return e.revokeForm(n.row,1)}}},[e._v(" "+e._s("9"===n.row.jhStatus?e.$tx("gwgl.gwjh.withdrawn","已撤回"):e.$tx("gwgl.gwjh.drawn","撤回"))+" ")]):e._e()]}}],null,!1,3426652254)})],1)],1),t("el-tab-pane",{attrs:{label:"外单位",name:"dwswLog"}},[t("div",{staticClass:"select"},[t("div",[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dwName2",expression:"'dwName2'"}],staticStyle:{float:"left","line-height":"36px"}},[e._v("单位名称:")]),t("el-input",{staticStyle:{float:"left",width:"895px"},attrs:{clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.btnViewSendlogClick.apply(null,arguments)}},model:{value:e.orgname,callback:function(t){e.orgname=t},expression:"orgname"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.btnViewSendlogClick},slot:"append"})],1)],1),t("el-row",{staticClass:"tab-top"},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(6)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"allSwdw",expression:"'allSwdw'"}]},[e._v("全部收文单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.statusAll))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(1)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wddDw",expression:"'wddDw'"}]},[e._v("未到达单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status0+e.swLogCount.status1))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple-light",on:{click:function(t){return e.tabClick(2)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"yddDw",expression:"'yddDw'"}]},[e._v("已到达单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status2))]),e._v(" ) ")])])],1),t("el-row",{staticClass:"tab-bottom"},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(99)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sendFailDw",expression:"'sendFailDw'"}]},[e._v("发送失败单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status99))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(3)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"yqsDw",expression:"'yqsDw'"}]},[e._v("已签收单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status3))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple-light",on:{click:function(t){return e.tabClick(4)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"yjsDw",expression:"'yjsDw'"}]},[e._v("已拒收单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status4))]),e._v(" ) ")])])],1)],1),t("div",{staticClass:"tableList"},[e.loading?e._e():t("el-table",{staticStyle:{width:"100%","overflow-y":"auto"},attrs:{data:e.dwswLogList,border:"",height:"287px","row-class-name":e.setRowClassName}},[t("el-table-column",{attrs:{align:"center",type:"index",label:e.$tx("fields.index","序号"),width:"45"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swOrgName","收文单位"),prop:"dwswOrgName",align:"left"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.sendTime","发送时间"),prop:"fwSendTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swReceiveTime","到达时间"),prop:"swReceiveTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.components.fields.signingTime","签收时间"),prop:"swOpenTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("fields.status","状态"),prop:"status",width:"80",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("common.operate","操作"),width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-link",{class:{"disabled-link":"9"===n.row.jhStatus},attrs:{type:"primary"},on:{click:function(t){return e.revokeForm(n.row,2)}}},[e._v(" "+e._s("9"===n.row.jhStatus?e.$tx("gwgl.gwjh.withdrawn","已撤回"):e.$tx("gwgl.gwjh.drawn","撤回"))+" ")])]}}],null,!1,587727615)})],1)],1)])],1),t("cuibanLog",{attrs:{title:e.cuibantitle,list:e.listdata,"wf-instance":e.wfInstance}})],1):e._e()},un=[],pn=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{width:"1000px",visible:e.visible,title:e.title,"append-to-body":!0},on:{"update:visible":function(t){e.visible=t}}},[1===e.isShowVal?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listData,border:""},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),t("el-table-column",{attrs:{align:"center",type:"index",label:e.$tx("fields.index","序号"),width:"45"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swOrgName","收文单位"),prop:"swOrgName",align:"left"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.linkman","收文单位联系人"),prop:"linkman",align:"center",formatter:e.columnFormatter}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.faTime","发文时间"),prop:"receiveTime",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.textMessage","短信"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",[e._v(e._s(0===n.row.smsStatus?e.$tx("gwgl.gwjh.notSent","未发送"):e.$tx("gwgl.gwjh.sent","已发送")))])]}}],null,!1,1270916442)}),t("el-table-column",{attrs:{label:e.$tx("fields.status","状态"),align:"center",prop:"jhStatus"}})],1),t("div",{staticClass:"btn"},[t("el-button",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urgeProcessing",expression:"'urgeProcessing'"}],attrs:{type:"primary"},on:{click:e.receiptInfo}},[e._v("催办")])],1)],1):e._e(),2===e.isShowVal?t("div",{staticClass:"infoContent"},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"receiver",expression:"'receiver'"}]},[e._v("接收人")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"接收人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"receiver",rows:4,type:"textarea",placeholder:e.$tx("gwgl.gwjh.recipientPlaceholder","请输入接收人")},model:{value:e.receiver,callback:function(t){e.receiver=t},expression:"receiver"}})],1)]}}],null,!1,3830385294)}),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"recipientFormat",expression:"'recipientFormat'"}]},[e._v("接收人格式如:152********,158********")])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"content",expression:"'content'"}]},[e._v("短信内容")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"接收人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"content",rows:4,type:"textarea",placeholder:e.$tx("gwgl.gwjh.messengeContentPlaceholder","请输入短信内容")},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)]}}],null,!1,3851635588)})],1)])])])])])]),t("div",{staticClass:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.visible=!1}}},[e._v("取消")])],1)],1):e._e(),3===e.isShowVal?t("div",{staticClass:"info-list"},[t("el-button-group",{staticStyle:{"margin-bottom":"15px"}},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"all",expression:"'all'"}],attrs:{type:1===e.active?"primary":""},on:{click:function(t){return e.selection(1)}}},[e._v("全部")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sendText",expression:"'sendText'"}],attrs:{type:2===e.active?"primary":""},on:{click:function(t){return e.selection(2)}}},[e._v("发文短信")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"urgentSMS",expression:"'urgentSMS'"}],attrs:{type:3===e.active?"primary":""},on:{click:function(t){return e.selection(3)}}},[e._v("催办短信")])],1),t("div",{staticClass:"table-inner"},[t("el-table",{staticClass:"record-table",staticStyle:{width:"100%"},attrs:{data:e.infoRecordList,border:""}},[t("el-table-column",{attrs:{width:"45",label:e.$tx("fields.index","序号"),align:"center",type:"index"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.dwName","单位名称"),align:"center",prop:"swOrgName"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.receiver","接收人"),align:"center",prop:"receiver"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.recipientPhone","接收人号码"),width:"100",align:"center",prop:"phone"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.sendTime"),width:"140",align:"center",prop:"sendTime"}}),t("el-table-column",{attrs:{label:e.$tx("fields.status","状态"),width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",[e._v(e._s(0===n.row.status?e.$tx("gwgl.gwjh.sendFail","发送失败"):e.$tx("gwgl.gwjh.sendSuccess","发送成功")))])]}}],null,!1,1008086496)}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.content","短信内容"),align:"center",prop:"smsContent"}})],1)],1)],1):e._e(),t("el-dialog",{attrs:{width:"880px",visible:e.visibleInfo,title:e.titleInfo,"append-to-body":""},on:{"update:visible":function(t){e.visibleInfo=t}}},[e.isShow?t("div",[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"content",expression:"'content'"}]},[e._v("短信内容")]),e._v(" : "),t("el-input",{attrs:{rows:4,type:"textarea"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),t("div",{staticStyle:{width:"100%","text-align":"center","margin-top":"20px"}},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确定")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.visibleInfo=!1}}},[e._v("取消")])],1)],1):e._e(),e.isShow?e._e():t("div",{staticStyle:{"text-align":"center"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.infoList,border:""}},[t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.swOrgName","收文单位"),width:"300",align:"center",prop:"swOrgName"}}),t("el-table-column",{attrs:{align:"center",label:e.$tx("gwgl.gwjh.sendStatus","短信发送状态")},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",[e._v(e._s(0===n.row.status?e.$tx("gwgl.gwjh.fields.sendFail","发送失败"):e.$tx("gwgl.gwjh.sendSuccess","发送成功")))])]}}],null,!1,316153215)})],1),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.close}},[e._v("关 闭")])],1)])],1)},mn=[],fn={components:{},props:{title:{type:String,default:""},wfInstance:{type:Object,default:function(){return{}}},list:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",isShow:!0,visible:!1,visibleInfo:!1,listData:[],multipleSelection:[],idAll:[],titleInfo:this.$tx("gwgl.gwjh.inputEmailText","填写短信内容"),content:"",infoList:[],receiver:"",isShowVal:null,infoRecordList:[],active:1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){this.$bus.on("opendialog",this.opendialog)},beforeDestroy:function(){this.$bus.off("opendialog",this.opendialog)},mounted:function(){},methods:{selection:function(e){console.log(e),this.active=e;var t=[{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}];2===e?t=[{compare:"=",field:"sendType",merge:!0,value:"1"},{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}]:3===e&&(t=[{compare:"=",field:"sendType",merge:!0,value:"0"},{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}]),this.getInfoRecordData(t)},columnFormatter:function(e,t,n,r){var a=e.linkman.split(";"),o="";return a.forEach((function(e){""!==e&&(""!==o&&(o+=","),o+=e.split("###")[0])})),o},submit:function(){var e=this;this.formValidate((function(){e.$http({url:"gwjh/fawenSms/sendSmsToPhones",method:"POST",params:{busiDataId:e.wfInstance.busiDataId},data:{phones:e.receiver,content:e.content}}).then((function(t){"success"===t.code?(e.visibleInfo=!0,e.isShow=!1,e.infoList=t.body.listdata):e.$message.error(t.message)}))}))},close:function(){this.visible=!1,this.visibleInfo=!1},onSubmit:function(){var e=this;this.$http({url:"gwjh/fawenSms/sendCuibanSms",method:"POST",params:{busiDataId:this.wfInstance.busiDataId},data:{sendlogIds:this.idAll.join(","),content:this.content}}).then((function(t){"success"===t.code?(e.isShow=!1,e.infoList=t.body.listdata):e.$message.error(t.message)}))},receiptInfo:function(){this.multipleSelection.length>0?(this.getContent(),this.visibleInfo=!0):this.$message.error(this.$tx("gwgl.messages.noUrgeProcessingSw","暂无可催办的收文单位"))},getContent:function(){var e=this;this.$http({method:"POST",url:"gwjh/fawenSms/findCuibanSmsContent",params:{busiCode:this.wfInstance.module,busiDataId:this.wfInstance.busiDataId}}).then((function(t){"success"===t.code?e.content=t.body.content:e.$message.error(t.message)}))},getInfoRecordData:function(e){var t=this;this.$http({method:"POST",url:"gwjh/fawenSms/querydata",params:{orderBy:"sendTime desc"},data:e}).then((function(e){"success"===e.code?t.infoRecordList=e.body.listdata:t.$message.error(e.message)}))},opendialog:function(e){if(this.isShowVal=e,2===e&&this.getContent(),3===e){var t=[{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}];this.getInfoRecordData(t)}this.visible=!0,this.listData=this.list},handleSelectionChange:function(e){var t=this;this.idAll=[],this.multipleSelection=[],this.multipleSelection=e,this.multipleSelection.forEach((function(e){t.idAll.push(e.id)})),console.log(this.idAll,888)}}},hn=fn,gn=(n(1453),m(hn,pn,mn,!1,null,"4cc55041",null)),yn=gn.exports,_n={components:{cuibanLog:yn},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",listdata:[],cuibantitle:"",dialogCuiban:!1,title:this.$tx("gwgl.gwjh.sendTracking","发送跟踪"),dialogFormVisible:!1,activeName:"bmswLog",bmswLogList:[],dwswLogList:[],swLogCount:{},loading:!1,wfInstance:"",orgname:"",vo:"",attachments:[],bodyfile:{},doing:!1}},computed:{},watch:{activeName:function(e){"dwswLog"===e&&this.tabClick(6)}},created:function(){this.$bus.on("btnViewSendlogClick",this.btnViewSendlogClick)},beforeDestroy:function(){this.$bus.off("btnViewSendlogClick",this.btnViewSendlogClick)},mounted:function(){},methods:{tabClick:function(e){var t=this;this.loading=!0,this.dwswLogList=[],this.listdata.forEach((function(n){null!==n.bmswWfInstanceId&&""!==n.bmswWfInstanceId||(6===e?n.dwswOrgCode&&t.dwswLogList.push(n):1===e?0!==Number(n.jhStatus)&&1!==Number(n.jhStatus)||t.dwswLogList.push(n):e===parseInt(n.jhStatus)&&t.dwswLogList.push(n))})),this.$nextTick((function(){t.loading=!1}))},cuibanClick:function(e){var t=this;1===e?(this.cuibantitle=this.$tx("gwgl.gwjh.msgCb","短信催办"),this.$nextTick((function(){t.$bus.emit("opendialog",e)}))):2===e?(this.cuibantitle=this.$tx("gwgl.gwjh.zdyMsgCb","自定义短信催办"),this.$nextTick((function(){t.$bus.emit("opendialog",e)}))):3===e&&(this.cuibantitle=this.$tx("gwgl.gwjh.msgRecord","短信记录"),this.$nextTick((function(){t.$bus.emit("opendialog",e)})))},btnViewSendlogClick:function(e){var t=this;this.attachments=e.attachments,this.bodyfile=e.bodyfile,""===this.wfInstance&&(this.wfInstance=e.wfInstance),""===this.vo&&(this.vo=e.vo);var n=this;if(!n.loading){n.loading=!0,n.dialogFormVisible=!0,""===this.activeName&&(this.activeName="bmswLog");var r=[];r=""!==this.orgname?[{compare:"=",field:"fwId",value:this.vo.id},{compare:"like",field:"dwswOrgName",value:"%"+this.orgname+"%"}]:[{compare:"=",field:"fwId",value:this.vo.id}],this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:r,params:{orderBy:"fwSendTime"},url:"gwjh/sendFile/querydata"}).then((function(e){if("success"===e.code){t.listdata=e.body.listdata;var r=[],a=[];t.swLogCount={statusAll:0,status0:0,status1:0,status2:0,status3:0,status4:0,status5:0,status99:0},t.listdata.forEach((function(e){0===e.jhStatus||"0"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus","发送中"):1===e.jhStatus||"1"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus2","已发送"):2===e.jhStatus||"2"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus3","已到达"):3===e.jhStatus||"3"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus4","已签收"):4===e.jhStatus||"4"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus5","已拒收"):5===e.jhStatus||"5"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus6","已回复"):9===e.jhStatus||"9"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus7","已撤回"):99!==e.jhStatus&&"99"!==e.jhStatus||(e.status=t.$tx("gwgl.gwjh.sendStatus8","发送失败")),null!==e.bmswWfInstanceId&&""!==e.bmswWfInstanceId?(e.swtype="bmsw",null===e.openTime&&(e.openTime=t.$tx("gwgl.gwjh.noOpen","未打开")),r.push(e)):(null===e.openTime&&(e.openTime=t.$tx("gwgl.gwjh.noScan","未签收")),null===e.receiveTime&&(e.receiveTime=t.$tx("gwgl.gwjh.noArrived","未到达")),e.dwswOrgCode&&a.push(e),n.swLogCount["status"+e.jhStatus]+=1,n.swLogCount["statusAll"]+=1)})),t.bmswLogList=t.orgname?t.bmswLogList:r,t.dwswLogList=a}else t.$alert(e.message,t.$tx("common.confirmOperate","确认操作"),{type:"error"});t.$nextTick((function(){n.loading=!1}))}))}},setRowClassName:function(e){var t=e.row;e.rowIndex;if(-1!==t.jhStatus.indexOf("失败"))return"error-row"},viewBmswWorkForm:function(e){window.open("/#/wflow?wfEngineUrl="+encodeURI("gwgl/shouwen")+"&wfInstanceId="+e.bmswWfInstanceId,"_blank")},handleDialogClose:function(){this.dialogFormVisible=!1,this.listdata=[],this.bmswLogList=[],this.dwswLogList=[]},revokeForm:function(e,t){var n=this,r="";r=1===t?e.bmswWfInstanceId:e.dwswWfInstanceId,this.$http({method:"POST",url:"/gwjh/sendFile/withdrawFileByWfInstanceId",params:{wfInstanceId:r}}).then((function(e){"success"===e.code?(n.$message.success(e.message),n.$nextTick((function(){n.$vnode.context.btnViewSendlogClick?n.$vnode.context.btnViewSendlogClick():n.$vnode.context.$vnode.context.btnViewSendlogClick&&n.$vnode.context.$vnode.context.btnViewSendlogClick()}))):n.$message.error(e.message)}))},btnRetryCreateChildWlfowgClick:function(e){var t=this,n={sendlogs:[e]};this.doing=!0,this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:n,url:"gwjh/sendFile/retryCrateChildWflow"}).then((function(e){t.doing=!1,"success"===e.code?(t.$alert(e.message,t.$tx("common.operationTip","操作提示"),{type:"success"}),t.$vnode.context.btnViewSendlogClick?t.$vnode.context.btnViewSendlogClick():t.$vnode.context.$vnode.context.btnViewSendlogClick&&t.$vnode.context.$vnode.context.btnViewSendlogClick()):t.$alert(e.message,t.$tx("common.operationTip","操作提示"),{type:"error"})}))}}},vn=_n,bn=(n(8906),m(vn,cn,un,!1,null,"2133ef15",null)),wn=bn.exports,Mn=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.$tx("gwgl.gwjh.signDocuments"),center:"",width:"900px",visible:e.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.tableIsShow?e._e():t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"qsType",expression:"'qsType'"}]},[e._v("签收方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw15"},[t("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:e.$tx("gwgl.gwjh.signWayPlaceholder","请输入选择状态")},model:{value:e.qsType,callback:function(t){e.qsType=t},expression:"qsType"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"signFor",expression:"'signFor'"}],attrs:{label:"签收"}},[e._v("签收")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"rejection",expression:"'rejection'"}],attrs:{label:"拒收"}},[e._v("拒收")])],1)],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},["拒收"===e.qsType?t("span",{staticClass:"required"},[e._v("*")]):e._e(),e._v(" "+e._s("拒收"===e.qsType?e.$tx("gwgl.gwjh.reason","原因"):e.$tx("common.remark","备注"))+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},["拒收"===e.qsType?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"原因",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{type:"textarea",name:"content",placeholder:e.$tx("gwgl.gwjh.inputReason","请输入原因")},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)]}}],null,!1,1936734633)}):t("el-input",{attrs:{type:"textarea",placeholder:e.$tx("gwgl.common.remarkmptyMessage","请输入备注")},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"telPhone",expression:"'telPhone'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("联系电话")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{attrs:{placeholder:e.$tx("gwgl.gwjh.telPhonePlaceholder","请输入手机号码")},model:{value:e.telPhone,callback:function(t){e.telPhone=t},expression:"telPhone"}})],1)])])])])])]),e.tableIsShow?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listData,border:""}},[t("el-table-column",{attrs:{type:"index",label:e.$tx("fields.index","序号")}}),t("el-table-column",{attrs:{prop:"title",label:e.$tx("gwgl.common.fileTitle","文件标题")}}),t("el-table-column",{attrs:{prop:"message",label:e.$tx("gwgl.gwjh.status","处理状态"),width:"180",align:"center"}})],1)],1):e._e(),e.tableIsShow?e._e():t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确定")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")])],1),e.tableIsShow?t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.confirmReceiptFile}},[e._v("确定")])],1):e._e()],1)},Ln=[],Tn={name:"ReceiptFile",components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogVisible:!1,idAll:[],content:"",qsType:"签收",telPhone:this.$store.getters.loginUser.personMobile,receiptFile:"",busiDataId:"",listData:[],rows:[],tableIsShow:!1}},computed:{},watch:{},created:function(){this.$bus.on("receiptFiles",this.receiptFiles)},beforeDestroy:function(){this.$bus.off("receiptFiles",this.receiptFiles)},mounted:function(){},methods:{confirmReceiptFile:function(){this.dialogVisible=!1,this.$bus.emit("refreshListData")},confirm:function(){var e=this;if("拒收"===this.qsType&&""===this.content)return this.$message.warning(this.$tx("gwgl.gwjh.reflectWarn","请先填写拒收原因!"));this.formValidate((function(){e.receiptFile?e.$http({url:"gwjh/receiveFile/receiptFile",method:"POST",params:{content:e.content,qsType:e.qsType,telPhone:e.telPhone,busiDataId:e.busiDataId}}).then((function(t){if("success"===t.code){e.dialogVisible=!1;var n=window.opener.document.querySelector(".el-icon-refresh");null!==n&&n.parentElement.click(),location.reload()}else e.$message.error(t.message)})).catch((function(e){console.log(e)})):e.$http({url:"gwjh/receiveFile/batchReceiptFile",method:"POST",params:{content:e.content,qsType:e.qsType,telPhone:e.telPhone,wfInstanceIds:e.idAll.join(",")}}).then((function(t){if("success"===t.code){e.tableIsShow=!0;var n=t.body.listdata;n.forEach((function(t){e.rows.forEach((function(e){t.wfInstanceId===e.wfInstanceId&&(t.title=e.title)}))})),console.log(n),e.listData=n}else e.$message.error(t.message)}))}))},receiptFiles:function(e,t){var n=this;t?(this.dialogVisible=!0,this.tableIsShow=!1,this.receiptFile=t,this.busiDataId=e.busiDataId):(this.idAll=[],this.rows=e.rows,this.rows.length>0?(this.dialogVisible=!0,this.tableIsShow=!1,e.rows.forEach((function(e){n.idAll.push(e.wfInstanceId)}))):(this.dialogVisible=!1,this.$message.warning(this.$tx("gwgl.gwjh.fileWarn","请先选择文件!"))))}}},xn=Tn,Dn=(n(6992),m(xn,Mn,Ln,!1,null,"44e57720",null)),kn=Dn.exports,Sn=function(){var e=this,t=e._self._c;return t("div",[e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,visible:e.dialogFormVisible,"destroy-on-close":!0,width:"1465px",title:e.winTitle},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),t("div",{staticClass:"select-main",staticStyle:{display:"flex","flex-direction":"column"}},[t("div",{staticStyle:{display:"flex","flex-direction":"column","justify-content":"space-around"}},[t("el-form",{staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"ztree-container-row1"},[t("el-col",{staticClass:"ztree-container1 listitem",attrs:{span:"24"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"leaders",expression:"'leaders'"}],staticClass:"table_title"},[e._v("领导阅文")]),t("GiantTree",{attrs:{"ztree-id":"corpLeadersTree",nodes:e.corpLeaders,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)])],1)],1),t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"ztree-container-row2"},[t("el-col",{staticClass:"ztree-container1 listitem",attrs:{span:"24"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"receiptDocuments",expression:"'receiptDocuments'"}],staticClass:"table_title",attrs:{moduleCode:"portlet"}},[e._v("部门收文")]),t("GiantTree",{attrs:{"ztree-id":"innerDeptsTree",nodes:e.innerDepts,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)])],1)],1),t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"select-row",staticStyle:{height:"100%"}},[t("el-col",{staticClass:"ztree-container2",staticStyle:{"overflow-y":"inherit",height:"100%"},attrs:{span:"24"}},[t("div",{staticClass:"treeNode"},[t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"externalUnits",expression:"'externalUnits'"}],staticClass:"table_title"},[e._v("外单位收文")]),t("el-input",{staticStyle:{padding:"10px"},attrs:{placeholder:e.$tx("gwgl.gwjh.keyPlaceholder","请输入搜索关键字")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchTreeNode.apply(null,arguments)}},model:{value:e.searchkey,callback:function(t){e.searchkey=t},expression:"searchkey"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchTreeNode},slot:"append"})],1),null!==e.corpOrgs&&0!==e.corpOrgs.length?t("GiantTree",{attrs:{"ztree-id":"corpOrgsTree",nodes:e.corpOrgs,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}}):e._e(),null===e.corpOrgs||0===e.corpOrgs.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.corpOrgs?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1),e.sendToList.corpLeadersTree.length||e.sendToList.corpOrgsTree.length||e.sendToList.innerDeptsTree.length?t("div",{staticClass:"addNewType"},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"add",expression:"'add'"}],staticStyle:{cursor:"pointer"},on:{click:e.addCommonGroupClick}},[e._v("新增>> ")])]):t("div",{staticClass:"addNewType-not"},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"add",expression:"'add'"}],staticStyle:{cursor:"not-allowed"}},[e._v("新增>> ")])]),t("td",{staticStyle:{width:"25%"}},[t("el-row",{staticClass:"select-row"},[t("el-col",{staticClass:"ztree-container4",staticStyle:{"overflow-y":"inherit"},attrs:{span:"24"}},[t("div",{staticClass:"treeNode"},[t("div",{staticClass:"table_title",staticStyle:{position:"relative"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"commonGroup",expression:"'commonGroup'"}]},[e._v("常用组")]),t("div",{staticStyle:{"line-height":"40px",display:"flex","justify-content":"flex-end","font-size":"var(--portalFontSize14)",position:"absolute",top:"0",right:"0"}},[t("div",{class:e.commonCurrentTreeId?"editClass":"noEditClass",on:{click:e.commonEditHandler}},[t("i",{staticClass:"el-icon-edit"})]),t("div",{class:e.commonCurrentTreeId?"editClass":"noEditClass",on:{click:e.commonDeleteHandler}},[t("i",{staticClass:"el-icon-delete"})])])]),null!==e.commomTree&&0!==e.commomTree.length?t("GiantTree",{attrs:{"ztree-id":"commomTreeGroup",nodes:e.commomTree,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onRootOrgTreeNodeCommClick,onCheck:e.onRootOrgTreeNodeCommCheck}}):e._e(),null===e.commomTree||0===e.commomTree.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px",height:"380px"}},[t("span",[e._v(e._s(null===e.commomTree?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1)])])])])])]),e._e()],1),t("div",{staticClass:"fwAttach-container"},[t("div",{staticClass:"file_list"},[void 0!==e.fwBodyfile.id?t("el-checkbox",{attrs:{disabled:"true"},model:{value:e.fwBodyfile.needSend,callback:function(t){e.$set(e.fwBodyfile,"needSend",t)},expression:"fwBodyfile.needSend"}},[e._v(e._s(e.fwBodyfile.fileName))]):e._e()],1),e._l(e.attachments,(function(n){return t("div",{key:n.id,staticClass:"file_list"},[t("el-checkbox",{attrs:{"true-label":!0,"false-label":!1},model:{value:n.needSend,callback:function(t){e.$set(n,"needSend",t)},expression:"attach.needSend"}},[e._v(e._s(n.fileName))]),t("div",{staticStyle:{display:"flex","justify-content":"space-between",padding:"0 15px",width:"200px"}},[t("span",{staticStyle:{color:"#ab9a9a"}},[e._v(e._s(n.fileSize))]),t("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.sendFileRandHandle(n)}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"sendRange",expression:"'sendRange'"}]},[e._v("发送范围:")]),t("span",{staticStyle:{color:"#409eff"}},[e._v(e._s(n.sendCount||0)+"/"+e._s(e.limitCount||0))])])])],1)}))],2)]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{plain:"",icon:"el-icon-close",type:"default",disabled:e.sendDoing},on:{click:e.handleDialogClose}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{icon:"el-icon-check",type:"primary",loading:e.sendDoing},on:{click:e.handleSubmitForm}},[e._v("确定")])],1)]):e._e(),t("el-dialog",{staticClass:"dialogGroupVisible",attrs:{title:e.$tx("gwgl.gwjh.commonGroupType","常用组分类"),visible:e.dialogGroupVisible,width:"600px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogGroupVisible=t}}},[t("el-form",{ref:"commonGroupForm",attrs:{model:e.commonObj}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"typeName",expression:"'typeName'"}]},[e._v("分类名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required|max:25"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"typeName",placeholder:e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称")},model:{value:e.commonObj.typeName,callback:function(t){e.$set(e.commonObj,"typeName",t)},expression:"commonObj.typeName"}})],1)]}}])})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNo",expression:"'orderNo'"}],staticClass:"field"},[e._v("分类排序")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类排序",rules:"required|integer|min:4|max:4"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"orderNo",placeholder:e.$tx("gwgl.gwjh.sortCategoryPlaceholder","请输入分类排序")},model:{value:e.commonObj.orderNo,callback:function(t){e.$set(e.commonObj,"orderNo",t)},expression:"commonObj.orderNo"}})],1)]}}])})],1)])])])])])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.dialogGroupVisible=!1}}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.dialogGroupComfirm}},[e._v("确定")])],1)],1),t("FileLimitDialog",{on:{selectComfirm:e.selectComfirm}})],1)},Yn=[],jn=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"dialogGroupVisible",attrs:{title:e.$tx("gwgl.gwjh.setPermissions","设置附件查阅权限"),visible:e.dialogFileLimitVisible,width:"600px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogFileLimitVisible=t}}},[t("div",{staticClass:"select-main",staticStyle:{display:"flex","flex-direction":"column"}},[t("div",{staticStyle:{display:"flex","flex-direction":"column","justify-content":"space-around"}},[t("el-form",{staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"ztree-container-row2"},[t("el-col",{staticClass:"ztree-container1 listitem",attrs:{span:"24"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"receiptDocuments",expression:"'receiptDocuments'"}],staticClass:"table_title",attrs:{moduleCode:"portlet"}},[e._v("部门收文")]),null!==e.selectInnerDepts&&0!==e.selectInnerDepts.length?t("GiantTree",{attrs:{"ztree-id":"selectInnerDeptsTree",nodes:e.selectInnerDepts,multiple:!0,"show-icon":!1,"show-line":!1},on:{onCreated:e.onSelectTreeCreated,onClick:e.onSelectTreeNodeClick,onCheck:e.onSelectTreeNodeCheck}}):e._e(),null===e.selectInnerDepts||0===e.selectInnerDepts.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.selectInnerDepts?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1),t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"select-row",staticStyle:{height:"100%"}},[t("el-col",{staticClass:"ztree-container2",staticStyle:{"overflow-y":"inherit",height:"100%"},attrs:{span:"24"}},[t("div",{staticClass:"treeNode"},[t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"externalUnits",expression:"'externalUnits'"}],staticClass:"table_title"},[e._v("外单位收文")]),null!==e.selectCorpOrgs&&0!==e.selectCorpOrgs.length?t("GiantTree",{attrs:{"ztree-id":"selectCorpOrgsTree",nodes:e.selectCorpOrgs,multiple:!0,"show-icon":!1,"show-line":!1},on:{onCreated:e.onSelectTreeCreated,onClick:e.onSelectTreeNodeClick,onCheck:e.onSelectTreeNodeCheck}}):e._e(),null===e.selectCorpOrgs||0===e.selectCorpOrgs.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.selectCorpOrgs?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1)])])])])])])],1)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.dialogFileLimitVisible=!1}}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.dialogSelectComfirm}},[e._v("确定")])],1)])],1)},Cn=[],On={components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFileLimitVisible:!1,selectInnerDepts:[],selectCorpOrgs:[],selectInnerDeptsTree:{},selectCorpOrgsTree:{},attachFile:null,selectNodes:[],multiple:!0}},computed:{},watch:{attachFile:{handler:function(e,t){if(e)if(console.log("newVal",e),e.passenger.orgCodes&&e.passenger.orgCodes.length){var n=e.passenger.orgCodes;this.treeDataAdapter("selectCorpOrgsTree",this.selectCorpOrgs,n)}else this.treeDataAdapter("selectCorpOrgsTree",this.selectCorpOrgs,"")}}},created:function(){this.$bus.on("openFileLimitDialog",this.openFileLimitDialog)},beforeDestroy:function(){this.$bus.off("openFileLimitDialog",this.openFileLimitDialog)},mounted:function(){},methods:{treeDataAdapter:function(e,t,n){console.log("code",n);for(var r=0;r<t.length;r++){var a=t[r];"selectCorpOrgsTree"===e&&(n&&-1!==n.indexOf(a.ocode)?(console.log("node",a),a.checked=!0):a.checked=!1)}console.log("treeData",t)},openFileLimitDialog:function(e,t){this.selectInnerDepts=t["innerDeptsTree"],this.selectCorpOrgs=t["corpOrgsTree"],this.attachFile=JSON.parse(JSON.stringify(e)),this.dialogFileLimitVisible=!0},onSelectTreeCreated:function(e,t){this[t]=e},onSelectTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple||this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},onSelectTreeNodeCheck:function(e,t,n){!0===n.canSelect?!0!==this.multiple||this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},dialogSelectComfirm:function(){this.attachFile.passenger.orgCodes=[];var e="{}"===JSON.stringify(this.selectInnerDeptsTree)?[]:this.selectInnerDeptsTree.getCheckedNodes(),t="{}"===JSON.stringify(this.selectInnerDeptsTree)?[]:this.selectCorpOrgsTree.getCheckedNodes(),n=[];e.length&&t.forEach((function(e){n.push(e.ocode)}));var r=[];t.length?t.forEach((function(e){r.push(e.ocode)})):this.attachFile.passenger.orgCodes=[],this.attachFile.passenger.orgCodes=[].concat(r,n),this.attachFile.sendCount=t.length+e.length,this.$emit("selectComfirm",this.attachFile),this.handleClose()},handleClose:function(){this.selectNodes=[],this.selectInnerDepts=[],this.selectCorpOrgs=[],this.attachFile=null,this.dialogFileLimitVisible=!1}}},Nn=On,Pn=(n(6176),m(Nn,jn,Cn,!1,null,"7a7c7352",null)),En=Pn.exports;function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Fn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Hn(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Hn(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function An(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function $n(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){An(o,r,a,i,s,"next",e)}function s(e){An(o,r,a,i,s,"throw",e)}i(void 0)}))}}function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e,t,n){return(t=Wn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){var t=Gn(e,"string");return"symbol"==Hn(t)?t:t+""}function Gn(e,t){if("object"!=Hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Bn={name:"SendDeptFile",directives:{"overflow-tooltip":{bind:function(e,t,n){var r=e.clientWidth<e.scrollWidth;e.dataset.overflow=r},update:function(e,t,n){var r=e.clientWidth<e.scrollWidth;e.dataset.overflow=r}}},components:{FileLimitDialog:En},props:{corpLeaders:{type:Array,default:function(){return{}}},innerDepts:{type:Array,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},busiData:{type:Object,default:function(){return{}}},fwBodyfile:{type:Object,default:function(){return{}}},corpOrgs:{type:Array,default:function(){return{}}},commomTree:{type:Array,default:function(){return{}}},fwAttachs:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!0,dialogGroupVisible:!1,loading:!1,winTitle:this.$tx("gwgl.gwjh.winTitle2","发送文件"),corpLeadersTree:{},innerDeptsTree:{},attachments:[],multiple:!0,sendToList:{corpLeadersTree:[],innerDeptsTree:[],corpOrgsTree:[],commomTreeGroup:[]},sendDoing:!1,areaNodeTreeData:[],rootOrgTreeData:[],rootOrgTreeDataBak:[],corpOrgschushi:[],searchkey:"",commonObj:{},commonCurrentTreeId:"",commonCurrentTreeArr:[],handlerTreeType:!1,showWorkMore:!1,showMoreNum:0,changeType:"",allSendToList:[],limitCount:0}},computed:zn({},re(["loginUser"])),watch:{fwBodyfile:function(){void 0!==this.fwBodyfile.id&&(this.loading=!1)},fwAttachs:function(){this.attachments=JSON.parse(JSON.stringify(this.fwAttachs))},corpLeaders:function(){this.treeDataAdapter("corpLeadersTree",this.corpLeaders)},innerDepts:function(){this.treeDataAdapter("innerDeptsTree",this.innerDepts)},corpOrgs:function(){this.treeDataAdapter("corpOrgsTree",this.corpOrgs),this.rootOrgTreeDataBak=JSON.parse(JSON.stringify(this.corpOrgs))},commomTree:function(){this.treeDataAdapter("commomTreeGroup",this.commomTree)},"sendToList.commomTreeGroup":{handler:function(e,t){}},sendToList:{handler:function(e,t){var n=this,r=e.innerDeptsTree,a=e.corpOrgsTree;if(r.length){var o=[];a.forEach((function(e){o.push(e.ocode)}))}if(a.length){var i=[];a.forEach((function(e){i.push(e.ocode)}))}this.limitCount=r.length+a.length,this.fwAttachs.forEach((function(e){e.sendCount=n.limitCount,e.passenger.orgCodes=[].concat(i,o)})),this.attachments=JSON.parse(JSON.stringify(this.fwAttachs)),this.$forceUpdate()},deep:!0}},created:function(){var e=this;setTimeout((function(){e.corpOrgschushi=JSON.parse(JSON.stringify(e.corpOrgs))}),1e3)},beforeDestroy:function(){},mounted:function(){this.loading=!1},methods:{selectComfirm:function(e){console.log("list ====",e),console.log("this.attachments ====",this.attachments),this.attachments.forEach((function(t){t.id===e.id&&(t.sendCount=e.sendCount,t.passenger.orgCodes=e.passenger.orgCodes)}))},isShowToltip:function(e,t,n){var r=this.textRange(e.target);n.isShow=r,this.$forceUpdate()},textRange:function(e){var t=e,n=t.getBoundingClientRect().width,r=document.createRange();r.setStart(t,0),r.setEnd(t,t.childNodes.length);var a=r.getBoundingClientRect().width;return a>n},searchTreeNode:function(){var e=this;console.log("searchkey",this.searchkey);var t=JSON.parse(JSON.stringify(this.rootOrgTreeDataBak)),n={};this.sendToList["corpOrgsTree"].forEach((function(e){n[e.id]=e.id})),this.corpOrgs=[],""===this.searchkey&&(this.corpOrgs=this.corpOrgschushi),t.forEach((function(t){-1!==t.fullName.indexOf(e.searchkey)&&""!==e.searchkey&&(void 0!==n[t.id]&&(t.checked=!0),e.corpOrgs.push(t))}))},onTreeCreated:function(e,t){this[t]=e},treeDataAdapter:function(e,t){this.sendToList[e]=[];for(var n=0;n<t.length;n++){var r=t[n];if("innerDeptsTree"===e){var a="2,3".split(",");r.nodeTreeType="innerDeptsTree",r.pId=r.parentId,r.title=r.orgFullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),r.orgLevel>a[a.length-1]||1!==r.isRealOrg?t.splice(n--,1):-1!==a.join(",").indexOf(r.orgLevel)&&(r.canSelect=!0)}else if("corpLeadersTree"===e)r.personId?(r.nodeTreeType="corpLeadersTree",r.pId=r.orgId,r.title=r.positionName+"/"+r.name,r.canSelect=!0):(r.nodeTreeType="corpLeadersTree",r.pId=r.parentID,r.name=r.nName,r.title=r.fullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),0===n&&(r.open=!0),r.canSelect=!1);else if("corpOrgsTree"===e){var o="1,2,3,4".split(",");r.nodeTreeType="corpOrgsTree",r.pId=r.parentId,r.name=r.nName,r.title=r.name,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),r.olevel<1||-1!==o.join(",").indexOf(r.olevel)&&(r.canSelect=!0)}else"commomTreeGroup"===e&&(r.nodeTreeType=r.type,r.pId=r.parentId?r.parentId:"0",r.title=r.commonName?r.commonName:r.typeName,r.name=r.commonName?r.commonName:r.typeName,r.parentId&&(r.canSelect=!0))}return t},onTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},onTreeNodeCheck:function(e,t,n){this.sendToList[t]=this[t].getCheckedNodes();for(var r=0;r<this.sendToList[t].length;r++)this.sendToList[t][r].canSelect||this.sendToList[t].splice(r--,1)},onRootOrgTreeNodeCommClick:function(e,t,n){n.canSelect||(this.commonCurrentTreeId=n.id,this.commonCurrentTreeArr=n.children),!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},onRootOrgTreeNodeCommCheck:function(e,t,n){this.sendToList[t]=this[t].getCheckedNodes();for(var r=0;r<this.sendToList[t].length;r++)this.sendToList[t][r].canSelect||this.sendToList[t].splice(r--,1);this.sendToArrayList(n)},sendToArrayList:function(e){var t=this,n=e.checked,r=[].concat(this.sendToList.corpLeadersTree,this.sendToList.corpOrgsTree,this.sendToList.innerDeptsTree);if(n)if(e.children){var a=e.children.filter((function(e){return r.every((function(t){return t.id!==e.commonId}))}));a.forEach((function(e){var n=t[e.nodeTreeType].getNodeByParam("id",e.commonId,null);t.sendToList[e.nodeTreeType].push(n),t[e.nodeTreeType].checkNode(n,null,null,!0)}))}else{var o=this[e.nodeTreeType].getNodeByParam("id",e.commonId,null);this.sendToList[e.nodeTreeType].push(o),this[e.nodeTreeType].checkNode(o,null,null,!0)}else if(e.children){var i=e.children.filter((function(e){return r.some((function(t){return t.id===e.commonId}))}));i.forEach((function(e){var n=t[e.nodeTreeType].getNodeByParam("id",e.commonId,null);t.sendToList[e.nodeTreeType]=t.sendToList[e.nodeTreeType].filter((function(e){return e.id!==n.id})),t[e.nodeTreeType].checkNode(n,!1,!0,!1)}))}else{var s=this[e.nodeTreeType].getNodeByParam("id",e.commonId,null);this.sendToList[e.nodeTreeType]=this.sendToList[e.nodeTreeType].filter((function(e){return e.id!==s.id})),this[e.nodeTreeType].checkNode(s,!1,!0,!1)}},handleSelectAll:function(e,t){if(this[e].checkAllNodes(t),t){this.sendToList[e]=this[e].getCheckedNodes();for(var n=0;n<this.sendToList[e].length;n++)this.sendToList[e][n].canSelect||this.sendToList[e].splice(n--,1)}else this.sendToList[e]=[]},removeSelectedNode:function(e,t){var n=this[t].getNodeByParam("id",this.sendToList[t][e].id,null);console.log("node",n),null!=n&&this[t].checkNode(n,!1,!0,!1),this.sendToList[t].splice(e,1);var r=this["commomTreeGroup"].getNodeByParam("commonId",n.id,null);null!=r&&(console.log("node1",r),this["commomTreeGroup"].checkNode(r,!1,!0,!1))},handleSubmitForm:function(){var e=this,t=this;this.sendToList["corpLeadersTree"]&&0!==this.sendToList["corpLeadersTree"].length||this.sendToList["innerDeptsTree"]&&0!==this.sendToList["innerDeptsTree"].length||this.sendToList["corpOrgsTree"]&&0!==this.sendToList["corpOrgsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then($n(Fn().mark((function n(){var r,a;return Fn().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=t.fwBodyfile&&r.push(t.fwBodyfile),t.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),console.log(t.sendToList,"_this.sendToList"),console.log(r,"attachs"),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:a,fwOrgId:t.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(t.busiData),corpLeaders:JSON.stringify(t.sendToList["corpLeadersTree"]),innerDepts:JSON.stringify(t.sendToList["innerDeptsTree"]),corpOrgs:JSON.stringify(t.sendToList["corpOrgsTree"]),fwAttachs:JSON.stringify(r)}),url:"/gwjh/sendFile/startSendFile"}).then((function(n){if("success"===n.code){var r=e.$vnode.context.$vnode.context;t.busiData.flBeenSend=1,t.busiData.flSenderAccount=e.loginUser.personAccount;var a=!1,o="";r.commandBar.forEach((function(e){"btnViewSendlogClick"!==e.btnCode&&"发送跟踪"!==e.btnName||(a=!0),""===o&&e.btnName&&-1!==e.btnName.indexOf("发送")&&(null!=e.btnGroupId?o=e.btnGroupId:2===e.btnType&&(o=e.id))})),a||""===o||r.commandBar.push({btnAlign:1,btnCode:"btnViewSendlogClick",btnGroupId:o,btnIcon:null,btnClick:function(){e.$bus.emit("btnViewSendlogClick",r)},btnName:"发送跟踪",btnOrderNo:"70",btnShow:1,btnType:"3",visitType:0}),e.$message({type:"success",message:e.$tx("gwgl.gwjh.sendSuccess","发送成功"),showClose:!0}),e.sendDoing=!1}else e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"}),e.sendDoing=!1;t.handleDialogClose()}));case 8:case"end":return n.stop()}}),n)})))):this.$alert(this.$tx("gwgl.messages.toListAlert","请选择阅文领导、收文部门、单位发文。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handleSubmitForm1:function(){var e=this,t=this;this.sendToList["corpLeadersTree"]&&0!==this.sendToList["corpLeadersTree"].length||this.sendToList["innerDeptsTree"]&&0!==this.sendToList["innerDeptsTree"].length||this.sendToList["corpOrgsTree"]&&0!==this.sendToList["corpOrgsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then($n(Fn().mark((function n(){var r,a,o,i,s;return Fn().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=t.fwBodyfile&&r.push(t.fwBodyfile),t.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),o=[],(e.sendToList["corpLeadersTree"].length||e.sendToList["innerDeptsTree"].length)&&(i=t.handlerStartSendDeptFile(t,a,r),o.push(i)),e.sendToList["corpOrgsTree"].length&&(s=t.handlerStartSendCommonCorpFile(a,t.sendToList["corpOrgsTree"],r),o.push(s)),Promise.all(o).then((function(e){t.sendDoing=!1,t.$message({type:"success",message:t.$tx("gwgl.gwjh.sendSuccess","发送成功"),showClose:!0}),t.handleDialogClose(),setTimeout((function(){location.reload()}),1e3)})).catch((function(n){e.sendDoing=!1,t.$alert(n.message,t.$tx("common.confirmOperate","确认操作"),{type:"error",dangerouslyUseHTMLString:!0})}));case 9:case"end":return n.stop()}}),n)})))).catch((function(e){"cancel"!==e&&console.error(e)})):this.$alert(this.$tx("gwgl.messages.toListAlert","请选择阅文领导、收文部门、单位发文。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handlerStartSendDeptFile:function(e,t,n){var r=this,a=new Promise((function(a,o){r.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:t,fwOrgId:e.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(e.busiData),corpLeaders:JSON.stringify(e.sendToList["corpLeadersTree"]),innerDepts:JSON.stringify(e.sendToList["innerDeptsTree"]),fwAttachs:JSON.stringify(n)}),url:"gwjh/sendFile/startSendDeptFile"}).then((function(e){"success"===e.code?a(e):o(e)}))}));return a},handlerStartSendCommonCorpFile:function(e,t,n){var r=this;t.forEach((function(e){e.level=e.orgLevel}));var a=new Promise((function(a,o){var i=r;r.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:e,fwOrgId:i.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(i.busiData),orgOrganizationList:JSON.stringify(t),fwAttachs:JSON.stringify(n)}),url:"/gwjh/sendFile/startSendCorpFile"}).then((function(e){"success"===e.code?a(e):o(e)}))}));return a},handleEndWfInstance:function(){var e=this;this.$http({contentType:"application/x-www-form-urlencoded",url:"/gwjh/sendFile/endFawenWfInstance",method:"POST",params:{busiDataId:e.wfInstance.busiDataId}}).then((function(t){"success"===t.code?(e.handleDialogClose(),e.$message({type:t.code,message:e.$tx("gwgl.gwjh.sendSuccess","发送成功"),duration:2500,showClose:!0,onClose:function(){window.close()}})):e.$alert(t.message,e.$tx("common.confirmOperate","确认操作"),{type:"error"})}))},sendFileRandHandle:function(e){this.limitCount<=0?this.$message({message:this.$tx("gwgl.messages.fileRandMsg","请选择部门或单位。"),type:"warning"}):this.$bus.emit("openFileLimitDialog",e,this.sendToList)},addCommonGroupClick:function(){if(this.sendToList.corpLeadersTree.length||this.sendToList.corpOrgsTree.length||this.sendToList.innerDeptsTree.length){var e=this;e.handlerTreeType=!1,this.addNewCommon().then((function(t){if("success"===t.code){if(e.commonObj=t.body.vo,e.commonObj.passenger.commonGroupInfoList=[],!e.commonObj.createrId){e.commonObj.createrId=e.loginUser.personId,e.commonObj.creater=e.loginUser.personName,e.commonObj.status=1;var n=[].concat(e.sendToList.corpLeadersTree,e.sendToList.corpOrgsTree,e.sendToList.innerDeptsTree),r=[];n.forEach((function(t){var n={};n.commonName=t.fullName||t.commonName||t.name,n.commonId=t.commonId||t.id||t.fullID,n.parentId=e.commonObj.id,n.createrId=e.loginUser.personId,n.creater=e.loginUser.personName,n.type=t.commonId?t.type:t.nodeTreeType,r.push(n)})),e.commonObj.passenger.commonGroupInfoList=r}e.dialogGroupVisible=!0}}))}else this.$message({message:this.$tx("gwgl.messages.addCommonGroupClickMsg","请选择需要设未常用组的数据。"),type:"warning"})},dialogGroupComfirm:function(){var e=this,t=this;this.$refs.commonGroupForm.formValidate((function(){var n="insert";n=e.handlerTreeType?"update":"insert",e.confirmGroup(n).then((function(n){"success"===n.code&&(t.dialogGroupVisible=!1,t.commonObj={},e.$message.success(n.message),t.getSendCommmoDataList())}))}),null,1)},addNewCommon:function(){var e=this;return new Promise((function(t,n){e.$http({contentType:"application/x-www-form-urlencoded",url:"/gwgl/commonGroup/addNew",method:"POST"}).then((function(e){t(e)}))}))},confirmGroup:function(e){var t=this,n=this;return new Promise((function(r,a){t.$http({contentType:"application/x-www-form-urlencoded",url:"insert"===e?"/gwgl/commonGroup/insert":"/gwgl/commonGroup/update",method:"insert"===e?"POST":"PUT",data:n.commonObj}).then((function(e){r(e)}))}))},commonEditHandler:function(){var e=this;this.commonCurrentTreeId&&this.$http({contentType:"application/x-www-form-urlencoded",url:"/gwgl/commonGroup/getById",method:"GET",params:{id:this.commonCurrentTreeId}}).then((function(t){"success"===t.code&&(e.commonObj=t.body.vo,e.handlerTreeType=!0,e.dialogGroupVisible=!0)}))},commonDeleteHandler:function(){var e=this;this.commonCurrentTreeId&&e.commonCurrentTreeId&&this.$confirm(e.$tx("gwgl.messages.delGroupConfirm","确认删除删除该常用组?"),e.$tx("gwgl.common.operatedTip"),{confirmButtonText:e.$tx("pageBtns.sure","确 定"),cancelButtonText:e.$tx("pageBtns.cancel","取 消"),type:"warning"}).then((function(){e.$http({contentType:"application/x-www-form-urlencoded",url:"/gwgl/commonGroup/delete",method:"DELETE",params:{ids:e.commonCurrentTreeId}}).then((function(t){"success"===t.code&&(e.$message({message:t.message,type:"success"}),e.getSendCommmoDataList())}))})).catch((function(){}))},getSendCommmoDataList:function(e){var t=this;t.commomTree=[],this.$parent.getCommonGroup().then((function(e){var n=e.body.listdata;n.length>0?(n.forEach((function(e){t.commomTree.push(e);var r=e.passenger.commonGroupInfoList;n.length>0&&(t.commomTree=t.commomTree.concat(r))})),t.commomTree.forEach((function(e){e.orderNo=e.orderNo?e.orderNo:9999}))):t.commomTree=[]}))},handleDialogClose:function(){this.$vnode.context.dialogFormVisible=!1,this.$vnode.context.fwBodyfile={},this.$vnode.context.fwAttachs=[]}}},Un=Bn,qn=(n(8275),m(Un,Sn,Yn,!1,null,"6ab65eb9",null)),Vn=qn.exports;function Jn(e){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(e)}function Kn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Jn(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Jn(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Qn(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Zn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Qn(o,r,a,i,s,"next",e)}function s(e){Qn(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e,t,n){return(t=nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e){var t=rr(e,"string");return"symbol"==Jn(t)?t:t+""}function rr(e,t){if("object"!=Jn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ar={name:"GwjhFile",components:{SendDeptFile:qt,SendCorpFile:dn,SendlogList:wn,ReceiptFile:kn,SendGroupFile:Vn},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!1,sendType:"",sendArea:"",wfInstance:{},busiData:{},fwAttachs:[],fwBodyfile:{},corpLeaders:[],innerDepts:[],treeNodes:[],commomTree:[],corpOrgs:null,gwjhOrgs:null}},computed:er({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("btnSendFileClick",this.btnSendFileClick)},beforeDestroy:function(){this.$bus.off("btnSendFileClick",this.btnSendFileClick)},mounted:function(){},methods:{btnSendFileClick:function(e,t,n){var r=this;if(!0!==this.dialogFormVisible){new Promise((function(t,n){1===e.vo.flBeenSend?r.$confirm(r.$tx("gwgl.messages.continueConfirm","文件已发送,是否继续本次发送?"),r.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(Zn(Kn().mark((function e(){return Kn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t(!0);case 1:case"end":return e.stop()}}),e)})))).catch((function(e){"cancel"!==e&&console.error(e),n(e)})):t(!0)})).then((function(a){a&&e.formValidate((function(){if(r.wfInstance=e.wfInstance,r.busiData=e.vo,null!=e.bodyfile&&void 0!==e.bodyfile.id){for(var a=0;a<e.attachments.length;a++){var o=e.attachments[a];if("ATTACH"===o.fileType&&void 0===o.id)return void e.$alert(r.$tx("gwgl.messages.noSaveAlert","公文附件有更新,请先执行“保存”操作后再发送!"),r.$tx("common.operationTip","操作提示"),{type:"warning"})}r.sendType=t,r.sendArea=n,r.dialogFormVisible=!0,r.$nextTick((function(){"all"===r.sendType?(r.getFwBodyfile(e),r.getSendFileInfoAll(e)):(r.getFwBodyfile(e),r.getSendFileInfo(e))}))}else e.$alert(r.$tx("gwgl.messages.noZwFile","没有正文文件,不能发送。"),r.$tx("common.operationTip","操作提示"),{type:"warning"})}))}))}},getFwBodyfile:function(e){var t=this;if(e.attachments.forEach((function(e){"ATTACH"===e.fileType&&void 0!==e.id&&(e.needSend=!0,e.sendCount=0,t.fwAttachs.push(JSON.parse(JSON.stringify(e))))})),null!=e.bodyfile){if(".pdf"===e.bodyfile.fileName.substring(e.bodyfile.fileName.lastIndexOf(".")).toLowerCase())this.fwBodyfile=e.bodyfile;else for(var n=e.bodyfile.originalName.substring(0,e.bodyfile.originalName.lastIndexOf(".")),r=0;r<e.attachments.length;r++)if(e.attachments[r].id!==e.bodyfile.id&&e.attachments[r].originalName===n+".pdf"){this.fwBodyfile=e.attachments[r];break}null!=this.fwBodyfile&&void 0!==this.fwBodyfile.id||(this.fwBodyfile=e.bodyfile),this.fwBodyfile.needSend=!0,console.log("fwBodyfile",this.fwBodyfile)}},getSendFileInfo:function(e){var t=this;e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{sendType:"dept",fwOrgId:this.wfInstance.createOrgId.split("-")[0],sendArea:this.sendArea,busiType:e.wfInstance.module},url:"gwjh/sendFile/getSendFileInfo"}).then((function(n){"success"===n.code?(t.corpLeaders=n.body.corpLeaders,t.innerDepts=n.body.innerDepts,t.gwjhOrgs=n.body.gwjhOrgs,t.treeNodes=n.body.treeNodes,t.gwjhOrgs&&(t.gwjhOrgs=t.gwjhOrgs.filter((function(e){if(!e.ocode||e.ocode&&"plat"!==e.ocode)return!0})))):e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"})})),e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{sendType:"corp",fwOrgId:this.wfInstance.createOrgId.split("-")[0],sendArea:this.sendArea,busiType:e.wfInstance.module},url:"gwjh/sendFile/getSendFileInfo"}).then((function(n){"success"===n.code?(t.corpOrgs=n.body.corpOrgs,t.corpOrgs&&(t.corpOrgs=t.corpOrgs.filter((function(e){if(!e.ocode||e.ocode&&"plat"!==e.ocode)return!0})))):e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},getSendFileInfoAll:function(e){var t=this;t.corpLeaders=[],t.innerDepts=[],t.corpOrgs=[],t.commomTree=[],this.getCommonGroup().then((function(n){"success"===n.code?e.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"gwjh/sendFile/getSendFileInfo",params:{sendType:"deptAndCorp",fwOrgId:t.wfInstance.createOrgId.split("-")[0],busiType:"fawen",sendArea:t.sendArea}}).then((function(r){if("success"===r.code){t.corpLeaders=r.body.corpLeaders||[],t.innerDepts=r.body.innerDepts||[],t.corpOrgs=r.body.corpOrgs||[],t.corpOrgs.length&&t.corpOrgs.forEach((function(e){e.fullID.indexOf("-")?e.id=e.fullID.split("-")[e.fullID.split("-").length-1]:e.id=e.fullID,e.parentId=e.parentID?e.parentID:null}));var a=n.body.listdata;a.length>0?(a.forEach((function(e){t.commomTree.push(e);var n=e.passenger.commonGroupInfoList;a.length>0&&(t.commomTree=t.commomTree.concat(n))})),t.commomTree.forEach((function(e){e.orderNo=e.orderNo?e.orderNo:9999}))):t.commomTree=[]}else e.$alert(r.message,e.$tx("common.operationTip","操作提示"),{type:"error"})})):e.$alert(res.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},getCommonGroup:function(){var e=this;return new Promise((function(t,n){e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"gwgl/commonGroup/querydata",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:e.loginUser.orgCode},{compare:"=",field:"createrId",merge:!0,value:e.loginUser.personId},{compare:"=",field:"status",merge:!0,value:1}]}).then((function(e){t(e)}))}))}}},or=ar,ir=m(or,Ct,Ot,!1,null,"242a0972",null),sr=ir.exports,lr=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1),t("RightPanel",[t("orgOrganization",{attrs:{vo:e.orgOrganization,"z-tree":e.zTree,"is-click":e.isClick,"node-name":e.nodeName}})],1)],1)},dr=[],cr=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[null!==e.vo&&e.isClick&&0!==e.vo.gwjhLevel?t("orgOrganizationForm",{ref:"orgOrganizationForm",attrs:{vo:e.vo,"can-edit":0}}):e._e(),null!==e.vo?t("div",{attrs:{slot:"footer"},slot:"footer"},[""!==e.nodeName&&e.vo&&e.vo.gwjhLevel<2?t("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addObject}},[e._v(e._s(0===e.vo.gwjhLevel?e.$tx("gwgl.pageBtns.addCommonGroup","添加常用组"):e.$tx("gwgl.pageBtns.addChildCommonGroup","添加子常用组")))]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"changeCommonGroup",expression:"'changeCommonGroup'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:function(t){return e.editObject(e.vo)}}},[e._v("修改常用组")]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"delCommonGroup",expression:"'delCommonGroup'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除常用组")]):e._e()],1):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"noAddManageCommonGroup",expression:"'noAddManageCommonGroup'"}],attrs:{slot:"footer",moduleCode:"gwjh"},slot:"footer"},[e._v("暂未添加管理常用组")])],1),t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("orgOrganizationForm",{ref:"voForm",attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":e.moduleInfo}})]}}])})],1)},ur=[],pr=function(){var e=this,t=e._self._c;return t("el-form",{ref:"commonObj",attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"typeName",expression:"'typeName'"}]},[e._v("分类名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required|max:25"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"typeName",placeholder:e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称")},model:{value:e.vo.typeName,callback:function(t){e.$set(e.vo,"typeName",t)},expression:"vo.typeName"}})],1)]}}],null,!1,2783147071)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.typeName)}}):e._e()],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"leaders",expression:"'leaders'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("领导阅文")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("form-item",{ref:"leaders",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"input",emptyMessage:e.$tx("gwgl.gwjh.leadershipReadingEmptyMessage","请选择领导阅文"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"",propName:"leaders",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"vo.leaders",option:[],dialog:1,dialogType:"staff",dialogOrgLevel:"",dialogSubOrgName:"市局领导",dialogShowemail:!1,dialogMultiple:!0,dialogRootOrgCode:e.orgCode},vo:e.corpLeadersTreeObj,"can-edit":e.canEdit}}):e._e(),1!==e.canEdit?t("div",e._l(e.corpLeadersTree,(function(n,r){return t("span",{key:n.id},[e._v(" "+e._s(n.commonName)+" "),r!==e.corpLeadersTree.length-1?t("span",[e._v("、")]):e._e()])})),0):e._e()],1)]),t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"depts",expression:"'depts'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("部门收文")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{multiple:"true",placeholder:e.$tx("gwgl.gwjh.deptsPlaceholder","部门收文"),name:"depts"},model:{value:e.corpLeadersTreeObj.depts,callback:function(t){e.$set(e.corpLeadersTreeObj,"depts",t)},expression:"corpLeadersTreeObj.depts"}}):e._e(),1!==e.canEdit?t("div",e._l(e.innerDeptsTree,(function(n,r){return t("span",{key:n.id},[e._v(" "+e._s(n.commonName)+" "),r!==e.innerDeptsTree.length-1?t("span",[e._v("、")]):e._e()])})),0):e._e()],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fenju",expression:"'fenju'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("单位收文")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"allOrg",expression:"'allOrg'"}],attrs:{"value-ids-field":"corpLeadersTreeObj.fenjuId","old-value":e.corpLeadersTreeObj.fenjuId,multiple:"true",placeholder:e.$tx("gwgl.gwjh.subReceivedDocumentsPlaceholder"),name:"fenju"},model:{value:e.corpLeadersTreeObj.fenju,callback:function(t){e.$set(e.corpLeadersTreeObj,"fenju",t)},expression:"corpLeadersTreeObj.fenju"}}):e._e(),1!==e.canEdit?t("div",e._l(e.corpOrgsTree,(function(n,r){return t("span",{key:n.id},[e._v(" "+e._s(n.commonName)+" "),r!==e.corpOrgsTree.length-1?t("span",[e._v("、")]):e._e()])})),0):e._e()],1)]),t("tr",[t("td",{ref:"tdlbl_备注",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"remark",expression:"'remark'"}],staticClass:"field"},[e._v("备注")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"remark",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:e.$tx("gwgl.common.remarkmptyMessage","请输入备注"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"备注",propName:"remark",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.remark",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNo",expression:"'orderNo'"}],staticClass:"field"},[e._v("分类排序")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类排序",rules:"required|integer|max:4"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"orderNo",placeholder:e.$tx("gwgl.gwjh.sortCategoryPlaceholder","请输入分类排序")},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],1)]}}],null,!1,3392390922)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.orderNo)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}],staticClass:"field"},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"显示名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"status",placeholder:e.$tx("gwgl.common.statusPlaceholder","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(n,r){return t("el-radio",{key:r,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,474603353)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(1===e.vo.status?e.$tx("common.enable","启用"):e.$tx("common.disable","禁用"))}}):e._e()],1)])])])])])])},mr=[],fr=n(4692),hr=n.n(fr);function gr(e){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vr(e,t,n){return(t=br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e){var t=wr(e,"string");return"symbol"==gr(t)?t:t+""}function wr(e,t){if("object"!=gr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}window.jQuery||(window.jQuery=hr());var Mr={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",statusOptions:[{value:1,text:this.$tx("common.enable","启用")},{value:2,text:this.$tx("common.disable","禁用")}],corpLeadersTree:[],innerDeptsTree:[],corpOrgsTree:[],corpLeadersTreeObj:{typeName:"",leaders:"",depts:"",fenju:"",remark:"",orderNo:"",status:""}}},computed:_r({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("treeNodeDataList",this.getTreeNode)},beforeDestroy:function(){this.$bus.off("treeNodeDataList",this.getTreeNode)},mounted:function(){this.getTreeNode(this.vo)},methods:{getTreeNode:function(e){var t=this;console.log(e,"val"),this.corpLeadersTree=[],this.innerDeptsTree=[],this.corpOrgsTree=[],e.passenger.commonGroupInfoList.forEach((function(e){"corpLeadersTree"===e.type?t.corpLeadersTree.push(e):"innerDeptsTree"===e.type?t.innerDeptsTree.push(e):"corpOrgsTree"===e.type&&t.corpOrgsTree.push(e)})),this.corpLeadersTreeObj.typeName=this.vo.typeName,this.corpLeadersTreeObj.remark=this.vo.remark,this.corpLeadersTreeObj.orderNo=this.vo.orderNo,this.corpLeadersTreeObj.status=this.vo.status;var n="";this.corpLeadersTree.forEach((function(e){n+=e.commonName+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"leaders",n);var r="";this.innerDeptsTree.forEach((function(e){r+=e.commonName+"、"})),r=r.substring(0,r.length-1),this.$set(this.corpLeadersTreeObj,"depts",r);var a="",o="";this.corpOrgsTree.forEach((function(e){a+=e.commonName+"、",o+=e.commonId+","})),a=a.substring(0,a.length-1),this.$set(this.corpLeadersTreeObj,"fenju",a),this.$set(this.corpLeadersTreeObj,"fenjuId",o),console.log(this.corpLeadersTreeObj,"this.corpLeadersTreeObj")},onSelectSuborgCompleted:function(e,t){if("depts"===t.name){e.forEach((function(e){e.nodeTreeType="innerDeptsTree"})),this.innerDeptsTree=e;var n="";this.innerDeptsTree.forEach((function(e){n+=e.name+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"depts",n)}},onSelectAllOrgCompleted:function(e,t){if("fenju"===t.name){e.forEach((function(e){e.nodeTreeType="corpOrgsTree"})),this.corpOrgsTree=e;var n="";this.corpOrgsTree.forEach((function(e){n+=e.fullName+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"fenju",n)}},onSelectStaffCompleted:function(e,t){if(console.log(t,"attr"),"leaders"===t.name){e.forEach((function(e){e.nodeTreeType="corpLeadersTree"})),this.corpLeadersTree=e;var n="";this.corpLeadersTree.forEach((function(e){n+=e.name+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"leaders",n)}},onSelectTreeDataLoaded:function(e,t){var n=this;return console.log(t,"attr","treedata",e),"fenju"===t.name&&(e=e.filter((function(e){return e.ocode!==n.loginUser.orgCode}))),e}}},Lr=Mr,Tr=(n(9651),m(Lr,pr,mr,!1,null,"5f22d162",null)),xr=Tr.exports;function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){Yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yr(e,t,n){return(t=jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e){var t=Cr(e,"string");return"symbol"==Dr(t)?t:t+""}function Cr(e,t){if("object"!=Dr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Or={components:{orgOrganizationForm:xr},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}}},data:function(){return{title:this.$tx("gwgl.gwjh.commonGroupSettingTitle"),moduleInfo:{moduleCode:"Module",addNewUrl:"gwgl/commonGroup/addNew",insertUrl:"gwgl/commonGroup/insert",getByIdUrl:"gwgl/commonGroup/getById",updateUrl:"gwgl/commonGroup/update",delUrl:"gwgl/commonGroup/delete",winWidth:900,winHeight:600},opearType:""}},computed:Sr({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu),console.log(72,this.vo)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add";var e=this.moduleInfo.addNewUrl.split("?")[0];e+="?parentId=",0===this.vo.gwjhLevel?(this.moduleInfo.addNewUrl=e,this.moduleInfo.orgLevel=1,this.moduleInfo.parentId="0"):(this.moduleInfo.addNewUrl=e+this.vo.id,this.moduleInfo.orgLevel=2,this.moduleInfo.parentId=this.vo.id,this.moduleInfo.creatorOrgName=this.vo.name,this.moduleInfo.orgCode=this.vo.orgCode),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editObject:function(e){console.log(97,e),this.opearType="edit",this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(e){var t=this;console.log(e,"node"),console.log(this.zTree,"this.zTree"),this.opearType="delete";var n=this.$tx("gwgl.messages.confirmDel",{val:e.typeName},"确认删除“val”吗?");e.children&&e.children.length>0&&(n=this.$tx("gwgl.messages.confirmDel2",{val:e.typeName},"确认删除“{val}”及下级全部类型吗?")),this.$confirm(n,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(e){"success"===e.code?(t.$bus.emit("refreshTreeData",null),t.$message.success(e.message)):t.$alert(e.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(e,t,n){n.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,n){var r=this;t.createrId=this.loginUser.personId,t.creater=this.loginUser.personName;var a=this.$refs.voForm.corpLeadersTree||[],o=this.$refs.voForm.corpOrgsTree||[],i=this.$refs.voForm.innerDeptsTree,s=[];s=s.concat(a,o,i);var l=[];s.forEach((function(e){var n={};n.commonName=e.fullName||e.commonName||e.name,n.commonId=e.commonId||e.id||e.fullID,n.parentId=t.id,n.createrId=r.loginUser.personId,n.creater=r.loginUser.personName,n.type=e.commonId?e.type:e.nodeTreeType,l.push(n)})),t.passenger.commonGroupInfoList=l,n.resolve(!0)},onBasicFormSubmited:function(e,t){this.vo.typeName=t.typeName,this.$bus.emit("refreshTreeData",null),this.$bus.emit("updateVo",t),this.vo.passenger=t.passenger,this.$refs.orgOrganizationForm&&this.$refs.orgOrganizationForm.getTreeNode(t)}}},Nr=Or,Pr=m(Nr,cr,ur,!1,null,"05324ec5",null),Er=Pr.exports;function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach((function(t){$r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $r(e,t,n){return(t=Ir(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(e){var t=zr(e,"string");return"symbol"==Hr(t)?t:t+""}function zr(e,t){if("object"!=Hr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Rr={components:{orgOrganization:Er},props:{},data:function(){return{moduleInfo:{getByIdUrl:"gwgl/commonGroup/getById",loadTreeNodeUrl:"gwgl/commonGroup/querydata"},root:null,orgOrganization:{passenger:{commonGroupInfoList:[]}},treeData:[],zTree:{},nodeName:"",isClick:!1}},computed:Ar({},re(["loginUser"])),watch:{orgOrganization:{deep:!0,immediate:!0,handler:function(e,t){}}},created:function(){this.root={id:"0",name:"全部分组",open:!0,title:"全部分组",parentId:null,gwjhLevel:0},this.loadExpenseThype(),this.$bus.emit("showNavSearch",!1),this.$bus.on("refreshTreeData",this.refreshTreeData),this.$bus.on("updateVo",this.updateVo)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("updateVo",this.updateVo),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadExpenseThype:function(){var e=this;console.log("this.loginUser",this.loginUser),this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode},{compare:"=",field:"createrId",merge:!0,value:this.loginUser.personId}],url:"gwgl/commonGroup/querydata",params:{orderBy:"orderNo asc"}}).then((function(t){"success"===t.code?(console.log(t.body.listdata,"res.body.listdata"),t.body.listdata.forEach((function(e){e.title=e.typeName,e.name=e.typeName})),e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata)),console.log(e.treeData,"this.treeData")):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){"0"!=e.id&&(e.pId=t.root.id,e.parentId=t.root.id),e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadExpenseThype():this.treeData=this.treeDataAdapter([this.root].concat(e))},updateVo:function(e){var t=this;this.$set(this.orgOrganization,"typeName",e.typeName),this.$set(this.orgOrganization,"name",e.typeName),this.$set(this.orgOrganization,"title",e.typeName),this.treeData.forEach((function(n,r){n.id===e.id&&(t.$set(t.treeData[r],"typeName",e.typeName),t.$set(t.treeData[r],"name",e.typeName),t.$set(t.treeData[r],"title",e.typeName))})),setTimeout((function(){var n=t.zTree.getNodes();n.forEach((function(n){n.id===e.id&&(t.zTree.selectNode(n),t.onTreeNodeClick("",e.id,n))}))}),1e3)},onTreeNodeClick:function(e,t,n){var r=this;this.isClick=!0,this.nodeName=n.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(e){0===n.gwjhLevel?r.orgOrganization=n:void 0===n.pId||null===n.pId?r.orgOrganization=null:r.getExpenseType(n.id,n),r.root=a})),console.log(148,n),"全部分组"!==n.name&&this.$nextTick((function(){r.$bus.emit("treeNodeDataList",n)}))},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();t.length>0&&(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]))},getExpenseType:function(e,t){var n=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:e,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(e){if("success"===e.code){var t=e.body.vo;n.orgOrganization=t}else n.$alert(e.message,n.$tx("common.operationTip","操作提示"),{type:"error"})}))}}},Wr=Rr,Gr=m(Wr,lr,dr,!1,null,"b0c031a2",null),Br=Gr.exports,Ur=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1),t("RightPanel",[t("orgOrganization",{attrs:{vo:e.orgOrganization,"z-tree":e.zTree,"is-click":e.isClick,"node-name":e.nodeName}})],1)],1)},qr=[],Vr=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[null!==e.vo&&e.isClick&&0!==e.vo.gwjhLevel?t("orgOrganizationForm",{attrs:{vo:e.vo,"can-edit":0}}):e._e(),null!==e.vo?t("div",{attrs:{slot:"footer"},slot:"footer"},[""!==e.nodeName&&e.vo&&e.vo.gwjhLevel<2?t("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addObject}},[e._v(e._s(0===e.vo.gwjhLevel?e.$tx("gwgl.gwjh.addInstitution","添加机构"):e.$tx("gwgl.gwjh.addChildInstitution","添加子机构")))]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"updateInstitution",expression:"'updateInstitution'"}],attrs:{plain:"",icon:"el-icon-edit","module-code":"gwjh"},on:{click:function(t){return e.editObject(e.vo)}}},[e._v("修改机构")]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"delInstitution",expression:"'delInstitution'"}],attrs:{plain:"",icon:"el-icon-close","module-code":"gwjh"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除机构")]):e._e()],1):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"isNoAddInstitutionisNoAddInstitution",expression:"'isNoAddInstitutionisNoAddInstitution'"}],attrs:{slot:"footer",moduleCode:"gwjh"},slot:"footer"},[e._v("暂未添加管理机构")])],1),t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("orgOrganizationForm",{attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":e.moduleInfo}})]}}])})],1)},Jr=[],Kr=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[1!=e.vo.orgLevel&&e.canEdit?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgLevel",expression:"'orgLevel'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("上级机构")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",{domProps:{innerHTML:e._s(e.vo.creatorOrgName)}})])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgName",expression:"'orgName'"}]},[e._v("机构名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"机构名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:e.$tx("gwgl.gwjh.orgNamePlaceholder","请选择机构名称")},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}],null,!1,3177146174)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.name)}}):e._e()],1)]),e.canEdit&&1===e.vo.orgLevel?t("tr",[t("td",{ref:"tdlbl_机构名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgName",expression:"'orgName'"}],staticClass:"field"},[e._v("机构名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"orgName",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"input",emptyMessage:e.$tx("gwgl.gwjh.orgNameEmpty","请输入机构名称"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"机构名称",propName:"orgName",propType:"String",textFormatter:"textfield",valueMaxLength:150,valueMinLength:null,model:"vo.orgName",option:[],showWordLimit:!1,dialog:1,dialogType:"rootorg",dialogOrgLevel:"",dialogMultiple:!1},vo:e.vo,"can-edit":e.canEdit}})],1)]):e._e(),e.canEdit&&2===e.vo.orgLevel?t("tr",[t("td",{ref:"tdlbl_机构名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgName",expression:"'orgName'"}],staticClass:"field"},[e._v("机构名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{"org-level":"2","dialog-title":e.$tx("gwgl.gwjh.fields.orgName","机构名称"),multiple:"false","root-org-code":e.vo.orgCode,placeholder:e.$tx("gwgl.gwjh.orgNamePlaceholder","请选择机构名称"),name:"name"},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]):e._e(),e.canEdit?e._e():t("tr",[t("td",{ref:"tdlbl_级别 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"level",expression:"'level'"}],staticClass:"field"},[e._v("级别")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e.vo.orgLevel?t("div",[e._v(e._s(e.vo.orgLevel?e.orgLevelOptions[e.vo.orgLevel-1].text:""))]):e._e()])]),t("tr",[t("td",{ref:"tdlbl_备注",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"remark",expression:"'remark'"}],staticClass:"field"},[e._v("备注")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"remark",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:e.$tx("gwgl.common.remarkmptyMessage","请输入备注"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"备注",propName:"remark",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.remark",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNo",expression:"'orderNo'"}]},[e._v("排序")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"排序",rules:"required|length:4"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[1===e.canEdit?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"orderNo",placeholder:e.$tx("gwgl.gwjh.orderPlaceholder","请输入4位数字排序号")},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}}):e._e()],1)]}}],null,!1,882135480)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.orderNo)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}],staticClass:"field"},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"显示名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"status",placeholder:e.$tx("gwgl.common.statusPlaceholder","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(n,r){return t("el-radio",{key:r,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,474603353)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(1===e.vo.status?e.$tx("common.enable","启用"):e.$tx("common.disable","禁用"))}}):e._e()],1)])])])])])])},Qr=[];function Zr(e){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zr(e)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){ta(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ta(e,t,n){return(t=na(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function na(e){var t=ra(e,"string");return"symbol"==Zr(t)?t:t+""}function ra(e,t){if("object"!=Zr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}window.jQuery||(window.jQuery=hr());var aa={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",statusOptions:[{value:1,text:this.$tx("common.enable","启用")},{value:2,text:this.$tx("common.disable","禁用")}],orgLevelOptions:[{value:1,text:this.$tx("gwgl.gwjh.orgLevelOptions1","一级(公司级)")},{value:2,text:this.$tx("gwgl.gwjh.orgLevelOptions2","二级(部门级)")}],lendAsOptions:[],loanAsOptions:[],cascaderProps:{value:"id",label:"name",checkStrictly:!1}}},computed:ea({},re(["loginUser"])),watch:{},created:function(){console.log(142,this.$vnode.context.moduleInfo),this.$vnode.context.moduleInfo.orgLevel&&(null===this.vo.orgLevel&&(this.vo.orgLevel=this.$vnode.context.moduleInfo.orgLevel,this.vo.gwjhLevel=this.$vnode.context.moduleInfo.orgLevel),null===this.vo.parentId&&(1===this.vo.orgLevel?this.vo.parentId="0":(this.vo.parentId=this.$vnode.context.moduleInfo.parentId,this.vo.creatorOrgName=this.$vnode.context.moduleInfo.creatorOrgName)),this.$vnode.context.moduleInfo.orgCode&&(this.vo.orgCode=this.$vnode.context.moduleInfo.orgCode),null===this.vo.status&&(this.vo.status=1),this.vo.subUnint=0),console.log(this.vo,"vo",this.vo.orgCode)},beforeDestroy:function(){},mounted:function(){console.log(this.$refs.orgNameSon,"orgNameSon")},methods:{onSelectRootorgCompleted:function(e,t){console.log(e,t,"主机构");var n="",r="",a="",o="",i="",s="",l="",d="";e.forEach((function(e){""!==n&&(n+="、"),""!==r&&(r+="、"),""!==a&&(a+="、"),""!==i&&(i+="、"),""!==o&&(o+="、"),""!==s&&(s+="、"),""!==l&&(l+="、"),""!==d&&(d+="、"),n+=e.name,r+=e.ocode,a+=e.id,o+=e.id,i+=e.name,s+=e.id,l+=e.orgfullName,d+=e.orderNo})),this.$set(this.vo,"name",i),this.$set(this.vo,"orgName",n),this.$set(this.vo,"orgCode",r),this.$set(this.vo,"orgId",a),this.$set(this.vo,"orgFullId",o),this.$set(this.vo,"fullId",s),this.$set(this.vo,"fullName",l),this.$set(this.vo,"orderNo",d)},onSelectSuborgCompleted:function(e,t){console.log(e,t,"子机构");var n="",r="",a="",o="",i="",s="",l="";e.forEach((function(e){""!==n&&(n+="、"),""!==o&&(o+="、"),""!==r&&(r+="、"),""!==a&&(a+="、"),""!==i&&(i+="、"),""!==s&&(s+="、"),""!==l&&(l+="、"),n+=e.name,o+=e.orgFullName,r+=e.id,a+=e.orgFullId,i+=e.name,s+=e.id,l+=e.orderNo})),this.$set(this.vo,"orgName",n),this.$set(this.vo,"fullName",o),this.$set(this.vo,"orgId",r),this.$set(this.vo,"orgFullId",a),this.$set(this.vo,"name",i),this.$set(this.vo,"fullId",s),this.$set(this.vo,"orderNo",l)}}},oa=aa,ia=(n(7867),m(oa,Kr,Qr,!1,null,"10a373f3",null)),sa=ia.exports,la=function(){var e=this,t=e._self._c;return t("div",{staticClass:"export-box"},[t("table",{staticStyle:{"text-align":"left"}},[t("tr",[t("td",{staticStyle:{width:"110px"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"importOrgTitle",expression:"'importOrgTitle'"}],staticClass:"row-col",staticStyle:{"font-weight":"600"}},[e._v("清远市公安局政务OA系统导入:")])]),t("td",[t("div",{staticClass:"row-col"},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".xls",action:e.base_api+"/gwjh/orgOrganization/ImportorgOrganization",data:e.uploadDdta,multiple:!1,"file-list":e.fileList,"on-change":e.fileChange,"on-success":e.uploadSuccess,"auto-upload":!1,"with-credentials":!0,"show-file-list":!0,disabled:!1,"on-remove":e.uploadRemove,limit:1}},[null==e.fileList||0==e.fileList.length?t("el-button",{attrs:{slot:"trigger"},slot:"trigger"},[t("svg-icon",{attrs:{"icon-class":"add"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectFile",expression:"'selectFile'"}]},[e._v("选择文件")])],1):e._e()],1),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{disabled:e.doing},on:{click:e.startUpload}},[t("svg-icon",{attrs:{"icon-class":"import"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"startImport",expression:"'startImport'"}]},[e._v("开始导入")])],1)],1)])]),t("tr",[t("td",{attrs:{colspan:"2"}},[t("div",{staticClass:"tip"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrate",expression:"'uploadIllustrate'"}],staticStyle:{"font-weight":"600"}},[e._v("上传文件内容格式说明:")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrateOne",expression:"'uploadIllustrateOne'"}],staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v("1.导入文件应为Office Excel文件;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrateTwo",expression:"'uploadIllustrateTwo'"}],staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v("2.导入文件暂不支持Office 2007及以后版本的Excel文件,如您使用的是Office 2007及以后版本,请把Excel文件转换为2003或之前的版本格式,具体转换方式为:打开的Excel文件中,选择“另存为”->“Excel 97-2003工作簿”;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrateThree",expression:"'uploadIllustrateThree'"}],staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v("3.进行导入操作时,请确保您导入的文件并未处于使用状态。")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"example",expression:"'example'"}],staticStyle:{"font-weight":"600"}},[e._v("上传文件内容示例:")]),t("span",[t("a",{attrs:{title:e.$tx("gwgj.gwjh.clickDown")},on:{click:function(t){return e.fileDownload("/templates/costType1.xls")}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"downText",expression:"'downText'"}],staticStyle:{color:"red",width:"100%"}},[e._v("点击下载Excel导入示例")])])])])])])])])},da=[],ca={components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",doing:!1,fileList:[]}},computed:{},watch:{},created:function(){this.base_api="/apigw"},beforeDestroy:function(){},mounted:function(){},methods:{uploadRemove:function(e,t){this.fileList=t},fileChange:function(e,t){this.fileList=[e],this.doing=!1},startUpload:function(){0===this.fileList.length?this.$alert(this.$tx("gwgl.messages.importAlert","请选择导入文件"),this.$tx("common.operationTip","操作提示"),{type:"warning"}):(this.doing=!0,this.$refs.upload.submit())},uploadSuccess:function(e,t,n){var r=this;"success"===e.code?(this.$message({message:e.message,type:"success"}),e.body.listdata&&this.$bus.emit("refreshTreeData",e.body.listdata)):this.$alert(e.message,this.$tx("common.operationTip","操作提示"),{type:"error"}),this.doing=!1,this.fileList=null,this.$nextTick((function(){r.fileList=[]}))}}},ua=ca,pa=(n(2174),m(ua,la,da,!1,null,"67b05f04",null)),ma=pa.exports,fa={components:{orgOrganizationForm:sa,ImportorgOrganization:ma},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}}},data:function(){return{title:this.$tx("gwgl.gwjh.institutionSet"),i18npkg:"gwgl",moduleInfo:{moduleCode:"Module",addNewUrl:"gwjh/orgOrganization/addNew",insertUrl:"gwjh/orgOrganization/crgwjhOrganization",getByIdUrl:"gwjh/orgOrganization/getById",updateUrl:"gwjh/orgOrganization/bcgwjhOrgOrganization",delUrl:"gwjh/orgOrganization/delete",winWidth:900,winHeight:600},opearType:""}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu),console.log(72,this.vo)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add";var e=this.moduleInfo.addNewUrl.split("?")[0];e+="?parentId=",0===this.vo.gwjhLevel?(this.moduleInfo.addNewUrl=e,this.moduleInfo.orgLevel=1,this.moduleInfo.parentId="0"):(this.moduleInfo.addNewUrl=e+this.vo.id,this.moduleInfo.orgLevel=2,this.moduleInfo.parentId=this.vo.id,this.moduleInfo.creatorOrgName=this.vo.name,this.moduleInfo.orgCode=this.vo.orgCode),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editObject:function(e){console.log(97,e),this.opearType="edit",this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(e){var t=this;console.log(e,"node"),console.log(this.zTree,"this.zTree"),this.opearType="delete";var n=this.$tx("gwgl.messages.confirmDel",{val:e.name},"确认删除“${node.name}”吗?");e.children&&e.children.length>0&&(n=this.$tx("gwgl.messages.confirmDel2",{val:e.name},"确认删除“${node.name}”及下级全部类型吗?")),this.$confirm(n,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(e){"success"===e.code?(t.$bus.emit("refreshTreeData",null),t.$message.success(e.message)):t.$alert(e.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(e,t,n){n.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,n){n.resolve(!0)},onBasicFormSubmited:function(e,t){t.title=t.name,void 0!==t.pId&&null!==t.pId||("0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId||"root"),this.$bus.emit("updateTreeNode",t)}}},ha=fa,ga=m(ha,Vr,Jr,!1,null,"a11eecf2",null),ya=ga.exports;function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e,t,n){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ma(e){var t=La(e,"string");return"symbol"==_a(t)?t:t+""}function La(e,t){if("object"!=_a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ta={components:{orgOrganization:ya},props:{},data:function(){return{moduleInfo:{getByIdUrl:"gwjh/orgOrganization/getById",loadTreeNodeUrl:"gwjh/orgOrganization/querydata"},root:null,orgOrganization:{},treeData:[],zTree:{},nodeName:"",isClick:!1}},computed:ba({},re(["loginUser"])),watch:{orgOrganization:{deep:!0,immediate:!0,handler:function(e,t){console.log(48,e,this.nodeName),console.log(49,t)}}},created:function(){this.root={id:"0",name:"清远市",open:!0,title:"清远市",parentId:null,gwjhLevel:0},this.loadExpenseThype(),this.$bus.emit("showNavSearch",!1),this.$bus.on("refreshTreeData",this.refreshTreeData)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadExpenseThype:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"creatorOrgCode",merge:!0,value:this.loginUser.orgCode},{compare:"=",field:"status",merge:!0,value:1}],url:this.moduleInfo.loadTreeNodeUrl}).then((function(t){"success"===t.code?(console.log(t.body.listdata,"res.body.listdata"),t.body.listdata.forEach((function(e){1===e.subUnint&&(e.parentId="0")})),console.log(e.corpOrgs,"this.corpOrgs"),e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata))):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId?e.pId=t.root.id:e.pId=e.parentId,e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadExpenseThype():this.treeData=this.treeDataAdapter([this.root].concat(e))},onTreeNodeClick:function(e,t,n){var r=this;this.isClick=!0,this.nodeName=n.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,console.log(114,n),this.$nextTick((function(e){0===n.gwjhLevel?r.orgOrganization=n:void 0===n.pId||null===n.pId?r.orgOrganization=null:r.getExpenseType(n.id,n),r.root=a}))},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();t.length>0&&(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]))},getExpenseType:function(e,t){var n=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:e,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(e){if("success"===e.code){var t=e.body.vo;n.orgOrganization=t,console.log(142,e.body.vo),console.log(143,t),console.log(144,n.orgOrganization)}else n.$alert(e.message,n.$tx("common.operationTip","操作提示"),{type:"error"})}))}}},xa=Ta,Da=m(xa,Ur,qr,!1,null,"47a0c0d2",null),ka=Da.exports,Sa=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:"blxltj"}}},[t("div",{ref:"reportContent",staticClass:"report-content"},[e.loading?e._e():t("bar",{attrs:{"chart-id":"projectColumnar2",left:"2%",right:"5%","echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata}})],1)])],1)},Ya=[];function ja(e){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(e)}function Ca(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ca=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==ja(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(ja(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Oa(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Na(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Oa(o,r,a,i,s,"next",e)}function s(e){Oa(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach((function(t){Ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ha(e,t,n){return(t=Fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e){var t=Aa(e,"string");return"symbol"==ja(t)?t:t+""}function Aa(e,t){if("object"!=ja(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ja(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $a={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{listData:[],loginUser:this.$store.getters.loginUser,searchType:"",loading:!1,chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{},yUnit:{},xdata:[],ydata:[],staffList:[],dataInfo:{bwsl:{type:"1",url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",x:"部门",y:"办文数量"},bwxl:{type:"1",url:"platStatistics/doneAndtodo/handlingEfficiencyStatistics",x:"部门",y:"办文时长(小时)"}},pageData:{},tooltipFormat:null,chooseDate:[]}},computed:Ea({},re(["routes"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),this.initDate("day"),this.getReportList()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{staffChange:function(e){this.getReportList(e)},mergestaffList:function(e){var t=[];return e.forEach((function(e){var n={value:e.orgFullName.split("-")[1],id:e.orgFullId.split("-")[1]};t.push(n)})),t},getReportList:function(e){var t=this;return Na(Ca().mark((function n(){var r,a;return Ca().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.searchType="bwxl",t.pageData=t.dataInfo[t.searchType],t.xUnit={name:t.pageData.x,align:"end",size:"12"},t.yUnit={name:t.pageData.y,align:"end",size:"12",position:"left",lineColor:"#000",nameRotate:"0",nameGap:"10",minInterval:"1"},r={deptId:e||"",endTime:t.chooseDate[1],startTime:t.chooseDate[0],type:t.pageData.type,fileName:"",module:"fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg,dzgg"},t.loading=!0,t.listData=[],n.next=9,t.$app.listdata(t.pageData.url,r);case 9:a=n.sent,"success"===a.code&&t.mergeList(a.body.listdata.slice(0,10)),t.loading=!1;case 12:case"end":return n.stop()}}),n)})))()},mergeList:function(e){var t=this,n=[],r=[];if(e.forEach((function(e){"bwsl"===t.searchType&&(n.push(e.name),r.push(e.num))})),"bwxl"===this.searchType){var a=e.slice(0,10);a.forEach((function(e){n.push(e.name),r.push(JSON.parse(JSON.stringify(e.avgMinute))/60),e.avgMinute=t.mergeMinute(e.avgMinute)}))}this.xdata=n,this.ydata=[r],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?l+"秒":i+"分钟"+l+"秒":a+"小时"+i+"分钟"+l+"秒":n+"天"+a+"小时"+i+"分钟"+l+"秒",d},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1),a=t.getDate()>=10?t.getDate():"0"+t.getDate();if("day"===e){var o="",i="";if(a>15)o=n+"-"+r+"-01",i=n+"-"+r+"-"+new Date(n,r,0).getDate();else{var s=new Date(t.setMonth(r-2)).getFullYear(),l=new Date(t.setMonth(r-2)).getMonth()+1;o=s+"-"+l+"-01",i=s+"-"+l+"-"+new Date(s,l,0).getDate()}this.chooseDate=[o,i]}else if("month"===e){var d=new Date(t.setMonth(r-13)).getFullYear(),c=new Date(t.setMonth(r-13)).getMonth()+1>=10?new Date(t.setMonth(r-13)).getMonth()+1:"0"+(new Date(t.setMonth(r-13)).getMonth()+1),u=d+"-"+c,p=n+"-"+r;this.chooseDate=[u,p]}},onMoreClick:function(){var e=this;if(this.appletData.url.indexOf("?")>1&&this.appletData.url.split("?")[1].indexOf("productCode")>-1){var t=this.appletData.url.split("?")[1];if(t.indexOf("&")>-1){var n=t.split("&");n.forEach((function(t){t.indexOf("productCode")>-1&&e.$bus.emit("redirectMoreClick",t.split("=")[1])}))}else this.$bus.emit("redirectMoreClick",t.split("=")[1])}},echartsClick:function(){return!1}}},Ia=$a,za=(n(6295),m(Ia,Sa,Ya,!1,null,"6a1b3a22",null)),Ra=za.exports,Wa=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:"bwsltj"}}},[t("div",{ref:"reportContent",staticClass:"report-content"},[e.loading?e._e():t("bar",{attrs:{"chart-id":"projectColumnar1",left:"2%",right:"5%","echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata}})],1)])],1)},Ga=[];function Ba(e){return Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(e)}function Ua(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ua=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Ba(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Ba(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function qa(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Va(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){qa(o,r,a,i,s,"next",e)}function s(e){qa(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach((function(t){Qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qa(e,t,n){return(t=Za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e){var t=Xa(e,"string");return"symbol"==Ba(t)?t:t+""}function Xa(e,t){if("object"!=Ba(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ba(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var eo={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{listData:[],loginUser:this.$store.getters.loginUser,searchType:"",loading:!1,chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{},yUnit:{},xdata:[],ydata:[],staffList:[],dataInfo:{bwsl:{type:"1",url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",x:"部门",y:"办文数量"},bwxl:{type:"1",url:"platStatistics/doneAndtodo/handlingEfficiencyStatistics",x:"部门",y:"平均办文时长"}},pageData:{},tooltipFormat:null,chooseDate:[]}},computed:Ka({},re(["routes"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),this.initDate("day"),this.getReportList()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{staffChange:function(e){this.getReportList(e)},mergestaffList:function(e){var t=[];return e.forEach((function(e){var n={value:e.orgFullName.split("-")[1],id:e.orgFullId.split("-")[1]};t.push(n)})),t},getReportList:function(e){var t=this;return Va(Ua().mark((function n(){var r,a;return Ua().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.searchType="bwsl",t.pageData=t.dataInfo[t.searchType],t.xUnit={name:t.pageData.x,align:"end",size:"12"},t.yUnit={name:t.pageData.y,align:"end",size:"12",position:"left",lineColor:"#000",nameRotate:"0",nameGap:"10",minInterval:"1"},r={deptId:e||"",endTime:t.chooseDate[1],startTime:t.chooseDate[0],type:t.pageData.type,fileName:"",module:"fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg,dzgg"},t.loading=!0,t.listData=[],n.next=9,t.$app.listdata(t.pageData.url,r);case 9:a=n.sent,"success"===a.code&&t.mergeList(a.body.listdata.slice(0,10)),t.loading=!1;case 12:case"end":return n.stop()}}),n)})))()},mergeList:function(e){var t=this,n=[],r=[];e.forEach((function(e){"bwsl"===t.searchType&&(n.push(e.name),r.push(e.num))})),this.xdata=n,this.ydata=[r],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?l+"秒":i+"分钟"+l+"秒":a+"小时"+i+"分钟"+l+"秒":n+"天"+a+"小时"+i+"分钟"+l+"秒",d},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1),a=t.getDate()>=10?t.getDate():"0"+t.getDate();if("day"===e){var o="",i="";if(a>15)o=n+"-"+r+"-01",i=n+"-"+r+"-"+new Date(n,r,0).getDate();else{var s=new Date(t.setMonth(r-2)).getFullYear(),l=new Date(t.setMonth(r-2)).getMonth()+1;o=s+"-"+l+"-01",i=s+"-"+l+"-"+new Date(s,l,0).getDate()}this.chooseDate=[o,i]}else if("month"===e){var d=new Date(t.setMonth(r-13)).getFullYear(),c=new Date(t.setMonth(r-13)).getMonth()+1>=10?new Date(t.setMonth(r-13)).getMonth()+1:"0"+(new Date(t.setMonth(r-13)).getMonth()+1),u=d+"-"+c,p=n+"-"+r;this.chooseDate=[u,p]}},onMoreClick:function(){var e=this;if(this.appletData.url.indexOf("?")>1&&this.appletData.url.split("?")[1].indexOf("productCode")>-1){var t=this.appletData.url.split("?")[1];if(t.indexOf("&")>-1){var n=t.split("&");n.forEach((function(t){t.indexOf("productCode")>-1&&e.$bus.emit("redirectMoreClick",t.split("=")[1])}))}else this.$bus.emit("redirectMoreClick",t.split("=")[1])}},echartsClick:function(){return!1}}},to=eo,no=(n(3368),m(to,Wa,Ga,!1,null,"91817610",null)),ro=no.exports,ao=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!1,code:"zcpd_left.svg"}}},[t("div",{ref:"gwcx",staticClass:"gwcx-content"},[t("div",{staticClass:"search-input"},[t("el-input",{staticClass:"input-with-select",attrs:{placeholder:e.$tx("gwgl.portlet.searching","搜索...")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchBtnClick.apply(null,arguments)}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchBtnClick},slot:"append"})],1)],1),t("div",{staticClass:"search-select"},[t("el-radio-group",{attrs:{size:"small"},on:{input:e.checkboxChange},model:{value:e.radioGroup,callback:function(t){e.radioGroup=t},expression:"radioGroup"}},e._l(e.cityOptions,(function(n){return t("el-radio-button",{key:n,attrs:{label:n}},[e._v(e._s(n))])})),1)],1)])])],1)},oo=[];function io(e){return io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},io(e)}function so(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */so=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==io(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(io(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function lo(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function co(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){lo(o,r,a,i,s,"next",e)}function s(e){lo(o,r,a,i,s,"throw",e)}i(void 0)}))}}var uo={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{loginUser:this.$store.getters.loginUser,searchKey:"",cityOptions:[this.$tx("gwgl.portlet.unitDocument","单位发文"),this.$tx("gwgl.portlet.readingOffice","收文阅办"),this.$tx("gwgl.portlet.receiptDocuments","部门收文"),this.$tx("gwgl.portlet.documentCirculation","文件传阅"),this.$tx("gwgl.portlet.departmentalLetter","部门便函"),this.$tx("gwgl.portlet.solicitationOpinions","意见征集"),this.$tx("gwgl.portlet.requestInstructions","请示报告")],selectWf:"",radioGroup:[]}},computed:{routes:function(){return this.$store.getters.routes}},watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index")},beforeDestroy:function(){},mounted:function(){},methods:{searchBtnClick:function(){var e=this;return co(so().mark((function t(){var n,r;return so().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.routes.filter((function(e){return e.meta&&"公文查询"===e.meta.title})),n.length>0&&(r={},e.radioGroup?(r={keyword:e.searchKey,flGwType:e.radioGroup},localStorage.setItem("gwKeyWord",JSON.stringify(r))):(r={keyword:e.searchKey},localStorage.setItem("gwKeyWord",JSON.stringify(r))),e.$router.push({path:n[0].children[0].path,query:{gwKeyWord:e.searchKey}}));case 2:case"end":return t.stop()}}),t)})))()},checkboxChange:function(e){this.radioGroup=e,this.searchBtnClick()}}},po=uo,mo=(n(6887),m(po,ao,oo,!1,null,"1ec9c518",null)),fo=mo.exports,ho=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:"gwmbSignedfile"}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"gwmb",staticClass:"gwmb-content"},[e.mbList.length?t("div",{staticClass:"gwmb-box"},e._l(e.mbList,(function(n){return t("div",{key:n.id,staticClass:"gwmb-item",on:{mouseenter:function(t){return e.onMouseenter(n)},mouseleave:function(t){return e.onMouseleave(n)}}},[t("div",{ref:n.id+"y",refInFor:!0,staticClass:"item-img"},[t("el-image",{staticClass:"pdf-viewer",staticStyle:{width:"100%",height:"100%"},attrs:{src:"apigw/gwgl/fwmb/downloadImg?dataField=mbImgFileData&id="+n.id+"&nameField=mbImgFileName",fit:e.cover}},[t("div",{staticClass:"image-slot",staticStyle:{height:"100%"},attrs:{slot:"error"},slot:"error"},[t("el-image",{staticStyle:{top:"50%",transform:"translateY(-50%)",height:"90px"},attrs:{src:"images/w-imgs/nosearch.png",fit:e.fit}})],1)])],1),t("div",{ref:n.id,refInFor:!0,staticClass:"item-btn"},[t("div",{staticClass:"btn",on:{click:function(t){return e.gwglYl(n)}}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$tx("gwgl.portlet.preview","预览"),placement:"right","open-delay":"1000"}},[t("svg-icon",{staticStyle:{height:"25px",width:"25px"},attrs:{"icon-class":"gwgl_yl"}})],1)],1),t("div",{staticClass:"btn",on:{click:function(t){return e.gwglXz(n)}}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$tx("pageBtns.download","下载"),placement:"right","open-delay":"1000"}},[t("svg-icon",{staticStyle:{height:"25px",width:"25px"},attrs:{"icon-class":"gwgl_xz"}})],1)],1)]),t("span",[e._v(e._s(n.name))])])})),0):t("div",{staticClass:"gwmb-box"},[t("el-empty",{attrs:{description:e.$tx("gwgl.common.noGwModule","暂无公文模板"),image:"./images/w-imgs/nosearch.png"}})],1)])])],1)},go=[];function yo(e){return yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(e)}function _o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_o=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==yo(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(yo(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function vo(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function bo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){vo(o,r,a,i,s,"next",e)}function s(e){vo(o,r,a,i,s,"throw",e)}i(void 0)}))}}var wo={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{loginUser:this.$store.getters.loginUser,mbList:[],loading:!0}},computed:{routes:function(){return this.$store.getters.routes}},watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.getData()},beforeDestroy:function(){},mounted:function(){},methods:{getUrl:function(e){var t=window.location.protocol+"//"+window.location.hostname+":"+window.location.port,n=t+"/apigw/gwgl/fwmb/download?id="+e+"&inline=true&toPdf=true&dataField=fileContent&nameField=mbFileName";return n},getData:function(){var e=this;return bo(_o().mark((function t(){var n,r,a;return _o().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=8;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:if(n=t.sent,"公文模版"!==e.appletData.name&&"公文模版"!==e.appletData.name){t.next=8;break}return e.mbList=n,e.loading=!1,t.abrupt("return");case 8:return r={pageSize:9999,pageNum:1,urlsearch:"orgCode:".concat(e.loginUser.orgCode),orderBy:"sortNo asc"},t.next=11,e.$app.listdata("/gwgl/fwmb/listdata",r);case 11:a=t.sent,"success"===a.code?(e.mbList=a.body.pageInfo.list,console.log(e.mbList,"公文模板数据"),e.loading=!1):e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},onMouseenter:function(e){this.$refs[e.id][0].style.display="flex"},onMouseleave:function(e){this.$refs[e.id][0].style.display="none"},gwglYl:function(e){var t=window.location.protocol+"//"+window.location.hostname+":"+window.location.port,n=t+"/apigw/gwgl/fwmb/download?id="+e.id+"&inline=true&toPdf=true&dataField=fileContent&nameField=mbFileName&fileName="+e.mbFileName;window.open("./plugins/PDFjs/web/viewer.html?file="+encodeURIComponent(n))},gwglXz:function(e){var t="/apigw/gwgl/fwmb/download?id="+e.id+"&inline=true&toPdf=false&dataField=fileContent&nameField=mbFileName";window.open(t)}}},Mo=wo,Lo=(n(8583),m(Mo,ho,go,!1,null,"c37d5e66",null)),To=Lo.exports,xo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:e.code}}},[t("div",{ref:"reportContent",staticClass:"report-content"},[!e.loading&&e.listData.length>0?t("bar",{attrs:{left:"2%",right:"9%",top:"7%","echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata,"x-label-rotate":45}}):e._e()],1)])],1)},Do=[];function ko(e){return ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ko(e)}function So(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */So=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==ko(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(ko(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Yo(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Yo(o,r,a,i,s,"next",e)}function s(e){Yo(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t,n){return(t=Po(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Po(e){var t=Eo(e,"string");return"symbol"==ko(t)?t:t+""}function Eo(e,t){if("object"!=ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ho={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{listData:[],loginUser:this.$store.getters.loginUser,searchType:"",code:"",loading:!1,chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{},yUnit:{},xdata:[],ydata:[],staffList:[],dataInfo:{bwsl:{type:"1",url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",x:"部门",y:"办文数量"},bwxl:{type:"1",url:"platStatistics/doneAndtodo/handlingEfficiencyStatistics",x:"部门",y:"平均办文时长"}},pageData:{},tooltipFormat:null,chooseDate:[]}},computed:Oo({},re(["routes"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),console.log("办文数量统计"),this.initDate("day"),this.getReportList()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{staffChange:function(e){this.getReportList(e)},mergestaffList:function(e){var t=[];return e.forEach((function(e){var n={value:e.orgFullName.split("-")[1],id:e.orgFullId.split("-")[1]};t.push(n)})),t},getReportList:function(e){var t=this;return jo(So().mark((function n(){var r,a;return So().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return"办文数量统计"===t.appletData.name?(t.searchType="bwsl",t.code="bwsltj"):"办文时长统计(十名)"===t.appletData.name&&(t.searchType="bwxl",t.code="blxltj"),t.pageData=t.dataInfo[t.searchType],t.xUnit={name:t.pageData.x,align:"end",size:"12"},t.yUnit={name:t.pageData.y,align:"end",size:"12",position:"left",lineColor:"#000",nameRotate:"0",nameGap:"10"},r={deptId:e||"",endTime:t.chooseDate[1],startTime:t.chooseDate[0],type:t.pageData.type,fileName:"",module:"fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg,dzgg"},t.loading=!0,t.listData=[],n.next=9,t.$app.listdata(t.pageData.url,r);case 9:a=n.sent,"success"===a.code&&t.mergeList(a.body.listdata.slice(0,10)),t.loading=!1;case 12:case"end":return n.stop()}}),n)})))()},mergeList:function(e){var t=this,n=[],r=[];if(e.forEach((function(e){"bwsl"===t.searchType&&(n.push(e.name),r.push(e.num))})),"bwxl"===this.searchType){e.sort((function(e,t){return t.avgMinute-e.avgMinute}));var a=e.slice(0,10);a.forEach((function(e){n.push(e.name),r.push(JSON.parse(JSON.stringify(e.avgMinute))/60),e.avgMinute=t.mergeMinute(e.avgMinute)}))}this.xdata=n,this.ydata=[r],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?l+"秒":i+"分钟"+l+"秒":a+"小时"+i+"分钟"+l+"秒":n+"天"+a+"小时"+i+"分钟"+l+"秒",d},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1),a=t.getDate()>=10?t.getDate():"0"+t.getDate();if("day"===e){var o="",i="";if(a>15)o=n+"-"+r+"-01",i=n+"-"+r+"-"+new Date(n,r,0).getDate();else{var s=new Date(t.setMonth(r-2)).getFullYear(),l=new Date(t.setMonth(r-2)).getMonth()+1;o=s+"-"+l+"-01",i=s+"-"+l+"-"+new Date(s,l,0).getDate()}this.chooseDate=[o,i]}else if("month"===e){var d=new Date(t.setMonth(r-13)).getFullYear(),c=new Date(t.setMonth(r-13)).getMonth()+1>=10?new Date(t.setMonth(r-13)).getMonth()+1:"0"+(new Date(t.setMonth(r-13)).getMonth()+1),u=d+"-"+c,p=n+"-"+r;this.chooseDate=[u,p]}},onMoreClick:function(){var e=this;if(this.appletData.url.indexOf("?")>1&&this.appletData.url.split("?")[1].indexOf("productCode")>-1){var t=this.appletData.url.split("?")[1];if(t.indexOf("&")>-1){var n=t.split("&");n.forEach((function(t){t.indexOf("productCode")>-1&&e.$bus.emit("redirectMoreClick",t.split("=")[1])}))}else this.$bus.emit("redirectMoreClick",t.split("=")[1])}},echartsClick:function(){return!1}}},Fo=Ho,Ao=(n(6260),m(Fo,xo,Do,!1,null,"08091c3d",null)),$o=Ao.exports,Io=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick},scopedSlots:e._u([{key:"context-menu",fn:function(n){return[null===n.contextNode.pId&&n.contextNode.categoryLevel<3||!n.contextNode.categoryLevel?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"addNewMenu",expression:"'addNewMenu'"}],attrs:{moduleCode:"setting"},on:{click:function(t){return e.addMenu(n.treeId,n.contextNode)}}},[e._v("新增子菜单")])]):e._e(),null!==n.contextNode.pId?t("ul",[n.contextNode.categoryLevel<3?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"addNewMenu",expression:"'addNewMenu'"}],attrs:{moduleCode:"setting"},on:{click:function(t){return e.addMenu(n.treeId,n.contextNode)}}},[e._v("新增子菜单")]):e._e(),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"delMenu",expression:"'delMenu'"}],attrs:{moduleCode:"setting"},on:{click:function(t){return e.deleteObject(n.contextNode)}}},[e._v("删除菜单")])]):e._e()]}}])})],1),t("RightPanel",[t("pageContent",{attrs:{title:e.formTitle}},[e.treeData.length>0&&e.showInfoView?t("typeForm",{ref:"typeForm1",attrs:{vo:e.vo,"tree-data":e.treeData,"chang-access-rights":e.changAccessRights}}):e._e(),t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e.treeData.length>0&&e.showInfoView?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"confirmUpdate",expression:"'confirmUpdate'"}],attrs:{type:"primary",size:"small",icon:"el-icon-check"},on:{click:e.updateObject}},[e._v("确认修改")]):e._e(),e.vo.categoryLevel<3||!e.vo.categoryLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addChildType",expression:"'addChildType'"}],attrs:{size:"small",plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addObject(e.vo)}}},[e._v("新增子分类")]):e._e(),e.treeData.length>0&&e.showInfoView?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"delType",expression:"'delType'"}],attrs:{type:"danger",size:"small",icon:"el-icon-delete"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除子分类")]):e._e()],1)],1)],1),t("Basicform",{ref:"basicForm",attrs:{title:e.$tx("gwgl.components.archiveClassification","归档分类管理"),"win-width":800,"win-height":600,"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("typeForm",{ref:"typeForm",attrs:{vo:n.vo,"module-info":e.moduleInfo,"tree-data":e.treeData}})]}}])})],1)},zo=[],Ro=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",["归档文件"!==e.getNamehandler(e.vo.parentId)?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"levelType",expression:"'levelType'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[e._v(" "+e._s(e.getNamehandler(e.vo.parentId))+" ")])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"typeName",expression:"'typeName'"}]},[e._v("分类名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{type:"text","show-word-limit":"true",placeholder:e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称")},model:{value:e.vo.categoryName,callback:function(t){e.$set(e.vo,"categoryName",t)},expression:"vo.categoryName"}})],1)]}}])})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"classicDescription",expression:"'classicDescription'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("分类描述")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-input",{attrs:{type:"textarea","show-word-limit":"",placeholder:e.$tx("gwgl.setting.classicDescriptionPlaceholder","请输入分类描述")},model:{value:e.vo.categoryDes,callback:function(t){e.$set(e.vo,"categoryDes",t)},expression:"vo.categoryDes"}})],1)]),t("tr",[t("td",{ref:"tdlbl_排序号",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sortNumber",expression:"'sortNumber'"}]},[e._v("排序号")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"orderno",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"input",emptyMessage:e.$tx("gwgl.setting.sortNumberEmptyMessage","请输入四位数的排序号"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"排序号",propName:"orderno",propType:"Integer",textFormatter:"integer",valueMaxLength:"4",valueMinLength:"4",model:"vo.orderno",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),0!=e.vo.accessRights?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[1===e.vo.accessRights?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectGroup",expression:"'selectGroup'"}],attrs:{moduleCode:"components"}},[e._v("选择群组")]):e._e(),2===e.vo.accessRights?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectDepart",expression:"'selectDepart'"}],attrs:{moduleCode:"components"}},[e._v("选择部门")]):e._e(),3===e.vo.accessRights?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectPerson",expression:"'selectPerson'"}],attrs:{moduleCode:"components"}},[e._v("选择人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:1===e.vo.accessRights,expression:"vo.accessRights === 1"},{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:e.$tx("gwgl.components.GroupPlaceholder","请选择群组"),readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.deptNames,callback:function(t){e.$set(e.vo,"deptNames",t)},expression:"vo.deptNames"}}),t("el-input",{directives:[{name:"show",rawName:"v-show",value:2===e.vo.accessRights,expression:"vo.accessRights === 2"},{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:e.$tx("gwgl.components.DepartPlaceholder","请选择部门"),"org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.deptNames,callback:function(t){e.$set(e.vo,"deptNames",t)},expression:"vo.deptNames"}}),t("el-input",{directives:[{name:"show",rawName:"v-show",value:3===e.vo.accessRights,expression:"vo.accessRights === 3"},{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:e.$tx("gwgl.components.PersonPlaceholder","请选择人员"),readonly:"readonly",multiple:"true",type:"textarea",name:"deptIds","root-org-code":e.vo.orgCode},model:{value:e.vo.deptNames,callback:function(t){e.$set(e.vo,"deptNames",t)},expression:"vo.deptNames"}})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}]},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"effective",expression:"'effective'"}],attrs:{label:1}},[e._v("有效")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"invalid",expression:"'invalid'"}],attrs:{label:0}},[e._v("无效")])],1)],1)])])])])])])},Wo=[],Go={components:{},props:{vo:{type:Object,default:function(){return{}}},changAccessRights:{type:Function,default:null},treeData:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"setting"}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{getNamehandler:function(e){var t=this.treeData.filter((function(t){return t.id===e}));return t.length>0?t[0].categoryName:"归档文件"},changHandler:function(e){this.vo.deptIds="",this.vo.deptNames="",this.changAccessRights&&this.changAccessRights(e)},onSelectSuborgCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptNames",n)},onSelectWorkgroupCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptNames",n)},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(r+="、"),""!==n&&(n+="、"),n+=e.name,r+=e.personId})),this.$set(this.vo,"deptNames",n),this.$set(this.vo,"deptIds",r)}}},Bo=Go,Uo=m(Bo,Ro,Wo,!1,null,"80bceea4",null),qo=Uo.exports,Vo={components:{typeForm:qo},props:{},data:function(){return{i18npkg:"gwgl",busiformBtns:[{id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:this.closeDialog,btnPermission:"",btnType:""},{id:"btn_save",btnName:"保 存",btnIcon:"check",btnClick:this.submitBusiform,btnPermission:"saveObject",btnType:"primary"}],formTitle:this.$tx("gwgl.setting.formTitle","归档分类设置"),activeText:"",activedeptIds:"",vo:{},chooseId:"",categoryFullId:"",categoryFullName:"",moduleInfo:{moduleCode:"gdflsz",addNewUrl:"gwgl/gdflsz/addNew",insertUrl:"gwgl/gdflsz/insert",getByIdUrl:"gwgl/gdflsz/getById",updateUrl:"gwgl/gdflsz/update",delUrl:"gwgl/gdflsz/delete",winWidth:900,winHeight:600,id:null},treeData:[],root:null,sysNode:null,showInfoView:!1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1),this.root={id:"0",name:"归档文件",categoryName:"归档文件",open:!0,title:"归档文件"},this.queryData()},mounted:function(){},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},methods:{submitBusiform:function(){var e=this,t=this,n=this.$refs.typeForm.vo;this.$refs.typeForm.formValidate((function(){if(n.categoryName)if(n.orderno)if(isNaN(n.orderno))t.$alert(t.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else if(4===(n.orderno+"").length){e.$refs.typeForm.vo.parentId=e.chooseId;var r=JSON.parse(JSON.stringify(e.$refs.typeForm.vo));e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:r,url:e.moduleInfo.insertUrl}).then((function(t){"success"===t.code?(e.$message({message:t.message,type:"success"}),e.closeDialog(),e.refreshTreeData()):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))}else t.$alert(t.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(t.$tx("gwgl.messages.sortNumberEmptyMessage","请输入四位数的排序号"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(t.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称"),t.$tx("common.operationTip","操作提示"),{type:"warning"})}))},closeDialog:function(){this.$refs.basicForm.dialogFormVisible=!1,this.$refs.basicForm.moduleInfo={},this.$refs.basicForm.vo={}},changAccessRights:function(e){e===this.activeId&&(this.vo.deptIds=this.activedeptIds,this.vo.deptNames=this.activeText)},updateObject:function(){var e=this;e.$refs.typeForm1.formValidate((function(){e.vo.categoryName?e.vo.orderno?isNaN(e.vo.orderno)?e.$alert(e.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),e.$tx("common.operationTip","操作提示"),{type:"warning"}):4===(e.vo.orderno+"").length?e.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",data:e.vo,url:"/gwgl/gdflsz/update"}).then((function(t){"success"===t.code?(e.$message({message:t.message,type:"success"}),e.refreshTreeData()):e.$message.error(t.message)})):e.$alert(e.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),e.$tx("common.operationTip","操作提示"),{type:"warning"}):e.$alert(e.$tx("gwgl.messages.sortNumberEmptyMessage","请输入四位数的排序号"),e.$tx("common.operationTip","操作提示"),{type:"warning"}):e.$alert(e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称"),e.$tx("common.operationTip","操作提示"),{type:"warning"})}))},addMenu:function(e,t){var n=this;this.sysNode=t,this.chooseId=t.id,this.categoryFullId=null===t.categoryFullId||""===t.categoryFullId||void 0===t.categoryFullId?t.id:t.categoryFullId,this.categoryFullName=null===t.categoryFullName||""===t.categoryFullName||void 0===t.categoryFullName?t.categoryName:t.categoryFullName+"-"+t.categoryName,this.$nextTick((function(){n.addObject(t)}))},addObject:function(e){var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?parentId=",null===e?this.moduleInfo.addNewUrl=t:(this.moduleInfo.addNewUrl=t+e.id,this.moduleInfo.id=e.id),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},deleteObject:function(e){var t=this,n=this.$tx("gwgl.gwjh.confirmDel",{val:e.categoryName},"确认删除".concat(e.categoryName,"吗?"));this.$confirm(n,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(e){"success"===e.code?(t.sysNode=null,t.refreshTreeData(),t.$message.success(e.message)):t.$alert(e.message,{type:"error"})}))})).catch((function(){}))},refreshTreeData:function(){this.chooseId="",this.categoryFullId="",this.categoryFullName="",this.queryData()},queryData:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"categoryLevel asc,orderno asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:"/gwgl/gdflsz/querydata"}).then((function(t){"success"===t.code?e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata)):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){return e.forEach((function(e){null===e.parentId||""===e.parentId||void 0===e.parentId?e.pId="0":e.pId=e.parentId,e.name=e.categoryName,e.title=e.categoryName,e.open=!0})),e},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();t.length>0&&(null===this.sysNode?(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0])):(this.onTreeNodeClick("",this.sysNode.id,this.sysNode),e.selectNode(this.sysNode)))},onTreeNodeClick:function(e,t,n){var r=this;this.sysNode=n,"归档文件"===n.name?this.showInfoView=!1:this.showInfoView=!0,this.$nextTick((function(e){r.getExpenseType(n)}))},getExpenseType:function(e){this.vo=e,this.chooseId=this.vo.id,this.categoryFullId=null===this.vo.categoryFullId||""===this.vo.categoryFullId||void 0===this.vo.categoryFullId?this.vo.id:this.vo.categoryFullId,this.categoryFullName=null===this.vo.categoryFullName||""===this.vo.categoryFullName||void 0===this.vo.categoryFullName?this.vo.categoryName:this.vo.categoryFullName+"-"+this.vo.categoryName,0!==this.vo.accessRights&&(this.activeId=this.vo.accessRights,this.activeText=this.vo.deptNames,this.activedeptIds=this.vo.deptIds)},onBasicFormBeforeOpen:function(e,t,n){t.categoryFullName=this.categoryFullName,t.categoryFullId=""===this.categoryFullId?t.id:this.categoryFullId+"-"+t.id,t.status=null===t.status?1:t.status,t.accessRights=null===t.accessRights?0:t.accessRights,t.categoryLevel=null===this.vo.categoryLevel||void 0===this.vo.categoryLevel?1:Number(this.vo.categoryLevel)+1,t.parentId=this.moduleInfo.id,n.resolve(!0)},onBasicFormOpened:function(e,t){$(".sel-icon .el-radio-button__orig-radio:checked").next(".el-radio-button__inner").css("background-color",t.iconColor)},onBasicFormBeforeSubmit:function(e,t,n){console.log(e,t,n)},onBasicFormSubmited:function(e,t){console.log(e,t)}}},Jo=Vo,Ko=(n(6272),m(Jo,Io,zo,!1,null,"3f95727c",null)),Qo=Ko.exports,Zo=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"gdgz"},[t("PageContent",{attrs:{title:e.$tx("gwgl.setting.gdgzTitle","自动归档规则设置")}},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body el-table__body-top el-table__body_no",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"autoToArch",expression:"'autoToArch'"}]},[e._v("自动归档")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{model:{value:e.vo.autoToArch,callback:function(t){e.$set(e.vo,"autoToArch",t)},expression:"vo.autoToArch"}},[t("el-radio",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"open",expression:"'open'"}],attrs:{label:"1"}},[e._v("开 启")]),t("el-radio",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],attrs:{label:"0"}},[e._v("关 闭")])],1)],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"archiveFileType",expression:"'archiveFileType'"}]},[e._v("归档文件类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"归档文件类型",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-checkbox-group",{attrs:{name:"fileType"},model:{value:e.fileType,callback:function(t){e.fileType=t},expression:"fileType"}},e._l(e.fileTypeList,(function(n,r){return t("el-checkbox",{key:r,attrs:{label:n}},[e._v(e._s(n))])})),1)],1)]}}])})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"completedDocuments",expression:"'completedDocuments'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{rowspan:"2"}},[e._v("已办结文件")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"afterCompletion",expression:"'afterCompletion'"}],staticClass:"td-lable"},[e._v("办结后")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"doneRetainDay"},model:{value:e.vo.doneRetainDay,callback:function(t){e.$set(e.vo,"doneRetainDay",t)},expression:"vo.doneRetainDay"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayFile",expression:"'dayFile'"}],staticClass:"td-lable"},[e._v("天归档")])],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"noCompletedDocuments",expression:"'noCompletedDocuments'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{rowspan:"2"}},[e._v("未办结文件")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"forCreate",expression:"'forCreate'"}],staticClass:"td-lable"},[e._v("自创建起")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"todoRetainDay"},model:{value:e.vo.todoRetainDay,callback:function(t){e.$set(e.vo,"todoRetainDay",t)},expression:"vo.todoRetainDay"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayFile",expression:"'dayFile'"}],staticClass:"td-lable"},[e._v("天归档")])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"afterFile",expression:"'afterFile'"}],staticClass:"td-lable"},[e._v("归档后")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"doneRetainDayDel"},model:{value:e.vo.doneRetainDayDel,callback:function(t){e.$set(e.vo,"doneRetainDayDel",t)},expression:"vo.doneRetainDayDel"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayDel",expression:"'dayDel'"}],staticClass:"td-lable"},[e._v("天删除")])],1),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{staticClass:"td-lable"},[e._v(e._s(e.$tx("gwgl.setting.afterFile")))]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"todoRetainDayDel"},model:{value:e.vo.todoRetainDayDel,callback:function(t){e.$set(e.vo,"todoRetainDayDel",t)},expression:"vo.todoRetainDayDel"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayDel",expression:"'dayDel'"}],staticClass:"td-lable"},[e._v("天删除")])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e._v(e._s(e.$tx("gwgl.components.fileAccessPermission")))]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{model:{value:e.vo.accessRightsType,callback:function(t){e.$set(e.vo,"accessRightsType",t)},expression:"vo.accessRightsType"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"allPersonnel",expression:"'allPersonnel'"}],attrs:{label:0,"module-code":"components"}},[e._v("全体人员可阅")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"originalHandler",expression:"'originalHandler'"}],attrs:{label:1,"module-code":"components"}},[e._v("原经办人可阅")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"handlerDesignated",expression:"'handlerDesignated'"}],attrs:{label:2,"module-code":"components"}},[e._v("原经办人+指定人可阅")])],1)],1)]),2===e.vo.accessRightsType?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"appoints",expression:"'appoints'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{moduleCode:"components"}},[e._v("指定类型")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{on:{change:e.changAppoints},model:{value:e.vo.appoints,callback:function(t){e.$set(e.vo,"appoints",t)},expression:"vo.appoints"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyGroup",expression:"'specifyGroup'"}],attrs:{label:"1","module-code":"components"}},[e._v("指定群组")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyDepart",expression:"'specifyDepart'"}],attrs:{label:"2","module-code":"components"}},[e._v("指定部门")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyPerson",expression:"'specifyPerson'"}],attrs:{label:"3","module-code":"components"}},[e._v("指定人员")])],1)],1)]):e._e(),2===e.vo.accessRightsType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),"1"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectGroup",expression:"'selectGroup'"}],attrs:{moduleCode:"components"}},[e._v("选择群组")]):e._e(),"2"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectDepart",expression:"'selectDepart'"}],attrs:{moduleCode:"components"}},[e._v("选择部门")]):e._e(),"3"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectPerson",expression:"'selectPerson'"}],attrs:{moduleCode:"components"}},[e._v("选择人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.errorName(e.vo.appoints),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"1"===e.vo.appoints,expression:"vo.appoints === '1'"},{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3325374032)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.errorName(e.vo.appoints),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"2"===e.vo.appoints,expression:"vo.appoints === '2'"},{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{"org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3183607047)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.errorName(e.vo.appoints),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"3"===e.vo.appoints,expression:"vo.appoints === '3'"},{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{readonly:"readonly",multiple:"true",type:"textarea",name:"deptIds","root-org-code":e.vo.orgCode},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3921191426)})],1)]):e._e()])])])])])],1),t("PageContent",{attrs:{title:e.$tx("gwgl.setting.gdgzTitle2","自动/手动归档提醒设置")}},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"reminderMethod",expression:"'reminderMethod'"}]},[e._v("提醒方式")])]),t("td",{staticClass:"el-table__cell tdcont",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"提醒方式",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-checkbox-group",{model:{value:e.remindType,callback:function(t){e.remindType=t},expression:"remindType"}},[t("el-checkbox",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"textMessage",expression:"'textMessage'"}],attrs:{label:"0","module-code":"gwjh"}},[e._v("短信")]),t("el-checkbox",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"email",expression:"'email'"}],attrs:{label:"3"}},[e._v("邮件")])],1)],1)]}}])})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"remindPersonName",expression:"'remindPersonName'"}]},[e._v("短信接收人员")])]),t("td",{staticClass:"el-table__cell tdcont",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{readonly:"readonly",multiple:"true",type:"textarea",name:"remindPersonName"},model:{value:e.vo.remindPersonName,callback:function(t){e.$set(e.vo,"remindPersonName",t)},expression:"vo.remindPersonName"}})],1)]}}])})],1)])])])])])]),t("div",{staticStyle:{height:"100px"},attrs:{slot:"footer"},slot:"footer"},[t("div",{staticStyle:{"margin-bottom":"10px","font-size":"var(--portalFontSize13)"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"footerText",expression:"'footerText'"}],staticStyle:{color:"red"}},[e._v("注:天数为0,则不进行自动归档")]),t("div",[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"save",expression:"'save'"}],attrs:{plain:"",icon:"el-icon-check"},on:{click:e.submitRule}},[e._v("保 存")])],1)])])],1)],1)},Xo=[];function ei(e){return ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(e)}function ti(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ti=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==ei(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(ei(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function ni(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ri(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ni(o,r,a,i,s,"next",e)}function s(e){ni(o,r,a,i,s,"throw",e)}i(void 0)}))}}var ai={components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"setting",show:!1,formtype:"",loginUser:this.$store.getters.loginUser,fileType:[],remindType:[],activeId:null,activeText:"",activedeptIds:"",vo:{accessRightsType:0,appoints:"1",autoRemind:0,autoToArch:"0",deptIds:"",deptOrName:"",doneRetainDay:0,doneRetainDayDel:0,todoRetainDay:0,todoRetainDayDel:0,fileType:"",id:"",orgCode:"",orgName:"",passenger:{},remindPersonName:"",remindPersonid:"",remindScope:0,remindType:[]},fileTypeList:[this.$tx("gwgl.portlet.unitDocument","单位发文"),this.$tx("gwgl.portlet.readingOffice","收文阅办"),this.$tx("gwgl.portlet.receiptDocuments","部门收文"),this.$tx("gwgl.portlet.departmentalLetter","部门便函"),this.$tx("gwgl.portlet.solicitationOpinions","意见征集"),this.$tx("gwgl.portlet.requestInstructions","请示报告"),this.$tx("gwgl.portlet.documentCirculation","文件传阅")]}},computed:{},watch:{},created:function(){self.$bus.emit("showNavSearch",!1),this.querydata(),this.getFileTypeList()},mounted:function(){},beforeDestroy:function(){self.$bus.emit("showNavSearch",!0)},methods:{getFileTypeList:function(){var e=this;this.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"/gwgl/gdwj/getFileTypeList"}).then((function(t){"success"===t.code&&(e.fileTypeList=t.body.fileTypeList)}))},errorName:function(e){var t="";return"1"===e&&(t=this.$tx("gwgl.setting.group","群组")),"2"===e&&(t=this.$tx("gwgl.setting.depart","部门")),"3"===e&&(t=this.$tx("gwgl.setting.person","人员")),t},changAppoints:function(e){this.vo.deptIds="",this.vo.deptOrName="",e===this.activeId&&(this.vo.deptIds=this.activedeptIds,this.vo.deptOrName=this.activeText)},onSelectSuborgCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectWorkgroupCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(r+="、"),""!==n&&(n+="、"),n+=e.name,r+=e.personId})),"remindPersonName"===t.name?(this.vo.remindPersonid="",this.vo.remindPersonName="",this.$set(this.vo,"remindPersonName",n),this.$set(this.vo,"remindPersonid",r)):"deptIds"===t.name&&(this.$set(this.vo,"deptOrName",n),this.$set(this.vo,"deptIds",r))},querydata:function(){var e=this;return ri(ti().mark((function t(){var n,r;return ti().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=[{compare:"=",field:"orgCode",merge:!0,value:e.loginUser.orgCode}],t.next=3,e.$app.querydata("/gwgl/gdgz/querydata",n);case 3:r=t.sent,"success"===r.code?(r.body.listdata.length>0?(e.formtype="updata",e.vo=r.body.listdata[0],e.fileType=e.vo.fileType.split(","),e.remindType=e.vo.remindType.split(","),"1"===e.vo.appoints&&"2"===e.vo.appoints&&"3"===e.vo.appoints||(e.vo.appoints="1"),2===e.vo.accessRightsType&&(e.activeId=e.vo.appoints,e.activeText=e.vo.deptOrName,e.activedeptIds=e.vo.deptIds)):e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:n,url:"/gwgl/gdgz/addNew"}).then((function(t){"success"===t.code&&(e.formtype="addnew",e.vo.id=t.body.vo.id,e.vo.orgCode=t.body.vo.orgCode,e.vo.orgName=t.body.vo.orgName)})),e.show=!0):(e.show=!0,e.$message.error(r.message));case 5:case"end":return t.stop()}}),t)})))()},submitRule:function(){var e=this;this.formValidate((function(){e.remindType=e.remindType.filter((function(e){return e})),e.vo.remindType=e.remindType.join(),e.fileType=e.fileType.filter((function(e){return e})),e.vo.fileType=e.fileType.join();var t={};"updata"===e.formtype?(t.method="PUT",t.url="/gwgl/gdgz/update"):"addnew"===e.formtype&&(t.method="POST",t.url="/gwgl/gdgz/insert"),0!==e.fileType.length?0!==e.remindType.length?0!==e.vo.remindPersonName.length?e.$http({method:t.method,contentType:"application/x-www-form-urlencoded",data:e.vo,url:t.url}).then((function(t){"success"===t.code?e.$message({message:t.message,type:"success"}):e.$message.error(t.message)})):e.$alert(e.$tx("gwgl.messages.submitAlert3","请选择短信接收人员"),e.$tx("gwgl.messages.submitAlertTip","温馨提示"),{confirmButtonText:e.$tx("pageBtns.sure","确 定")}):e.$alert(e.$tx("gwgl.messages.submitAlert2","请选择提醒方式"),e.$tx("gwgl.messages.submitAlertTip","温馨提示"),{confirmButtonText:e.$tx("pageBtns.sure","确 定")}):e.$alert(e.$tx("gwgl.messages.submitAlert","请选择归档文件类型"),e.$tx("gwgl.messages.submitAlertTip","温馨提示"),{confirmButtonText:e.$tx("pageBtns.sure","确 定")})}))}}},oi=ai,ii=(n(5222),m(oi,Zo,Xo,!1,null,"2c30e9dc",null)),si=ii.exports,li=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.searchTab.length>0?t("div",{staticClass:"tabbar"},[t("el-radio-group",{attrs:{size:"small"},model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.searchTab,(function(n,r){return t("el-radio-button",{key:r,attrs:{label:n.type}},[t("div",{staticClass:"tabbartext",on:{click:function(t){return e.tabClickHandler(n)}}},[e._v(e._s(n.title))])])})),1)],1):e._e(),t("div",{staticClass:"search-box"},[t("DepTime",{attrs:{"dept-id":e.selectDept,"select-type":e.selectType,datearr:e.chooseDate,"report-type":e.reportType,"search-type":e.searchType},on:{changeTypeData:e.changeTypeData,dateInit:e.dateInit,changeDeptData:e.changeDeptData}}),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"tj",expression:"'tj'"}],staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.getReportList}},[e._v("统计")])],1),t("div",{staticClass:"statistics_title",staticStyle:{margin:"20px 0px 10px"}},[e._v(e._s(e.title))]),t("div",{staticClass:"echart-box"},[e.loading?e._e():t("bar",{attrs:{"name-max-length":7,left:"2%",right:"5%","x-label-rotate":30,"echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata,"toolbox-show":!0,"toolbox-orient":"horizontal"}})],1),t("div",{staticClass:"table-box"},[e.loading?e._e():t("dataTable",{attrs:{"row-click-handler":e.rowClickHandler,"is-download":!0,"list-tb":e.listTb,"list-data":e.listData,"choose-date":e.chooseDate,"file-name":e.title}})],1)])},di=[],ci=function(){var e=this,t=e._self._c;return t("div",{staticClass:"top-line"},[1===e.searchType&&"nw"===e.reportType||2===e.searchType&&"bwxl"===e.reportType||2===e.searchType&&"cql"===e.reportType?t("div",[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"selectDepart",expression:"'selectDepart'"}],staticClass:"label"},[e._v("选择部门:")]),t("el-select",{attrs:{placeholder:e.$tx("gwgl.tjbg.pleaseSelect","请选择")},on:{change:e.changeDept},model:{value:e.deptId,callback:function(t){e.deptId=t},expression:"deptId"}},e._l(e.dept,(function(e,n){return t("el-option",{key:n,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),1!==e.searchType||"nw"!==e.reportType?t("div",[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileType",expression:"'fileType'"}],staticClass:"label"},[e._v("文件类型:")]),t("el-select",{attrs:{placeholder:e.$tx("gwgl.tjbg.pleaseSelect","请选择")},on:{change:e.changeType},model:{value:e.selectType,callback:function(t){e.selectType=t},expression:"selectType"}},e._l(e.fileList,(function(e,n){return t("el-option",{key:n,attrs:{label:e.title,value:e.id}})})),1)],1):e._e(),t("div",[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"tjzq",expression:"'tjzq'"}],staticClass:"label"},[e._v("统计周期:")]),"nw"!==e.reportType&&"bw"!==e.reportType||2!==e.searchType?t("el-date-picker",{staticStyle:{width:"280px"},attrs:{type:"daterange","range-separator":e.$tx("common.to","至"),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":e.$tx("gwgl.tjbg.startDate","开始日期"),"end-placeholder":e.$tx("gwgl.tjbg.endDate","结束日期")},on:{change:e.changeTime},model:{value:e.datearr,callback:function(t){e.datearr=t},expression:"datearr"}}):t("el-date-picker",{staticStyle:{width:"280px"},attrs:{type:"monthrange","range-separator":e.$tx("common.to","至"),format:"yyyy-MM","value-format":"yyyy-MM","start-placeholder":e.$tx("gwgl.tjbg.startMonth","开始月份"),"end-placeholder":e.$tx("gwgl.tjbg.endMonth","结束月份")},on:{change:e.changeTime},model:{value:e.datearr,callback:function(t){e.datearr=t},expression:"datearr"}})],1)])},ui=[],pi={components:{},props:{reportType:{type:String,default:function(){return""}},deptId:{type:String,default:function(){return""}},selectType:{type:String,default:function(){return""}},searchType:{type:Number,default:function(){return 1}},datearr:{type:Array,default:function(){return[]}}},data:function(){return{loginUser:this.$store.getters.loginUser,selectDept:"",chooseDate:[],fileList:[{title:this.$tx("gwgl.portlet.all","全部"),id:""},{title:this.$tx("gwgl.portlet.unitDocument","单位发文"),id:this.$tx("gwgl.portlet.unitDocument","单位发文")},{title:this.$tx("gwgl.portlet.readingOffice","收文阅办"),id:this.$tx("gwgl.portlet.readingOffice","收文阅办")},{title:this.$tx("gwgl.portlet.receiptDocuments","部门收文"),id:this.$tx("gwgl.portlet.receiptDocuments","部门收文")},{title:this.$tx("gwgl.portlet.documentCirculation","文件传阅"),id:this.$tx("gwgl.portlet.documentCirculation","文件传阅")},{title:this.$tx("gwgl.portlet.departmentalLetter","部门便函"),id:this.$tx("gwgl.portlet.departmentalLetter","部门便函")},{title:this.$tx("gwgl.portlet.solicitationOpinions","意见征集"),id:this.$tx("gwgl.portlet.solicitationOpinions","意见征集")},{title:this.$tx("gwgl.portlet.requestInstructions","请示报告"),id:this.$tx("gwgl.portlet.requestInstructions","请示报告")}],dept:[],startT:"",endT:""}},computed:{},watch:{searchType:function(){this.selectDept="",this.selectType=""}},created:function(){this.getdept()},mounted:function(){},methods:{changeDept:function(e){var t="";this.dept.forEach((function(n){n.id===e&&(t=n.name)})),this.selectDept=this.deptId,this.$emit("changeDeptData",{selectDept:this.selectDept,deptName:t})},changeType:function(){this.$emit("changeTypeData",this.selectType)},changeTime:function(){this.chooseDate=this.datearr,this.$emit("dateInit",this.chooseDate)},getdept:function(){var e=this;this.$http({url:"base/organMgr/findAllOrganByOrgCode",method:"GET",contentType:"application/x-www-form-urlencoded",params:{orgCode:this.loginUser.orgCode,subOrgLevel:2}}).then((function(t){if("success"===t.code){var n=t.body.listdata.filter((function(e){return 2===e.orgLevel}));n.unshift({name:e.$tx("gwgl.tjbg.allDepart","所有部门"),id:""}),e.dept=n}else e.$message.error(t.message)}))}}},mi=pi,fi=(n(3747),m(mi,ci,ui,!1,null,"39239143",null)),hi=fi.exports,gi=function(){var e=this,t=e._self._c;return t("div",[t("el-row",[t("el-col",{staticStyle:{"text-align":"right",height:"34px","margin-bottom":"10px"},attrs:{span:24}},[e.isDownload?t("el-button",{directives:[{name:"table-toxls",rawName:"v-table-toxls",value:e.views,expression:"views"}],attrs:{plain:"",size:"small","file-name":e.chooseDate[0]+e.$tx("gwgl.common.to","至")+e.chooseDate[1]+e.fileName}},[t("svg",e._g({staticClass:"svg-icon",attrs:{"aria-hidden":"true"}},e.$listeners),[t("use",{attrs:{"xlink:href":"#icon-export"}})]),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"export",expression:"'export'"}]},[e._v("导出")])]):e._e()],1)],1),t("div",{staticClass:"teble-div"},[t("el-table",{staticStyle:{width:"100%"},attrs:{id:"views",data:e.listData,border:""},on:{"row-click":e.rowClickHandler}},[t("el-table-column",{attrs:{type:"index",label:e.$tx("fields.index","序号"),width:"45",align:"center"}}),e._l(e.listTb,(function(e,n){return t("el-table-column",{key:n,attrs:{prop:e.prop,label:e.title,align:e.align?e.align:"center","show-overflow-tooltip":!0}})}))],2)],1)],1)},yi=[],_i={components:{},props:{listTb:{type:Array,default:function(){return[]}},listData:{type:Array,default:function(){return[]}},fileName:{type:String,default:function(){return""}},isDownload:{type:Boolean,default:function(){return!0}},rowClickHandler:{type:Function,default:null},chooseDate:{type:Array,default:function(){return["",""]}}},data:function(){return{lm:this.$route.meta}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{}},vi=_i,bi=(n(9108),m(vi,gi,yi,!1,null,"72227ab2",null)),wi=bi.exports;function Mi(e){return Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(e)}function Li(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Li=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Mi(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Mi(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Ti(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ti(o,r,a,i,s,"next",e)}function s(e){Ti(o,r,a,i,s,"throw",e)}i(void 0)}))}}var Di=n(5093),ki={components:{DepTime:hi,dataTable:wi},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"tjbg",titleList:{nw:{text:this.$tx("gwgl.tjbg.essayWritingNum","拟文数量统计"),url:"/platStatistics/doneAndtodo/startingStatistics",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byType","按类型"),xUnit:{name:this.$tx("gwgl.tjbg.fileType2","文件类型"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.qwNum","起文数量(个)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.gdgl.fileType2","文件类型"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.qwNum2","起文数量(个)"),prop:"num"}]},{type:2,title:this.$tx("gwgl.tjbg.byTime","按时间"),xUnit:{name:this.$tx("gwgl.tjbg.month","月份"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.qwNum","起文数量(个)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"line",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.month","月份"),prop:"createDate",align:"left"},{title:this.$tx("gwgl.tjbg.qwNum2","起文数量"),prop:"num"}]}]},bw:{text:this.$tx("gwgl.tjbg.officeDocumentNum","办文次数统计"),url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byDepart","按部门"),xUnit:{name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.officeDocumentNum1","办文次数(次)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.bwNum","办文次数"),prop:"num"}]},{type:2,title:this.$tx("gwgl.tjbg.byTime","按时间"),xUnit:{name:this.$tx("gwgl.tjbg.month","月份"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.officeDocumentNum1","办文次数(次)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"line",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.month","月份"),prop:"createDate",align:"left"},{title:this.$tx("gwgl.tjbg.bwNum","办文次数"),prop:"num"}]}]},bwxl:{text:this.$tx("gwgl.tjbg.officeDocumentXlNum"),url:"/platStatistics/doneAndtodo/handlingEfficiencyStatistics",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byDepart","按部门"),xUnit:{name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgBwTime2","平均办文时长(小时)"),minInterval:1,align:"end",size:"12",position:"left",lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgBwTime","平均办文时长"),prop:"avgMinute"}]},{type:2,title:this.$tx("gwgl.tjbg.byPerson","按人员"),xUnit:{name:this.$tx("gwgl.tjbg.name","姓名"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgBwTime2","平均办文时长(小时)"),minInterval:1,align:"end",size:"12",position:"left",lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.name","姓名"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgBwTime","平均办文时长"),prop:"avgMinute"}]}]},thl:{text:this.$tx("gwgl.tjbg.officeDocumentHtNum"),url:"/platStatistics/doneAndtodo/returnRateStatistics",searchTab:[]},cql:{text:this.$tx("gwgl.tjbg.officeDocumentCqlNum"),url:"/platStatistics/doneAndtodo/statisticsOfOverdueRate",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byDepart","按部门"),xUnit:{name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgCql2","平均超期率(%)"),align:"end",size:"12",position:"left",lineColor:"#000",labelFormatter:"{value}%"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgCql","平均超期率"),prop:"lv"}]},{type:2,title:this.$tx("gwgl.tjbg.byPerson","按人员"),xUnit:{name:this.$tx("gwgl.tjbg.name","姓名"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgCql2","平均超期率(%)"),align:"end",size:"12",position:"left",lineColor:"#000",labelFormatter:"{value}%"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.name","姓名"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgCql","平均超期率"),prop:"lv"}]}]}},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{name:"",align:"end",size:"12"},yUnit:{name:"",align:"end",size:"12",lineColor:"#000"},reportType:"nw",title:this.$tx("gwgl.tjbg.essayWritingNum","拟文数量统计"),searchTab:[],searchType:1,url:"",selectDept:"",chooseDate:[],selectType:"",listTb:[],listData:[],xdata:[],ydata:[],loading:!1,tooltipFormat:null,deptName:"所有部门"}},computed:{},watch:{searchType:function(e){this.title=this.titleList[this.reportType].text,"nw"!==this.reportType&&"bw"!==this.reportType||2!==e?this.initDate("day"):this.initDate("month"),"bwxl"!==this.reportType&&"cql"!==this.reportType||2!==this.searchType?(this.selectDept="",this.selectType="",this.deptName=this.$tx("gwgl.tjbg.allDepart","所有部门")):this.listTb[0].title=this.$tx("gwgl.tjbg.name","姓名"),this.getReportList()}},created:function(){this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),this.$bus.emit("showNavSearch",!1),this.reportType=this.$route.meta.params?this.$route.meta.params:"nw",this.title=this.titleList[this.reportType].text,this.searchTab=this.titleList[this.reportType].searchTab,this.url=this.titleList[this.reportType].url,"thl"===this.reportType?(this.xUnit={name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},this.yUnit={name:this.$tx("gwgl.tjbg.avgThl2","平均退回率(%)"),align:"end",size:"12",position:"left",lineColor:"#000",labelFormatter:"{value}%"},this.listTb=[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgThl","平均退回率:"),prop:"lv"}]):(this.xUnit=this.titleList[this.reportType].searchTab[0].xUnit,this.yUnit=this.titleList[this.reportType].searchTab[0].yUnit,this.listTb=this.titleList[this.reportType].searchTab[0].td),this.initDate("day"),this.getReportList()},mounted:function(){},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},methods:{echartsClick:function(){return!1},rowClickHandler:function(e,t,n){if("bwxl"!==this.reportType&&"cql"!==this.reportType||1!==this.searchType)return!1;""!==e.id&&void 0!==e.id&&(this.selectDept=e.id,this.searchType=2,this.deptName=e.name,this.xUnit={name:this.$tx("gwgl.tjbg.name","姓名"),align:"end",size:"12"},this.yUnit="bwxl"===this.reportType?{name:this.$tx("gwgl.tjbg.avgBwTime2","平均办文时长(小时)"),align:"end",size:"12",position:"left",lineColor:"#000"}:{name:this.$tx("gwgl.tjbg.avgBwTime3","超期率"),align:"center",size:"12",position:"left",lineColor:"#000"})},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1);if("day"===e)this.chooseDate=[Di().add(-30,"days").format("YYYY-MM-DD"),Di().format("YYYY-MM-DD")];else if("month"===e){var a=new Date(t.setMonth(r-12)).getFullYear(),o=new Date(t.setMonth(r-12)).getMonth()+1>=10?new Date(t.setMonth(r-12)).getMonth()+1:"0"+(new Date(t.setMonth(r-12)).getMonth()+1),i=a+"-"+o,s=n+"-"+r;this.chooseDate=[i,s]}},getReportList:function(){var e=this;return xi(Li().mark((function t(){var n,r,a;return Li().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n="",t.t0=e.selectType,t.next=""===t.t0?4:"单位发文"===t.t0?6:"部门收文"===t.t0?8:"收文阅办"===t.t0?10:"文件传阅"===t.t0?12:"部门便函"===t.t0?14:"意见征集"===t.t0?16:"请示报告"===t.t0?18:20;break;case 4:return n="fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg",t.abrupt("break",22);case 6:return n="fawen",t.abrupt("break",22);case 8:return n="shouwen",t.abrupt("break",22);case 10:return n="shouwen",t.abrupt("break",22);case 12:return n="wjcy",t.abrupt("break",22);case 14:return n="bmbh",t.abrupt("break",22);case 16:return n="yjzj",t.abrupt("break",22);case 18:return n="qsbg",t.abrupt("break",22);case 20:return n="fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg",t.abrupt("break",22);case 22:return r={deptId:e.selectDept,endTime:e.chooseDate[1],startTime:e.chooseDate[0],type:e.searchType,fileName:e.selectType,module:n},e.loading=!0,e.listData=[],t.next=27,e.$app.listdata(e.url,r);case 27:a=t.sent,"success"===a.code&&e.mergeList(a.body.listdata),e.loading=!1;case 30:case"end":return t.stop()}}),t)})))()},mergeList:function(e){var t=this,n=this,r=[],a=[];e.forEach((function(e){"nw"!==t.reportType&&"bw"!==t.reportType||(1===t.searchType?(r.push(e.name),a.push(e.num)):2===t.searchType&&(r.push(e.createDate),a.push(e.num))),"bwxl"===t.reportType&&(r.push(e.name),a.push(JSON.parse(JSON.stringify(e.avgMinute))/60),e.avgMinute=t.mergeMinute(e.avgMinute)),"thl"!==t.reportType&&"cql"!==t.reportType||(r.push(e.name),a.push((100*e.lv).toFixed(2)),e.lv=(100*e.lv).toFixed(2)+"%")})),"thl"===this.reportType&&(this.tooltipFormat=function(e){return e[0].name+'</br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+e[0].color+';"></span>'+this.$tx("gwgl.tjbg.avgThl","平均退回率:")+e[0].data+"%"}),"cql"===this.reportType&&(this.tooltipFormat=function(e){return e[0].name+'</br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+e[0].color+';"></span>'+this.$tx("gwgl.tjbg.avgCql","平均超期率")+":"+e[0].data+"%"},2===this.searchType&&(this.title=this.deptName+this.$tx("gwgl.tjbg.title","-办文超期前十排名"))),"bwxl"===this.reportType&&(this.tooltipFormat=function(e){return e[0].name+'</br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+e[0].color+';"></span>'+this.$tx("gwgl.tjbg.avgBwTime","平均办文时长")+":"+n.mergeMinute(60*e[0].data)},2===this.searchType&&(this.title=this.deptName+this.$tx("gwgl.tjbg.title2","-办文效率后十名"))),this.xdata=r,this.ydata=[a],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?this.$tx("gwgl.tjbg.mergeMinute",{s:l},"seconds + '秒'"):this.$tx("gwgl.tjbg.mergeMinute1",{m:i,s:l}," minutes + '分钟' + seconds + '秒'"):this.$tx("gwgl.tjbg.mergeMinute2",{h:a,m:i,s:l},"hours + '小时' + minutes + '分钟' + seconds + '秒'"):this.$tx("gwgl.tjbg.mergeMinute3",{d:n,h:a,m:i,s:l},"days + '天' + hours + '小时' + minutes + '分钟' + seconds + '秒'"),d},changeDeptData:function(e){this.selectDept=e.selectDept,this.deptName=e.deptName},dateInit:function(e){this.chooseDate=e},changeTypeData:function(e){this.selectType=e},tabClickHandler:function(e){this.searchType=e.type,this.chartType=e.chartType,this.xUnit=e.xUnit,this.yUnit=e.yUnit,this.listTb=e.td,this.selectType=""}}},Si=ki,Yi=(n(5880),m(Si,li,di,!1,null,"05c6b150",null)),ji=Yi.exports;function Ci(e){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(e)}function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach((function(t){Pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pi(e,t,n){return(t=Ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(e){var t=Hi(e,"string");return"symbol"==Ci(t)?t:t+""}function Hi(e,t){if("object"!=Ci(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fi={GwglFilingSystem:h,GwglFlowList:x,GwglTbColumns:ye,GwglZdzggToForm:Be,GwglModuleIndex:$e,GwglFileLevel:at,GwglGdgl:jt,GwglGwjh:sr,GwglGwjhReceiptFile:kn,GwglPortletBwsctj:Ra,GwglPortletBwsltj:ro,GwglPortletGwcx:fo,GwglPortletGwmb:To,GwglPortletOfficial:$o,GwglSettingGdgz:si,GwglSettingFlgl:Qo,GwglTjbg:ji,GwglFileForm:ht,GwglGwjhCommonGroupsIndex:Br,GwglGwjhOrgOrganizationIndex:ka,GwglInternalCommsInfo:Ze},Ai=function e(t){e.installed||(e.installed=!0,Object.keys(Fi).forEach((function(e){t.component(e,Fi[e])})))};"undefined"!==typeof window&&window.Vue&&Ai(window.Vue);var $i=n(4707),Ii=Ni(Ni({install:Ai},Fi),{},{$messages:$i}),zi=Ii}(),r}()}));
|
|
307
|
+
function S(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var Y="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},j=Y.__VUE_DEVTOOLS_GLOBAL_HOOK__;function C(e){j&&(e._devtoolHook=j,j.emit("vuex:init",e),j.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){j.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){j.emit("vuex:action",e,t)}),{prepend:!0}))}function O(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function N(e){return null!==e&&"object"===typeof e}function P(e){return e&&"function"===typeof e.then}function E(e,t){return function(){return e(t)}}var H=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},F={namespaced:{configurable:!0}};F.namespaced.get=function(){return!!this._rawModule.namespaced},H.prototype.addChild=function(e,t){this._children[e]=t},H.prototype.removeChild=function(e){delete this._children[e]},H.prototype.getChild=function(e){return this._children[e]},H.prototype.hasChild=function(e){return e in this._children},H.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},H.prototype.forEachChild=function(e){O(this._children,e)},H.prototype.forEachGetter=function(e){this._rawModule.getters&&O(this._rawModule.getters,e)},H.prototype.forEachAction=function(e){this._rawModule.actions&&O(this._rawModule.actions,e)},H.prototype.forEachMutation=function(e){this._rawModule.mutations&&O(this._rawModule.mutations,e)},Object.defineProperties(H.prototype,F);var A=function(e){this.register([],e,!1)};function I(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;I(e.concat(r),t.getChild(r),n.modules[r])}}A.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},A.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},A.prototype.update=function(e){I([],this.root,e)},A.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var a=new H(t,n);if(0===e.length)this.root=a;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],a)}t.modules&&O(t.modules,(function(t,a){r.register(e.concat(a),t,n)}))},A.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},A.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var z;var R=function(e){var t=this;void 0===e&&(e={}),!z&&"undefined"!==typeof window&&window.Vue&&ne(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new z,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,i=o.dispatch,s=o.commit;this.dispatch=function(e,t){return i.call(a,e,t)},this.commit=function(e,t,n){return s.call(a,e,t,n)},this.strict=r;var l=this._modules.root.state;q(this,l,[],this._modules.root),U(this,l),n.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.devtools:z.config.devtools;d&&C(this)},W={state:{configurable:!0}};function G(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function B(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;q(e,n,[],e._modules.root,!0),U(e,n,t)}function U(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};O(a,(function(t,n){o[n]=E(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var i=z.config.silent;z.config.silent=!0,e._vm=new z({data:{$$state:t},computed:o}),z.config.silent=i,e.strict&&X(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),z.nextTick((function(){return r.$destroy()})))}function q(e,t,n,r,a){var o=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!o&&!a){var s=ee(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){z.set(s,l,r.state)}))}var d=r.context=V(e,i,n);r.forEachMutation((function(t,n){var r=i+n;K(e,r,t,d)})),r.forEachAction((function(t,n){var r=t.root?n:i+n,a=t.handler||t;Q(e,r,a,d)})),r.forEachGetter((function(t,n){var r=i+n;Z(e,r,t,d)})),r.forEachChild((function(r,o){q(e,t,n.concat(o),r,a)}))}function V(e,t,n){var r=""===t,a={dispatch:r?e.dispatch:function(n,r,a){var o=te(n,r,a),i=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,i)},commit:r?e.commit:function(n,r,a){var o=te(n,r,a),i=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,i,s)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return J(e,t)}},state:{get:function(){return ee(e.state,n)}}}),a}function J(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,r)===t){var o=a.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function K(e,t,n,r){var a=e._mutations[t]||(e._mutations[t]=[]);a.push((function(t){n.call(e,r.state,t)}))}function Q(e,t,n,r){var a=e._actions[t]||(e._actions[t]=[]);a.push((function(t){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return P(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}function Z(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function X(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function ee(e,t){return t.reduce((function(e,t){return e[t]}),e)}function te(e,t,n){return N(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function ne(e){z&&e===z||(z=e,S(z))}W.state.get=function(){return this._vm._data.$$state},W.state.set=function(e){0},R.prototype.commit=function(e,t,n){var r=this,a=te(e,t,n),o=a.type,i=a.payload,s=(a.options,{type:o,payload:i}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},R.prototype.dispatch=function(e,t){var n=this,r=te(e,t),a=r.type,o=r.payload,i={type:a,payload:o},s=this._actions[a];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(d){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(d){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(d){0}t(e)}))}))}},R.prototype.subscribe=function(e,t){return G(e,this._subscribers,t)},R.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return G(n,this._actionSubscribers,t)},R.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},R.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},R.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),q(this,this.state,e,this._modules.get(e),n.preserveState),U(this,this.state)},R.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=ee(t.state,e.slice(0,-1));z.delete(n,e[e.length-1])})),B(this)},R.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},R.prototype.hotUpdate=function(e){this._modules.update(e),B(this,!0)},R.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(R.prototype,W);ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=se(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof a?a.call(this,t,n):t[a]},n[r].vuex=!0})),n})),ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=se(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n}));var re=ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;a=e+a,n[r]=function(){if(!e||se(this.$store,"mapGetters",e))return this.$store.getters[a]},n[r].vuex=!0})),n}));ie((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=se(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n}));function ae(e){return oe(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function oe(e){return Array.isArray(e)||N(e)}function ie(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function se(e,t,n){var r=e._modulesNamespaceMap[n];return r}function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return(t=pe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e){var t=me(e,"string");return"symbol"==le(t)?t:t+""}function me(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var fe={components:{},props:{row:{type:Object,default:function(){return{}}},column:{type:Object,default:function(){return{}}}},data:function(){return{updatecolumn:!0,enevlelist:[]}},computed:ce({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("loadEnevlelist",this.loadEnevlelist);var e=sessionStorage.getItem(this.loginUser.orgCode+"_LEVEL");this.enevlelist=e?JSON.parse(e):[]},mounted:function(){},beforeDestroy:function(){this.$bus.off("loadEnevlelist",this.loadEnevlelist)},methods:{fileSetting:function(){this.$bus.emit("fileSetting",this.row)},editorForm:function(){this.$bus.emit("editorForm",this.row)},loadEnevlelist:function(){var e=this,t=sessionStorage.getItem(this.loginUser.orgCode+"_LEVEL");this.enevlelist=t?JSON.parse(t):[],this.updatecolumn=!1,this.$nextTick((function(){e.updatecolumn=!0}))},getEnevle:function(e){var t=this,n=null;return this.enevlelist.forEach((function(e){t.row.elvVal!==e.eLevel&&t.row.elevel!==e.eName&&t.row.flELevel!==e.eLevel&&t.row.flELevel!==e.eName||(n=e)})),null!==n?"color"===e?n.color:n.eName:this.row.elevel||this.row.flELevel}}},he=fe,ge=(n(8160),m(he,D,k,!1,null,"01bdb8c2",null)),ye=ge.exports,_e=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wflow-container wflow-container-top-bar"},[t("div",{staticClass:"header-title"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"12px"}},[t("PageHeader",{attrs:{"sys-title":""}}),t("span",{staticStyle:{"margin-top":"10px"}},[e._v(e._s(e.logoTitle))])],1),e.TopBtn.length>0?t("TopBtn",{ref:"TopBtn",attrs:{"top-btn":e.TopBtn}}):e._e()],1),t("div",{staticClass:"wflow-busiattach"},[t("div",{staticClass:"mainform-have-sidebar",style:{width:e.InlineTextEditorShow?"100%":""}},[t("ModuleTextEditor",{ref:"InlineTextEditor",attrs:{"wf-attach-url":e.wfAttachUrl,"office-type":e.officeType,"body-file-editor":2,vo:e.vo}})],1)])])},ve=[],be=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"flex",height:"calc(100vh - 71px)"}},[t("div",{staticStyle:{flex:"1"}},[t("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"btnEcdocSaved",type:"default"},on:{click:e.btnEcdocSavedClick}}),t("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"windowOpen",type:"default"},on:{click:e.windowOpen}}),e.ecweboffice&&2===e.bodyFileEditor&&"ech5"===e.officeType?t("ecweboffice",{ref:"ecweboffice",staticStyle:{width:"100%"},attrs:{"editor-url":e.editorUrl}}):e._e()],1),t("div",{staticStyle:{"background-color":"#fff"}},[e._t("right-sidebar")],2)])},we=[];function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function Le(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Le=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Me(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Me(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Te(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Te(o,r,a,i,s,"next",e)}function s(e){Te(o,r,a,i,s,"throw",e)}i(void 0)}))}}var De={name:"ModuleTextEditor",props:{vo:{type:Object,default:function(){return{}}},wfAttachUrl:{type:String,default:"wfInstance/wfBusiAttach"},officeType:{type:String,default:"ech5"},bodyFileEditor:{type:Number,default:0},curTN:{type:Object,default:function(){return null}}},data:function(){return{bodyFileUrl:"",bodyFileCanEdit:0,ecweboffice:!1,waiting:!1,editorUrl:"",mbDownUrl:""}},computed:{},watch:{},created:function(){this.$options.components["ecweboffice"]=this.$loadComponent("@/wapp/workflow/webOffice/ecweboffice"),null===this.curTN&&(this.curTN=this.$vnode.context.curTN),this.$bus.on("btnOpenWordClick",this.btnOpenWordClick),this.$bus.on("btnNoTitleModifyFlTypeClick",this.btnNoTitleModifyFlTypeClick),this.$bus.on("selectContractTemplate",this.selectContractTemplate)},beforeDestroy:function(){this.$bus.off("btnOpenWordClick",this.btnOpenWordClick),this.$bus.off("btnNoTitleModifyFlTypeClick",this.btnNoTitleModifyFlTypeClick),this.$bus.off("selectContractTemplate",this.selectContractTemplate)},mounted:function(){},methods:{selectContractTemplate:function(e){var t=this;this.mbDownUrl="htgl/htmb/",this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",value:e.wfInstance.orgCode}],url:"htgl/htmb/querydata"}).then((function(n){"success"===n.code?(n.body.listdata.forEach((function(e){e.value=e.id,e.text=e.templateName})),t.$bus.emit("openListitemDialog",t.$tx("gwgl.messages.selectModuleTip","选择合同模版"),n.body.listdata,(function(r){if("success"===r.code){var a=n.body.listdata.filter((function(e){if(e.id===r.value)return!0}));e.vo.htmbId=a[0].id,e.vo.htmbName=a[0].templateName,2===e.wfInstance.haveDoc?t.$confirm(t.$tx("gwgl.messages.haveModule","该合同已经有模版!")+"<br>"+t.$tx("gwgl.messages.haveModule2","是否替换当前模版?"),t.$tx("common.confirmOperate","确认操作"),{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.btnOpenWordClick(e)})).catch((function(){e.embeddedEditorToggle(!1)})):t.btnOpenWordClick(e)}else e.embeddedEditorToggle(!1)}),e.vo.htmbId,t.$tx("gwgl.components.contractModule","合同模版"),t.$tx("gwgl.components.selectNewM","请选择新的合同模版:"))):(e.embeddedEditorToggle(!1),t.$alert(n.message,t.$tx("common.operationTip","操作提示"),{type:"error"}))}))},btnNoTitleModifyFlTypeClick:function(e){var t=this;this.mbDownUrl="gwgl/fwmb/",this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"sortNo,name"},data:[{compare:"=",field:"orgCode",value:e.wfInstance.orgCode},{compare:"=",field:"status",value:1}],url:"gwgl/fwmb/querydata"}).then((function(n){"success"===n.code?(n.body.listdata.forEach((function(e){e.value=e.id,e.text=e.name})),t.$bus.emit("openListitemDialog",t.$tx("gwgl.components.updateGwType","修改公文类型"),n.body.listdata,(function(r){if("success"===r.code){var a=n.body.listdata.filter((function(e){if(e.id===r.value)return!0}));e.vo.flWord=a[0].fileWord,e.vo.flFormName=a[0].formTitle,e.vo.flRedTitle=a[0].fileHeader,e.vo.gwmbId=a[0].id,e.vo.flType=a[0].name,e.vo.signedFileName&&null!==e.vo.signedFileName&&""!==e.vo.signedFileName?t.$confirm(t.$tx("gwgl.messages.haveGz","该公文已经盖章,重新编辑正文后需要重新盖章!")+"<br>"+t.$tx("gwgl.messages.haveGz2","是否继续?"),t.$tx("common.confirmOperate","确认操作"),{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.btnOpenWordClick(e,"RedliningOnce")})).catch((function(){e.embeddedEditorToggle(!1)})):2===e.wfInstance.haveDoc?t.$confirm(t.$tx("gwgl.messages.haveTh","该公文已经套过红!")+"<br>"+t.$tx("gwgl.messages.haveGz2","是否继续?"),t.$tx("common.confirmOperate","确认操作"),{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.btnOpenWordClick(e,"Redlining")})).catch((function(){e.embeddedEditorToggle(!1)})):t.btnOpenWordClick(e,"Redlining")}else e.embeddedEditorToggle(!1)}),e.vo.gwmbId,t.$tx("gwgl.components.gwType","公文类型"),t.$tx("gwgl.components.selectNewGw","请选择新的公文类型:"))):(e.embeddedEditorToggle(!1),t.$alert(n.message,t.$tx("common.operationTip","操作提示"),{type:"error"}))}))},btnOpenWordClick:function(e,t,n){var r=this;console.log(t,"openType"),this.openType=t,e.formValidate((function(){var n=[],a="";a="/apigw".substring(1)+"/gwgl/fwmb/download?id="+r.vo.id+"&dataField=fileContent&nameField=mbFileName";var o={};"ech5"===r.officeType&&r.btnOpenEcdocEditorClick(e,n,o,a,"","",t)}))},btnOpenEcdocEditorClick:function(e,t,n,r,a,o,i){var s=this;return xe(Le().mark((function t(){var n,a,o,i,l;return Le().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=s,a=location.href.split("#")[0].split("windex.html")[0],r=a+r,o=e.vo.mbFileName,i="ATTACH",r+="&attachsType="+i,l=s.$tx("gwgl.components.isLoading","正在下载文件,请稍候..."),s.$bus.emit("showDoingDialog",l),s.$http({method:"GET",url:"wopi/getAccessToken",params:{downUrl:r,fileName:o}}).then((function(t){if("success"===t.code){s.tSessionId=t.body.tSessionId;var r,o=t.body.editorUrl;o.indexOf("lang=")<0&&(o+="&lang=zh-CN"),console.log(o,"editorUrl ---- 235"),s.editorUrl=o,new Promise((function(e,t){n.$nextTick((function(){s.ecweboffice=!0,n.$nextTick((function(){r=n.$refs.ecweboffice,r&&e(!0)}))}))})).then((function(n){if(n){s.$bus.emit("closeDoingDialog");var r=s.$tx("gwgl.components.loadingSave","正在保存附件,请稍候...");s.doctimer=setInterval((function(){if(!s.ecweboffice&&!s.waiting&&(clearInterval(s.doctimer),window.fileStatus>0)){s.$bus.emit("showDoingDialog",r);var n=a+"/apigw".substring(1)+"/gwgl/fwmb/upload";s.checkEcincEditorFinished(e,t.body.attachId,n,0,"")}s.ecweboffice||(clearInterval(s.doctimer),s.btnEcdocSavedClick(!0))}),500)}}));var i=a+"/apigw".substring(1)+"/gwgl/fwmb/upload";i+="?id="+e.vo.id,i+="&dataField=fileContent",i+="&nameField=mbFileName",i+="&method=put",document.querySelector("#btnEcdocSaved").uploadUrl=i,console.log(document.querySelector("#btnEcdocSaved"),"btnEcdocSaved"),document.querySelector("#btnEcdocSaved").checkSave=!1}else s.$alert(t.message,s.$tx("common.operationTip","操作提示"),{type:"error"})}));case 9:case"end":return t.stop()}}),t)})))()},btnEcdocSavedClick:function(e){if("ech5"===this.officeType){var t=document.querySelector("#btnEcdocSaved");if(console.log(t.srcEvent),t.srcEvent){var n=t.srcEvent.data;if(n){"string"===typeof n&&(n=JSON.parse(n));var r=!1;if(e&&t.checkSave)r=!0;else if("UI_Save"===n.MessageId||"Action_Save_Resp"===n.MessageId)r=!0;else if("Doc_ModifiedStatus"===n.MessageId&&n.Values.Modified)return void(t.checkSave=!1);if(r&&!this.waiting){delete t.srcEvent.data,delete t.checkSave;var a=document.querySelector("#btnEcdocSaved").uploadUrl,o=this.$tx("gwgl.components.reloadFile","正在重新加载文件,请稍候"),i="BODY";-1!==a.indexOf("=ATTACH")&&(o=this.$tx("gwgl.components.loadingSave","正在保存附件,请稍候..."),i="ATTACH"),this.$bus.emit("showDoingDialog",o);var s=this.$vnode.context;this.checkEcincEditorFinished(s,this.tSessionId,a,0,i)}else this.$bus.emit("closeDoingDialog")}}}},checkEcincEditorFinished:function(e,t,n,r,a){var o=this;this.waiting=!0,this.$http({method:"GET",url:"wopi/checkFinished",params:{fileId:t,uploadUrl:n,checkCount:r}}).then((function(i){"success"===i.code?i.body.waiting?setTimeout((function(){o.waiting=!0,o.checkEcincEditorFinished(e,t,n,++r,a)}),1e3):i.body.finished?(o.waiting=!1,o.$bus.emit("closeDoingDialog")):i.body.saved&&(o.waiting=!1,e.InlineTextEditorShow=!1,e.btnSubmitClick(e.actionType)):o.$bus.emit("closeDoingDialog")}))},getSessionId:function(){var e=this;return new Promise((function(t,n){e.$http({method:"GET",params:{timeLength:60},url:"base/user/getSessionId"}).then((function(e){"success"===e.code?t(e.body.tSessionId):n(e.msg)}))}))},imgUrl:function(e){var t=e.oriangialName||e.fileName;return t=t.substring(t.lastIndexOf(".")),".doc"===t||".docx"===t?"images/w-imgs/email/word.png":".ppt"===t||".pptx"===t?"images/w-imgs/email/ppt.png":".xls"===t||".xlsx"===t?"images/w-imgs/email/excel.png":".pdf"===t?"images/w-imgs/email/pdf.png":".txt"===t?"images/w-imgs/email/txt.png":".audio"===t||".amr"===t||".mp3"===t||".wav"===t?"images/w-imgs/email/audio.png":".video"===t||".mp4"===t||".mov"===t?"images/w-imgs/email/video.png":".zip"===t||".rar"===t?"images/w-imgs/email/zip.png":".image"===t||".mp4"===t||".jpg"===t||".jpeg"===t||".png"===t||".gif"===t||".bmp"===t||".svg"===t?"images/w-imgs/email/picture.png":" "===t?"images/w-imgs/email/none.png":"images/w-imgs/email/其他.png"}}},ke=De,Se=(n(7030),m(ke,be,we,!1,null,"4b14c1db",null)),Ye=Se.exports,je=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"flex"}},[t("div",{staticClass:"TopBtn",class:{"bottom-bar":"bottom"===e.btnPosition}},e._l(e.topBtns,(function(n){return t("div",{key:n,staticClass:"commandBtn",attrs:{code:n.btnCode}},[t("el-button",{attrs:{plain:""},nativeOn:{click:function(t){return e.handleBtnClick(n)}}},[-1!==n.btnIcon.indexOf(".svg")?t("svg-icon",{class:n.btnIcon.substring(0,n.btnIcon.indexOf(".svg")),attrs:{"icon-class":n.btnIcon.substring(0,n.btnIcon.indexOf(".svg"))}}):e._e(),-1===n.btnIcon.indexOf(".svg")?t("i",{class:"el-icon-"+n.btnIcon}):e._e(),t("span",[e._v(e._s(n.btnName))])],1)],1)})),0)])},Ce=[],Oe={name:"TopBtn",components:{},props:{topBtn:{type:Array,default:function(){return[]}},btnPosition:{type:String,default:function(){return"top"}}},data:function(){return{topBtns:[],submitBtn:null}},computed:{},watch:{TopBtn:{handler:function(e,t){this.setCommandBtns()},deep:!0}},created:function(){this.setCommandBtns()},beforeDestroy:function(){},mounted:function(){},methods:{setCommandBtns:function(){this.topBtns=[],this.topBtns=this.topBtn},handleBtnClick:function(e){console.log(e,"btn"),void 0!==e.btnParams&&null!==e.btnParams?e.btnClick.apply(this.$vnode.context,e.btnParams):e.btnClick.apply(this.$vnode.context)}}},Ne=Oe,Pe=(n(8100),m(Ne,je,Ce,!1,null,"5ec99cdd",null)),Ee=Pe.exports,He={components:{ModuleTextEditor:Ye,TopBtn:Ee},props:{},data:function(){return{officeType:"ech5",wfAttachUrl:"htgl/htmb",bodyfile:{},logoTitle:"",TopBtn:[{btnAlign:1,btnCode:null,btnGroupId:null,btnIcon:"glyphicon-off.svg",btnJavascript:"btnCloseClick()",btnName:"关 闭",btnOrderNo:null,btnShow:null,btnType:"1",id:null,nodeId:null,passenger:{},visitType:0},{btnAlign:1,btnCode:null,btnGroupId:null,btnIcon:"saved.svg",btnJavascript:"btnSaveAndCloseClick()",btnName:this.$tx("pageBtns.saveAndClose","保存关闭"),btnOrderNo:null,btnShow:null,btnType:"1",id:null,nodeId:null,passenger:{},visitType:0},{btnAlign:1,btnCode:null,btnGroupId:null,btnIcon:"save.svg",btnJavascript:"btnSaveClick()",btnName:this.$tx("pageBtns.save","保存"),btnOrderNo:null,btnShow:null,btnType:"1",id:null,nodeId:null,passenger:{},visitType:0}],vo:{},actionType:"",InlineTextEditorShow:!0}},computed:{},watch:{},created:function(){var e=this;this.logoTitle=this.$route.query.title,this.vo=JSON.parse(this.$route.query.row),console.log(this.logoTitle,this.vo,"query 参数传递"),this.TopBtn.forEach((function(t){var n=t.btnJavascript;if(-1!==n.indexOf("(")){var r=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==r&&(r=r.replace(/'/g,"").split(","),t.btnParams=r),n=n.split("(")[0]}void 0!==e[n]&&(t.btnClick=e[n])}))},beforeDestroy:function(){},mounted:function(){this.$bus.emit("btnOpenWordClick",this)},methods:{btnCloseClick:function(e){(e||confirm(this.$tx("gwgl.messages.editConfig","若当前编辑未保存,则内容修改无效,是否继续?")))&&window.close()},btnSaveAndCloseClick:function(){console.log("关闭且保存"),this.btnSubmitClick("SaveAndClose")},btnSaveClick:function(){this.btnSubmitClick("Save")},btnSubmitClick:function(e,t){var n=this;this.formValidate((function(){if(n.actionType=e,n.InlineTextEditorShow&&"AutoSave"!==e)return console.log(" this.$refs.InlineTextEditor.$refs.ecweboffice",n.$refs.InlineTextEditor.$refs.ecweboffice),void n.$refs.InlineTextEditor.$refs.ecweboffice.save();"SaveAndClose"===e&&(n.$message.success(n.$tx("common.saveSuccess")),setTimeout((function(){n.btnCloseClick(!0)}),300)),"Save"===e&&n.$message.success(n.$tx("common.saveSuccess")),n.InlineTextEditorShow=!0}))}}},Fe=He,Ae=(n(1341),m(Fe,_e,ve,!1,null,"6dd6ca80",null)),$e=Ae.exports,Ie=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{title:e.$tx("gwgl.components.transferNotice","转通知公告"),visible:e.dzggShow,width:"1000px"},on:{"update:visible":function(t){e.dzggShow=t},close:e.toclose}},[t("div",[t("el-form",{attrs:{model:e.dzggObj}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{ref:"tdlbl_制度标题",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flSubject",expression:"'flSubject'"}],staticClass:"field"},[e._v("文件标题")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"flSubject",attrs:{field:{defaultValue:null,elementCanEdit:"1",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"input",emptyMessage:e.$tx("gwgl.components.zdTitleEmptyMessage","请输入制度主题"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:e.$tx("gwgl.components.zdTitle","制度标题"),propName:"flSubject",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"dzggObj.flSubject",option:[]},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_公告类型 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"type",expression:"'type'"}],staticClass:"field"},[e._v("公告类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"type",attrs:{field:{cssClass:null,cssStyle:null,defaultValue:null,elementCanEdit:"1",elementCssHeight:null,elementCssWidth:null,elementFormatter:e.$tx("gwgl.components.notice","公告")+":"+e.$tx("gwgl.components.notice","公告")+"\n"+e.$tx("gwgl.components.inform","通知")+":"+e.$tx("gwgl.components.inform","通知")+"\n"+e.$tx("gwgl.components.praise","表扬")+":"+e.$tx("gwgl.components.praise","表扬")+"\n"+e.$tx("gwgl.components.criticize","批评")+":"+e.$tx("gwgl.components.criticize","批评")+"\n"+e.$tx("gwgl.components.other","其他")+":"+e.$tx("gwgl.components.other","其他"),elementReadonly:0,elementType:"radio",emptyMessage:e.$tx("gwgl.components.selectType","请选择公告类型"),errorMessage:null,formTdAlign:"text-left",formTdColspan:24,isRequired:1,onBlurEvent:null,onChangeEvent:null,onClickEvent:"@change='handleTypeChange'",onDblClickEvent:null,onFocusEvent:null,onKeyDownEvent:null,onKeyPressEvent:null,onKeyUpEvent:null,onMouseDownEvent:null,onMouseOverEvent:null,onMouseUpEvent:null,passenger:{},propComment:"公告类型",propName:"type",propType:"String",textFormatter:"radio",valueMaxLength:20,valueMinLength:null,model:"dzggObj.type",option:[{value:e.$tx("gwgl.components.notice","公告"),name:e.$tx("gwgl.components.notice","公告")},{value:e.$tx("gwgl.components.inform","通知"),name:e.$tx("gwgl.components.inform","通知")},{value:e.$tx("gwgl.components.praise","表扬"),name:e.$tx("gwgl.components.praise","表扬")},{value:e.$tx("gwgl.components.criticize","批评"),name:e.$tx("gwgl.components.criticize","批评")},{value:e.$tx("gwgl.components.other","其他"),name:e.$tx("gwgl.components.other","其他")}],optionGenerateType:0,clearable:!0,filterable:!1,allowCreate:!1},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_是否置顶",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"isTop",expression:"'isTop'"}],staticClass:"field"},[e._v(e._s(e.$tx("gwgl.components.isTop")))])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"isTop",attrs:{field:{defaultValue:"0",elementCanEdit:"1",elementCssHeight:null,elementCssWidth:null,elementFormatter:"0:"+e.$tx("common.no","否")+" \n1:"+e.$tx("common.no","否"),elementReadonly:0,elementType:"radio",emptyMessage:e.$tx("gwgl.common.please","请输入")+"0:"+e.$tx("common.no","否")+" 1:"+e.$tx("common.yes","是"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:e.$tx("gwgl.common.isTop"),propName:"isTop",propType:"Short",textFormatter:"integer",valueMaxLength:null,valueMinLength:null,model:"dzggObj.isTop",option:[{value:"0",name:e.$tx("common.no","否")},{value:"1",name:e.$tx("common.yes","是")}],optionGenerateType:0,clearable:!0,filterable:!1,allowCreate:!1},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{ref:"tdlbl_公告时间",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"ggTime",expression:"'ggTime'"}],staticClass:"field"},[e._v("公告时间")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("datetime-range",{attrs:{vo:e.dzggObj,type:"datetime","v-model-start":"startTime","v-model-end":"endTime","can-edit":1,"placeholder-start":e.$tx("fields.startTime","开始时间"),"placeholder-end":e.$tx("fields.endTime","结束时间"),required:!0,format:"yyyy-MM-dd HH:mm"}})],1)]),e._e(),t("tr",[t("td",{ref:"tdlbl_发布范围 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"publishScope",expression:"'publishScope'"}],staticClass:"field"},[e._v("发布范围")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"publishScope",attrs:{field:{textFormatter:"radio",elementType:"radio",propName:"publishScope",propType:"Short",model:"dzggObj.publishScope",emptyMessage:e.$tx("gwgl.components.publishScopeRange","请选择发布范围"),isRequired:0,elementCanEdit:"1",defaultValue:"0",elementReadonly:0,option:[{value:"0",name:e.$tx("gwgl.components.allPerson","全部人员")},{value:"1",name:e.$tx("gwgl.components.fields.readersName","指定人员")}],elementFormatter:"0:"+e.$tx("gwgl.components.allPerson","全部人员")+"\n1:"+e.$tx("gwgl.components.fields.readersName","指定人员"),propComment:"发布范围",optionGenerateType:0,clearable:!0,filterable:!1,allowCreate:!1},vo:e.dzggObj,"can-edit":e.canEdit}})],1)]),1==e.dzggObj.publishScope?t("tr",[t("td",{ref:"tdlbl_查阅人",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"readersName",expression:"'readersName'"}],staticClass:"field"},[e._v("指定人员")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"readersName",attrs:{field:{defaultValue:null,elementCanEdit:"1",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:e.$tx("gwgl.components.readeremptyMessage","请输入查阅人"),errorMessage:null,formTdAlign:"text-left",formTdColspan:24,isRequired:0,onClickEvent:null,passenger:{},propComment:"查阅人",propName:"readersName",propType:"String",textFormatter:"textarea",valueMaxLength:2147483647,valueMinLength:null,model:"dzggObj.readersName",option:[],dialog:1,dialogType:"staff",dialogMultiple:!0,dialogOrgLevel:"",autosize:!1,dialogSubOrgName:"",valueIdsField:"readersAccountId"},vo:e.dzggObj,"can-edit":e.canEdit,autosize:!1}})],1)]):e._e(),t("tr",[t("td",{ref:"tdlbl_转规章制度文件",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"publishFiles",expression:"'publishFiles'"}],staticClass:"field"},[e._v("发布文件")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e.bodyfile?t("span",{staticStyle:{color:"#409eff"},on:{click:e.toview}},[e._v(e._s(e.bodyfile.fileName))]):t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"autoReadFile",expression:"'autoReadFile'"}]},[e._v("自动读取正文")])])]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"attachs",expression:"'attachs'"}],ref:"tdlbl_附件",staticClass:"el-table__cell tdlbl tdw17"},[e._v("附件")]),t("td",{staticClass:"el-table__cell tdcont tdcont",attrs:{colspan:"5"}},[e.$parent&&e.$parent.attachments?t("div",[t("el-table",{ref:"multipleTable",staticClass:"eltable",attrs:{"show-header":!1,data:e.attachments},on:{"selection-change":e.headSelectRow}},[t("el-table-column",{staticStyle:{border:"none"},attrs:{type:"selection",width:"35px",align:"right","show-overflow-tooltip":!0}}),t("el-table-column",{staticStyle:{border:"none"},attrs:{prop:"fileName",label:e.$tx("gwgl.components.fileName","文件名"),width:"",align:"left","show-overflow-tooltip":!0}}),t("el-table-column",{staticStyle:{border:"none"},attrs:{prop:"fileSize",label:e.$tx("gwgl.components.fileSize","文件大小"),width:"100px",align:"right","show-overflow-tooltip":!0}})],1)],1):t("div",[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.noData",expression:"'common.noData'"}]},[e._v("暂无数据")])])])])])])])])])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"cancel",expression:"'cancel'"}],on:{click:e.toclose}},[e._v("取 消")]),t("el-button",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.zggzdFn}},[e._v("确 定")])],1)])],1)},ze=[],Re={components:{},props:{vo:{type:Object,default:function(){return{}}},bodyfile:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"gwgl",moduleCode:"components",attachments:[],dzggShow:!1,selectFileIds:"",dzggObj:{},nowTime:this.$moment(new Date).format("YYYY-MM-DD HH:mm")}},computed:{},watch:{},created:function(){this.$bus.on("btnTotzggClick",this.btnTotzggClick)},beforeDestroy:function(){this.$bus.off("btnTotzggClick",this.btnTotzggClick)},mounted:function(){},methods:{toclose:function(){this.dzggShow=!1,this.$parent.FromDialogShow=!1,this.$options.components["FromDialog"]="",console.log(this.$options.components)},zggzdFn:function(){var e=this,t=this;t.dzggObj.flSubject?t.dzggObj.type?(this.dzggObj.passenger.attachments&&this.dzggObj.passenger.attachments.length>0&&(this.dzggObj.passenger.attachments=this.dzggObj.passenger.attachments.filter((function(t){return e.dzggObj.passenger.selectFileIds.includes(t.id)}))),this.$http({method:"post",url:"/ecoa/dzgg/activateWfInstance",data:this.dzggObj}).then((function(t){"success"===t.code?(console.log("res",t),e.$message.success(t.message),e.dzggShow=!1):(e.$message.error(t.message),e.dzggShow=!1)}))):this.$alert(this.$tx("gwgl.components.selectType","请选择公告类型"),this.$tx("common.operationTip","操作提示"),{type:"warning"}):this.$alert(this.$tx("gwgl.components.fixTitle","请填写文件标题!"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!=n&&(n+="、"),""!=r&&(r+=","),n+=e.name,r+=e.personId})),this.$set(this.dzggObj,"readersName",n),this.$set(this.dzggObj,"readersAccountId",r),console.log("123",this.dzggObj.readersName),console.log("123",this.dzggObj.readersAccountId)},toview:function(){console.log(this,"thisssss"),window.open("/apigw/"+this.$parent.wfEngineUrl+"/downloadById?attachIds="+this.bodyfile.id+"&inline=true")},headSelectRow:function(e){var t="";e.forEach((function(e){e.id&&(""!==t&&(t+=","),t+=e.id)})),this.selectFileIds=t,this.dzggObj.passenger.selectFileIds=this.selectFileIds},btnTotzggClick:function(){var e=this;if(this.dzggObj={readersName:"",publishScope:0,endTime:"",startTime:"",isTop:0,type:"公告",passenger:{attachments:[]},flSubject:this.vo.flSubject},this.$parent.attachments){var t=this.$parent.attachments;t=t.filter((function(t){return"BODY"===t.fileType&&t.id===e.bodyfile.id||"BODY"!==t.fileType})),t=JSON.parse(JSON.stringify(t)),t.forEach((function(t){setTimeout((function(){e.$nextTick((function(){e.$refs.multipleTable.toggleRowSelection(t)}))})),t.fileName.indexOf(".doc")>-1&&"BODY"===t.fileType&&(t.fileName="文件正文.doc")})),this.dzggObj.passenger.attachments=t,this.attachments=this.dzggObj.passenger.attachments}this.dzggShow=!0}}},We=Re,Ge=(n(7658),m(We,Ie,ze,!1,null,"35a63f69",null)),Be=Ge.exports,Ue=function(){var e=this,t=e._self._c;return t("div",{staticClass:"internalCommsInfo",staticStyle:{"margin-top":"20px"}},[t("el-form",{staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"departStatus",expression:"'departStatus'"}],staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"6"}},[e._v("部门办理情况")])]),t("tr",[t("td",{staticClass:"el-table__cell tdcont tdw83 internalCommsInfo_table",staticStyle:{padding:"0 !important"},attrs:{colspan:"6"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[t("el-table-column",{attrs:{label:e.$tx("fields.index","序号"),type:"index",width:"50",align:"center"}}),t("el-table-column",{attrs:{prop:"deptName",label:e.$tx("gwgl.components.fields.deptName","部门名称"),width:"130",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"signingTime",label:e.$tx("gwgl.components.fields.signingTime","签收时间"),width:"135",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[e._v(e._s(e._f("timeFormat")(n.row.signingTime)))])]}}])}),t("el-table-column",{attrs:{prop:"internalCommsContent",label:e.$tx("gwgl.components.fields.internalCommsContent","回复内容"),align:"left","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"creator",label:e.$tx("gwgl.components.fields.creator","经办人"),width:"110",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"createTime",label:e.$tx("gwgl.components.fields.createTime","回复时间"),width:"135",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[e._v(e._s(e._f("timeFormat")(n.row.signingTime)))])]}}])}),t("el-table-column",{attrs:{prop:"address",label:e.$tx("gwgl.components.fields.attachs","附件"),width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return e._l(n.row.passenger.attachments,(function(n){return t("div",{key:n.id},[t("el-link",{on:{click:function(t){return e.fileClick(n)}}},[e._v(e._s(n.fileName))])],1)}))}}])})],1)],1)])])])])])])],1)},qe=[],Ve=n(5093),Je={filters:{timeFormat:function(e){return e?Ve(new Date(e)).format("YYYY-MM-DD HH:mm"):""}},props:{vo:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"gwgl",moduleCode:"components",tableData:[]}},computed:{},watch:{},created:function(){this.getQueryData()},beforeDestroy:function(){},mounted:function(){},methods:{getQueryData:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"applyId",merge:!0,value:this.vo.id}],url:"gwgl/internalCommsInfo/querydata"}).then((function(t){"success"==t.code?e.tableData=t.body.listdata:e.$alert(t.message,{type:"warning"})}))},fileClick:function(e){window.open("/apigw/gwgl/internalComms/downloadById?inline=true&attachIds=".concat(e.id,"&topdf=true&httpPort=").concat(location.port))}}},Ke=Je,Qe=(n(4795),m(Ke,Ue,qe,!1,null,"51438016",null)),Ze=Qe.exports,Xe=function(){var e=this,t=e._self._c;return t("div",["color"===e.column.field?t("span",{staticStyle:{padding:"2px 30px"},style:{background:e.row.color}}):e._e(),"dealDays"===e.column.field?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"gwgl.common.numDay",expression:"'gwgl.common.numDay'"}],attrs:{num:e.row.dealDays}},[e._v(e._s(e.row.dealDays)+" 天")]):e._e()])},et=[],tt={props:{column:{type:Object,default:null},row:{type:Object,default:null},index:{type:Number,default:null}}},nt=tt,rt=m(nt,Xe,et,!1,null,"765c37f0",null),at=rt.exports,ot=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("div",{staticClass:"searchType-content block-table-heder"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"byClassification",expression:"'byClassification'"}],staticClass:"title",class:"0"===e.searchType?"active":"",on:{click:function(t){e.searchType="0"}}},[e._v("按分类")]),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"byTime",expression:"'byTime'"}],staticClass:"title",class:"1"===e.searchType?"active":"",on:{click:function(t){e.searchType="1"}}},[e._v("按时间")]),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"byRecordType",expression:"'byRecordType'"}],staticClass:"title",class:"2"===e.searchType?"active":"",on:{click:function(t){e.searchType="2"}}},[e._v("按文种")])]),t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onExpand:e.treeBeforeExpand}})],1),t("RightPanel",[null!=e.treeNode?t("FileList",{attrs:{"edit-permission":e.editPermission,"tree-node":e.treeNode,"search-type":e.searchType,language:e.language,"map-list":e.mapList,"gdflsz-vos":e.gdflszVos}}):e._e()],1)],1)},it=[],st=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{position:"relative"}},[e.tableShow?t("data-table",{attrs:{"module-info":e.moduleInfo,"tb-columns":e.tableList,"toolbar-btns":e.listpageBtns,"on-list-data-before-load":e.onListDataBeforeLoad,"on-list-data-loaded":e.onListDataLoaded,"on-cell-click":e.cellclick,"on-selected-rows-change":e.selectedRowsChange}},[t("div",{staticStyle:{"line-height":"32px",color:"#606266","font-size":"var(--portalFontSize14)"},attrs:{slot:"toolbarLeft-slotLeft"},slot:"toolbarLeft-slotLeft"},[t("span",[e._v(e._s(e.$tx("gwgl.gdgl.recursionFile",{dataType:e.num},"当前归档文件".concat(e.num,"件"))))])])]):e._e(),t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"wf-attach":!0,"batch-save-namefield":"attachmentName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("FileForm",{attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":e.moduleInfo}})]}}])}),t("FilingSystem")],1)},lt=[],dt=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{class:e.wfEngineUrl?"el-table el-table--fit":"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body el-table__body-no",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileTitle",expression:"'fileTitle'"}],attrs:{moduleCode:"common"}},[e._v("文件标题")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"文件标题",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.common.fileTitlePlaceholder","请输入文件标题")},model:{value:e.vo.flSubject,callback:function(t){e.$set(e.vo,"flSubject",t)},expression:"vo.flSubject"}}):t("span",{domProps:{textContent:e._s(e.vo.flSubject)}})],1)]}}])})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flContent",expression:"'flContent'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("摘要")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[e.canEdit?t("el-input",{attrs:{type:"textarea","show-word-limit":"",placeholder:e.$tx("gwgl.gdgl.abstractPlaceholder","请输入摘要")},model:{value:e.vo.flContent,callback:function(t){e.$set(e.vo,"flContent",t)},expression:"vo.flContent"}}):t("span",{domProps:{textContent:e._s(e.vo.flContent)}})],1)]),t("tr",{directives:[{name:"show",rawName:"v-show",value:"会议通知"!==e.chooseFlGwType&&!e.wflowform,expression:"chooseFlGwType !== '会议通知' && !wflowform"}]},[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileName",expression:"'fileName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("文件正文")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("form-item",{ref:"fileData",attrs:{field:{defaultValue:"fileName",elementCanEdit:"{{canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:null,elementType:"file",emptyMessage:e.$tx("gwgl.gdgl.fileZwEmptyMessage","请选择文件正文"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"文件正文",propName:"fileData",propType:"byte[]",textFormatter:".doc, .docx, .pdf",valueMaxLength:50,valueMinLength:null,model:"vo.fileData",option:[],downloadUrl:"",nameField:"fileName",limitCount:null},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"gwType",expression:"'gwType'"}]},[e._v("公文种类")])]),t("td",{staticClass:"el-table__cell",class:"收文阅办"!==e.chooseFlGwType&&"文件传阅"!==e.chooseFlGwType?"tdcont tdw83":"tdcont tdw33",attrs:{colspan:"收文阅办"!==e.chooseFlGwType&&"文件传阅"!==e.chooseFlGwType?3:1}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"公文种类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$tx("gwgl.gdgl.gwTypePlaceholder","请输入公文种类")},on:{change:e.flGwTypeChange},model:{value:e.vo.flGwType,callback:function(t){e.$set(e.vo,"flGwType",t)},expression:"vo.flGwType"}},e._l(e.vo.passenger.flGwTypeOptions,(function(e,n){return t("el-option",{key:n,attrs:{label:e.name,value:e.name}})})),1):t("span",{domProps:{textContent:e._s(e.vo.flGwType)}})],1)]}}])})],1),"收文阅办"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"swCode",expression:"'swCode'"}]},[e._v("收文编号")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"收文编号",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.swCodePlaceholder","请输入收文编号")},model:{value:e.vo.flSwzh,callback:function(t){e.$set(e.vo,"flSwzh",t)},expression:"vo.flSwzh"}}):t("span",{domProps:{textContent:e._s(e.vo.flSwzh)}})],1)]}}],null,!1,3442028541)})],1)]:e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"startTime",expression:"'startTime'"}]},[e._v("会议开始时间")])]):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"会议开始时间",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:e.$tx("gwgl.gdgl.meetingStartTimePlaceholder","请选择会议开始时间")},model:{value:e.vo.startTime,callback:function(t){e.$set(e.vo,"startTime",t)},expression:"vo.startTime"}}):t("span",{domProps:{textContent:e._s(e.timeTranslate(e.vo.startTime))}})],1)]}}],null,!1,2252135302)})],1):e._e()],2),t("tr",["单位发文"===e.chooseFlGwType||"请示报告"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flCreateDate",expression:"'flCreateDate'"}]},[e._v("拟稿日期")])]):e._e(),"单位发文"===e.chooseFlGwType||"请示报告"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"拟稿日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.draftDatePlaceholder","请选择成文日期")},model:{value:e.vo.flCreateDate,callback:function(t){e.$set(e.vo,"flCreateDate",t)},expression:"vo.flCreateDate"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flCreateDate))}})],1)]}}],null,!1,1852918566)})],1):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"callDate",expression:"'callDate'"}]},[e._v("召集日期")])]):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"召集日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.callDatePlaceholder","请选择召集日期")},model:{value:e.vo.flCreateDate,callback:function(t){e.$set(e.vo,"flCreateDate",t)},expression:"vo.flCreateDate"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flCreateDate))}})],1)]}}],null,!1,3698933052)})],1):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"endTime",expression:"'endTime'"}]},[e._v("会议结束时间")])]):e._e(),"会议通知"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"会议结束时间",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:e.$tx("gwgl.gdgl.meetingEndTimePlaceholder","会议结束时间")},model:{value:e.vo.endTime,callback:function(t){e.$set(e.vo,"endTime",t)},expression:"vo.endTime"}}):t("span",{domProps:{textContent:e._s(e.timeTranslate(e.vo.endTime))}})],1)]}}],null,!1,421202649)})],1):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flLwrq",expression:"'flLwrq'"}]},[e._v("来文日期")])]):e._e(),"部门便函"===e.chooseFlGwType||"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flCreateDate",expression:"'flCreateDate'"}]},[e._v("创建日期")])]):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"来文日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.submissionDatePlaceholder","请选择来文日期")},model:{value:e.vo.flLwrq,callback:function(t){e.$set(e.vo,"flLwrq",t)},expression:"vo.flLwrq"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flLwrq))}})],1)]}}],null,!1,541277182)})],1):e._e(),"部门便函"===e.chooseFlGwType||"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"创建日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.createTimePlaceholder","请选择创建日期")},model:{value:e.vo.flCreateDate,callback:function(t){e.$set(e.vo,"flCreateDate",t)},expression:"vo.flCreateDate"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.flCreateDate))}})],1)]}}],null,!1,2650363856)})],1):e._e(),"单位发文"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flGrade",expression:"'flGrade'"}]},[e._v("文件字号")])]):e._e(),"单位发文"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"文件字号",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.documentSizePlaceholder","请填写文件字号")},model:{value:e.vo.flGrade,callback:function(t){e.$set(e.vo,"flGrade",t)},expression:"vo.flGrade"}}):t("span",{domProps:{innerHTML:e._s(e.vo.flGrade)}})],1)]}}],null,!1,1569961036)})],1):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType?t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"documentType",expression:"'documentType'"}]},[e._v("来文字号")]):e._e(),"文件传阅"===e.chooseFlGwType?t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"documentCode",expression:"'documentCode'"}]},[e._v("来文编号")]):e._e()]):e._e(),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType?e.$tx("gwgl.gdgl.documentType"):e.$tx("gwgl.gdgl.documentCode"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.flLwzhPlaceholder",{font:"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType?"字":"编",size:"号"},"请填写来文字号")},model:{value:e.vo.flLwzh,callback:function(t){e.$set(e.vo,"flLwzh",t)},expression:"vo.flLwzh"}}):t("span",{domProps:{textContent:e._s(e.vo.flLwzh)}})],1)]}}],null,!1,831323577)})],1):e._e(),"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replyTime",expression:"'replyTime'"}]},[e._v("回复时限")])]):e._e(),"意见征集"===e.chooseFlGwType?t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"回复时限",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd",placeholder:e.$tx("gwgl.gdgl.responseTimePlaceholder","请选择回复时限")},model:{value:e.vo.replyTime,callback:function(t){e.$set(e.vo,"replyTime",t)},expression:"vo.replyTime"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.replyTime))}})],1)]}}],null,!1,1901139929)})],1):e._e(),"部门便函"===e.chooseFlGwType||"请示报告"===e.chooseFlGwType?t("td",{attrs:{colspan:"2"}}):e._e()]),"收文阅办"===e.chooseFlGwType||"部门收文"===e.chooseFlGwType||"文件传阅"===e.chooseFlGwType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flLwdw",expression:"'flLwdw'"}]},[e._v("来文单位")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"来文单位",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.reportingUnitPlaceholder","请输入来文单位")},model:{value:e.vo.flLwdw,callback:function(t){e.$set(e.vo,"flLwdw",t)},expression:"vo.flLwdw"}}):t("span",{domProps:{textContent:e._s(e.vo.flLwdw)}})],1)]}}],null,!1,56236278)})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flSLevel",expression:"'flSLevel'"}]},[e._v("密级")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"密级",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$tx("gwgl.gdgl.classificationPlaceholder","请选择密级")},model:{value:e.vo.flSLevel,callback:function(t){e.$set(e.vo,"flSLevel",t)},expression:"vo.flSLevel"}},e._l(e.vo.passenger.flSLevelOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.text,value:e.value}})})),1):t("span",{domProps:{textContent:e._s(e.vo.flSLevel)}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"gdType",expression:"'gdType'"}]},[e._v("归档类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{domProps:{textContent:e._s(e.gdTypeObj[e.vo.gdType])}})])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"creator",expression:"'creator'"}]},[e._v("归档人")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[e._v(" "+e._s(e.vo.creator)+" ")]),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"gdTime",expression:"'gdTime'"}]},[e._v("归档日期")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"归档日期",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$tx("gwgl.gdgl.filingDatePlaceholder","请选择归档日期"),type:"date",format:"yyyy年MM月dd日","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.vo.gdTime,callback:function(t){e.$set(e.vo,"gdTime",t)},expression:"vo.gdTime"}}):t("span",{domProps:{textContent:e._s(e.dateTranslate(e.vo.gdTime))}})],1)]}}])})],1)]),e.vo.isnew?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"categoryName",expression:"'categoryName'"}]},[e._v("归档分类管理")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"gdtype",expression:"'gdtype'"}],ref:"gdTypeTree",staticStyle:{width:"100%"},attrs:{readonly:"","init-tree-data":e.treeData,"dialog-title":e.$tx("gwgl.components.archiveClassificationSelect","选择归档分类"),multiple:!1,placeholder:e.$tx("gwgl.components.archiveClassificationPlaceholder"),name:""},model:{value:e.vo.categoryName,callback:function(t){e.$set(e.vo,"categoryName",t)},expression:"vo.categoryName"}}):t("span",{domProps:{textContent:e._s(e.vo.categoryName)}})],1)]}}],null,!1,2740719594)})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"flELevel",expression:"'flELevel'"}]},[e._v("紧急程度")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("form-item",{ref:"flELevel",attrs:{field:{cssClass:null,cssStyle:null,defaultValue:"",elementCanEdit:"{{curTN.tnCanEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:":",elementReadonly:null,elementType:"select",emptyMessage:e.$tx("gwgl.gdgl.urgencyEmptyMessage","请选择紧急程度"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onBlurEvent:null,onChangeEvent:null,onClickEvent:null,onDblClickEvent:null,onFocusEvent:null,onKeyDownEvent:null,onKeyPressEvent:null,onKeyUpEvent:null,onMouseDownEvent:null,onMouseOverEvent:null,onMouseUpEvent:null,passenger:{},propComment:"紧急程度 ",propName:"flELevel",propType:"String",textFormatter:null,valueMaxLength:null,valueMinLength:null,model:"vo.flELevel",option:[{name:"",value:""}],optionGenerateType:0},vo:e.vo,"can-edit":e.canEdit}})],1)]):e._e(),"会议通知"===e.chooseFlGwType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"address",expression:"'address'"}]},[e._v("会议地点")])]),t("td",{staticClass:"el-table__cell tdcont tdw33",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"会议地点",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e.canEdit?t("el-input",{attrs:{placeholder:e.$tx("gwgl.gdgl.meetingAddressPlaceholder","请输入会议地点")},model:{value:e.vo.address,callback:function(t){e.$set(e.vo,"address",t)},expression:"vo.address"}}):t("span",{domProps:{textContent:e._s(e.vo.address)}})],1)]}}],null,!1,2867847702)})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"accessRightsType",expression:"'accessRightsType'"}],attrs:{moduleCode:"components"}},[e._v("文件查阅权限")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{attrs:{disabled:!e.canEdit},model:{value:e.vo.accessRightsType,callback:function(t){e.$set(e.vo,"accessRightsType",t)},expression:"vo.accessRightsType"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"allPersonnel",expression:"'allPersonnel'"}],attrs:{label:0,"module-code":"components"}},[e._v("全体人员可阅")]),e.vo.busiDataId&&"gwgl/gdwj"!==e.wfEngineUrl?t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"originalHandler",expression:"'originalHandler'"}],attrs:{label:1,"module-code":"components"}},[e._v("原经办人可阅")]):e._e(),e.vo.busiDataId&&"gwgl/gdwj"!==e.wfEngineUrl?t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"handlerDesignated",expression:"'handlerDesignated'"}],attrs:{label:2,"module-code":"components"}},[e._v("原经办人+指定人可阅")]):e._e(),e.vo.busiDataId&&"gwgl/gdwj"!==e.wfEngineUrl?e._e():t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"designatedReaders",expression:"'designatedReaders'"}],attrs:{label:2,"module-code":"components"}},[e._v("指定可阅人")])],1)],1)]),2===e.vo.accessRightsType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"appoints",expression:"'appoints'"}],attrs:{moduleCode:"components"}},[e._v("指定类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"指定类型",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{attrs:{disabled:!e.canEdit},on:{change:e.changAppoints},model:{value:e.vo.appoints,callback:function(t){e.$set(e.vo,"appoints",t)},expression:"vo.appoints"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyGroup",expression:"'specifyGroup'"}],attrs:{label:"1","module-code":"components"}},[e._v("指定群组")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyDepart",expression:"'specifyDepart'"}],attrs:{label:"2","module-code":"components"}},[e._v("指定部门")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyPerson",expression:"'specifyPerson'"}],attrs:{label:"3","module-code":"components"}},[e._v("指定人员")])],1)],1)]}}],null,!1,3388011351)})],1)]):e._e(),2===e.vo.accessRightsType&&""!==e.vo.appoints&&null!==e.vo.appoints?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),"1"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectGroup",expression:"'selectGroup'"}],attrs:{moduleCode:"components"}},[e._v("选择群组")]):e._e(),"2"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectDepart",expression:"'selectDepart'"}],attrs:{moduleCode:"components"}},[e._v("选择部门")]):e._e(),"3"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectPerson",expression:"'selectPerson'"}],attrs:{moduleCode:"components"}},[e._v("选择人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"群组",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"1"===e.vo.appoints,expression:"vo.appoints === '1'"},{name:"can-edit",rawName:"v-can-edit"},{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:e.$tx("gwgl.components.GroupPlaceholder","请选择群组"),readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,1512767669)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"部门",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"2"===e.vo.appoints,expression:"vo.appoints === '2'"},{name:"can-edit",rawName:"v-can-edit"},{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:e.$tx("gwgl.components.DepartPlaceholder","请选择部门"),"org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,1198639595)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"3"===e.vo.appoints,expression:"vo.appoints === '3'"},{name:"can-edit",rawName:"v-can-edit"},{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:e.$tx("gwgl.components.PersonPlaceholder","请选择人员"),readonly:"readonly",multiple:"true",type:"textarea",name:"deptIds","root-org-code":e.vo.orgCode},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3367502863)})],1)]):e._e()])])])])])},ct=[],ut=n(5093),pt={components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{i18npkg:"gwgl",moduleCode:"gdgl",gwType:[{title:"单位发文",value:"单位发文"},{title:"收文阅办",value:"收文阅办"},{title:"部门收文",value:"部门收文"},{title:"文件传阅",value:"文件传阅"},{title:"部门便函",value:"部门便函"},{title:"意见征集",value:"意见征集"},{title:"会议通知",value:"会议通知"},{title:"请示报告",value:"请示报告"}],security:[{title:"一般",value:"1"},{title:"特殊",value:"2"}],gdType:[{title:this.$tx("gwgl.components.electronicFilling","电子归档"),value:1},{title:this.$tx("gwgl.components.paperArchiving","纸质归档"),value:2}],gdTypeObj:{1:this.$tx("gwgl.components.electronicFilling","电子归档"),2:this.$tx("gwgl.components.paperArchiving","纸质归档")},root:[],treeData:[],loginUser:null,chooseFlGwType:null,wflowform:!1,wfEngineUrl:""}},computed:{dateTranslate:function(){return function(e){return e?ut(e).format("YYYY年MM月DD日"):""}},timeTranslate:function(){return function(e){return e?ut(e).format("YYYY-MM-DD HH:mm"):""}}},watch:{"vo.flGwType":function(e){var t=this.vo.passenger.flGwTypeOptions.filter((function(t){return t.name===e}))[0];void 0!==t&&(this.chooseFlGwType=t.wfName)}},created:function(){var e=this,t=this.vo.passenger.flGwTypeOptions.filter((function(t){return t.name===e.vo.flGwType}))[0];void 0!==t&&(this.chooseFlGwType=t.wfName),this.loginUser=this.$store.getters.loginUser,-1!==location.href.indexOf("/wflow")&&(this.canEdit=0,this.wflowform=!0),this.wfEngineUrl=this.$route.query.wfEngineUrl,this.queryData()},mounted:function(){},beforeDestroy:function(){},methods:{onWflowFormOpened:function(){},onWflowFormBeforeSubmit:function(){},onWflowFormSubmited:function(){},queryData:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"categoryLevel asc,orderno asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:"/gwgl/gdflsz/querydata"}).then((function(t){"success"===t.code?(e.treeData=e.treeData=e.treeDataAdapter(e.root.concat(t.body.listdata)),console.log(e.treeData,"gwgl")):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){return e.forEach((function(e){null===e.parentId||""===e.parentId||void 0===e.parentId?e.pId="1":e.pId=e.parentId,e.name=e.categoryName,e.title=e.categoryName})),e},onGdtypeCompleted:function(e,t){this.vo.categoryName=e[0].name,this.vo.categoryId=e[0].categoryFullId},onSelectSuborgCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectWorkgroupCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(r+="、"),""!==n&&(n+="、"),n+=e.name,r+=e.personId})),this.$set(this.vo,"deptOrName",n),this.$set(this.vo,"deptIds",r)},changAppoints:function(e){this.vo.deptIds="",this.vo.deptOrName="",e===this.activeId&&(this.vo.deptIds=this.activedeptIds,this.vo.deptOrName=this.activeText)},flGwTypeChange:function(){this.vo.number=""},clearAccessRightsType:function(){this.vo.accessRightsType=null,this.vo.appoints=null,this.vo.deptOrName="",this.vo.deptIds=""}}},mt=pt,ft=(n(543),m(mt,dt,ct,!1,null,"123cdbf8",null)),ht=ft.exports,gt=n(5373),yt=n.n(gt);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function vt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */vt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==_t(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(_t(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function bt(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function wt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){bt(o,r,a,i,s,"next",e)}function s(e){bt(o,r,a,i,s,"throw",e)}i(void 0)}))}}var Mt=n(5093),Lt={components:{FileForm:ht,FilingSystem:h},props:{searchType:{type:String,default:function(){return"0"}},treeNode:{type:Object,default:function(){return{}}},editPermission:{type:Boolean,default:function(){return!1}},language:{type:Array,default:function(){return[]}},gdflszVos:{type:Array,default:function(){return[]}},mapList:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gdgl",title:"归档文件",loginUser:this.$store.getters.loginUser,tableShow:!1,moduleInfo:{getByIdUrl:"gwgl/gdwj/getById",listDataUrl:"gwgl/gdwj/archiveQuery",moduleCode:"gwgl",addNewUrl:"gwgl/gdwj/addNew",insertUrl:"gwgl/gdwj/insert",updateUrl:"gwgl/gdwj/update",uploadUrl:"gwgl/gdwj/upload",winWidth:1e3,winHeight:650},tableList:[{field:"state",checkbox:!0,width:"45px"},{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{propFormatter:"component:@/wapp/gwgl/components/GwglTbColumns",listAdvSearchElement:"",field:"flELevel",width:"100px",elementFormatter:this.$tx("gwgl.gdgl.flELevelFormatter","平件:平件\n急件:急件\n特急:特急"),sortable:!1,propType:"String",align:"center",title:"紧急程度 ",searchable:!1},{field:"flSubject",title:"文件标题",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!1,listAdvSearchElement:"input",listAdvSearchIndex:0},{field:"flGwType",title:"公文种类",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0,listAdvSearchElement:"select",listAdvSearchIndex:3,elementFormatter:"单位发文:单位发文\r\n收文阅办:收文阅办\r\n文件传阅:文件传阅\r\n请示报告:请示报告\r\n部门便函:部门便函\r\n单位函:单位函\r\n办公室文件:办公室文件\r\n"},{field:"gdType",title:"归档类型",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0,listAdvSearchElement:"select",listAdvSearchIndex:3,elementFormatter:"1:电子归档\r\n2:纸质归档\r\n1,2:全部类型\r\n"},{field:"flSLevel",title:"密级",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!1,sortable:!0,listAdvSearchElement:"input",listAdvSearchIndex:2,elementFormatter:"1:一般\r\n2:特殊\r\n"},{field:"creator",title:"归档人",width:"80px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!1,listAdvSearchElement:"input",listAdvSearchIndex:3},{field:"gdTime",title:"归档日期",width:"160px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0,listAdvSearchElement:"date",elementFormatter:"format:yyyy年MM月dd日\r\n",listAdvSearchIndex:4},{field:"fl",title:"文件分类",width:"100",align:"center",valign:"middle",enabled:!1,cellStyle:{css:{cursor:"pointer"}},searchable:!1,sortable:!1,listAdvSearchElement:"select",listAdvSearchIndex:2,elementFormatter:""}],listpageBtns:[],listpageBtnsb:[{btnName:this.$tx("gwgl.gdgl.borrowingApplication","借阅申请"),btnIcon:"plus",btnClick:this.jieyuesq,btnPermission:"",id:"btn_jysq",btnType:"toolbar"},{btnName:this.$tx("pageBtns.export","导出"),btnIcon:"export.svg",btnClick:this.doloadFile,btnPermission:"",id:"btn_export",btnType:"toolbar"}],listpageBtnsa:[{btnName:"新增",btnIcon:"plus",btnClick:this.addObject,btnPermission:"",id:"btn_add",btnType:"toolbar",btnI18nCode:"add"},{id:"btn_seetingId",btnName:this.$tx("pageBtns.setting","设置"),btnIcon:"s-tools",btnClick:this.setting,btnPermission:"setting",btnType:"toolbar"},{btnName:this.$tx("pageBtns.export","导出"),btnIcon:"export.svg",btnClick:this.doloadFile,btnPermission:"",id:"btn_export",btnType:"toolbar",btnI18nCode:"export"},{btnName:"批量下载",btnIcon:"export.svg",btnClick:this.batchSaveFiles,btnPermission:"batchSaveAllFiles",id:"btn_download",btnType:"toolbar",btnI18nCode:"batchSaveAllFiles"},{id:"btn_deleteId",btnName:this.$tx("pageBtns.setting","设置"),btnIcon:"",btnClick:this.setting,btnPermission:"setting",btnType:"column"}],downloadFileTitle:[{title:"序号",width:45,align:"center",colspan:1,rowspan:1,code:"index"},{title:"紧急程度",width:100,align:"center",colspan:1,rowspan:1,code:"flELevel"},{title:"文件标题",width:300,align:"left",colspan:1,rowspan:1,code:"flSubject"},{title:"文件类型",width:100,align:"center",colspan:1,rowspan:1,code:"flGwType"},{title:"归档类型",width:100,align:"center",colspan:1,rowspan:1,code:"gdType"},{title:"密级",width:100,align:"center",colspan:1,rowspan:1,code:"flSLevel"},{title:"归档人",width:80,align:"center",colspan:1,rowspan:1,code:"creator"},{title:"归档日期",width:150,align:"center",colspan:1,rowspan:1,code:"gdTime"}],canEdit:1,rowsSelected:[],num:"",allDate:[],cellNot:!0}},computed:{},watch:{treeNode:function(){this.setListDataUrl()}},created:function(){this.$bus.on("fileSetting",this.setting),this.$bus.on("editorForm",this.editorForm),this.listpageBtns=this.editPermission?this.listpageBtnsa:this.listpageBtnsb,this.editPermission&&this.tableList.push({field:"operate",title:"操作",width:"100px",align:"center",valign:"middle",propFormatter:"component:@/wapp/gwgl/components/GwglTbColumns"}),this.setListDataUrl()},beforeDestroy:function(){this.$bus.off("fileSetting",this.setting),this.$bus.off("editorForm",this.editorForm)},mounted:function(){console.log("listpageBtns",this.listpageBtns);var e=":全部文种\r\n";this.language.forEach((function(t){e+=t.name+":"+t.name+"\r\n"})),this.tableList[3].elementFormatter=e},methods:{jieyuesq:function(){if(this.rowsSelected.length>0){var e=JSON.stringify(this.rowsSelected);localStorage.setItem("gwjyInnerList",e);var t=window.open("#/wflow?wfEngineUrl=gwgl/jysq&busiCode=gwJysq&wfName=借阅申请&startNodeName=&gwjy=1"),n=setInterval((function(){t.closed&&(console.log("新窗口已被关闭"),clearInterval(n),localStorage.removeItem("gwjyInnerList"))}),1e3)}else this.$message.warning(this.$tx("gwgl.messages.selectData","请先选择数据!"))},onListDataBeforeLoad:function(e,t){t.searchAndOr||(t.searchAndOr="or",t.searchMap["flSubject"]="",t.searchMap["flGwType"]="",t.searchMap["gdType"]="",t.searchMap["creator"]="",t.searchMap["gdTime"]=""),t.orderBy="gdTime desc"},onListDataLoaded:function(e,t){var n=this;console.log(284,t),this.allDate=t.list,this.$http({url:"/gwgl/gdwj/numberOfArchives",method:"GET",contentType:"application/x-www-form-urlencoded"}).then((function(e){"success"===e.code&&(n.num=e.body.num)}))},selectedRowsChange:function(e){this.rowsSelected=e},addObject:function(){var e=this;this.$nextTick((function(){e.$bus.emit("openBusiform",e.moduleInfo,null,1)}))},setting:function(e){var t=this,n=[];n=e?[e]:this.rowsSelected,this.cellNot=!1,this.$bus.emit("openDialog",{rowsSelected:n,url:"",edit:!0}),setTimeout((function(){t.cellNot=!0}),1e3)},editorForm:function(e){var t=this;this.cellNot=!1,this.$nextTick((function(){t.$bus.emit("openBusiform",t.moduleInfo,e,1)})),setTimeout((function(){t.cellNot=!0}),1e3)},cellclick:function(e,t,n,r){if(this.editPermission&&this.cellNot){if(void 0===e.wfEngineUrl){var a=this.moduleInfo.listDataUrl.split("/");a=encodeURI(a[0]+"/"+a[1]),e.wfEngineUrl="/wflow?wfEngineUrl="+a+"&busiDataId="+e.id}window.open("./#"+e.wfEngineUrl+"&gdId="+e.id)}},setListDataUrl:function(){var e=this;return wt(vt().mark((function t(){var n;return vt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n="","0"===e.searchType?n="0"===e.treeNode.id?"gwgl/gdwj/archiveQuery":"1"===e.treeNode.id?"gwgl/gdwj/archiveQuery?categoryId=-1":"gwgl/gdwj/archiveQuery?categoryId="+e.treeNode.id:"1"===e.searchType?n="0"===e.treeNode.id?"gwgl/gdwj/archiveQuery":"gwgl/gdwj/archiveQuery?keyDate="+e.treeNode.name:"2"===e.searchType&&(n="0"===e.treeNode.id?"gwgl/gdwj/archiveQuery":"gwgl/gdwj/archiveQuery?flGwType="+e.treeNode.name),e.tableShow=!1,e.$nextTick((function(){e.tableShow=!0})),e.$set(e.moduleInfo,"listDataUrl",n);case 5:case"end":return t.stop()}}),t)})))()},doloadFile:function(){var e=this;return wt(vt().mark((function t(){var n,r;return vt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.rowsSelected,console.log(355,e.rowsSelected),console.log(358,e.allDate),0===n.length&&(n=e.allDate),r=[],n.forEach((function(t,n){var a=[];e.downloadFileTitle.forEach((function(r){var o={value:"",align:"",colspan:1,rowspan:1};"index"===r.code?o.value=n+1:"gdType"===r.code?o.value=1===t[r.code]?e.$tx("gwgl.components.electronicFilling","电子归档"):e.$tx("gwgl.components.paperArchiving","纸质归档"):"gdTime"===r.code?o.value=Mt(t[r.code]).format("YYYY年MM月DD日"):o.value=t[r.code],o.align=r.align,a.push(o)})),r.push(a)})),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},data:yt().stringify({rows:JSON.stringify(r),titles:JSON.stringify([e.downloadFileTitle]),fileName:e.treeNode.name+"-归档文件"}),url:"common/exportXlsFile"}).then((function(t){"success"===t.code?window.open("/apigw/"+t.body.xlsurl,"_blank"):e.$message.error(t.message)}));case 7:case"end":return t.stop()}}),t)})))()},batchSaveFiles:function(){var e=this;return wt(vt().mark((function t(){return vt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.rowsSelected.length){t.next=3;break}return e.$alert("请选择要下载的文件","操作提示",{confirmButtonText:"确定",type:"warning"}),t.abrupt("return");case 3:e.$http({method:"POST",url:"/gwgl/webForm/gwgdBatchDownload",data:e.rowsSelected}).then((function(t){"success"===t.code?window.open("/apigw/"+t.body.zipurl):e.$message.error(t.message)}));case 4:case"end":return t.stop()}}),t)})))()},onBasicFormBeforeOpen:function(e,t,n){t.isnew&&(t.accessRightsType=0,t.creator=this.loginUser.personName,t.flGwType=t.passenger.flGwTypeOptions[0].name),n.resolve(!0)},onBasicFormOpened:function(e,t){e.isnew&&(t.gdType=2)},onBasicFormBeforeSubmit:function(e,t,n){"归档分类"===t.categoryName&&(t.categoryId="",t.categoryName=""),this.$set(t,"wfEngineUrl","/wflow?wfEngineUrl=gwgl/gdwj&busiDataId="+t.id),n.resolve(!0)}}},Tt=Lt,xt=m(Tt,st,lt,!1,null,"67a34aba",null),Dt=xt.exports,kt={components:{FileList:Dt},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gdgl",treeData:[],treeNode:null,searchType:"0",loginUser:this.$store.getters.loginUser,root:{file:[{id:"0",parentId:"0",name:"所有文件",categoryName:"所有文件",open:!0,title:"所有文件"}],time:[{id:"0",name:"所有文件",year:"所有文件",open:!0,title:"所有文件"}],type:[{id:"0",name:"所有文件",categoryName:"所有文件",open:!0,title:"所有文件"}]},zTree:null,editPermission:!1,language:[]}},computed:{},watch:{searchType:function(e){this.getTreeList()}},created:function(){var e=this.$store.state.user.roles||[];e.some((function(e){return["dwAdministrators","dwLeaders"].includes(e)}))&&(this.editPermission=!0),this.$route.meta.params&&this.$route.meta.params.indexOf("searchType1")>-1?this.searchType="1":this.$route.meta.params&&this.$route.meta.params.indexOf("searchType2")>-1&&(this.searchType="2"),this.getTreeList()},beforeDestroy:function(){},mounted:function(){},methods:{onTreeCreated:function(e){var t=this;this.zTree=e;var n=this.zTree,r=n.getNodes();r.length>0&&this.$nextTick((function(){t.onTreeNodeClick("",r[0].id,r[0]),n.selectNode(r[0])}))},onTreeNodeClick:function(e,t,n){console.log(n,"treeNode"),this.treeNode=n},getTreeList:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{},data:[],url:"/gwgl/gdwj/classificationQueryCollection"}).then((function(t){"success"===t.code?(e.language=t.body.language,e.gdflszVos=t.body.gdflszVos,e.mapList=t.body.mapList,"0"===e.searchType?e.treeData=e.treeDataAdapter(e.root.file.concat(t.body.gdflszVos)):"1"===e.searchType?e.treeData=e.treeDataAdapter(e.root.time.concat(t.body.mapList)):"2"===e.searchType&&(t.body.language.forEach((function(e){e.id="",e.parentId=""})),e.treeData=e.treeDataAdapter(e.root.type.concat(t.body.language)))):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId||""===e.parentId||void 0===e.parentId?e.pId="0":e.pId=e.parentId,"0"===t.searchType?(e.name=e.categoryName,e.title=e.categoryName):"1"===t.searchType?(e.title=e.year,e.name=e.year):"2"===t.searchType&&(e.title=e.name)})),e}}},St=kt,Yt=(n(4868),m(St,ot,it,!1,null,"70c91108",null)),jt=Yt.exports,Ct=function(){var e=this,t=e._self._c;return t("div",[e.dialogFormVisible&&"dept"===e.sendType?t("SendDeptFile",{attrs:{"corp-leaders":e.corpLeaders,"inner-depts":e.innerDepts,"wf-instance":e.wfInstance,"busi-data":e.busiData,"fw-bodyfile":e.fwBodyfile,"fw-attachs":e.fwAttachs}}):e._e(),e.dialogFormVisible&&"corp"===e.sendType?t("SendCorpFile",{attrs:{"tree-nodes":e.treeNodes,"corp-orgs":e.corpOrgs,"wf-instance":e.wfInstance,"busi-data":e.busiData,"fw-bodyfile":e.fwBodyfile,"fw-attachs":e.fwAttachs}}):e._e(),e.dialogFormVisible&&"all"===e.sendType?t("SendGroupFile",{attrs:{"corp-leaders":e.corpLeaders,"inner-depts":e.innerDepts,"commom-tree":e.commomTree,"corp-orgs":e.corpOrgs,"wf-instance":e.wfInstance,"busi-data":e.busiData,"fw-bodyfile":e.fwBodyfile,"fw-attachs":e.fwAttachs}}):e._e(),t("SendlogList",{attrs:{"wf-instance":e.wfInstance}}),t("ReceiptFile")],1)},Ot=[],Nt=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,visible:e.dialogFormVisible,"destroy-on-close":!0,width:"1200px",title:e.winTitle},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("thead",[t("th",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"leaders",expression:"'leaders'"}],staticStyle:{"text-align":"center"}},[e._v("领导阅文")]),t("th",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"receiptDocuments",expression:"'receiptDocuments'"}],staticStyle:{"text-align":"center"},attrs:{moduleCode:"portlet"}},[e._v("部门收文")])]),t("tbody",[t("tr",[t("td",[t("el-row",[t("el-col",{staticClass:"ztree-container listitem",attrs:{span:"11"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("GiantTree",{attrs:{"ztree-id":"corpLeadersTree",nodes:e.corpLeaders,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)]),t("el-col",{staticClass:"selectBtn-container",attrs:{span:"2"}},[t("div",[t("el-button",{staticClass:"el-icon-d-arrow-right",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpLeadersTree",!0)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")]),t("br"),t("br"),t("div",[t("el-button",{staticClass:"el-icon-d-arrow-left",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpLeadersTree",!1)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"del",expression:"'del'"}]},[e._v("删除")])]),t("el-col",{staticClass:"ztree-container",attrs:{span:"11"}},[t("div",{staticClass:"treeNode selectnode"},e._l(e.sendToList.corpLeadersTree,(function(n,r){return t("span",{key:r,on:{click:function(t){return e.removeSelectedNode(r,"corpLeadersTree")}}},[e._v(" "+e._s(n.title)+" "),t("i",{staticClass:"el-icon-close"}),t("br")])})),0)])],1)],1),t("td",[t("el-row",[t("el-col",{staticClass:"ztree-container listitem",attrs:{span:"11"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("GiantTree",{attrs:{"ztree-id":"innerDeptsTree",nodes:e.innerDepts,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)]),t("el-col",{staticClass:"selectBtn-container",attrs:{span:"2"}},[t("div",[t("el-button",{staticClass:"el-icon-d-arrow-right",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("innerDeptsTree",!0)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")]),t("br"),t("br"),t("div",[t("el-button",{staticClass:"el-icon-d-arrow-left",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("innerDeptsTree",!1)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"del",expression:"'del'"}]},[e._v("删除")])]),t("el-col",{staticClass:"ztree-container",attrs:{span:"11"}},[t("div",{staticClass:"treeNode selectnode"},e._l(e.sendToList.innerDeptsTree,(function(n,r){return t("span",{key:r,on:{click:function(t){return e.removeSelectedNode(r,"innerDeptsTree")}}},[e._v(" "+e._s(n.title)+" "),t("i",{staticClass:"el-icon-close"}),t("br")])})),0)])],1)],1)]),t("tr",[t("td",{staticClass:"fwAttach-container",attrs:{colspan:"2"}},[t("div",[t("el-checkbox",{attrs:{disabled:"true"},model:{value:e.fwBodyfile.needSend,callback:function(t){e.$set(e.fwBodyfile,"needSend",t)},expression:"fwBodyfile.needSend"}},[e._v(e._s(e.fwBodyfile.fileName))])],1),e._l(e.attachments,(function(n){return t("div",{key:n.id},[t("el-checkbox",{attrs:{"true-label":!0,"false-label":!1},model:{value:n.needSend,callback:function(t){e.$set(n,"needSend",t)},expression:"attach.needSend"}},[e._v(e._s(n.fileName))])],1)}))],2)])])])])])]),e.loading?e._e():t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{plain:"",icon:"el-icon-close",type:"default",disabled:e.sendDoing},on:{click:e.handleDialogClose}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{icon:"el-icon-check",type:"primary",loading:e.sendDoing},on:{click:e.handleSubmitForm}},[e._v("确定")])],1)],1):e._e()},Pt=[];function Et(e){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function Ht(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ht=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Et(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Et(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Ft(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function At(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ft(o,r,a,i,s,"next",e)}function s(e){Ft(o,r,a,i,s,"throw",e)}i(void 0)}))}}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t,n){return(t=Rt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rt(e){var t=Wt(e,"string");return"symbol"==Et(t)?t:t+""}function Wt(e,t){if("object"!=Et(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Gt={name:"SendDeptFile",components:{},props:{corpLeaders:{type:Array,default:function(){return{}}},innerDepts:{type:Array,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},busiData:{type:Object,default:function(){return{}}},fwBodyfile:{type:Object,default:function(){return{}}},fwAttachs:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!0,loading:!1,winTitle:this.$tx("gwgl.gwjh.winTitle","发送本单位"),corpLeadersTree:{},innerDeptsTree:{},attachments:[],multiple:!0,sendToList:{corpLeadersTree:[],innerDeptsTree:[]},sendDoing:!1}},computed:It({},re(["loginUser"])),watch:{fwBodyfile:function(){void 0!==this.fwBodyfile.id&&(this.loading=!1)},fwAttachs:function(){this.attachments=JSON.parse(JSON.stringify(this.fwAttachs))},corpLeaders:function(){this.treeDataAdapter("corpLeadersTree",this.corpLeaders)},innerDepts:function(){this.treeDataAdapter("innerDeptsTree",this.innerDepts)}},created:function(){},beforeDestroy:function(){},mounted:function(){this.loading=!0},methods:{onTreeCreated:function(e,t){this[t]=e},treeDataAdapter:function(e,t){this.sendToList[e]=[];for(var n=0;n<t.length;n++){var r=t[n];if("innerDeptsTree"===e){var a="2,3".split(",");r.pId=r.parentId,r.title=r.orgFullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),null!==this.busiData.flMainSend&&-1!==this.busiData.flMainSend.indexOf(r.name)&&(r.checked=!0,this.sendToList[e].push(r)),null!==this.busiData.flCopySend&&-1!==this.busiData.flCopySend.indexOf(r.name)&&(r.checked=!0,this.sendToList[e].push(r)),r.orgLevel>a[a.length-1]||1!==r.isRealOrg?t.splice(n--,1):-1!==a.join(",").indexOf(r.orgLevel)&&(r.canSelect=!0)}else"corpLeadersTree"===e&&(r.personId?(r.pId=r.orgId,r.title=r.name+"/"+r.account,r.canSelect=!0):(r.pId=r.parentID,r.name=r.nName,r.title=r.fullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),0===n&&(r.open=!0),r.canSelect=!1))}return t},onTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},handleSelectAll:function(e,t){if(this[e].checkAllNodes(t),t){this.sendToList[e]=this[e].getCheckedNodes();for(var n=0;n<this.sendToList[e].length;n++)this.sendToList[e][n].canSelect||this.sendToList[e].splice(n--,1)}else this.sendToList[e]=[]},onTreeNodeCheck:function(e,t,n){this.sendToList[t]=this[t].getCheckedNodes();for(var r=0;r<this.sendToList[t].length;r++)this.sendToList[t][r].canSelect||this.sendToList[t].splice(r--,1)},removeSelectedNode:function(e,t){var n=this[t].getNodeByParam("id",this.sendToList[t][e].id,null);null!=n&&this[t].checkNode(n,!1,!0,!1),this.sendToList[t].splice(e,1)},handleSubmitForm:function(){var e=this,t=this;this.sendToList["corpLeadersTree"]&&0!==this.sendToList["corpLeadersTree"].length||this.sendToList["innerDeptsTree"]&&0!==this.sendToList["innerDeptsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(At(Ht().mark((function n(){var r,a;return Ht().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=t.fwBodyfile&&r.push(t.fwBodyfile),t.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:a,fwOrgId:t.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(t.busiData),corpLeaders:JSON.stringify(t.sendToList["corpLeadersTree"]),innerDepts:JSON.stringify(t.sendToList["innerDeptsTree"]),fwAttachs:JSON.stringify(r)}),url:"gwjh/sendFile/startSendDeptFile"}).then((function(n){if("success"===n.code){var r=e.$vnode.context.$vnode.context;t.busiData.flBeenSend=1,t.busiData.flSenderAccount=e.loginUser.personAccount;var a=!1,o="";r.commandBar.forEach((function(e){"btnViewSendlogClick"!==e.btnCode&&"发送跟踪"!==e.btnName||(a=!0),""===o&&e.btnName&&-1!==e.btnName.indexOf("发送")&&(null!=e.btnGroupId?o=e.btnGroupId:2===e.btnType&&(o=e.id))})),a||""===o||r.commandBar.push({btnAlign:1,btnCode:"btnViewSendlogClick",btnGroupId:o,btnIcon:null,btnClick:function(){e.$bus.emit("btnViewSendlogClick",r)},btnName:"发送跟踪",btnOrderNo:"70",btnShow:1,btnType:"3",visitType:0});var i=0,s=0,l="";n.body.sendlogList.forEach((function(e){"99"===e.jhStatus?(s++,l+=e.passenger.errMsg+"<br>"):i++})),0===s?t.$message({type:n.code,message:n.message,showClose:!0}):t.$alert(t.$tx("gwgl.messages.sendFileSuccess",{num:i,failNum:s})+"<br>"+l,t.$tx("common.operationTip","操作提示"),{type:"warning",dangerouslyUseHTMLString:!0}),t.sendDoing=!1,t.handleDialogClose()}else{t.sendDoing=!1;var d="<br>";n.body.sendlogList&&n.body.sendlogList.forEach((function(e){"99"===e.jhStatus&&(d+=e.passenger.errMsg+"<br>")})),t.$alert(n.message+d,t.$tx("common.confirmOperate","确认操作"),{type:"error",dangerouslyUseHTMLString:!0})}}));case 6:case"end":return n.stop()}}),n)})))).catch((function(e){"cancel"!==e&&console.error(e)})):this.$alert(this.$tx("gwgl.messages.selectLeader","请选择阅文领导、收文部门。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handleDialogClose:function(){this.$vnode.context.dialogFormVisible=!1,this.$vnode.context.fwBodyfile={},this.$vnode.context.fwAttachs=[]}}},Bt=Gt,Ut=(n(2727),m(Bt,Nt,Pt,!1,null,"4580fba6",null)),qt=Ut.exports,Vt=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,visible:e.dialogFormVisible,"destroy-on-close":!0,width:"1200px",title:e.winTitle},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),e.loading?e._e():t("div",{staticClass:"select-container"},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-input",{attrs:{placeholder:e.$tx("gwgl.gwjh.keyPlaceholder","请输入搜索关键字")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchTreeNode.apply(null,arguments)}},model:{value:e.searchkey,callback:function(t){e.searchkey=t},expression:"searchkey"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchTreeNode},slot:"append"})],1)],1)],1),t("el-row",{staticStyle:{"margin-top":"10px"}},[t("el-col",{staticClass:"ztree-container",staticStyle:{"overflow-y":"inherit"},attrs:{span:"7"}},[t("div",{staticClass:"treeNode"},[t("GiantTree",{attrs:{"ztree-id":"areaNodeTree",nodes:e.areaNodeTreeData,multiple:!1,"show-icon":!0,"show-line":!0},on:{onCreated:e.onTreeCreated,onClick:e.onAreaTreeNodeClick}})],1)]),t("el-col",{staticClass:"ztree-container listitem",staticStyle:{"overflow-y":"inherit"},attrs:{span:"8"}},[t("div",{staticClass:"treeNode"},[null!==e.rootOrgTreeData&&0!==e.rootOrgTreeData.length?t("GiantTree",{attrs:{"ztree-id":"corpOrgsTree",nodes:e.rootOrgTreeData,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onRootOrgTreeNodeClick,onCheck:e.onRootOrgTreeNodeCheck}}):e._e(),null===e.rootOrgTreeData||0===e.rootOrgTreeData.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.rootOrgTreeData?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)]),t("el-col",{staticClass:"selectBtn-container",attrs:{span:"1"}},[t("div",[t("el-button",{staticClass:"el-icon-d-arrow-right",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpOrgsTree",!0)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")]),t("br"),t("br"),t("div",[t("el-button",{staticClass:"el-icon-d-arrow-left",attrs:{size:"mini",circle:"",plain:""},on:{click:function(t){return e.handleSelectAll("corpOrgsTree",!1)}}})],1),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"clear",expression:"'clear'"}]},[e._v("清除")])]),t("el-col",{staticClass:"ztree-container",attrs:{span:"8"}},[t("div",{staticClass:"treeNode selectnode"},e._l(e.sendToList.corpOrgsTree,(function(n,r){return t("span",{key:r,on:{click:function(t){return e.removeSelectedNode(r,"corpOrgsTree")}}},[e._v(" "+e._s(n.title)+" "),t("i",{staticClass:"el-icon-close"}),t("br")])})),0)])],1),t("el-row",[t("el-col",{staticClass:"fwAttach-container",attrs:{span:"24"}},[t("div",[t("el-checkbox",{attrs:{disabled:"true"},model:{value:e.fwBodyfile.needSend,callback:function(t){e.$set(e.fwBodyfile,"needSend",t)},expression:"fwBodyfile.needSend"}},[e._v(e._s(e.fwBodyfile.fileName))])],1),e._l(e.attachments,(function(n){return t("div",{key:n.id},[t("el-checkbox",{attrs:{"true-label":!0,"false-label":!1},model:{value:n.needSend,callback:function(t){e.$set(n,"needSend",t)},expression:"attach.needSend"}},[e._v(e._s(n.fileName))])],1)}))],2)],1)],1),e.loading?e._e():t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{plain:"",icon:"el-icon-close",type:"default",disabled:e.sendDoing},on:{click:e.handleDialogClose}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{icon:"el-icon-check",type:"primary",loading:e.sendDoing},on:{click:e.handleSubmitForm}},[e._v("确定")])],1)]):e._e()},Jt=[];function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Kt(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Kt(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Zt(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Xt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Zt(o,r,a,i,s,"next",e)}function s(e){Zt(o,r,a,i,s,"throw",e)}i(void 0)}))}}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return(t=rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e){var t=an(e,"string");return"symbol"==Kt(t)?t:t+""}function an(e,t){if("object"!=Kt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var on={name:"SendCorpFile",components:{},props:{corpOrgs:{type:Array,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},busiData:{type:Object,default:function(){return{}}},fwBodyfile:{type:Object,default:function(){return{}}},fwAttachs:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!0,loading:!1,winTitle:"发送外单位",searchkey:"",attachments:[],multiple:!0,areaNodeTreeData:[],rootOrgTreeData:[],rootOrgTreeDataBak:[],sendToList:{corpOrgsTree:[]},sendDoing:!1}},computed:tn({},re(["loginUser"])),watch:{fwBodyfile:function(){void 0!==this.fwBodyfile.id&&(this.loading=!1)},fwAttachs:function(){this.attachments=JSON.parse(JSON.stringify(this.fwAttachs))},corpOrgs:function(){var e=this;this.corpOrgs.forEach((function(t){"rootOrg"===t.type?e.rootOrgTreeData.push(t):e.areaNodeTreeData.push(t)})),this.treeDataAdapter("areaNodeTree",this.areaNodeTreeData),this.treeDataAdapter("corpOrgsTree",this.rootOrgTreeData),this.rootOrgTreeDataBak=JSON.parse(JSON.stringify(this.rootOrgTreeData))}},created:function(){},beforeDestroy:function(){},mounted:function(){this.loading=!0},methods:{onTreeCreated:function(e,t){this[t]=e},treeDataAdapter:function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.id=r.fullID,-1!==r.id.indexOf("-")?r.pId=r.fullID.substring(0,r.fullID.lastIndexOf("-")):r.pId=r.parentID,r.name=r.nName,r.title=r.name,0===n&&(r.open=!0),"rootOrg"===r.type?(r.isParent=!1,r.canSelect=!0):r.nocheck=!0}return t},searchTreeNode:function(){var e=this;this["areaNodeTree"].selectNode(this.areaNodeTreeData[0]);var t=JSON.parse(JSON.stringify(this.rootOrgTreeDataBak)),n={};this.sendToList["corpOrgsTree"].forEach((function(e){n[e.id]=e.id})),this.rootOrgTreeData=[],t.forEach((function(t){-1===t.fullName.indexOf(e.searchkey)&&""!==e.searchkey||(void 0!==n[t.id]&&(t.checked=!0),e.rootOrgTreeData.push(t))}))},onAreaTreeNodeClick:function(e,t,n){var r=this;this.searchkey="";var a={};this.sendToList["corpOrgsTree"].forEach((function(e){a[e.id]=e.id}));var o=JSON.parse(JSON.stringify(this.rootOrgTreeDataBak));this.rootOrgTreeData=[],o.forEach((function(e){0===e.fullID.indexOf(n.fullID)&&(void 0!==a[e.id]&&(e.checked=!0),r.rootOrgTreeData.push(e))}))},onRootOrgTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},handleSelectAll:function(e,t){var n=this,r={};this.sendToList[e].forEach((function(e){r[e.id]=e.id})),this[e].checkAllNodes(t),this.rootOrgTreeData.forEach((function(a){t?a.checked?void 0===r[a.id]&&n[e].checkNode(a,!0,!0,!0):n[e].checkNode(a,!0,null,!0):a.checked?n[e].checkNode(a,!1,null,!0):void 0!==r[a.id]&&n[e].checkNode(a,!1,!0,!0)}))},onRootOrgTreeNodeCheck:function(e,t,n){var r={};if(this.sendToList[t].forEach((function(e){r[e.id]=e.id})),n.checked)void 0===r[n.id]&&this.sendToList[t].push(n);else for(var a=0;a<this.sendToList[t].length;a++)n.id===this.sendToList[t][a].id&&this.sendToList[t].splice(a--,1)},removeSelectedNode:function(e,t){var n=this[t].getNodeByParam("id",this.sendToList[t][e].id,null);null!=n&&this[t].checkNode(n,!1,!0,!1),this.sendToList[t].splice(e,1)},handleSubmitForm:function(){var e=this,t=this;this.sendToList["corpOrgsTree"]&&0!==this.sendToList["corpOrgsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(Xt(Qt().mark((function n(){var r,a;return Qt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=e.fwBodyfile&&r.push(e.fwBodyfile),e.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:a,fwOrgId:t.wfInstance.createOrgId.split("-")[0]},data:yt().stringify({fwBusiData:JSON.stringify(t.busiData),corpOrgs:JSON.stringify(t.sendToList["corpOrgsTree"]),fwAttachs:JSON.stringify(r)}),url:"gwjh/sendFile/startSendCorpFile"}).then((function(n){if("success"===n.code){var r=e.$vnode.context.$vnode.context;t.busiData.flBeenSend=1,t.busiData.flSenderAccount=e.loginUser.personAccount;var a=!1,o="";r.commandBar.forEach((function(e){"btnViewSendlogClick"!==e.btnCode&&"发送跟踪"!==e.btnName||(a=!0),""===o&&-1!==e.btnName.indexOf("发送")&&(null!=e.btnGroupId?o=e.btnGroupId:2===e.btnType&&(o=e.id))})),a||""===o||r.commandBar.push({btnAlign:1,btnCode:"btnViewSendlogClick",btnGroupId:o,btnIcon:null,btnClick:function(){e.$bus.emit("btnViewSendlogClick",r)},btnName:"发送跟踪",btnOrderNo:"70",btnShow:1,btnType:"3",visitType:0});var i=0,s=0,l="";n.body.sendlogList.forEach((function(e){"99"===e.jhStatus?(s++,l+=e.passenger.errMsg+"<br>"):i++})),0===s?t.$message({type:n.code,message:n.message,showClose:!0}):t.$alert(t.$tx("gwgl.messages.sendFileSuccess",{num:i,failNum:s},"发送文件成功".concat(i,"份,失败").concat(s,"份!"))+"<br>"+l,t.$tx("common.operationTip","操作提示"),{type:"warning",dangerouslyUseHTMLString:!0}),e.sendDoing=!1,t.handleDialogClose()}else{e.sendDoing=!1;var d="<br>";n.body.sendlogList&&n.body.sendlogList.forEach((function(e){"99"===e.jhStatus&&(d+=e.passenger.errMsg+"<br>")})),t.$alert(n.message+d,t.$tx("common.confirmOperate","确认操作"),{type:"error",dangerouslyUseHTMLString:!0})}}));case 6:case"end":return n.stop()}}),n)})))).catch((function(e){"cancel"!==e&&console.error(e)})):this.$alert(this.$tx("gwgl.messages.selectGwDepart","请选择收文单位。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handleDialogClose:function(){this.$vnode.context.dialogFormVisible=!1,this.$vnode.context.fwBodyfile={},this.$vnode.context.fwAttachs=[]}}},sn=on,ln=(n(1757),m(sn,Vt,Jt,!1,null,"bb9d6ec0",null)),dn=ln.exports,cn=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.dialogFormVisible,"destroy-on-close":!1,"close-on-click-modal":!1,width:"1000px",title:e.title},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{staticStyle:{"max-height":"570px","overflow-y":"auto","border-bottom":"1px solid #ebeef5"},attrs:{label:"本单位",name:"bmswLog"}},[e.loading?e._e():t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.bmswLogList,border:""}},[t("el-table-column",{attrs:{align:"center",type:"index",label:e.$tx("fields.index","序号"),width:"45"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.bmswDeptName","收文部门"),prop:"bmswDeptName",align:"left"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.sendTime","发送时间"),prop:"fwSendTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swReceiveTime","到达时间"),prop:"swReceiveTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swOpenTime","开始办理时间"),prop:"swOpenTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("common.operate","操作"),width:"130",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.swReceiveTime?e._e():t("el-link",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"processingStatus",expression:"'processingStatus'"}],attrs:{type:"primary"},on:{click:function(t){return e.btnRetryCreateChildWlfowgClick(n.row)}}},[e._v("重新发送")]),n.row.swReceiveTime?t("el-link",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"processingStatus",expression:"'processingStatus'"}],attrs:{type:"primary"},on:{click:function(t){return e.viewBmswWorkForm(n.row)}}},[e._v("办理情况")]):e._e(),n.row.swReceiveTime?t("el-link",{class:{"disabled-link":"9"===n.row.jhStatus},attrs:{type:"primary"},on:{click:function(t){return e.revokeForm(n.row,1)}}},[e._v(" "+e._s("9"===n.row.jhStatus?e.$tx("gwgl.gwjh.withdrawn","已撤回"):e.$tx("gwgl.gwjh.drawn","撤回"))+" ")]):e._e()]}}],null,!1,3426652254)})],1)],1),t("el-tab-pane",{attrs:{label:"外单位",name:"dwswLog"}},[t("div",{staticClass:"select"},[t("div",[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dwName2",expression:"'dwName2'"}],staticStyle:{float:"left","line-height":"36px"}},[e._v("单位名称:")]),t("el-input",{staticStyle:{float:"left",width:"895px"},attrs:{clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.btnViewSendlogClick.apply(null,arguments)}},model:{value:e.orgname,callback:function(t){e.orgname=t},expression:"orgname"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.btnViewSendlogClick},slot:"append"})],1)],1),t("el-row",{staticClass:"tab-top"},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(6)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"allSwdw",expression:"'allSwdw'"}]},[e._v("全部收文单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.statusAll))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(1)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wddDw",expression:"'wddDw'"}]},[e._v("未到达单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status0+e.swLogCount.status1))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple-light",on:{click:function(t){return e.tabClick(2)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"yddDw",expression:"'yddDw'"}]},[e._v("已到达单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status2))]),e._v(" ) ")])])],1),t("el-row",{staticClass:"tab-bottom"},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(99)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sendFailDw",expression:"'sendFailDw'"}]},[e._v("发送失败单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status99))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple",on:{click:function(t){return e.tabClick(3)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"yqsDw",expression:"'yqsDw'"}]},[e._v("已签收单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status3))]),e._v(" ) ")])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"grid-content bg-purple-light",on:{click:function(t){return e.tabClick(4)}}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"yjsDw",expression:"'yjsDw'"}]},[e._v("已拒收单位(")]),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.swLogCount.status4))]),e._v(" ) ")])])],1)],1),t("div",{staticClass:"tableList"},[e.loading?e._e():t("el-table",{staticStyle:{width:"100%","overflow-y":"auto"},attrs:{data:e.dwswLogList,border:"",height:"287px","row-class-name":e.setRowClassName}},[t("el-table-column",{attrs:{align:"center",type:"index",label:e.$tx("fields.index","序号"),width:"45"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swOrgName","收文单位"),prop:"dwswOrgName",align:"left"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.sendTime","发送时间"),prop:"fwSendTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swReceiveTime","到达时间"),prop:"swReceiveTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.components.fields.signingTime","签收时间"),prop:"swOpenTime",width:"150",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("fields.status","状态"),prop:"status",width:"80",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("common.operate","操作"),width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-link",{class:{"disabled-link":"9"===n.row.jhStatus},attrs:{type:"primary"},on:{click:function(t){return e.revokeForm(n.row,2)}}},[e._v(" "+e._s("9"===n.row.jhStatus?e.$tx("gwgl.gwjh.withdrawn","已撤回"):e.$tx("gwgl.gwjh.drawn","撤回"))+" ")])]}}],null,!1,587727615)})],1)],1)])],1),t("cuibanLog",{attrs:{title:e.cuibantitle,list:e.listdata,"wf-instance":e.wfInstance}})],1):e._e()},un=[],pn=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{width:"1000px",visible:e.visible,title:e.title,"append-to-body":!0},on:{"update:visible":function(t){e.visible=t}}},[1===e.isShowVal?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listData,border:""},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),t("el-table-column",{attrs:{align:"center",type:"index",label:e.$tx("fields.index","序号"),width:"45"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.swOrgName","收文单位"),prop:"swOrgName",align:"left"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.linkman","收文单位联系人"),prop:"linkman",align:"center",formatter:e.columnFormatter}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.faTime","发文时间"),prop:"receiveTime",align:"center"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.textMessage","短信"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",[e._v(e._s(0===n.row.smsStatus?e.$tx("gwgl.gwjh.notSent","未发送"):e.$tx("gwgl.gwjh.sent","已发送")))])]}}],null,!1,1270916442)}),t("el-table-column",{attrs:{label:e.$tx("fields.status","状态"),align:"center",prop:"jhStatus"}})],1),t("div",{staticClass:"btn"},[t("el-button",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urgeProcessing",expression:"'urgeProcessing'"}],attrs:{type:"primary"},on:{click:e.receiptInfo}},[e._v("催办")])],1)],1):e._e(),2===e.isShowVal?t("div",{staticClass:"infoContent"},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"receiver",expression:"'receiver'"}]},[e._v("接收人")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"接收人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"receiver",rows:4,type:"textarea",placeholder:e.$tx("gwgl.gwjh.recipientPlaceholder","请输入接收人")},model:{value:e.receiver,callback:function(t){e.receiver=t},expression:"receiver"}})],1)]}}],null,!1,3830385294)}),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"recipientFormat",expression:"'recipientFormat'"}]},[e._v("接收人格式如:152********,158********")])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"content",expression:"'content'"}]},[e._v("短信内容")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"接收人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"content",rows:4,type:"textarea",placeholder:e.$tx("gwgl.gwjh.messengeContentPlaceholder","请输入短信内容")},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)]}}],null,!1,3851635588)})],1)])])])])])]),t("div",{staticClass:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.visible=!1}}},[e._v("取消")])],1)],1):e._e(),3===e.isShowVal?t("div",{staticClass:"info-list"},[t("el-button-group",{staticStyle:{"margin-bottom":"15px"}},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"all",expression:"'all'"}],attrs:{type:1===e.active?"primary":""},on:{click:function(t){return e.selection(1)}}},[e._v("全部")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sendText",expression:"'sendText'"}],attrs:{type:2===e.active?"primary":""},on:{click:function(t){return e.selection(2)}}},[e._v("发文短信")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"urgentSMS",expression:"'urgentSMS'"}],attrs:{type:3===e.active?"primary":""},on:{click:function(t){return e.selection(3)}}},[e._v("催办短信")])],1),t("div",{staticClass:"table-inner"},[t("el-table",{staticClass:"record-table",staticStyle:{width:"100%"},attrs:{data:e.infoRecordList,border:""}},[t("el-table-column",{attrs:{width:"45",label:e.$tx("fields.index","序号"),align:"center",type:"index"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.dwName","单位名称"),align:"center",prop:"swOrgName"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.receiver","接收人"),align:"center",prop:"receiver"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.recipientPhone","接收人号码"),width:"100",align:"center",prop:"phone"}}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.sendTime"),width:"140",align:"center",prop:"sendTime"}}),t("el-table-column",{attrs:{label:e.$tx("fields.status","状态"),width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",[e._v(e._s(0===n.row.status?e.$tx("gwgl.gwjh.sendFail","发送失败"):e.$tx("gwgl.gwjh.sendSuccess","发送成功")))])]}}],null,!1,1008086496)}),t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.fields.content","短信内容"),align:"center",prop:"smsContent"}})],1)],1)],1):e._e(),t("el-dialog",{attrs:{width:"880px",visible:e.visibleInfo,title:e.titleInfo,"append-to-body":""},on:{"update:visible":function(t){e.visibleInfo=t}}},[e.isShow?t("div",[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"content",expression:"'content'"}]},[e._v("短信内容")]),e._v(" : "),t("el-input",{attrs:{rows:4,type:"textarea"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),t("div",{staticStyle:{width:"100%","text-align":"center","margin-top":"20px"}},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确定")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.visibleInfo=!1}}},[e._v("取消")])],1)],1):e._e(),e.isShow?e._e():t("div",{staticStyle:{"text-align":"center"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.infoList,border:""}},[t("el-table-column",{attrs:{label:e.$tx("gwgl.gwjh.swOrgName","收文单位"),width:"300",align:"center",prop:"swOrgName"}}),t("el-table-column",{attrs:{align:"center",label:e.$tx("gwgl.gwjh.sendStatus","短信发送状态")},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",[e._v(e._s(0===n.row.status?e.$tx("gwgl.gwjh.fields.sendFail","发送失败"):e.$tx("gwgl.gwjh.sendSuccess","发送成功")))])]}}],null,!1,316153215)})],1),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.close}},[e._v("关 闭")])],1)])],1)},mn=[],fn={components:{},props:{title:{type:String,default:""},wfInstance:{type:Object,default:function(){return{}}},list:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",isShow:!0,visible:!1,visibleInfo:!1,listData:[],multipleSelection:[],idAll:[],titleInfo:this.$tx("gwgl.gwjh.inputEmailText","填写短信内容"),content:"",infoList:[],receiver:"",isShowVal:null,infoRecordList:[],active:1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){this.$bus.on("opendialog",this.opendialog)},beforeDestroy:function(){this.$bus.off("opendialog",this.opendialog)},mounted:function(){},methods:{selection:function(e){console.log(e),this.active=e;var t=[{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}];2===e?t=[{compare:"=",field:"sendType",merge:!0,value:"1"},{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}]:3===e&&(t=[{compare:"=",field:"sendType",merge:!0,value:"0"},{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}]),this.getInfoRecordData(t)},columnFormatter:function(e,t,n,r){var a=e.linkman.split(";"),o="";return a.forEach((function(e){""!==e&&(""!==o&&(o+=","),o+=e.split("###")[0])})),o},submit:function(){var e=this;this.formValidate((function(){e.$http({url:"gwjh/fawenSms/sendSmsToPhones",method:"POST",params:{busiDataId:e.wfInstance.busiDataId},data:{phones:e.receiver,content:e.content}}).then((function(t){"success"===t.code?(e.visibleInfo=!0,e.isShow=!1,e.infoList=t.body.listdata):e.$message.error(t.message)}))}))},close:function(){this.visible=!1,this.visibleInfo=!1},onSubmit:function(){var e=this;this.$http({url:"gwjh/fawenSms/sendCuibanSms",method:"POST",params:{busiDataId:this.wfInstance.busiDataId},data:{sendlogIds:this.idAll.join(","),content:this.content}}).then((function(t){"success"===t.code?(e.isShow=!1,e.infoList=t.body.listdata):e.$message.error(t.message)}))},receiptInfo:function(){this.multipleSelection.length>0?(this.getContent(),this.visibleInfo=!0):this.$message.error(this.$tx("gwgl.messages.noUrgeProcessingSw","暂无可催办的收文单位"))},getContent:function(){var e=this;this.$http({method:"POST",url:"gwjh/fawenSms/findCuibanSmsContent",params:{busiCode:this.wfInstance.module,busiDataId:this.wfInstance.busiDataId}}).then((function(t){"success"===t.code?e.content=t.body.content:e.$message.error(t.message)}))},getInfoRecordData:function(e){var t=this;this.$http({method:"POST",url:"gwjh/fawenSms/querydata",params:{orderBy:"sendTime desc"},data:e}).then((function(e){"success"===e.code?t.infoRecordList=e.body.listdata:t.$message.error(e.message)}))},opendialog:function(e){if(this.isShowVal=e,2===e&&this.getContent(),3===e){var t=[{compare:"=",field:"fwid",merge:!0,value:this.wfInstance.busiDataId}];this.getInfoRecordData(t)}this.visible=!0,this.listData=this.list},handleSelectionChange:function(e){var t=this;this.idAll=[],this.multipleSelection=[],this.multipleSelection=e,this.multipleSelection.forEach((function(e){t.idAll.push(e.id)})),console.log(this.idAll,888)}}},hn=fn,gn=(n(1453),m(hn,pn,mn,!1,null,"4cc55041",null)),yn=gn.exports,_n={components:{cuibanLog:yn},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",listdata:[],cuibantitle:"",dialogCuiban:!1,title:this.$tx("gwgl.gwjh.sendTracking","发送跟踪"),dialogFormVisible:!1,activeName:"bmswLog",bmswLogList:[],dwswLogList:[],swLogCount:{},loading:!1,wfInstance:"",orgname:"",vo:"",attachments:[],bodyfile:{},doing:!1}},computed:{},watch:{activeName:function(e){"dwswLog"===e&&this.tabClick(6)}},created:function(){this.$bus.on("btnViewSendlogClick",this.btnViewSendlogClick)},beforeDestroy:function(){this.$bus.off("btnViewSendlogClick",this.btnViewSendlogClick)},mounted:function(){},methods:{tabClick:function(e){var t=this;this.loading=!0,this.dwswLogList=[],this.listdata.forEach((function(n){null!==n.bmswWfInstanceId&&""!==n.bmswWfInstanceId||(6===e?n.dwswOrgCode&&t.dwswLogList.push(n):1===e?0!==Number(n.jhStatus)&&1!==Number(n.jhStatus)||t.dwswLogList.push(n):e===parseInt(n.jhStatus)&&t.dwswLogList.push(n))})),this.$nextTick((function(){t.loading=!1}))},cuibanClick:function(e){var t=this;1===e?(this.cuibantitle=this.$tx("gwgl.gwjh.msgCb","短信催办"),this.$nextTick((function(){t.$bus.emit("opendialog",e)}))):2===e?(this.cuibantitle=this.$tx("gwgl.gwjh.zdyMsgCb","自定义短信催办"),this.$nextTick((function(){t.$bus.emit("opendialog",e)}))):3===e&&(this.cuibantitle=this.$tx("gwgl.gwjh.msgRecord","短信记录"),this.$nextTick((function(){t.$bus.emit("opendialog",e)})))},btnViewSendlogClick:function(e){var t=this;this.attachments=e.attachments,this.bodyfile=e.bodyfile,""===this.wfInstance&&(this.wfInstance=e.wfInstance),""===this.vo&&(this.vo=e.vo);var n=this;if(!n.loading){n.loading=!0,n.dialogFormVisible=!0,""===this.activeName&&(this.activeName="bmswLog");var r=[];r=""!==this.orgname?[{compare:"=",field:"fwId",value:this.vo.id},{compare:"like",field:"dwswOrgName",value:"%"+this.orgname+"%"}]:[{compare:"=",field:"fwId",value:this.vo.id}],this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:r,params:{orderBy:"fwSendTime"},url:"gwjh/sendFile/querydata"}).then((function(e){if("success"===e.code){t.listdata=e.body.listdata;var r=[],a=[];t.swLogCount={statusAll:0,status0:0,status1:0,status2:0,status3:0,status4:0,status5:0,status99:0},t.listdata.forEach((function(e){0===e.jhStatus||"0"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus","发送中"):1===e.jhStatus||"1"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus2","已发送"):2===e.jhStatus||"2"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus3","已到达"):3===e.jhStatus||"3"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus4","已签收"):4===e.jhStatus||"4"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus5","已拒收"):5===e.jhStatus||"5"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus6","已回复"):9===e.jhStatus||"9"===e.jhStatus?e.status=t.$tx("gwgl.gwjh.sendStatus7","已撤回"):99!==e.jhStatus&&"99"!==e.jhStatus||(e.status=t.$tx("gwgl.gwjh.sendStatus8","发送失败")),null!==e.bmswWfInstanceId&&""!==e.bmswWfInstanceId?(e.swtype="bmsw",null===e.openTime&&(e.openTime=t.$tx("gwgl.gwjh.noOpen","未打开")),r.push(e)):(null===e.openTime&&(e.openTime=t.$tx("gwgl.gwjh.noScan","未签收")),null===e.receiveTime&&(e.receiveTime=t.$tx("gwgl.gwjh.noArrived","未到达")),e.dwswOrgCode&&a.push(e),n.swLogCount["status"+e.jhStatus]+=1,n.swLogCount["statusAll"]+=1)})),t.bmswLogList=t.orgname?t.bmswLogList:r,t.dwswLogList=a}else t.$alert(e.message,t.$tx("common.confirmOperate","确认操作"),{type:"error"});t.$nextTick((function(){n.loading=!1}))}))}},setRowClassName:function(e){var t=e.row;e.rowIndex;if(-1!==t.jhStatus.indexOf("失败"))return"error-row"},viewBmswWorkForm:function(e){window.open("/#/wflow?wfEngineUrl="+encodeURI("gwgl/shouwen")+"&wfInstanceId="+e.bmswWfInstanceId,"_blank")},handleDialogClose:function(){this.dialogFormVisible=!1,this.listdata=[],this.bmswLogList=[],this.dwswLogList=[]},revokeForm:function(e,t){var n=this,r="";r=1===t?e.bmswWfInstanceId:e.dwswWfInstanceId,this.$http({method:"POST",url:"/gwjh/sendFile/withdrawFileByWfInstanceId",params:{wfInstanceId:r}}).then((function(e){"success"===e.code?(n.$message.success(e.message),n.$nextTick((function(){n.$vnode.context.btnViewSendlogClick?n.$vnode.context.btnViewSendlogClick():n.$vnode.context.$vnode.context.btnViewSendlogClick&&n.$vnode.context.$vnode.context.btnViewSendlogClick()}))):n.$message.error(e.message)}))},btnRetryCreateChildWlfowgClick:function(e){var t=this,n={sendlogs:[e]};this.doing=!0,this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:n,url:"gwjh/sendFile/retryCrateChildWflow"}).then((function(e){t.doing=!1,"success"===e.code?(t.$alert(e.message,t.$tx("common.operationTip","操作提示"),{type:"success"}),t.$vnode.context.btnViewSendlogClick?t.$vnode.context.btnViewSendlogClick():t.$vnode.context.$vnode.context.btnViewSendlogClick&&t.$vnode.context.$vnode.context.btnViewSendlogClick()):t.$alert(e.message,t.$tx("common.operationTip","操作提示"),{type:"error"})}))}}},vn=_n,bn=(n(8906),m(vn,cn,un,!1,null,"2133ef15",null)),wn=bn.exports,Mn=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.$tx("gwgl.gwjh.signDocuments"),center:"",width:"900px",visible:e.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.tableIsShow?e._e():t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"qsType",expression:"'qsType'"}]},[e._v("签收方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw15"},[t("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:e.$tx("gwgl.gwjh.signWayPlaceholder","请输入选择状态")},model:{value:e.qsType,callback:function(t){e.qsType=t},expression:"qsType"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"signFor",expression:"'signFor'"}],attrs:{label:"签收"}},[e._v("签收")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"rejection",expression:"'rejection'"}],attrs:{label:"拒收"}},[e._v("拒收")])],1)],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},["拒收"===e.qsType?t("span",{staticClass:"required"},[e._v("*")]):e._e(),e._v(" "+e._s("拒收"===e.qsType?e.$tx("gwgl.gwjh.reason","原因"):e.$tx("common.remark","备注"))+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},["拒收"===e.qsType?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"原因",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{type:"textarea",name:"content",placeholder:e.$tx("gwgl.gwjh.inputReason","请输入原因")},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)]}}],null,!1,1936734633)}):t("el-input",{attrs:{type:"textarea",placeholder:e.$tx("gwgl.common.remarkmptyMessage","请输入备注")},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"telPhone",expression:"'telPhone'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("联系电话")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{attrs:{placeholder:e.$tx("gwgl.gwjh.telPhonePlaceholder","请输入手机号码")},model:{value:e.telPhone,callback:function(t){e.telPhone=t},expression:"telPhone"}})],1)])])])])])]),e.tableIsShow?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listData,border:""}},[t("el-table-column",{attrs:{type:"index",label:e.$tx("fields.index","序号")}}),t("el-table-column",{attrs:{prop:"title",label:e.$tx("gwgl.common.fileTitle","文件标题")}}),t("el-table-column",{attrs:{prop:"message",label:e.$tx("gwgl.gwjh.status","处理状态"),width:"180",align:"center"}})],1)],1):e._e(),e.tableIsShow?e._e():t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确定")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")])],1),e.tableIsShow?t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.confirmReceiptFile}},[e._v("确定")])],1):e._e()],1)},Ln=[],Tn={name:"ReceiptFile",components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogVisible:!1,idAll:[],content:"",qsType:"签收",telPhone:this.$store.getters.loginUser.personMobile,receiptFile:"",busiDataId:"",listData:[],rows:[],tableIsShow:!1}},computed:{},watch:{},created:function(){this.$bus.on("receiptFiles",this.receiptFiles)},beforeDestroy:function(){this.$bus.off("receiptFiles",this.receiptFiles)},mounted:function(){},methods:{confirmReceiptFile:function(){this.dialogVisible=!1,this.$bus.emit("refreshListData")},confirm:function(){var e=this;if("拒收"===this.qsType&&""===this.content)return this.$message.warning(this.$tx("gwgl.gwjh.reflectWarn","请先填写拒收原因!"));this.formValidate((function(){e.receiptFile?e.$http({url:"gwjh/receiveFile/receiptFile",method:"POST",params:{content:e.content,qsType:e.qsType,telPhone:e.telPhone,busiDataId:e.busiDataId}}).then((function(t){if("success"===t.code){e.dialogVisible=!1;var n=window.opener.document.querySelector(".el-icon-refresh");null!==n&&n.parentElement.click(),location.reload()}else e.$message.error(t.message)})).catch((function(e){console.log(e)})):e.$http({url:"gwjh/receiveFile/batchReceiptFile",method:"POST",params:{content:e.content,qsType:e.qsType,telPhone:e.telPhone,wfInstanceIds:e.idAll.join(",")}}).then((function(t){if("success"===t.code){e.tableIsShow=!0;var n=t.body.listdata;n.forEach((function(t){e.rows.forEach((function(e){t.wfInstanceId===e.wfInstanceId&&(t.title=e.title)}))})),console.log(n),e.listData=n}else e.$message.error(t.message)}))}))},receiptFiles:function(e,t){var n=this;t?(this.dialogVisible=!0,this.tableIsShow=!1,this.receiptFile=t,this.busiDataId=e.busiDataId):(this.idAll=[],this.rows=e.rows,this.rows.length>0?(this.dialogVisible=!0,this.tableIsShow=!1,e.rows.forEach((function(e){n.idAll.push(e.wfInstanceId)}))):(this.dialogVisible=!1,this.$message.warning(this.$tx("gwgl.gwjh.fileWarn","请先选择文件!"))))}}},xn=Tn,Dn=(n(6992),m(xn,Mn,Ln,!1,null,"44e57720",null)),kn=Dn.exports,Sn=function(){var e=this,t=e._self._c;return t("div",[e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,visible:e.dialogFormVisible,"destroy-on-close":!0,width:"1465px",title:e.winTitle},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleDialogClose}},[e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"el-dialog__body"}):e._e(),t("div",{staticClass:"select-main",staticStyle:{display:"flex","flex-direction":"column"}},[t("div",{staticStyle:{display:"flex","flex-direction":"column","justify-content":"space-around"}},[t("el-form",{staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"ztree-container-row1"},[t("el-col",{staticClass:"ztree-container1 listitem",attrs:{span:"24"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"leaders",expression:"'leaders'"}],staticClass:"table_title"},[e._v("领导阅文")]),t("GiantTree",{attrs:{"ztree-id":"corpLeadersTree",nodes:e.corpLeaders,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)])],1)],1),t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"ztree-container-row2"},[t("el-col",{staticClass:"ztree-container1 listitem",attrs:{span:"24"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"receiptDocuments",expression:"'receiptDocuments'"}],staticClass:"table_title",attrs:{moduleCode:"portlet"}},[e._v("部门收文")]),t("GiantTree",{attrs:{"ztree-id":"innerDeptsTree",nodes:e.innerDepts,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}})],1)])],1)],1),t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"select-row",staticStyle:{height:"100%"}},[t("el-col",{staticClass:"ztree-container2",staticStyle:{"overflow-y":"inherit",height:"100%"},attrs:{span:"24"}},[t("div",{staticClass:"treeNode"},[t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"externalUnits",expression:"'externalUnits'"}],staticClass:"table_title"},[e._v("外单位收文")]),t("el-input",{staticStyle:{padding:"10px"},attrs:{placeholder:e.$tx("gwgl.gwjh.keyPlaceholder","请输入搜索关键字")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchTreeNode.apply(null,arguments)}},model:{value:e.searchkey,callback:function(t){e.searchkey=t},expression:"searchkey"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchTreeNode},slot:"append"})],1),null!==e.corpOrgs&&0!==e.corpOrgs.length?t("GiantTree",{attrs:{"ztree-id":"corpOrgsTree",nodes:e.corpOrgs,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick,onCheck:e.onTreeNodeCheck}}):e._e(),null===e.corpOrgs||0===e.corpOrgs.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.corpOrgs?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1),e.sendToList.corpLeadersTree.length||e.sendToList.corpOrgsTree.length||e.sendToList.innerDeptsTree.length?t("div",{staticClass:"addNewType"},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"add",expression:"'add'"}],staticStyle:{cursor:"pointer"},on:{click:e.addCommonGroupClick}},[e._v("新增>> ")])]):t("div",{staticClass:"addNewType-not"},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"add",expression:"'add'"}],staticStyle:{cursor:"not-allowed"}},[e._v("新增>> ")])]),t("td",{staticStyle:{width:"25%"}},[t("el-row",{staticClass:"select-row"},[t("el-col",{staticClass:"ztree-container4",staticStyle:{"overflow-y":"inherit"},attrs:{span:"24"}},[t("div",{staticClass:"treeNode"},[t("div",{staticClass:"table_title",staticStyle:{position:"relative"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"commonGroup",expression:"'commonGroup'"}]},[e._v("常用组")]),t("div",{staticStyle:{"line-height":"40px",display:"flex","justify-content":"flex-end","font-size":"var(--portalFontSize14)",position:"absolute",top:"0",right:"0"}},[t("div",{class:e.commonCurrentTreeId?"editClass":"noEditClass",on:{click:e.commonEditHandler}},[t("i",{staticClass:"el-icon-edit"})]),t("div",{class:e.commonCurrentTreeId?"editClass":"noEditClass",on:{click:e.commonDeleteHandler}},[t("i",{staticClass:"el-icon-delete"})])])]),null!==e.commomTree&&0!==e.commomTree.length?t("GiantTree",{attrs:{"ztree-id":"commomTreeGroup",nodes:e.commomTree,multiple:e.multiple,"show-icon":!1,"show-line":!1},on:{onCreated:e.onTreeCreated,onClick:e.onRootOrgTreeNodeCommClick,onCheck:e.onRootOrgTreeNodeCommCheck}}):e._e(),null===e.commomTree||0===e.commomTree.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px",height:"380px"}},[t("span",[e._v(e._s(null===e.commomTree?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1)])])])])])]),e._e()],1),t("div",{staticClass:"fwAttach-container"},[t("div",{staticClass:"file_list"},[void 0!==e.fwBodyfile.id?t("el-checkbox",{attrs:{disabled:"true"},model:{value:e.fwBodyfile.needSend,callback:function(t){e.$set(e.fwBodyfile,"needSend",t)},expression:"fwBodyfile.needSend"}},[e._v(e._s(e.fwBodyfile.fileName))]):e._e()],1),e._l(e.attachments,(function(n){return t("div",{key:n.id,staticClass:"file_list"},[t("el-checkbox",{attrs:{"true-label":!0,"false-label":!1},model:{value:n.needSend,callback:function(t){e.$set(n,"needSend",t)},expression:"attach.needSend"}},[e._v(e._s(n.fileName))]),t("div",{staticStyle:{display:"flex","justify-content":"space-between",padding:"0 15px",width:"200px"}},[t("span",{staticStyle:{color:"#ab9a9a"}},[e._v(e._s(n.fileSize))]),t("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.sendFileRandHandle(n)}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"sendRange",expression:"'sendRange'"}]},[e._v("发送范围:")]),t("span",{staticStyle:{color:"#409eff"}},[e._v(e._s(n.sendCount||0)+"/"+e._s(e.limitCount||0))])])])],1)}))],2)]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{plain:"",icon:"el-icon-close",type:"default",disabled:e.sendDoing},on:{click:e.handleDialogClose}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{icon:"el-icon-check",type:"primary",loading:e.sendDoing},on:{click:e.handleSubmitForm}},[e._v("确定")])],1)]):e._e(),t("el-dialog",{staticClass:"dialogGroupVisible",attrs:{title:e.$tx("gwgl.gwjh.commonGroupType","常用组分类"),visible:e.dialogGroupVisible,width:"600px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogGroupVisible=t}}},[t("el-form",{ref:"commonGroupForm",attrs:{model:e.commonObj}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"typeName",expression:"'typeName'"}]},[e._v("分类名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required|max:25"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"typeName",placeholder:e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称")},model:{value:e.commonObj.typeName,callback:function(t){e.$set(e.commonObj,"typeName",t)},expression:"commonObj.typeName"}})],1)]}}])})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNo",expression:"'orderNo'"}],staticClass:"field"},[e._v("分类排序")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类排序",rules:"required|integer|min:4|max:4"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"orderNo",placeholder:e.$tx("gwgl.gwjh.sortCategoryPlaceholder","请输入分类排序")},model:{value:e.commonObj.orderNo,callback:function(t){e.$set(e.commonObj,"orderNo",t)},expression:"commonObj.orderNo"}})],1)]}}])})],1)])])])])])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.dialogGroupVisible=!1}}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.dialogGroupComfirm}},[e._v("确定")])],1)],1),t("FileLimitDialog",{on:{selectComfirm:e.selectComfirm}})],1)},Yn=[],jn=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"dialogGroupVisible",attrs:{title:e.$tx("gwgl.gwjh.setPermissions","设置附件查阅权限"),visible:e.dialogFileLimitVisible,width:"600px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogFileLimitVisible=t}}},[t("div",{staticClass:"select-main",staticStyle:{display:"flex","flex-direction":"column"}},[t("div",{staticStyle:{display:"flex","flex-direction":"column","justify-content":"space-around"}},[t("el-form",{staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"ztree-container-row2"},[t("el-col",{staticClass:"ztree-container1 listitem",attrs:{span:"24"}},[t("div",{staticClass:"treeNode",staticStyle:{"overflow-y":"inherit"}},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"receiptDocuments",expression:"'receiptDocuments'"}],staticClass:"table_title",attrs:{moduleCode:"portlet"}},[e._v("部门收文")]),null!==e.selectInnerDepts&&0!==e.selectInnerDepts.length?t("GiantTree",{attrs:{"ztree-id":"selectInnerDeptsTree",nodes:e.selectInnerDepts,multiple:!0,"show-icon":!1,"show-line":!1},on:{onCreated:e.onSelectTreeCreated,onClick:e.onSelectTreeNodeClick,onCheck:e.onSelectTreeNodeCheck}}):e._e(),null===e.selectInnerDepts||0===e.selectInnerDepts.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.selectInnerDepts?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1),t("td",{staticStyle:{width:"23%"}},[t("el-row",{staticClass:"select-row",staticStyle:{height:"100%"}},[t("el-col",{staticClass:"ztree-container2",staticStyle:{"overflow-y":"inherit",height:"100%"},attrs:{span:"24"}},[t("div",{staticClass:"treeNode"},[t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"externalUnits",expression:"'externalUnits'"}],staticClass:"table_title"},[e._v("外单位收文")]),null!==e.selectCorpOrgs&&0!==e.selectCorpOrgs.length?t("GiantTree",{attrs:{"ztree-id":"selectCorpOrgsTree",nodes:e.selectCorpOrgs,multiple:!0,"show-icon":!1,"show-line":!1},on:{onCreated:e.onSelectTreeCreated,onClick:e.onSelectTreeNodeClick,onCheck:e.onSelectTreeNodeCheck}}):e._e(),null===e.selectCorpOrgs||0===e.selectCorpOrgs.length?t("div",{staticStyle:{"text-align":"center","font-size":"var(--portalFontSize14)","padding-top":"20px"}},[t("span",[e._v(e._s(null===e.selectCorpOrgs?e.$tx("common.loading","正在加载..."):e.$tx("common.noData","暂无数据")))])]):e._e()],1)])],1)],1)])])])])])])],1)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],on:{click:function(t){e.dialogFileLimitVisible=!1}}},[e._v("取消")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"primary"},on:{click:e.dialogSelectComfirm}},[e._v("确定")])],1)])],1)},Cn=[],On={components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFileLimitVisible:!1,selectInnerDepts:[],selectCorpOrgs:[],selectInnerDeptsTree:{},selectCorpOrgsTree:{},attachFile:null,selectNodes:[],multiple:!0}},computed:{},watch:{attachFile:{handler:function(e,t){if(e)if(console.log("newVal",e),e.passenger.orgCodes&&e.passenger.orgCodes.length){var n=e.passenger.orgCodes;this.treeDataAdapter("selectCorpOrgsTree",this.selectCorpOrgs,n)}else this.treeDataAdapter("selectCorpOrgsTree",this.selectCorpOrgs,"")}}},created:function(){this.$bus.on("openFileLimitDialog",this.openFileLimitDialog)},beforeDestroy:function(){this.$bus.off("openFileLimitDialog",this.openFileLimitDialog)},mounted:function(){},methods:{treeDataAdapter:function(e,t,n){console.log("code",n);for(var r=0;r<t.length;r++){var a=t[r];"selectCorpOrgsTree"===e&&(n&&-1!==n.indexOf(a.ocode)?(console.log("node",a),a.checked=!0):a.checked=!1)}console.log("treeData",t)},openFileLimitDialog:function(e,t){this.selectInnerDepts=t["innerDeptsTree"],this.selectCorpOrgs=t["corpOrgsTree"],this.attachFile=JSON.parse(JSON.stringify(e)),this.dialogFileLimitVisible=!0},onSelectTreeCreated:function(e,t){this[t]=e},onSelectTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple||this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},onSelectTreeNodeCheck:function(e,t,n){!0===n.canSelect?!0!==this.multiple||this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},dialogSelectComfirm:function(){this.attachFile.passenger.orgCodes=[];var e="{}"===JSON.stringify(this.selectInnerDeptsTree)?[]:this.selectInnerDeptsTree.getCheckedNodes(),t="{}"===JSON.stringify(this.selectInnerDeptsTree)?[]:this.selectCorpOrgsTree.getCheckedNodes(),n=[];e.length&&t.forEach((function(e){n.push(e.ocode)}));var r=[];t.length?t.forEach((function(e){r.push(e.ocode)})):this.attachFile.passenger.orgCodes=[],this.attachFile.passenger.orgCodes=[].concat(r,n),this.attachFile.sendCount=t.length+e.length,this.$emit("selectComfirm",this.attachFile),this.handleClose()},handleClose:function(){this.selectNodes=[],this.selectInnerDepts=[],this.selectCorpOrgs=[],this.attachFile=null,this.dialogFileLimitVisible=!1}}},Nn=On,Pn=(n(6176),m(Nn,jn,Cn,!1,null,"7a7c7352",null)),En=Pn.exports;function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Fn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Hn(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Hn(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function An(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function $n(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){An(o,r,a,i,s,"next",e)}function s(e){An(o,r,a,i,s,"throw",e)}i(void 0)}))}}function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e,t,n){return(t=Wn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){var t=Gn(e,"string");return"symbol"==Hn(t)?t:t+""}function Gn(e,t){if("object"!=Hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Bn={name:"SendDeptFile",directives:{"overflow-tooltip":{bind:function(e,t,n){var r=e.clientWidth<e.scrollWidth;e.dataset.overflow=r},update:function(e,t,n){var r=e.clientWidth<e.scrollWidth;e.dataset.overflow=r}}},components:{FileLimitDialog:En},props:{corpLeaders:{type:Array,default:function(){return{}}},innerDepts:{type:Array,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},busiData:{type:Object,default:function(){return{}}},fwBodyfile:{type:Object,default:function(){return{}}},corpOrgs:{type:Array,default:function(){return{}}},commomTree:{type:Array,default:function(){return{}}},fwAttachs:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!0,dialogGroupVisible:!1,loading:!1,winTitle:this.$tx("gwgl.gwjh.winTitle2","发送文件"),corpLeadersTree:{},innerDeptsTree:{},attachments:[],multiple:!0,sendToList:{corpLeadersTree:[],innerDeptsTree:[],corpOrgsTree:[],commomTreeGroup:[]},sendDoing:!1,areaNodeTreeData:[],rootOrgTreeData:[],rootOrgTreeDataBak:[],corpOrgschushi:[],searchkey:"",commonObj:{},commonCurrentTreeId:"",commonCurrentTreeArr:[],handlerTreeType:!1,showWorkMore:!1,showMoreNum:0,changeType:"",allSendToList:[],limitCount:0}},computed:zn({},re(["loginUser"])),watch:{fwBodyfile:function(){void 0!==this.fwBodyfile.id&&(this.loading=!1)},fwAttachs:function(){this.attachments=JSON.parse(JSON.stringify(this.fwAttachs))},corpLeaders:function(){this.treeDataAdapter("corpLeadersTree",this.corpLeaders)},innerDepts:function(){this.treeDataAdapter("innerDeptsTree",this.innerDepts)},corpOrgs:function(){this.treeDataAdapter("corpOrgsTree",this.corpOrgs),this.rootOrgTreeDataBak=JSON.parse(JSON.stringify(this.corpOrgs))},commomTree:function(){this.treeDataAdapter("commomTreeGroup",this.commomTree)},"sendToList.commomTreeGroup":{handler:function(e,t){}},sendToList:{handler:function(e,t){var n=this,r=e.innerDeptsTree,a=e.corpOrgsTree;if(r.length){var o=[];a.forEach((function(e){o.push(e.ocode)}))}if(a.length){var i=[];a.forEach((function(e){i.push(e.ocode)}))}this.limitCount=r.length+a.length,this.fwAttachs.forEach((function(e){e.sendCount=n.limitCount,e.passenger.orgCodes=[].concat(i,o)})),this.attachments=JSON.parse(JSON.stringify(this.fwAttachs)),this.$forceUpdate()},deep:!0}},created:function(){var e=this;setTimeout((function(){e.corpOrgschushi=JSON.parse(JSON.stringify(e.corpOrgs))}),1e3)},beforeDestroy:function(){},mounted:function(){this.loading=!1},methods:{selectComfirm:function(e){console.log("list ====",e),console.log("this.attachments ====",this.attachments),this.attachments.forEach((function(t){t.id===e.id&&(t.sendCount=e.sendCount,t.passenger.orgCodes=e.passenger.orgCodes)}))},isShowToltip:function(e,t,n){var r=this.textRange(e.target);n.isShow=r,this.$forceUpdate()},textRange:function(e){var t=e,n=t.getBoundingClientRect().width,r=document.createRange();r.setStart(t,0),r.setEnd(t,t.childNodes.length);var a=r.getBoundingClientRect().width;return a>n},searchTreeNode:function(){var e=this;console.log("searchkey",this.searchkey);var t=JSON.parse(JSON.stringify(this.rootOrgTreeDataBak)),n={};this.sendToList["corpOrgsTree"].forEach((function(e){n[e.id]=e.id})),this.corpOrgs=[],""===this.searchkey&&(this.corpOrgs=this.corpOrgschushi),t.forEach((function(t){-1!==t.fullName.indexOf(e.searchkey)&&""!==e.searchkey&&(void 0!==n[t.id]&&(t.checked=!0),e.corpOrgs.push(t))}))},onTreeCreated:function(e,t){this[t]=e},treeDataAdapter:function(e,t){this.sendToList[e]=[];for(var n=0;n<t.length;n++){var r=t[n];if("innerDeptsTree"===e){var a="2,3".split(",");r.nodeTreeType="innerDeptsTree",r.pId=r.parentId,r.title=r.orgFullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),r.orgLevel>a[a.length-1]||1!==r.isRealOrg?t.splice(n--,1):-1!==a.join(",").indexOf(r.orgLevel)&&(r.canSelect=!0)}else if("corpLeadersTree"===e)r.personId?(r.nodeTreeType="corpLeadersTree",r.pId=r.orgId,r.title=r.positionName+"/"+r.name,r.canSelect=!0):(r.nodeTreeType="corpLeadersTree",r.pId=r.parentID,r.name=r.nName,r.title=r.fullName,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),0===n&&(r.open=!0),r.canSelect=!1);else if("corpOrgsTree"===e){var o="1,2,3,4".split(",");r.nodeTreeType="corpOrgsTree",r.pId=r.parentId,r.name=r.nName,r.title=r.name,-1!==r.title.indexOf("-")&&(r.title=r.title.substring(r.title.indexOf("-")+1)),r.olevel<1||-1!==o.join(",").indexOf(r.olevel)&&(r.canSelect=!0)}else"commomTreeGroup"===e&&(r.nodeTreeType=r.type,r.pId=r.parentId?r.parentId:"0",r.title=r.commonName?r.commonName:r.typeName,r.name=r.commonName?r.commonName:r.typeName,r.parentId&&(r.canSelect=!0))}return t},onTreeNodeClick:function(e,t,n){!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},onTreeNodeCheck:function(e,t,n){this.sendToList[t]=this[t].getCheckedNodes();for(var r=0;r<this.sendToList[t].length;r++)this.sendToList[t][r].canSelect||this.sendToList[t].splice(r--,1)},onRootOrgTreeNodeCommClick:function(e,t,n){n.canSelect||(this.commonCurrentTreeId=n.id,this.commonCurrentTreeArr=n.children),!0===n.canSelect?!0!==this.multiple?this.sendToList[t]=[n]:this[t].checkNode(n,null,null,!0):n.children&&n.children.length>0&&this[t].expandNode(n)},onRootOrgTreeNodeCommCheck:function(e,t,n){this.sendToList[t]=this[t].getCheckedNodes();for(var r=0;r<this.sendToList[t].length;r++)this.sendToList[t][r].canSelect||this.sendToList[t].splice(r--,1);this.sendToArrayList(n)},sendToArrayList:function(e){var t=this,n=e.checked,r=[].concat(this.sendToList.corpLeadersTree,this.sendToList.corpOrgsTree,this.sendToList.innerDeptsTree);if(n)if(e.children){var a=e.children.filter((function(e){return r.every((function(t){return t.id!==e.commonId}))}));a.forEach((function(e){var n=t[e.nodeTreeType].getNodeByParam("id",e.commonId,null);t.sendToList[e.nodeTreeType].push(n),t[e.nodeTreeType].checkNode(n,null,null,!0)}))}else{var o=this[e.nodeTreeType].getNodeByParam("id",e.commonId,null);this.sendToList[e.nodeTreeType].push(o),this[e.nodeTreeType].checkNode(o,null,null,!0)}else if(e.children){var i=e.children.filter((function(e){return r.some((function(t){return t.id===e.commonId}))}));i.forEach((function(e){var n=t[e.nodeTreeType].getNodeByParam("id",e.commonId,null);t.sendToList[e.nodeTreeType]=t.sendToList[e.nodeTreeType].filter((function(e){return e.id!==n.id})),t[e.nodeTreeType].checkNode(n,!1,!0,!1)}))}else{var s=this[e.nodeTreeType].getNodeByParam("id",e.commonId,null);this.sendToList[e.nodeTreeType]=this.sendToList[e.nodeTreeType].filter((function(e){return e.id!==s.id})),this[e.nodeTreeType].checkNode(s,!1,!0,!1)}},handleSelectAll:function(e,t){if(this[e].checkAllNodes(t),t){this.sendToList[e]=this[e].getCheckedNodes();for(var n=0;n<this.sendToList[e].length;n++)this.sendToList[e][n].canSelect||this.sendToList[e].splice(n--,1)}else this.sendToList[e]=[]},removeSelectedNode:function(e,t){var n=this[t].getNodeByParam("id",this.sendToList[t][e].id,null);console.log("node",n),null!=n&&this[t].checkNode(n,!1,!0,!1),this.sendToList[t].splice(e,1);var r=this["commomTreeGroup"].getNodeByParam("commonId",n.id,null);null!=r&&(console.log("node1",r),this["commomTreeGroup"].checkNode(r,!1,!0,!1))},handleSubmitForm:function(){var e=this,t=this;this.sendToList["corpLeadersTree"]&&0!==this.sendToList["corpLeadersTree"].length||this.sendToList["innerDeptsTree"]&&0!==this.sendToList["innerDeptsTree"].length||this.sendToList["corpOrgsTree"]&&0!==this.sendToList["corpOrgsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then($n(Fn().mark((function n(){var r,a;return Fn().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=t.fwBodyfile&&r.push(t.fwBodyfile),t.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),console.log(t.sendToList,"_this.sendToList"),console.log(r,"attachs"),e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:a,fwOrgId:t.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(t.busiData),corpLeaders:JSON.stringify(t.sendToList["corpLeadersTree"]),innerDepts:JSON.stringify(t.sendToList["innerDeptsTree"]),corpOrgs:JSON.stringify(t.sendToList["corpOrgsTree"]),fwAttachs:JSON.stringify(r)}),url:"/gwjh/sendFile/startSendFile"}).then((function(n){if("success"===n.code){var r=e.$vnode.context.$vnode.context;t.busiData.flBeenSend=1,t.busiData.flSenderAccount=e.loginUser.personAccount;var a=!1,o="";r.commandBar.forEach((function(e){"btnViewSendlogClick"!==e.btnCode&&"发送跟踪"!==e.btnName||(a=!0),""===o&&e.btnName&&-1!==e.btnName.indexOf("发送")&&(null!=e.btnGroupId?o=e.btnGroupId:2===e.btnType&&(o=e.id))})),a||""===o||r.commandBar.push({btnAlign:1,btnCode:"btnViewSendlogClick",btnGroupId:o,btnIcon:null,btnClick:function(){e.$bus.emit("btnViewSendlogClick",r)},btnName:"发送跟踪",btnOrderNo:"70",btnShow:1,btnType:"3",visitType:0}),e.$message({type:"success",message:e.$tx("gwgl.gwjh.sendSuccess","发送成功"),showClose:!0}),e.sendDoing=!1}else e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"}),e.sendDoing=!1;t.handleDialogClose()}));case 8:case"end":return n.stop()}}),n)})))):this.$alert(this.$tx("gwgl.messages.toListAlert","请选择阅文领导、收文部门、单位发文。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handleSubmitForm1:function(){var e=this,t=this;this.sendToList["corpLeadersTree"]&&0!==this.sendToList["corpLeadersTree"].length||this.sendToList["innerDeptsTree"]&&0!==this.sendToList["innerDeptsTree"].length||this.sendToList["corpOrgsTree"]&&0!==this.sendToList["corpOrgsTree"].length?this.$confirm(this.$tx("gwgl.messages.sendFileConfirm","您是否确认立即发送文件?"),this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then($n(Fn().mark((function n(){var r,a,o,i,s;return Fn().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.sendDoing=!0,r=[],null!=t.fwBodyfile&&r.push(t.fwBodyfile),t.attachments.forEach((function(e){e.needSend&&r.push(e)})),a="/wflow?wfEngineUrl="+(e.$route.query.wfEngineUrl||"workflow/wfInstance"),o=[],(e.sendToList["corpLeadersTree"].length||e.sendToList["innerDeptsTree"].length)&&(i=t.handlerStartSendDeptFile(t,a,r),o.push(i)),e.sendToList["corpOrgsTree"].length&&(s=t.handlerStartSendCommonCorpFile(a,t.sendToList["corpOrgsTree"],r),o.push(s)),Promise.all(o).then((function(e){t.sendDoing=!1,t.$message({type:"success",message:t.$tx("gwgl.gwjh.sendSuccess","发送成功"),showClose:!0}),t.handleDialogClose(),setTimeout((function(){location.reload()}),1e3)})).catch((function(n){e.sendDoing=!1,t.$alert(n.message,t.$tx("common.confirmOperate","确认操作"),{type:"error",dangerouslyUseHTMLString:!0})}));case 9:case"end":return n.stop()}}),n)})))).catch((function(e){"cancel"!==e&&console.error(e)})):this.$alert(this.$tx("gwgl.messages.toListAlert","请选择阅文领导、收文部门、单位发文。"),this.$tx("common.operationTip","操作提示"),{type:"warning"})},handlerStartSendDeptFile:function(e,t,n){var r=this,a=new Promise((function(a,o){r.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:t,fwOrgId:e.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(e.busiData),corpLeaders:JSON.stringify(e.sendToList["corpLeadersTree"]),innerDepts:JSON.stringify(e.sendToList["innerDeptsTree"]),fwAttachs:JSON.stringify(n)}),url:"gwjh/sendFile/startSendDeptFile"}).then((function(e){"success"===e.code?a(e):o(e)}))}));return a},handlerStartSendCommonCorpFile:function(e,t,n){var r=this;t.forEach((function(e){e.level=e.orgLevel}));var a=new Promise((function(a,o){var i=r;r.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{openUrl:e,fwOrgId:i.wfInstance.createOrgId.split("-")[1]},data:yt().stringify({fwBusiData:JSON.stringify(i.busiData),orgOrganizationList:JSON.stringify(t),fwAttachs:JSON.stringify(n)}),url:"/gwjh/sendFile/startSendCorpFile"}).then((function(e){"success"===e.code?a(e):o(e)}))}));return a},handleEndWfInstance:function(){var e=this;this.$http({contentType:"application/x-www-form-urlencoded",url:"/gwjh/sendFile/endFawenWfInstance",method:"POST",params:{busiDataId:e.wfInstance.busiDataId}}).then((function(t){"success"===t.code?(e.handleDialogClose(),e.$message({type:t.code,message:e.$tx("gwgl.gwjh.sendSuccess","发送成功"),duration:2500,showClose:!0,onClose:function(){window.close()}})):e.$alert(t.message,e.$tx("common.confirmOperate","确认操作"),{type:"error"})}))},sendFileRandHandle:function(e){this.limitCount<=0?this.$message({message:this.$tx("gwgl.messages.fileRandMsg","请选择部门或单位。"),type:"warning"}):this.$bus.emit("openFileLimitDialog",e,this.sendToList)},addCommonGroupClick:function(){if(this.sendToList.corpLeadersTree.length||this.sendToList.corpOrgsTree.length||this.sendToList.innerDeptsTree.length){var e=this;e.handlerTreeType=!1,this.addNewCommon().then((function(t){if("success"===t.code){if(e.commonObj=t.body.vo,e.commonObj.passenger.commonGroupInfoList=[],!e.commonObj.createrId){e.commonObj.createrId=e.loginUser.personId,e.commonObj.creater=e.loginUser.personName,e.commonObj.status=1;var n=[].concat(e.sendToList.corpLeadersTree,e.sendToList.corpOrgsTree,e.sendToList.innerDeptsTree),r=[];n.forEach((function(t){var n={};n.commonName=t.fullName||t.commonName||t.name,n.commonId=t.commonId||t.id||t.fullID,n.parentId=e.commonObj.id,n.createrId=e.loginUser.personId,n.creater=e.loginUser.personName,n.type=t.commonId?t.type:t.nodeTreeType,r.push(n)})),e.commonObj.passenger.commonGroupInfoList=r}e.dialogGroupVisible=!0}}))}else this.$message({message:this.$tx("gwgl.messages.addCommonGroupClickMsg","请选择需要设未常用组的数据。"),type:"warning"})},dialogGroupComfirm:function(){var e=this,t=this;this.$refs.commonGroupForm.formValidate((function(){var n="insert";n=e.handlerTreeType?"update":"insert",e.confirmGroup(n).then((function(n){"success"===n.code&&(t.dialogGroupVisible=!1,t.commonObj={},e.$message.success(n.message),t.getSendCommmoDataList())}))}),null,1)},addNewCommon:function(){var e=this;return new Promise((function(t,n){e.$http({contentType:"application/x-www-form-urlencoded",url:"/gwgl/commonGroup/addNew",method:"POST"}).then((function(e){t(e)}))}))},confirmGroup:function(e){var t=this,n=this;return new Promise((function(r,a){t.$http({contentType:"application/x-www-form-urlencoded",url:"insert"===e?"/gwgl/commonGroup/insert":"/gwgl/commonGroup/update",method:"insert"===e?"POST":"PUT",data:n.commonObj}).then((function(e){r(e)}))}))},commonEditHandler:function(){var e=this;this.commonCurrentTreeId&&this.$http({contentType:"application/x-www-form-urlencoded",url:"/gwgl/commonGroup/getById",method:"GET",params:{id:this.commonCurrentTreeId}}).then((function(t){"success"===t.code&&(e.commonObj=t.body.vo,e.handlerTreeType=!0,e.dialogGroupVisible=!0)}))},commonDeleteHandler:function(){var e=this;this.commonCurrentTreeId&&e.commonCurrentTreeId&&this.$confirm(e.$tx("gwgl.messages.delGroupConfirm","确认删除删除该常用组?"),e.$tx("gwgl.common.operatedTip"),{confirmButtonText:e.$tx("pageBtns.sure","确 定"),cancelButtonText:e.$tx("pageBtns.cancel","取 消"),type:"warning"}).then((function(){e.$http({contentType:"application/x-www-form-urlencoded",url:"/gwgl/commonGroup/delete",method:"DELETE",params:{ids:e.commonCurrentTreeId}}).then((function(t){"success"===t.code&&(e.$message({message:t.message,type:"success"}),e.getSendCommmoDataList())}))})).catch((function(){}))},getSendCommmoDataList:function(e){var t=this;t.commomTree=[],this.$parent.getCommonGroup().then((function(e){var n=e.body.listdata;n.length>0?(n.forEach((function(e){t.commomTree.push(e);var r=e.passenger.commonGroupInfoList;n.length>0&&(t.commomTree=t.commomTree.concat(r))})),t.commomTree.forEach((function(e){e.orderNo=e.orderNo?e.orderNo:9999}))):t.commomTree=[]}))},handleDialogClose:function(){this.$vnode.context.dialogFormVisible=!1,this.$vnode.context.fwBodyfile={},this.$vnode.context.fwAttachs=[]}}},Un=Bn,qn=(n(8275),m(Un,Sn,Yn,!1,null,"6ab65eb9",null)),Vn=qn.exports;function Jn(e){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(e)}function Kn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Jn(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Jn(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Qn(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Zn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Qn(o,r,a,i,s,"next",e)}function s(e){Qn(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e,t,n){return(t=nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e){var t=rr(e,"string");return"symbol"==Jn(t)?t:t+""}function rr(e,t){if("object"!=Jn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ar={name:"GwjhFile",components:{SendDeptFile:qt,SendCorpFile:dn,SendlogList:wn,ReceiptFile:kn,SendGroupFile:Vn},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",dialogFormVisible:!1,sendType:"",sendArea:"",wfInstance:{},busiData:{},fwAttachs:[],fwBodyfile:{},corpLeaders:[],innerDepts:[],treeNodes:[],commomTree:[],corpOrgs:null,gwjhOrgs:null}},computed:er({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("btnSendFileClick",this.btnSendFileClick)},beforeDestroy:function(){this.$bus.off("btnSendFileClick",this.btnSendFileClick)},mounted:function(){},methods:{btnSendFileClick:function(e,t,n){var r=this;if(!0!==this.dialogFormVisible){new Promise((function(t,n){1===e.vo.flBeenSend?r.$confirm(r.$tx("gwgl.messages.continueConfirm","文件已发送,是否继续本次发送?"),r.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(Zn(Kn().mark((function e(){return Kn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t(!0);case 1:case"end":return e.stop()}}),e)})))).catch((function(e){"cancel"!==e&&console.error(e),n(e)})):t(!0)})).then((function(a){a&&e.formValidate((function(){if(r.wfInstance=e.wfInstance,r.busiData=e.vo,null!=e.bodyfile&&void 0!==e.bodyfile.id){for(var a=0;a<e.attachments.length;a++){var o=e.attachments[a];if("ATTACH"===o.fileType&&void 0===o.id)return void e.$alert(r.$tx("gwgl.messages.noSaveAlert","公文附件有更新,请先执行“保存”操作后再发送!"),r.$tx("common.operationTip","操作提示"),{type:"warning"})}r.sendType=t,r.sendArea=n,r.dialogFormVisible=!0,r.$nextTick((function(){"all"===r.sendType?(r.getFwBodyfile(e),r.getSendFileInfoAll(e)):(r.getFwBodyfile(e),r.getSendFileInfo(e))}))}else e.$alert(r.$tx("gwgl.messages.noZwFile","没有正文文件,不能发送。"),r.$tx("common.operationTip","操作提示"),{type:"warning"})}))}))}},getFwBodyfile:function(e){var t=this;if(e.attachments.forEach((function(e){"ATTACH"===e.fileType&&void 0!==e.id&&(e.needSend=!0,e.sendCount=0,t.fwAttachs.push(JSON.parse(JSON.stringify(e))))})),null!=e.bodyfile){if(".pdf"===e.bodyfile.fileName.substring(e.bodyfile.fileName.lastIndexOf(".")).toLowerCase())this.fwBodyfile=e.bodyfile;else for(var n=e.bodyfile.originalName.substring(0,e.bodyfile.originalName.lastIndexOf(".")),r=0;r<e.attachments.length;r++)if(e.attachments[r].id!==e.bodyfile.id&&e.attachments[r].originalName===n+".pdf"){this.fwBodyfile=e.attachments[r];break}null!=this.fwBodyfile&&void 0!==this.fwBodyfile.id||(this.fwBodyfile=e.bodyfile),this.fwBodyfile.needSend=!0,console.log("fwBodyfile",this.fwBodyfile)}},getSendFileInfo:function(e){var t=this;e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{sendType:"dept",fwOrgId:this.wfInstance.createOrgId.split("-")[0],sendArea:this.sendArea,busiType:e.wfInstance.module},url:"gwjh/sendFile/getSendFileInfo"}).then((function(n){"success"===n.code?(t.corpLeaders=n.body.corpLeaders,t.innerDepts=n.body.innerDepts,t.gwjhOrgs=n.body.gwjhOrgs,t.treeNodes=n.body.treeNodes,t.gwjhOrgs&&(t.gwjhOrgs=t.gwjhOrgs.filter((function(e){if(!e.ocode||e.ocode&&"plat"!==e.ocode)return!0})))):e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"})})),e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{sendType:"corp",fwOrgId:this.wfInstance.createOrgId.split("-")[0],sendArea:this.sendArea,busiType:e.wfInstance.module},url:"gwjh/sendFile/getSendFileInfo"}).then((function(n){"success"===n.code?(t.corpOrgs=n.body.corpOrgs,t.corpOrgs&&(t.corpOrgs=t.corpOrgs.filter((function(e){if(!e.ocode||e.ocode&&"plat"!==e.ocode)return!0})))):e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},getSendFileInfoAll:function(e){var t=this;t.corpLeaders=[],t.innerDepts=[],t.corpOrgs=[],t.commomTree=[],this.getCommonGroup().then((function(n){"success"===n.code?e.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"gwjh/sendFile/getSendFileInfo",params:{sendType:"deptAndCorp",fwOrgId:t.wfInstance.createOrgId.split("-")[0],busiType:"fawen",sendArea:t.sendArea}}).then((function(r){if("success"===r.code){t.corpLeaders=r.body.corpLeaders||[],t.innerDepts=r.body.innerDepts||[],t.corpOrgs=r.body.corpOrgs||[],t.corpOrgs.length&&t.corpOrgs.forEach((function(e){e.fullID.indexOf("-")?e.id=e.fullID.split("-")[e.fullID.split("-").length-1]:e.id=e.fullID,e.parentId=e.parentID?e.parentID:null}));var a=n.body.listdata;a.length>0?(a.forEach((function(e){t.commomTree.push(e);var n=e.passenger.commonGroupInfoList;a.length>0&&(t.commomTree=t.commomTree.concat(n))})),t.commomTree.forEach((function(e){e.orderNo=e.orderNo?e.orderNo:9999}))):t.commomTree=[]}else e.$alert(r.message,e.$tx("common.operationTip","操作提示"),{type:"error"})})):e.$alert(res.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},getCommonGroup:function(){var e=this;return new Promise((function(t,n){e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"gwgl/commonGroup/querydata",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:e.loginUser.orgCode},{compare:"=",field:"createrId",merge:!0,value:e.loginUser.personId},{compare:"=",field:"status",merge:!0,value:1}]}).then((function(e){t(e)}))}))}}},or=ar,ir=m(or,Ct,Ot,!1,null,"242a0972",null),sr=ir.exports,lr=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1),t("RightPanel",[t("orgOrganization",{attrs:{vo:e.orgOrganization,"z-tree":e.zTree,"is-click":e.isClick,"node-name":e.nodeName}})],1)],1)},dr=[],cr=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[null!==e.vo&&e.isClick&&0!==e.vo.gwjhLevel?t("orgOrganizationForm",{ref:"orgOrganizationForm",attrs:{vo:e.vo,"can-edit":0}}):e._e(),null!==e.vo?t("div",{attrs:{slot:"footer"},slot:"footer"},[""!==e.nodeName&&e.vo&&e.vo.gwjhLevel<2?t("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addObject}},[e._v(e._s(0===e.vo.gwjhLevel?e.$tx("gwgl.pageBtns.addCommonGroup","添加常用组"):e.$tx("gwgl.pageBtns.addChildCommonGroup","添加子常用组")))]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"changeCommonGroup",expression:"'changeCommonGroup'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:function(t){return e.editObject(e.vo)}}},[e._v("修改常用组")]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"delCommonGroup",expression:"'delCommonGroup'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除常用组")]):e._e()],1):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"noAddManageCommonGroup",expression:"'noAddManageCommonGroup'"}],attrs:{slot:"footer",moduleCode:"gwjh"},slot:"footer"},[e._v("暂未添加管理常用组")])],1),t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("orgOrganizationForm",{ref:"voForm",attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":e.moduleInfo}})]}}])})],1)},ur=[],pr=function(){var e=this,t=e._self._c;return t("el-form",{ref:"commonObj",attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"100%"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"typeName",expression:"'typeName'"}]},[e._v("分类名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required|max:25"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"typeName",placeholder:e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称")},model:{value:e.vo.typeName,callback:function(t){e.$set(e.vo,"typeName",t)},expression:"vo.typeName"}})],1)]}}],null,!1,2783147071)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.typeName)}}):e._e()],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"leaders",expression:"'leaders'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("领导阅文")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("form-item",{ref:"leaders",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"input",emptyMessage:e.$tx("gwgl.gwjh.leadershipReadingEmptyMessage","请选择领导阅文"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"",propName:"leaders",propType:"String",textFormatter:"textfield",valueMaxLength:null,valueMinLength:null,model:"vo.leaders",option:[],dialog:1,dialogType:"staff",dialogOrgLevel:"",dialogSubOrgName:"市局领导",dialogShowemail:!1,dialogMultiple:!0,dialogRootOrgCode:e.orgCode},vo:e.corpLeadersTreeObj,"can-edit":e.canEdit}}):e._e(),1!==e.canEdit?t("div",e._l(e.corpLeadersTree,(function(n,r){return t("span",{key:n.id},[e._v(" "+e._s(n.commonName)+" "),r!==e.corpLeadersTree.length-1?t("span",[e._v("、")]):e._e()])})),0):e._e()],1)]),t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"depts",expression:"'depts'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("部门收文")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{multiple:"true",placeholder:e.$tx("gwgl.gwjh.deptsPlaceholder","部门收文"),name:"depts"},model:{value:e.corpLeadersTreeObj.depts,callback:function(t){e.$set(e.corpLeadersTreeObj,"depts",t)},expression:"corpLeadersTreeObj.depts"}}):e._e(),1!==e.canEdit?t("div",e._l(e.innerDeptsTree,(function(n,r){return t("span",{key:n.id},[e._v(" "+e._s(n.commonName)+" "),r!==e.innerDeptsTree.length-1?t("span",[e._v("、")]):e._e()])})),0):e._e()],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fenju",expression:"'fenju'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("单位收文")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"allOrg",expression:"'allOrg'"}],attrs:{"value-ids-field":"corpLeadersTreeObj.fenjuId","old-value":e.corpLeadersTreeObj.fenjuId,multiple:"true",placeholder:e.$tx("gwgl.gwjh.subReceivedDocumentsPlaceholder"),name:"fenju"},model:{value:e.corpLeadersTreeObj.fenju,callback:function(t){e.$set(e.corpLeadersTreeObj,"fenju",t)},expression:"corpLeadersTreeObj.fenju"}}):e._e(),1!==e.canEdit?t("div",e._l(e.corpOrgsTree,(function(n,r){return t("span",{key:n.id},[e._v(" "+e._s(n.commonName)+" "),r!==e.corpOrgsTree.length-1?t("span",[e._v("、")]):e._e()])})),0):e._e()],1)]),t("tr",[t("td",{ref:"tdlbl_备注",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"remark",expression:"'remark'"}],staticClass:"field"},[e._v("备注")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"remark",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:e.$tx("gwgl.common.remarkmptyMessage","请输入备注"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"备注",propName:"remark",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.remark",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNo",expression:"'orderNo'"}],staticClass:"field"},[e._v("分类排序")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类排序",rules:"required|integer|max:4"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"orderNo",placeholder:e.$tx("gwgl.gwjh.sortCategoryPlaceholder","请输入分类排序")},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],1)]}}],null,!1,3392390922)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.orderNo)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}],staticClass:"field"},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"显示名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"status",placeholder:e.$tx("gwgl.common.statusPlaceholder","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(n,r){return t("el-radio",{key:r,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,474603353)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(1===e.vo.status?e.$tx("common.enable","启用"):e.$tx("common.disable","禁用"))}}):e._e()],1)])])])])])])},mr=[],fr=n(4692),hr=n.n(fr);function gr(e){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vr(e,t,n){return(t=br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e){var t=wr(e,"string");return"symbol"==gr(t)?t:t+""}function wr(e,t){if("object"!=gr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}window.jQuery||(window.jQuery=hr());var Mr={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",statusOptions:[{value:1,text:this.$tx("common.enable","启用")},{value:2,text:this.$tx("common.disable","禁用")}],corpLeadersTree:[],innerDeptsTree:[],corpOrgsTree:[],corpLeadersTreeObj:{typeName:"",leaders:"",depts:"",fenju:"",remark:"",orderNo:"",status:""}}},computed:_r({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("treeNodeDataList",this.getTreeNode)},beforeDestroy:function(){this.$bus.off("treeNodeDataList",this.getTreeNode)},mounted:function(){this.getTreeNode(this.vo)},methods:{getTreeNode:function(e){var t=this;console.log(e,"val"),this.corpLeadersTree=[],this.innerDeptsTree=[],this.corpOrgsTree=[],e.passenger.commonGroupInfoList.forEach((function(e){"corpLeadersTree"===e.type?t.corpLeadersTree.push(e):"innerDeptsTree"===e.type?t.innerDeptsTree.push(e):"corpOrgsTree"===e.type&&t.corpOrgsTree.push(e)})),this.corpLeadersTreeObj.typeName=this.vo.typeName,this.corpLeadersTreeObj.remark=this.vo.remark,this.corpLeadersTreeObj.orderNo=this.vo.orderNo,this.corpLeadersTreeObj.status=this.vo.status;var n="";this.corpLeadersTree.forEach((function(e){n+=e.commonName+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"leaders",n);var r="";this.innerDeptsTree.forEach((function(e){r+=e.commonName+"、"})),r=r.substring(0,r.length-1),this.$set(this.corpLeadersTreeObj,"depts",r);var a="",o="";this.corpOrgsTree.forEach((function(e){a+=e.commonName+"、",o+=e.commonId+","})),a=a.substring(0,a.length-1),this.$set(this.corpLeadersTreeObj,"fenju",a),this.$set(this.corpLeadersTreeObj,"fenjuId",o),console.log(this.corpLeadersTreeObj,"this.corpLeadersTreeObj")},onSelectSuborgCompleted:function(e,t){if("depts"===t.name){e.forEach((function(e){e.nodeTreeType="innerDeptsTree"})),this.innerDeptsTree=e;var n="";this.innerDeptsTree.forEach((function(e){n+=e.name+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"depts",n)}},onSelectAllOrgCompleted:function(e,t){if("fenju"===t.name){e.forEach((function(e){e.nodeTreeType="corpOrgsTree"})),this.corpOrgsTree=e;var n="";this.corpOrgsTree.forEach((function(e){n+=e.fullName+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"fenju",n)}},onSelectStaffCompleted:function(e,t){if(console.log(t,"attr"),"leaders"===t.name){e.forEach((function(e){e.nodeTreeType="corpLeadersTree"})),this.corpLeadersTree=e;var n="";this.corpLeadersTree.forEach((function(e){n+=e.name+"、"})),n=n.substring(0,n.length-1),this.$set(this.corpLeadersTreeObj,"leaders",n)}},onSelectTreeDataLoaded:function(e,t){var n=this;return console.log(t,"attr","treedata",e),"fenju"===t.name&&(e=e.filter((function(e){return e.ocode!==n.loginUser.orgCode}))),e}}},Lr=Mr,Tr=(n(9651),m(Lr,pr,mr,!1,null,"5f22d162",null)),xr=Tr.exports;function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){Yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yr(e,t,n){return(t=jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e){var t=Cr(e,"string");return"symbol"==Dr(t)?t:t+""}function Cr(e,t){if("object"!=Dr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Or={components:{orgOrganizationForm:xr},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}}},data:function(){return{title:this.$tx("gwgl.gwjh.commonGroupSettingTitle"),moduleInfo:{moduleCode:"Module",addNewUrl:"gwgl/commonGroup/addNew",insertUrl:"gwgl/commonGroup/insert",getByIdUrl:"gwgl/commonGroup/getById",updateUrl:"gwgl/commonGroup/update",delUrl:"gwgl/commonGroup/delete",winWidth:900,winHeight:600},opearType:""}},computed:Sr({},re(["loginUser"])),watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu),console.log(72,this.vo)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add";var e=this.moduleInfo.addNewUrl.split("?")[0];e+="?parentId=",0===this.vo.gwjhLevel?(this.moduleInfo.addNewUrl=e,this.moduleInfo.orgLevel=1,this.moduleInfo.parentId="0"):(this.moduleInfo.addNewUrl=e+this.vo.id,this.moduleInfo.orgLevel=2,this.moduleInfo.parentId=this.vo.id,this.moduleInfo.creatorOrgName=this.vo.name,this.moduleInfo.orgCode=this.vo.orgCode),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editObject:function(e){console.log(97,e),this.opearType="edit",this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(e){var t=this;console.log(e,"node"),console.log(this.zTree,"this.zTree"),this.opearType="delete";var n=this.$tx("gwgl.messages.confirmDel",{val:e.typeName},"确认删除“val”吗?");e.children&&e.children.length>0&&(n=this.$tx("gwgl.messages.confirmDel2",{val:e.typeName},"确认删除“{val}”及下级全部类型吗?")),this.$confirm(n,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(e){"success"===e.code?(t.$bus.emit("refreshTreeData",null),t.$message.success(e.message)):t.$alert(e.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(e,t,n){n.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,n){var r=this;t.createrId=this.loginUser.personId,t.creater=this.loginUser.personName;var a=this.$refs.voForm.corpLeadersTree||[],o=this.$refs.voForm.corpOrgsTree||[],i=this.$refs.voForm.innerDeptsTree,s=[];s=s.concat(a,o,i);var l=[];s.forEach((function(e){var n={};n.commonName=e.fullName||e.commonName||e.name,n.commonId=e.commonId||e.id||e.fullID,n.parentId=t.id,n.createrId=r.loginUser.personId,n.creater=r.loginUser.personName,n.type=e.commonId?e.type:e.nodeTreeType,l.push(n)})),t.passenger.commonGroupInfoList=l,n.resolve(!0)},onBasicFormSubmited:function(e,t){this.vo.typeName=t.typeName,this.$bus.emit("refreshTreeData",null),this.$bus.emit("updateVo",t),this.vo.passenger=t.passenger,this.$refs.orgOrganizationForm&&this.$refs.orgOrganizationForm.getTreeNode(t)}}},Nr=Or,Pr=m(Nr,cr,ur,!1,null,"05324ec5",null),Er=Pr.exports;function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach((function(t){$r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $r(e,t,n){return(t=Ir(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(e){var t=zr(e,"string");return"symbol"==Hr(t)?t:t+""}function zr(e,t){if("object"!=Hr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Rr={components:{orgOrganization:Er},props:{},data:function(){return{moduleInfo:{getByIdUrl:"gwgl/commonGroup/getById",loadTreeNodeUrl:"gwgl/commonGroup/querydata"},root:null,orgOrganization:{passenger:{commonGroupInfoList:[]}},treeData:[],zTree:{},nodeName:"",isClick:!1}},computed:Ar({},re(["loginUser"])),watch:{orgOrganization:{deep:!0,immediate:!0,handler:function(e,t){}}},created:function(){this.root={id:"0",name:"全部分组",open:!0,title:"全部分组",parentId:null,gwjhLevel:0},this.loadExpenseThype(),this.$bus.emit("showNavSearch",!1),this.$bus.on("refreshTreeData",this.refreshTreeData),this.$bus.on("updateVo",this.updateVo)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("updateVo",this.updateVo),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadExpenseThype:function(){var e=this;console.log("this.loginUser",this.loginUser),this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode},{compare:"=",field:"createrId",merge:!0,value:this.loginUser.personId}],url:"gwgl/commonGroup/querydata",params:{orderBy:"orderNo asc"}}).then((function(t){"success"===t.code?(console.log(t.body.listdata,"res.body.listdata"),t.body.listdata.forEach((function(e){e.title=e.typeName,e.name=e.typeName})),e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata)),console.log(e.treeData,"this.treeData")):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){"0"!=e.id&&(e.pId=t.root.id,e.parentId=t.root.id),e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadExpenseThype():this.treeData=this.treeDataAdapter([this.root].concat(e))},updateVo:function(e){var t=this;this.$set(this.orgOrganization,"typeName",e.typeName),this.$set(this.orgOrganization,"name",e.typeName),this.$set(this.orgOrganization,"title",e.typeName),this.treeData.forEach((function(n,r){n.id===e.id&&(t.$set(t.treeData[r],"typeName",e.typeName),t.$set(t.treeData[r],"name",e.typeName),t.$set(t.treeData[r],"title",e.typeName))})),setTimeout((function(){var n=t.zTree.getNodes();n.forEach((function(n){n.id===e.id&&(t.zTree.selectNode(n),t.onTreeNodeClick("",e.id,n))}))}),1e3)},onTreeNodeClick:function(e,t,n){var r=this;this.isClick=!0,this.nodeName=n.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(e){0===n.gwjhLevel?r.orgOrganization=n:void 0===n.pId||null===n.pId?r.orgOrganization=null:r.getExpenseType(n.id,n),r.root=a})),console.log(148,n),"全部分组"!==n.name&&this.$nextTick((function(){r.$bus.emit("treeNodeDataList",n)}))},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();t.length>0&&(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]))},getExpenseType:function(e,t){var n=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:e,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(e){if("success"===e.code){var t=e.body.vo;n.orgOrganization=t}else n.$alert(e.message,n.$tx("common.operationTip","操作提示"),{type:"error"})}))}}},Wr=Rr,Gr=m(Wr,lr,dr,!1,null,"b0c031a2",null),Br=Gr.exports,Ur=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick}})],1),t("RightPanel",[t("orgOrganization",{attrs:{vo:e.orgOrganization,"z-tree":e.zTree,"is-click":e.isClick,"node-name":e.nodeName}})],1)],1)},qr=[],Vr=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[null!==e.vo&&e.isClick&&0!==e.vo.gwjhLevel?t("orgOrganizationForm",{attrs:{vo:e.vo,"can-edit":0}}):e._e(),null!==e.vo?t("div",{attrs:{slot:"footer"},slot:"footer"},[""!==e.nodeName&&e.vo&&e.vo.gwjhLevel<2?t("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addObject}},[e._v(e._s(0===e.vo.gwjhLevel?e.$tx("gwgl.gwjh.addInstitution","添加机构"):e.$tx("gwgl.gwjh.addChildInstitution","添加子机构")))]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"updateInstitution",expression:"'updateInstitution'"}],attrs:{plain:"",icon:"el-icon-edit","module-code":"gwjh"},on:{click:function(t){return e.editObject(e.vo)}}},[e._v("修改机构")]):e._e(),null!==e.vo&&0!==e.vo.gwjhLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"delInstitution",expression:"'delInstitution'"}],attrs:{plain:"",icon:"el-icon-close","module-code":"gwjh"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除机构")]):e._e()],1):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"isNoAddInstitutionisNoAddInstitution",expression:"'isNoAddInstitutionisNoAddInstitution'"}],attrs:{slot:"footer",moduleCode:"gwjh"},slot:"footer"},[e._v("暂未添加管理机构")])],1),t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("orgOrganizationForm",{attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":e.moduleInfo}})]}}])})],1)},Jr=[],Kr=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[1!=e.vo.orgLevel&&e.canEdit?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgLevel",expression:"'orgLevel'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[e._v("上级机构")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("div",{domProps:{innerHTML:e._s(e.vo.creatorOrgName)}})])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgName",expression:"'orgName'"}]},[e._v("机构名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"机构名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{placeholder:e.$tx("gwgl.gwjh.orgNamePlaceholder","请选择机构名称")},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}],null,!1,3177146174)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.name)}}):e._e()],1)]),e.canEdit&&1===e.vo.orgLevel?t("tr",[t("td",{ref:"tdlbl_机构名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgName",expression:"'orgName'"}],staticClass:"field"},[e._v("机构名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"orgName",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:1,elementType:"input",emptyMessage:e.$tx("gwgl.gwjh.orgNameEmpty","请输入机构名称"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"机构名称",propName:"orgName",propType:"String",textFormatter:"textfield",valueMaxLength:150,valueMinLength:null,model:"vo.orgName",option:[],showWordLimit:!1,dialog:1,dialogType:"rootorg",dialogOrgLevel:"",dialogMultiple:!1},vo:e.vo,"can-edit":e.canEdit}})],1)]):e._e(),e.canEdit&&2===e.vo.orgLevel?t("tr",[t("td",{ref:"tdlbl_机构名称",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orgName",expression:"'orgName'"}],staticClass:"field"},[e._v("机构名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{"org-level":"2","dialog-title":e.$tx("gwgl.gwjh.fields.orgName","机构名称"),multiple:"false","root-org-code":e.vo.orgCode,placeholder:e.$tx("gwgl.gwjh.orgNamePlaceholder","请选择机构名称"),name:"name"},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]):e._e(),e.canEdit?e._e():t("tr",[t("td",{ref:"tdlbl_级别 ",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"level",expression:"'level'"}],staticClass:"field"},[e._v("级别")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e.vo.orgLevel?t("div",[e._v(e._s(e.vo.orgLevel?e.orgLevelOptions[e.vo.orgLevel-1].text:""))]):e._e()])]),t("tr",[t("td",{ref:"tdlbl_备注",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"remark",expression:"'remark'"}],staticClass:"field"},[e._v("备注")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"remark",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"textarea",emptyMessage:e.$tx("gwgl.common.remarkmptyMessage","请输入备注"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:0,onClickEvent:null,passenger:{},propComment:"备注",propName:"remark",propType:"String",textFormatter:"textarea",valueMaxLength:null,valueMinLength:null,model:"vo.remark",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNo",expression:"'orderNo'"}]},[e._v("排序")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"排序",rules:"required|length:4"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[1===e.canEdit?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"orderNo",placeholder:e.$tx("gwgl.gwjh.orderPlaceholder","请输入4位数字排序号")},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}}):e._e()],1)]}}],null,!1,882135480)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(e.vo.orderNo)}}):e._e()],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}],staticClass:"field"},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[1===e.canEdit?t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"显示名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"status",placeholder:e.$tx("gwgl.common.statusPlaceholder","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(n,r){return t("el-radio",{key:r,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,474603353)}):e._e(),1!==e.canEdit?t("div",{domProps:{innerHTML:e._s(1===e.vo.status?e.$tx("common.enable","启用"):e.$tx("common.disable","禁用"))}}):e._e()],1)])])])])])])},Qr=[];function Zr(e){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zr(e)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){ta(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ta(e,t,n){return(t=na(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function na(e){var t=ra(e,"string");return"symbol"==Zr(t)?t:t+""}function ra(e,t){if("object"!=Zr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}window.jQuery||(window.jQuery=hr());var aa={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",statusOptions:[{value:1,text:this.$tx("common.enable","启用")},{value:2,text:this.$tx("common.disable","禁用")}],orgLevelOptions:[{value:1,text:this.$tx("gwgl.gwjh.orgLevelOptions1","一级(公司级)")},{value:2,text:this.$tx("gwgl.gwjh.orgLevelOptions2","二级(部门级)")}],lendAsOptions:[],loanAsOptions:[],cascaderProps:{value:"id",label:"name",checkStrictly:!1}}},computed:ea({},re(["loginUser"])),watch:{},created:function(){console.log(142,this.$vnode.context.moduleInfo),this.$vnode.context.moduleInfo.orgLevel&&(null===this.vo.orgLevel&&(this.vo.orgLevel=this.$vnode.context.moduleInfo.orgLevel,this.vo.gwjhLevel=this.$vnode.context.moduleInfo.orgLevel),null===this.vo.parentId&&(1===this.vo.orgLevel?this.vo.parentId="0":(this.vo.parentId=this.$vnode.context.moduleInfo.parentId,this.vo.creatorOrgName=this.$vnode.context.moduleInfo.creatorOrgName)),this.$vnode.context.moduleInfo.orgCode&&(this.vo.orgCode=this.$vnode.context.moduleInfo.orgCode),null===this.vo.status&&(this.vo.status=1),this.vo.subUnint=0),console.log(this.vo,"vo",this.vo.orgCode)},beforeDestroy:function(){},mounted:function(){console.log(this.$refs.orgNameSon,"orgNameSon")},methods:{onSelectRootorgCompleted:function(e,t){console.log(e,t,"主机构");var n="",r="",a="",o="",i="",s="",l="",d="";e.forEach((function(e){""!==n&&(n+="、"),""!==r&&(r+="、"),""!==a&&(a+="、"),""!==i&&(i+="、"),""!==o&&(o+="、"),""!==s&&(s+="、"),""!==l&&(l+="、"),""!==d&&(d+="、"),n+=e.name,r+=e.ocode,a+=e.id,o+=e.id,i+=e.name,s+=e.id,l+=e.orgfullName,d+=e.orderNo})),this.$set(this.vo,"name",i),this.$set(this.vo,"orgName",n),this.$set(this.vo,"orgCode",r),this.$set(this.vo,"orgId",a),this.$set(this.vo,"orgFullId",o),this.$set(this.vo,"fullId",s),this.$set(this.vo,"fullName",l),this.$set(this.vo,"orderNo",d)},onSelectSuborgCompleted:function(e,t){console.log(e,t,"子机构");var n="",r="",a="",o="",i="",s="",l="";e.forEach((function(e){""!==n&&(n+="、"),""!==o&&(o+="、"),""!==r&&(r+="、"),""!==a&&(a+="、"),""!==i&&(i+="、"),""!==s&&(s+="、"),""!==l&&(l+="、"),n+=e.name,o+=e.orgFullName,r+=e.id,a+=e.orgFullId,i+=e.name,s+=e.id,l+=e.orderNo})),this.$set(this.vo,"orgName",n),this.$set(this.vo,"fullName",o),this.$set(this.vo,"orgId",r),this.$set(this.vo,"orgFullId",a),this.$set(this.vo,"name",i),this.$set(this.vo,"fullId",s),this.$set(this.vo,"orderNo",l)}}},oa=aa,ia=(n(7867),m(oa,Kr,Qr,!1,null,"10a373f3",null)),sa=ia.exports,la=function(){var e=this,t=e._self._c;return t("div",{staticClass:"export-box"},[t("table",{staticStyle:{"text-align":"left"}},[t("tr",[t("td",{staticStyle:{width:"110px"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"importOrgTitle",expression:"'importOrgTitle'"}],staticClass:"row-col",staticStyle:{"font-weight":"600"}},[e._v("清远市公安局政务OA系统导入:")])]),t("td",[t("div",{staticClass:"row-col"},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".xls",action:e.base_api+"/gwjh/orgOrganization/ImportorgOrganization",data:e.uploadDdta,multiple:!1,"file-list":e.fileList,"on-change":e.fileChange,"on-success":e.uploadSuccess,"auto-upload":!1,"with-credentials":!0,"show-file-list":!0,disabled:!1,"on-remove":e.uploadRemove,limit:1}},[null==e.fileList||0==e.fileList.length?t("el-button",{attrs:{slot:"trigger"},slot:"trigger"},[t("svg-icon",{attrs:{"icon-class":"add"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectFile",expression:"'selectFile'"}]},[e._v("选择文件")])],1):e._e()],1),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{disabled:e.doing},on:{click:e.startUpload}},[t("svg-icon",{attrs:{"icon-class":"import"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"startImport",expression:"'startImport'"}]},[e._v("开始导入")])],1)],1)])]),t("tr",[t("td",{attrs:{colspan:"2"}},[t("div",{staticClass:"tip"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrate",expression:"'uploadIllustrate'"}],staticStyle:{"font-weight":"600"}},[e._v("上传文件内容格式说明:")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrateOne",expression:"'uploadIllustrateOne'"}],staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v("1.导入文件应为Office Excel文件;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrateTwo",expression:"'uploadIllustrateTwo'"}],staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v("2.导入文件暂不支持Office 2007及以后版本的Excel文件,如您使用的是Office 2007及以后版本,请把Excel文件转换为2003或之前的版本格式,具体转换方式为:打开的Excel文件中,选择“另存为”->“Excel 97-2003工作簿”;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"uploadIllustrateThree",expression:"'uploadIllustrateThree'"}],staticStyle:{"font-size":"var(--portalFontSize13)"}},[e._v("3.进行导入操作时,请确保您导入的文件并未处于使用状态。")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"example",expression:"'example'"}],staticStyle:{"font-weight":"600"}},[e._v("上传文件内容示例:")]),t("span",[t("a",{attrs:{title:e.$tx("gwgj.gwjh.clickDown")},on:{click:function(t){return e.fileDownload("/templates/costType1.xls")}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"downText",expression:"'downText'"}],staticStyle:{color:"red",width:"100%"}},[e._v("点击下载Excel导入示例")])])])])])])])])},da=[],ca={components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"gwjh",doing:!1,fileList:[]}},computed:{},watch:{},created:function(){this.base_api="/apigw"},beforeDestroy:function(){},mounted:function(){},methods:{uploadRemove:function(e,t){this.fileList=t},fileChange:function(e,t){this.fileList=[e],this.doing=!1},startUpload:function(){0===this.fileList.length?this.$alert(this.$tx("gwgl.messages.importAlert","请选择导入文件"),this.$tx("common.operationTip","操作提示"),{type:"warning"}):(this.doing=!0,this.$refs.upload.submit())},uploadSuccess:function(e,t,n){var r=this;"success"===e.code?(this.$message({message:e.message,type:"success"}),e.body.listdata&&this.$bus.emit("refreshTreeData",e.body.listdata)):this.$alert(e.message,this.$tx("common.operationTip","操作提示"),{type:"error"}),this.doing=!1,this.fileList=null,this.$nextTick((function(){r.fileList=[]}))}}},ua=ca,pa=(n(2174),m(ua,la,da,!1,null,"67b05f04",null)),ma=pa.exports,fa={components:{orgOrganizationForm:sa,ImportorgOrganization:ma},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}}},data:function(){return{title:this.$tx("gwgl.gwjh.institutionSet"),i18npkg:"gwgl",moduleInfo:{moduleCode:"Module",addNewUrl:"gwjh/orgOrganization/addNew",insertUrl:"gwjh/orgOrganization/crgwjhOrganization",getByIdUrl:"gwjh/orgOrganization/getById",updateUrl:"gwjh/orgOrganization/bcgwjhOrgOrganization",delUrl:"gwjh/orgOrganization/delete",winWidth:900,winHeight:600},opearType:""}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu),console.log(72,this.vo)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add";var e=this.moduleInfo.addNewUrl.split("?")[0];e+="?parentId=",0===this.vo.gwjhLevel?(this.moduleInfo.addNewUrl=e,this.moduleInfo.orgLevel=1,this.moduleInfo.parentId="0"):(this.moduleInfo.addNewUrl=e+this.vo.id,this.moduleInfo.orgLevel=2,this.moduleInfo.parentId=this.vo.id,this.moduleInfo.creatorOrgName=this.vo.name,this.moduleInfo.orgCode=this.vo.orgCode),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editObject:function(e){console.log(97,e),this.opearType="edit",this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(e){var t=this;console.log(e,"node"),console.log(this.zTree,"this.zTree"),this.opearType="delete";var n=this.$tx("gwgl.messages.confirmDel",{val:e.name},"确认删除“${node.name}”吗?");e.children&&e.children.length>0&&(n=this.$tx("gwgl.messages.confirmDel2",{val:e.name},"确认删除“${node.name}”及下级全部类型吗?")),this.$confirm(n,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(e){"success"===e.code?(t.$bus.emit("refreshTreeData",null),t.$message.success(e.message)):t.$alert(e.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(e,t,n){n.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,n){n.resolve(!0)},onBasicFormSubmited:function(e,t){t.title=t.name,void 0!==t.pId&&null!==t.pId||("0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId||"root"),this.$bus.emit("updateTreeNode",t)}}},ha=fa,ga=m(ha,Vr,Jr,!1,null,"a11eecf2",null),ya=ga.exports;function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e,t,n){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ma(e){var t=La(e,"string");return"symbol"==_a(t)?t:t+""}function La(e,t){if("object"!=_a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ta={components:{orgOrganization:ya},props:{},data:function(){return{moduleInfo:{getByIdUrl:"gwjh/orgOrganization/getById",loadTreeNodeUrl:"gwjh/orgOrganization/querydata"},root:null,orgOrganization:{},treeData:[],zTree:{},nodeName:"",isClick:!1}},computed:ba({},re(["loginUser"])),watch:{orgOrganization:{deep:!0,immediate:!0,handler:function(e,t){console.log(48,e,this.nodeName),console.log(49,t)}}},created:function(){this.root={id:"0",name:"清远市",open:!0,title:"清远市",parentId:null,gwjhLevel:0},this.loadExpenseThype(),this.$bus.emit("showNavSearch",!1),this.$bus.on("refreshTreeData",this.refreshTreeData)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadExpenseThype:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"creatorOrgCode",merge:!0,value:this.loginUser.orgCode},{compare:"=",field:"status",merge:!0,value:1}],url:this.moduleInfo.loadTreeNodeUrl}).then((function(t){"success"===t.code?(console.log(t.body.listdata,"res.body.listdata"),t.body.listdata.forEach((function(e){1===e.subUnint&&(e.parentId="0")})),console.log(e.corpOrgs,"this.corpOrgs"),e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata))):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){var t=this;return e.forEach((function(e){null===e.parentId?e.pId=t.root.id:e.pId=e.parentId,e.title=e.name})),e},refreshTreeData:function(e){null===e?this.loadExpenseThype():this.treeData=this.treeDataAdapter([this.root].concat(e))},onTreeNodeClick:function(e,t,n){var r=this;this.isClick=!0,this.nodeName=n.name;var a=JSON.parse(JSON.stringify(this.root));this.root=null,console.log(114,n),this.$nextTick((function(e){0===n.gwjhLevel?r.orgOrganization=n:void 0===n.pId||null===n.pId?r.orgOrganization=null:r.getExpenseType(n.id,n),r.root=a}))},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();t.length>0&&(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0]))},getExpenseType:function(e,t){var n=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:e,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(e){if("success"===e.code){var t=e.body.vo;n.orgOrganization=t,console.log(142,e.body.vo),console.log(143,t),console.log(144,n.orgOrganization)}else n.$alert(e.message,n.$tx("common.operationTip","操作提示"),{type:"error"})}))}}},xa=Ta,Da=m(xa,Ur,qr,!1,null,"47a0c0d2",null),ka=Da.exports,Sa=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:"blxltj"}}},[t("div",{ref:"reportContent",staticClass:"report-content"},[e.loading?e._e():t("bar",{attrs:{"chart-id":"projectColumnar2",left:"2%",right:"5%","echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata}})],1)])],1)},Ya=[];function ja(e){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(e)}function Ca(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ca=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==ja(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(ja(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Oa(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Na(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Oa(o,r,a,i,s,"next",e)}function s(e){Oa(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach((function(t){Ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ha(e,t,n){return(t=Fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e){var t=Aa(e,"string");return"symbol"==ja(t)?t:t+""}function Aa(e,t){if("object"!=ja(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ja(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $a={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{listData:[],loginUser:this.$store.getters.loginUser,searchType:"",loading:!1,chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{},yUnit:{},xdata:[],ydata:[],staffList:[],dataInfo:{bwsl:{type:"1",url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",x:"部门",y:"办文数量"},bwxl:{type:"1",url:"platStatistics/doneAndtodo/handlingEfficiencyStatistics",x:"部门",y:"办文时长(小时)"}},pageData:{},tooltipFormat:null,chooseDate:[]}},computed:Ea({},re(["routes"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),this.initDate("day"),this.getReportList()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{staffChange:function(e){this.getReportList(e)},mergestaffList:function(e){var t=[];return e.forEach((function(e){var n={value:e.orgFullName.split("-")[1],id:e.orgFullId.split("-")[1]};t.push(n)})),t},getReportList:function(e){var t=this;return Na(Ca().mark((function n(){var r,a;return Ca().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.searchType="bwxl",t.pageData=t.dataInfo[t.searchType],t.xUnit={name:t.pageData.x,align:"end",size:"12"},t.yUnit={name:t.pageData.y,align:"end",size:"12",position:"left",lineColor:"#000",nameRotate:"0",nameGap:"10",minInterval:"1"},r={deptId:e||"",endTime:t.chooseDate[1],startTime:t.chooseDate[0],type:t.pageData.type,fileName:"",module:"fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg,dzgg"},t.loading=!0,t.listData=[],n.next=9,t.$app.listdata(t.pageData.url,r);case 9:a=n.sent,"success"===a.code&&t.mergeList(a.body.listdata.slice(0,10)),t.loading=!1;case 12:case"end":return n.stop()}}),n)})))()},mergeList:function(e){var t=this,n=[],r=[];if(e.forEach((function(e){"bwsl"===t.searchType&&(n.push(e.name),r.push(e.num))})),"bwxl"===this.searchType){var a=e.slice(0,10);a.forEach((function(e){n.push(e.name),r.push(JSON.parse(JSON.stringify(e.avgMinute))/60),e.avgMinute=t.mergeMinute(e.avgMinute)}))}this.xdata=n,this.ydata=[r],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?l+"秒":i+"分钟"+l+"秒":a+"小时"+i+"分钟"+l+"秒":n+"天"+a+"小时"+i+"分钟"+l+"秒",d},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1),a=t.getDate()>=10?t.getDate():"0"+t.getDate();if("day"===e){var o="",i="";if(a>15)o=n+"-"+r+"-01",i=n+"-"+r+"-"+new Date(n,r,0).getDate();else{var s=new Date(t.setMonth(r-2)).getFullYear(),l=new Date(t.setMonth(r-2)).getMonth()+1;o=s+"-"+l+"-01",i=s+"-"+l+"-"+new Date(s,l,0).getDate()}this.chooseDate=[o,i]}else if("month"===e){var d=new Date(t.setMonth(r-13)).getFullYear(),c=new Date(t.setMonth(r-13)).getMonth()+1>=10?new Date(t.setMonth(r-13)).getMonth()+1:"0"+(new Date(t.setMonth(r-13)).getMonth()+1),u=d+"-"+c,p=n+"-"+r;this.chooseDate=[u,p]}},onMoreClick:function(){var e=this;if(this.appletData.url.indexOf("?")>1&&this.appletData.url.split("?")[1].indexOf("productCode")>-1){var t=this.appletData.url.split("?")[1];if(t.indexOf("&")>-1){var n=t.split("&");n.forEach((function(t){t.indexOf("productCode")>-1&&e.$bus.emit("redirectMoreClick",t.split("=")[1])}))}else this.$bus.emit("redirectMoreClick",t.split("=")[1])}},echartsClick:function(){return!1}}},Ia=$a,za=(n(6295),m(Ia,Sa,Ya,!1,null,"6a1b3a22",null)),Ra=za.exports,Wa=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:"bwsltj"}}},[t("div",{ref:"reportContent",staticClass:"report-content"},[e.loading?e._e():t("bar",{attrs:{"chart-id":"projectColumnar1",left:"2%",right:"5%","echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata}})],1)])],1)},Ga=[];function Ba(e){return Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(e)}function Ua(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ua=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Ba(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Ba(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function qa(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Va(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){qa(o,r,a,i,s,"next",e)}function s(e){qa(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach((function(t){Qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qa(e,t,n){return(t=Za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e){var t=Xa(e,"string");return"symbol"==Ba(t)?t:t+""}function Xa(e,t){if("object"!=Ba(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ba(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var eo={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{listData:[],loginUser:this.$store.getters.loginUser,searchType:"",loading:!1,chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{},yUnit:{},xdata:[],ydata:[],staffList:[],dataInfo:{bwsl:{type:"1",url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",x:"部门",y:"办文数量"},bwxl:{type:"1",url:"platStatistics/doneAndtodo/handlingEfficiencyStatistics",x:"部门",y:"平均办文时长"}},pageData:{},tooltipFormat:null,chooseDate:[]}},computed:Ka({},re(["routes"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),this.initDate("day"),this.getReportList()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{staffChange:function(e){this.getReportList(e)},mergestaffList:function(e){var t=[];return e.forEach((function(e){var n={value:e.orgFullName.split("-")[1],id:e.orgFullId.split("-")[1]};t.push(n)})),t},getReportList:function(e){var t=this;return Va(Ua().mark((function n(){var r,a;return Ua().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.searchType="bwsl",t.pageData=t.dataInfo[t.searchType],t.xUnit={name:t.pageData.x,align:"end",size:"12"},t.yUnit={name:t.pageData.y,align:"end",size:"12",position:"left",lineColor:"#000",nameRotate:"0",nameGap:"10",minInterval:"1"},r={deptId:e||"",endTime:t.chooseDate[1],startTime:t.chooseDate[0],type:t.pageData.type,fileName:"",module:"fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg,dzgg"},t.loading=!0,t.listData=[],n.next=9,t.$app.listdata(t.pageData.url,r);case 9:a=n.sent,"success"===a.code&&t.mergeList(a.body.listdata.slice(0,10)),t.loading=!1;case 12:case"end":return n.stop()}}),n)})))()},mergeList:function(e){var t=this,n=[],r=[];e.forEach((function(e){"bwsl"===t.searchType&&(n.push(e.name),r.push(e.num))})),this.xdata=n,this.ydata=[r],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?l+"秒":i+"分钟"+l+"秒":a+"小时"+i+"分钟"+l+"秒":n+"天"+a+"小时"+i+"分钟"+l+"秒",d},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1),a=t.getDate()>=10?t.getDate():"0"+t.getDate();if("day"===e){var o="",i="";if(a>15)o=n+"-"+r+"-01",i=n+"-"+r+"-"+new Date(n,r,0).getDate();else{var s=new Date(t.setMonth(r-2)).getFullYear(),l=new Date(t.setMonth(r-2)).getMonth()+1;o=s+"-"+l+"-01",i=s+"-"+l+"-"+new Date(s,l,0).getDate()}this.chooseDate=[o,i]}else if("month"===e){var d=new Date(t.setMonth(r-13)).getFullYear(),c=new Date(t.setMonth(r-13)).getMonth()+1>=10?new Date(t.setMonth(r-13)).getMonth()+1:"0"+(new Date(t.setMonth(r-13)).getMonth()+1),u=d+"-"+c,p=n+"-"+r;this.chooseDate=[u,p]}},onMoreClick:function(){var e=this;if(this.appletData.url.indexOf("?")>1&&this.appletData.url.split("?")[1].indexOf("productCode")>-1){var t=this.appletData.url.split("?")[1];if(t.indexOf("&")>-1){var n=t.split("&");n.forEach((function(t){t.indexOf("productCode")>-1&&e.$bus.emit("redirectMoreClick",t.split("=")[1])}))}else this.$bus.emit("redirectMoreClick",t.split("=")[1])}},echartsClick:function(){return!1}}},to=eo,no=(n(3368),m(to,Wa,Ga,!1,null,"91817610",null)),ro=no.exports,ao=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!1,code:"zcpd_left.svg"}}},[t("div",{ref:"gwcx",staticClass:"gwcx-content"},[t("div",{staticClass:"search-input"},[t("el-input",{staticClass:"input-with-select",attrs:{placeholder:e.$tx("gwgl.portlet.searching","搜索...")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchBtnClick.apply(null,arguments)}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchBtnClick},slot:"append"})],1)],1),t("div",{staticClass:"search-select"},[t("el-radio-group",{attrs:{size:"small"},on:{input:e.checkboxChange},model:{value:e.radioGroup,callback:function(t){e.radioGroup=t},expression:"radioGroup"}},e._l(e.cityOptions,(function(n){return t("el-radio-button",{key:n,attrs:{label:n}},[e._v(e._s(n))])})),1)],1)])])],1)},oo=[];function io(e){return io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},io(e)}function so(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */so=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==io(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(io(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function lo(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function co(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){lo(o,r,a,i,s,"next",e)}function s(e){lo(o,r,a,i,s,"throw",e)}i(void 0)}))}}var uo={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{loginUser:this.$store.getters.loginUser,searchKey:"",cityOptions:[this.$tx("gwgl.portlet.unitDocument","单位发文"),this.$tx("gwgl.portlet.readingOffice","收文阅办"),this.$tx("gwgl.portlet.receiptDocuments","部门收文"),this.$tx("gwgl.portlet.documentCirculation","文件传阅"),this.$tx("gwgl.portlet.departmentalLetter","部门便函"),this.$tx("gwgl.portlet.solicitationOpinions","意见征集"),this.$tx("gwgl.portlet.requestInstructions","请示报告")],selectWf:"",radioGroup:[]}},computed:{routes:function(){return this.$store.getters.routes}},watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index")},beforeDestroy:function(){},mounted:function(){},methods:{searchBtnClick:function(){var e=this;return co(so().mark((function t(){var n,r;return so().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.routes.filter((function(e){return e.meta&&"公文查询"===e.meta.title})),n.length>0&&(r={},e.radioGroup?(r={keyword:e.searchKey,flGwType:e.radioGroup},localStorage.setItem("gwKeyWord",JSON.stringify(r))):(r={keyword:e.searchKey},localStorage.setItem("gwKeyWord",JSON.stringify(r))),e.$router.push({path:n[0].children[0].path,query:{gwKeyWord:e.searchKey}}));case 2:case"end":return t.stop()}}),t)})))()},checkboxChange:function(e){this.radioGroup=e,this.searchBtnClick()}}},po=uo,mo=(n(6887),m(po,ao,oo,!1,null,"1ec9c518",null)),fo=mo.exports,ho=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:"gwmbSignedfile"}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"gwmb",staticClass:"gwmb-content"},[e.mbList.length?t("div",{staticClass:"gwmb-box"},e._l(e.mbList,(function(n){return t("div",{key:n.id,staticClass:"gwmb-item",on:{mouseenter:function(t){return e.onMouseenter(n)},mouseleave:function(t){return e.onMouseleave(n)}}},[t("div",{ref:n.id+"y",refInFor:!0,staticClass:"item-img"},[t("el-image",{staticClass:"pdf-viewer",staticStyle:{width:"100%",height:"100%"},attrs:{src:"apigw/gwgl/fwmb/downloadImg?dataField=mbImgFileData&id="+n.id+"&nameField=mbImgFileName",fit:e.cover}},[t("div",{staticClass:"image-slot",staticStyle:{height:"100%"},attrs:{slot:"error"},slot:"error"},[t("el-image",{staticStyle:{top:"50%",transform:"translateY(-50%)",height:"90px"},attrs:{src:"images/w-imgs/nosearch.png",fit:e.fit}})],1)])],1),t("div",{ref:n.id,refInFor:!0,staticClass:"item-btn"},[t("div",{staticClass:"btn",on:{click:function(t){return e.gwglYl(n)}}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$tx("gwgl.portlet.preview","预览"),placement:"right","open-delay":"1000"}},[t("svg-icon",{staticStyle:{height:"25px",width:"25px"},attrs:{"icon-class":"gwgl_yl"}})],1)],1),t("div",{staticClass:"btn",on:{click:function(t){return e.gwglXz(n)}}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$tx("pageBtns.download","下载"),placement:"right","open-delay":"1000"}},[t("svg-icon",{staticStyle:{height:"25px",width:"25px"},attrs:{"icon-class":"gwgl_xz"}})],1)],1)]),t("span",[e._v(e._s(n.name))])])})),0):t("div",{staticClass:"gwmb-box"},[t("el-empty",{attrs:{description:e.$tx("gwgl.common.noGwModule","暂无公文模板"),image:"./images/w-imgs/nosearch.png"}})],1)])])],1)},go=[];function yo(e){return yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(e)}function _o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_o=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==yo(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(yo(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function vo(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function bo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){vo(o,r,a,i,s,"next",e)}function s(e){vo(o,r,a,i,s,"throw",e)}i(void 0)}))}}var wo={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{loginUser:this.$store.getters.loginUser,mbList:[],loading:!0}},computed:{routes:function(){return this.$store.getters.routes}},watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.getData()},beforeDestroy:function(){},mounted:function(){},methods:{getUrl:function(e){var t=window.location.protocol+"//"+window.location.hostname+":"+window.location.port,n=t+"/apigw/gwgl/fwmb/download?id="+e+"&inline=true&toPdf=true&dataField=fileContent&nameField=mbFileName";return n},getData:function(){var e=this;return bo(_o().mark((function t(){var n,r,a;return _o().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.appletData.interfaceStatus&&!window.openInterface){t.next=8;break}return t.next=3,e.$getDefaultData(e,e.appletData.id);case 3:if(n=t.sent,"公文模版"!==e.appletData.name&&"公文模版"!==e.appletData.name){t.next=8;break}return e.mbList=n,e.loading=!1,t.abrupt("return");case 8:return r={pageSize:9999,pageNum:1,urlsearch:"orgCode:".concat(e.loginUser.orgCode),orderBy:"sortNo asc"},t.next=11,e.$app.listdata("/gwgl/fwmb/listdata",r);case 11:a=t.sent,"success"===a.code?(e.mbList=a.body.pageInfo.list,console.log(e.mbList,"公文模板数据"),e.loading=!1):e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},onMouseenter:function(e){this.$refs[e.id][0].style.display="flex"},onMouseleave:function(e){this.$refs[e.id][0].style.display="none"},gwglYl:function(e){var t=window.location.protocol+"//"+window.location.hostname+":"+window.location.port,n=t+"/apigw/gwgl/fwmb/download?id="+e.id+"&inline=true&toPdf=true&dataField=fileContent&nameField=mbFileName&fileName="+e.mbFileName;window.open("./plugins/PDFjs/web/viewer.html?file="+encodeURIComponent(n))},gwglXz:function(e){var t="/apigw/gwgl/fwmb/download?id="+e.id+"&inline=true&toPdf=false&dataField=fileContent&nameField=mbFileName";window.open(t)}}},Mo=wo,Lo=(n(8583),m(Mo,ho,go,!1,null,"c37d5e66",null)),To=Lo.exports,xo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-layout"},[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:!0,code:e.code}}},[t("div",{ref:"reportContent",staticClass:"report-content"},[!e.loading&&e.listData.length>0?t("bar",{attrs:{left:"2%",right:"9%",top:"7%","echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata,"x-label-rotate":45}}):e._e()],1)])],1)},Do=[];function ko(e){return ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ko(e)}function So(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */So=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==ko(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(ko(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Yo(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Yo(o,r,a,i,s,"next",e)}function s(e){Yo(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t,n){return(t=Po(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Po(e){var t=Eo(e,"string");return"symbol"==ko(t)?t:t+""}function Eo(e,t){if("object"!=ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ho={props:{appletData:{type:Object,default:function(){return{}}},name:{type:String,default:""}},data:function(){return{listData:[],loginUser:this.$store.getters.loginUser,searchType:"",code:"",loading:!1,chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{},yUnit:{},xdata:[],ydata:[],staffList:[],dataInfo:{bwsl:{type:"1",url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",x:"部门",y:"办文数量"},bwxl:{type:"1",url:"platStatistics/doneAndtodo/handlingEfficiencyStatistics",x:"部门",y:"平均办文时长"}},pageData:{},tooltipFormat:null,chooseDate:[]}},computed:Oo({},re(["routes"])),watch:{},created:function(){this.$options.components["BlockFrame"]=this.$loadComponent("@/wapp/common/components/BlockFrame/index"),this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),console.log("办文数量统计"),this.initDate("day"),this.getReportList()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{staffChange:function(e){this.getReportList(e)},mergestaffList:function(e){var t=[];return e.forEach((function(e){var n={value:e.orgFullName.split("-")[1],id:e.orgFullId.split("-")[1]};t.push(n)})),t},getReportList:function(e){var t=this;return jo(So().mark((function n(){var r,a;return So().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return"办文数量统计"===t.appletData.name?(t.searchType="bwsl",t.code="bwsltj"):"办文时长统计(十名)"===t.appletData.name&&(t.searchType="bwxl",t.code="blxltj"),t.pageData=t.dataInfo[t.searchType],t.xUnit={name:t.pageData.x,align:"end",size:"12"},t.yUnit={name:t.pageData.y,align:"end",size:"12",position:"left",lineColor:"#000",nameRotate:"0",nameGap:"10"},r={deptId:e||"",endTime:t.chooseDate[1],startTime:t.chooseDate[0],type:t.pageData.type,fileName:"",module:"fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg,dzgg"},t.loading=!0,t.listData=[],n.next=9,t.$app.listdata(t.pageData.url,r);case 9:a=n.sent,"success"===a.code&&t.mergeList(a.body.listdata.slice(0,10)),t.loading=!1;case 12:case"end":return n.stop()}}),n)})))()},mergeList:function(e){var t=this,n=[],r=[];if(e.forEach((function(e){"bwsl"===t.searchType&&(n.push(e.name),r.push(e.num))})),"bwxl"===this.searchType){e.sort((function(e,t){return t.avgMinute-e.avgMinute}));var a=e.slice(0,10);a.forEach((function(e){n.push(e.name),r.push(JSON.parse(JSON.stringify(e.avgMinute))/60),e.avgMinute=t.mergeMinute(e.avgMinute)}))}this.xdata=n,this.ydata=[r],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?l+"秒":i+"分钟"+l+"秒":a+"小时"+i+"分钟"+l+"秒":n+"天"+a+"小时"+i+"分钟"+l+"秒",d},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1),a=t.getDate()>=10?t.getDate():"0"+t.getDate();if("day"===e){var o="",i="";if(a>15)o=n+"-"+r+"-01",i=n+"-"+r+"-"+new Date(n,r,0).getDate();else{var s=new Date(t.setMonth(r-2)).getFullYear(),l=new Date(t.setMonth(r-2)).getMonth()+1;o=s+"-"+l+"-01",i=s+"-"+l+"-"+new Date(s,l,0).getDate()}this.chooseDate=[o,i]}else if("month"===e){var d=new Date(t.setMonth(r-13)).getFullYear(),c=new Date(t.setMonth(r-13)).getMonth()+1>=10?new Date(t.setMonth(r-13)).getMonth()+1:"0"+(new Date(t.setMonth(r-13)).getMonth()+1),u=d+"-"+c,p=n+"-"+r;this.chooseDate=[u,p]}},onMoreClick:function(){var e=this;if(this.appletData.url.indexOf("?")>1&&this.appletData.url.split("?")[1].indexOf("productCode")>-1){var t=this.appletData.url.split("?")[1];if(t.indexOf("&")>-1){var n=t.split("&");n.forEach((function(t){t.indexOf("productCode")>-1&&e.$bus.emit("redirectMoreClick",t.split("=")[1])}))}else this.$bus.emit("redirectMoreClick",t.split("=")[1])}},echartsClick:function(){return!1}}},Fo=Ho,Ao=(n(6260),m(Fo,xo,Do,!1,null,"08091c3d",null)),$o=Ao.exports,Io=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[t("GiantTree",{attrs:{nodes:e.treeData},on:{onCreated:e.onTreeCreated,onClick:e.onTreeNodeClick},scopedSlots:e._u([{key:"context-menu",fn:function(n){return[null===n.contextNode.pId&&n.contextNode.categoryLevel<3||!n.contextNode.categoryLevel?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"addNewMenu",expression:"'addNewMenu'"}],attrs:{moduleCode:"setting"},on:{click:function(t){return e.addMenu(n.treeId,n.contextNode)}}},[e._v("新增子菜单")])]):e._e(),null!==n.contextNode.pId?t("ul",[n.contextNode.categoryLevel<3?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"addNewMenu",expression:"'addNewMenu'"}],attrs:{moduleCode:"setting"},on:{click:function(t){return e.addMenu(n.treeId,n.contextNode)}}},[e._v("新增子菜单")]):e._e(),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"delMenu",expression:"'delMenu'"}],attrs:{moduleCode:"setting"},on:{click:function(t){return e.deleteObject(n.contextNode)}}},[e._v("删除菜单")])]):e._e()]}}])})],1),t("RightPanel",[t("pageContent",{attrs:{title:e.formTitle}},[e.treeData.length>0&&e.showInfoView?t("typeForm",{ref:"typeForm1",attrs:{vo:e.vo,"tree-data":e.treeData,"chang-access-rights":e.changAccessRights}}):e._e(),t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e.treeData.length>0&&e.showInfoView?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"confirmUpdate",expression:"'confirmUpdate'"}],attrs:{type:"primary",size:"small",icon:"el-icon-check"},on:{click:e.updateObject}},[e._v("确认修改")]):e._e(),e.vo.categoryLevel<3||!e.vo.categoryLevel?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addChildType",expression:"'addChildType'"}],attrs:{size:"small",plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addObject(e.vo)}}},[e._v("新增子分类")]):e._e(),e.treeData.length>0&&e.showInfoView?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"delType",expression:"'delType'"}],attrs:{type:"danger",size:"small",icon:"el-icon-delete"},on:{click:function(t){return e.deleteObject(e.vo)}}},[e._v("删除子分类")]):e._e()],1)],1)],1),t("Basicform",{ref:"basicForm",attrs:{title:e.$tx("gwgl.components.archiveClassification","归档分类管理"),"win-width":800,"win-height":600,"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("typeForm",{ref:"typeForm",attrs:{vo:n.vo,"module-info":e.moduleInfo,"tree-data":e.treeData}})]}}])})],1)},zo=[],Ro=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",["归档文件"!==e.getNamehandler(e.vo.parentId)?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"levelType",expression:"'levelType'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级分类")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[e._v(" "+e._s(e.getNamehandler(e.vo.parentId))+" ")])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"typeName",expression:"'typeName'"}]},[e._v("分类名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分类名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{type:"text","show-word-limit":"true",placeholder:e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称")},model:{value:e.vo.categoryName,callback:function(t){e.$set(e.vo,"categoryName",t)},expression:"vo.categoryName"}})],1)]}}])})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"classicDescription",expression:"'classicDescription'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("分类描述")]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-input",{attrs:{type:"textarea","show-word-limit":"",placeholder:e.$tx("gwgl.setting.classicDescriptionPlaceholder","请输入分类描述")},model:{value:e.vo.categoryDes,callback:function(t){e.$set(e.vo,"categoryDes",t)},expression:"vo.categoryDes"}})],1)]),t("tr",[t("td",{ref:"tdlbl_排序号",staticClass:"el-table__cell tdlbl tdw17",attrs:{colspan:"1"}},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sortNumber",expression:"'sortNumber'"}]},[e._v("排序号")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[t("form-item",{ref:"orderno",attrs:{field:{defaultValue:null,elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:null,elementReadonly:0,elementType:"input",emptyMessage:e.$tx("gwgl.setting.sortNumberEmptyMessage","请输入四位数的排序号"),errorMessage:null,formTdAlign:"text-left",formTdColspan:0,isRequired:1,onClickEvent:null,passenger:{},propComment:"排序号",propName:"orderno",propType:"Integer",textFormatter:"integer",valueMaxLength:"4",valueMinLength:"4",model:"vo.orderno",option:[]},vo:e.vo,"can-edit":e.canEdit}})],1)]),0!=e.vo.accessRights?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[1===e.vo.accessRights?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectGroup",expression:"'selectGroup'"}],attrs:{moduleCode:"components"}},[e._v("选择群组")]):e._e(),2===e.vo.accessRights?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectDepart",expression:"'selectDepart'"}],attrs:{moduleCode:"components"}},[e._v("选择部门")]):e._e(),3===e.vo.accessRights?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectPerson",expression:"'selectPerson'"}],attrs:{moduleCode:"components"}},[e._v("选择人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:1===e.vo.accessRights,expression:"vo.accessRights === 1"},{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{placeholder:e.$tx("gwgl.components.GroupPlaceholder","请选择群组"),readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.deptNames,callback:function(t){e.$set(e.vo,"deptNames",t)},expression:"vo.deptNames"}}),t("el-input",{directives:[{name:"show",rawName:"v-show",value:2===e.vo.accessRights,expression:"vo.accessRights === 2"},{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{placeholder:e.$tx("gwgl.components.DepartPlaceholder","请选择部门"),"org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.deptNames,callback:function(t){e.$set(e.vo,"deptNames",t)},expression:"vo.deptNames"}}),t("el-input",{directives:[{name:"show",rawName:"v-show",value:3===e.vo.accessRights,expression:"vo.accessRights === 3"},{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{placeholder:e.$tx("gwgl.components.PersonPlaceholder","请选择人员"),readonly:"readonly",multiple:"true",type:"textarea",name:"deptIds","root-org-code":e.vo.orgCode},model:{value:e.vo.deptNames,callback:function(t){e.$set(e.vo,"deptNames",t)},expression:"vo.deptNames"}})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}]},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw83"},[t("el-radio-group",{model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"effective",expression:"'effective'"}],attrs:{label:1}},[e._v("有效")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"invalid",expression:"'invalid'"}],attrs:{label:0}},[e._v("无效")])],1)],1)])])])])])])},Wo=[],Go={components:{},props:{vo:{type:Object,default:function(){return{}}},changAccessRights:{type:Function,default:null},treeData:{type:Array,default:function(){return[]}}},data:function(){return{i18npkg:"gwgl",moduleCode:"setting"}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{getNamehandler:function(e){var t=this.treeData.filter((function(t){return t.id===e}));return t.length>0?t[0].categoryName:"归档文件"},changHandler:function(e){this.vo.deptIds="",this.vo.deptNames="",this.changAccessRights&&this.changAccessRights(e)},onSelectSuborgCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptNames",n)},onSelectWorkgroupCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptNames",n)},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(r+="、"),""!==n&&(n+="、"),n+=e.name,r+=e.personId})),this.$set(this.vo,"deptNames",n),this.$set(this.vo,"deptIds",r)}}},Bo=Go,Uo=m(Bo,Ro,Wo,!1,null,"80bceea4",null),qo=Uo.exports,Vo={components:{typeForm:qo},props:{},data:function(){return{i18npkg:"gwgl",busiformBtns:[{id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:this.closeDialog,btnPermission:"",btnType:""},{id:"btn_save",btnName:"保 存",btnIcon:"check",btnClick:this.submitBusiform,btnPermission:"saveObject",btnType:"primary"}],formTitle:this.$tx("gwgl.setting.formTitle","归档分类设置"),activeText:"",activedeptIds:"",vo:{},chooseId:"",categoryFullId:"",categoryFullName:"",moduleInfo:{moduleCode:"gdflsz",addNewUrl:"gwgl/gdflsz/addNew",insertUrl:"gwgl/gdflsz/insert",getByIdUrl:"gwgl/gdflsz/getById",updateUrl:"gwgl/gdflsz/update",delUrl:"gwgl/gdflsz/delete",winWidth:900,winHeight:600,id:null},treeData:[],root:null,sysNode:null,showInfoView:!1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1),this.root={id:"0",name:"归档文件",categoryName:"归档文件",open:!0,title:"归档文件"},this.queryData()},mounted:function(){},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},methods:{submitBusiform:function(){var e=this,t=this,n=this.$refs.typeForm.vo;this.$refs.typeForm.formValidate((function(){if(n.categoryName)if(n.orderno)if(isNaN(n.orderno))t.$alert(t.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else if(4===(n.orderno+"").length){e.$refs.typeForm.vo.parentId=e.chooseId;var r=JSON.parse(JSON.stringify(e.$refs.typeForm.vo));e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:r,url:e.moduleInfo.insertUrl}).then((function(t){"success"===t.code?(e.$message({message:t.message,type:"success"}),e.closeDialog(),e.refreshTreeData()):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))}else t.$alert(t.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(t.$tx("gwgl.messages.sortNumberEmptyMessage","请输入四位数的排序号"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(t.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称"),t.$tx("common.operationTip","操作提示"),{type:"warning"})}))},closeDialog:function(){this.$refs.basicForm.dialogFormVisible=!1,this.$refs.basicForm.moduleInfo={},this.$refs.basicForm.vo={}},changAccessRights:function(e){e===this.activeId&&(this.vo.deptIds=this.activedeptIds,this.vo.deptNames=this.activeText)},updateObject:function(){var e=this;e.$refs.typeForm1.formValidate((function(){e.vo.categoryName?e.vo.orderno?isNaN(e.vo.orderno)?e.$alert(e.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),e.$tx("common.operationTip","操作提示"),{type:"warning"}):4===(e.vo.orderno+"").length?e.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",data:e.vo,url:"/gwgl/gdflsz/update"}).then((function(t){"success"===t.code?(e.$message({message:t.message,type:"success"}),e.refreshTreeData()):e.$message.error(t.message)})):e.$alert(e.$tx("gwgl.messages.truelyPhone","请输入正确的四位数排序号"),e.$tx("common.operationTip","操作提示"),{type:"warning"}):e.$alert(e.$tx("gwgl.messages.sortNumberEmptyMessage","请输入四位数的排序号"),e.$tx("common.operationTip","操作提示"),{type:"warning"}):e.$alert(e.$tx("gwgl.gwjh.typeNamePlaceholder","请输入分类名称"),e.$tx("common.operationTip","操作提示"),{type:"warning"})}))},addMenu:function(e,t){var n=this;this.sysNode=t,this.chooseId=t.id,this.categoryFullId=null===t.categoryFullId||""===t.categoryFullId||void 0===t.categoryFullId?t.id:t.categoryFullId,this.categoryFullName=null===t.categoryFullName||""===t.categoryFullName||void 0===t.categoryFullName?t.categoryName:t.categoryFullName+"-"+t.categoryName,this.$nextTick((function(){n.addObject(t)}))},addObject:function(e){var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?parentId=",null===e?this.moduleInfo.addNewUrl=t:(this.moduleInfo.addNewUrl=t+e.id,this.moduleInfo.id=e.id),this.$bus.emit("openBusiform",this.moduleInfo,null,1)},deleteObject:function(e){var t=this,n=this.$tx("gwgl.gwjh.confirmDel",{val:e.categoryName},"确认删除".concat(e.categoryName,"吗?"));this.$confirm(n,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(e){"success"===e.code?(t.sysNode=null,t.refreshTreeData(),t.$message.success(e.message)):t.$alert(e.message,{type:"error"})}))})).catch((function(){}))},refreshTreeData:function(){this.chooseId="",this.categoryFullId="",this.categoryFullName="",this.queryData()},queryData:function(){var e=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"categoryLevel asc,orderno asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:"/gwgl/gdflsz/querydata"}).then((function(t){"success"===t.code?e.treeData=e.treeDataAdapter([e.root].concat(t.body.listdata)):e.$alert(t.message,e.$tx("common.operationTip","操作提示"),{type:"error"})}))},treeDataAdapter:function(e){return e.forEach((function(e){null===e.parentId||""===e.parentId||void 0===e.parentId?e.pId="0":e.pId=e.parentId,e.name=e.categoryName,e.title=e.categoryName,e.open=!0})),e},onTreeCreated:function(e){this.zTree=e;var t=e.getNodes();t.length>0&&(null===this.sysNode?(this.onTreeNodeClick("",t[0].id,t[0]),e.selectNode(t[0])):(this.onTreeNodeClick("",this.sysNode.id,this.sysNode),e.selectNode(this.sysNode)))},onTreeNodeClick:function(e,t,n){var r=this;this.sysNode=n,"归档文件"===n.name?this.showInfoView=!1:this.showInfoView=!0,this.$nextTick((function(e){r.getExpenseType(n)}))},getExpenseType:function(e){this.vo=e,this.chooseId=this.vo.id,this.categoryFullId=null===this.vo.categoryFullId||""===this.vo.categoryFullId||void 0===this.vo.categoryFullId?this.vo.id:this.vo.categoryFullId,this.categoryFullName=null===this.vo.categoryFullName||""===this.vo.categoryFullName||void 0===this.vo.categoryFullName?this.vo.categoryName:this.vo.categoryFullName+"-"+this.vo.categoryName,0!==this.vo.accessRights&&(this.activeId=this.vo.accessRights,this.activeText=this.vo.deptNames,this.activedeptIds=this.vo.deptIds)},onBasicFormBeforeOpen:function(e,t,n){t.categoryFullName=this.categoryFullName,t.categoryFullId=""===this.categoryFullId?t.id:this.categoryFullId+"-"+t.id,t.status=null===t.status?1:t.status,t.accessRights=null===t.accessRights?0:t.accessRights,t.categoryLevel=null===this.vo.categoryLevel||void 0===this.vo.categoryLevel?1:Number(this.vo.categoryLevel)+1,t.parentId=this.moduleInfo.id,n.resolve(!0)},onBasicFormOpened:function(e,t){$(".sel-icon .el-radio-button__orig-radio:checked").next(".el-radio-button__inner").css("background-color",t.iconColor)},onBasicFormBeforeSubmit:function(e,t,n){console.log(e,t,n)},onBasicFormSubmited:function(e,t){console.log(e,t)}}},Jo=Vo,Ko=(n(6272),m(Jo,Io,zo,!1,null,"3f95727c",null)),Qo=Ko.exports,Zo=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"gdgz"},[t("PageContent",{attrs:{title:e.$tx("gwgl.setting.gdgzTitle","自动归档规则设置")}},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body el-table__body-top el-table__body_no",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"autoToArch",expression:"'autoToArch'"}]},[e._v("自动归档")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{model:{value:e.vo.autoToArch,callback:function(t){e.$set(e.vo,"autoToArch",t)},expression:"vo.autoToArch"}},[t("el-radio",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"open",expression:"'open'"}],attrs:{label:"1"}},[e._v("开 启")]),t("el-radio",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],attrs:{label:"0"}},[e._v("关 闭")])],1)],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"archiveFileType",expression:"'archiveFileType'"}]},[e._v("归档文件类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"归档文件类型",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-checkbox-group",{attrs:{name:"fileType"},model:{value:e.fileType,callback:function(t){e.fileType=t},expression:"fileType"}},e._l(e.fileTypeList,(function(n,r){return t("el-checkbox",{key:r,attrs:{label:n}},[e._v(e._s(n))])})),1)],1)]}}])})],1)]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"completedDocuments",expression:"'completedDocuments'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{rowspan:"2"}},[e._v("已办结文件")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"afterCompletion",expression:"'afterCompletion'"}],staticClass:"td-lable"},[e._v("办结后")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"doneRetainDay"},model:{value:e.vo.doneRetainDay,callback:function(t){e.$set(e.vo,"doneRetainDay",t)},expression:"vo.doneRetainDay"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayFile",expression:"'dayFile'"}],staticClass:"td-lable"},[e._v("天归档")])],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"noCompletedDocuments",expression:"'noCompletedDocuments'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{rowspan:"2"}},[e._v("未办结文件")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"forCreate",expression:"'forCreate'"}],staticClass:"td-lable"},[e._v("自创建起")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"todoRetainDay"},model:{value:e.vo.todoRetainDay,callback:function(t){e.$set(e.vo,"todoRetainDay",t)},expression:"vo.todoRetainDay"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayFile",expression:"'dayFile'"}],staticClass:"td-lable"},[e._v("天归档")])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"afterFile",expression:"'afterFile'"}],staticClass:"td-lable"},[e._v("归档后")]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"doneRetainDayDel"},model:{value:e.vo.doneRetainDayDel,callback:function(t){e.$set(e.vo,"doneRetainDayDel",t)},expression:"vo.doneRetainDayDel"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayDel",expression:"'dayDel'"}],staticClass:"td-lable"},[e._v("天删除")])],1),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("span",{staticClass:"td-lable"},[e._v(e._s(e.$tx("gwgl.setting.afterFile")))]),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:0"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{staticStyle:{width:"120px"},attrs:{name:"todoRetainDayDel"},model:{value:e.vo.todoRetainDayDel,callback:function(t){e.$set(e.vo,"todoRetainDayDel",t)},expression:"vo.todoRetainDayDel"}})],1)]}}])}),e._v(" "),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"dayDel",expression:"'dayDel'"}],staticClass:"td-lable"},[e._v("天删除")])],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e._v(e._s(e.$tx("gwgl.components.fileAccessPermission")))]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{model:{value:e.vo.accessRightsType,callback:function(t){e.$set(e.vo,"accessRightsType",t)},expression:"vo.accessRightsType"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"allPersonnel",expression:"'allPersonnel'"}],attrs:{label:0,"module-code":"components"}},[e._v("全体人员可阅")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"originalHandler",expression:"'originalHandler'"}],attrs:{label:1,"module-code":"components"}},[e._v("原经办人可阅")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"handlerDesignated",expression:"'handlerDesignated'"}],attrs:{label:2,"module-code":"components"}},[e._v("原经办人+指定人可阅")])],1)],1)]),2===e.vo.accessRightsType?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"appoints",expression:"'appoints'"}],staticClass:"el-table__cell tdlbl tdw17",attrs:{moduleCode:"components"}},[e._v("指定类型")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{on:{change:e.changAppoints},model:{value:e.vo.appoints,callback:function(t){e.$set(e.vo,"appoints",t)},expression:"vo.appoints"}},[t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyGroup",expression:"'specifyGroup'"}],attrs:{label:"1","module-code":"components"}},[e._v("指定群组")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyDepart",expression:"'specifyDepart'"}],attrs:{label:"2","module-code":"components"}},[e._v("指定部门")]),t("el-radio",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"specifyPerson",expression:"'specifyPerson'"}],attrs:{label:"3","module-code":"components"}},[e._v("指定人员")])],1)],1)]):e._e(),2===e.vo.accessRightsType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),"1"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectGroup",expression:"'selectGroup'"}],attrs:{moduleCode:"components"}},[e._v("选择群组")]):e._e(),"2"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectDepart",expression:"'selectDepart'"}],attrs:{moduleCode:"components"}},[e._v("选择部门")]):e._e(),"3"===e.vo.appoints?t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectPerson",expression:"'selectPerson'"}],attrs:{moduleCode:"components"}},[e._v("选择人员")]):e._e()]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.errorName(e.vo.appoints),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"1"===e.vo.appoints,expression:"vo.appoints === '1'"},{name:"select-dialog",rawName:"v-select-dialog",value:"workgroup",expression:"'workgroup'"}],attrs:{readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds2"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3325374032)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.errorName(e.vo.appoints),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"2"===e.vo.appoints,expression:"vo.appoints === '2'"},{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{"org-level":"2",readonly:"readonly",multiple:"true",type:"textarea","root-org-code":e.vo.orgCode,name:"deptIds"},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3183607047)}),t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.errorName(e.vo.appoints),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"show",rawName:"v-show",value:"3"===e.vo.appoints,expression:"vo.appoints === '3'"},{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{readonly:"readonly",multiple:"true",type:"textarea",name:"deptIds","root-org-code":e.vo.orgCode},model:{value:e.vo.deptOrName,callback:function(t){e.$set(e.vo,"deptOrName",t)},expression:"vo.deptOrName"}})],1)]}}],null,!1,3921191426)})],1)]):e._e()])])])])])],1),t("PageContent",{attrs:{title:e.$tx("gwgl.setting.gdgzTitle2","自动/手动归档提醒设置")}},[t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"reminderMethod",expression:"'reminderMethod'"}]},[e._v("提醒方式")])]),t("td",{staticClass:"el-table__cell tdcont",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"提醒方式",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-checkbox-group",{model:{value:e.remindType,callback:function(t){e.remindType=t},expression:"remindType"}},[t("el-checkbox",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"textMessage",expression:"'textMessage'"}],attrs:{label:"0","module-code":"gwjh"}},[e._v("短信")]),t("el-checkbox",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"email",expression:"'email'"}],attrs:{label:"3"}},[e._v("邮件")])],1)],1)]}}])})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"remindPersonName",expression:"'remindPersonName'"}]},[e._v("短信接收人员")])]),t("td",{staticClass:"el-table__cell tdcont",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"人员",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==r[0]},attrs:{disabled:void 0===r[0],content:r[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{readonly:"readonly",multiple:"true",type:"textarea",name:"remindPersonName"},model:{value:e.vo.remindPersonName,callback:function(t){e.$set(e.vo,"remindPersonName",t)},expression:"vo.remindPersonName"}})],1)]}}])})],1)])])])])])]),t("div",{staticStyle:{height:"100px"},attrs:{slot:"footer"},slot:"footer"},[t("div",{staticStyle:{"margin-bottom":"10px","font-size":"var(--portalFontSize13)"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"footerText",expression:"'footerText'"}],staticStyle:{color:"red"}},[e._v("注:天数为0,则不进行自动归档")]),t("div",[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"save",expression:"'save'"}],attrs:{plain:"",icon:"el-icon-check"},on:{click:e.submitRule}},[e._v("保 存")])],1)])])],1)],1)},Xo=[];function ei(e){return ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(e)}function ti(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ti=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==ei(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(ei(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function ni(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ri(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ni(o,r,a,i,s,"next",e)}function s(e){ni(o,r,a,i,s,"throw",e)}i(void 0)}))}}var ai={components:{},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"setting",show:!1,formtype:"",loginUser:this.$store.getters.loginUser,fileType:[],remindType:[],activeId:null,activeText:"",activedeptIds:"",vo:{accessRightsType:0,appoints:"1",autoRemind:0,autoToArch:"0",deptIds:"",deptOrName:"",doneRetainDay:0,doneRetainDayDel:0,todoRetainDay:0,todoRetainDayDel:0,fileType:"",id:"",orgCode:"",orgName:"",passenger:{},remindPersonName:"",remindPersonid:"",remindScope:0,remindType:[]},fileTypeList:[this.$tx("gwgl.portlet.unitDocument","单位发文"),this.$tx("gwgl.portlet.readingOffice","收文阅办"),this.$tx("gwgl.portlet.receiptDocuments","部门收文"),this.$tx("gwgl.portlet.departmentalLetter","部门便函"),this.$tx("gwgl.portlet.solicitationOpinions","意见征集"),this.$tx("gwgl.portlet.requestInstructions","请示报告"),this.$tx("gwgl.portlet.documentCirculation","文件传阅")]}},computed:{},watch:{},created:function(){self.$bus.emit("showNavSearch",!1),this.querydata(),this.getFileTypeList()},mounted:function(){},beforeDestroy:function(){self.$bus.emit("showNavSearch",!0)},methods:{getFileTypeList:function(){var e=this;this.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"/gwgl/gdwj/getFileTypeList"}).then((function(t){"success"===t.code&&(e.fileTypeList=t.body.fileTypeList)}))},errorName:function(e){var t="";return"1"===e&&(t=this.$tx("gwgl.setting.group","群组")),"2"===e&&(t=this.$tx("gwgl.setting.depart","部门")),"3"===e&&(t=this.$tx("gwgl.setting.person","人员")),t},changAppoints:function(e){this.vo.deptIds="",this.vo.deptOrName="",e===this.activeId&&(this.vo.deptIds=this.activedeptIds,this.vo.deptOrName=this.activeText)},onSelectSuborgCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectWorkgroupCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(n+="、"),""!==n&&(r+="、"),n+=e.name,r+=e.id})),this.$set(this.vo,"deptIds",r),this.$set(this.vo,"deptOrName",n)},onSelectStaffCompleted:function(e,t){var n="",r="";e.forEach((function(e){""!==n&&(r+="、"),""!==n&&(n+="、"),n+=e.name,r+=e.personId})),"remindPersonName"===t.name?(this.vo.remindPersonid="",this.vo.remindPersonName="",this.$set(this.vo,"remindPersonName",n),this.$set(this.vo,"remindPersonid",r)):"deptIds"===t.name&&(this.$set(this.vo,"deptOrName",n),this.$set(this.vo,"deptIds",r))},querydata:function(){var e=this;return ri(ti().mark((function t(){var n,r;return ti().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=[{compare:"=",field:"orgCode",merge:!0,value:e.loginUser.orgCode}],t.next=3,e.$app.querydata("/gwgl/gdgz/querydata",n);case 3:r=t.sent,"success"===r.code?(r.body.listdata.length>0?(e.formtype="updata",e.vo=r.body.listdata[0],e.fileType=e.vo.fileType.split(","),e.remindType=e.vo.remindType.split(","),"1"===e.vo.appoints&&"2"===e.vo.appoints&&"3"===e.vo.appoints||(e.vo.appoints="1"),2===e.vo.accessRightsType&&(e.activeId=e.vo.appoints,e.activeText=e.vo.deptOrName,e.activedeptIds=e.vo.deptIds)):e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:n,url:"/gwgl/gdgz/addNew"}).then((function(t){"success"===t.code&&(e.formtype="addnew",e.vo.id=t.body.vo.id,e.vo.orgCode=t.body.vo.orgCode,e.vo.orgName=t.body.vo.orgName)})),e.show=!0):(e.show=!0,e.$message.error(r.message));case 5:case"end":return t.stop()}}),t)})))()},submitRule:function(){var e=this;this.formValidate((function(){e.remindType=e.remindType.filter((function(e){return e})),e.vo.remindType=e.remindType.join(),e.fileType=e.fileType.filter((function(e){return e})),e.vo.fileType=e.fileType.join();var t={};"updata"===e.formtype?(t.method="PUT",t.url="/gwgl/gdgz/update"):"addnew"===e.formtype&&(t.method="POST",t.url="/gwgl/gdgz/insert"),0!==e.fileType.length?0!==e.remindType.length?0!==e.vo.remindPersonName.length?e.$http({method:t.method,contentType:"application/x-www-form-urlencoded",data:e.vo,url:t.url}).then((function(t){"success"===t.code?e.$message({message:t.message,type:"success"}):e.$message.error(t.message)})):e.$alert(e.$tx("gwgl.messages.submitAlert3","请选择短信接收人员"),e.$tx("gwgl.messages.submitAlertTip","温馨提示"),{confirmButtonText:e.$tx("pageBtns.sure","确 定")}):e.$alert(e.$tx("gwgl.messages.submitAlert2","请选择提醒方式"),e.$tx("gwgl.messages.submitAlertTip","温馨提示"),{confirmButtonText:e.$tx("pageBtns.sure","确 定")}):e.$alert(e.$tx("gwgl.messages.submitAlert","请选择归档文件类型"),e.$tx("gwgl.messages.submitAlertTip","温馨提示"),{confirmButtonText:e.$tx("pageBtns.sure","确 定")})}))}}},oi=ai,ii=(n(5222),m(oi,Zo,Xo,!1,null,"2c30e9dc",null)),si=ii.exports,li=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.searchTab.length>0?t("div",{staticClass:"tabbar"},[t("el-radio-group",{attrs:{size:"small"},model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.searchTab,(function(n,r){return t("el-radio-button",{key:r,attrs:{label:n.type}},[t("div",{staticClass:"tabbartext",on:{click:function(t){return e.tabClickHandler(n)}}},[e._v(e._s(n.title))])])})),1)],1):e._e(),t("div",{staticClass:"search-box"},[t("DepTime",{attrs:{"dept-id":e.selectDept,"select-type":e.selectType,datearr:e.chooseDate,"report-type":e.reportType,"search-type":e.searchType},on:{changeTypeData:e.changeTypeData,dateInit:e.dateInit,changeDeptData:e.changeDeptData}}),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"tj",expression:"'tj'"}],staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.getReportList}},[e._v("统计")])],1),t("div",{staticClass:"statistics_title",staticStyle:{margin:"20px 0px 10px"}},[e._v(e._s(e.title))]),t("div",{staticClass:"echart-box"},[e.loading?e._e():t("bar",{attrs:{"name-max-length":7,left:"2%",right:"5%","x-label-rotate":30,"echarts-click":e.echartsClick,"tooltip-format":e.tooltipFormat,"x-unit":e.xUnit,"y-unit":e.yUnit,"chart-type":e.chartType,"is-legend":!0,color:e.color,"x-data":e.xdata,"y-data":e.ydata,"toolbox-show":!0,"toolbox-orient":"horizontal"}})],1),t("div",{staticClass:"table-box"},[e.loading?e._e():t("dataTable",{attrs:{"row-click-handler":e.rowClickHandler,"is-download":!0,"list-tb":e.listTb,"list-data":e.listData,"choose-date":e.chooseDate,"file-name":e.title}})],1)])},di=[],ci=function(){var e=this,t=e._self._c;return t("div",{staticClass:"top-line"},[1===e.searchType&&"nw"===e.reportType||2===e.searchType&&"bwxl"===e.reportType||2===e.searchType&&"cql"===e.reportType?t("div",[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"selectDepart",expression:"'selectDepart'"}],staticClass:"label"},[e._v("选择部门:")]),t("el-select",{attrs:{placeholder:e.$tx("gwgl.tjbg.pleaseSelect","请选择")},on:{change:e.changeDept},model:{value:e.deptId,callback:function(t){e.deptId=t},expression:"deptId"}},e._l(e.dept,(function(e,n){return t("el-option",{key:n,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),1!==e.searchType||"nw"!==e.reportType?t("div",[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileType",expression:"'fileType'"}],staticClass:"label"},[e._v("文件类型:")]),t("el-select",{attrs:{placeholder:e.$tx("gwgl.tjbg.pleaseSelect","请选择")},on:{change:e.changeType},model:{value:e.selectType,callback:function(t){e.selectType=t},expression:"selectType"}},e._l(e.fileList,(function(e,n){return t("el-option",{key:n,attrs:{label:e.title,value:e.id}})})),1)],1):e._e(),t("div",[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"tjzq",expression:"'tjzq'"}],staticClass:"label"},[e._v("统计周期:")]),"nw"!==e.reportType&&"bw"!==e.reportType||2!==e.searchType?t("el-date-picker",{staticStyle:{width:"280px"},attrs:{type:"daterange","range-separator":e.$tx("common.to","至"),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":e.$tx("gwgl.tjbg.startDate","开始日期"),"end-placeholder":e.$tx("gwgl.tjbg.endDate","结束日期")},on:{change:e.changeTime},model:{value:e.datearr,callback:function(t){e.datearr=t},expression:"datearr"}}):t("el-date-picker",{staticStyle:{width:"280px"},attrs:{type:"monthrange","range-separator":e.$tx("common.to","至"),format:"yyyy-MM","value-format":"yyyy-MM","start-placeholder":e.$tx("gwgl.tjbg.startMonth","开始月份"),"end-placeholder":e.$tx("gwgl.tjbg.endMonth","结束月份")},on:{change:e.changeTime},model:{value:e.datearr,callback:function(t){e.datearr=t},expression:"datearr"}})],1)])},ui=[],pi={components:{},props:{reportType:{type:String,default:function(){return""}},deptId:{type:String,default:function(){return""}},selectType:{type:String,default:function(){return""}},searchType:{type:Number,default:function(){return 1}},datearr:{type:Array,default:function(){return[]}}},data:function(){return{loginUser:this.$store.getters.loginUser,selectDept:"",chooseDate:[],fileList:[{title:this.$tx("gwgl.portlet.all","全部"),id:""},{title:this.$tx("gwgl.portlet.unitDocument","单位发文"),id:this.$tx("gwgl.portlet.unitDocument","单位发文")},{title:this.$tx("gwgl.portlet.readingOffice","收文阅办"),id:this.$tx("gwgl.portlet.readingOffice","收文阅办")},{title:this.$tx("gwgl.portlet.receiptDocuments","部门收文"),id:this.$tx("gwgl.portlet.receiptDocuments","部门收文")},{title:this.$tx("gwgl.portlet.documentCirculation","文件传阅"),id:this.$tx("gwgl.portlet.documentCirculation","文件传阅")},{title:this.$tx("gwgl.portlet.departmentalLetter","部门便函"),id:this.$tx("gwgl.portlet.departmentalLetter","部门便函")},{title:this.$tx("gwgl.portlet.solicitationOpinions","意见征集"),id:this.$tx("gwgl.portlet.solicitationOpinions","意见征集")},{title:this.$tx("gwgl.portlet.requestInstructions","请示报告"),id:this.$tx("gwgl.portlet.requestInstructions","请示报告")}],dept:[],startT:"",endT:""}},computed:{},watch:{searchType:function(){this.selectDept="",this.selectType=""}},created:function(){this.getdept()},mounted:function(){},methods:{changeDept:function(e){var t="";this.dept.forEach((function(n){n.id===e&&(t=n.name)})),this.selectDept=this.deptId,this.$emit("changeDeptData",{selectDept:this.selectDept,deptName:t})},changeType:function(){this.$emit("changeTypeData",this.selectType)},changeTime:function(){this.chooseDate=this.datearr,this.$emit("dateInit",this.chooseDate)},getdept:function(){var e=this;this.$http({url:"base/organMgr/findAllOrganByOrgCode",method:"GET",contentType:"application/x-www-form-urlencoded",params:{orgCode:this.loginUser.orgCode,subOrgLevel:2}}).then((function(t){if("success"===t.code){var n=t.body.listdata.filter((function(e){return 2===e.orgLevel}));n.unshift({name:e.$tx("gwgl.tjbg.allDepart","所有部门"),id:""}),e.dept=n}else e.$message.error(t.message)}))}}},mi=pi,fi=(n(3747),m(mi,ci,ui,!1,null,"39239143",null)),hi=fi.exports,gi=function(){var e=this,t=e._self._c;return t("div",[t("el-row",[t("el-col",{staticStyle:{"text-align":"right",height:"34px","margin-bottom":"10px"},attrs:{span:24}},[e.isDownload?t("el-button",{directives:[{name:"table-toxls",rawName:"v-table-toxls",value:e.views,expression:"views"}],attrs:{plain:"",size:"small","file-name":e.chooseDate[0]+e.$tx("gwgl.common.to","至")+e.chooseDate[1]+e.fileName}},[t("svg",e._g({staticClass:"svg-icon",attrs:{"aria-hidden":"true"}},e.$listeners),[t("use",{attrs:{"xlink:href":"#icon-export"}})]),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"export",expression:"'export'"}]},[e._v("导出")])]):e._e()],1)],1),t("div",{staticClass:"teble-div"},[t("el-table",{staticStyle:{width:"100%"},attrs:{id:"views",data:e.listData,border:""},on:{"row-click":e.rowClickHandler}},[t("el-table-column",{attrs:{type:"index",label:e.$tx("fields.index","序号"),width:"45",align:"center"}}),e._l(e.listTb,(function(e,n){return t("el-table-column",{key:n,attrs:{prop:e.prop,label:e.title,align:e.align?e.align:"center","show-overflow-tooltip":!0}})}))],2)],1)],1)},yi=[],_i={components:{},props:{listTb:{type:Array,default:function(){return[]}},listData:{type:Array,default:function(){return[]}},fileName:{type:String,default:function(){return""}},isDownload:{type:Boolean,default:function(){return!0}},rowClickHandler:{type:Function,default:null},chooseDate:{type:Array,default:function(){return["",""]}}},data:function(){return{lm:this.$route.meta}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{}},vi=_i,bi=(n(9108),m(vi,gi,yi,!1,null,"72227ab2",null)),wi=bi.exports;function Mi(e){return Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(e)}function Li(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Li=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:D(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function y(){}function _(){}function v(){}var b={};d(b,i,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(C([])));M&&M!==n&&r.call(M,i)&&(b=M);var L=v.prototype=y.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Mi(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){d.value=e,i(d)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function D(t,n,r){var a=p;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=f;var d=u(t,n,r);if("normal"===d.type){if(a=r.done?h:m,d.arg===g)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a=h,r.method="throw",r.arg=d.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=u(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Mi(t)+" is not iterable")}return _.prototype=v,a(L,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:_,configurable:!0}),_.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},T(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(L),d(L,l,"Generator"),d(L,i,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),d=r.call(i,"finallyLoc");if(l&&d){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Y(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;Y(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Ti(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ti(o,r,a,i,s,"next",e)}function s(e){Ti(o,r,a,i,s,"throw",e)}i(void 0)}))}}var Di=n(5093),ki={components:{DepTime:hi,dataTable:wi},props:{},data:function(){return{i18npkg:"gwgl",moduleCode:"tjbg",titleList:{nw:{text:this.$tx("gwgl.tjbg.essayWritingNum","拟文数量统计"),url:"/platStatistics/doneAndtodo/startingStatistics",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byType","按类型"),xUnit:{name:this.$tx("gwgl.tjbg.fileType2","文件类型"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.qwNum","起文数量(个)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.gdgl.fileType2","文件类型"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.qwNum2","起文数量(个)"),prop:"num"}]},{type:2,title:this.$tx("gwgl.tjbg.byTime","按时间"),xUnit:{name:this.$tx("gwgl.tjbg.month","月份"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.qwNum","起文数量(个)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"line",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.month","月份"),prop:"createDate",align:"left"},{title:this.$tx("gwgl.tjbg.qwNum2","起文数量"),prop:"num"}]}]},bw:{text:this.$tx("gwgl.tjbg.officeDocumentNum","办文次数统计"),url:"/platStatistics/doneAndtodo/statisticsOnTheNumberOfDocuments",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byDepart","按部门"),xUnit:{name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.officeDocumentNum1","办文次数(次)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.bwNum","办文次数"),prop:"num"}]},{type:2,title:this.$tx("gwgl.tjbg.byTime","按时间"),xUnit:{name:this.$tx("gwgl.tjbg.month","月份"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.officeDocumentNum1","办文次数(次)"),align:"end",size:"12",minInterval:1,lineColor:"#000"},chartType:[{type:"line",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.month","月份"),prop:"createDate",align:"left"},{title:this.$tx("gwgl.tjbg.bwNum","办文次数"),prop:"num"}]}]},bwxl:{text:this.$tx("gwgl.tjbg.officeDocumentXlNum"),url:"/platStatistics/doneAndtodo/handlingEfficiencyStatistics",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byDepart","按部门"),xUnit:{name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgBwTime2","平均办文时长(小时)"),minInterval:1,align:"end",size:"12",position:"left",lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgBwTime","平均办文时长"),prop:"avgMinute"}]},{type:2,title:this.$tx("gwgl.tjbg.byPerson","按人员"),xUnit:{name:this.$tx("gwgl.tjbg.name","姓名"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgBwTime2","平均办文时长(小时)"),minInterval:1,align:"end",size:"12",position:"left",lineColor:"#000"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.name","姓名"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgBwTime","平均办文时长"),prop:"avgMinute"}]}]},thl:{text:this.$tx("gwgl.tjbg.officeDocumentHtNum"),url:"/platStatistics/doneAndtodo/returnRateStatistics",searchTab:[]},cql:{text:this.$tx("gwgl.tjbg.officeDocumentCqlNum"),url:"/platStatistics/doneAndtodo/statisticsOfOverdueRate",searchTab:[{type:1,title:this.$tx("gwgl.tjbg.byDepart","按部门"),xUnit:{name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgCql2","平均超期率(%)"),align:"end",size:"12",position:"left",lineColor:"#000",labelFormatter:"{value}%"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgCql","平均超期率"),prop:"lv"}]},{type:2,title:this.$tx("gwgl.tjbg.byPerson","按人员"),xUnit:{name:this.$tx("gwgl.tjbg.name","姓名"),align:"end",size:"12"},yUnit:{name:this.$tx("gwgl.tjbg.avgCql2","平均超期率(%)"),align:"end",size:"12",position:"left",lineColor:"#000",labelFormatter:"{value}%"},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],td:[{title:this.$tx("gwgl.tjbg.name","姓名"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgCql","平均超期率"),prop:"lv"}]}]}},chartType:[{type:"bar",yAxisIndex:0,symbol:""}],color:["#48c9b3","#f7a35c"],xUnit:{name:"",align:"end",size:"12"},yUnit:{name:"",align:"end",size:"12",lineColor:"#000"},reportType:"nw",title:this.$tx("gwgl.tjbg.essayWritingNum","拟文数量统计"),searchTab:[],searchType:1,url:"",selectDept:"",chooseDate:[],selectType:"",listTb:[],listData:[],xdata:[],ydata:[],loading:!1,tooltipFormat:null,deptName:"所有部门"}},computed:{},watch:{searchType:function(e){this.title=this.titleList[this.reportType].text,"nw"!==this.reportType&&"bw"!==this.reportType||2!==e?this.initDate("day"):this.initDate("month"),"bwxl"!==this.reportType&&"cql"!==this.reportType||2!==this.searchType?(this.selectDept="",this.selectType="",this.deptName=this.$tx("gwgl.tjbg.allDepart","所有部门")):this.listTb[0].title=this.$tx("gwgl.tjbg.name","姓名"),this.getReportList()}},created:function(){this.$options.components["bar"]=this.$loadComponent("@/wapp/common/components/Echarts/src/EchartColumnar"),this.$bus.emit("showNavSearch",!1),this.reportType=this.$route.meta.params?this.$route.meta.params:"nw",this.title=this.titleList[this.reportType].text,this.searchTab=this.titleList[this.reportType].searchTab,this.url=this.titleList[this.reportType].url,"thl"===this.reportType?(this.xUnit={name:this.$tx("gwgl.components.fields.deptName","部门名称"),align:"end",size:"12"},this.yUnit={name:this.$tx("gwgl.tjbg.avgThl2","平均退回率(%)"),align:"end",size:"12",position:"left",lineColor:"#000",labelFormatter:"{value}%"},this.listTb=[{title:this.$tx("gwgl.components.fields.deptName","部门名称"),prop:"name",align:"left"},{title:this.$tx("gwgl.tjbg.avgThl","平均退回率:"),prop:"lv"}]):(this.xUnit=this.titleList[this.reportType].searchTab[0].xUnit,this.yUnit=this.titleList[this.reportType].searchTab[0].yUnit,this.listTb=this.titleList[this.reportType].searchTab[0].td),this.initDate("day"),this.getReportList()},mounted:function(){},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},methods:{echartsClick:function(){return!1},rowClickHandler:function(e,t,n){if("bwxl"!==this.reportType&&"cql"!==this.reportType||1!==this.searchType)return!1;""!==e.id&&void 0!==e.id&&(this.selectDept=e.id,this.searchType=2,this.deptName=e.name,this.xUnit={name:this.$tx("gwgl.tjbg.name","姓名"),align:"end",size:"12"},this.yUnit="bwxl"===this.reportType?{name:this.$tx("gwgl.tjbg.avgBwTime2","平均办文时长(小时)"),align:"end",size:"12",position:"left",lineColor:"#000"}:{name:this.$tx("gwgl.tjbg.avgBwTime3","超期率"),align:"center",size:"12",position:"left",lineColor:"#000"})},initDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1);if("day"===e)this.chooseDate=[Di().add(-30,"days").format("YYYY-MM-DD"),Di().format("YYYY-MM-DD")];else if("month"===e){var a=new Date(t.setMonth(r-12)).getFullYear(),o=new Date(t.setMonth(r-12)).getMonth()+1>=10?new Date(t.setMonth(r-12)).getMonth()+1:"0"+(new Date(t.setMonth(r-12)).getMonth()+1),i=a+"-"+o,s=n+"-"+r;this.chooseDate=[i,s]}},getReportList:function(){var e=this;return xi(Li().mark((function t(){var n,r,a;return Li().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n="",t.t0=e.selectType,t.next=""===t.t0?4:"单位发文"===t.t0?6:"部门收文"===t.t0?8:"收文阅办"===t.t0?10:"文件传阅"===t.t0?12:"部门便函"===t.t0?14:"意见征集"===t.t0?16:"请示报告"===t.t0?18:20;break;case 4:return n="fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg",t.abrupt("break",22);case 6:return n="fawen",t.abrupt("break",22);case 8:return n="shouwen",t.abrupt("break",22);case 10:return n="shouwen",t.abrupt("break",22);case 12:return n="wjcy",t.abrupt("break",22);case 14:return n="bmbh",t.abrupt("break",22);case 16:return n="yjzj",t.abrupt("break",22);case 18:return n="qsbg",t.abrupt("break",22);case 20:return n="fawen,shouwen,wjcy,bmbh,yjzj,hytz,qsbg",t.abrupt("break",22);case 22:return r={deptId:e.selectDept,endTime:e.chooseDate[1],startTime:e.chooseDate[0],type:e.searchType,fileName:e.selectType,module:n},e.loading=!0,e.listData=[],t.next=27,e.$app.listdata(e.url,r);case 27:a=t.sent,"success"===a.code&&e.mergeList(a.body.listdata),e.loading=!1;case 30:case"end":return t.stop()}}),t)})))()},mergeList:function(e){var t=this,n=this,r=[],a=[];e.forEach((function(e){"nw"!==t.reportType&&"bw"!==t.reportType||(1===t.searchType?(r.push(e.name),a.push(e.num)):2===t.searchType&&(r.push(e.createDate),a.push(e.num))),"bwxl"===t.reportType&&(r.push(e.name),a.push(JSON.parse(JSON.stringify(e.avgMinute))/60),e.avgMinute=t.mergeMinute(e.avgMinute)),"thl"!==t.reportType&&"cql"!==t.reportType||(r.push(e.name),a.push((100*e.lv).toFixed(2)),e.lv=(100*e.lv).toFixed(2)+"%")})),"thl"===this.reportType&&(this.tooltipFormat=function(e){return e[0].name+'</br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+e[0].color+';"></span>'+this.$tx("gwgl.tjbg.avgThl","平均退回率:")+e[0].data+"%"}),"cql"===this.reportType&&(this.tooltipFormat=function(e){return e[0].name+'</br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+e[0].color+';"></span>'+this.$tx("gwgl.tjbg.avgCql","平均超期率")+":"+e[0].data+"%"},2===this.searchType&&(this.title=this.deptName+this.$tx("gwgl.tjbg.title","-办文超期前十排名"))),"bwxl"===this.reportType&&(this.tooltipFormat=function(e){return e[0].name+'</br><span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+e[0].color+';"></span>'+this.$tx("gwgl.tjbg.avgBwTime","平均办文时长")+":"+n.mergeMinute(60*e[0].data)},2===this.searchType&&(this.title=this.deptName+this.$tx("gwgl.tjbg.title2","-办文效率后十名"))),this.xdata=r,this.ydata=[a],this.listData=e},mergeMinute:function(e){var t=60*e*1e3,n=Math.floor(t/864e5),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,i=Math.floor(o/6e4),s=o%6e4,l=Math.round(s/1e3),d="";return d+=0===n?0===a?0===i?this.$tx("gwgl.tjbg.mergeMinute",{s:l},"seconds + '秒'"):this.$tx("gwgl.tjbg.mergeMinute1",{m:i,s:l}," minutes + '分钟' + seconds + '秒'"):this.$tx("gwgl.tjbg.mergeMinute2",{h:a,m:i,s:l},"hours + '小时' + minutes + '分钟' + seconds + '秒'"):this.$tx("gwgl.tjbg.mergeMinute3",{d:n,h:a,m:i,s:l},"days + '天' + hours + '小时' + minutes + '分钟' + seconds + '秒'"),d},changeDeptData:function(e){this.selectDept=e.selectDept,this.deptName=e.deptName},dateInit:function(e){this.chooseDate=e},changeTypeData:function(e){this.selectType=e},tabClickHandler:function(e){this.searchType=e.type,this.chartType=e.chartType,this.xUnit=e.xUnit,this.yUnit=e.yUnit,this.listTb=e.td,this.selectType=""}}},Si=ki,Yi=(n(5880),m(Si,li,di,!1,null,"05c6b150",null)),ji=Yi.exports;function Ci(e){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(e)}function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach((function(t){Pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pi(e,t,n){return(t=Ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(e){var t=Hi(e,"string");return"symbol"==Ci(t)?t:t+""}function Hi(e,t){if("object"!=Ci(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fi={GwglFilingSystem:h,GwglFlowList:x,GwglTbColumns:ye,GwglZdzggToForm:Be,GwglModuleIndex:$e,GwglFileLevel:at,GwglGdgl:jt,GwglGwjh:sr,GwglGwjhReceiptFile:kn,GwglPortletBwsctj:Ra,GwglPortletBwsltj:ro,GwglPortletGwcx:fo,GwglPortletGwmb:To,GwglPortletOfficial:$o,GwglSettingGdgz:si,GwglSettingFlgl:Qo,GwglTjbg:ji,GwglFileForm:ht,GwglGwjhCommonGroupsIndex:Br,GwglGwjhOrgOrganizationIndex:ka,GwglInternalCommsInfo:Ze},Ai=function e(t){e.installed||(e.installed=!0,Object.keys(Fi).forEach((function(e){t.component(e,Fi[e])})))};"undefined"!==typeof window&&window.Vue&&Ai(window.Vue);var $i=n(4707),Ii=Ni(Ni({install:Ai},Fi),{},{$messages:$i}),zi=Ii}(),r}()}));
|