ecinc-cloud-mappaio 9.6.93 → 9.6.94
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/ecmappaio.umd.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ecmappaio"]=t(require("vue")):e["ecmappaio"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={5003:function(e,t){var n,a,o;(function(i,r){a=[],n=r,o="function"===typeof n?n.apply(t,a):n,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,a,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,r=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(p.stack)||r.exec(p.stack),l=s&&s[1]||!1,d=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,a=new RegExp("(?:[^\\n]+?\\n){0,"+(d-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(a,"$1").trim());for(var f=0;f<u.length;f++){if("interactive"===u[f].readyState)return u[f];if(u[f].src===l)return u[f];if(l===c&&u[f].innerHTML&&u[f].innerHTML.trim()===o)return u[f]}return null}}return e}))},1656:function(e,t,n){"use strict";function a(e,t,n,a,o,i,r,s){var l,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),a&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),r?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=l):o&&(l=s?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}n.d(t,{A:function(){return a}})},6200:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},5539:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},8259:function(e,t,n){"use strict";n.d(t,{KS:function(){return M},Pc:function(){return x},Z0:function(){return L},ot:function(){return w},wS:function(){return k}});var a=n(2215),o=n.n(a),i=n(5730),r=n(6200),s=n.n(r),l=n(6700),d=n.n(l),c=n(5539),u=n.n(c),f=n(3150),p=n.n(f);function m(e){return m="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},m(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=_(e,"string");return"symbol"==m(t)?t:t+""}function _(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=m(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={en:v({},s()),zhCN:v({},d()),es:v({},u()),ja:v({},p())},w=b;function x(e,t,n){var a,o=this&&this.$vnode?this.$vnode.context:window.$wapp||window.$mapp;return o.$i18n||console.log(e),a=o.$i18n&&o.$te(e)?o.$t(e):"object"!==m(t)?t:n,"object"===m(t)&&a&&Object.keys(t).forEach((function(e){a=a.replace("{"+e+"}",t[e])})),a}function M(e,t,n,a,o){if(e.i18nCode,t=t||this,t.$i18n&&"zhCN"===t.$i18n.locale&&e.btnName&&-1===e.btnName.indexOf("."))return e.btnName;if(e.i18nCode&&-1!==e.i18nCode.indexOf(".")&&t.$te(e.i18nCode))return t.$t(e.i18nCode,o);var i=t.moduleInfo||t.$vnode.context.moduleInfo||t.$vnode.context.$vnode.context.moduleInfo;if(!a&&(a=t.i18npkg||t.$vnode.context.i18npkg||t.$vnode.context.$vnode.context.i18npkg,!a)){var r=t.wfInstance||t.$vnode.context.wfInstance;if(r&&r.workForm){var s=r.workForm;if(-1!==s.indexOf("/dcontent/"))s=s.split("/dcontent/")[1].split("."),a=s[0],n=s[1];else if(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl){var l=(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl).split("/");a=l[0],n=l[1]}else-1!==s.indexOf("@/")&&(s=s.split("/"),a=s[2],n=s[3])}else if(void 0!==e.activeMenu||"menuItem"===e.type){if(e.i18npkg)a=e.i18npkg;else if(e.i18nCode&&-1!=e.i18nCode.indexOf("."))a=e.i18nCode.substring(0,e.i18nCode.indexOf(".")),e.i18npkg=a,e.i18nCode=e.i18nCode.substring(e.i18nCode.lastIndexOf(".")+1);else if(!e.i18npkg&&e.href){var d=e.href;-1!==d.indexOf("/dcontent/")?(d=d.split("/dcontent/")[1].split("."),a=d[0],e.i18npkg=d[0]):-1!==d.indexOf("@/")&&(d=d.split("/"),a=d[2],e.i18npkg=d[0])}}else i&&i.listDataUrl&&i.listDataUrl.split("/").length>2&&("/"===i.listDataUrl.substring(0,1)&&(i.listDataUrl=i.listDataUrl.substring(1)),a=i.listDataUrl.split("/")[0])}a?a+=".":a="",n||(n=t.moduleCode||t.$vnode.context.moduleCode||t.$vnode.context.$vnode.context.moduleCode,!n&&i&&(i.moduleCode?n=i.moduleCode:i.listDataUrl&&i.listDataUrl.split("/").length>2&&("/"===i.listDataUrl.substring(0,1)&&(i.listDataUrl=i.listDataUrl.substring(1)),n=i.listDataUrl.split("/")[1]))),n?n+=".":n="";var c="";if("menuItem"===e.type||void 0!==e.activeMenu||1===e.level&&1===e.topFlag)c=a+"menuItem."+e.i18nCode;else if("navbar"===e.type||void 0!==e.breadcrumb)c="navbar."+e.title;else if(e.formTitle)c=a+e.code+".formTitle";else{if(e.field&&"option"===e.type){var u=null;a&&(u=t.$i18n.messages[t.$i18n.locale][a.replace(".","")]),u||(u=t.$i18n.messages[t.$i18n.locale]),n=n.substring(0,n.length-1);var f=[];return u&&u[n]&&u[n].options&&u[n].options[e.field]?f=u[n].options[e.field]:u&&u.options&&u.options[e.field]?f=u.options[e.field]:t.$i18n.messages[t.$i18n.locale].options&&t.$i18n.messages[t.$i18n.locale].options[e.field]&&(f=t.$i18n.messages[t.$i18n.locale].options[e.field]),f[e.value]?f[e.value]:null}e.field?c=a+n+"fields."+e.field:e.btnI18nCode?c="commandBarBtn"===e.type?a+n+"wfdProcess.operations."+e.btnI18nCode:a+"pageBtns."+e.btnI18nCode:e.wfNodeName?c=a+n+"wfdProcess.nodes."+e.wfNodeName:e.wfPathName?c=a+n+"wfdProcess.paths."+e.wfPathName:e.wfIdeaLabel?c=a+n+"wfdProcess.ideaLabels."+e.wfIdeaLabel:e.i18nCode&&(c=e.i18nCode,-1===c.indexOf(n)&&(c=n+c),-1===c.indexOf(a)&&(c=a+c))}var p=c.replace(a,"").replace(n,""),m=c.replace(n,"");if(t&&t.$te){if(t.$te(c))return t.$t(c,o);if(t.$te(m))return t.$t(m,o);if(t.$te(p))return t.$t(p,o);if("zhCN"!==t.$i18n.locale&&"option"!==e.type){var h="",v=e.i18nCode||e.code||e.field||e.btnI18nCode||e.title||"";if(h=v.split(".").length>1?v.substring(v.lastIndexOf(".")+1).replace("-","_"):v.replace("-","_"),-1!==h.indexOf("_")){h=h.toLowerCase().split("_");for(var g=0;g<h.length;g++)h[g]=h[g].substring(0,1).toUpperCase()+h[g].substring(1);return h.join("")}return h.substring(0,1).toUpperCase()+h.substring(1)}}return e.title||e.btnName||e.formTitle}function k(e,t,n,a){var o=i.A.state.settings.title;return a.$te("sysName")&&(o=a.$t("sysName")),t&&(e=M({i18nCode:t,href:n,type:"menuItem"},a)),e?"".concat(e," - ").concat(o):o}function L(){try{var e=o().get("language");if(e)return"zh-CN"==e&&(e="zhCN"),e;var t=(navigator.language||navigator.browserLanguage||"").toLowerCase();if(b)for(var n=Object.keys(b),a=0,i=n;a<i.length;a++){var r=i[a];if(t.indexOf(r)>-1)return r}}catch(s){console.log(s)}return"zhCN"}},3150:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},6700:function(e){e.exports={request:{status401relogin:"认证会话已过期,请重新登录。",status401:"认证会话已过期。",status404:"接口不存在或执行错误:"}}},5730:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var a=n(9274),o=n.n(a),i=n(5353),r={sidebar:function(e){return e.app.sidebar},language:function(e){return e.app.language},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},loginUser:function(e){return e.user.loginUser},organList:function(e){return e.user.organList},avatar:function(e){return e.user.avatar},roles:function(e){return e.user.roles},routes:function(e){return e.route.routes},swipeImages:function(e){return e.app.swipeImages},productCodeList:function(e){return e.user.productCodeList},productCodeAll:function(e){return e.user.productCodeAll},maxFileSize:function(e){return e.user.maxFileSize}},s=r;o().use(i.Ay);var l=null,d=null;void 0!==window.vType?("wapp"===window.vType?l=n(5196):"mapp"===window.vType&&(l=n(9326)),d=l.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=l(t);return e[n]=a.default,e}),{}),l=n(2397),l.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=l(t);return d[n]=a.default,d}),{})):(l=n(2397),d=l.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=l(t);return e[n]=a.default,e}),{}));var c=new i.Ay.Store({modules:d,getters:s}),u=c},3070:function(e,t,n){"use strict";n.r(t);var a=n(2215),o=n.n(a),i={device:"mobile",swipeImages:o().get("swipeImages")||[]},r={SET_SWIPE_IMAGES:function(e,t){e.swipeImages=t,o().set("swipeImages",t)},SET_DEVICE:function(e,t){e.device=t,o().set("device",t)}},s={setSwipeImages:function(e,t){var n=e.commit;n("SET_SWIPE_IMAGES",t)},setDevice:function(e,t){var n=e.commit;n("SET_DEVICE",t)}};t["default"]={namespaced:!0,state:i,mutations:r,actions:s}},8076:function(e,t,n){"use strict";n.r(t);var a={routes:[]},o={SET_ROUTES:function(e,t){e.routes=t}},i={generateRoutes:function(e){var t=e.commit;return new Promise((function(e,n){window.$user.findH5apps().then((function(n){var a=[];n.body.listdata.forEach((function(e){var t=s(e);if(a.push(t),void 0!==e.appRoute&&null!==e.appRoute&&""!==e.appRoute&&"[{}]"!==e.appRoute&&"[]"!==e.appRoute){var n=JSON.parse(e.appRoute.replace(/\r\n/g,"").replace(/\n/g,"").replace(/ /g,""));r(a,n,e)}})),t("SET_ROUTES",a),e(a)})).catch((function(e){n(e)}))}))},updateRoutes:function(e,t){var n=e.commit;n("SET_ROUTES",t)}};function r(e,t,n){t.forEach((function(t){var a=t.component;if(null!==a&&"#/dcontent/"===a.substring(0,11)){var o=a.substring(11);-1===o.indexOf("?")?o+=".vue?sysCode="+(n.sysCode||n.meta.sysCode):o=a.substring(11).split("?")[0]+".vue?sysCode="+(n.sysCode||n.meta.sysCode)+"&"+a.substring(11).split("?")[1],o=0===o.indexOf("portalpage/")||0===o.indexOf("vuereportpage/")?"#/dcontent/"+o:"#/dcontent/vuelistpage/"+o,a=o}t.component=window.$loadComponent(a),t.meta=t.meta||{},t.metasysCode=n.sysCode||n.meta.sysCode,t.metasysName=n.sysName||n.meta.sysName,t.metaorgCode=n.orgCode||n.meta.orgCode,t.metaorgName=n.orgName||n.meta.orgName,e.push(t),void 0!==t.children&&null!==t.children&&r(e,t.children,t)}))}function s(e){return 2===e.appType?e.routeTo=e.h5Url.substring(1):e.h5Url.indexOf("?")>0?e.routeTo="/"+e.id+e.h5Url.substring(e.h5Url.indexOf("?")):e.routeTo="/"+e.id,{path:"/"+e.id,component:window.$loadComponent("@/mapp/common/components/H5appLoader/index"),name:e.id,alias:e.name,hidden:!0,meta:e,sysCode:e.sysCode}}t["default"]={namespaced:!0,state:a,mutations:o,actions:i}},819:function(e,t,n){"use strict";n.r(t);var a=n(5730),o=n(2215),i=n.n(o);function r(e){return r="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},r(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",d=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function f(e,t,n,a){var i=t&&t.prototype instanceof _?t:_,r=Object.create(i.prototype),s=new C(a||[]);return o(r,"_invoke",{value:D(e,n,s)}),r}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",v="executing",g="completed",y={};function _(){}function b(){}function w(){}var x={};u(x,l,(function(){return this}));var M=Object.getPrototypeOf,k=M&&M(M(O([])));k&&k!==n&&a.call(k,l)&&(x=k);var L=w.prototype=_.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,i,s,l){var d=p(e[o],e,i);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==r(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(d.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function D(t,n,a){var o=m;return function(i,r){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=N(s,a);if(l){if(l===y)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===m)throw o=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=v;var d=p(t,n,a);if("normal"===d.type){if(o=a.done?g:h,d.arg===y)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=g,a.method="throw",a.arg=d.arg)}}}function N(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function A(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},S(T.prototype),u(T.prototype,d,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new T(f(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},S(L),u(L,c,"Generator"),u(L,l,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=O,C.prototype={constructor:C,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)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(r)},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),y},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),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;Y(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:O(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){l(i,a,o,r,s,"next",e)}function s(e){l(i,a,o,r,s,"throw",e)}r(void 0)}))}}var c="-"+location.port;localStorage.getItem("productCode")&&(c="-"+localStorage.getItem("productCode"));var u={token:i().get((window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+c),name:"",avatar:"",loginUser:{},disallowPermissions:{},roles:[],organList:[],productCodeList:[],productCodeAll:[],maxFileSize:-1},f={SET_TOKEN:function(e,t){e.token=t},SET_LOGIN_USER:function(e,t){e.loginUser=t},SET_NAME:function(e,t){e.name=t},SET_PERMISSIONS:function(e,t){var n={};t.forEach((function(e){if(e.resUrl){"/"!==e.resUrl.substring(0,1)&&(e.resUrl="/"+e.resUrl);var t=e.resUrl.split("/"),a=t[1]+"."+t[2];t.length>4?a+="."+t[4].replace(".html","").replace(".vue",""):t.length>3?a+="."+t[3].replace(".html","").replace(".vue",""):a=a.replace(".html","").replace(".vue",""),void 0===n[a]&&(n[a]=[]),n[a].push(e.code)}})),e.disallowPermissions=n},SET_ROLES:function(e,t){e.roles=t},SET_PERSON_ORGAN_LIST:function(e,t){e.organList=t},SET_AVATAR:function(e,t){e.avatar=t},SET_PRODUCT_CODE_LIST:function(e,t){e.productCodeList=t},SET_PRODUCT_CODE_ALL:function(e,t){e.productCodeAll=t||[]},SET_MAX_FILE_SIZE:function(e,t){e.maxFileSize=t}};function p(e){try{var t=document.createStyleSheet();t.cssText=e}catch(n){t=document.createElement("style");t.type="text/css",t.textContent=e,document.getElementsByTagName("HEAD").item(0).appendChild(t)}}var m={login:function(e,t){var n=e.commit,a=t.username,o=t.password,i=t.kaptcha,r=t.encrypt,l=t.productCode,c=t.sysCode,u=t.imei,f=t.enjwt;return new Promise((function(e,t){window.$user.formLogin({username:a.trim(),password:o,kaptcha:i,encrypt:r,productCode:l,sysCode:c,imei:u,enjwt:f}).then(function(){var a=d(s().mark((function a(o){var i,r,l;return s().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=o,"success"!==i.code){a.next=13;break}return r=i[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]||i["PORTAL-JWTSSO-TOKEN"],a.next=5,window.$user.getLoginUser(r);case 5:l=a.sent,i["STAFF_INFO_LIST"]&&i["STAFF_INFO_LIST"].length>0?l.staffList=i["STAFF_INFO_LIST"]:l.staffList=[],i["PERMISSION_LIST"]?(window.$auth.setProductCode(i["PRODUCT_CODE_LIST"],l.sysCode),window.$auth.setToken(r),window.$auth.setTicket(i[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(i["ecweb-csrf-token"]),n("SET_TOKEN",r),n("SET_ROLES",i["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",i["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",i["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",i["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",i["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",i["MAX_FILE_SIZE"])):(window.$auth.setToken(r),window.$auth.setTicket(i[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(i["ecweb-csrf-token"]),n("SET_TOKEN",r)),n("SET_AVATAR","/apigw/base/user/download?id="+l.userId+"&dataField=photoData&nameField=photoName&csrfToken="+i["ecweb-csrf-token"]),n("SET_LOGIN_USER",l),e(i),a.next=14;break;case 13:t(i);case 14:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t(e)}))}))},tokenSsoLogin:function(e,t){var n=e.commit;return new Promise(function(){var e=d(s().mark((function e(a){var o;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]);case 2:o=e.sent,window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],o.sysCode),window.$auth.setToken(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]),window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?o.staffList=t["STAFF_INFO_LIST"]:o.staffList=[],n("SET_TOKEN",window.$auth.getToken()),n("SET_LOGIN_USER",o),n("SET_ROLES",t["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",t["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),n("SET_AVATAR","/apigw/base/user/download?id="+o.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),a();case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateStore:function(e,t){var n=e.commit,a=e.state;return new Promise(function(){var e=d(s().mark((function e(o){var i,r;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t||window.$auth.getToken(),a.loginUser.userId&&a.productCodeAll&&!t||!i){e.next=10;break}return e.next=4,window.$user.getLoginUser(i);case 4:r=e.sent,n("SET_TOKEN",window.$auth.getToken()),n("SET_LOGIN_USER",r),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var t=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],r.sysCode),window.$auth.setToken(i))}catch(a){console.log(a)}window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),n("SET_ROLES",t["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",t["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?r.staffList=t["STAFF_INFO_LIST"]:r.staffList=[],n("SET_LOGIN_USER",r),n("SET_AVATAR","/apigw/base/user/download?id="+r.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),o(!0)}else o(e.message)})).catch((function(e){o(e)})),e.next=11;break;case 10:o(!0);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(n){var a;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,window.$user.getUIStyle();case 3:a=e.sent,"string"===typeof a&&p(a);case 5:n(!0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setDefaultUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(n){var a;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getDefaultUIStyle(t);case 2:a=e.sent,"string"===typeof a&&p(a),n(!0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateJwtToken:function(e,t){var n=e.commit;return new Promise(function(){var e=d(s().mark((function e(a){var o;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t);case 2:o=e.sent,n("SET_TOKEN",t),n("SET_LOGIN_USER",o),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var i=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(i["PRODUCT_CODE_LIST"],o.sysCode),window.$auth.setToken(t))}catch(r){console.log(r)}window.$auth.setTicket(i[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(i["ecweb-csrf-token"]),n("SET_ROLES",i["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",i["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",i["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",i["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",i["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",i["MAX_FILE_SIZE"]),i["STAFF_INFO_LIST"]&&i["STAFF_INFO_LIST"].length>0?o.staffList=i["STAFF_INFO_LIST"]:o.staffList=[],n("SET_LOGIN_USER",o),a(!0)}else a(e.message)})).catch((function(e){a(e)})),a();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},hasPermission:function(e,t){var n=e.state,a="",o=t.href;if(void 0===o)return!0;for(var i=o.split(","),r=0;r<i.length;r++)if(o=i[r],0===o.indexOf("@/wapp")||0===o.indexOf("@/mapp")){var s=o.split("/");if(a=s[2]+"."+s[3],s.length>4&&(a+="."+s[4]),s.length>5&&(a+="."+s[5]),a=a.replace(".vue","").replace(".html",""),n.disallowPermissions[a]&&-1!==n.disallowPermissions[a].indexOf(t.pcode))return!1}else if(0===o.indexOf("#/dcontent")){o=o.split("/")[2];s=o.split(".");if(a=s[0]+"."+s[1],s.length>2&&(a+="."+s[2]),s.length>3&&(a+="."+s[3]),a=a.replace(".vue","").replace(".html",""),n.disallowPermissions[a]&&-1!==n.disallowPermissions[a].indexOf(t.pcode))return!1}return!0},logout:function(e){var t=e.commit;e.state;return new Promise(function(){var e=d(s().mark((function e(n){return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.$user.logout().then((function(){a.A.dispatch("route/updateRoutes",[]).then((function(){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_PERSON_ORGAN_LIST",[]),t("SET_AVATAR",""),t("SET_PRODUCT_CODE_LIST",[]),t("SET_PRODUCT_CODE_ALL",[]),window.$auth.removeProductCode(),window.$auth.removeToken(),window.$auth.removeTicket(),window.$auth.removeRoles(),window.$auth.removePermissions(),n()}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_AVATAR",""),window.$auth.removeTicket(),window.$auth.removeToken(),window.$auth.removeRoles(),window.$auth.removePermissions(),e()}))}};t["default"]={namespaced:!0,state:u,mutations:f,actions:m}},8532:function(e,t,n){"use strict";n.r(t);var a=n(2215),o=n.n(a),i=n(8259),r={sidebar:{opened:!o().get("sidebarStatus")||!!+o().get("sidebarStatus"),withoutAnimation:!1},device:"desktop",language:(0,i.Z0)(),size:o().get("size")||"medium"},s={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?o().set("sidebarStatus",1):o().set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){o().set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},OPEN_SIDEBAR:function(e,t){o().set("sidebarStatus",1),e.sidebar.opened=!0,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_LANGUAGE:function(e,t){e.language=t,o().set("language",t)},SET_SIZE:function(e,t){e.size=t,o().set("size",t)}},l={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},openSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("OPEN_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setLanguage:function(e,t){var n=e.commit;n("SET_LANGUAGE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:r,mutations:s,actions:l}},8256:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return se}});var a=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[e.orgCode&&!e.row.id&&e.sysSetupList.length>1?t("el-switch",{attrs:{"active-text":e.$tx("ecwplat.sysSetup.activeText","按主系统合并"),"inactive-text":e.$tx("ecwplat.sysSetup.inactiveText","展开子系统")},on:{change:function(t){return e.loadSysSetup()}},model:{value:e.mergeSubSys,callback:function(t){e.mergeSubSys=t},expression:"mergeSubSys"}}):e._e(),null!=e.treeData&&e.treeData.length>0?t("GiantTree",{class:e.row.id||1==e.sysSetupList.length?"":"can-merge-subsys",attrs:{nodes:e.treeData,multiple:!1,drag:!0,"tree-before-drop-node":e.treeBeforeDropNode},on:{onClick:e.onTreeNodeClick,onCreated:e.onTreeCreated,onDrop:e.treeDropNode},scopedSlots:e._u([{key:"context-menu",fn:function(n){return[n&&null===n.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addColumn",expression:"'ecwplat.PageBtns.addColumn'"}],on:{click:function(t){return e.addModuleMenu(n.treeId,n.contextNode)}}},[e._v("新增栏目")]),1!=e.dwadmin?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.systemSetting",expression:"'ecwplat.PageBtns.systemSetting'"}],on:{click:function(t){return e.editSysSetup(n.treeId,n.contextNode)}}},[e._v("系统设置")]):e._e()]):e._e(),n&&null!==n.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addSubmenu",expression:"'ecwplat.PageBtns.addSubmenu'"}],on:{click:function(t){return e.addMenu(n.treeId,n.contextNode)}}},[e._v("新增子菜单")]),n.contextNode.moduleLevel<=2?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addApprMenu",expression:"'ecwplat.PageBtns.addApprMenu'"}],on:{click:function(t){return e.addWflowMenus(n.treeId,n.contextNode)}}},[e._v("新增审批菜单组")]):e._e(),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.modifyMenu",expression:"'ecwplat.PageBtns.modifyMenu'"}],on:{click:function(t){return e.editMenu(n.treeId,n.contextNode)}}},[e._v("修改菜单")]),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.deleteMenu",expression:"'ecwplat.PageBtns.deleteMenu'"}],on:{click:function(t){return e.deleteMenu(n.treeId,n.contextNode)}}},[e._v("删除菜单")])]):e._e()]}}],null,!1,3213185892)}):e._e(),null==e.treeData||0==e.treeData.length?t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectMechanism",expression:"'selectMechanism'"}],staticClass:"dwadmin-initmessage",on:{click:e.openSelectRootOrgDialog}},[e._v("请选择模块菜单所属机构")]):e._e()],1),t("RightPanel",[null==e.sys&&1!=e.dwadmin?t("div",[t("PageContent",{attrs:{title:e.$tx("ecwplat.sysSetup.moduleMenu","模块菜单"),"set-nav-search":!1}},[null==e.importResult?t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[1!=e.dwadmin?t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"affiliatedInstitution",expression:"'affiliatedInstitution'"}],staticClass:"tdlbl tdw17"},[e._v("所属机构")]),t("td",{staticClass:"tdcont tdw83 td-organ",attrs:{colspan:"5"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.affiliatedInstitution","所属机构"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"rootorg",expression:"'rootorg'"}],attrs:{"org-type":"1",readonly:"",name:"orgCode",placeholder:e.$tx("ecwplat.sysSetup.selectAffInsti","请选择模块菜单所属机构")},model:{value:e.treeNode,callback:function(t){e.treeNode=t},expression:"treeNode"}})],1)]}}],null,!1,3659148067)})],1)]):e._e(),t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"settingInstruction",expression:"'settingInstruction'"}],staticClass:"tdlbl tdw17"},[e._v("设置说明")]),t("td",{staticClass:"tdcont tdw83",attrs:{colspan:"5"}},[t("div",{staticStyle:{float:"left","text-align":"left","line-height":"25px"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip1",expression:"'explainTip1'"}]},[e._v("1.产品业务开通后,可对各单位已开通产品的模块菜单做个性化设置;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip2",expression:"'explainTip2'"}]},[e._v("2.一个单位开通多个产品,一次性加载全部产品模块菜单;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip3",expression:"'explainTip3'"}]},[e._v("3.请先选择模块菜单所属单位。")]),t("br")])])])])])])])]):e._e()],1)],1):e._e(),null!==e.sys&&null===e.menuItem?t("SysSetup",{attrs:{vo:e.sys,"z-tree":e.zTree,"sys-code":e.row.sysCode,"allow-delete-sys":e.allowDeleteSys}}):e._e(),null!==e.sys&&null!==e.menuItem?t("ModuleMenu",{attrs:{sys:e.sys,vo:e.menuItem,"z-tree":e.zTree}}):e._e(),t("CopyMenu",{attrs:{"z-tree":e.zTree},on:{refreshTreeData:e.refreshTreeData}})],1)],1)},o=[],i=n(5353);function r(e){return r="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},r(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=u(e,"string");return"symbol"==r(t)?t:t+""}function u(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f={name:"ModuleIndex",components:{},props:{row:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",moduleInfo:{loadSysSetupUrl:"base/sysSetup/querydata",loadTreeNodeUrl:"base/menuMgr/querydata",updateModuleUrl:"base/menuMgr/updateModuleAndPermissions"},sys:null,sysSetupList:[],menuItem:null,mergeSubSys:!0,treeData:[],zTree:{},isPortal:!1,dwadmin:0,orgCode:null}},computed:l({},(0,i.L8)(["loginUser"])),watch:{},created:function(){if(this.$bus.emit("showNavSearch",!1),console.log(this.$route.meta.params,"this.$route.meta.params"),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("orgCode=")){var e=this.$route.meta.params.split("orgCode=")[1].split("&");this.loadSysSetup(e)}else"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?(this.dwadmin=1,this.loadSysSetup(this.loginUser.orgCode)):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")?this.loadSysSetup(this.loginUser.orgCode):this.row.sysCode?this.loadSysSetup(this.row.orgCode):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("isPortal=1")&&(this.isPortal=!0);this.$bus.on("setOrgItemTree",this.setOrgItem)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("setOrgItemTree",this.setOrgItem)},mounted:function(){},methods:{setOrgItem:function(e){var t=localStorage.orgItem?JSON.parse(localStorage.orgItem).orgCode:JSON.parse(localStorage.orgList)[1].orgCode;this.loadSysSetup(t)},loadSysSetup:function(e){var t=this;this.orgCode=e||this.orgCode,this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",value:this.row.orgCode||this.orgCode}],params:{orderBy:"isDefaultSys desc,orderNo"},url:this.moduleInfo.loadSysSetupUrl}).then((function(e){if("success"===e.code)if(t.sysSetupList=e.body.listdata,e.body.listdata.length>0){t.sys=e.body.listdata[0];var n=[];e.body.listdata.forEach((function(e){n.push(e.sysCode)}));var a=[];if(t.row.sysCode)e.body.listdata.forEach((function(e){e.sysCode===t.row.sysCode&&a.push(e)}));else if(t.isPortal&&localStorage.orgItem){var o=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";e.body.listdata.forEach((function(e){e.sysCode===o&&a.push(e)}))}else a=e.body.listdata;var i=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"in",field:"sysCode",value:i||t.row.sysCode||n.join(",")}],params:{orderBy:"moduleLevel asc,orderNo asc"},url:t.moduleInfo.loadTreeNodeUrl}).then((function(e){"success"===e.code?t.treeData=t.treeDataAdapter(a.concat(e.body.listdata)):t.$alert(e.message,{type:"error"})}))}else t.$alert(t.$tx("ecwplat.sysSetup.chooseAgain","您所选择的单位未开通任何业务,请重新选择!"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(e.message,{type:"error"})}))},openSelectRootOrgDialog:function(){document.querySelector(".td-organ").querySelector("BUTTON").click()},onSelectRootorgCompleted:function(e,t){this.loadSysSetup(e[0].ocode)},treeDataAdapter:function(e){var t={},n={},a={};if(!0===this.mergeSubSys&&e.length>1&&1===e[0].sysType){for(var o=0;o<e.length;o++){var i=e[o];"appCenter"===i.code&&1===i.moduleLevel&&1===i.topFlag&&(a[i.sysCode]=i,i.passenger.disallowAddSubMenu=!0),void 0!==i.sysLicense?(i.name=i.sysName,i.pId=null,i.open=!0,i.title=i.sysName,1===i.sysType?t[i.sysCode]=i.id:t[i.masterSys]&&(t[i.sysCode]=t[i.masterSys],n[i.sysCode]=i.orderNo,e.splice(o--,1))):("0"===i.parentId?i.pId=t[i.sysCode]:i.pId=i.parentId,i.title="名称:"+i.name+"\r\n代码:"+i.code+"\r\n排序:"+i.orderNo)}for(var r in a){var s=a[r];if(s)for(var l=0;l<e.length;l++){var d=e[l];1===d.moduleLevel&&0===d.topFlag&&r!==d.sysCode&&(d.pId=s.id,d.orderNo=n[d.sysCode]+"/"+d.orderNo,d.title="名称:"+d.name+"\r\n代码:"+d.code+"\r\n排序:"+d.orderNo)}}e.sort((function(e,t){return e.orderNo<t.orderNo?-1:1}))}else e.forEach((function(e){void 0!==e.sysLicense?(e.name=e.sysName,e.pId=null,e.open=!0,e.title=e.sysName,t[e.sysCode]=e.id):("0"===e.parentId?e.pId=t[e.sysCode]:e.pId=e.parentId,e.title="名称:"+e.name+"\r\n代码:"+e.code+"\r\n排序:"+e.orderNo)}));return e},refreshTreeData:function(e){this.loadSysSetup(this.orgCode)},onTreeNodeClick:function(e,t,n){var a=this,o=JSON.parse(JSON.stringify(this.sys));this.sys=null,this.$nextTick((function(e){void 0===n.pId||null===n.pId?(a.menuItem=null,a.sys=n):(a.setMenuItem(n),a.sys=o)}))},setMenuItem:function(e){var t=e.getParentNode(),n="";while(null!==t&&t.getParentNode)n=t.name+"/"+n,t=t.getParentNode();e.parentName=n,2===e.moduleLevel&&0===e.leafFlag&&"rightLabel"!==e.target&&(e.target="leftMenuItem"),this.menuItem=e},onTreeCreated:function(e){this.zTree=e},treeBeforeDropNode:function(e,t,n,a,o){return!("inner"===a&&n.moduleLevel>1&&1===n.leafFlag)||(this.$alert(this.$tx("ecwplat.sysSetup.cannotBe",{targetNode:n.name},"".concat(n.name,"不是文件夹菜单,不能移入。")),{type:"warning"}),!1)},treeDropNode:function(e,t,n,a,o,i){var r=this,s=null,l=a.orderNo;if("inner"===o){s=a;var d=a.children;null!=d&&d.length>1&&(l=d[d.length-2].orderNo,isNaN(l)||(l=l-0+10))}else s=a.getParentNode(),isNaN(l)||("prev"===o?l-=1:l=l-0+1);var c=l+"",u=c.length;if(l>=0)if(c.length<4)for(var f=0;f<4-u;f++)c+="0";else c.length>4&&(c="9999");n.orderNo=c,n.pId=s.id,n.sysCOde=s.sysCode,null==s.pId?(n.moduleLevel=1,n.parentId="0"):(n.moduleLevel=s.moduleLevel+1,n.parentId=s.id),this.$http({method:"put",data:n,url:this.moduleInfo.updateModuleUrl}).then((function(a){"success"===a.code?(r.onTreeNodeClick(e,t,n),r.$message.success(a.message)):r.$alert(a.message,{type:"error"})}))},addModuleMenu:function(e,t){var n=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("addModuleMenu")}))},editSysSetup:function(e,t){var n=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("editSysSetup")}))},addMenu:function(e,t){var n=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){n.$bus.emit("addMenu")}))},addWflowMenus:function(e,t){var n=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){n.$bus.emit("addMenu","wflowMenus")}))},editMenu:function(e,t){var n=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){n.$bus.emit("editMenu")}))},deleteMenu:function(e,t){var n=this;null===this.menuItem&&(this.zTree.selectNode(t),this.setMenuItem(t)),this.$nextTick((function(){n.$bus.emit("deleteMenu",t)}))}}},p=f,m=(n(458),n(1656)),h=(0,m.A)(p,a,o,!1,null,"3801b56a",null),v=h.exports,g=function(){var e=this,t=e._self._c;return t("PageContent",{attrs:{title:e.formTitle}},[t("dynamic-form",{attrs:{"table-field-info":e.sysSetupTableFieldInfo,vo:e.vo,"module-info":e.sysSetupModuleInfo,"can-edit":0}}),"SysSetup"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.PageBtns.systemSetting","系统设置"),"win-width":e.sysSetupModuleInfo.winWidth,"win-height":e.sysSetupModuleInfo.winHeight,"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onSysSetupFormBeforeOpen,"on-basic-form-submited":e.onSysSetupFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("dynamic-form",{attrs:{vo:n?n.vo:e.formVo,"table-field-info":e.sysSetupTableFieldInfo,"can-edit":n?n.canEdit:1,"module-info":e.sysSetupModuleInfo}})]}}],null,!1,1967240207)}):e._e(),"ModuleMenu"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"),"append-to-body":!0,"win-width":e.menuModuleInfo.winWidth,"win-height":e.menuModuleInfo.winHeight,"on-basic-form-before-open":e.onMenuModuleFormBeforeOpen,"on-basic-form-submited":e.onMenuModuleFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("MenuItemForm",{attrs:{vo:n?n.vo:e.formVo,"can-edit":n?n.canEdit:1,"module-info":e.menuModuleInfo}})]}}],null,!1,1127664884)}):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"addModuleMenu",expression:"'addModuleMenu'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addColumn",expression:"'addColumn'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addModuleMenu}},[e._v("新增栏目")]),1!=e.dwadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"systemSetting",expression:"'systemSetting'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editSysSetup}},[e._v("系统设置")]):e._e(),1!=e.dwadmin&&"eccloud"!=e.vo.sysCode&&e.allowDeleteSys?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"oneClickDelete",expression:"'oneClickDelete'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.deleteSysSetup}},[e._v("一键删除")]):e._e(),1!=e.dwadmin&&1!=e.platadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"switchUnits",expression:"'switchUnits'"}],attrs:{plain:"",icon:"el-icon-search"},on:{click:e.selectOrgan}},[e._v("切换单位")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")]):e._e()],1),t("ExportModuleCode"),t("ImportModuleCode"),t("DoingDialog")],1)},y=[],_=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.vo.parentName?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"parentName",expression:"'parentName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.vo.parentName)}})])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.nameLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.nameLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"name",placeholder:e.$tx("common.plInputContent",{content:e.nameLabel},"请输入".concat(e.nameLabel))},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.codeLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.codeLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"code",placeholder:e.$tx("common.plInputContent",{content:e.codeLabel},"请输入".concat(e.codeLabel))},model:{value:e.vo.code,callback:function(t){e.$set(e.vo,"code",t)},expression:"vo.code"}},[2==e.vo.moduleLevel||3==e.vo.leafType||4==e.vo.leafType?t("el-button",{attrs:{slot:"append",icon:"el-icon-more"},on:{click:e.selectMenuIcon},slot:"append"}):e._e()],1)],1)]}}])})],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"columnAbbre",expression:"'columnAbbre'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("栏目简称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"description",placeholder:e.$tx("ecwplat.menuForm.fields.columnAbbreEnter","请输入栏目简称")},model:{value:e.vo.description,callback:function(t){e.$set(e.vo,"description",t)},expression:"vo.description"}})],1)]):e._e(),1!==e.vo.moduleLevel?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:"menuType",expression:"'menuType'"}]},[e._v("菜单类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[e.isWflowMenus?t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"approvalMenu",expression:"'approvalMenu'"}]},[e._v("审批菜单组")]):t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuType","菜单类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"leafFlag",placeholder:e.$tx("ecwplat.menuForm.fields.selectmenuType","请选择菜单类型")},model:{value:e.vo.leafFlag,callback:function(t){e.$set(e.vo,"leafFlag",t)},expression:"vo.leafFlag"}},e._l(e.leafFlagOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,2896587604)})],1)]):e._e(),e.isWflowMenus?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:"moduleSubmenu",expression:"'moduleSubmenu'"}]},[e._v("审批模块子菜单")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.moduleSubmenu","审批模块子菜单"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-checkbox-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"selectedItem",placeholder:e.$tx("ecwplat.menuForm.fields.selectModuleSubmenu","请选择审批模块子菜单")},model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}},e._l(e.wflowMenuItems,(function(n,a){return t("el-checkbox",{key:a,attrs:{label:n.code}},[e._v(e._s(n.name+n.text))])})),1)],1)]}}],null,!1,1789908154)})],1)]):e._e(),e.isWflowMenus&&-1!=e.selectedItem.indexOf("MyCreated")?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:"myCreatedURL",expression:"'myCreatedURL'"}]},[e._v("我创建的列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.myCreatedURL","我创建的列表URL"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listMyCratedPageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterMyCreatedURL","请输入我创建的列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listMyCratedPageUrl,callback:function(t){e.$set(e.vo.passenger,"listMyCratedPageUrl",t)},expression:"vo.passenger.listMyCratedPageUrl"}})],1)]}}],null,!1,1791232420)})],1)]):e._e(),e.isWflowMenus&&-1!=e.selectedItem.indexOf("AllFile")?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:"listURL",expression:"'listURL'"}],attrs:{dataType:e.wflowMenuItems[2].name}},[e._v(e._s(e.wflowMenuItems[2].name)+"列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.wflowMenuItems[2].name+"列表URL",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listAllFilepageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterListURL",{dataType:e.wflowMenuItems[2].name},"{dataType}列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listAllFilepageUrl,callback:function(t){e.$set(e.vo.passenger,"listAllFilepageUrl",t)},expression:"vo.passenger.listAllFilepageUrl"}})],1)]}}],null,!1,1791012380)})],1)]):e._e(),e.isWflowMenus&&-1!=e.selectedItem.indexOf("MyProcessed")?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:"approvalCode",expression:"'approvalCode'"}]},[e._v("审批模块业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.approvalCode","审批模块业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:e.$tx("ecwplat.menuForm.fields.enterApprovalCode","请输入审批模块业务代码,例:fawen,shouwen,hytz")},model:{value:e.vo.passenger.busiCode,callback:function(t){e.$set(e.vo.passenger,"busiCode",t)},expression:"vo.passenger.busiCode"}})],1)]}}],null,!1,471353048)})],1)]):e._e(),e.refresh||1!==e.vo.moduleLevel&&(1===e.vo.moduleLevel||1!==e.vo.leafFlag)?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:"pageContentType",expression:"'pageContentType'"}]},[e._v("页面内容类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.pageContentType","页面内容类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"leafType",placeholder:e.$tx("ecwplat.menuForm.fields.selectPageContentType","请选择页面内容类型")},model:{value:e.vo.leafType,callback:function(t){e.$set(e.vo,"leafType",t)},expression:"vo.leafType"}},e._l(e.leafTypeOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,2308690411)})],1)]),1===e.vo.leafFlag?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:"openType",expression:"'openType'"}]},[e._v("打开方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.openType","打开方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectOpenType","请选择打开方式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,859240764)})],1)]):e._e(),e.vo.moduleLevel>=2&&0===e.vo.leafFlag&&!e.isWflowMenus?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:"submenuStyle",expression:"'submenuStyle'"}]},[e._v("子菜单样式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.submenuStyle","子菜单样式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectSubmenuStyle","请选择子菜单样式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,454132852)})],1)]):e._e(),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType&&5!==e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navName",expression:"'navName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("页面导航名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"listNavName",placeholder:e.$tx("ecwplat.menuForm.fields.navNameEnter","请输入页面导航名称")},model:{value:e.vo.listNavName,callback:function(t){e.$set(e.vo,"listNavName",t)},expression:"vo.listNavName"}})],1)]),1===e.vo.leafFlag&&3!==e.vo.leafType&&5!==e.vo.leafType&&6!==e.vo.leafType&&1!==e.vo.leafType?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:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接")},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,1000627797)})],1)]):e._e(),1!==e.vo.leafFlag||1!==e.vo.leafType&&5!==e.vo.leafType&&6!==e.vo.leafType?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:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[6===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:e.portalPageListUrl},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):5===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"ureport.reportDefine.list?urlsearch=reportViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3601479216)})],1)]),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormat",expression:"'urlFormat'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("URL格式")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip1",expression:"'urlFormatTip1'"}]},[e._v('1、动态列表视图vue组件url,以英文字符"/"结尾,不包括扩展名')]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip2",expression:"'urlFormatTip2'"}]},[e._v("2、格式为:#/dcontent/base.jobPosition.list/")])]):e._e(),2===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip3",expression:"'urlFormatTip3'"}]},[e._v("1、静态列表视图vue组件文件路径,不包括文件扩展名")]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip4",expression:"'urlFormatTip4'"}]},[e._v("2、格式为:@/wapp/workflow/wfTaskItem/myTodo")])]):e._e()])]),1===e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?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:"wfName",expression:"'wfName'"}]},[e._v("流程名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.wfName","流程名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"wfName",placeholder:e.$tx("ecwplat.menuForm.fields.wfNameEnter","请输入流程名称"),listviewurl:"workflow.wfdProcess.list"},model:{value:e.vo.wfName,callback:function(t){e.$set(e.vo,"wfName",t)},expression:"vo.wfName"}})],1)]}}],null,!1,223860017)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wfCode",expression:"'wfCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("流程编码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfCode",placeholder:e.$tx("ecwplat.menuForm.fields.wfCodeEnter","请输入流程编码")},model:{value:e.vo.wfCode,callback:function(t){e.$set(e.vo,"wfCode",t)},expression:"vo.wfCode"}})],1)]),1!==e.vo.moduleLevel&&1===e.vo.leafFlag&&3===e.vo.leafType?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:"businessCode",expression:"'businessCode'"}]},[e._v("业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.businessCode","业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.businessCodeEnter","请输入业务代码,首字母小写"),listviewurl:"base.entityListpage.list"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3104104198)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"engineUrl",expression:"'engineUrl'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("引擎(模块)URL")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfEngineUrl",placeholder:e.$tx("ecwplat.menuForm.fields.engineUrlEnter","请输入引擎(模块)URL")},model:{value:e.vo.wfEngineUrl,callback:function(t){e.$set(e.vo,"wfEngineUrl",t)},expression:"vo.wfEngineUrl"}})],1)]):e._e(),1==e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageName",expression:"'stageName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("起始环节名称")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfNodeName",placeholder:e.$tx("ecwplat.menuForm.fields.stageNameEnter","请输入起始环节名称")},model:{value:e.vo.wfNodeName,callback:function(t){e.$set(e.vo,"wfNodeName",t)},expression:"vo.wfNodeName"}})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageCode",expression:"'stageCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("起始环节编码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfNodeCode",placeholder:e.$tx("ecwplat.menuForm.fields.stageCodeEnter","请输入起始环节编码")},model:{value:e.vo.wfNodeCode,callback:function(t){e.$set(e.vo,"wfNodeCode",t)},expression:"vo.wfNodeCode"}})],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navShow",expression:"'navShow'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("导航栏显示")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType"},model:{value:e.vo.topFlag,callback:function(t){e.$set(e.vo,"topFlag",t)},expression:"vo.topFlag"}},[t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption1",expression:"'navOption1'"}],attrs:{label:1}},[e._v("显示")]),t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption2",expression:"'navOption2'"}],attrs:{label:0}},[e._v("不显示")])],1)],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:"authoType",expression:"'authoType'"}]},[e._v("授权方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.authoType","授权方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-select",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType",placeholder:e.$tx("ecwplat.menuForm.fields.selectAuthoType","请选择授权方式")},model:{value:e.vo.visitType,callback:function(t){e.$set(e.vo,"visitType",t)},expression:"vo.visitType"}},e._l(e.visitTypeOptions,(function(e,n){return t("el-option",{key:n,attrs:{label:e.text,value:e.value}})})),1)],1)]}}])})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"i18nCode",expression:"'i18nCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("I18N代码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"i18nCode",placeholder:e.$tx("ecwplat.menuForm.fields.i18nCodeEnter","请输入I18N代码")},model:{value:e.vo.i18nCode,callback:function(t){e.$set(e.vo,"i18nCode",t)},expression:"vo.i18nCode"}})],1)]),0!==e.vo.visitType?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"accessAuthorization",expression:"'accessAuthorization'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("访问授权")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("res-roles",{attrs:{"res-id":e.vo.id,"res-type":"MENU","permission-code":"VISIT","root-org-code":e.vo.orgCode,"sys-code":e.vo.sysCode,"visit-type":e.vo.visitType,"select-type":e.resRolesSelectType,change:e.handleResRolesChange,"can-edit":e.canEdit}})],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:"orderNumber",expression:"'orderNumber'"}]},[e._v("排序序号")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.orderNumber","排序序号"),rules:"required|integer|length:4"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"orderNo",placeholder:e.$tx("ecwplat.menuForm.fields.orderNumberEnter","请输入4位数字排序序号"),"ecng-listpage-dialog":"",listviewurl:"base.entityListpage.list"},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],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:"status",expression:"'status'"}]},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.status","状态"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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("ecwplat.menuForm.fields.selectstatus","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}])})],1)])])])])]),e.iconDialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.iconDialogFormVisible,"append-to-body":!0,"close-on-click-modal":!0,width:"1250px",title:e.$tx("ecwplat.menuForm.fields.menuIcon","选择菜单图标")},on:{"update:visible":function(t){e.iconDialogFormVisible=t}}},[t("Icons")],1):e._e()],1)},b=[],w={name:"MenuItemForm",components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1},newMenuType:{type:String,default:null},sys:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"menuForm",leafFlagOptions:[{value:0,text:this.$tx("ecwplat.menuForm.folder","文件夹")},{value:1,text:this.$tx("ecwplat.menuForm.menuItem","菜单项")}],statusOptions:[{value:1,text:this.$tx("ecwplat.PageBtns.enable","启用")},{value:0,text:this.$tx("ecwplat.PageBtns.disable","禁用")}],refresh:!1,iconDialogFormVisible:!1,selectedItem:["MyCreated","MyProcessed","AllFile"],wflowMenuItems:[{code:"MyCreated",name:this.$tx("ecwplat.menuForm.myCreated","我创建的"),text:this.$tx("ecwplat.menuForm.fourStatus","(全部、草稿、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Draft",name:"草稿",urlsearch:"status:0"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]},{code:"MyProcessed",name:this.$tx("ecwplat.menuForm.myProcessed","我处理的"),text:this.$tx("ecwplat.menuForm.twoStatus","(待办、已办)"),children:[{code:"Todo",name:"待办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myTodo/?urlsearch=module:[busiCode]"},{code:"Done",name:"已办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myDone/?urlsearch=module:[busiCode]"}]},{code:"AllFile",name:this.$tx("ecwplat.menuForm.allFile","全部"),text:this.$tx("ecwplat.menuForm.threeStatus","(全部、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]}],productCodeAll:this.$store.getters.productCodeAll,resRolesSelectType:""}},computed:{nameLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnName","栏目名称"):this.$tx("ecwplat.menuForm.menuName","菜单名称")},codeLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnCode","栏目编码"):this.$tx("ecwplat.menuForm.menuCode","菜单编码")},targetOptions:function(){return 1===this.vo.moduleLevel||1===this.vo.leafFlag?[{value:"mainpage",text:this.$tx("ecwplat.menuForm.lnavWork","左导航+工作区")},{value:"content",text:this.$tx("ecwplat.menuForm.work","工作区")},{value:"_blank",text:this.$tx("ecwplat.menuForm.popUp","弹出窗口")},{value:"_top",text:this.$tx("ecwplat.menuForm.topWAin","顶层窗口")}]:this.vo.moduleLevel>=2&&0===this.vo.leafFlag?[{value:"leftMenuItem",text:this.$tx("ecwplat.menuForm.leftMenu","左侧菜单顶")},{value:"rightLabel",text:this.$tx("ecwplat.menuForm.rightLabel","右侧页面标签")}]:[]},leafTypeOptions:function(){if(1===this.vo.moduleLevel)return[{value:null,text:this.$tx("ecwplat.menuForm.not","无")},{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicListPage","动态列表页面")},{value:2,text:this.$tx("ecwplat.menuForm.staticListPage","静态列表页面")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")}];if(1===this.vo.leafFlag){var e=[{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicList","动态列表")},{value:2,text:this.$tx("ecwplat.menuForm.staticList","静态列表")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")},{value:5,text:this.$tx("ecwplat.menuForm.statisticalReport","统计报表")}];return this.sys&&this.sys.passenger&&0!==this.sys.passenger.workflow&&(e.push({value:3,text:this.$tx("ecwplat.menuForm.standardDraft","起草文件(标准)")}),e.push({value:4,text:this.$tx("ecwplat.menuForm.customizedDraft","起草文件(定制)")})),e}return[]},visitTypeOptions:function(){var e=[{value:0,text:this.$tx("ecwplat.menuForm.Unrestricted","不限制")},{value:1,text:this.$tx("ecwplat.menuForm.designatedRole","指定角色")}];return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)||(e.push({value:2,text:this.$tx("ecwplat.menuForm.desiPerson","指定机构人员")}),e.push({value:3,text:this.$tx("ecwplat.menuForm.specifyGroup","指定群组")})),e},portalPageListUrl:function(){var e="base.portalPage.list_portal";return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)&&(e="base.portalPage.list_product"),e+"?urlsearch=sysCode:"+this.vo.sysCode+";clientType:W"},isWflowMenus:function(){return"wflowMenus"===this.newMenuType}},watch:{vo:{handler:function(e,t){this.updateMenuItemView()},deep:!0}},created:function(){this.$options.components["Icons"]=this.$loadComponent("@/wapp/support/icons/index")},beforeDestroy:function(){},mounted:function(){1!==this.vo.moduleLevel||this.vo.href||this.$set(this.vo,"leafType",null),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("resRolesSelectType=")&&(this.resRolesSelectType=this.$route.meta.params.split("resRolesSelectType=")[1].split("&")[0]),this.updateMenuItemView()},methods:{updateMenuItemView:function(){var e=this;this.isWflowMenus&&(this.wflowMenuItems[2].name=this.$tx("ecwplat.menuForm.allFile","全部")+(this.vo.name||""),this.vo.passenger.wflowMenuItems=this.wflowMenuItems),1===this.vo.moduleLevel&&(null===this.vo.leafType?this.$set(this.vo,"leafFlag",0):this.$set(this.vo,"leafFlag",1),null===this.vo.topFlag&&this.$set(this.vo,"topFlag",1)),0===this.vo.leafFlag&&"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target?2===this.vo.moduleLevel?this.vo.target="leftMenuItem":this.vo.moduleLevel>=3&&(this.vo.target="rightLabel"):1!==this.vo.leafFlag||"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target||(this.vo.target=""),this.vo.passenger.selectedItem=this.selectedItem.join(","),this.refresh=!0,this.$nextTick((function(){e.refresh=!1}))},selectMenuIcon:function(){this.iconDialogFormVisible=!0},handleResRolesChange:function(e){this.vo.visitOwnerIds=e},onSelectListpageRowCompleted:function(e,t){if(0!==e.length)if("wfName"===t.name){if(this.$set(this.vo,"wfName",e[0].name),this.$set(this.vo,"wfCode",e[0].processNo),e[0].workFormW){if(0==this.vo.wfCode.indexOf("udmjysp_"))this.$set(this.vo,"href",this.vo.wfCode.toLowerCase()),this.$set(this.vo,"wfEngineUrl","znbg/udmjysp");else{var n=e[0].workFormW;-1!==n.indexOf("/dcontent/")?n=n.split("/dcontent/")[1]:n.indexOf("@/wapp/")&&(n=n.split("@/wapp/")[1].replace("///",".")),this.$set(this.vo,"href",n.split(".")[1]),this.$set(this.vo,"wfEngineUrl",n.split(".")[0]+"/"+n.split(".")[1])}4===this.vo.leafType&&this.$set(this.vo,"href","#/wflow?busiCode="+this.vo.href+"&wfEngineUrl="+this.vo.wfEngineUrl)}}else if("href"===t.name)if(6===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].pageName),this.vo.code||this.$set(this.vo,"code",e[0].pageCode);var a="@/wapp/portal/index?pageCode="+e[0].pageCode;-1!==e[0].pageViewUrl.indexOf("?pageCode=")&&(a=e[0].pageViewUrl),this.$set(this.vo,"href",a)}else if(5===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].reportName),this.vo.code||this.$set(this.vo,"code",e[0].reportCode);var o="#/dcontent/vuereportpage/"+decodeURIComponent(e[0].reportViewUrl).split("_u=")[1];this.$set(this.vo,"href",o)}else if(3===this.vo.leafType){var i=e[0].listViewUrl.split(".")[0];i=i.replace(/\//g,"."),this.$set(this.vo,"href",i.split(".")[2]),this.$set(this.vo,"wfEngineUrl",i.split(".")[1]+"/"+i.split(".")[2])}else{var r=e[0].listViewUrl.split(".")[0];r=r.replace(/\//g,"."),r=r.substring(1)+"/",this.$set(this.vo,"href","#/dcontent/"+r)}else{var s=e[0].listViewUrl.split(".")[0];s=s.replace(/\//g,"."),s=s.substring(1)+"/",this.$set(this.vo.passenger,t.name,"#/dcontent/"+s),this.vo.passenger.busiCode||this.$set(this.vo.passenger,"busiCode",s.split(".")[2])}}}},x=w,M=(n(6664),(0,m.A)(x,_,b,!1,null,"6ff0d390",null)),k=M.exports;function L(e){return L="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},L(e)}function S(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */S=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new C(a||[]);return o(r,"_invoke",{value:D(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==L(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function D(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=N(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function N(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(L(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(T.prototype),d(T.prototype,s,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new T(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=O,C.prototype={constructor:C,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)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;Y(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:O(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function T(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function D(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){T(i,a,o,r,s,"next",e)}function s(e){T(i,a,o,r,s,"throw",e)}r(void 0)}))}}var N={name:"SysSetup",components:{MenuItemForm:k},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",formTitle:this.$tx("ecwplat.sysSetup.fields.sysConfigInfo","系统配置信息"),dwadmin:0,platadmin:0,loginUser:this.$store.getters.loginUser,formType:"SysSetup",formVo:null,sysSetupModuleInfo:{winWidth:1e3,winHeight:600,moduleCode:"sysSetup",updateUrl:"base/sysSetup/update",delUrl:"base/sysSetup/deleteSysSetup",getByIdUrl:"base/sysSetup/getById"},menuModuleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew?sysCode="+this.vo.sysCode+"&parentId=0",insertUrl:"base/menuMgr/insertModuleAndPermissions",winWidth:900,winHeight:600},sysSetupTableFieldInfo:[{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位名称",errorMessage:"",formElementIndex:0,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"b06df403257a4614a78cc883b2149c3c",isRequired:1,passenger:{},propComment:"用户单位名称",propName:"orgFullname",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位代码",errorMessage:"",formElementIndex:2,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"364d485f85ee49a4b0e7307b7e489a6d",isRequired:1,propComment:"用户单位代码",propName:"orgCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统名称",errorMessage:"",formElementIndex:3,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"eb35f7324ce245d2bfcc2d8599fb7be2",isRequired:1,propComment:"系统名称",propName:"sysName",propType:"String",textFormatter:"textfield",valueMaxLength:250},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统代码",errorMessage:"",formElementIndex:4,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"3d71c21947bb4edcb692026c44a83625",isRequired:1,propComment:"系统代码",propName:"sysCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"0",elementFormatter:"1:是\n0:否",elementType:"radio",emptyMessage:"请输入是否默认主系统",errorMessage:"",formElementIndex:5,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"bbbcdcece2704ad986ed9fe66f2fc653",isRequired:1,passenger:{},propComment:"是否默认主系统",propName:"isDefaultSys",propType:"Short",textFormatter:""},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementType:"select",emptyMessage:"请选择产品名称 ",errorMessage:"",formElementIndex:6,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"4d2ef571906e487baa359f215b32b18e",isRequired:0,propComment:"产品代码",propName:"productName",propType:"String",textFormatter:"",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入LOGO图片文件名",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"7eee9e8e3a884c33ac731b94bfbc0637",isRequired:1,propComment:"LOGO图片文件名",propName:"sysLogoFileName",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"sysLogoFileName",elementCanEdit:"{{canEdit}}",elementFormatter:"",elementType:"file",emptyMessage:"请选择系统LOGO图片",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"e2a472a94bfe4b23b72171cd74dc9d4a",isRequired:1,propComment:"系统LOGO图片",propName:"sysLogo",propType:"byte[]",textFormatter:"image/*",valueMaxLength:1,valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务开通时间",propName:"openTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务截止时间",propName:"expiredTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"1",elementCanEdit:"{{canEdit}}",elementFormatter:"1:启用\r\n0:禁用\r\n",elementType:"radio",emptyMessage:"请选择系统状态 ",errorMessage:"",formElementIndex:11,formShow:1,formTdAlign:"text-left",formTdColspan:24,id:"9391e6e75a964a82949543dd899e746e",isRequired:1,propComment:"系统状态 ",propName:"sysStatus",propType:"Short",textFormatter:"",valueMinLength:0}],busiformBtns:[]}},computed:{},watch:{},created:function(){this.$bus.on("editSysSetup",this.editSysSetup),this.$bus.on("addModuleMenu",this.addModuleMenu),"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?this.dwadmin=1:this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")&&(this.platadmin=1,this.sysSetupTableFieldInfo.splice(0,2))},beforeDestroy:function(){this.$bus.off("editSysSetup",this.editSysSetup),this.$bus.off("addModuleMenu",this.addModuleMenu)},mounted:function(){},methods:{editSysSetup:function(){var e=this;this.formType="SysSetup",this.$nextTick((function(){e.$bus.emit("openBusiform",e.sysSetupModuleInfo,e.vo,1)}))},deleteSysSetup:function(){var e=this,t=this.$tx("ecwplat.sysSetup.delSysSetupTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"的全部系统数据?"));1===this.vo.sysType&&(t=this.$tx("ecwplat.sysSetup.delSysSetupAllTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"以及关联子系统的全部数据?"))),this.$confirm(t,this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(D(S().mark((function t(){var n;return S().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$bus.emit("showDoingDialog"),t.next=3,e.$app.deleteByIds(e.sysSetupModuleInfo.delUrl,e.vo.id.split(","));case 3:n=t.sent,e.$bus.emit("closeDoingDialog"),"success"===n.code?(e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"warning"}),e.$vnode.context.treeData=[],e.$vnode.context.sys=null):e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"});case 6:case"end":return t.stop()}}),t)})))).catch((function(e){"cancel"!==e&&console.error(e)}))},selectOrgan:function(){this.$vnode.context.treeData=[],this.$vnode.context.sys=null,this.$nextTick((function(e){document.querySelector(".td-organ").querySelector(".el-button").click()}))},addModuleMenu:function(){var e=this;this.formType="ModuleMenu",this.$nextTick((function(){e.$bus.emit("openBusiform",e.menuModuleInfo,null,1)}))},onMenuModuleFormBeforeOpen:function(e,t,n){t.parentName=this.vo.sysName,null===t.status&&(t.status=1),null===t.leafFlag&&(t.leafFlag=0),this.formVo=t,n.resolve(!0)},onMenuModuleFormSubmited:function(e,t){console.log("moduleMenu form submited"),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo,"0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId,this.$bus.emit("updateTreeNode",t)},onSysSetupFormBeforeOpen:function(e,t,n){this.formVo=t,n.resolve(!0)},onSysSetupFormSubmited:function(e,t){console.log("sysSetup form submited"),t.name=t.sysName,t.title=t.sysName,this.$bus.emit("updateTreeNode",t)},exportMenu:function(){var e=this,t=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),t,(function(t){if("success"===t.code){var n=t.value;n.sysCode=e.vo.sysCode,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:[],params:n,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var n='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+n,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))}}},A=N,Y=(0,m.A)(A,g,y,!1,null,"2497073a",null),C=Y.exports,O=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,"append-to-body":!0,"close-on-click-modal":!1,width:"900px",title:e.$tx("ecwplat.sysSetup.dialogTitle","复制菜单")},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-form",{attrs:{model:e.newMenu}},[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",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"superiorMenu",expression:"'superiorMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.parentName)}})])]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"currentMenu",expression:"'currentMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("当前菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.name)}})])]),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:"tarSystemCode",expression:"'tarSystemCode'"}]},[e._v("目标系统代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.tarSystemCode","目标系统代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"sysCode",placeholder:e.$tx("ecwplat.sysSetup.fields.tarSystemCodeEnter","请输入新菜单目标系统代码")},model:{value:e.newMenu.sysCode,callback:function(t){e.$set(e.newMenu,"sysCode",t)},expression:"newMenu.sysCode"}})],1)]}}],null,!1,825548065)})],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:"newMenu",expression:"'newMenu'"}]},[e._v("新菜单名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.newMenu","新菜单名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"newName",placeholder:e.$tx("ecwplat.sysSetup.fields.newMenuEnter","请输入新菜单名称")},model:{value:e.newMenu.newName,callback:function(t){e.$set(e.newMenu,"newName",t)},expression:"newMenu.newName"}})],1)]}}],null,!1,1078266707)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceForm",expression:"'replaceForm'"}]},[e._v("菜单代码替换From")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceFrom",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceFormKey","请输入菜单代码替换From关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceFrom,callback:function(t){e.$set(e.newMenu,"replaceFrom",t)},expression:"newMenu.replaceFrom"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceTo",expression:"'replaceTo'"}]},[e._v("菜单代码替换To")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceTo",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceToKey","请输入菜单代码替换To关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceTo,callback:function(t){e.$set(e.newMenu,"replaceTo",t)},expression:"newMenu.replaceTo"}})],1)])])])])])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.closeDialog}},[e._v("关 闭")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"save",expression:"'save'"}],attrs:{type:"primary",icon:"el-icon-check"},on:{click:e.submitForm}},[e._v("保 存")])],1)],1):e._e()},I=[],E={name:"CopyMenu",components:{},props:{zTree:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",srcMenu:{},newMenu:{},moduleInfo:{},dialogFormVisible:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("copyMenu",this.openForm)},beforeDestroy:function(){this.$bus.off("copyMenu",this.openForm)},mounted:function(){},methods:{openForm:function(e,t){this.moduleInfo=e,this.srcMenu=t,this.newMenu.sourceId=t.id,this.newMenu.sysCode=t.sysCode,this.newMenu.replaceFrom="",this.newMenu.replaceTo="",this.dialogFormVisible=!0,this.doing=!1},submitForm:function(){var e=this,t=this;t.doing||this.formValidate((function(){if(e.srcMenu.sysCode===e.newMenu.sysCode){if(e.srcMenu.name===e.newMenu.newName)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenu","同一系统,新菜单名称不能与当前菜单相同"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceFrom)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuForm","同一系统,必须输入菜单代码替换From关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceTo)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuTo","同一系统,必须输入菜单代码替换To关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"})}t.doing=!0,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",params:e.newMenu,url:e.moduleInfo.copyModuleUrl}).then((function(n){if("success"===n.code){var a=e.zTree.getNodeByParam("id",e.srcMenu.parentId,null),o="";while(null!==a&&a.moduleLevel>=1)o=a.name+"/"+o,a=a.getParentNode();e.$emit("refreshTreeData",n.body.listdata),e.$alert(e.$tx("ecwplat.sysSetup.replaceSuccess",{newName:o+e.newMenu.newName},"复制成功,新菜单名称为:{newName}"),{type:"success"}),e.closeDialog()}else t.doing=!1,e.$alert(n.message,{type:"error"})}))}))},closeDialog:function(){this.srcMenu={},this.newMenu={},this.moduleInfo={},this.dialogFormVisible=!1}}},$=E,P=(0,m.A)($,O,I,!1,null,"2a346ced",null),j=P.exports,F=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[t("MenuItemForm",{attrs:{vo:e.vo,"can-edit":0,sys:e.sys}}),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addSubmenu",expression:"'addSubmenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu()}}},[e._v("新增子菜单")]),null!=e.sys&&e.sys.passenger&&0!==e.sys.passenger.workflow&&e.vo.moduleLevel<=2?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addApprMenu",expression:"'addApprMenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu("wflowMenus")}}},[e._v("新增审批菜单组")]):e._e(),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"modifyMenu",expression:"'modifyMenu'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editMenu}},[e._v("修改菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"copyMenu",expression:"'copyMenu'"}],attrs:{plain:"",icon:"el-icon-document-copy"},on:{click:e.copyMenu}},[e._v("复制菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")])],1)],1),e.forceUpdate?e._e():t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"append-to-body":!0,"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("MenuItemForm",{attrs:{vo:n?n.vo:e.formVo,"can-edit":n?n.canEdit:1,"module-info":e.moduleInfo,"new-menu-type":e.newMenuType,sys:e.sys}})]}}],null,!1,440819207)}),t("ExportModuleCode"),t("ImportModuleCode")],1)},H=[],B={name:"ModuleMenu",components:{MenuItemForm:k},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},sys:{type:Number,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"meunItem",title:1===this.vo.moduleLevel?this.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"):this.$tx("ecwplat.Common.leftMenuConfiguration","左导航菜单配置"),moduleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew",insertUrl:"base/menuMgr/insertModuleAndPermissions",getByIdUrl:"base/menuMgr/getById",updateUrl:"base/menuMgr/updateModuleAndPermissions",delUrl:"base/menuMgr/deleteModuleAndPermissions",copyModuleUrl:"base/menuMgr/copyModuleAndPermissions",winWidth:1080,winHeight:600},formVo:null,newMenuType:null}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){var e=this;if(this.sys.sysCode!==this.vo.sysCode){var t=this.$vnode.context.treeData.filter((function(t){return t.sysCode===e.vo.sysCode&&!t.pId}));t.length>0&&(this.sys=t[0])}},methods:{addMenu:function(e){if(this.newMenuType=e,this.vo.moduleLevel>1&&0!==this.vo.leafFlag)this.$alert(this.$tx("ecwplat.meunItem.menuTip",{voName:this.vo.name},"".concat(this.vo.name,"不是文件夹菜单,不能创建子菜单。")),{type:"warning"});else if(this.vo.passenger.disallowAddSubMenu)this.$alert(this.$tx("ecwplat.meunItem.notAllMenu",{voName:this.vo.name},"".concat(this.vo.name,"下不允许创建子菜单。")),{type:"warning"});else{var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?sysCode="+this.vo.sysCode+"&menuType="+(e||"")+"&parentId=",void 0!==this.vo.sysLicense?this.moduleInfo.addNewUrl=t:this.moduleInfo.addNewUrl=t+this.vo.id,this.$bus.emit("openBusiform",this.moduleInfo,null,1)}},editMenu:function(){this.newMenuType=null,this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},copyMenu:function(){this.$bus.emit("copyMenu",this.moduleInfo,this.vo)},deleteMenu:function(e){var t=this,n=this.$tx("ecwplat.meunItem.delMenu",{nodeName:e.name},"确认删除“".concat(e.name,'"吗?'));e.children&&e.children.length>0&&(n=this.$tx("ecwplat.meunItem.isDelMenu",{nodeName:e.name},"确认删除“".concat(e.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(n){if("success"===n.code){var a=e.getParentNode();t.zTree.removeNode(e),t.zTree.selectNode(a),t.$bus.emit("updateTreeNode",a),t.$message.success(n.message)}else t.$alert(n.message,{type:"error"})}))}))},exportMenu:function(){var e=this,t=this.zTree.getSelectedNodes(),n=null,a=this.vo.parentName+this.vo.name;t.length>1&&(a="",t.forEach((function(e){if(""!==a)a+="、";else{var t=e.getParentNode();a=t.name+"/",n=t.name}a+=e.name})));var o=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),o,(function(a){if("success"===a.code){var o=a.value;o.menuName=n,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:t,params:o,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var n='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+n,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))},onBasicFormBeforeOpen:function(e,t,n){var a="";null!==t.updateTime?a=this.vo.parentName:"0"===t.parentId?(t.moduleLevel=1,a=t.sysName,t.status=1,t.leafFlag=0):(t.status=1,t.leafFlag=null===t.leafFlag?0:t.leafFlag,2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target&&(t.target="leftMenuItem"),a=this.vo.parentName+this.vo.name),t.parentName=a,this.formVo=t,n.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,n){null===t.leafType&&(t.href=""),n.resolve(!0)},onBasicFormSubmited:function(e,t){void 0!==t.pId&&null!==t.pId||("0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId),t.passenger.wflowMenuItems?this.$vnode.context.loadSysSetup(t.orgCode):(this.$vnode.context.sysSetupList&&1===t.moduleLevel&&0===t.topFlag&&this.$vnode.context.sysSetupList.forEach((function(e){e.sysCode===t.sysCode&&(t.orderNo=e.orderNo+"/"+t.orderNo)})),this.$bus.emit("updateTreeNode",t)),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo}}},U=B,R=(0,m.A)(U,F,H,!1,null,"07439568",null),W=R.exports,V=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showToolbar?t("div",{staticClass:"data-table-container"},[t("toolbar")],1):e._e(),t("div",{directives:[{name:"loading",rawName:"v-loading",value:!e.showFrame,expression:"!showFrame"}],class:e.showFrame?"":"loading"},[t("iframe",{directives:[{name:"show",rawName:"v-show",value:e.showFrame,expression:"showFrame"}],ref:"iframe",attrs:{src:e.src,width:"100%",height:"100%",frameborder:"0"}})])])},z=[],J={name:"FrameLoader",props:{src:{type:String,default:""}},data:function(){return{shwoToolbar:!1,showFrame:!1}},created:function(){var e=this.$route.meta;e&&!this.src&&(this.src=e.href),this.$route.meta&&"rightLabel"===this.$route.meta.parentTarget&&(this.showToolbar=!0)},mounted:function(){var e=this;this.$refs["iframe"].onload=function(){setTimeout((function(){var t=document.querySelector(".main-scrollbar").clientHeight;t=e.showToolbar?t-50-20-32-15-4:t-50-20-4,e.$refs["iframe"].style.height=t+"px",e.$refs["iframe"].style.minHeight="unset",e.showFrame=!0}),1e3)}}},q=J,G=(n(9292),(0,m.A)(q,V,z,!1,null,"69610664",null)),K=G.exports;v.install=function(e){e.component(v.name,v)},C.install=function(e){e.component(C.name,C)},j.install=function(e){e.component(j.name,j)},W.install=function(e){e.component(W.name,W)},K.install=function(e){e.component(K.name,K)};var Q=K,Z=n(4466),X=n(4195),ee=X.showTopMenus,te={routes:[]},ne={SET_ROUTES:function(e,t){e.routes=t}},ae={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e,a){window.$user.findNavMenus(t).then((function(t){var a=window.$loadComponent("@/wapp/common/layout/index"),o=[],i=t.body.listdata.filter((function(e){if(1===e.moduleLevel)return!0}));if(i.forEach((function(e){var n=a;!e.href||"@/"!==e.href.substring(0,2)&&"#/dcontent"!==e.href.substring(0,10)||"_top"!==e.target||(n=window.$loadComponent(e.href));var i=re(n,e,null,null,null);o.push(i);var r=ie(n,t.body.listdata,e,null,null);o=o.concat(r)})),void 0!==t.body.wappRoutes&&null!==t.body.wappRoutes)for(var r in t.body.wappRoutes)oe(o,t.body.wappRoutes[r]);n("SET_ROUTES",o);var s=location.href.split("#")[1];-1===s.indexOf("/lm/")&&-1===s.indexOf("/portal")&&-1===s.indexOf("/0/")||Z.A.connectWebSocket(window.$wapp),e(o)})).catch((function(e){a(e)}))}))},updateRoutes:function(e,t){var n=e.commit;n("SET_ROUTES",t)}};function oe(e,t){t.forEach((function(t){t.component=window.$loadComponent(t.component),e.push(t),void 0!==t.children&&null!==t.children&&oe(e,t.children)}))}function ie(e,t,n,a,o,i){var r=[],s=t.filter((function(e){if(e.parentId===n.id)return!0}));return s.forEach((function(s){2===s.moduleLevel&&(a=s.code),3===s.moduleLevel?(o=s.name,i=(s.i18nCode||s.code).replace(".svg","")):4!==s.moduleLevel||s.target||(s.target="rightLabel");var l=re(e,s,a,o,i);l.meta.parentTarget=n.target,0===s.leafFlag&&(l.children=ie(e,t,s,a,o,i),("rightLabel"===s.target||s.moduleLevel>=3&&"leftMenuItem"!==s.target)&&l.children.length>0?(l.children.forEach((function(e,t){e.hidden=!0,"rightLabel"===s.target&&(e.meta.parentTarget="rightLabel"),e.meta.activeMenu=l.meta.activeMenu||l.path})),""!==l.meta.href&&"#"!==l.meta.href||(l.redirect=l.path+"/"+l.children[0].path)):3===s.moduleLevel&&"leftMenuItem"===s.target&&l.children.forEach((function(e,t){e.meta.activeMenu=l.meta.activeMenu+"/"+e.path}))),r.push(l)})),r}function re(e,t,n,a,o){var i=!1,r="/lm/"+t.id,s=t.code,l=null;1===t.moduleLevel?(i=!0,r="/tm/"+t.id):2===t.moduleLevel?i=ee:(null!==t.wfName&&""!==t.wfName||(s=null),l="/lm/"+t.parentId+"/"+t.id,r=t.id);var d=t.href||"#",c=null;c=-1!==d.indexOf("?")?d.substring(d.indexOf("?")+1):null;var u=e;if(null!==d&&"@/"===d.substring(0,2))u=window.$loadComponent(d),d=d.split("?")[0];else if(null!==d&&"#/dcontent/"===d.substring(0,11)){var f=d.substring(11);-1===f.indexOf("?")?f+=".vue?sysCode="+t.sysCode:f=d.substring(11).split("?")[0]+".vue?sysCode="+t.sysCode+"&"+d.substring(11).split("?")[1],u=0===f.indexOf("portalpage/")||0===f.indexOf("vuereportpage/")||5===t.leafType?window.$loadComponent("#/dcontent/"+f):window.$loadComponent("#/dcontent/vuelistpage/"+f),d=d.split("?")[0]}else null!==d&&"http"===d.substring(0,4)?u=Q:t.moduleLevel>2&&(u=window.$loadComponent("@/wapp/common/layout/components/Blank"));1!==t.leafFlag||t.target&&"leftMenuItem"!==t.target||(1===t.moduleLevel?t.target="mainpage":t.target="content");var p={path:r,component:u,name:t.id,alias:t.name,hidden:i,alwaysShow:2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target,meta:{id:t.id,componentUrl:u.componentUrl,lazy:u.lzay,title:t.name,description:t.description,busiType:t.busiType,icon:s,code:t.code,i18nCode:(t.i18nCode||t.code).replace(".svg",""),level:t.moduleLevel,topFlag:t.topFlag,href:d,target:t.target,params:c,parentId:t.parentId,parentIconCode:n,parentTitle:a,parentI18nCode:o,activeMenu:l,wfName:t.wfName,wfNodeName:t.wfNodeName,wfEngineUrl:t.wfEngineUrl,sysCode:t.sysCode}};if(t.href&&"#"!==t.href&&t.moduleLevel<=2&&("content"===t.target||"mainpage"===t.target)){p.path="/lm/"+t.parentId+"/"+t.id,p.hidden=!1,p.meta.level=t.moduleLevel+1;var m={path:"/lm/"+t.parentId+"/"+t.id+"/"+Math.random(),component:e,hidden:i,meta:{id:t.id,title:t.name,i18nCode:(t.i18nCode||t.code).replace(".svg",""),busiType:t.busiType,icon:t.code,level:t.moduleLevel,parentId:t.parentId,target:t.target,breadcrumb:!1,sysCode:t.sysCode},children:[p]};1===t.moduleLevel&&(m.path="/"+t.parentId,m.meta.topFlag=t.topFlag,m.meta.target="mainpage",m.hidden=!0,m.children[0].path=t.id,m.children[0].hidden=!0,m.children[0].meta.parentId=t.id),p=m}return p}var se={namespaced:!0,state:te,mutations:ne,actions:ae}},4578:function(e,t,n){"use strict";n.r(t);var a=n(1631),o=n(4195),i=o.title,r=o.showSettings,s=o.tagsView,l=o.fixedHeader,d=o.showTopMenus,c=o.stripeTable,u={title:i,theme:a.theme,showSettings:r,tagsView:s,fixedHeader:l,showTopMenus:d,stripeTable:c},f={CHANGE_SETTING:function(e,t){if(t.key)e.hasOwnProperty(t.key)&&(e[t.key]=t.value);else for(var n in t)e.hasOwnProperty(n)&&(e[n]=t[n])}},p={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:u,mutations:f,actions:p}},6575:function(e,t,n){"use strict";function a(e){return r(e)||i(e)||f(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function r(e){if(Array.isArray(e))return p(e)}function s(e,t){return c(e)||d(e,t)||f(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,i,r,s=[],l=!0,d=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){d=!0,o=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(d)throw o}}return s}}function c(e){if(Array.isArray(e))return e}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw i}}}}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}n.r(t);var m={visitedViews:[],cachedViews:[]},h={ADD_VISITED_VIEW:function(e,t){var n={};n.title=t.meta.tagTitle||t.meta.title||"no-name",n.path=t.path,n.fullPath=t.fullPath,n.meta=JSON.parse(JSON.stringify(t.meta)),n.query=JSON.parse(JSON.stringify(t.query)),n.params=JSON.parse(JSON.stringify(t.params)),t.query&&t.query.tagTitle&&(n.title=decodeURI(t.query.tagTitle));for(var a=0;a<e.visitedViews.length;a++){var o=e.visitedViews[a];if(o.path===t.path){if(o.clone){if(o.fullPath===t.fullPath)return;e.visitedViews.splice(a,1),e.cachedViews.splice(a--,1)}else{if(-1===t.fullPath.indexOf("itemurl="))return;t.query.tagTitle?n.title=decodeURI(t.query.tagTitle):n.title="正在打开..",n.meta.tagTitle=n.title}-1!==t.fullPath.indexOf("itemurl=")&&(n.clone=!0)}}e.visitedViews.push(n)},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.fullPath)||t.meta.noCache||e.cachedViews.push(t.fullPath)},DEL_VISITED_VIEW:function(e,t){var n,a=u(e.visitedViews.entries());try{for(a.s();!(n=a.n()).done;){var o=s(n.value,2),i=o[0],r=o[1];if(r.fullPath===t.fullPath){e.visitedViews.splice(i,1);break}}}catch(l){a.e(l)}finally{a.f()}},DEL_CACHED_VIEW:function(e,t){var n,a=u(e.cachedViews);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o===t.fullPath){var i=e.cachedViews.indexOf(o);e.cachedViews.splice(i,1);break}}}catch(r){a.e(r)}finally{a.f()}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.fullPath===t.fullPath}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n,a=u(e.cachedViews);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o===t.fullPath){var i=e.cachedViews.indexOf(o);e.cachedViews=e.cachedViews.slice(i,i+1);break}}}catch(r){a.e(r)}finally{a.f()}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,a=u(e.visitedViews);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.fullPath===t.fullPath){o=Object.assign(o,t);break}}}catch(i){a.e(i)}finally{a.f()}}},v={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:a(o.visitedViews),cachedViews:a(o.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(a(o.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(a(o.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:a(o.visitedViews),cachedViews:a(o.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(a(o.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(a(o.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:a(o.visitedViews),cachedViews:a(o.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(a(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(a(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:m,mutations:h,actions:v}},4466:function(e,t){"use strict";var n=location.host;n="".concat(location.protocol.indexOf("https")>-1?"wss://":"ws://","/").concat(n,"/webSocket/");var a=!1,o=null,i=null,r=null;function s(e){if(!a){i=e;var t=window.ReconnectingWebSocket;if(t&&i.$settings.websocketAutoConnection){a=!0;var s=e.$store.getters.loginUser,p=[],m={debug:!0,reconnectInterval:3e3,reconnectDecay:2,maxReconnectInterval:3e5,maxRetries:10};i.$setting&&void 0!==i.$setting.webSocketMaxRetries&&(m.maxRetries=i.$setting.webSocketMaxRetries),console.log("创建连接===",n+s.userId+"_"+(window.deviceId||"web")),o=new t(n+s.userId+"_"+(window.deviceId||"web"),p,m),o.onerror=function(t,n){a=!1,console.log("websocket连接错误===",t,n),e.$bus.emit("webSocketError",t)},o.onopen=function(t){console.log("websocket连接成功"),a=!0,f(i.$store.getters.loginUser,window.$auth.getTicket()),e.$bus.emit("webSocketOpen",t)},o.onmessage=function(t){var n=JSON.parse(t.data);"heartBeat"!==n.body.type&&("212"===n.body.type&&(null!==r&&(clearInterval(r),r=null),l()),e.$bus.emit("webSocketOnmessage",t))},o.onclose=function(t){console.log("websocket连接断开"),a=!1,e.$bus.emit("webSocketOnClose",t)},e.$bus.on("webSocketClose",l),e.$bus.on("webSocketSend",d),e.$bus.on("reloadWebSocketConnect",c),e.$bus.on("getConnectParams",u),window.onbeforeunload=function(){l()}}}}function l(){o.close()}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};o.send(e),t()}function c(e){null!==r&&(clearInterval(r),r=null),e&&(n=e),null!==o&&l(),a=!1,s(i)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};e({wsurl:n,connect:a})}function f(e,t){r=setInterval((function(){d(JSON.stringify({message:{receipt:!1,fromUser:{userId:e.userId+"_"+(window.deviceId||"web"),userName:e.personName},body:{type:"heartBeat",message:"维持心跳消息"}},ticket:t}))}),3e4)}t.A={connectWebSocket:s}},1099:function(e){e.exports={ecmapp:{common:{unsupported:"Unsupported file format!",pWriteOpinion:"Please fill in the handling opinion.",cancelSave:"Cancel Save",searchFor:"{searchFocus} Search",advancedSearch:"Advanced Search",category:"Category",dateRange:"Date Range:",timeFrame:"Time Frame",refreshSuccessful:"Refresh Successful",clickReload:"Request failed, click to reload",enterMainText:"Please enter the main text",toBeDealt:"To Be Dealt",alreadyDone:"Already Done",draft:"Draft",inProgress:"In Progress",end:"End",nothing:"Nothing",rename:"Rename"},message:{sureDelete:"Are you sure you want to delete {label}?",sureDeleteSelected:"Are you sure you want to delete the selected data?",selectNeedRows:"Please select the data that needs to be {dataType}!",sureDeleterAttach:"Are you sure you want to delete the selected attachments?",cannotBeUpload:"The file “{fileName}” already exists and cannot be uploaded with the same name.",fileUploadSuccess:"File content uploaded successfully!",needUploadFile:"Please select the attachments to upload!",noSelNeedUploadFile:"No attachments selected for upload",noTobeUploadFile:"No attachments to upload",attchUploadFile:"All attachments uploaded successfully",notSupportedFile:"Unsupported file format."},pdfTools:{selectSignature:"Select Signature",addSgnature:"Add Signature",firstAddSgnature:"No available signatures yet, please add a signature first!",firstUploadSeal:"No seal available yet, please upload a seal first!",loadingWait:"Loading, please wait...",signaturing:"Signing...",stamping:"Stamping...",electronicSeal:"Electronic Seal",fields:{sealAccount:"Seal Account",inputSealAccount:"Please enter the seal account",sealPassword:"Seal Password",inputSealPassword:"Please enter the seal password"},selectSeal:"Select Seal",stampPageNumber:"Stamp Page Number",singlePage:"Single Page Stamp",multiplePage:"Multiple Page Stamp",pagingSeal:"Folded Stamp"},pageBtns:{open:"Expand",fold:"Fold",retract:"Collapse"},selectDialog:{selected:"Selected: {selectedCount}",currentlySelected:"Currently Selected",nonePersonal:"No personnel available",personnelSelection:"Personnel Selection",selectPersonnel:"Select Personnel",byInstitution:"By Institution",byPosition:"By Position",byGroup:"By Group",byCommonGroup:"By Common Group"},wflowform:{fields:{fileTitle:"File Title",fileType:"File Type",prevStep:"Previous Processing Step",prevHandler:"Previous Step Handler",addStep:"Add Processing Step",addHandler:"Add Step Handler",addLimt:"Add Step Processing Deadline",zdLimt:"Specify Step Processing Deadline",defineSteps:"Define Process Steps",writeOpinion:"Fill in Opinion",curUserIdea:"Processing Opinion",submitPath:"Submission Path",handleLimint:"Processing Deadline",assistHandling:"Assisted Document Processing",selectTemplate:"Select Processing Template",saveTemplate:"Save Processing Template",selectReminderMethod:"Select Reminder Method",smsNotice:"SMS Notification",stayTuned:"Stay Tuned",processLog:"Process Log",linkName:"Step Name",taskType:"Task Type",handleMethod:"Handler Selection Method",zdPersonal:"Designated Personnel for Handler",zdDept:"Designated Department for Handler",zdGroup:"Designated Group for Handler",zdJobPostion:"Designated Position for Handler",editPermissions:"Edit Permissions",opinionLabel:"Processing Opinion Label",reviewComments:"Review Comments",returnHistory:"Are you sure you want to return to the previous stage?",submitToNet:"Are you sure to submit to the next stage?"},attachTitle:"{title} ({listlength} items)",attachTitle1:"Attachments: ({item} items)",togetherUpload:"Currently limited to selecting {limitCount} files, this selection includes {valLength} files, for a total of {filelength} files selected.",beyondUpload:"Currently limited to selecting {limitCount} files, this selection includes {valLength} files, for a total of {filelength} files selected.",loadingFile:"Loading main file...",noBodyFile:"No main content available",downloadView:"Click to download and view",currentVersion:"Current Version",historicalVersion:"Historical Version",descriptionText:"Description Text",coverMainText:"Re-uploading will overwrite the existing main content. Do you confirm?",alreadlyRed:"This document has already been marked in red. After re-editing the main content, it needs to be marked in red again! Do you want to continue?",errFileFormat:"The file format you uploaded is incorrect. Only {accept} format files are supported!",delCurrentVersion:"Are you sure you want to delete the current version file?",delHistoricalVersion:"Are you sure you want to delete the historical version file?",viewAll:"View all",viewAllOpinions:"View all opinions",handlingSuggestions:"Handling Suggestions",notActivated:"Instant messaging feature not activated",notActivated1:"{staffName} has not activated the instant messaging feature",specifyLimit:"Specify deadline",endless:"No deadline",pSelectAddHandler:"Please select the new step handler!",addStepLimit:"Please specify the handling deadline!",pSelectLimit:"Please select the processing deadline",addProcessor:"Add Handler",batchTransfer:"Batch Transfer",titleHandler:"{title} Handler",successfullyCompleted:"{winTitle} completed successfully!",outwardPeople:"Outward Personnel",sendToMe:"Send to Myself",selectAgent:"Select Agent",selectedOutAgent:"Outward agent selected.",submitHandle:"Submit Handling",ideaShowScope:"Reader of opinions",stagingComOpinion:"Temporarily save handling opinion",personalOpinions:"Personal Common Opinions",saveComOpinion:"Save Common Opinion",noComOpinion:"No common opinions available.",selectComOpinion:"Select Common Opinion",alreadlyHave:"The opinion already exists. Do you confirm using the common opinion?",opinionattach:"Opinion Attachment",pSubmitPath:"Please select submission path",selectedPeople:"Currently selected: {dataType} person(s)",byWorkDay:"By Workday",byNaturalDay:"By Natural Day",noTemplate:"No processing template available.",reminderMethod:"Reminder Method",stepSetting:"Step Settings",remind:"Remind",processingTime:"Processing Time: {time}",startTime:"Start Time: {time}",completionTime:"Completion Time: {time}",limitTime:"Processing Deadline: {time}",timeOut:"Timeout Duration: {time}",todoTime:"Processing Duration: {time}",processing:"Processing",returnBack:"Return",takBack:"Retrieve",wantToRetrieve:"Are you sure you want to retrieve the document?",addReaders:"Add Reader",addReadersSuccess:"Readers successfully added!",sureReaded:"Do you confirm that you have read it?",singlePerson:"Single Person",multiplayerParallel:"Multiple People in Parallel",multiPersonSignature:"Multiple People Sign",multiplayerSerial:"Multiple People in Series",multiplayerCompetition:"Multiple People in Competition",multiPersonReading:"Multiple People Reading",designatedPersonnel:"Designated personnel",byDepartment:"By Department",byWorkgroup:"By Workgroup",byJobPosition:"By job position",byJobRank:"By job rank",byHistoryTNUser:"By history user",textTip:"Confirm",writReviewComments:"Please fill in review comments",noWritReview:"Your reading record does not exist; you cannot fill in review comments."}}}},6128:function(e){e.exports={}},1954:function(e,t,n){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 o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=l(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=n(1099),c=n(2199),u=n(6128),f=n(6729),p={en:i({},d),zhCN:i({},c),es:i({},u),ja:i({},f)};e.exports=i({},p)},6729:function(e){e.exports={}},2199:function(e){e.exports={ecmapp:{common:{unsupported:"不支持的文件格式!",pWriteOpinion:"请填写处理意见。",cancelSave:"取消保存",searchFor:"{searchFocus}搜索",advancedSearch:"高级搜索",category:"类别",dateRange:"日期范围:",timeFrame:"时间范围",refreshSuccessful:"刷新成功",clickReload:"请求失败,点击重新加载",enterMainText:"请输入正文",toBeDealt:"待办",alreadyDone:"已办",draft:"草稿",inProgress:"在办",end:"结束",nothing:"无",rename:"重命名"},message:{sureDelete:"您是否确认删除{label}?",sureDeleteSelected:"您是否确认删除选择的数据?",selectNeedRows:"请选择需要{dataType}的数据!",sureDeleterAttach:"您是否确认删除选择的附件?",cannotBeUpload:"文件“{fileName}”已存在,不允许上传重名文件。",fileUploadSuccess:"文件正文上传成功!",needUploadFile:"请选择需要上传的附件!",noSelNeedUploadFile:"没有选择需要上传的附件",noTobeUploadFile:"没有待上传附件",attchUploadFile:"附件全部上传成功",notSupportedFile:"不支持的文件格式。"},pdfTools:{selectSignature:"选择签名",addSgnature:"添加签名",firstAddSgnature:"暂无可用签名,请先添加签名!",firstUploadSeal:"暂无印章,请先上传印章!",loadingWait:"正在加载,请稍候...",signaturing:"正在签名...",stamping:"正在盖章...",electronicSeal:"电子印章",fields:{sealAccount:"印章账号",inputSealAccount:"请输入印章账号",sealPassword:"印章密码",inputSealPassword:"请输入印章密码"},selectSeal:"选择印章",stampPageNumber:"盖章页码",singlePage:"页码签单页",multiplePage:"页码签多页",pagingSeal:"骑缝章"},pageBtns:{open:"展开",fold:"折叠",retract:"收起"},selectDialog:{selected:"已选择:{selectedCount}",currentlySelected:"当前已选择",nonePersonal:"暂无人员",personnelSelection:"人员选择",selectPersonnel:"选择人员",byInstitution:"按机构",byPosition:"按岗位",byGroup:"按群组",byCommonGroup:"按常用组"},wflowform:{fields:{fileTitle:"文件标题",fileType:"文件类型",prevStep:"上一处理环节",prevHandler:"上一环节处理人",addStep:"新增处理环节",addHandler:"新增环节处理人",addLimt:"新增环节处理时限",zdLimt:"指定环节处理时限",defineSteps:"定义流程环节",writeOpinion:"填写意见",curUserIdea:"处理意见",submitPath:"提交路径",handleLimint:"处理时限",assistHandling:"辅助办文",selectTemplate:"选择办理模板",saveTemplate:"保存办理模板",selectReminderMethod:"选择提醒方式",smsNotice:"短信通知",stayTuned:"保持关注",processLog:"流程日志",linkName:"环节名称",taskType:"任务类型",handleMethod:"处理人选择方式",zdPersonal:"处理人指定人员",zdDept:"处理人指定部门",zdGroup:"处理人指定群组",zdJobPostion:"处理人指定岗位",editPermissions:"编辑权限",opinionLabel:"处理意见标签",reviewComments:"批阅意见"},attachTitle:"{title}({listlength}个)",attachTitle1:"附件:({item}个)",togetherUpload:"当前限制选择{limitCount}个文件,本次选择了{valLength}个文件,共选择了{filelength}个文件",beyondUpload:"当前限制选择{limitCount}个文件,本次选择了{valLength}个文件,共选择了{filelength}个文件",loadingFile:"正在加载正文文件...",noBodyFile:"暂无正文",downloadView:"点击下载查看",currentVersion:"当前版本",historicalVersion:"历史版本",descriptionText:"描述文字",coverMainText:"重新上传会覆盖现有正文,是否确认?",alreadlyRed:"该公文已经套红,重新编辑正文后需要重套红!是否继续?",errFileFormat:"您上传的文件格式有误,仅支持{accept}格式的文件!",delCurrentVersion:"您是否确认删除当前版本文件?",delHistoricalVersion:"您是否确认删除历史版本文件?",viewAll:"查看全部",viewAllOpinions:"查看全部意见",handlingSuggestions:"处理意见",notActivated:"未开通即时通信功能",notActivated1:"{staffName}未开通即时通信功能",specifyLimit:"指定时限",endless:"无时限",pSelectAddHandler:"请选择新增环节处理人!",addStepLimit:"请指定办理时限!",pSelectLimit:"请选择处理时限",addProcessor:"添加处理人",batchTransfer:"批量转派",titleHandler:"{title}处理人",successfullyCompleted:"{winTitle}已成功!",outwardPeople:"外出人",sendToMe:"送本人",selectAgent:"选择代理人",selectedOutAgent:"已选择外出代理人。",submitHandle:"提交办理",ideaShowScope:"意见可见范围",stagingComOpinion:"暂存处理意见",personalOpinions:"个人常用意见",saveComOpinion:"保存常用意见",noComOpinion:"暂无常用意见。",selectComOpinion:"选择常用意见",alreadlyHave:"意见已存在,是否确认使用常用意见?",opinionattach:"意见附件",pSubmitPath:"请选择提交路径",selectedPeople:"当前已选:{dataType}人",byWorkDay:"按工作日",byNaturalDay:"按自然日",noTemplate:"暂无办理模板。",reminderMethod:"提醒方式",stepSetting:"环节设置",remind:"提醒",processingTime:"处理时间:{time}",startTime:"开始时间:{time}",completionTime:"完成时间:{time}",limitTime:"处理时限:{time}",timeOut:"超时时长:{time}",todoTime:"办理时长:{time}",processing:"处理中",returnBack:"退回",takBack:"收 回",wantToRetrieve:"您是否确认要收回文件?",addReaders:"添加阅文人",addReadersSuccess:"已成功添加阅文人!",sureReaded:"您是否确认已阅?",singlePerson:"单人",multiplayerParallel:"多人并行",multiPersonSignature:"多人会签",multiplayerSerial:"多人串行",multiplayerCompetition:"多人竞争",multiPersonReading:"多人阅文",textTip:"确定",writReviewComments:"请填写批阅意见",noWritReview:"您的阅文记录不存在,不能填写批阅意见",returnHistory:"您是否确认驳回到上一环节?",submitToNet:"您是否确认提交下一环节?"}}}},4195:function(e){e.exports={title:"",showSettings:!1,tagsView:!0,fixedHeader:!1,showTopMenus:!0}},8075:function(e,t,n){"use strict";var a=n(453),o=n(487),i=o(a("String.prototype.indexOf"));e.exports=function(e,t){var n=a(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},487:function(e,t,n){"use strict";var a=n(6743),o=n(453),i=n(6897),r=n(9675),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),d=o("%Reflect.apply%",!0)||a.call(l,s),c=n(655),u=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new r("a function is required");var t=d(a,l,arguments);return i(t,1+u(0,e.length-(arguments.length-1)),!0)};var f=function(){return d(a,s,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},3919:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-datetime-field[data-v-9c6da034]{position:relative}.van-datetime-field[data-v-9c6da034]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},3385:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-file-field[data-v-6bd6eea1]{position:relative}.van-file-field[data-v-6bd6eea1]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attach-delete-icon[data-v-6bd6eea1]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.attach-delete-icon .van-icon[data-v-6bd6eea1]{line-height:24px;margin-left:5px;font-size:16px}',""]),t["default"]=s},1705:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-textarea-field[data-v-67219e88]{position:relative}.van-textarea-field[data-v-67219e88]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}[data-v-67219e88] .van-cell-field-title{height:44px}[data-v-67219e88] .idea-content{width:100%}[data-v-67219e88] .idea-content .ideaDiv{margin:5px 0}[data-v-67219e88] .idea-content .ideaDiv p{margin-top:0;margin-bottom:0}[data-v-67219e88] .idea-content .ideaDiv span{display:inline-block}[data-v-67219e88] .idea-content .ideaDiv .handwritingIdea{width:200px}[data-v-67219e88] .idea-content .ideaDiv .ideaSignature{max-width:100px;max-height:50px}[data-v-67219e88] .idea-content .van-icon{font-size:20px}[data-v-67219e88] .idea-content .can-delete-idea{float:right;margin-top:-28px}[data-v-67219e88] .idea-content .can-delete-idea i{color:red;cursor:pointer;font-size:16px}',""]),t["default"]=s},2265:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-input-field[data-v-03561330]{position:relative}.van-input-field[data-v-03561330]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-field__body_suffix[data-v-03561330] .van-field__body:after{color:#323233;content:attr(value-suffix);line-height:22px}.van-field__body_suffix[data-v-03561330] .van-field__body .van-field__control{-webkit-box-flex:1;-ms-flex:1;flex:1}[data-v-03561330] .van-cell__right-icon{padding-left:10px}',""]),t["default"]=s},846:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-select-field[data-v-565de7b0]{position:relative}.van-select-field[data-v-565de7b0]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},2508:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-switch-field[data-v-316c7b70]{position:relative}.van-switch-field[data-v-316c7b70]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},979:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-textarea-field[data-v-7c9af7ac]{position:relative}.van-textarea-field[data-v-7c9af7ac] .van-field__label{width:90%!important}.van-textarea-field[data-v-7c9af7ac]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.richtext-content[data-v-7c9af7ac]{width:100%;white-space:pre-wrap}.richtext-content[data-v-7c9af7ac] img{-o-object-fit:contain;object-fit:contain;max-width:100%!important;height:auto!important}.richtext-content-hidden[data-v-7c9af7ac]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.van-textarea-field[data-v-7c9af7ac] .field-flSubject .richtext-content,.van-textarea-field[data-v-7c9af7ac] .field-flSubject textarea.van-field__control{font-size:16px;font-weight:700}',""]),t["default"]=s},5073:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".busi-form-container[data-v-490ac5ca]{background-color:#f7f8fa;height:100%;position:relative;z-index:10}",""]),t["default"]=s},8265:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".van-skeleton[data-v-60fd66f2]{margin-top:20px}",""]),t["default"]=s},1564:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(8315),l=r()(o());l.i(s.A),l.push([e.id,'.table-search .search_out_div[data-v-7908bea2]{display:-webkit-box;display:-ms-flexbox;display:flex}.table-search .search_out_div .search-slot-container[data-v-7908bea2]{word-break:keep-all}.table-search[data-v-7908bea2] .iconfont-search input[type=search]{font-family:iconfont}.table-search[data-v-7908bea2] .iconfont-search .van-field__left-icon{height:24px}.table-search[data-v-7908bea2] .iconfont-search .icon-search{font-size:14px}.table-search[data-v-7908bea2] .iconfont-search .icon-search:before{content:"\\e672";color:#7d7e80}.table-search .p-search[data-v-7908bea2]{position:relative}.table-search .p-search[data-v-7908bea2]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.table-search .show-search-key[data-v-7908bea2]{overflow:hidden;position:relative}.table-search .show-search-key[data-v-7908bea2]:after{display:block;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.table-search .show-search-key .show-search-title[data-v-7908bea2]{display:inline-block;max-width:60px;min-width:36px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;margin-right:10px;text-align:center}.table-search .show-search-key .van-cell__title[data-v-7908bea2]{width:100%;overflow:hidden}.table-search .show-search-key .van-cell__title [class*=van-hairline][data-v-7908bea2]:after{bottom:-49%}.table-search .show-search-key .van-cell__title div .show-search-title[data-v-7908bea2]:last-child{margin-right:0}.table-search .show-search-key .show-search-clear[data-v-7908bea2]{display:block;float:right}.table-search .show-search-key .show-search-clear[data-v-7908bea2]:after{content:none}.table-search .search-back[data-v-7908bea2]{position:fixed;bottom:0;width:100%}.table-search .search-back button[data-v-7908bea2]{width:100%}.table-search .van_dropdown-menu_cell .van-search-dropdown-menu[data-v-7908bea2] .van-dropdown-menu__bar{-webkit-box-shadow:none;box-shadow:none;position:relative}.table-search .van_dropdown-menu_cell .van-search-dropdown-menu[data-v-7908bea2] .van-dropdown-menu__bar:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.table-search .open_droup_popup_search[data-v-7908bea2]{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:100;overflow:hidden}.table-search .open_droup_popup_search .droup_down_popup_panel[data-v-7908bea2]{position:relative;background:#fff;border-radius:0 0 8px 8px}',""]),t["default"]=l},7468:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".advancedSearch-selectTime .selectTime[data-v-13fe0b0a]{color:#666;font-size:12px;position:relative}.advancedSearch-selectTime .selectTime .timeinner[data-v-13fe0b0a]{line-height:30px;float:left;width:100%;text-align:center}.advancedSearch-selectTime .selectTime .timebox[data-v-13fe0b0a]{position:relative}.advancedSearch-selectTime .selectTime .timebox input[data-v-13fe0b0a]{padding:4px 10px;border:1px solid #ebedf0;line-height:20px;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.advancedSearch-selectTime .selectTime .timebox[data-v-13fe0b0a] .van-icon{position:absolute;right:0;line-height:30px;width:30px;text-align:center}.block_select .radio-type[data-v-13fe0b0a]{padding:0 5px;line-height:32px;background:#f7f8fa;color:#666;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;text-align:center;border-radius:3px}.block_select .wfTypeKey[data-v-13fe0b0a]{background:#1689fa;color:#fff}",""]),t["default"]=s},8917:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'[data-v-416f359a] .row1 .van-image{height:32px;width:32px;margin-top:5px;margin-right:8px}[data-v-416f359a] .row1 .van-cell__label,[data-v-416f359a] .row1 .van-cell__title{width:calc(100vw - 32px)}[data-v-416f359a] .row2 .van-image{height:48px;width:48px;margin-top:3px;margin-right:8px}[data-v-416f359a] .row2 .left-top,[data-v-416f359a] .row2 .van-cell__label,[data-v-416f359a] .row2 .van-cell__title{width:calc(100vw - 80px)}[data-v-416f359a] .row2 .left-top{float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:16px}[data-v-416f359a] .row2 .right-top{width:0;text-align:right;display:inline-block}[data-v-416f359a] .row2 .left-bottom{width:60%;float:left;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2 .left-bottom .p_name{width:80px;display:inline-block}[data-v-416f359a] .row2 .right-bottom{width:40%;text-align:right;display:inline-block;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-left-icon .left-icon{margin-right:8px}[data-v-416f359a] .row2-left-icon .left-icon .van-image{line-height:48px;height:48px;width:48px}[data-v-416f359a] .row2-left-icon .van-cell__label,[data-v-416f359a] .row2-left-icon .van-cell__title{width:calc(100vw - 80px)}[data-v-416f359a] .row2-left-icon .left-top{width:calc(100vw - 80px);float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:1.1}[data-v-416f359a] .row2-left-icon .right-top{width:0;text-align:right;display:inline-block}[data-v-416f359a] .row2-left-icon .left-bottom{width:60%;float:left;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-left-icon .left-bottom .p_name{width:80px;display:inline-block}[data-v-416f359a] .row2-left-icon .right-bottom{width:40%;text-align:right;display:inline-block;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-noleft-icon .left-icon{display:none}[data-v-416f359a] .row2-noleft-icon .van-cell__label,[data-v-416f359a] .row2-noleft-icon .van-cell__title{width:calc(100vw - 32px)}[data-v-416f359a] .row2-noleft-icon .left-top{width:calc(100vw - 32px);float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:1.1}[data-v-416f359a] .row2-noleft-icon .right-top{width:0;text-align:right;display:inline-block}[data-v-416f359a] .row2-noleft-icon .left-bottom{width:60%;float:left;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-noleft-icon .left-bottom .p_name{width:60px;display:inline-block}[data-v-416f359a] .row2-noleft-icon .right-bottom{width:40%;text-align:right;display:inline-block;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.van-cell__value[data-v-416f359a],[data-v-416f359a] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.van-swipe-cell[data-v-416f359a]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.last_swipe_cell[data-v-416f359a]:after{content:none!important}.add_van_swipe_cell[data-v-416f359a] .row2-left-icon .van-cell:after,.add_van_swipe_cell[data-v-416f359a] .row2-noleft-icon .van-cell:after{content:none}.add_van_swipe_cell .van_cell_btn[data-v-416f359a]{padding-top:0}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a]{padding:0 1px;width:100%;text-align:right;font-size:0}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a] .tag_btn{font-size:12px;padding:0 12px;color:#333;min-width:36px;display:inline-block;text-align:center;height:24px;border:0}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a] .tag_btn:not(:last-child){margin-right:10px}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a] .tag_btn:after{border-color:#999}.add_van_swipe_cell .van_cell_btn .van_cell_link[data-v-416f359a]{width:100%;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.add_van_swipe_cell .van_cell_btn .van_cell_link[data-v-416f359a] a{position:relative;color:#1989fa;font-size:12px;-webkit-box-flex:1;-ms-flex:1;flex:1}.add_van_swipe_cell .van_cell_btn .van_cell_link[data-v-416f359a] a:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;top:6.5px;height:11px;border-right:1px solid #eee}.add_tip_cell[data-v-416f359a] .row2-noleft-icon.van-cell:after{content:none}.add_tip_cell[data-v-416f359a] .row2-noleft-icon.van-cell .left-top{width:calc(100vw - 62px)}.add_tip_cell[data-v-416f359a] .row2-left-icon.van-cell:after,.add_tip_cell[data-v-416f359a] .row2-left-icon.van-cell:after:after{content:none}.add_tip_cell .cell_div .cell_tip_btns_out[data-v-416f359a]{position:absolute;font-size:24px;color:#bbb;top:10px;right:16px;line-height:15px;z-index:10}.popup_tip_btn[data-v-416f359a]{border:1px solid #eee;border-radius:5px;padding:10px;font-size:12px;color:#333;position:absolute;background:#fff;min-width:60px}.popup_tip_btn[data-v-416f359a]:before{position:absolute;content:"";top:-10px;right:7px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:1px solid #eee;border-top:4px solid transparent;border-bottom-width:6px}.popup_tip_btn p[data-v-416f359a]{position:relative;margin:0;text-align:center;padding-top:10px}.popup_tip_btn p[data-v-416f359a]:not(:last-child){padding-bottom:10px}.popup_tip_btn p[data-v-416f359a]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.popup_tip_btn p[data-v-416f359a]:last-child{padding-top:10px}.popup_tip_btn p[data-v-416f359a]:first-child{padding-top:0}.popup_tip_btn_align[data-v-416f359a]:before{top:auto;bottom:-10px;border-bottom:4px solid transparent;border-top:1px solid #eee;border-top-width:6px}.long_press[data-v-416f359a]{position:relative}.long_press[data-v-416f359a]:not(:last-child):after{left:42px}.long_press .cell_checkbox[data-v-416f359a]{min-width:17px}.long_press .cell_checkbox[data-v-416f359a] .van-checkbox__icon{font-size:16px}.long_press[data-v-416f359a] .cell_div{position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-ms-flexbox;display:flex}.long_press[data-v-416f359a] .cell_div .van-cell{margin-left:10px}.long_press[data-v-416f359a] .cell_div .row2-noleft-icon.van-cell .van-cell__title,.long_press[data-v-416f359a] .cell_div .row2-noleft-icon.van-cell .van-cell__title .left-top,.long_press[data-v-416f359a] .cell_div .row2-noleft-icon.van-cell .van-cell__title .van-cell__label{width:100%}.long_press[data-v-416f359a] .cell_div .row2-left-icon.van-cell .van-cell__title{width:calc(100% - 48px)}.long_press[data-v-416f359a] .cell_div .row2-left-icon.van-cell .van-cell__title .left-top,.long_press[data-v-416f359a] .cell_div .row2-left-icon.van-cell .van-cell__title .van-cell__label{width:100%}.long_press[data-v-416f359a] .cell_div.cell_div_right .van-cell{margin-left:0;margin-right:10px}.long_press_bottom_btn[data-v-416f359a]{height:60px;display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;z-index:10;bottom:0;width:100%;background:#fff}.long_press_bottom_btn[data-v-416f359a]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;top:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.long_press_bottom_btn a[data-v-416f359a]{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center;vertical-align:middle;line-height:60px;font-size:16px;color:#333}.long_press_bottom_btn a .svg-icon-font[data-v-416f359a]{margin-right:3px;position:relative;top:2px}.long_press_bottom_btn a[data-v-416f359a]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;border-right:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5);height:40px;top:10px}.long_press_bottom_btn a .a_btn[data-v-416f359a] .van-icon:before{-webkit-transform:rotate(90deg);transform:rotate(90deg);font-weight:700}.long_press_bottom_btn a[data-v-416f359a] .van-popover__wrapper{width:100%}.long_press_checkall[data-v-416f359a]{position:relative}.long_press_checkall[data-v-416f359a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.long_press_checkall[data-v-416f359a] .van-checkbox__icon{font-size:16px}.long_press_checkall[data-v-416f359a] .van-checkbox__label{font-size:14px;line-height:24px}.long_press_checkall[data-v-416f359a] .van-cell__value{-webkit-box-flex:1;-ms-flex:auto;flex:auto;color:#1989fa}.long_press_checkall .long_press_checkall_right .van-cell__title[data-v-416f359a]{color:#1989fa;-webkit-box-flex:1;-ms-flex:1;flex:1}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value{-webkit-box-flex:0;-ms-flex:none;flex:none}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value .van-checkbox{overflow:hidden;display:block}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value .van-checkbox .van-checkbox__label{margin-left:0;margin-right:8px}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value .van-checkbox .van-checkbox__icon{float:right;margin-top:4px}.listdata-container[data-v-416f359a]{background-color:#fff;height:100%;overflow-y:auto}.listdata-container[data-v-416f359a] .van-cell__title{line-height:1}.listdata-container[data-v-416f359a] .van-cell__label{margin-top:0}.card_listdata[data-v-416f359a]{background:#f9f9f9}.card_listdata .card_cell[data-v-416f359a]{margin-top:10px}.date-cell[data-v-416f359a]{position:relative}.date-cell[data-v-416f359a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.date-cell .van-swipe-cell[data-v-416f359a]:not(:last-child):after{left:86px}.date-cell .van-swipe-cell[data-v-416f359a]:last-child:after{border:0}.cell_div[data-v-416f359a]{padding:14px 16px}.cell_div[data-v-416f359a] .van-cell{padding:0}.cell_div[data-v-416f359a] .van-cell:after{border-bottom:0 solid #fff}.cell_div .van_cell_btn[data-v-416f359a]{padding:0 1px;margin-top:10px}.cell_div[data-v-416f359a] .van-cell__label{line-height:1}.cell_div[data-v-416f359a] .van-cell__label>div:not(:first-child) .left-bottom,.cell_div[data-v-416f359a] .van-cell__label>div:not(:first-child) .right-bottom{margin-top:7px}.cell_div[data-v-416f359a] .van-cell__label>div:first-child .left-bottom,.cell_div[data-v-416f359a] .van-cell__label>div:first-child .right-bottom{margin-top:10px}.listdata-container[data-v-416f359a] .van-swipe-cell__wrapper .van-swipe-cell__right{right:-1px}.listdata-container[data-v-416f359a] .van-swipe-cell__wrapper .van-swipe-cell__right .van-button{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.listdata-container[data-v-416f359a] .up-loading.van-loading{height:50%;text-align:center}.listdata-container[data-v-416f359a] .van-pull-refresh{min-height:100%}.listdata-container[data-v-416f359a] .van-pull-refresh .van-pull-refresh__head .van-loading{height:auto;padding-top:0}[data-v-416f359a] .van-list__loading .van-loading{height:auto!important}.van-action-sheet-scroll[data-v-416f359a] .van-action-sheet__content{height:250px}.van-action_cell_btn[data-v-416f359a]{position:relative}.van-action_cell_btn[data-v-416f359a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-action_cell_btn[data-v-416f359a]:last-child:after{display:none}',""]),t["default"]=s},1436:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(8315),l=r()(o());l.i(s.A),l.push([e.id,"[data-v-ab09df0e] .tab-search{font-size:20px;color:#7d7e80;position:absolute;width:20px;right:20px;line-height:47px;text-align:center;z-index:5}[data-v-ab09df0e] .add-search{top:44px;width:40px;line-height:55px;right:0}.tab-search.nonvtb[data-v-ab09df0e]{width:40px;right:1px;line-height:55px}[data-v-ab09df0e] .show_search .van-tabs__wrap{padding-right:40px;width:calc(100% - 40px)}[data-v-ab09df0e] .show_search.p-search{padding-right:40px}.search-back[data-v-ab09df0e]{position:fixed;bottom:0;width:100%}.search-back button[data-v-ab09df0e]{width:100%}",""]),t["default"]=l},2100:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".floatbtn-group-container[data-v-34d5c6f3]{position:fixed;z-index:2001;text-align:right;width:70px}.floatbtn-group-container .van-button[data-v-34d5c6f3]{height:48px;width:48px;border-radius:50%;margin-right:20px;margin-bottom:5px}.floatbtn-group-container .van-button--hairline[data-v-34d5c6f3]{border-width:1px}",""]),t["default"]=s},6559:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".btn-group-container[data-v-38da20d2]{position:fixed;bottom:0;left:0;z-index:100;width:100%}.btn-group-container .slot-btn-group-container[data-v-38da20d2]{padding:8px 12px;overflow:hidden;background:#f7f8fa}.btn-group-container .slot-btn-group-container .van-button[data-v-38da20d2]{border-radius:3px;font-size:16px}.btn-group-container .slot-btn-group-container[data-v-38da20d2] .van-popover__wrapper .van-button{width:100%;font-size:16px}.btn-group-container .van-icon-play[data-v-38da20d2]{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);color:#969799}",""]),t["default"]=s},1329:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".inner-table-container[data-v-eedaacfa]{padding-bottom:1px;background:#f7f8fa;padding-top:10px;border:0}.inner-table-container[data-v-eedaacfa] .van-nav-bar__title{margin-left:16px}.inner-table-container .inner_table_title[data-v-eedaacfa]:after{content:none}.inner-table-container[data-v-eedaacfa] .van-field__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inner-table-row[data-v-eedaacfa]:first-child{margin-top:0}.inner-table-row[data-v-eedaacfa]{margin-top:10px}.inner-table-row .van-icon[data-v-eedaacfa]{margin-top:4px;margin-left:10px;font-size:16px}.inner-table-add-botton-container[data-v-eedaacfa]{margin:10px 12px}.inner-table-nodata[data-v-eedaacfa]{text-align:center}.van-cell__value--alone[data-v-eedaacfa]{font-weight:400}",""]),t["default"]=s},4689:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-4baca1b9] .popup-body{background:#fff}[data-v-4baca1b9] .van_signList_list .van-cell:after{right:0}[data-v-4baca1b9] .van_signList_list .van-cell__title,[data-v-4baca1b9] .van_signList_list .van-cell__value{display:-webkit-box;display:-ms-flexbox;display:flex}[data-v-4baca1b9] .van_signList_list .van-cell__title .sign_img,[data-v-4baca1b9] .van_signList_list .van-cell__value .sign_img{width:80px;max-height:40px}[data-v-4baca1b9] .van_signList_list .van-cell__title .sign_img img,[data-v-4baca1b9] .van_signList_list .van-cell__value .sign_img img{max-width:100%;max-height:100%}[data-v-4baca1b9] .van_signList_list .van-cell__title .signList_content,[data-v-4baca1b9] .van_signList_list .van-cell__value .signList_content{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;height:100%;margin-left:10px}[data-v-4baca1b9] .van_signList_list .van-cell__title .signList_content div,[data-v-4baca1b9] .van_signList_list .van-cell__value .signList_content div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]),t["default"]=s},5651:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'[data-v-1789b27e] .popup-body{background:#fff}[data-v-1789b27e] .van_seals_list .van-cell:after{right:0}[data-v-1789b27e] .van_seals_list .van-cell__title,[data-v-1789b27e] .van_seals_list .van-cell__value{display:-webkit-box;display:-ms-flexbox;display:flex}[data-v-1789b27e] .van_seals_list .van-cell__title .sela_img,[data-v-1789b27e] .van_seals_list .van-cell__value .sela_img{width:80px;max-height:80px}[data-v-1789b27e] .van_seals_list .van-cell__title .sela_img img,[data-v-1789b27e] .van_seals_list .van-cell__value .sela_img img{width:100%}[data-v-1789b27e] .van_seals_list .van-cell__title .seals_content,[data-v-1789b27e] .van_seals_list .van-cell__value .seals_content{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;height:100%;margin-left:10px}[data-v-1789b27e] .van_seals_list .van-cell__title .seals_content div,[data-v-1789b27e] .van_seals_list .van-cell__value .seals_content div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-1789b27e] .van-dialog__header{padding:0;line-height:52px}.sealAccount[data-v-1789b27e]{position:relative}.sealAccount[data-v-1789b27e]:before{top:0;left:0;z-index:1}.sealAccount[data-v-1789b27e]:after,.sealAccount[data-v-1789b27e]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.sealAccount[data-v-1789b27e]:after{bottom:0;left:16px}.pageList[data-v-1789b27e]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px 20px}.pageList .page-item[data-v-1789b27e]{width:50px;height:40px;line-height:40px;background:#fff;border:1px solid #ddd;margin:5px}.pageList .pageActive[data-v-1789b27e]{background:#1989fa;color:#fff;border-color:#1989fa}',""]),t["default"]=s},3922:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'#bodyfilebox[data-v-a2cfb25a]{position:absolute;width:100%;overflow:hidden}#bodyfilebox[data-v-a2cfb25a]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;top:20;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5);z-index:1}#bodyfilebox .box[data-v-a2cfb25a]{height:100%}#bodyfilebox .box .box-inner[data-v-a2cfb25a]{position:relative;width:100%;height:100%}#bodyfilebox[data-v-a2cfb25a] .van-cell__title{text-align:left}.busi-form-container #bodyfilebox[data-v-a2cfb25a]{height:calc(100vh - 104px - var(--headerHeight))}.busi-form-nobtn-container #bodyfilebox[data-v-a2cfb25a]{height:calc(100vh - 44px - var(--headerHeight))}.bottom-bar[data-v-a2cfb25a]{position:absolute;bottom:20px;width:100%;text-align:center}.bottom-bar .btn-g[data-v-a2cfb25a]:not(:first-child){margin-top:10px}.van-loading[data-v-a2cfb25a]{height:inherit;padding:inherit}',""]),t["default"]=s},9947:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".divNoContainer[data-v-1526925b]{-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:bottom left;transform-origin:bottom left;position:absolute;top:-100vw;height:100vw;width:100vh}.view-container[data-v-1526925b]{position:fixed;top:0;width:100vw;height:100vh;background-color:#fff;z-index:9999}.tool-dv[data-v-1526925b]{position:absolute;bottom:calc(100vw - 38px);left:calc(100vh - 100px);width:100px;height:37px;background-color:#f1f1f1}.docDiv[data-v-1526925b],.iframe[data-v-1526925b]{height:100%;width:100%}.docDiv[data-v-1526925b]{position:relative;background-color:#fff}.buttomDiv[data-v-1526925b]{right:10px}.buttomDiv[data-v-1526925b],.buttomDivD[data-v-1526925b]{float:right;top:7px;z-index:111;position:absolute;background-color:#1a82e3;font-size:10px;width:40px;line-height:25px;color:#fff;text-align:center;border-radius:2px}.buttomDivD[data-v-1526925b]{right:60px}",""]),t["default"]=s},2509:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-e9b9765c] .van-nav-bar__title{margin-left:16px}.popup-body[data-v-e9b9765c]{height:calc(100vh - 46px)}.popup-body[data-v-e9b9765c],.popup-body-nonav[data-v-e9b9765c]{overflow-y:auto;background-color:#f7f8fa}.popup-body-nonav[data-v-e9b9765c]{height:100vh}",""]),t["default"]=s},5031:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"#richtext[data-v-1c8100d7]{overflow-x:hidden;background:#fff;overflow-wrap:break-word;word-break:break-word}#richtext[data-v-1c8100d7] .w-e-toolbar{-ms-flex-wrap:wrap;flex-wrap:wrap;border:0!important;border-bottom:1px solid #eee!important}#richtext[data-v-1c8100d7] .w-e-toolbar .w-e-menu i{color:#333}#richtext[data-v-1c8100d7] .w-e-toolbar .w-e-droplist ul.w-e-list{max-height:150px;overflow-y:auto}#richtext[data-v-1c8100d7] .w-e-text-container{border:0!important;margin:5px}#richtext[data-v-1c8100d7] .w-e-text-container .w-e-text{padding:0;font-size:14px}#richtext[data-v-1c8100d7] .w-e-text-container .placeholder{left:0;top:0}",""]),t["default"]=s},1635:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.popup-content[data-v-2e7fed1a]{height:calc(100vh - 100px - var(--headerHeight));overflow-y:auto}.popup-content .van-cell__title[data-v-2e7fed1a]{margin-left:8px}.van-action-sheet__description[data-v-2e7fed1a]:after{left:0;right:0}.van-action-sheet__item[data-v-2e7fed1a]{position:relative}.van-action-sheet__item[data-v-2e7fed1a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.bootom_slect_item .van-action-sheet__content[data-v-2e7fed1a]{max-height:250px;overflow-y:auto}',""]),t["default"]=s},2552:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'[data-v-3ff50713] .van-nav-bar__title{margin-left:16px}.popup-content[data-v-3ff50713]{width:100%;height:calc(100vh - 162px - var(--headerHeight));overflow-y:auto;background:#fff}.popup-content .van-cell-group[data-v-3ff50713]:after{border:none}[data-v-3ff50713] .van-checkbox,[data-v-3ff50713] .van-radio{padding-right:16px}[data-v-3ff50713] .popup-department{width:100%;height:calc(100vh - 106px - var(--headerHeight));overflow-y:auto}[data-v-3ff50713] .popup-department .van-cell-group:after{border:none}[data-v-3ff50713] .van-dropdown-menu__bar{height:34px;background-color:#f7f8fa;-webkit-box-shadow:0 0;box-shadow:0 0;border-top-right-radius:2px;border-bottom-right-radius:2px}[data-v-3ff50713] .van-dropdown-item__option{padding:10px 16px;font-size:15px}[data-v-3ff50713] .van-search__content{border-top-left-radius:0;border-bottom-left-radius:0}[data-v-3ff50713] .iconfont-search input[type=search]{font-family:iconfont}[data-v-3ff50713] .iconfont-search .van-field__left-icon{height:24px}[data-v-3ff50713] .iconfont-search .icon-search{font-size:14px}[data-v-3ff50713] .iconfont-search .icon-search:before{content:"\\e672";color:#7d7e80}.p-search[data-v-3ff50713]{position:relative}.p-search[data-v-3ff50713]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.search-staff-result .van-cell-staff[data-v-3ff50713]{padding:14px 16px}.search-staff-result .staff-name[data-v-3ff50713]{margin-top:-20px}.search-staff-result .van-cell__label[data-v-3ff50713]{position:absolute;left:102px;top:34px}.search-staff-result .photo[data-v-3ff50713]{height:38px;width:38px}.search-staff-result .photo span[data-v-3ff50713]{line-height:38px}.photo[data-v-3ff50713]{position:relative;background:#ccc;margin-right:10px;text-align:center}.photo[data-v-3ff50713],.photo img[data-v-3ff50713]{border-radius:50%;width:28px;height:28px}.photo span[data-v-3ff50713]{color:#fff;line-height:30px;font-size:10px}.searchInput[data-v-3ff50713]{position:relative;z-index:1}[data-v-3ff50713] .van-cell__title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-v-3ff50713] .select-all-nodes{position:relative}[data-v-3ff50713] .select-all-nodes:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}[data-v-3ff50713] .select-all-nodes .van-cell .van-cell__value{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.no-message-img[data-v-3ff50713]{width:100%;text-align:center;margin-top:88px}.no-message-img img[data-v-3ff50713]{width:240px}.no-message-img span[data-v-3ff50713]{line-height:50px;font-size:14px;color:#969799}[data-v-3ff50713] .btn-group-container{background:#f9f9f9}.select_person_count[data-v-3ff50713]{display:-webkit-box;display:-ms-flexbox;display:flex}.select_person_count .count[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;line-height:44px;font-size:14px;color:#1989fa}.select_person_count .count span[data-v-3ff50713]{display:inline-block;line-height:30px}.select_person_count .confirm_btn[data-v-3ff50713]{width:100px}.select_person_count .confirm_btn button[data-v-3ff50713]{width:100%}.delete_Popup[data-v-3ff50713]{height:100%}.delete_Popup .popup_header[data-v-3ff50713]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:50px;position:relative;padding:0 16px}.delete_Popup .popup_header[data-v-3ff50713]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;width:100%;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.delete_Popup .popup_header .title[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:16px;font-weight:700;color:#303133;text-align:left}.delete_Popup .popup_header .btn[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;color:#1989fa;font-size:14px;text-align:right}.delete_Popup .popup_person[data-v-3ff50713]{height:calc(100% - 50px);overflow-y:auto;overflow-x:hidden}.delete_Popup .popup_person .popup_cell[data-v-3ff50713]{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;padding:10px 16px}.delete_Popup .popup_person .popup_cell .name[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:1}.delete_Popup .popup_person .popup_cell[data-v-3ff50713]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;width:100%;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.delete_Popup .popup_person .popup_cell .photo[data-v-3ff50713]{width:36px;height:36px}.delete_Popup .popup_person .popup_cell .photo span[data-v-3ff50713]{line-height:36px}.delete_Popup .popup_person .popup_cell .photo img[data-v-3ff50713]{width:36px;height:36px}.delete_Popup .popup_person .popup_cell .deletebtn[data-v-3ff50713]{line-height:36px;font-size:20px;color:#c0c4cc}.disabled-name[data-v-3ff50713]{color:#787878;overflow:hidden;max-width:185px;text-overflow:ellipsis;white-space:nowrap}',""]),t["default"]=s},1478:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-43b0ec8c] .van-collapse-item__title .van-cell__right-icon:before{-webkit-transform:rotate(0deg);transform:rotate(0deg)}[data-v-43b0ec8c] .van-collapse-item__title--expanded .van-cell__right-icon:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}[data-v-43b0ec8c] .van-collapse-item__content{padding:0}.photo[data-v-43b0ec8c]{position:relative;background:#ccc;margin-right:10px;text-align:center}.photo[data-v-43b0ec8c],.photo img[data-v-43b0ec8c]{border-radius:50%;width:30px;height:30px}.photo span[data-v-43b0ec8c]{color:#fff;line-height:30px;font-size:10px}",""]),t["default"]=s},3885:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".photo[data-v-85d5d846]{position:relative;background:#ccc;margin-right:10px;text-align:center}.photo[data-v-85d5d846],.photo img[data-v-85d5d846]{border-radius:50%;width:30px;height:30px}.photo span[data-v-85d5d846]{color:#fff;line-height:30px;font-size:10px}.disabled-name[data-v-85d5d846]{color:#787878;overflow:hidden;max-width:185px;text-overflow:ellipsis;white-space:nowrap}.no-message-img[data-v-85d5d846]{width:100%;text-align:center;margin-top:88px}.no-message-img img[data-v-85d5d846]{width:240px}.no-message-img span[data-v-85d5d846]{line-height:50px;font-size:14px;color:#969799}[data-v-85d5d846] .van-cell__title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}",""]),t["default"]=s},2987:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"#SelectedPopup .photo[data-v-4d1a7426]{position:relative;background:#ccc;margin-right:10px;text-align:center}#SelectedPopup .photo[data-v-4d1a7426],#SelectedPopup .photo img[data-v-4d1a7426]{border-radius:50%;width:30px;height:30px}#SelectedPopup .photo span[data-v-4d1a7426]{color:#fff;line-height:30px;font-size:10px}#SelectedPopup .header[data-v-4d1a7426]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:16px;border-bottom:1px solid #ebedf0;background:#fff}#SelectedPopup .header .title[data-v-4d1a7426]{font-size:16px;font-weight:600}#SelectedPopup .header .button[data-v-4d1a7426]{font-size:14px;color:#1989fa}#SelectedPopup .content[data-v-4d1a7426]{background:#fff}#SelectedPopup .split-line[data-v-4d1a7426]{display:block;height:8px;width:100%;background-color:#f7f9fb}.select_person_count[data-v-4d1a7426]{display:-webkit-box;display:-ms-flexbox;display:flex}.select_person_count .count[data-v-4d1a7426]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;line-height:44px;font-size:14px;color:#1989fa}.select_person_count .count span[data-v-4d1a7426]{display:inline-block;line-height:30px}.select_person_count .confirm_btn[data-v-4d1a7426]{width:100px}.select_person_count .confirm_btn button[data-v-4d1a7426]{width:100%}",""]),t["default"]=s},8400:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-0685b481] .van-nav-bar__title{margin-left:16px}.popup-content[data-v-0685b481]{height:calc(100vh - 100px - var(--headerHeight));overflow-y:auto}",""]),t["default"]=s},9974:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.wfattach-container .van-cell__value[data-v-c5c0c8a2],.wfattach-container[data-v-c5c0c8a2] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.wfattach-container[data-v-c5c0c8a2] .van-cell__title{width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.wfattach-container[data-v-c5c0c8a2] .van-cell__value{width:25%;height:24px}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .van-icon-add-o{line-height:24px}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .van-circle{margin-top:2px}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .attach-icon{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .attach-icon .van-icon{line-height:24px;margin-left:15px;font-size:16px}.wfattach-container[data-v-c5c0c8a2]:after{border-top-width:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-c5c0c8a2]{padding-left:70px;padding-right:36px}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-c5c0c8a2]:after{right:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-c5c0c8a2]:first-child:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;top:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title[data-v-c5c0c8a2]{position:relative}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_photo[data-v-c5c0c8a2]{position:absolute;left:-54px;height:44px;width:44px}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_name[data-v-c5c0c8a2]{width:calc(100vw - 107px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-attachment-field[data-v-c5c0c8a2]{position:relative}.van-attachment-field[data-v-c5c0c8a2]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;top:unset;border-width:0;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},6124:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".loading[data-v-4602c485]{margin-top:100px;text-align:center}.upload-progress[data-v-4602c485]{background-color:#fff;padding-top:50px;padding-bottom:50px;text-align:center}.van-ellipsis[data-v-4602c485]{text-align:center;margin:20px auto 0;max-width:90%}.file-svg-icon[data-v-4602c485]{font-size:70px}.file-svg-icon .svg-icon[data-v-4602c485]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.van-cell-group[data-v-4602c485]{margin:10px 10px 0 10px;border:1px solid #fbf9f9;border-radius:5px}.more-btns[data-v-4602c485]{width:120px;border-radius:6px;padding:16px}.more-btns .btn-item[data-v-4602c485]{border-bottom:1px solid #fbf9f9;width:100%;height:44px;line-height:44px}.more-btns .btn-item .van-icon[data-v-4602c485]{font-size:16px;margin-right:10px}[data-v-4602c485] .van-action-sheet__header{text-align:left!important;padding:0 15px;font-size:14px;color:#666}.attachmentContent[data-v-4602c485]{max-height:300px;padding:0 10px}.attachmentContent .attachmentContent_son[data-v-4602c485]{height:50px;line-height:50px;border-bottom:1px solid #f7f8fa;padding:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex}.attachmentContent .attachmentContent_son .icon_left[data-v-4602c485],.attachmentContent .attachmentContent_son .icon_right[data-v-4602c485]{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.attachmentContent .attachmentContent_son .content[data-v-4602c485]{width:calc(100% - 80px)}.attachmentContent .attachmentContent_son .content .name[data-v-4602c485]{height:30px;line-height:30px;font-size:16px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.attachmentContent .attachmentContent_son .content .size[data-v-4602c485]{height:20px;line-height:20px;font-size:12px;color:#999}[data-v-4602c485] .van-action-sheet__content{border-top:1px solid #f7f8fa}[data-v-4602c485] .van-action-sheet__close{color:#000;font-size:16px}",""]),t["default"]=s},989:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".handle-idea-container[data-v-436c37ca] .van-collapse .van-cell__title{color:#000;font-weight:400}[data-v-436c37ca] .ideaDiv{margin:5px 0}[data-v-436c37ca] .ideaDiv p{margin-top:0;margin-bottom:0}[data-v-436c37ca] .ideaDiv span{display:inline-block}[data-v-436c37ca] .ideaDiv .handwritingIdea{width:200px}[data-v-436c37ca] .ideaDiv .ideaSignature{max-width:100px;max-height:50px}[data-v-436c37ca] .ideaDiv .donext-attach{padding-left:10px;position:absolute}[data-v-436c37ca] .ideaDiv .donext-attach svg{margin-top:2px;width:15px;height:15px}[data-v-436c37ca] .highlight{font-weight:600;color:#323233}[data-v-436c37ca] .van-collapse-item--border:after,[data-v-436c37ca] .van-collapse-item__title:after{right:0}[data-v-436c37ca] .van-collapse-item__content{padding-top:1px}[data-v-436c37ca] .van-cell:after{border-bottom:0 solid}.viewAllComments[data-v-436c37ca]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff}.HandleIdeaContent[data-v-436c37ca]{padding:6px 12px;color:#969799;font-size:14px;line-height:1.5;background-color:#fff}",""]),t["default"]=s},1736:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".van-cell__label[data-v-897ddfa6]{color:#323323;font-size:14px}.van-cell__value[data-v-897ddfa6]{color:#666}.van-wform-operate-cell .van-button[data-v-897ddfa6]{color:#323323;border:1px;margin-right:0}.van-wform-operate-cell .van-button--info[data-v-897ddfa6]{color:#fff}",""]),t["default"]=s},750:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".van-cell__label[data-v-301979cb]{color:#323323;font-size:14px}.van-cell__value[data-v-301979cb]{color:#666}.van-wform-operate-cell .van-button[data-v-301979cb]{color:#323323;border:1px;margin-right:0}.van-wform-operate-cell .van-button--info[data-v-301979cb]{color:#fff}[data-v-301979cb] .van-icon-success{font-size:16px!important}[data-v-301979cb] .van-radio__icon--checked .van-icon-success{background-color:#1989fa!important}",""]),t["default"]=s},5275:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".popub-container[data-v-6850137e]{width:100%;height:100%}.popub-container .outer-deputy-selector[data-v-6850137e]{background-color:#f8f8ff;padding-top:5px;padding-bottom:5px}.popub-container .outer-deputy-selector[data-v-6850137e] .van-field__control{text-align:right}",""]),t["default"]=s},6383:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".submit-dialog-container[data-v-2e79fb7e]{overflow:hidden}.submit-dialog-container .van-popup[data-v-2e79fb7e]{z-index:2001!important}",""]),t["default"]=s},633:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(4417),l=n.n(s),d=new URL(n(356),n.b),c=r()(o()),u=l()(d);c.push([e.id,'.submit-handle-container .idea-button-container .van-cell__value[data-v-6b76414a]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-6b76414a]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-6b76414a] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-6b76414a]:after{display:none}.submit-handle-container .clearfix[data-v-6b76414a]:after{content:".";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container[data-v-6b76414a] .van-radio-group .van-cell__title{font-weight:400!important}.submit-handle-container .van-wflow-operate-detail-cell[data-v-6b76414a]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-6b76414a]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container[data-v-6b76414a] .tnLimit-container .van-field{width:50px;display:inline-block;padding:0}.submit-handle-container[data-v-6b76414a] .tnLimit-container .van-field .van-field__body input{text-align:center}.submit-handle-container[data-v-6b76414a] .tnLimit-container .van-field__body:after{color:#323233;content:attr(value-suffix);word-break:keep-all}.submit-handle-container .delete-icon[data-v-6b76414a]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-6b76414a]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-6b76414a]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-6b76414a],.selectBox_title[data-v-6b76414a]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-6b76414a]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.selectBox_content .selectBox_content_son[data-v-6b76414a]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-6b76414a],.selectBox_content .selectBox_content_son_change[data-v-6b76414a]{padding:4px;background:#f8fafb;font-size:14px;margin-bottom:10px!important;text-align:center;height:22px;line-height:22px;width:calc(25% - 17.5px);margin-right:10px}.selectBox_content .selectBox_content_son_change[data-v-6b76414a]{border:1px solid #3f88f1;background-image:url('+u+");background-repeat:no-repeat;background-size:15px 15px;background-position:100% 100%;color:#3f88f1}.selectBox_content_sonall[data-v-6b76414a]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-6b76414a]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-6b76414a]::-webkit-scrollbar{display:none}.viewAllComments[data-v-6b76414a]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}",""]),t["default"]=c},5481:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".wf-nodelogs-container[data-v-785b60a7]{margin-bottom:10px}.wf-nodelogs-container .call-back-file .van-steps[data-v-785b60a7]{height:calc(100% - 60px);overflow-y:auto}.wf-nodelogs-container[data-v-785b60a7] .popup-body/deep/.van-steps .van-step--vertical{padding-right:16px}.wf-nodelogs-container[data-v-785b60a7] .popup-body .active-step-finish .van-step__title{color:#444!important}.wf-nodelogs-container[data-v-785b60a7] .popup-body .active-step-finish .van-step__circle-container{color:#1989fa!important}.wf-nodelogs-container[data-v-785b60a7] .popup-body .active-step-finish .van-step__line{background-color:#ebedf0!important}.wf-nodelogs-container[data-v-785b60a7] .popup-body .elapsed-time{float:right}.wf-nodelogs-container[data-v-785b60a7] .popup-body .licont{color:#969799}.wf-nodelogs-container[data-v-785b60a7] .popup-body .licont .fr{float:right}.wf-nodelogs-container[data-v-785b60a7] .popup-body .van-icon{font-size:18px;background-color:#fff}.wf-nodelogs-container[data-v-785b60a7] .popup-body .handwritingIdea{width:200px}.wf-nodelogs-container[data-v-785b60a7] .popup-body .start-chat{padding-left:5px;padding-right:5px}",""]),t["default"]=s},894:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".write_toread_idea[data-v-a814ebae] .van-dialog .van-dialog__header{padding-top:15px}.write_toread_idea[data-v-a814ebae] .van-dialog .idea_content .van-cell__value{border:1px solid #ebedf0}.write_toread_idea[data-v-a814ebae] .van-dialog .idea_content .van-cell__value .van-field__body{padding:5px}",""]),t["default"]=s},203:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".loading[data-v-69610664]{margin-top:100px}",""]),t["default"]=s},4521:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-6ff0d390] .el-dialog__body{height:650px;overflow-y:auto;padding:0 0 20px 0}[data-v-6ff0d390] .el-dialog__body .el-tabs--top{margin-top:0}",""]),t["default"]=s},1185:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".dwadmin-initmessage[data-v-3801b56a]{text-align:center;font-size:13px;padding-top:50px}.panel-left[data-v-3801b56a] .el-input__inner{border-top:0;border-left:0;border-right:0}.el-switch[data-v-3801b56a]{margin:6px 12px}.can-merge-subsys[data-v-3801b56a]{border-top:1px solid #f3f3f3;height:calc(100% - 32px)}",""]),t["default"]=s},8512:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".main[data-v-e2b48988]{padding:.6rem .2rem .6rem 1.36rem;position:fixed;top:0;left:0;bottom:0;right:0}#myCanvas[data-v-e2b48988]{border:1px dashed #f9bc82;display:block;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box}#operation[data-v-e2b48988]{margin:0 auto;text-align:center;height:.5rem;line-height:.5rem;position:absolute;bottom:50%;left:-.8rem;-webkit-transform:rotate(90deg);transform:rotate(90deg)}#operation .el-button[data-v-e2b48988]{-webkit-tap-highlight-color:transparent}#clearCanvas[data-v-e2b48988]{background:#ccc;color:#999}#getImg[data-v-e2b48988]{background:#fa484a;color:#fff}#canvasImg[data-v-e2b48988]{display:block;margin:.8rem auto;border:1px dotted #333}",""]),t["default"]=s},8315:function(e,t,n){"use strict";var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(4417),l=n.n(s),d=new URL(n(4480),n.b),c=new URL(n(2817),n.b),u=r()(o()),f=l()(d),p=l()(c,{hash:"#iconfont"});u.push([e.id,"@font-face{font-family:iconfont;src:url("+f+') format("truetype"),url('+p+') format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-search:before{content:"\\e672"}',""]),t.A=u},7494:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,":export{theme:var(--bgColor)}",""]),t["default"]=s},479:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".pdftools-savedialog .van-loading{height:inherit;padding:inherit}",""]),t["default"]=s},6358:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".idea-start-chat{margin-top:-20px;position:absolute;font-size:19px}",""]),t["default"]=s},165:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"#wapp{position:fixed;top:0;left:0;bottom:0;right:0}",""]),t["default"]=s},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,o,i){"string"===typeof e&&(e=[[null,e,void 0]]);var r={};if(a)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(r[l]=!0)}for(var d=0;d<e.length;d++){var c=[].concat(e[d]);a&&r[c[0]]||("undefined"!==typeof i&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},4417:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},41:function(e,t,n){"use strict";var a=n(655),o=n(8068),i=n(9675),r=n(5795);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],u=!!r&&r(e,t);if(a)a(e,t,{configurable:null===d&&u?u.configurable:!d,enumerable:null===s&&u?u.enumerable:!s,value:n,writable:null===l&&u?u.writable:!l});else{if(!c&&(s||l||d))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},655:function(e,t,n){"use strict";var a=n(453),o=a("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(i){o=!1}e.exports=o},1237:function(e){"use strict";e.exports=EvalError},9383:function(e){"use strict";e.exports=Error},9290:function(e){"use strict";e.exports=RangeError},9538:function(e){"use strict";e.exports=ReferenceError},8068:function(e){"use strict";e.exports=SyntaxError},9675:function(e){"use strict";e.exports=TypeError},5345:function(e){"use strict";e.exports=URIError},9353:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,o="[object Function]",i=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},r=function(e,t){for(var n=[],a=t||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n},s=function(e,t){for(var n="",a=0;a<e.length;a+=1)n+=e[a],a+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==o)throw new TypeError(t+l);for(var d,c=r(arguments,1),u=function(){if(this instanceof d){var t=l.apply(this,i(c,arguments));return Object(t)===t?t:this}return l.apply(e,i(c,arguments))},f=a(0,l.length-c.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(d=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(u),l.prototype){var h=function(){};h.prototype=l.prototype,d.prototype=new h,h.prototype=null}return d}},6743:function(e,t,n){"use strict";var a=n(9353);e.exports=Function.prototype.bind||a},453:function(e,t,n){"use strict";var a,o=n(9383),i=n(1237),r=n(9290),s=n(9538),l=n(8068),d=n(9675),c=n(5345),u=Function,f=function(e){try{return u('"use strict"; return ('+e+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch($){p=null}var m=function(){throw new d},h=p?function(){try{return m}catch(e){try{return p(arguments,"callee").get}catch(t){return m}}}():m,v=n(4039)(),g=n(24)(),y=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),_={},b="undefined"!==typeof Uint8Array&&y?y(Uint8Array):a,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?a:ArrayBuffer,"%ArrayIteratorPrototype%":v&&y?y([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"===typeof Atomics?a:Atomics,"%BigInt%":"undefined"===typeof BigInt?a:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?a:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?a:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?a:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?a:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":_,"%Int8Array%":"undefined"===typeof Int8Array?a:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?a:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&y?y(y([][Symbol.iterator]())):a,"%JSON%":"object"===typeof JSON?JSON:a,"%Map%":"undefined"===typeof Map?a:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&v&&y?y((new Map)[Symbol.iterator]()):a,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?a:Promise,"%Proxy%":"undefined"===typeof Proxy?a:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?a:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?a:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&v&&y?y((new Set)[Symbol.iterator]()):a,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&y?y(""[Symbol.iterator]()):a,"%Symbol%":v?Symbol:a,"%SyntaxError%":l,"%ThrowTypeError%":h,"%TypedArray%":b,"%TypeError%":d,"%Uint8Array%":"undefined"===typeof Uint8Array?a:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?a:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?a:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?a:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"===typeof WeakMap?a:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?a:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?a:WeakSet};if(y)try{null.error}catch($){var x=y(y($));w["%Error.prototype%"]=x}var M=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return w[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(6743),S=n(9957),T=L.call(Function.call,Array.prototype.concat),D=L.call(Function.apply,Array.prototype.splice),N=L.call(Function.call,String.prototype.replace),A=L.call(Function.call,String.prototype.slice),Y=L.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,I=function(e){var t=A(e,0,1),n=A(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var a=[];return N(e,C,(function(e,t,n,o){a[a.length]=n?N(o,O,"$1"):t||e})),a},E=function(e,t){var n,a=e;if(S(k,a)&&(n=k[a],a="%"+n[0]+"%"),S(w,a)){var o=w[a];if(o===_&&(o=M(a)),"undefined"===typeof o&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===Y(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=I(e),a=n.length>0?n[0]:"",o=E("%"+a+"%",t),i=o.name,r=o.value,s=!1,c=o.alias;c&&(a=c[0],D(n,T([0,1],c)));for(var u=1,f=!0;u<n.length;u+=1){var m=n[u],h=A(m,0,1),v=A(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&f||(s=!0),a+="."+m,i="%"+a+"%",S(w,i))r=w[i];else if(null!=r){if(!(m in r)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&u+1>=n.length){var g=p(r,m);f=!!g,r=f&&"get"in g&&!("originalValue"in g.get)?g.get:r[m]}else f=S(r,m),r=r[m];f&&!s&&(w[i]=r)}}return r}},5795:function(e,t,n){"use strict";var a=n(453),o=a("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(i){o=null}e.exports=o},592:function(e,t,n){"use strict";var a=n(655),o=function(){return!!a};o.hasArrayLengthDefineBug=function(){if(!a)return null;try{return 1!==a([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},24:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},4039:function(e,t,n){"use strict";var a="undefined"!==typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"===typeof a&&("function"===typeof Symbol&&("symbol"===typeof a("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},1333:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var a=42;for(t in e[t]=a,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==a||!0!==i.enumerable)return!1}return!0}},9957:function(e,t,n){"use strict";var a=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(6743);e.exports=i.call(a,o)},2215:function(e,t,n){var a,o;
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ecmappaio"]=t(require("vue")):e["ecmappaio"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={5003:function(e,t){var n,a,o;(function(i,r){a=[],n=r,o="function"===typeof n?n.apply(t,a):n,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,a,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,r=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(p.stack)||r.exec(p.stack),l=s&&s[1]||!1,d=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,a=new RegExp("(?:[^\\n]+?\\n){0,"+(d-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(a,"$1").trim());for(var f=0;f<u.length;f++){if("interactive"===u[f].readyState)return u[f];if(u[f].src===l)return u[f];if(l===c&&u[f].innerHTML&&u[f].innerHTML.trim()===o)return u[f]}return null}}return e}))},1656:function(e,t,n){"use strict";function a(e,t,n,a,o,i,r,s){var l,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),a&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),r?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=l):o&&(l=s?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}n.d(t,{A:function(){return a}})},6200:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},5539:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},8259:function(e,t,n){"use strict";n.d(t,{KS:function(){return M},Pc:function(){return x},Z0:function(){return L},ot:function(){return w},wS:function(){return k}});var a=n(2215),o=n.n(a),i=n(5730),r=n(6200),s=n.n(r),l=n(6700),d=n.n(l),c=n(5539),u=n.n(c),f=n(3150),p=n.n(f);function m(e){return m="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},m(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=_(e,"string");return"symbol"==m(t)?t:t+""}function _(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=m(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={en:v({},s()),zhCN:v({},d()),es:v({},u()),ja:v({},p())},w=b;function x(e,t,n){var a,o=this&&this.$vnode?this.$vnode.context:window.$wapp||window.$mapp;return o.$i18n||console.log(e),a=o.$i18n&&o.$te(e)?o.$t(e):"object"!==m(t)?t:n,"object"===m(t)&&a&&Object.keys(t).forEach((function(e){a=a.replace("{"+e+"}",t[e])})),a}function M(e,t,n,a,o){if(t=t||this,t.$i18n&&"zhCN"===t.$i18n.locale&&e.btnName&&-1===e.btnName.indexOf("."))return e.btnName;if(e.i18nCode&&-1!==e.i18nCode.indexOf(".")&&t.$te(e.i18nCode))return t.$t(e.i18nCode,o);var i=t.moduleInfo||t.$vnode.context.moduleInfo||t.$vnode.context.$vnode.context.moduleInfo;if(!a&&(a=t.i18npkg||t.$vnode.context.i18npkg||t.$vnode.context.$vnode.context.i18npkg,!a)){var r=t.wfInstance||t.$vnode.context.wfInstance;if(r&&r.workForm){var s=r.workForm;if(-1!==s.indexOf("/dcontent/"))s=s.split("/dcontent/")[1].split("."),a=s[0],n=s[1];else if(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl){var l=(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl).split("/");a=l[0],n=l[1]}else-1!==s.indexOf("@/")&&(s=s.split("/"),a=s[2],n=s[3])}else if(void 0!==e.activeMenu||"menuItem"===e.type){if(e.i18npkg)a=e.i18npkg;else if(e.i18nCode&&-1!=e.i18nCode.indexOf("."))a=e.i18nCode.substring(0,e.i18nCode.indexOf(".")),e.i18npkg=a,e.i18nCode=e.i18nCode.substring(e.i18nCode.lastIndexOf(".")+1);else if(!e.i18npkg&&e.href){var d=e.href;-1!==d.indexOf("/dcontent/")?(d=d.split("/dcontent/")[1].split("."),a=d[0],e.i18npkg=d[0]):-1!==d.indexOf("@/")&&(d=d.split("/"),a=d[2],e.i18npkg=d[0])}}else i&&i.listDataUrl&&i.listDataUrl.split("/").length>2&&("/"===i.listDataUrl.substring(0,1)&&(i.listDataUrl=i.listDataUrl.substring(1)),a=i.listDataUrl.split("/")[0])}a?a+=".":a="",n||(n=t.moduleCode||t.$vnode.context.moduleCode||t.$vnode.context.$vnode.context.moduleCode,!n&&i&&(i.moduleCode?n=i.moduleCode:i.listDataUrl&&i.listDataUrl.split("/").length>2&&("/"===i.listDataUrl.substring(0,1)&&(i.listDataUrl=i.listDataUrl.substring(1)),n=i.listDataUrl.split("/")[1]))),n?n+=".":n="";var c="";if("menuItem"===e.type||void 0!==e.activeMenu||1===e.level&&1===e.topFlag)c=a+"menuItem."+e.i18nCode;else if("navbar"===e.type||void 0!==e.breadcrumb)c="navbar."+e.title;else if(e.formTitle)c=a+e.code+".formTitle";else{if(e.field&&"option"===e.type){var u=null;a&&(u=t.$i18n.messages[t.$i18n.locale][a.replace(".","")]),u||(u=t.$i18n.messages[t.$i18n.locale]),n=n.substring(0,n.length-1);var f=[];return u&&u[n]&&u[n].options&&u[n].options[e.field]?f=u[n].options[e.field]:u&&u.options&&u.options[e.field]?f=u.options[e.field]:t.$i18n.messages[t.$i18n.locale].options&&t.$i18n.messages[t.$i18n.locale].options[e.field]&&(f=t.$i18n.messages[t.$i18n.locale].options[e.field]),f[e.value]?f[e.value]:null}e.field?c=a+n+"fields."+e.field:e.btnI18nCode?c="commandBarBtn"===e.type?a+n+"wfdProcess.operations."+e.btnI18nCode:a+"pageBtns."+e.btnI18nCode:e.wfNodeName?c=a+n+"wfdProcess.nodes."+e.wfNodeName:e.wfPathName?c=a+n+"wfdProcess.paths."+e.wfPathName:e.wfIdeaLabel?c=a+n+"wfdProcess.ideaLabels."+e.wfIdeaLabel:e.i18nCode&&(c=e.i18nCode,-1===c.indexOf(n)&&(c=n+c),-1===c.indexOf(a)&&(c=a+c))}var p=c.replace(a,"").replace(n,""),m=c.replace(n,"");if(t&&t.$te){if(t.$te(c))return t.$t(c,o);if(t.$te(m))return t.$t(m,o);if(t.$te(p))return t.$t(p,o);if("zhCN"!==t.$i18n.locale&&"option"!==e.type){var h="",v=e.i18nCode||e.code||e.field||e.btnI18nCode||e.title||"";if(h=v.split(".").length>1?v.substring(v.lastIndexOf(".")+1).replace("-","_"):v.replace("-","_"),-1!==h.indexOf("_")){h=h.toLowerCase().split("_");for(var g=0;g<h.length;g++)h[g]=h[g].substring(0,1).toUpperCase()+h[g].substring(1);return h.join("")}return h.substring(0,1).toUpperCase()+h.substring(1)}}return e.title||e.btnName||e.formTitle}function k(e,t,n,a){var o=i.A.state.settings.title;return a.$te("sysName")&&(o=a.$t("sysName")),t&&(e=M({i18nCode:t,href:n,type:"menuItem"},a)),e?"".concat(e," - ").concat(o):o}function L(){try{var e=o().get("language");if(e)return"zh-CN"==e&&(e="zhCN"),e;var t=(navigator.language||navigator.browserLanguage||"").toLowerCase();if(b)for(var n=Object.keys(b),a=0,i=n;a<i.length;a++){var r=i[a];if(t.indexOf(r)>-1)return r}}catch(s){console.log(s)}return"zhCN"}},3150:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},6700:function(e){e.exports={request:{status401relogin:"认证会话已过期,请重新登录。",status401:"认证会话已过期。",status404:"接口不存在或执行错误:"}}},5730:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var a=n(9274),o=n.n(a),i=n(5353),r={sidebar:function(e){return e.app.sidebar},language:function(e){return e.app.language},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},loginUser:function(e){return e.user.loginUser},organList:function(e){return e.user.organList},avatar:function(e){return e.user.avatar},roles:function(e){return e.user.roles},routes:function(e){return e.route.routes},swipeImages:function(e){return e.app.swipeImages},productCodeList:function(e){return e.user.productCodeList},productCodeAll:function(e){return e.user.productCodeAll},maxFileSize:function(e){return e.user.maxFileSize}},s=r;o().use(i.Ay);var l=null,d=null;void 0!==window.vType?("wapp"===window.vType?l=n(5196):"mapp"===window.vType&&(l=n(9326)),d=l.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=l(t);return e[n]=a.default,e}),{}),l=n(2397),l.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=l(t);return d[n]=a.default,d}),{})):(l=n(2397),d=l.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=l(t);return e[n]=a.default,e}),{}));var c=new i.Ay.Store({modules:d,getters:s}),u=c},3070:function(e,t,n){"use strict";n.r(t);var a=n(2215),o=n.n(a),i={device:"mobile",swipeImages:o().get("swipeImages")||[]},r={SET_SWIPE_IMAGES:function(e,t){e.swipeImages=t,o().set("swipeImages",t)},SET_DEVICE:function(e,t){e.device=t,o().set("device",t)}},s={setSwipeImages:function(e,t){var n=e.commit;n("SET_SWIPE_IMAGES",t)},setDevice:function(e,t){var n=e.commit;n("SET_DEVICE",t)}};t["default"]={namespaced:!0,state:i,mutations:r,actions:s}},8076:function(e,t,n){"use strict";n.r(t);var a={routes:[]},o={SET_ROUTES:function(e,t){e.routes=t}},i={generateRoutes:function(e){var t=e.commit;return new Promise((function(e,n){window.$user.findH5apps().then((function(n){var a=[];n.body.listdata.forEach((function(e){var t=s(e);if(a.push(t),void 0!==e.appRoute&&null!==e.appRoute&&""!==e.appRoute&&"[{}]"!==e.appRoute&&"[]"!==e.appRoute){var n=JSON.parse(e.appRoute.replace(/\r\n/g,"").replace(/\n/g,"").replace(/ /g,""));r(a,n,e)}})),t("SET_ROUTES",a),e(a)})).catch((function(e){n(e)}))}))},updateRoutes:function(e,t){var n=e.commit;n("SET_ROUTES",t)}};function r(e,t,n){t.forEach((function(t){var a=t.component;if(null!==a&&"#/dcontent/"===a.substring(0,11)){var o=a.substring(11);-1===o.indexOf("?")?o+=".vue?sysCode="+(n.sysCode||n.meta.sysCode):o=a.substring(11).split("?")[0]+".vue?sysCode="+(n.sysCode||n.meta.sysCode)+"&"+a.substring(11).split("?")[1],o=0===o.indexOf("portalpage/")||0===o.indexOf("vuereportpage/")?"#/dcontent/"+o:"#/dcontent/vuelistpage/"+o,a=o}t.component=window.$loadComponent(a),t.meta=t.meta||{},t.metasysCode=n.sysCode||n.meta.sysCode,t.metasysName=n.sysName||n.meta.sysName,t.metaorgCode=n.orgCode||n.meta.orgCode,t.metaorgName=n.orgName||n.meta.orgName,e.push(t),void 0!==t.children&&null!==t.children&&r(e,t.children,t)}))}function s(e){return 2===e.appType?e.routeTo=e.h5Url.substring(1):e.h5Url.indexOf("?")>0?e.routeTo="/"+e.id+e.h5Url.substring(e.h5Url.indexOf("?")):e.routeTo="/"+e.id,{path:"/"+e.id,component:window.$loadComponent("@/mapp/common/components/H5appLoader/index"),name:e.id,alias:e.name,hidden:!0,meta:e,sysCode:e.sysCode}}t["default"]={namespaced:!0,state:a,mutations:o,actions:i}},819:function(e,t,n){"use strict";n.r(t);var a=n(5730),o=n(2215),i=n.n(o);function r(e){return r="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},r(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",d=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function f(e,t,n,a){var i=t&&t.prototype instanceof _?t:_,r=Object.create(i.prototype),s=new C(a||[]);return o(r,"_invoke",{value:D(e,n,s)}),r}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",v="executing",g="completed",y={};function _(){}function b(){}function w(){}var x={};u(x,l,(function(){return this}));var M=Object.getPrototypeOf,k=M&&M(M(O([])));k&&k!==n&&a.call(k,l)&&(x=k);var L=w.prototype=_.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,i,s,l){var d=p(e[o],e,i);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==r(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(d.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function D(t,n,a){var o=m;return function(i,r){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=N(s,a);if(l){if(l===y)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===m)throw o=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=v;var d=p(t,n,a);if("normal"===d.type){if(o=a.done?g:h,d.arg===y)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=g,a.method="throw",a.arg=d.arg)}}}function N(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function A(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},S(T.prototype),u(T.prototype,d,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new T(f(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},S(L),u(L,c,"Generator"),u(L,l,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=O,C.prototype={constructor:C,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)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(r)},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),y},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),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;Y(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:O(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){l(i,a,o,r,s,"next",e)}function s(e){l(i,a,o,r,s,"throw",e)}r(void 0)}))}}var c="-"+location.port;localStorage.getItem("productCode")&&(c="-"+localStorage.getItem("productCode"));var u={token:i().get((window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+c),name:"",avatar:"",loginUser:{},disallowPermissions:{},roles:[],organList:[],productCodeList:[],productCodeAll:[],maxFileSize:-1},f={SET_TOKEN:function(e,t){e.token=t},SET_LOGIN_USER:function(e,t){e.loginUser=t},SET_NAME:function(e,t){e.name=t},SET_PERMISSIONS:function(e,t){var n={};t.forEach((function(e){if(e.resUrl){"/"!==e.resUrl.substring(0,1)&&(e.resUrl="/"+e.resUrl);var t=e.resUrl.split("/"),a=t[1]+"."+t[2];t.length>4?a+="."+t[4].replace(".html","").replace(".vue",""):t.length>3?a+="."+t[3].replace(".html","").replace(".vue",""):a=a.replace(".html","").replace(".vue",""),void 0===n[a]&&(n[a]=[]),n[a].push(e.code)}})),e.disallowPermissions=n},SET_ROLES:function(e,t){e.roles=t},SET_PERSON_ORGAN_LIST:function(e,t){e.organList=t},SET_AVATAR:function(e,t){e.avatar=t},SET_PRODUCT_CODE_LIST:function(e,t){e.productCodeList=t},SET_PRODUCT_CODE_ALL:function(e,t){e.productCodeAll=t||[]},SET_MAX_FILE_SIZE:function(e,t){e.maxFileSize=t}};function p(e){try{var t=document.createStyleSheet();t.cssText=e}catch(n){t=document.createElement("style");t.type="text/css",t.textContent=e,document.getElementsByTagName("HEAD").item(0).appendChild(t)}}var m={login:function(e,t){var n=e.commit,a=t.username,o=t.password,i=t.kaptcha,r=t.encrypt,l=t.productCode,c=t.sysCode,u=t.imei,f=t.enjwt;return new Promise((function(e,t){window.$user.formLogin({username:a.trim(),password:o,kaptcha:i,encrypt:r,productCode:l,sysCode:c,imei:u,enjwt:f}).then(function(){var a=d(s().mark((function a(o){var i,r,l;return s().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=o,"success"!==i.code){a.next=13;break}return r=i[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]||i["PORTAL-JWTSSO-TOKEN"],a.next=5,window.$user.getLoginUser(r);case 5:l=a.sent,i["STAFF_INFO_LIST"]&&i["STAFF_INFO_LIST"].length>0?l.staffList=i["STAFF_INFO_LIST"]:l.staffList=[],i["PERMISSION_LIST"]?(window.$auth.setProductCode(i["PRODUCT_CODE_LIST"],l.sysCode),window.$auth.setToken(r),window.$auth.setTicket(i[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(i["ecweb-csrf-token"]),n("SET_TOKEN",r),n("SET_ROLES",i["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",i["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",i["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",i["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",i["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",i["MAX_FILE_SIZE"])):(window.$auth.setToken(r),window.$auth.setTicket(i[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(i["ecweb-csrf-token"]),n("SET_TOKEN",r)),n("SET_AVATAR","/apigw/base/user/download?id="+l.userId+"&dataField=photoData&nameField=photoName&csrfToken="+i["ecweb-csrf-token"]),n("SET_LOGIN_USER",l),e(i),a.next=14;break;case 13:t(i);case 14:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t(e)}))}))},tokenSsoLogin:function(e,t){var n=e.commit;return new Promise(function(){var e=d(s().mark((function e(a){var o;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]);case 2:o=e.sent,window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],o.sysCode),window.$auth.setToken(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]),window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?o.staffList=t["STAFF_INFO_LIST"]:o.staffList=[],n("SET_TOKEN",window.$auth.getToken()),n("SET_LOGIN_USER",o),n("SET_ROLES",t["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",t["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),n("SET_AVATAR","/apigw/base/user/download?id="+o.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),a();case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateStore:function(e,t){var n=e.commit,a=e.state;return new Promise(function(){var e=d(s().mark((function e(o){var i,r;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t||window.$auth.getToken(),a.loginUser.userId&&a.productCodeAll&&!t||!i){e.next=10;break}return e.next=4,window.$user.getLoginUser(i);case 4:r=e.sent,n("SET_TOKEN",window.$auth.getToken()),n("SET_LOGIN_USER",r),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var t=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],r.sysCode),window.$auth.setToken(i))}catch(a){console.log(a)}window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),n("SET_ROLES",t["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",t["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?r.staffList=t["STAFF_INFO_LIST"]:r.staffList=[],n("SET_LOGIN_USER",r),n("SET_AVATAR","/apigw/base/user/download?id="+r.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),o(!0)}else o(e.message)})).catch((function(e){o(e)})),e.next=11;break;case 10:o(!0);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(n){var a;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,window.$user.getUIStyle();case 3:a=e.sent,"string"===typeof a&&p(a);case 5:n(!0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setDefaultUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(n){var a;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getDefaultUIStyle(t);case 2:a=e.sent,"string"===typeof a&&p(a),n(!0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateJwtToken:function(e,t){var n=e.commit;return new Promise(function(){var e=d(s().mark((function e(a){var o;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t);case 2:o=e.sent,n("SET_TOKEN",t),n("SET_LOGIN_USER",o),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var i=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(i["PRODUCT_CODE_LIST"],o.sysCode),window.$auth.setToken(t))}catch(r){console.log(r)}window.$auth.setTicket(i[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(i["ecweb-csrf-token"]),n("SET_ROLES",i["ROLE_CODE_LIST"]),n("SET_PERMISSIONS",i["PERMISSION_LIST"]),n("SET_PERSON_ORGAN_LIST",i["PERSON_ORGAN_LIST"]),n("SET_PRODUCT_CODE_LIST",i["PRODUCT_CODE_LIST"]),n("SET_PRODUCT_CODE_ALL",i["PRODUCT_CODE_ALL"]),n("SET_MAX_FILE_SIZE",i["MAX_FILE_SIZE"]),i["STAFF_INFO_LIST"]&&i["STAFF_INFO_LIST"].length>0?o.staffList=i["STAFF_INFO_LIST"]:o.staffList=[],n("SET_LOGIN_USER",o),a(!0)}else a(e.message)})).catch((function(e){a(e)})),a();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},hasPermission:function(e,t){var n=e.state,a="",o=t.href;if(void 0===o)return!0;for(var i=o.split(","),r=0;r<i.length;r++)if(o=i[r],0===o.indexOf("@/wapp")||0===o.indexOf("@/mapp")){var s=o.split("/");if(a=s[2]+"."+s[3],s.length>4&&(a+="."+s[4]),s.length>5&&(a+="."+s[5]),a=a.replace(".vue","").replace(".html",""),n.disallowPermissions[a]&&-1!==n.disallowPermissions[a].indexOf(t.pcode))return!1}else if(0===o.indexOf("#/dcontent")){o=o.split("/")[2];s=o.split(".");if(a=s[0]+"."+s[1],s.length>2&&(a+="."+s[2]),s.length>3&&(a+="."+s[3]),a=a.replace(".vue","").replace(".html",""),n.disallowPermissions[a]&&-1!==n.disallowPermissions[a].indexOf(t.pcode))return!1}return!0},logout:function(e){var t=e.commit;e.state;return new Promise(function(){var e=d(s().mark((function e(n){return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.$user.logout().then((function(){a.A.dispatch("route/updateRoutes",[]).then((function(){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_PERSON_ORGAN_LIST",[]),t("SET_AVATAR",""),t("SET_PRODUCT_CODE_LIST",[]),t("SET_PRODUCT_CODE_ALL",[]),window.$auth.removeProductCode(),window.$auth.removeToken(),window.$auth.removeTicket(),window.$auth.removeRoles(),window.$auth.removePermissions(),n()}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_AVATAR",""),window.$auth.removeTicket(),window.$auth.removeToken(),window.$auth.removeRoles(),window.$auth.removePermissions(),e()}))}};t["default"]={namespaced:!0,state:u,mutations:f,actions:m}},8532:function(e,t,n){"use strict";n.r(t);var a=n(2215),o=n.n(a),i=n(8259),r={sidebar:{opened:!o().get("sidebarStatus")||!!+o().get("sidebarStatus"),withoutAnimation:!1},device:"desktop",language:(0,i.Z0)(),size:o().get("size")||"medium"},s={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?o().set("sidebarStatus",1):o().set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){o().set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},OPEN_SIDEBAR:function(e,t){o().set("sidebarStatus",1),e.sidebar.opened=!0,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_LANGUAGE:function(e,t){e.language=t,o().set("language",t)},SET_SIZE:function(e,t){e.size=t,o().set("size",t)}},l={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},openSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("OPEN_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setLanguage:function(e,t){var n=e.commit;n("SET_LANGUAGE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:r,mutations:s,actions:l}},8256:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return se}});var a=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[e.orgCode&&!e.row.id&&e.sysSetupList.length>1?t("el-switch",{attrs:{"active-text":e.$tx("ecwplat.sysSetup.activeText","按主系统合并"),"inactive-text":e.$tx("ecwplat.sysSetup.inactiveText","展开子系统")},on:{change:function(t){return e.loadSysSetup()}},model:{value:e.mergeSubSys,callback:function(t){e.mergeSubSys=t},expression:"mergeSubSys"}}):e._e(),null!=e.treeData&&e.treeData.length>0?t("GiantTree",{class:e.row.id||1==e.sysSetupList.length?"":"can-merge-subsys",attrs:{nodes:e.treeData,multiple:!1,drag:!0,"tree-before-drop-node":e.treeBeforeDropNode},on:{onClick:e.onTreeNodeClick,onCreated:e.onTreeCreated,onDrop:e.treeDropNode},scopedSlots:e._u([{key:"context-menu",fn:function(n){return[n&&null===n.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addColumn",expression:"'ecwplat.PageBtns.addColumn'"}],on:{click:function(t){return e.addModuleMenu(n.treeId,n.contextNode)}}},[e._v("新增栏目")]),1!=e.dwadmin?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.systemSetting",expression:"'ecwplat.PageBtns.systemSetting'"}],on:{click:function(t){return e.editSysSetup(n.treeId,n.contextNode)}}},[e._v("系统设置")]):e._e()]):e._e(),n&&null!==n.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addSubmenu",expression:"'ecwplat.PageBtns.addSubmenu'"}],on:{click:function(t){return e.addMenu(n.treeId,n.contextNode)}}},[e._v("新增子菜单")]),n.contextNode.moduleLevel<=2?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addApprMenu",expression:"'ecwplat.PageBtns.addApprMenu'"}],on:{click:function(t){return e.addWflowMenus(n.treeId,n.contextNode)}}},[e._v("新增审批菜单组")]):e._e(),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.modifyMenu",expression:"'ecwplat.PageBtns.modifyMenu'"}],on:{click:function(t){return e.editMenu(n.treeId,n.contextNode)}}},[e._v("修改菜单")]),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.deleteMenu",expression:"'ecwplat.PageBtns.deleteMenu'"}],on:{click:function(t){return e.deleteMenu(n.treeId,n.contextNode)}}},[e._v("删除菜单")])]):e._e()]}}],null,!1,3213185892)}):e._e(),null==e.treeData||0==e.treeData.length?t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectMechanism",expression:"'selectMechanism'"}],staticClass:"dwadmin-initmessage",on:{click:e.openSelectRootOrgDialog}},[e._v("请选择模块菜单所属机构")]):e._e()],1),t("RightPanel",[null==e.sys&&1!=e.dwadmin?t("div",[t("PageContent",{attrs:{title:e.$tx("ecwplat.sysSetup.moduleMenu","模块菜单"),"set-nav-search":!1}},[null==e.importResult?t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[1!=e.dwadmin?t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"affiliatedInstitution",expression:"'affiliatedInstitution'"}],staticClass:"tdlbl tdw17"},[e._v("所属机构")]),t("td",{staticClass:"tdcont tdw83 td-organ",attrs:{colspan:"5"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.affiliatedInstitution","所属机构"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"rootorg",expression:"'rootorg'"}],attrs:{"org-type":"1",readonly:"",name:"orgCode",placeholder:e.$tx("ecwplat.sysSetup.selectAffInsti","请选择模块菜单所属机构")},model:{value:e.treeNode,callback:function(t){e.treeNode=t},expression:"treeNode"}})],1)]}}],null,!1,3659148067)})],1)]):e._e(),t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"settingInstruction",expression:"'settingInstruction'"}],staticClass:"tdlbl tdw17"},[e._v("设置说明")]),t("td",{staticClass:"tdcont tdw83",attrs:{colspan:"5"}},[t("div",{staticStyle:{float:"left","text-align":"left","line-height":"25px"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip1",expression:"'explainTip1'"}]},[e._v("1.产品业务开通后,可对各单位已开通产品的模块菜单做个性化设置;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip2",expression:"'explainTip2'"}]},[e._v("2.一个单位开通多个产品,一次性加载全部产品模块菜单;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip3",expression:"'explainTip3'"}]},[e._v("3.请先选择模块菜单所属单位。")]),t("br")])])])])])])])]):e._e()],1)],1):e._e(),null!==e.sys&&null===e.menuItem?t("SysSetup",{attrs:{vo:e.sys,"z-tree":e.zTree,"sys-code":e.row.sysCode,"allow-delete-sys":e.allowDeleteSys}}):e._e(),null!==e.sys&&null!==e.menuItem?t("ModuleMenu",{attrs:{sys:e.sys,vo:e.menuItem,"z-tree":e.zTree}}):e._e(),t("CopyMenu",{attrs:{"z-tree":e.zTree},on:{refreshTreeData:e.refreshTreeData}})],1)],1)},o=[],i=n(5353);function r(e){return r="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},r(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=u(e,"string");return"symbol"==r(t)?t:t+""}function u(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f={name:"ModuleIndex",components:{},props:{row:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",moduleInfo:{loadSysSetupUrl:"base/sysSetup/querydata",loadTreeNodeUrl:"base/menuMgr/querydata",updateModuleUrl:"base/menuMgr/updateModuleAndPermissions"},sys:null,sysSetupList:[],menuItem:null,mergeSubSys:!0,treeData:[],zTree:{},isPortal:!1,dwadmin:0,orgCode:null}},computed:l({},(0,i.L8)(["loginUser"])),watch:{},created:function(){if(this.$bus.emit("showNavSearch",!1),console.log(this.$route.meta.params,"this.$route.meta.params"),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("orgCode=")){var e=this.$route.meta.params.split("orgCode=")[1].split("&");this.loadSysSetup(e)}else"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?(this.dwadmin=1,this.loadSysSetup(this.loginUser.orgCode)):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")?this.loadSysSetup(this.loginUser.orgCode):this.row.sysCode?this.loadSysSetup(this.row.orgCode):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("isPortal=1")&&(this.isPortal=!0);this.$bus.on("setOrgItemTree",this.setOrgItem)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("setOrgItemTree",this.setOrgItem)},mounted:function(){},methods:{setOrgItem:function(e){var t=localStorage.orgItem?JSON.parse(localStorage.orgItem).orgCode:JSON.parse(localStorage.orgList)[1].orgCode;this.loadSysSetup(t)},loadSysSetup:function(e){var t=this;this.orgCode=e||this.orgCode,this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",value:this.row.orgCode||this.orgCode}],params:{orderBy:"isDefaultSys desc,orderNo"},url:this.moduleInfo.loadSysSetupUrl}).then((function(e){if("success"===e.code)if(t.sysSetupList=e.body.listdata,e.body.listdata.length>0){t.sys=e.body.listdata[0];var n=[];e.body.listdata.forEach((function(e){n.push(e.sysCode)}));var a=[];if(t.row.sysCode)e.body.listdata.forEach((function(e){e.sysCode===t.row.sysCode&&a.push(e)}));else if(t.isPortal&&localStorage.orgItem){var o=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";e.body.listdata.forEach((function(e){e.sysCode===o&&a.push(e)}))}else a=e.body.listdata;var i=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"in",field:"sysCode",value:i||t.row.sysCode||n.join(",")}],params:{orderBy:"moduleLevel asc,orderNo asc"},url:t.moduleInfo.loadTreeNodeUrl}).then((function(e){"success"===e.code?t.treeData=t.treeDataAdapter(a.concat(e.body.listdata)):t.$alert(e.message,{type:"error"})}))}else t.$alert(t.$tx("ecwplat.sysSetup.chooseAgain","您所选择的单位未开通任何业务,请重新选择!"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(e.message,{type:"error"})}))},openSelectRootOrgDialog:function(){document.querySelector(".td-organ").querySelector("BUTTON").click()},onSelectRootorgCompleted:function(e,t){this.loadSysSetup(e[0].ocode)},treeDataAdapter:function(e){var t={},n={},a={};if(!0===this.mergeSubSys&&e.length>1&&1===e[0].sysType){for(var o=0;o<e.length;o++){var i=e[o];"appCenter"===i.code&&1===i.moduleLevel&&1===i.topFlag&&(a[i.sysCode]=i,i.passenger.disallowAddSubMenu=!0),void 0!==i.sysLicense?(i.name=i.sysName,i.pId=null,i.open=!0,i.title=i.sysName,1===i.sysType?t[i.sysCode]=i.id:t[i.masterSys]&&(t[i.sysCode]=t[i.masterSys],n[i.sysCode]=i.orderNo,e.splice(o--,1))):("0"===i.parentId?i.pId=t[i.sysCode]:i.pId=i.parentId,i.title="名称:"+i.name+"\r\n代码:"+i.code+"\r\n排序:"+i.orderNo)}for(var r in a){var s=a[r];if(s)for(var l=0;l<e.length;l++){var d=e[l];1===d.moduleLevel&&0===d.topFlag&&r!==d.sysCode&&(d.pId=s.id,d.orderNo=n[d.sysCode]+"/"+d.orderNo,d.title="名称:"+d.name+"\r\n代码:"+d.code+"\r\n排序:"+d.orderNo)}}e.sort((function(e,t){return e.orderNo<t.orderNo?-1:1}))}else e.forEach((function(e){void 0!==e.sysLicense?(e.name=e.sysName,e.pId=null,e.open=!0,e.title=e.sysName,t[e.sysCode]=e.id):("0"===e.parentId?e.pId=t[e.sysCode]:e.pId=e.parentId,e.title="名称:"+e.name+"\r\n代码:"+e.code+"\r\n排序:"+e.orderNo)}));return e},refreshTreeData:function(e){this.loadSysSetup(this.orgCode)},onTreeNodeClick:function(e,t,n){var a=this,o=JSON.parse(JSON.stringify(this.sys));this.sys=null,this.$nextTick((function(e){void 0===n.pId||null===n.pId?(a.menuItem=null,a.sys=n):(a.setMenuItem(n),a.sys=o)}))},setMenuItem:function(e){var t=e.getParentNode(),n="";while(null!==t&&t.getParentNode)n=t.name+"/"+n,t=t.getParentNode();e.parentName=n,2===e.moduleLevel&&0===e.leafFlag&&"rightLabel"!==e.target&&(e.target="leftMenuItem"),this.menuItem=e},onTreeCreated:function(e){this.zTree=e},treeBeforeDropNode:function(e,t,n,a,o){return!("inner"===a&&n.moduleLevel>1&&1===n.leafFlag)||(this.$alert(this.$tx("ecwplat.sysSetup.cannotBe",{targetNode:n.name},"".concat(n.name,"不是文件夹菜单,不能移入。")),{type:"warning"}),!1)},treeDropNode:function(e,t,n,a,o,i){var r=this,s=null,l=a.orderNo;if("inner"===o){s=a;var d=a.children;null!=d&&d.length>1&&(l=d[d.length-2].orderNo,isNaN(l)||(l=l-0+10))}else s=a.getParentNode(),isNaN(l)||("prev"===o?l-=1:l=l-0+1);var c=l+"",u=c.length;if(l>=0)if(c.length<4)for(var f=0;f<4-u;f++)c+="0";else c.length>4&&(c="9999");n.orderNo=c,n.pId=s.id,n.sysCOde=s.sysCode,null==s.pId?(n.moduleLevel=1,n.parentId="0"):(n.moduleLevel=s.moduleLevel+1,n.parentId=s.id),this.$http({method:"put",data:n,url:this.moduleInfo.updateModuleUrl}).then((function(a){"success"===a.code?(r.onTreeNodeClick(e,t,n),r.$message.success(a.message)):r.$alert(a.message,{type:"error"})}))},addModuleMenu:function(e,t){var n=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("addModuleMenu")}))},editSysSetup:function(e,t){var n=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("editSysSetup")}))},addMenu:function(e,t){var n=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){n.$bus.emit("addMenu")}))},addWflowMenus:function(e,t){var n=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){n.$bus.emit("addMenu","wflowMenus")}))},editMenu:function(e,t){var n=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){n.$bus.emit("editMenu")}))},deleteMenu:function(e,t){var n=this;null===this.menuItem&&(this.zTree.selectNode(t),this.setMenuItem(t)),this.$nextTick((function(){n.$bus.emit("deleteMenu",t)}))}}},p=f,m=(n(458),n(1656)),h=(0,m.A)(p,a,o,!1,null,"3801b56a",null),v=h.exports,g=function(){var e=this,t=e._self._c;return t("PageContent",{attrs:{title:e.formTitle}},[t("dynamic-form",{attrs:{"table-field-info":e.sysSetupTableFieldInfo,vo:e.vo,"module-info":e.sysSetupModuleInfo,"can-edit":0}}),"SysSetup"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.PageBtns.systemSetting","系统设置"),"win-width":e.sysSetupModuleInfo.winWidth,"win-height":e.sysSetupModuleInfo.winHeight,"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onSysSetupFormBeforeOpen,"on-basic-form-submited":e.onSysSetupFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("dynamic-form",{attrs:{vo:n?n.vo:e.formVo,"table-field-info":e.sysSetupTableFieldInfo,"can-edit":n?n.canEdit:1,"module-info":e.sysSetupModuleInfo}})]}}],null,!1,1967240207)}):e._e(),"ModuleMenu"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"),"append-to-body":!0,"win-width":e.menuModuleInfo.winWidth,"win-height":e.menuModuleInfo.winHeight,"on-basic-form-before-open":e.onMenuModuleFormBeforeOpen,"on-basic-form-submited":e.onMenuModuleFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("MenuItemForm",{attrs:{vo:n?n.vo:e.formVo,"can-edit":n?n.canEdit:1,"module-info":e.menuModuleInfo}})]}}],null,!1,1127664884)}):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"addModuleMenu",expression:"'addModuleMenu'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addColumn",expression:"'addColumn'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addModuleMenu}},[e._v("新增栏目")]),1!=e.dwadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"systemSetting",expression:"'systemSetting'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editSysSetup}},[e._v("系统设置")]):e._e(),1!=e.dwadmin&&"eccloud"!=e.vo.sysCode&&e.allowDeleteSys?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"oneClickDelete",expression:"'oneClickDelete'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.deleteSysSetup}},[e._v("一键删除")]):e._e(),1!=e.dwadmin&&1!=e.platadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"switchUnits",expression:"'switchUnits'"}],attrs:{plain:"",icon:"el-icon-search"},on:{click:e.selectOrgan}},[e._v("切换单位")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")]):e._e()],1),t("ExportModuleCode"),t("ImportModuleCode"),t("DoingDialog")],1)},y=[],_=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.vo.parentName?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"parentName",expression:"'parentName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.vo.parentName)}})])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.nameLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.nameLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"name",placeholder:e.$tx("common.plInputContent",{content:e.nameLabel},"请输入".concat(e.nameLabel))},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.codeLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.codeLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"code",placeholder:e.$tx("common.plInputContent",{content:e.codeLabel},"请输入".concat(e.codeLabel))},model:{value:e.vo.code,callback:function(t){e.$set(e.vo,"code",t)},expression:"vo.code"}},[2==e.vo.moduleLevel||3==e.vo.leafType||4==e.vo.leafType?t("el-button",{attrs:{slot:"append",icon:"el-icon-more"},on:{click:e.selectMenuIcon},slot:"append"}):e._e()],1)],1)]}}])})],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"columnAbbre",expression:"'columnAbbre'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("栏目简称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"description",placeholder:e.$tx("ecwplat.menuForm.fields.columnAbbreEnter","请输入栏目简称")},model:{value:e.vo.description,callback:function(t){e.$set(e.vo,"description",t)},expression:"vo.description"}})],1)]):e._e(),1!==e.vo.moduleLevel?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:"menuType",expression:"'menuType'"}]},[e._v("菜单类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[e.isWflowMenus?t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"approvalMenu",expression:"'approvalMenu'"}]},[e._v("审批菜单组")]):t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuType","菜单类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"leafFlag",placeholder:e.$tx("ecwplat.menuForm.fields.selectmenuType","请选择菜单类型")},model:{value:e.vo.leafFlag,callback:function(t){e.$set(e.vo,"leafFlag",t)},expression:"vo.leafFlag"}},e._l(e.leafFlagOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,2896587604)})],1)]):e._e(),e.isWflowMenus?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:"moduleSubmenu",expression:"'moduleSubmenu'"}]},[e._v("审批模块子菜单")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.moduleSubmenu","审批模块子菜单"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-checkbox-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"selectedItem",placeholder:e.$tx("ecwplat.menuForm.fields.selectModuleSubmenu","请选择审批模块子菜单")},model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}},e._l(e.wflowMenuItems,(function(n,a){return t("el-checkbox",{key:a,attrs:{label:n.code}},[e._v(e._s(n.name+n.text))])})),1)],1)]}}],null,!1,1789908154)})],1)]):e._e(),e.isWflowMenus&&-1!=e.selectedItem.indexOf("MyCreated")?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:"myCreatedURL",expression:"'myCreatedURL'"}]},[e._v("我创建的列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.myCreatedURL","我创建的列表URL"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listMyCratedPageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterMyCreatedURL","请输入我创建的列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listMyCratedPageUrl,callback:function(t){e.$set(e.vo.passenger,"listMyCratedPageUrl",t)},expression:"vo.passenger.listMyCratedPageUrl"}})],1)]}}],null,!1,1791232420)})],1)]):e._e(),e.isWflowMenus&&-1!=e.selectedItem.indexOf("AllFile")?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:"listURL",expression:"'listURL'"}],attrs:{dataType:e.wflowMenuItems[2].name}},[e._v(e._s(e.wflowMenuItems[2].name)+"列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.wflowMenuItems[2].name+"列表URL",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listAllFilepageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterListURL",{dataType:e.wflowMenuItems[2].name},"{dataType}列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listAllFilepageUrl,callback:function(t){e.$set(e.vo.passenger,"listAllFilepageUrl",t)},expression:"vo.passenger.listAllFilepageUrl"}})],1)]}}],null,!1,1791012380)})],1)]):e._e(),e.isWflowMenus&&-1!=e.selectedItem.indexOf("MyProcessed")?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:"approvalCode",expression:"'approvalCode'"}]},[e._v("审批模块业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.approvalCode","审批模块业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:e.$tx("ecwplat.menuForm.fields.enterApprovalCode","请输入审批模块业务代码,例:fawen,shouwen,hytz")},model:{value:e.vo.passenger.busiCode,callback:function(t){e.$set(e.vo.passenger,"busiCode",t)},expression:"vo.passenger.busiCode"}})],1)]}}],null,!1,471353048)})],1)]):e._e(),e.refresh||1!==e.vo.moduleLevel&&(1===e.vo.moduleLevel||1!==e.vo.leafFlag)?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:"pageContentType",expression:"'pageContentType'"}]},[e._v("页面内容类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.pageContentType","页面内容类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"leafType",placeholder:e.$tx("ecwplat.menuForm.fields.selectPageContentType","请选择页面内容类型")},model:{value:e.vo.leafType,callback:function(t){e.$set(e.vo,"leafType",t)},expression:"vo.leafType"}},e._l(e.leafTypeOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,2308690411)})],1)]),1===e.vo.leafFlag?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:"openType",expression:"'openType'"}]},[e._v("打开方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.openType","打开方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectOpenType","请选择打开方式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,859240764)})],1)]):e._e(),e.vo.moduleLevel>=2&&0===e.vo.leafFlag&&!e.isWflowMenus?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:"submenuStyle",expression:"'submenuStyle'"}]},[e._v("子菜单样式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.submenuStyle","子菜单样式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectSubmenuStyle","请选择子菜单样式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}],null,!1,454132852)})],1)]):e._e(),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType&&5!==e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navName",expression:"'navName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("页面导航名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"listNavName",placeholder:e.$tx("ecwplat.menuForm.fields.navNameEnter","请输入页面导航名称")},model:{value:e.vo.listNavName,callback:function(t){e.$set(e.vo,"listNavName",t)},expression:"vo.listNavName"}})],1)]),1===e.vo.leafFlag&&3!==e.vo.leafType&&5!==e.vo.leafType&&6!==e.vo.leafType&&1!==e.vo.leafType?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:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接")},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,1000627797)})],1)]):e._e(),1!==e.vo.leafFlag||1!==e.vo.leafType&&5!==e.vo.leafType&&6!==e.vo.leafType?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:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[6===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:e.portalPageListUrl},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):5===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"ureport.reportDefine.list?urlsearch=reportViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3601479216)})],1)]),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormat",expression:"'urlFormat'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("URL格式")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip1",expression:"'urlFormatTip1'"}]},[e._v('1、动态列表视图vue组件url,以英文字符"/"结尾,不包括扩展名')]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip2",expression:"'urlFormatTip2'"}]},[e._v("2、格式为:#/dcontent/base.jobPosition.list/")])]):e._e(),2===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip3",expression:"'urlFormatTip3'"}]},[e._v("1、静态列表视图vue组件文件路径,不包括文件扩展名")]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip4",expression:"'urlFormatTip4'"}]},[e._v("2、格式为:@/wapp/workflow/wfTaskItem/myTodo")])]):e._e()])]),1===e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?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:"wfName",expression:"'wfName'"}]},[e._v("流程名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.wfName","流程名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"wfName",placeholder:e.$tx("ecwplat.menuForm.fields.wfNameEnter","请输入流程名称"),listviewurl:"workflow.wfdProcess.list"},model:{value:e.vo.wfName,callback:function(t){e.$set(e.vo,"wfName",t)},expression:"vo.wfName"}})],1)]}}],null,!1,223860017)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wfCode",expression:"'wfCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("流程编码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfCode",placeholder:e.$tx("ecwplat.menuForm.fields.wfCodeEnter","请输入流程编码")},model:{value:e.vo.wfCode,callback:function(t){e.$set(e.vo,"wfCode",t)},expression:"vo.wfCode"}})],1)]),1!==e.vo.moduleLevel&&1===e.vo.leafFlag&&3===e.vo.leafType?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:"businessCode",expression:"'businessCode'"}]},[e._v("业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.businessCode","业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.businessCodeEnter","请输入业务代码,首字母小写"),listviewurl:"base.entityListpage.list"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3104104198)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"engineUrl",expression:"'engineUrl'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("引擎(模块)URL")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfEngineUrl",placeholder:e.$tx("ecwplat.menuForm.fields.engineUrlEnter","请输入引擎(模块)URL")},model:{value:e.vo.wfEngineUrl,callback:function(t){e.$set(e.vo,"wfEngineUrl",t)},expression:"vo.wfEngineUrl"}})],1)]):e._e(),1==e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageName",expression:"'stageName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("起始环节名称")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfNodeName",placeholder:e.$tx("ecwplat.menuForm.fields.stageNameEnter","请输入起始环节名称")},model:{value:e.vo.wfNodeName,callback:function(t){e.$set(e.vo,"wfNodeName",t)},expression:"vo.wfNodeName"}})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageCode",expression:"'stageCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("起始环节编码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfNodeCode",placeholder:e.$tx("ecwplat.menuForm.fields.stageCodeEnter","请输入起始环节编码")},model:{value:e.vo.wfNodeCode,callback:function(t){e.$set(e.vo,"wfNodeCode",t)},expression:"vo.wfNodeCode"}})],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navShow",expression:"'navShow'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("导航栏显示")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType"},model:{value:e.vo.topFlag,callback:function(t){e.$set(e.vo,"topFlag",t)},expression:"vo.topFlag"}},[t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption1",expression:"'navOption1'"}],attrs:{label:1}},[e._v("显示")]),t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption2",expression:"'navOption2'"}],attrs:{label:0}},[e._v("不显示")])],1)],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:"authoType",expression:"'authoType'"}]},[e._v("授权方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.authoType","授权方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-select",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType",placeholder:e.$tx("ecwplat.menuForm.fields.selectAuthoType","请选择授权方式")},model:{value:e.vo.visitType,callback:function(t){e.$set(e.vo,"visitType",t)},expression:"vo.visitType"}},e._l(e.visitTypeOptions,(function(e,n){return t("el-option",{key:n,attrs:{label:e.text,value:e.value}})})),1)],1)]}}])})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"i18nCode",expression:"'i18nCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("I18N代码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"i18nCode",placeholder:e.$tx("ecwplat.menuForm.fields.i18nCodeEnter","请输入I18N代码")},model:{value:e.vo.i18nCode,callback:function(t){e.$set(e.vo,"i18nCode",t)},expression:"vo.i18nCode"}})],1)]),0!==e.vo.visitType?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"accessAuthorization",expression:"'accessAuthorization'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("访问授权")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("res-roles",{attrs:{"res-id":e.vo.id,"res-type":"MENU","permission-code":"VISIT","root-org-code":e.vo.orgCode,"sys-code":e.vo.sysCode,"visit-type":e.vo.visitType,"select-type":e.resRolesSelectType,change:e.handleResRolesChange,"can-edit":e.canEdit}})],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:"orderNumber",expression:"'orderNumber'"}]},[e._v("排序序号")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.orderNumber","排序序号"),rules:"required|integer|length:4"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"orderNo",placeholder:e.$tx("ecwplat.menuForm.fields.orderNumberEnter","请输入4位数字排序序号"),"ecng-listpage-dialog":"",listviewurl:"base.entityListpage.list"},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],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:"status",expression:"'status'"}]},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.status","状态"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[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("ecwplat.menuForm.fields.selectstatus","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.value}},[e._v(e._s(n.text))])})),1)],1)]}}])})],1)])])])])]),e.iconDialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.iconDialogFormVisible,"append-to-body":!0,"close-on-click-modal":!0,width:"1250px",title:e.$tx("ecwplat.menuForm.fields.menuIcon","选择菜单图标")},on:{"update:visible":function(t){e.iconDialogFormVisible=t}}},[t("Icons")],1):e._e()],1)},b=[],w={name:"MenuItemForm",components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1},newMenuType:{type:String,default:null},sys:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"menuForm",leafFlagOptions:[{value:0,text:this.$tx("ecwplat.menuForm.folder","文件夹")},{value:1,text:this.$tx("ecwplat.menuForm.menuItem","菜单项")}],statusOptions:[{value:1,text:this.$tx("ecwplat.PageBtns.enable","启用")},{value:0,text:this.$tx("ecwplat.PageBtns.disable","禁用")}],refresh:!1,iconDialogFormVisible:!1,selectedItem:["MyCreated","MyProcessed","AllFile"],wflowMenuItems:[{code:"MyCreated",name:this.$tx("ecwplat.menuForm.myCreated","我创建的"),text:this.$tx("ecwplat.menuForm.fourStatus","(全部、草稿、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Draft",name:"草稿",urlsearch:"status:0"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]},{code:"MyProcessed",name:this.$tx("ecwplat.menuForm.myProcessed","我处理的"),text:this.$tx("ecwplat.menuForm.twoStatus","(待办、已办)"),children:[{code:"Todo",name:"待办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myTodo/?urlsearch=module:[busiCode]"},{code:"Done",name:"已办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myDone/?urlsearch=module:[busiCode]"}]},{code:"AllFile",name:this.$tx("ecwplat.menuForm.allFile","全部"),text:this.$tx("ecwplat.menuForm.threeStatus","(全部、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]}],productCodeAll:this.$store.getters.productCodeAll,resRolesSelectType:""}},computed:{nameLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnName","栏目名称"):this.$tx("ecwplat.menuForm.menuName","菜单名称")},codeLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnCode","栏目编码"):this.$tx("ecwplat.menuForm.menuCode","菜单编码")},targetOptions:function(){return 1===this.vo.moduleLevel||1===this.vo.leafFlag?[{value:"mainpage",text:this.$tx("ecwplat.menuForm.lnavWork","左导航+工作区")},{value:"content",text:this.$tx("ecwplat.menuForm.work","工作区")},{value:"_blank",text:this.$tx("ecwplat.menuForm.popUp","弹出窗口")},{value:"_top",text:this.$tx("ecwplat.menuForm.topWAin","顶层窗口")}]:this.vo.moduleLevel>=2&&0===this.vo.leafFlag?[{value:"leftMenuItem",text:this.$tx("ecwplat.menuForm.leftMenu","左侧菜单顶")},{value:"rightLabel",text:this.$tx("ecwplat.menuForm.rightLabel","右侧页面标签")}]:[]},leafTypeOptions:function(){if(1===this.vo.moduleLevel)return[{value:null,text:this.$tx("ecwplat.menuForm.not","无")},{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicListPage","动态列表页面")},{value:2,text:this.$tx("ecwplat.menuForm.staticListPage","静态列表页面")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")}];if(1===this.vo.leafFlag){var e=[{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicList","动态列表")},{value:2,text:this.$tx("ecwplat.menuForm.staticList","静态列表")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")},{value:5,text:this.$tx("ecwplat.menuForm.statisticalReport","统计报表")}];return this.sys&&this.sys.passenger&&0!==this.sys.passenger.workflow&&(e.push({value:3,text:this.$tx("ecwplat.menuForm.standardDraft","起草文件(标准)")}),e.push({value:4,text:this.$tx("ecwplat.menuForm.customizedDraft","起草文件(定制)")})),e}return[]},visitTypeOptions:function(){var e=[{value:0,text:this.$tx("ecwplat.menuForm.Unrestricted","不限制")},{value:1,text:this.$tx("ecwplat.menuForm.designatedRole","指定角色")}];return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)||(e.push({value:2,text:this.$tx("ecwplat.menuForm.desiPerson","指定机构人员")}),e.push({value:3,text:this.$tx("ecwplat.menuForm.specifyGroup","指定群组")})),e},portalPageListUrl:function(){var e="base.portalPage.list_portal";return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)&&(e="base.portalPage.list_product"),e+"?urlsearch=sysCode:"+this.vo.sysCode+";clientType:W"},isWflowMenus:function(){return"wflowMenus"===this.newMenuType}},watch:{vo:{handler:function(e,t){this.updateMenuItemView()},deep:!0}},created:function(){this.$options.components["Icons"]=this.$loadComponent("@/wapp/support/icons/index")},beforeDestroy:function(){},mounted:function(){1!==this.vo.moduleLevel||this.vo.href||this.$set(this.vo,"leafType",null),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("resRolesSelectType=")&&(this.resRolesSelectType=this.$route.meta.params.split("resRolesSelectType=")[1].split("&")[0]),this.updateMenuItemView()},methods:{updateMenuItemView:function(){var e=this;this.isWflowMenus&&(this.wflowMenuItems[2].name=this.$tx("ecwplat.menuForm.allFile","全部")+(this.vo.name||""),this.vo.passenger.wflowMenuItems=this.wflowMenuItems),1===this.vo.moduleLevel&&(null===this.vo.leafType?this.$set(this.vo,"leafFlag",0):this.$set(this.vo,"leafFlag",1),null===this.vo.topFlag&&this.$set(this.vo,"topFlag",1)),0===this.vo.leafFlag&&"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target?2===this.vo.moduleLevel?this.vo.target="leftMenuItem":this.vo.moduleLevel>=3&&(this.vo.target="rightLabel"):1!==this.vo.leafFlag||"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target||(this.vo.target=""),this.vo.passenger.selectedItem=this.selectedItem.join(","),this.refresh=!0,this.$nextTick((function(){e.refresh=!1}))},selectMenuIcon:function(){this.iconDialogFormVisible=!0},handleResRolesChange:function(e){this.vo.visitOwnerIds=e},onSelectListpageRowCompleted:function(e,t){if(0!==e.length)if("wfName"===t.name){if(this.$set(this.vo,"wfName",e[0].name),this.$set(this.vo,"wfCode",e[0].processNo),e[0].workFormW){if(0==this.vo.wfCode.indexOf("udmjysp_"))this.$set(this.vo,"href",this.vo.wfCode.toLowerCase()),this.$set(this.vo,"wfEngineUrl","znbg/udmjysp");else{var n=e[0].workFormW;-1!==n.indexOf("/dcontent/")?n=n.split("/dcontent/")[1]:n.indexOf("@/wapp/")&&(n=n.split("@/wapp/")[1].replace("///",".")),this.$set(this.vo,"href",n.split(".")[1]),this.$set(this.vo,"wfEngineUrl",n.split(".")[0]+"/"+n.split(".")[1])}4===this.vo.leafType&&this.$set(this.vo,"href","#/wflow?busiCode="+this.vo.href+"&wfEngineUrl="+this.vo.wfEngineUrl)}}else if("href"===t.name)if(6===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].pageName),this.vo.code||this.$set(this.vo,"code",e[0].pageCode);var a="@/wapp/portal/index?pageCode="+e[0].pageCode;-1!==e[0].pageViewUrl.indexOf("?pageCode=")&&(a=e[0].pageViewUrl),this.$set(this.vo,"href",a)}else if(5===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].reportName),this.vo.code||this.$set(this.vo,"code",e[0].reportCode);var o="#/dcontent/vuereportpage/"+decodeURIComponent(e[0].reportViewUrl).split("_u=")[1];this.$set(this.vo,"href",o)}else if(3===this.vo.leafType){var i=e[0].listViewUrl.split(".")[0];i=i.replace(/\//g,"."),this.$set(this.vo,"href",i.split(".")[2]),this.$set(this.vo,"wfEngineUrl",i.split(".")[1]+"/"+i.split(".")[2])}else{var r=e[0].listViewUrl.split(".")[0];r=r.replace(/\//g,"."),r=r.substring(1)+"/",this.$set(this.vo,"href","#/dcontent/"+r)}else{var s=e[0].listViewUrl.split(".")[0];s=s.replace(/\//g,"."),s=s.substring(1)+"/",this.$set(this.vo.passenger,t.name,"#/dcontent/"+s),this.vo.passenger.busiCode||this.$set(this.vo.passenger,"busiCode",s.split(".")[2])}}}},x=w,M=(n(6664),(0,m.A)(x,_,b,!1,null,"6ff0d390",null)),k=M.exports;function L(e){return L="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},L(e)}function S(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */S=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new C(a||[]);return o(r,"_invoke",{value:D(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==L(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function D(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=N(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function N(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(L(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(T.prototype),d(T.prototype,s,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new T(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=O,C.prototype={constructor:C,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)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;Y(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:O(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function T(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function D(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){T(i,a,o,r,s,"next",e)}function s(e){T(i,a,o,r,s,"throw",e)}r(void 0)}))}}var N={name:"SysSetup",components:{MenuItemForm:k},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",formTitle:this.$tx("ecwplat.sysSetup.fields.sysConfigInfo","系统配置信息"),dwadmin:0,platadmin:0,loginUser:this.$store.getters.loginUser,formType:"SysSetup",formVo:null,sysSetupModuleInfo:{winWidth:1e3,winHeight:600,moduleCode:"sysSetup",updateUrl:"base/sysSetup/update",delUrl:"base/sysSetup/deleteSysSetup",getByIdUrl:"base/sysSetup/getById"},menuModuleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew?sysCode="+this.vo.sysCode+"&parentId=0",insertUrl:"base/menuMgr/insertModuleAndPermissions",winWidth:900,winHeight:600},sysSetupTableFieldInfo:[{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位名称",errorMessage:"",formElementIndex:0,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"b06df403257a4614a78cc883b2149c3c",isRequired:1,passenger:{},propComment:"用户单位名称",propName:"orgFullname",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位代码",errorMessage:"",formElementIndex:2,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"364d485f85ee49a4b0e7307b7e489a6d",isRequired:1,propComment:"用户单位代码",propName:"orgCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统名称",errorMessage:"",formElementIndex:3,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"eb35f7324ce245d2bfcc2d8599fb7be2",isRequired:1,propComment:"系统名称",propName:"sysName",propType:"String",textFormatter:"textfield",valueMaxLength:250},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统代码",errorMessage:"",formElementIndex:4,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"3d71c21947bb4edcb692026c44a83625",isRequired:1,propComment:"系统代码",propName:"sysCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"0",elementFormatter:"1:是\n0:否",elementType:"radio",emptyMessage:"请输入是否默认主系统",errorMessage:"",formElementIndex:5,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"bbbcdcece2704ad986ed9fe66f2fc653",isRequired:1,passenger:{},propComment:"是否默认主系统",propName:"isDefaultSys",propType:"Short",textFormatter:""},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementType:"select",emptyMessage:"请选择产品名称 ",errorMessage:"",formElementIndex:6,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"4d2ef571906e487baa359f215b32b18e",isRequired:0,propComment:"产品代码",propName:"productName",propType:"String",textFormatter:"",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入LOGO图片文件名",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"7eee9e8e3a884c33ac731b94bfbc0637",isRequired:1,propComment:"LOGO图片文件名",propName:"sysLogoFileName",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"sysLogoFileName",elementCanEdit:"{{canEdit}}",elementFormatter:"",elementType:"file",emptyMessage:"请选择系统LOGO图片",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"e2a472a94bfe4b23b72171cd74dc9d4a",isRequired:1,propComment:"系统LOGO图片",propName:"sysLogo",propType:"byte[]",textFormatter:"image/*",valueMaxLength:1,valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务开通时间",propName:"openTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务截止时间",propName:"expiredTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"1",elementCanEdit:"{{canEdit}}",elementFormatter:"1:启用\r\n0:禁用\r\n",elementType:"radio",emptyMessage:"请选择系统状态 ",errorMessage:"",formElementIndex:11,formShow:1,formTdAlign:"text-left",formTdColspan:24,id:"9391e6e75a964a82949543dd899e746e",isRequired:1,propComment:"系统状态 ",propName:"sysStatus",propType:"Short",textFormatter:"",valueMinLength:0}],busiformBtns:[]}},computed:{},watch:{},created:function(){this.$bus.on("editSysSetup",this.editSysSetup),this.$bus.on("addModuleMenu",this.addModuleMenu),"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?this.dwadmin=1:this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")&&(this.platadmin=1,this.sysSetupTableFieldInfo.splice(0,2))},beforeDestroy:function(){this.$bus.off("editSysSetup",this.editSysSetup),this.$bus.off("addModuleMenu",this.addModuleMenu)},mounted:function(){},methods:{editSysSetup:function(){var e=this;this.formType="SysSetup",this.$nextTick((function(){e.$bus.emit("openBusiform",e.sysSetupModuleInfo,e.vo,1)}))},deleteSysSetup:function(){var e=this,t=this.$tx("ecwplat.sysSetup.delSysSetupTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"的全部系统数据?"));1===this.vo.sysType&&(t=this.$tx("ecwplat.sysSetup.delSysSetupAllTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"以及关联子系统的全部数据?"))),this.$confirm(t,this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(D(S().mark((function t(){var n;return S().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$bus.emit("showDoingDialog"),t.next=3,e.$app.deleteByIds(e.sysSetupModuleInfo.delUrl,e.vo.id.split(","));case 3:n=t.sent,e.$bus.emit("closeDoingDialog"),"success"===n.code?(e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"warning"}),e.$vnode.context.treeData=[],e.$vnode.context.sys=null):e.$alert(n.message,e.$tx("common.operationTip","操作提示"),{type:"error"});case 6:case"end":return t.stop()}}),t)})))).catch((function(e){"cancel"!==e&&console.error(e)}))},selectOrgan:function(){this.$vnode.context.treeData=[],this.$vnode.context.sys=null,this.$nextTick((function(e){document.querySelector(".td-organ").querySelector(".el-button").click()}))},addModuleMenu:function(){var e=this;this.formType="ModuleMenu",this.$nextTick((function(){e.$bus.emit("openBusiform",e.menuModuleInfo,null,1)}))},onMenuModuleFormBeforeOpen:function(e,t,n){t.parentName=this.vo.sysName,null===t.status&&(t.status=1),null===t.leafFlag&&(t.leafFlag=0),this.formVo=t,n.resolve(!0)},onMenuModuleFormSubmited:function(e,t){console.log("moduleMenu form submited"),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo,"0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId,this.$bus.emit("updateTreeNode",t)},onSysSetupFormBeforeOpen:function(e,t,n){this.formVo=t,n.resolve(!0)},onSysSetupFormSubmited:function(e,t){console.log("sysSetup form submited"),t.name=t.sysName,t.title=t.sysName,this.$bus.emit("updateTreeNode",t)},exportMenu:function(){var e=this,t=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),t,(function(t){if("success"===t.code){var n=t.value;n.sysCode=e.vo.sysCode,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:[],params:n,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var n='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+n,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))}}},A=N,Y=(0,m.A)(A,g,y,!1,null,"2497073a",null),C=Y.exports,O=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,"append-to-body":!0,"close-on-click-modal":!1,width:"900px",title:e.$tx("ecwplat.sysSetup.dialogTitle","复制菜单")},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-form",{attrs:{model:e.newMenu}},[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",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"superiorMenu",expression:"'superiorMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.parentName)}})])]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"currentMenu",expression:"'currentMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("当前菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.name)}})])]),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:"tarSystemCode",expression:"'tarSystemCode'"}]},[e._v("目标系统代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.tarSystemCode","目标系统代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"sysCode",placeholder:e.$tx("ecwplat.sysSetup.fields.tarSystemCodeEnter","请输入新菜单目标系统代码")},model:{value:e.newMenu.sysCode,callback:function(t){e.$set(e.newMenu,"sysCode",t)},expression:"newMenu.sysCode"}})],1)]}}],null,!1,825548065)})],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:"newMenu",expression:"'newMenu'"}]},[e._v("新菜单名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.newMenu","新菜单名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==a&&void 0!==a[0]},attrs:{disabled:void 0===a||void 0===a[0],content:void 0===a?"":a[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"newName",placeholder:e.$tx("ecwplat.sysSetup.fields.newMenuEnter","请输入新菜单名称")},model:{value:e.newMenu.newName,callback:function(t){e.$set(e.newMenu,"newName",t)},expression:"newMenu.newName"}})],1)]}}],null,!1,1078266707)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceForm",expression:"'replaceForm'"}]},[e._v("菜单代码替换From")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceFrom",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceFormKey","请输入菜单代码替换From关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceFrom,callback:function(t){e.$set(e.newMenu,"replaceFrom",t)},expression:"newMenu.replaceFrom"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceTo",expression:"'replaceTo'"}]},[e._v("菜单代码替换To")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceTo",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceToKey","请输入菜单代码替换To关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceTo,callback:function(t){e.$set(e.newMenu,"replaceTo",t)},expression:"newMenu.replaceTo"}})],1)])])])])])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.closeDialog}},[e._v("关 闭")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"save",expression:"'save'"}],attrs:{type:"primary",icon:"el-icon-check"},on:{click:e.submitForm}},[e._v("保 存")])],1)],1):e._e()},I=[],E={name:"CopyMenu",components:{},props:{zTree:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",srcMenu:{},newMenu:{},moduleInfo:{},dialogFormVisible:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("copyMenu",this.openForm)},beforeDestroy:function(){this.$bus.off("copyMenu",this.openForm)},mounted:function(){},methods:{openForm:function(e,t){this.moduleInfo=e,this.srcMenu=t,this.newMenu.sourceId=t.id,this.newMenu.sysCode=t.sysCode,this.newMenu.replaceFrom="",this.newMenu.replaceTo="",this.dialogFormVisible=!0,this.doing=!1},submitForm:function(){var e=this,t=this;t.doing||this.formValidate((function(){if(e.srcMenu.sysCode===e.newMenu.sysCode){if(e.srcMenu.name===e.newMenu.newName)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenu","同一系统,新菜单名称不能与当前菜单相同"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceFrom)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuForm","同一系统,必须输入菜单代码替换From关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceTo)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuTo","同一系统,必须输入菜单代码替换To关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"})}t.doing=!0,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",params:e.newMenu,url:e.moduleInfo.copyModuleUrl}).then((function(n){if("success"===n.code){var a=e.zTree.getNodeByParam("id",e.srcMenu.parentId,null),o="";while(null!==a&&a.moduleLevel>=1)o=a.name+"/"+o,a=a.getParentNode();e.$emit("refreshTreeData",n.body.listdata),e.$alert(e.$tx("ecwplat.sysSetup.replaceSuccess",{newName:o+e.newMenu.newName},"复制成功,新菜单名称为:{newName}"),{type:"success"}),e.closeDialog()}else t.doing=!1,e.$alert(n.message,{type:"error"})}))}))},closeDialog:function(){this.srcMenu={},this.newMenu={},this.moduleInfo={},this.dialogFormVisible=!1}}},$=E,P=(0,m.A)($,O,I,!1,null,"2a346ced",null),j=P.exports,F=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[t("MenuItemForm",{attrs:{vo:e.vo,"can-edit":0,sys:e.sys}}),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addSubmenu",expression:"'addSubmenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu()}}},[e._v("新增子菜单")]),null!=e.sys&&e.sys.passenger&&0!==e.sys.passenger.workflow&&e.vo.moduleLevel<=2?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addApprMenu",expression:"'addApprMenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu("wflowMenus")}}},[e._v("新增审批菜单组")]):e._e(),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"modifyMenu",expression:"'modifyMenu'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editMenu}},[e._v("修改菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"copyMenu",expression:"'copyMenu'"}],attrs:{plain:"",icon:"el-icon-document-copy"},on:{click:e.copyMenu}},[e._v("复制菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")])],1)],1),e.forceUpdate?e._e():t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"append-to-body":!0,"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("MenuItemForm",{attrs:{vo:n?n.vo:e.formVo,"can-edit":n?n.canEdit:1,"module-info":e.moduleInfo,"new-menu-type":e.newMenuType,sys:e.sys}})]}}],null,!1,440819207)}),t("ExportModuleCode"),t("ImportModuleCode")],1)},H=[],B={name:"ModuleMenu",components:{MenuItemForm:k},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},sys:{type:Number,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"meunItem",title:1===this.vo.moduleLevel?this.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"):this.$tx("ecwplat.Common.leftMenuConfiguration","左导航菜单配置"),moduleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew",insertUrl:"base/menuMgr/insertModuleAndPermissions",getByIdUrl:"base/menuMgr/getById",updateUrl:"base/menuMgr/updateModuleAndPermissions",delUrl:"base/menuMgr/deleteModuleAndPermissions",copyModuleUrl:"base/menuMgr/copyModuleAndPermissions",winWidth:1080,winHeight:600},formVo:null,newMenuType:null}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){var e=this;if(this.sys.sysCode!==this.vo.sysCode){var t=this.$vnode.context.treeData.filter((function(t){return t.sysCode===e.vo.sysCode&&!t.pId}));t.length>0&&(this.sys=t[0])}},methods:{addMenu:function(e){if(this.newMenuType=e,this.vo.moduleLevel>1&&0!==this.vo.leafFlag)this.$alert(this.$tx("ecwplat.meunItem.menuTip",{voName:this.vo.name},"".concat(this.vo.name,"不是文件夹菜单,不能创建子菜单。")),{type:"warning"});else if(this.vo.passenger.disallowAddSubMenu)this.$alert(this.$tx("ecwplat.meunItem.notAllMenu",{voName:this.vo.name},"".concat(this.vo.name,"下不允许创建子菜单。")),{type:"warning"});else{var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?sysCode="+this.vo.sysCode+"&menuType="+(e||"")+"&parentId=",void 0!==this.vo.sysLicense?this.moduleInfo.addNewUrl=t:this.moduleInfo.addNewUrl=t+this.vo.id,this.$bus.emit("openBusiform",this.moduleInfo,null,1)}},editMenu:function(){this.newMenuType=null,this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},copyMenu:function(){this.$bus.emit("copyMenu",this.moduleInfo,this.vo)},deleteMenu:function(e){var t=this,n=this.$tx("ecwplat.meunItem.delMenu",{nodeName:e.name},"确认删除“".concat(e.name,'"吗?'));e.children&&e.children.length>0&&(n=this.$tx("ecwplat.meunItem.isDelMenu",{nodeName:e.name},"确认删除“".concat(e.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(n){if("success"===n.code){var a=e.getParentNode();t.zTree.removeNode(e),t.zTree.selectNode(a),t.$bus.emit("updateTreeNode",a),t.$message.success(n.message)}else t.$alert(n.message,{type:"error"})}))}))},exportMenu:function(){var e=this,t=this.zTree.getSelectedNodes(),n=null,a=this.vo.parentName+this.vo.name;t.length>1&&(a="",t.forEach((function(e){if(""!==a)a+="、";else{var t=e.getParentNode();a=t.name+"/",n=t.name}a+=e.name})));var o=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),o,(function(a){if("success"===a.code){var o=a.value;o.menuName=n,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:t,params:o,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var n='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+n,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))},onBasicFormBeforeOpen:function(e,t,n){var a="";null!==t.updateTime?a=this.vo.parentName:"0"===t.parentId?(t.moduleLevel=1,a=t.sysName,t.status=1,t.leafFlag=0):(t.status=1,t.leafFlag=null===t.leafFlag?0:t.leafFlag,2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target&&(t.target="leftMenuItem"),a=this.vo.parentName+this.vo.name),t.parentName=a,this.formVo=t,n.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,n){null===t.leafType&&(t.href=""),n.resolve(!0)},onBasicFormSubmited:function(e,t){void 0!==t.pId&&null!==t.pId||("0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId),t.passenger.wflowMenuItems?this.$vnode.context.loadSysSetup(t.orgCode):(this.$vnode.context.sysSetupList&&1===t.moduleLevel&&0===t.topFlag&&this.$vnode.context.sysSetupList.forEach((function(e){e.sysCode===t.sysCode&&(t.orderNo=e.orderNo+"/"+t.orderNo)})),this.$bus.emit("updateTreeNode",t)),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo}}},U=B,R=(0,m.A)(U,F,H,!1,null,"07439568",null),W=R.exports,V=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showToolbar?t("div",{staticClass:"data-table-container"},[t("toolbar")],1):e._e(),t("div",{directives:[{name:"loading",rawName:"v-loading",value:!e.showFrame,expression:"!showFrame"}],class:e.showFrame?"":"loading"},[t("iframe",{directives:[{name:"show",rawName:"v-show",value:e.showFrame,expression:"showFrame"}],ref:"iframe",attrs:{src:e.src,width:"100%",height:"100%",frameborder:"0"}})])])},z=[],J={name:"FrameLoader",props:{src:{type:String,default:""}},data:function(){return{shwoToolbar:!1,showFrame:!1}},created:function(){var e=this.$route.meta;e&&!this.src&&(this.src=e.href),this.$route.meta&&"rightLabel"===this.$route.meta.parentTarget&&(this.showToolbar=!0)},mounted:function(){var e=this;this.$refs["iframe"].onload=function(){setTimeout((function(){var t=document.querySelector(".main-scrollbar").clientHeight;t=e.showToolbar?t-50-20-32-15-4:t-50-20-4,e.$refs["iframe"].style.height=t+"px",e.$refs["iframe"].style.minHeight="unset",e.showFrame=!0}),1e3)}}},q=J,G=(n(9292),(0,m.A)(q,V,z,!1,null,"69610664",null)),K=G.exports;v.install=function(e){e.component(v.name,v)},C.install=function(e){e.component(C.name,C)},j.install=function(e){e.component(j.name,j)},W.install=function(e){e.component(W.name,W)},K.install=function(e){e.component(K.name,K)};var Q=K,Z=n(4466),X=n(4195),ee=X.showTopMenus,te={routes:[]},ne={SET_ROUTES:function(e,t){e.routes=t}},ae={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e,a){window.$user.findNavMenus(t).then((function(t){var a=window.$loadComponent("@/wapp/common/layout/index"),o=[],i=t.body.listdata.filter((function(e){if(1===e.moduleLevel)return!0}));if(i.forEach((function(e){var n=a;!e.href||"@/"!==e.href.substring(0,2)&&"#/dcontent"!==e.href.substring(0,10)||"_top"!==e.target||(n=window.$loadComponent(e.href));var i=re(n,e,null,null,null);o.push(i);var r=ie(n,t.body.listdata,e,null,null);o=o.concat(r)})),void 0!==t.body.wappRoutes&&null!==t.body.wappRoutes)for(var r in t.body.wappRoutes)oe(o,t.body.wappRoutes[r]);n("SET_ROUTES",o);var s=location.href.split("#")[1];-1===s.indexOf("/lm/")&&-1===s.indexOf("/portal")&&-1===s.indexOf("/0/")||Z.A.connectWebSocket(window.$wapp),e(o)})).catch((function(e){a(e)}))}))},updateRoutes:function(e,t){var n=e.commit;n("SET_ROUTES",t)}};function oe(e,t){t.forEach((function(t){t.component=window.$loadComponent(t.component),e.push(t),void 0!==t.children&&null!==t.children&&oe(e,t.children)}))}function ie(e,t,n,a,o,i){var r=[],s=t.filter((function(e){if(e.parentId===n.id)return!0}));return s.forEach((function(s){2===s.moduleLevel&&(a=s.code),3===s.moduleLevel?(o=s.name,i=(s.i18nCode||s.code).replace(".svg","")):4!==s.moduleLevel||s.target||(s.target="rightLabel");var l=re(e,s,a,o,i);l.meta.parentTarget=n.target,0===s.leafFlag&&(l.children=ie(e,t,s,a,o,i),("rightLabel"===s.target||s.moduleLevel>=3&&"leftMenuItem"!==s.target)&&l.children.length>0?(l.children.forEach((function(e,t){e.hidden=!0,"rightLabel"===s.target&&(e.meta.parentTarget="rightLabel"),e.meta.activeMenu=l.meta.activeMenu||l.path})),""!==l.meta.href&&"#"!==l.meta.href||(l.redirect=l.path+"/"+l.children[0].path)):3===s.moduleLevel&&"leftMenuItem"===s.target&&l.children.forEach((function(e,t){e.meta.activeMenu=l.meta.activeMenu+"/"+e.path}))),r.push(l)})),r}function re(e,t,n,a,o){var i=!1,r="/lm/"+t.id,s=t.code,l=null;1===t.moduleLevel?(i=!0,r="/tm/"+t.id):2===t.moduleLevel?i=ee:(null!==t.wfName&&""!==t.wfName||(s=null),l="/lm/"+t.parentId+"/"+t.id,r=t.id);var d=t.href||"#",c=null;c=-1!==d.indexOf("?")?d.substring(d.indexOf("?")+1):null;var u=e;if(null!==d&&"@/"===d.substring(0,2))u=window.$loadComponent(d),d=d.split("?")[0];else if(null!==d&&"#/dcontent/"===d.substring(0,11)){var f=d.substring(11);-1===f.indexOf("?")?f+=".vue?sysCode="+t.sysCode:f=d.substring(11).split("?")[0]+".vue?sysCode="+t.sysCode+"&"+d.substring(11).split("?")[1],u=0===f.indexOf("portalpage/")||0===f.indexOf("vuereportpage/")||5===t.leafType?window.$loadComponent("#/dcontent/"+f):window.$loadComponent("#/dcontent/vuelistpage/"+f),d=d.split("?")[0]}else null!==d&&"http"===d.substring(0,4)?u=Q:t.moduleLevel>2&&(u=window.$loadComponent("@/wapp/common/layout/components/Blank"));1!==t.leafFlag||t.target&&"leftMenuItem"!==t.target||(1===t.moduleLevel?t.target="mainpage":t.target="content");var p={path:r,component:u,name:t.id,alias:t.name,hidden:i,alwaysShow:2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target,meta:{id:t.id,componentUrl:u.componentUrl,lazy:u.lzay,title:t.name,description:t.description,busiType:t.busiType,icon:s,code:t.code,i18nCode:(t.i18nCode||t.code).replace(".svg",""),level:t.moduleLevel,topFlag:t.topFlag,href:d,target:t.target,params:c,parentId:t.parentId,parentIconCode:n,parentTitle:a,parentI18nCode:o,activeMenu:l,wfName:t.wfName,wfNodeName:t.wfNodeName,wfEngineUrl:t.wfEngineUrl,sysCode:t.sysCode}};if(t.href&&"#"!==t.href&&t.moduleLevel<=2&&("content"===t.target||"mainpage"===t.target)){p.path="/lm/"+t.parentId+"/"+t.id,p.hidden=!1,p.meta.level=t.moduleLevel+1;var m={path:"/lm/"+t.parentId+"/"+t.id+"/"+Math.random(),component:e,hidden:i,meta:{id:t.id,title:t.name,i18nCode:(t.i18nCode||t.code).replace(".svg",""),busiType:t.busiType,icon:t.code,level:t.moduleLevel,parentId:t.parentId,target:t.target,breadcrumb:!1,sysCode:t.sysCode},children:[p]};1===t.moduleLevel&&(m.path="/"+t.parentId,m.meta.topFlag=t.topFlag,m.meta.target="mainpage",m.hidden=!0,m.children[0].path=t.id,m.children[0].hidden=!0,m.children[0].meta.parentId=t.id),p=m}return p}var se={namespaced:!0,state:te,mutations:ne,actions:ae}},4578:function(e,t,n){"use strict";n.r(t);var a=n(1631),o=n(4195),i=o.title,r=o.showSettings,s=o.tagsView,l=o.fixedHeader,d=o.showTopMenus,c=o.stripeTable,u={title:i,theme:a.theme,showSettings:r,tagsView:s,fixedHeader:l,showTopMenus:d,stripeTable:c},f={CHANGE_SETTING:function(e,t){if(t.key)e.hasOwnProperty(t.key)&&(e[t.key]=t.value);else for(var n in t)e.hasOwnProperty(n)&&(e[n]=t[n])}},p={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:u,mutations:f,actions:p}},6575:function(e,t,n){"use strict";function a(e){return r(e)||i(e)||f(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function r(e){if(Array.isArray(e))return p(e)}function s(e,t){return c(e)||d(e,t)||f(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,i,r,s=[],l=!0,d=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){d=!0,o=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(d)throw o}}return s}}function c(e){if(Array.isArray(e))return e}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw i}}}}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}n.r(t);var m={visitedViews:[],cachedViews:[]},h={ADD_VISITED_VIEW:function(e,t){var n={};n.title=t.meta.tagTitle||t.meta.title||"no-name",n.path=t.path,n.fullPath=t.fullPath,n.meta=JSON.parse(JSON.stringify(t.meta)),n.query=JSON.parse(JSON.stringify(t.query)),n.params=JSON.parse(JSON.stringify(t.params)),t.query&&t.query.tagTitle&&(n.title=decodeURI(t.query.tagTitle));for(var a=0;a<e.visitedViews.length;a++){var o=e.visitedViews[a];if(o.path===t.path){if(o.clone){if(o.fullPath===t.fullPath)return;e.visitedViews.splice(a,1),e.cachedViews.splice(a--,1)}else{if(-1===t.fullPath.indexOf("itemurl="))return;t.query.tagTitle?n.title=decodeURI(t.query.tagTitle):n.title="正在打开..",n.meta.tagTitle=n.title}-1!==t.fullPath.indexOf("itemurl=")&&(n.clone=!0)}}e.visitedViews.push(n)},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.fullPath)||t.meta.noCache||e.cachedViews.push(t.fullPath)},DEL_VISITED_VIEW:function(e,t){var n,a=u(e.visitedViews.entries());try{for(a.s();!(n=a.n()).done;){var o=s(n.value,2),i=o[0],r=o[1];if(r.fullPath===t.fullPath){e.visitedViews.splice(i,1);break}}}catch(l){a.e(l)}finally{a.f()}},DEL_CACHED_VIEW:function(e,t){var n,a=u(e.cachedViews);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o===t.fullPath){var i=e.cachedViews.indexOf(o);e.cachedViews.splice(i,1);break}}}catch(r){a.e(r)}finally{a.f()}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.fullPath===t.fullPath}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n,a=u(e.cachedViews);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o===t.fullPath){var i=e.cachedViews.indexOf(o);e.cachedViews=e.cachedViews.slice(i,i+1);break}}}catch(r){a.e(r)}finally{a.f()}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,a=u(e.visitedViews);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.fullPath===t.fullPath){o=Object.assign(o,t);break}}}catch(i){a.e(i)}finally{a.f()}}},v={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:a(o.visitedViews),cachedViews:a(o.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(a(o.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(a(o.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:a(o.visitedViews),cachedViews:a(o.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(a(o.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(a(o.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:a(o.visitedViews),cachedViews:a(o.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(a(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(a(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:m,mutations:h,actions:v}},4466:function(e,t){"use strict";var n=location.host;n="".concat(location.protocol.indexOf("https")>-1?"wss://":"ws://","/").concat(n,"/webSocket/");var a=!1,o=null,i=null,r=null;function s(e){if(!a){i=e;var t=window.ReconnectingWebSocket;if(t&&i.$settings.websocketAutoConnection){a=!0;var s=e.$store.getters.loginUser,p=[],m={debug:!0,reconnectInterval:3e3,reconnectDecay:2,maxReconnectInterval:3e5,maxRetries:10};i.$setting&&void 0!==i.$setting.webSocketMaxRetries&&(m.maxRetries=i.$setting.webSocketMaxRetries),console.log("创建连接===",n+s.userId+"_"+(window.deviceId||"web")),o=new t(n+s.userId+"_"+(window.deviceId||"web"),p,m),o.onerror=function(t,n){a=!1,console.log("websocket连接错误===",t,n),e.$bus.emit("webSocketError",t)},o.onopen=function(t){console.log("websocket连接成功"),a=!0,f(i.$store.getters.loginUser,window.$auth.getTicket()),e.$bus.emit("webSocketOpen",t)},o.onmessage=function(t){var n=JSON.parse(t.data);"heartBeat"!==n.body.type&&("212"===n.body.type&&(null!==r&&(clearInterval(r),r=null),l()),e.$bus.emit("webSocketOnmessage",t))},o.onclose=function(t){console.log("websocket连接断开"),a=!1,e.$bus.emit("webSocketOnClose",t)},e.$bus.on("webSocketClose",l),e.$bus.on("webSocketSend",d),e.$bus.on("reloadWebSocketConnect",c),e.$bus.on("getConnectParams",u),window.onbeforeunload=function(){l()}}}}function l(){o.close()}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};o.send(e),t()}function c(e){null!==r&&(clearInterval(r),r=null),e&&(n=e),null!==o&&l(),a=!1,s(i)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};e({wsurl:n,connect:a})}function f(e,t){r=setInterval((function(){d(JSON.stringify({message:{receipt:!1,fromUser:{userId:e.userId+"_"+(window.deviceId||"web"),userName:e.personName},body:{type:"heartBeat",message:"维持心跳消息"}},ticket:t}))}),3e4)}t.A={connectWebSocket:s}},1099:function(e){e.exports={ecmapp:{common:{unsupported:"Unsupported file format!",pWriteOpinion:"Please fill in the handling opinion.",cancelSave:"Cancel Save",searchFor:"{searchFocus} Search",advancedSearch:"Advanced Search",category:"Category",dateRange:"Date Range:",timeFrame:"Time Frame",refreshSuccessful:"Refresh Successful",clickReload:"Request failed, click to reload",enterMainText:"Please enter the main text",toBeDealt:"To Be Dealt",alreadyDone:"Already Done",draft:"Draft",inProgress:"In Progress",end:"End",nothing:"Nothing",rename:"Rename"},message:{sureDelete:"Are you sure you want to delete {label}?",sureDeleteSelected:"Are you sure you want to delete the selected data?",selectNeedRows:"Please select the data that needs to be {dataType}!",sureDeleterAttach:"Are you sure you want to delete the selected attachments?",cannotBeUpload:"The file “{fileName}” already exists and cannot be uploaded with the same name.",fileUploadSuccess:"File content uploaded successfully!",needUploadFile:"Please select the attachments to upload!",noSelNeedUploadFile:"No attachments selected for upload",noTobeUploadFile:"No attachments to upload",attchUploadFile:"All attachments uploaded successfully",notSupportedFile:"Unsupported file format."},pdfTools:{selectSignature:"Select Signature",addSgnature:"Add Signature",firstAddSgnature:"No available signatures yet, please add a signature first!",firstUploadSeal:"No seal available yet, please upload a seal first!",loadingWait:"Loading, please wait...",signaturing:"Signing...",stamping:"Stamping...",electronicSeal:"Electronic Seal",fields:{sealAccount:"Seal Account",inputSealAccount:"Please enter the seal account",sealPassword:"Seal Password",inputSealPassword:"Please enter the seal password"},selectSeal:"Select Seal",stampPageNumber:"Stamp Page Number",singlePage:"Single Page Stamp",multiplePage:"Multiple Page Stamp",pagingSeal:"Folded Stamp"},pageBtns:{open:"Expand",fold:"Fold",retract:"Collapse"},selectDialog:{selected:"Selected: {selectedCount}",currentlySelected:"Currently Selected",nonePersonal:"No personnel available",personnelSelection:"Personnel Selection",selectPersonnel:"Select Personnel",byInstitution:"By Institution",byPosition:"By Position",byGroup:"By Group",byCommonGroup:"By Common Group"},wflowform:{fields:{fileTitle:"File Title",fileType:"File Type",prevStep:"Previous Processing Step",prevHandler:"Previous Step Handler",addStep:"Add Processing Step",addHandler:"Add Step Handler",addLimt:"Add Step Processing Deadline",zdLimt:"Specify Step Processing Deadline",defineSteps:"Define Process Steps",writeOpinion:"Fill in Opinion",curUserIdea:"Processing Opinion",submitPath:"Submission Path",handleLimint:"Processing Deadline",assistHandling:"Assisted Document Processing",selectTemplate:"Select Processing Template",saveTemplate:"Save Processing Template",selectReminderMethod:"Select Reminder Method",smsNotice:"SMS Notification",stayTuned:"Stay Tuned",processLog:"Process Log",linkName:"Step Name",taskType:"Task Type",handleMethod:"Handler Selection Method",zdPersonal:"Designated Personnel for Handler",zdDept:"Designated Department for Handler",zdGroup:"Designated Group for Handler",zdJobPostion:"Designated Position for Handler",editPermissions:"Edit Permissions",opinionLabel:"Processing Opinion Label",reviewComments:"Review Comments",returnHistory:"Are you sure you want to return to the previous stage?",submitToNet:"Are you sure to submit to the next stage?"},attachTitle:"{title} ({listlength} items)",attachTitle1:"Attachments: ({item} items)",togetherUpload:"Currently limited to selecting {limitCount} files, this selection includes {valLength} files, for a total of {filelength} files selected.",beyondUpload:"Currently limited to selecting {limitCount} files, this selection includes {valLength} files, for a total of {filelength} files selected.",loadingFile:"Loading main file...",noBodyFile:"No main content available",downloadView:"Click to download and view",currentVersion:"Current Version",historicalVersion:"Historical Version",descriptionText:"Description Text",coverMainText:"Re-uploading will overwrite the existing main content. Do you confirm?",alreadlyRed:"This document has already been marked in red. After re-editing the main content, it needs to be marked in red again! Do you want to continue?",errFileFormat:"The file format you uploaded is incorrect. Only {accept} format files are supported!",delCurrentVersion:"Are you sure you want to delete the current version file?",delHistoricalVersion:"Are you sure you want to delete the historical version file?",viewAll:"View all",viewAllOpinions:"View all opinions",handlingSuggestions:"Handling Suggestions",notActivated:"Instant messaging feature not activated",notActivated1:"{staffName} has not activated the instant messaging feature",specifyLimit:"Specify deadline",endless:"No deadline",pSelectAddHandler:"Please select the new step handler!",addStepLimit:"Please specify the handling deadline!",pSelectLimit:"Please select the processing deadline",addProcessor:"Add Handler",batchTransfer:"Batch Transfer",titleHandler:"{title} Handler",successfullyCompleted:"{winTitle} completed successfully!",outwardPeople:"Outward Personnel",sendToMe:"Send to Myself",selectAgent:"Select Agent",selectedOutAgent:"Outward agent selected.",submitHandle:"Submit Handling",ideaShowScope:"Reader of opinions",stagingComOpinion:"Temporarily save handling opinion",personalOpinions:"Personal Common Opinions",saveComOpinion:"Save Common Opinion",noComOpinion:"No common opinions available.",selectComOpinion:"Select Common Opinion",alreadlyHave:"The opinion already exists. Do you confirm using the common opinion?",opinionattach:"Opinion Attachment",pSubmitPath:"Please select submission path",selectedPeople:"Currently selected: {dataType} person(s)",byWorkDay:"By Workday",byNaturalDay:"By Natural Day",noTemplate:"No processing template available.",reminderMethod:"Reminder Method",stepSetting:"Step Settings",remind:"Remind",processingTime:"Processing Time: {time}",startTime:"Start Time: {time}",completionTime:"Completion Time: {time}",limitTime:"Processing Deadline: {time}",timeOut:"Timeout Duration: {time}",todoTime:"Processing Duration: {time}",processing:"Processing",returnBack:"Return",takBack:"Retrieve",wantToRetrieve:"Are you sure you want to retrieve the document?",addReaders:"Add Reader",addReadersSuccess:"Readers successfully added!",sureReaded:"Do you confirm that you have read it?",singlePerson:"Single Person",multiplayerParallel:"Multiple People in Parallel",multiPersonSignature:"Multiple People Sign",multiplayerSerial:"Multiple People in Series",multiplayerCompetition:"Multiple People in Competition",multiPersonReading:"Multiple People Reading",designatedPersonnel:"Designated personnel",byDepartment:"By Department",byWorkgroup:"By Workgroup",byJobPosition:"By job position",byJobRank:"By job rank",byHistoryTNUser:"By history user",textTip:"Confirm",writReviewComments:"Please fill in review comments",noWritReview:"Your reading record does not exist; you cannot fill in review comments."}}}},6128:function(e){e.exports={}},1954:function(e,t,n){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 o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=l(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=n(1099),c=n(2199),u=n(6128),f=n(6729),p={en:i({},d),zhCN:i({},c),es:i({},u),ja:i({},f)};e.exports=i({},p)},6729:function(e){e.exports={}},2199:function(e){e.exports={ecmapp:{common:{unsupported:"不支持的文件格式!",pWriteOpinion:"请填写处理意见。",cancelSave:"取消保存",searchFor:"{searchFocus}搜索",advancedSearch:"高级搜索",category:"类别",dateRange:"日期范围:",timeFrame:"时间范围",refreshSuccessful:"刷新成功",clickReload:"请求失败,点击重新加载",enterMainText:"请输入正文",toBeDealt:"待办",alreadyDone:"已办",draft:"草稿",inProgress:"在办",end:"结束",nothing:"无",rename:"重命名"},message:{sureDelete:"您是否确认删除{label}?",sureDeleteSelected:"您是否确认删除选择的数据?",selectNeedRows:"请选择需要{dataType}的数据!",sureDeleterAttach:"您是否确认删除选择的附件?",cannotBeUpload:"文件“{fileName}”已存在,不允许上传重名文件。",fileUploadSuccess:"文件正文上传成功!",needUploadFile:"请选择需要上传的附件!",noSelNeedUploadFile:"没有选择需要上传的附件",noTobeUploadFile:"没有待上传附件",attchUploadFile:"附件全部上传成功",notSupportedFile:"不支持的文件格式。"},pdfTools:{selectSignature:"选择签名",addSgnature:"添加签名",firstAddSgnature:"暂无可用签名,请先添加签名!",firstUploadSeal:"暂无印章,请先上传印章!",loadingWait:"正在加载,请稍候...",signaturing:"正在签名...",stamping:"正在盖章...",electronicSeal:"电子印章",fields:{sealAccount:"印章账号",inputSealAccount:"请输入印章账号",sealPassword:"印章密码",inputSealPassword:"请输入印章密码"},selectSeal:"选择印章",stampPageNumber:"盖章页码",singlePage:"页码签单页",multiplePage:"页码签多页",pagingSeal:"骑缝章"},pageBtns:{open:"展开",fold:"折叠",retract:"收起"},selectDialog:{selected:"已选择:{selectedCount}",currentlySelected:"当前已选择",nonePersonal:"暂无人员",personnelSelection:"人员选择",selectPersonnel:"选择人员",byInstitution:"按机构",byPosition:"按岗位",byGroup:"按群组",byCommonGroup:"按常用组"},wflowform:{fields:{fileTitle:"文件标题",fileType:"文件类型",prevStep:"上一处理环节",prevHandler:"上一环节处理人",addStep:"新增处理环节",addHandler:"新增环节处理人",addLimt:"新增环节处理时限",zdLimt:"指定环节处理时限",defineSteps:"定义流程环节",writeOpinion:"填写意见",curUserIdea:"处理意见",submitPath:"提交路径",handleLimint:"处理时限",assistHandling:"辅助办文",selectTemplate:"选择办理模板",saveTemplate:"保存办理模板",selectReminderMethod:"选择提醒方式",smsNotice:"短信通知",stayTuned:"保持关注",processLog:"流程日志",linkName:"环节名称",taskType:"任务类型",handleMethod:"处理人选择方式",zdPersonal:"处理人指定人员",zdDept:"处理人指定部门",zdGroup:"处理人指定群组",zdJobPostion:"处理人指定岗位",editPermissions:"编辑权限",opinionLabel:"处理意见标签",reviewComments:"批阅意见"},attachTitle:"{title}({listlength}个)",attachTitle1:"附件:({item}个)",togetherUpload:"当前限制选择{limitCount}个文件,本次选择了{valLength}个文件,共选择了{filelength}个文件",beyondUpload:"当前限制选择{limitCount}个文件,本次选择了{valLength}个文件,共选择了{filelength}个文件",loadingFile:"正在加载正文文件...",noBodyFile:"暂无正文",downloadView:"点击下载查看",currentVersion:"当前版本",historicalVersion:"历史版本",descriptionText:"描述文字",coverMainText:"重新上传会覆盖现有正文,是否确认?",alreadlyRed:"该公文已经套红,重新编辑正文后需要重套红!是否继续?",errFileFormat:"您上传的文件格式有误,仅支持{accept}格式的文件!",delCurrentVersion:"您是否确认删除当前版本文件?",delHistoricalVersion:"您是否确认删除历史版本文件?",viewAll:"查看全部",viewAllOpinions:"查看全部意见",handlingSuggestions:"处理意见",notActivated:"未开通即时通信功能",notActivated1:"{staffName}未开通即时通信功能",specifyLimit:"指定时限",endless:"无时限",pSelectAddHandler:"请选择新增环节处理人!",addStepLimit:"请指定办理时限!",pSelectLimit:"请选择处理时限",addProcessor:"添加处理人",batchTransfer:"批量转派",titleHandler:"{title}处理人",successfullyCompleted:"{winTitle}已成功!",outwardPeople:"外出人",sendToMe:"送本人",selectAgent:"选择代理人",selectedOutAgent:"已选择外出代理人。",submitHandle:"提交办理",ideaShowScope:"意见可见范围",stagingComOpinion:"暂存处理意见",personalOpinions:"个人常用意见",saveComOpinion:"保存常用意见",noComOpinion:"暂无常用意见。",selectComOpinion:"选择常用意见",alreadlyHave:"意见已存在,是否确认使用常用意见?",opinionattach:"意见附件",pSubmitPath:"请选择提交路径",selectedPeople:"当前已选:{dataType}人",byWorkDay:"按工作日",byNaturalDay:"按自然日",noTemplate:"暂无办理模板。",reminderMethod:"提醒方式",stepSetting:"环节设置",remind:"提醒",processingTime:"处理时间:{time}",startTime:"开始时间:{time}",completionTime:"完成时间:{time}",limitTime:"处理时限:{time}",timeOut:"超时时长:{time}",todoTime:"办理时长:{time}",processing:"处理中",returnBack:"退回",takBack:"收 回",wantToRetrieve:"您是否确认要收回文件?",addReaders:"添加阅文人",addReadersSuccess:"已成功添加阅文人!",sureReaded:"您是否确认已阅?",singlePerson:"单人",multiplayerParallel:"多人并行",multiPersonSignature:"多人会签",multiplayerSerial:"多人串行",multiplayerCompetition:"多人竞争",multiPersonReading:"多人阅文",textTip:"确定",writReviewComments:"请填写批阅意见",noWritReview:"您的阅文记录不存在,不能填写批阅意见",returnHistory:"您是否确认驳回到上一环节?",submitToNet:"您是否确认提交下一环节?"}}}},4195:function(e){e.exports={title:"",showSettings:!1,tagsView:!0,fixedHeader:!1,showTopMenus:!0}},8075:function(e,t,n){"use strict";var a=n(453),o=n(487),i=o(a("String.prototype.indexOf"));e.exports=function(e,t){var n=a(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},487:function(e,t,n){"use strict";var a=n(6743),o=n(453),i=n(6897),r=n(9675),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),d=o("%Reflect.apply%",!0)||a.call(l,s),c=n(655),u=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new r("a function is required");var t=d(a,l,arguments);return i(t,1+u(0,e.length-(arguments.length-1)),!0)};var f=function(){return d(a,s,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},3919:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-datetime-field[data-v-9c6da034]{position:relative}.van-datetime-field[data-v-9c6da034]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},3385:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-file-field[data-v-6bd6eea1]{position:relative}.van-file-field[data-v-6bd6eea1]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attach-delete-icon[data-v-6bd6eea1]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.attach-delete-icon .van-icon[data-v-6bd6eea1]{line-height:24px;margin-left:5px;font-size:16px}',""]),t["default"]=s},1705:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-textarea-field[data-v-67219e88]{position:relative}.van-textarea-field[data-v-67219e88]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}[data-v-67219e88] .van-cell-field-title{height:44px}[data-v-67219e88] .idea-content{width:100%}[data-v-67219e88] .idea-content .ideaDiv{margin:5px 0}[data-v-67219e88] .idea-content .ideaDiv p{margin-top:0;margin-bottom:0}[data-v-67219e88] .idea-content .ideaDiv span{display:inline-block}[data-v-67219e88] .idea-content .ideaDiv .handwritingIdea{width:200px}[data-v-67219e88] .idea-content .ideaDiv .ideaSignature{max-width:100px;max-height:50px}[data-v-67219e88] .idea-content .van-icon{font-size:20px}[data-v-67219e88] .idea-content .can-delete-idea{float:right;margin-top:-28px}[data-v-67219e88] .idea-content .can-delete-idea i{color:red;cursor:pointer;font-size:16px}',""]),t["default"]=s},2265:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-input-field[data-v-03561330]{position:relative}.van-input-field[data-v-03561330]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-field__body_suffix[data-v-03561330] .van-field__body:after{color:#323233;content:attr(value-suffix);line-height:22px}.van-field__body_suffix[data-v-03561330] .van-field__body .van-field__control{-webkit-box-flex:1;-ms-flex:1;flex:1}[data-v-03561330] .van-cell__right-icon{padding-left:10px}',""]),t["default"]=s},846:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-select-field[data-v-565de7b0]{position:relative}.van-select-field[data-v-565de7b0]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},2508:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-switch-field[data-v-316c7b70]{position:relative}.van-switch-field[data-v-316c7b70]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},979:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.van-textarea-field[data-v-7c9af7ac]{position:relative}.van-textarea-field[data-v-7c9af7ac] .van-field__label{width:90%!important}.van-textarea-field[data-v-7c9af7ac]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.richtext-content[data-v-7c9af7ac]{width:100%;white-space:pre-wrap}.richtext-content[data-v-7c9af7ac] img{-o-object-fit:contain;object-fit:contain;max-width:100%!important;height:auto!important}.richtext-content-hidden[data-v-7c9af7ac]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.van-textarea-field[data-v-7c9af7ac] .field-flSubject .richtext-content,.van-textarea-field[data-v-7c9af7ac] .field-flSubject textarea.van-field__control{font-size:16px;font-weight:700}',""]),t["default"]=s},5073:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".busi-form-container[data-v-490ac5ca]{background-color:#f7f8fa;height:100%;position:relative;z-index:10}",""]),t["default"]=s},8265:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".van-skeleton[data-v-60fd66f2]{margin-top:20px}",""]),t["default"]=s},1564:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(8315),l=r()(o());l.i(s.A),l.push([e.id,'.table-search .search_out_div[data-v-7908bea2]{display:-webkit-box;display:-ms-flexbox;display:flex}.table-search .search_out_div .search-slot-container[data-v-7908bea2]{word-break:keep-all}.table-search[data-v-7908bea2] .iconfont-search input[type=search]{font-family:iconfont}.table-search[data-v-7908bea2] .iconfont-search .van-field__left-icon{height:24px}.table-search[data-v-7908bea2] .iconfont-search .icon-search{font-size:14px}.table-search[data-v-7908bea2] .iconfont-search .icon-search:before{content:"\\e672";color:#7d7e80}.table-search .p-search[data-v-7908bea2]{position:relative}.table-search .p-search[data-v-7908bea2]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.table-search .show-search-key[data-v-7908bea2]{overflow:hidden;position:relative}.table-search .show-search-key[data-v-7908bea2]:after{display:block;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.table-search .show-search-key .show-search-title[data-v-7908bea2]{display:inline-block;max-width:60px;min-width:36px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;margin-right:10px;text-align:center}.table-search .show-search-key .van-cell__title[data-v-7908bea2]{width:100%;overflow:hidden}.table-search .show-search-key .van-cell__title [class*=van-hairline][data-v-7908bea2]:after{bottom:-49%}.table-search .show-search-key .van-cell__title div .show-search-title[data-v-7908bea2]:last-child{margin-right:0}.table-search .show-search-key .show-search-clear[data-v-7908bea2]{display:block;float:right}.table-search .show-search-key .show-search-clear[data-v-7908bea2]:after{content:none}.table-search .search-back[data-v-7908bea2]{position:fixed;bottom:0;width:100%}.table-search .search-back button[data-v-7908bea2]{width:100%}.table-search .van_dropdown-menu_cell .van-search-dropdown-menu[data-v-7908bea2] .van-dropdown-menu__bar{-webkit-box-shadow:none;box-shadow:none;position:relative}.table-search .van_dropdown-menu_cell .van-search-dropdown-menu[data-v-7908bea2] .van-dropdown-menu__bar:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.table-search .open_droup_popup_search[data-v-7908bea2]{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:100;overflow:hidden}.table-search .open_droup_popup_search .droup_down_popup_panel[data-v-7908bea2]{position:relative;background:#fff;border-radius:0 0 8px 8px}',""]),t["default"]=l},7468:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".advancedSearch-selectTime .selectTime[data-v-13fe0b0a]{color:#666;font-size:12px;position:relative}.advancedSearch-selectTime .selectTime .timeinner[data-v-13fe0b0a]{line-height:30px;float:left;width:100%;text-align:center}.advancedSearch-selectTime .selectTime .timebox[data-v-13fe0b0a]{position:relative}.advancedSearch-selectTime .selectTime .timebox input[data-v-13fe0b0a]{padding:4px 10px;border:1px solid #ebedf0;line-height:20px;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.advancedSearch-selectTime .selectTime .timebox[data-v-13fe0b0a] .van-icon{position:absolute;right:0;line-height:30px;width:30px;text-align:center}.block_select .radio-type[data-v-13fe0b0a]{padding:0 5px;line-height:32px;background:#f7f8fa;color:#666;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;text-align:center;border-radius:3px}.block_select .wfTypeKey[data-v-13fe0b0a]{background:#1689fa;color:#fff}",""]),t["default"]=s},8917:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'[data-v-416f359a] .row1 .van-image{height:32px;width:32px;margin-top:5px;margin-right:8px}[data-v-416f359a] .row1 .van-cell__label,[data-v-416f359a] .row1 .van-cell__title{width:calc(100vw - 32px)}[data-v-416f359a] .row2 .van-image{height:48px;width:48px;margin-top:3px;margin-right:8px}[data-v-416f359a] .row2 .left-top,[data-v-416f359a] .row2 .van-cell__label,[data-v-416f359a] .row2 .van-cell__title{width:calc(100vw - 80px)}[data-v-416f359a] .row2 .left-top{float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:16px}[data-v-416f359a] .row2 .right-top{width:0;text-align:right;display:inline-block}[data-v-416f359a] .row2 .left-bottom{width:60%;float:left;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2 .left-bottom .p_name{width:80px;display:inline-block}[data-v-416f359a] .row2 .right-bottom{width:40%;text-align:right;display:inline-block;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-left-icon .left-icon{margin-right:8px}[data-v-416f359a] .row2-left-icon .left-icon .van-image{line-height:48px;height:48px;width:48px}[data-v-416f359a] .row2-left-icon .van-cell__label,[data-v-416f359a] .row2-left-icon .van-cell__title{width:calc(100vw - 80px)}[data-v-416f359a] .row2-left-icon .left-top{width:calc(100vw - 80px);float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:1.1}[data-v-416f359a] .row2-left-icon .right-top{width:0;text-align:right;display:inline-block}[data-v-416f359a] .row2-left-icon .left-bottom{width:60%;float:left;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-left-icon .left-bottom .p_name{width:80px;display:inline-block}[data-v-416f359a] .row2-left-icon .right-bottom{width:40%;text-align:right;display:inline-block;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-noleft-icon .left-icon{display:none}[data-v-416f359a] .row2-noleft-icon .van-cell__label,[data-v-416f359a] .row2-noleft-icon .van-cell__title{width:calc(100vw - 32px)}[data-v-416f359a] .row2-noleft-icon .left-top{width:calc(100vw - 32px);float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:1.1}[data-v-416f359a] .row2-noleft-icon .right-top{width:0;text-align:right;display:inline-block}[data-v-416f359a] .row2-noleft-icon .left-bottom{width:60%;float:left;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-416f359a] .row2-noleft-icon .left-bottom .p_name{width:60px;display:inline-block}[data-v-416f359a] .row2-noleft-icon .right-bottom{width:40%;text-align:right;display:inline-block;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.van-cell__value[data-v-416f359a],[data-v-416f359a] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.van-swipe-cell[data-v-416f359a]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.last_swipe_cell[data-v-416f359a]:after{content:none!important}.add_van_swipe_cell[data-v-416f359a] .row2-left-icon .van-cell:after,.add_van_swipe_cell[data-v-416f359a] .row2-noleft-icon .van-cell:after{content:none}.add_van_swipe_cell .van_cell_btn[data-v-416f359a]{padding-top:0}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a]{padding:0 1px;width:100%;text-align:right;font-size:0}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a] .tag_btn{font-size:12px;padding:0 12px;color:#333;min-width:36px;display:inline-block;text-align:center;height:24px;border:0}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a] .tag_btn:not(:last-child){margin-right:10px}.add_van_swipe_cell .van_cell_btn .van-cell__value[data-v-416f359a] .tag_btn:after{border-color:#999}.add_van_swipe_cell .van_cell_btn .van_cell_link[data-v-416f359a]{width:100%;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.add_van_swipe_cell .van_cell_btn .van_cell_link[data-v-416f359a] a{position:relative;color:#1989fa;font-size:12px;-webkit-box-flex:1;-ms-flex:1;flex:1}.add_van_swipe_cell .van_cell_btn .van_cell_link[data-v-416f359a] a:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;top:6.5px;height:11px;border-right:1px solid #eee}.add_tip_cell[data-v-416f359a] .row2-noleft-icon.van-cell:after{content:none}.add_tip_cell[data-v-416f359a] .row2-noleft-icon.van-cell .left-top{width:calc(100vw - 62px)}.add_tip_cell[data-v-416f359a] .row2-left-icon.van-cell:after,.add_tip_cell[data-v-416f359a] .row2-left-icon.van-cell:after:after{content:none}.add_tip_cell .cell_div .cell_tip_btns_out[data-v-416f359a]{position:absolute;font-size:24px;color:#bbb;top:10px;right:16px;line-height:15px;z-index:10}.popup_tip_btn[data-v-416f359a]{border:1px solid #eee;border-radius:5px;padding:10px;font-size:12px;color:#333;position:absolute;background:#fff;min-width:60px}.popup_tip_btn[data-v-416f359a]:before{position:absolute;content:"";top:-10px;right:7px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:1px solid #eee;border-top:4px solid transparent;border-bottom-width:6px}.popup_tip_btn p[data-v-416f359a]{position:relative;margin:0;text-align:center;padding-top:10px}.popup_tip_btn p[data-v-416f359a]:not(:last-child){padding-bottom:10px}.popup_tip_btn p[data-v-416f359a]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.popup_tip_btn p[data-v-416f359a]:last-child{padding-top:10px}.popup_tip_btn p[data-v-416f359a]:first-child{padding-top:0}.popup_tip_btn_align[data-v-416f359a]:before{top:auto;bottom:-10px;border-bottom:4px solid transparent;border-top:1px solid #eee;border-top-width:6px}.long_press[data-v-416f359a]{position:relative}.long_press[data-v-416f359a]:not(:last-child):after{left:42px}.long_press .cell_checkbox[data-v-416f359a]{min-width:17px}.long_press .cell_checkbox[data-v-416f359a] .van-checkbox__icon{font-size:16px}.long_press[data-v-416f359a] .cell_div{position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-ms-flexbox;display:flex}.long_press[data-v-416f359a] .cell_div .van-cell{margin-left:10px}.long_press[data-v-416f359a] .cell_div .row2-noleft-icon.van-cell .van-cell__title,.long_press[data-v-416f359a] .cell_div .row2-noleft-icon.van-cell .van-cell__title .left-top,.long_press[data-v-416f359a] .cell_div .row2-noleft-icon.van-cell .van-cell__title .van-cell__label{width:100%}.long_press[data-v-416f359a] .cell_div .row2-left-icon.van-cell .van-cell__title{width:calc(100% - 48px)}.long_press[data-v-416f359a] .cell_div .row2-left-icon.van-cell .van-cell__title .left-top,.long_press[data-v-416f359a] .cell_div .row2-left-icon.van-cell .van-cell__title .van-cell__label{width:100%}.long_press[data-v-416f359a] .cell_div.cell_div_right .van-cell{margin-left:0;margin-right:10px}.long_press_bottom_btn[data-v-416f359a]{height:60px;display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;z-index:10;bottom:0;width:100%;background:#fff}.long_press_bottom_btn[data-v-416f359a]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;top:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.long_press_bottom_btn a[data-v-416f359a]{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center;vertical-align:middle;line-height:60px;font-size:16px;color:#333}.long_press_bottom_btn a .svg-icon-font[data-v-416f359a]{margin-right:3px;position:relative;top:2px}.long_press_bottom_btn a[data-v-416f359a]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;border-right:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5);height:40px;top:10px}.long_press_bottom_btn a .a_btn[data-v-416f359a] .van-icon:before{-webkit-transform:rotate(90deg);transform:rotate(90deg);font-weight:700}.long_press_bottom_btn a[data-v-416f359a] .van-popover__wrapper{width:100%}.long_press_checkall[data-v-416f359a]{position:relative}.long_press_checkall[data-v-416f359a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.long_press_checkall[data-v-416f359a] .van-checkbox__icon{font-size:16px}.long_press_checkall[data-v-416f359a] .van-checkbox__label{font-size:14px;line-height:24px}.long_press_checkall[data-v-416f359a] .van-cell__value{-webkit-box-flex:1;-ms-flex:auto;flex:auto;color:#1989fa}.long_press_checkall .long_press_checkall_right .van-cell__title[data-v-416f359a]{color:#1989fa;-webkit-box-flex:1;-ms-flex:1;flex:1}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value{-webkit-box-flex:0;-ms-flex:none;flex:none}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value .van-checkbox{overflow:hidden;display:block}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value .van-checkbox .van-checkbox__label{margin-left:0;margin-right:8px}.long_press_checkall .long_press_checkall_right[data-v-416f359a] .van-cell__value .van-checkbox .van-checkbox__icon{float:right;margin-top:4px}.listdata-container[data-v-416f359a]{background-color:#fff;height:100%;overflow-y:auto}.listdata-container[data-v-416f359a] .van-cell__title{line-height:1}.listdata-container[data-v-416f359a] .van-cell__label{margin-top:0}.card_listdata[data-v-416f359a]{background:#f9f9f9}.card_listdata .card_cell[data-v-416f359a]{margin-top:10px}.date-cell[data-v-416f359a]{position:relative}.date-cell[data-v-416f359a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.date-cell .van-swipe-cell[data-v-416f359a]:not(:last-child):after{left:86px}.date-cell .van-swipe-cell[data-v-416f359a]:last-child:after{border:0}.cell_div[data-v-416f359a]{padding:14px 16px}.cell_div[data-v-416f359a] .van-cell{padding:0}.cell_div[data-v-416f359a] .van-cell:after{border-bottom:0 solid #fff}.cell_div .van_cell_btn[data-v-416f359a]{padding:0 1px;margin-top:10px}.cell_div[data-v-416f359a] .van-cell__label{line-height:1}.cell_div[data-v-416f359a] .van-cell__label>div:not(:first-child) .left-bottom,.cell_div[data-v-416f359a] .van-cell__label>div:not(:first-child) .right-bottom{margin-top:7px}.cell_div[data-v-416f359a] .van-cell__label>div:first-child .left-bottom,.cell_div[data-v-416f359a] .van-cell__label>div:first-child .right-bottom{margin-top:10px}.listdata-container[data-v-416f359a] .van-swipe-cell__wrapper .van-swipe-cell__right{right:-1px}.listdata-container[data-v-416f359a] .van-swipe-cell__wrapper .van-swipe-cell__right .van-button{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.listdata-container[data-v-416f359a] .up-loading.van-loading{height:50%;text-align:center}.listdata-container[data-v-416f359a] .van-pull-refresh{min-height:100%}.listdata-container[data-v-416f359a] .van-pull-refresh .van-pull-refresh__head .van-loading{height:auto;padding-top:0}[data-v-416f359a] .van-list__loading .van-loading{height:auto!important}.van-action-sheet-scroll[data-v-416f359a] .van-action-sheet__content{height:250px}.van-action_cell_btn[data-v-416f359a]{position:relative}.van-action_cell_btn[data-v-416f359a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-action_cell_btn[data-v-416f359a]:last-child:after{display:none}',""]),t["default"]=s},1436:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(8315),l=r()(o());l.i(s.A),l.push([e.id,"[data-v-ab09df0e] .tab-search{font-size:20px;color:#7d7e80;position:absolute;width:20px;right:20px;line-height:47px;text-align:center;z-index:5}[data-v-ab09df0e] .add-search{top:44px;width:40px;line-height:55px;right:0}.tab-search.nonvtb[data-v-ab09df0e]{width:40px;right:1px;line-height:55px}[data-v-ab09df0e] .show_search .van-tabs__wrap{padding-right:40px;width:calc(100% - 40px)}[data-v-ab09df0e] .show_search.p-search{padding-right:40px}.search-back[data-v-ab09df0e]{position:fixed;bottom:0;width:100%}.search-back button[data-v-ab09df0e]{width:100%}",""]),t["default"]=l},2100:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".floatbtn-group-container[data-v-34d5c6f3]{position:fixed;z-index:2001;text-align:right;width:70px}.floatbtn-group-container .van-button[data-v-34d5c6f3]{height:48px;width:48px;border-radius:50%;margin-right:20px;margin-bottom:5px}.floatbtn-group-container .van-button--hairline[data-v-34d5c6f3]{border-width:1px}",""]),t["default"]=s},6559:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".btn-group-container[data-v-38da20d2]{position:fixed;bottom:0;left:0;z-index:100;width:100%}.btn-group-container .slot-btn-group-container[data-v-38da20d2]{padding:8px 12px;overflow:hidden;background:#f7f8fa}.btn-group-container .slot-btn-group-container .van-button[data-v-38da20d2]{border-radius:3px;font-size:16px}.btn-group-container .slot-btn-group-container[data-v-38da20d2] .van-popover__wrapper .van-button{width:100%;font-size:16px}.btn-group-container .van-icon-play[data-v-38da20d2]{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);color:#969799}",""]),t["default"]=s},1329:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".inner-table-container[data-v-eedaacfa]{padding-bottom:1px;background:#f7f8fa;padding-top:10px;border:0}.inner-table-container[data-v-eedaacfa] .van-nav-bar__title{margin-left:16px}.inner-table-container .inner_table_title[data-v-eedaacfa]:after{content:none}.inner-table-container[data-v-eedaacfa] .van-field__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inner-table-row[data-v-eedaacfa]:first-child{margin-top:0}.inner-table-row[data-v-eedaacfa]{margin-top:10px}.inner-table-row .van-icon[data-v-eedaacfa]{margin-top:4px;margin-left:10px;font-size:16px}.inner-table-add-botton-container[data-v-eedaacfa]{margin:10px 12px}.inner-table-nodata[data-v-eedaacfa]{text-align:center}.van-cell__value--alone[data-v-eedaacfa]{font-weight:400}",""]),t["default"]=s},4689:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-4baca1b9] .popup-body{background:#fff}[data-v-4baca1b9] .van_signList_list .van-cell:after{right:0}[data-v-4baca1b9] .van_signList_list .van-cell__title,[data-v-4baca1b9] .van_signList_list .van-cell__value{display:-webkit-box;display:-ms-flexbox;display:flex}[data-v-4baca1b9] .van_signList_list .van-cell__title .sign_img,[data-v-4baca1b9] .van_signList_list .van-cell__value .sign_img{width:80px;max-height:40px}[data-v-4baca1b9] .van_signList_list .van-cell__title .sign_img img,[data-v-4baca1b9] .van_signList_list .van-cell__value .sign_img img{max-width:100%;max-height:100%}[data-v-4baca1b9] .van_signList_list .van-cell__title .signList_content,[data-v-4baca1b9] .van_signList_list .van-cell__value .signList_content{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;height:100%;margin-left:10px}[data-v-4baca1b9] .van_signList_list .van-cell__title .signList_content div,[data-v-4baca1b9] .van_signList_list .van-cell__value .signList_content div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]),t["default"]=s},5651:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'[data-v-1789b27e] .popup-body{background:#fff}[data-v-1789b27e] .van_seals_list .van-cell:after{right:0}[data-v-1789b27e] .van_seals_list .van-cell__title,[data-v-1789b27e] .van_seals_list .van-cell__value{display:-webkit-box;display:-ms-flexbox;display:flex}[data-v-1789b27e] .van_seals_list .van-cell__title .sela_img,[data-v-1789b27e] .van_seals_list .van-cell__value .sela_img{width:80px;max-height:80px}[data-v-1789b27e] .van_seals_list .van-cell__title .sela_img img,[data-v-1789b27e] .van_seals_list .van-cell__value .sela_img img{width:100%}[data-v-1789b27e] .van_seals_list .van-cell__title .seals_content,[data-v-1789b27e] .van_seals_list .van-cell__value .seals_content{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;height:100%;margin-left:10px}[data-v-1789b27e] .van_seals_list .van-cell__title .seals_content div,[data-v-1789b27e] .van_seals_list .van-cell__value .seals_content div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-1789b27e] .van-dialog__header{padding:0;line-height:52px}.sealAccount[data-v-1789b27e]{position:relative}.sealAccount[data-v-1789b27e]:before{top:0;left:0;z-index:1}.sealAccount[data-v-1789b27e]:after,.sealAccount[data-v-1789b27e]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.sealAccount[data-v-1789b27e]:after{bottom:0;left:16px}.pageList[data-v-1789b27e]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px 20px}.pageList .page-item[data-v-1789b27e]{width:50px;height:40px;line-height:40px;background:#fff;border:1px solid #ddd;margin:5px}.pageList .pageActive[data-v-1789b27e]{background:#1989fa;color:#fff;border-color:#1989fa}',""]),t["default"]=s},3922:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'#bodyfilebox[data-v-a2cfb25a]{position:absolute;width:100%;overflow:hidden}#bodyfilebox[data-v-a2cfb25a]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;top:20;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5);z-index:1}#bodyfilebox .box[data-v-a2cfb25a]{height:100%}#bodyfilebox .box .box-inner[data-v-a2cfb25a]{position:relative;width:100%;height:100%}#bodyfilebox[data-v-a2cfb25a] .van-cell__title{text-align:left}.busi-form-container #bodyfilebox[data-v-a2cfb25a]{height:calc(100vh - 104px - var(--headerHeight))}.busi-form-nobtn-container #bodyfilebox[data-v-a2cfb25a]{height:calc(100vh - 44px - var(--headerHeight))}.bottom-bar[data-v-a2cfb25a]{position:absolute;bottom:20px;width:100%;text-align:center}.bottom-bar .btn-g[data-v-a2cfb25a]:not(:first-child){margin-top:10px}.van-loading[data-v-a2cfb25a]{height:inherit;padding:inherit}',""]),t["default"]=s},9947:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".divNoContainer[data-v-1526925b]{-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:bottom left;transform-origin:bottom left;position:absolute;top:-100vw;height:100vw;width:100vh}.view-container[data-v-1526925b]{position:fixed;top:0;width:100vw;height:100vh;background-color:#fff;z-index:9999}.tool-dv[data-v-1526925b]{position:absolute;bottom:calc(100vw - 38px);left:calc(100vh - 100px);width:100px;height:37px;background-color:#f1f1f1}.docDiv[data-v-1526925b],.iframe[data-v-1526925b]{height:100%;width:100%}.docDiv[data-v-1526925b]{position:relative;background-color:#fff}.buttomDiv[data-v-1526925b]{right:10px}.buttomDiv[data-v-1526925b],.buttomDivD[data-v-1526925b]{float:right;top:7px;z-index:111;position:absolute;background-color:#1a82e3;font-size:10px;width:40px;line-height:25px;color:#fff;text-align:center;border-radius:2px}.buttomDivD[data-v-1526925b]{right:60px}",""]),t["default"]=s},2509:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-e9b9765c] .van-nav-bar__title{margin-left:16px}.popup-body[data-v-e9b9765c]{height:calc(100vh - 46px)}.popup-body[data-v-e9b9765c],.popup-body-nonav[data-v-e9b9765c]{overflow-y:auto;background-color:#f7f8fa}.popup-body-nonav[data-v-e9b9765c]{height:100vh}",""]),t["default"]=s},5031:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"#richtext[data-v-1c8100d7]{overflow-x:hidden;background:#fff;overflow-wrap:break-word;word-break:break-word}#richtext[data-v-1c8100d7] .w-e-toolbar{-ms-flex-wrap:wrap;flex-wrap:wrap;border:0!important;border-bottom:1px solid #eee!important}#richtext[data-v-1c8100d7] .w-e-toolbar .w-e-menu i{color:#333}#richtext[data-v-1c8100d7] .w-e-toolbar .w-e-droplist ul.w-e-list{max-height:150px;overflow-y:auto}#richtext[data-v-1c8100d7] .w-e-text-container{border:0!important;margin:5px}#richtext[data-v-1c8100d7] .w-e-text-container .w-e-text{padding:0;font-size:14px}#richtext[data-v-1c8100d7] .w-e-text-container .placeholder{left:0;top:0}",""]),t["default"]=s},1635:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.popup-content[data-v-2e7fed1a]{height:calc(100vh - 100px - var(--headerHeight));overflow-y:auto}.popup-content .van-cell__title[data-v-2e7fed1a]{margin-left:8px}.van-action-sheet__description[data-v-2e7fed1a]:after{left:0;right:0}.van-action-sheet__item[data-v-2e7fed1a]{position:relative}.van-action-sheet__item[data-v-2e7fed1a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.bootom_slect_item .van-action-sheet__content[data-v-2e7fed1a]{max-height:250px;overflow-y:auto}',""]),t["default"]=s},2552:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'[data-v-3ff50713] .van-nav-bar__title{margin-left:16px}.popup-content[data-v-3ff50713]{width:100%;height:calc(100vh - 162px - var(--headerHeight));overflow-y:auto;background:#fff}.popup-content .van-cell-group[data-v-3ff50713]:after{border:none}[data-v-3ff50713] .van-checkbox,[data-v-3ff50713] .van-radio{padding-right:16px}[data-v-3ff50713] .popup-department{width:100%;height:calc(100vh - 106px - var(--headerHeight));overflow-y:auto}[data-v-3ff50713] .popup-department .van-cell-group:after{border:none}[data-v-3ff50713] .van-dropdown-menu__bar{height:34px;background-color:#f7f8fa;-webkit-box-shadow:0 0;box-shadow:0 0;border-top-right-radius:2px;border-bottom-right-radius:2px}[data-v-3ff50713] .van-dropdown-item__option{padding:10px 16px;font-size:15px}[data-v-3ff50713] .van-search__content{border-top-left-radius:0;border-bottom-left-radius:0}[data-v-3ff50713] .iconfont-search input[type=search]{font-family:iconfont}[data-v-3ff50713] .iconfont-search .van-field__left-icon{height:24px}[data-v-3ff50713] .iconfont-search .icon-search{font-size:14px}[data-v-3ff50713] .iconfont-search .icon-search:before{content:"\\e672";color:#7d7e80}.p-search[data-v-3ff50713]{position:relative}.p-search[data-v-3ff50713]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.search-staff-result .van-cell-staff[data-v-3ff50713]{padding:14px 16px}.search-staff-result .staff-name[data-v-3ff50713]{margin-top:-20px}.search-staff-result .van-cell__label[data-v-3ff50713]{position:absolute;left:102px;top:34px}.search-staff-result .photo[data-v-3ff50713]{height:38px;width:38px}.search-staff-result .photo span[data-v-3ff50713]{line-height:38px}.photo[data-v-3ff50713]{position:relative;background:#ccc;margin-right:10px;text-align:center}.photo[data-v-3ff50713],.photo img[data-v-3ff50713]{border-radius:50%;width:28px;height:28px}.photo span[data-v-3ff50713]{color:#fff;line-height:30px;font-size:10px}.searchInput[data-v-3ff50713]{position:relative;z-index:1}[data-v-3ff50713] .van-cell__title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-v-3ff50713] .select-all-nodes{position:relative}[data-v-3ff50713] .select-all-nodes:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}[data-v-3ff50713] .select-all-nodes .van-cell .van-cell__value{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.no-message-img[data-v-3ff50713]{width:100%;text-align:center;margin-top:88px}.no-message-img img[data-v-3ff50713]{width:240px}.no-message-img span[data-v-3ff50713]{line-height:50px;font-size:14px;color:#969799}[data-v-3ff50713] .btn-group-container{background:#f9f9f9}.select_person_count[data-v-3ff50713]{display:-webkit-box;display:-ms-flexbox;display:flex}.select_person_count .count[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;line-height:44px;font-size:14px;color:#1989fa}.select_person_count .count span[data-v-3ff50713]{display:inline-block;line-height:30px}.select_person_count .confirm_btn[data-v-3ff50713]{width:100px}.select_person_count .confirm_btn button[data-v-3ff50713]{width:100%}.delete_Popup[data-v-3ff50713]{height:100%}.delete_Popup .popup_header[data-v-3ff50713]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:50px;position:relative;padding:0 16px}.delete_Popup .popup_header[data-v-3ff50713]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;width:100%;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.delete_Popup .popup_header .title[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:16px;font-weight:700;color:#303133;text-align:left}.delete_Popup .popup_header .btn[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;color:#1989fa;font-size:14px;text-align:right}.delete_Popup .popup_person[data-v-3ff50713]{height:calc(100% - 50px);overflow-y:auto;overflow-x:hidden}.delete_Popup .popup_person .popup_cell[data-v-3ff50713]{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;padding:10px 16px}.delete_Popup .popup_person .popup_cell .name[data-v-3ff50713]{-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:1}.delete_Popup .popup_person .popup_cell[data-v-3ff50713]:not(:last-child):after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;width:100%;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.delete_Popup .popup_person .popup_cell .photo[data-v-3ff50713]{width:36px;height:36px}.delete_Popup .popup_person .popup_cell .photo span[data-v-3ff50713]{line-height:36px}.delete_Popup .popup_person .popup_cell .photo img[data-v-3ff50713]{width:36px;height:36px}.delete_Popup .popup_person .popup_cell .deletebtn[data-v-3ff50713]{line-height:36px;font-size:20px;color:#c0c4cc}.disabled-name[data-v-3ff50713]{color:#787878;overflow:hidden;max-width:185px;text-overflow:ellipsis;white-space:nowrap}',""]),t["default"]=s},1478:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-43b0ec8c] .van-collapse-item__title .van-cell__right-icon:before{-webkit-transform:rotate(0deg);transform:rotate(0deg)}[data-v-43b0ec8c] .van-collapse-item__title--expanded .van-cell__right-icon:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}[data-v-43b0ec8c] .van-collapse-item__content{padding:0}.photo[data-v-43b0ec8c]{position:relative;background:#ccc;margin-right:10px;text-align:center}.photo[data-v-43b0ec8c],.photo img[data-v-43b0ec8c]{border-radius:50%;width:30px;height:30px}.photo span[data-v-43b0ec8c]{color:#fff;line-height:30px;font-size:10px}",""]),t["default"]=s},3885:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".photo[data-v-85d5d846]{position:relative;background:#ccc;margin-right:10px;text-align:center}.photo[data-v-85d5d846],.photo img[data-v-85d5d846]{border-radius:50%;width:30px;height:30px}.photo span[data-v-85d5d846]{color:#fff;line-height:30px;font-size:10px}.disabled-name[data-v-85d5d846]{color:#787878;overflow:hidden;max-width:185px;text-overflow:ellipsis;white-space:nowrap}.no-message-img[data-v-85d5d846]{width:100%;text-align:center;margin-top:88px}.no-message-img img[data-v-85d5d846]{width:240px}.no-message-img span[data-v-85d5d846]{line-height:50px;font-size:14px;color:#969799}[data-v-85d5d846] .van-cell__title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}",""]),t["default"]=s},2987:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"#SelectedPopup .photo[data-v-4d1a7426]{position:relative;background:#ccc;margin-right:10px;text-align:center}#SelectedPopup .photo[data-v-4d1a7426],#SelectedPopup .photo img[data-v-4d1a7426]{border-radius:50%;width:30px;height:30px}#SelectedPopup .photo span[data-v-4d1a7426]{color:#fff;line-height:30px;font-size:10px}#SelectedPopup .header[data-v-4d1a7426]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:16px;border-bottom:1px solid #ebedf0;background:#fff}#SelectedPopup .header .title[data-v-4d1a7426]{font-size:16px;font-weight:600}#SelectedPopup .header .button[data-v-4d1a7426]{font-size:14px;color:#1989fa}#SelectedPopup .content[data-v-4d1a7426]{background:#fff}#SelectedPopup .split-line[data-v-4d1a7426]{display:block;height:8px;width:100%;background-color:#f7f9fb}.select_person_count[data-v-4d1a7426]{display:-webkit-box;display:-ms-flexbox;display:flex}.select_person_count .count[data-v-4d1a7426]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:left;line-height:44px;font-size:14px;color:#1989fa}.select_person_count .count span[data-v-4d1a7426]{display:inline-block;line-height:30px}.select_person_count .confirm_btn[data-v-4d1a7426]{width:100px}.select_person_count .confirm_btn button[data-v-4d1a7426]{width:100%}",""]),t["default"]=s},8400:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-0685b481] .van-nav-bar__title{margin-left:16px}.popup-content[data-v-0685b481]{height:calc(100vh - 100px - var(--headerHeight));overflow-y:auto}",""]),t["default"]=s},9974:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,'.wfattach-container .van-cell__value[data-v-c5c0c8a2],.wfattach-container[data-v-c5c0c8a2] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.wfattach-container[data-v-c5c0c8a2] .van-cell__title{width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.wfattach-container[data-v-c5c0c8a2] .van-cell__value{width:25%;height:24px}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .van-icon-add-o{line-height:24px}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .van-circle{margin-top:2px}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .attach-icon{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.wfattach-container[data-v-c5c0c8a2] .van-cell__value .attach-icon .van-icon{line-height:24px;margin-left:15px;font-size:16px}.wfattach-container[data-v-c5c0c8a2]:after{border-top-width:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-c5c0c8a2]{padding-left:70px;padding-right:36px}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-c5c0c8a2]:after{right:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-c5c0c8a2]:first-child:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;top:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title[data-v-c5c0c8a2]{position:relative}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_photo[data-v-c5c0c8a2]{position:absolute;left:-54px;height:44px;width:44px}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_name[data-v-c5c0c8a2]{width:calc(100vw - 107px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-attachment-field[data-v-c5c0c8a2]{position:relative}.van-attachment-field[data-v-c5c0c8a2]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;top:unset;border-width:0;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),t["default"]=s},6124:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".loading[data-v-4602c485]{margin-top:100px;text-align:center}.upload-progress[data-v-4602c485]{background-color:#fff;padding-top:50px;padding-bottom:50px;text-align:center}.van-ellipsis[data-v-4602c485]{text-align:center;margin:20px auto 0;max-width:90%}.file-svg-icon[data-v-4602c485]{font-size:70px}.file-svg-icon .svg-icon[data-v-4602c485]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.van-cell-group[data-v-4602c485]{margin:10px 10px 0 10px;border:1px solid #fbf9f9;border-radius:5px}.more-btns[data-v-4602c485]{width:120px;border-radius:6px;padding:16px}.more-btns .btn-item[data-v-4602c485]{border-bottom:1px solid #fbf9f9;width:100%;height:44px;line-height:44px}.more-btns .btn-item .van-icon[data-v-4602c485]{font-size:16px;margin-right:10px}[data-v-4602c485] .van-action-sheet__header{text-align:left!important;padding:0 15px;font-size:14px;color:#666}.attachmentContent[data-v-4602c485]{max-height:300px;padding:0 10px}.attachmentContent .attachmentContent_son[data-v-4602c485]{height:50px;line-height:50px;border-bottom:1px solid #f7f8fa;padding:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex}.attachmentContent .attachmentContent_son .icon_left[data-v-4602c485],.attachmentContent .attachmentContent_son .icon_right[data-v-4602c485]{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.attachmentContent .attachmentContent_son .content[data-v-4602c485]{width:calc(100% - 80px)}.attachmentContent .attachmentContent_son .content .name[data-v-4602c485]{height:30px;line-height:30px;font-size:16px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.attachmentContent .attachmentContent_son .content .size[data-v-4602c485]{height:20px;line-height:20px;font-size:12px;color:#999}[data-v-4602c485] .van-action-sheet__content{border-top:1px solid #f7f8fa}[data-v-4602c485] .van-action-sheet__close{color:#000;font-size:16px}",""]),t["default"]=s},989:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".handle-idea-container[data-v-436c37ca] .van-collapse .van-cell__title{color:#000;font-weight:400}[data-v-436c37ca] .ideaDiv{margin:5px 0}[data-v-436c37ca] .ideaDiv p{margin-top:0;margin-bottom:0}[data-v-436c37ca] .ideaDiv span{display:inline-block}[data-v-436c37ca] .ideaDiv .handwritingIdea{width:200px}[data-v-436c37ca] .ideaDiv .ideaSignature{max-width:100px;max-height:50px}[data-v-436c37ca] .ideaDiv .donext-attach{padding-left:10px;position:absolute}[data-v-436c37ca] .ideaDiv .donext-attach svg{margin-top:2px;width:15px;height:15px}[data-v-436c37ca] .highlight{font-weight:600;color:#323233}[data-v-436c37ca] .van-collapse-item--border:after,[data-v-436c37ca] .van-collapse-item__title:after{right:0}[data-v-436c37ca] .van-collapse-item__content{padding-top:1px}[data-v-436c37ca] .van-cell:after{border-bottom:0 solid}.viewAllComments[data-v-436c37ca]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff}.HandleIdeaContent[data-v-436c37ca]{padding:6px 12px;color:#969799;font-size:14px;line-height:1.5;background-color:#fff}",""]),t["default"]=s},1736:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".van-cell__label[data-v-897ddfa6]{color:#323323;font-size:14px}.van-cell__value[data-v-897ddfa6]{color:#666}.van-wform-operate-cell .van-button[data-v-897ddfa6]{color:#323323;border:1px;margin-right:0}.van-wform-operate-cell .van-button--info[data-v-897ddfa6]{color:#fff}",""]),t["default"]=s},750:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".van-cell__label[data-v-301979cb]{color:#323323;font-size:14px}.van-cell__value[data-v-301979cb]{color:#666}.van-wform-operate-cell .van-button[data-v-301979cb]{color:#323323;border:1px;margin-right:0}.van-wform-operate-cell .van-button--info[data-v-301979cb]{color:#fff}[data-v-301979cb] .van-icon-success{font-size:16px!important}[data-v-301979cb] .van-radio__icon--checked .van-icon-success{background-color:#1989fa!important}",""]),t["default"]=s},5275:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".popub-container[data-v-6850137e]{width:100%;height:100%}.popub-container .outer-deputy-selector[data-v-6850137e]{background-color:#f8f8ff;padding-top:5px;padding-bottom:5px}.popub-container .outer-deputy-selector[data-v-6850137e] .van-field__control{text-align:right}",""]),t["default"]=s},6383:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".submit-dialog-container[data-v-2e79fb7e]{overflow:hidden}.submit-dialog-container .van-popup[data-v-2e79fb7e]{z-index:2001!important}",""]),t["default"]=s},633:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(4417),l=n.n(s),d=new URL(n(356),n.b),c=r()(o()),u=l()(d);c.push([e.id,'.submit-handle-container .idea-button-container .van-cell__value[data-v-6b76414a]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-6b76414a]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-6b76414a] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-6b76414a]:after{display:none}.submit-handle-container .clearfix[data-v-6b76414a]:after{content:".";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container[data-v-6b76414a] .van-radio-group .van-cell__title{font-weight:400!important}.submit-handle-container .van-wflow-operate-detail-cell[data-v-6b76414a]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-6b76414a]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container[data-v-6b76414a] .tnLimit-container .van-field{width:50px;display:inline-block;padding:0}.submit-handle-container[data-v-6b76414a] .tnLimit-container .van-field .van-field__body input{text-align:center}.submit-handle-container[data-v-6b76414a] .tnLimit-container .van-field__body:after{color:#323233;content:attr(value-suffix);word-break:keep-all}.submit-handle-container .delete-icon[data-v-6b76414a]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-6b76414a]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-6b76414a]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-6b76414a],.selectBox_title[data-v-6b76414a]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-6b76414a]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.selectBox_content .selectBox_content_son[data-v-6b76414a]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-6b76414a],.selectBox_content .selectBox_content_son_change[data-v-6b76414a]{padding:4px;background:#f8fafb;font-size:14px;margin-bottom:10px!important;text-align:center;height:22px;line-height:22px;width:calc(25% - 17.5px);margin-right:10px}.selectBox_content .selectBox_content_son_change[data-v-6b76414a]{border:1px solid #3f88f1;background-image:url('+u+");background-repeat:no-repeat;background-size:15px 15px;background-position:100% 100%;color:#3f88f1}.selectBox_content_sonall[data-v-6b76414a]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-6b76414a]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-6b76414a]::-webkit-scrollbar{display:none}.viewAllComments[data-v-6b76414a]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}",""]),t["default"]=c},5481:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".wf-nodelogs-container[data-v-785b60a7]{margin-bottom:10px}.wf-nodelogs-container .call-back-file .van-steps[data-v-785b60a7]{height:calc(100% - 60px);overflow-y:auto}.wf-nodelogs-container[data-v-785b60a7] .popup-body/deep/.van-steps .van-step--vertical{padding-right:16px}.wf-nodelogs-container[data-v-785b60a7] .popup-body .active-step-finish .van-step__title{color:#444!important}.wf-nodelogs-container[data-v-785b60a7] .popup-body .active-step-finish .van-step__circle-container{color:#1989fa!important}.wf-nodelogs-container[data-v-785b60a7] .popup-body .active-step-finish .van-step__line{background-color:#ebedf0!important}.wf-nodelogs-container[data-v-785b60a7] .popup-body .elapsed-time{float:right}.wf-nodelogs-container[data-v-785b60a7] .popup-body .licont{color:#969799}.wf-nodelogs-container[data-v-785b60a7] .popup-body .licont .fr{float:right}.wf-nodelogs-container[data-v-785b60a7] .popup-body .van-icon{font-size:18px;background-color:#fff}.wf-nodelogs-container[data-v-785b60a7] .popup-body .handwritingIdea{width:200px}.wf-nodelogs-container[data-v-785b60a7] .popup-body .start-chat{padding-left:5px;padding-right:5px}",""]),t["default"]=s},894:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".write_toread_idea[data-v-a814ebae] .van-dialog .van-dialog__header{padding-top:15px}.write_toread_idea[data-v-a814ebae] .van-dialog .idea_content .van-cell__value{border:1px solid #ebedf0}.write_toread_idea[data-v-a814ebae] .van-dialog .idea_content .van-cell__value .van-field__body{padding:5px}",""]),t["default"]=s},203:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".loading[data-v-69610664]{margin-top:100px}",""]),t["default"]=s},4521:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"[data-v-6ff0d390] .el-dialog__body{height:650px;overflow-y:auto;padding:0 0 20px 0}[data-v-6ff0d390] .el-dialog__body .el-tabs--top{margin-top:0}",""]),t["default"]=s},1185:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".dwadmin-initmessage[data-v-3801b56a]{text-align:center;font-size:13px;padding-top:50px}.panel-left[data-v-3801b56a] .el-input__inner{border-top:0;border-left:0;border-right:0}.el-switch[data-v-3801b56a]{margin:6px 12px}.can-merge-subsys[data-v-3801b56a]{border-top:1px solid #f3f3f3;height:calc(100% - 32px)}",""]),t["default"]=s},8512:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".main[data-v-e2b48988]{padding:.6rem .2rem .6rem 1.36rem;position:fixed;top:0;left:0;bottom:0;right:0}#myCanvas[data-v-e2b48988]{border:1px dashed #f9bc82;display:block;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box}#operation[data-v-e2b48988]{margin:0 auto;text-align:center;height:.5rem;line-height:.5rem;position:absolute;bottom:50%;left:-.8rem;-webkit-transform:rotate(90deg);transform:rotate(90deg)}#operation .el-button[data-v-e2b48988]{-webkit-tap-highlight-color:transparent}#clearCanvas[data-v-e2b48988]{background:#ccc;color:#999}#getImg[data-v-e2b48988]{background:#fa484a;color:#fff}#canvasImg[data-v-e2b48988]{display:block;margin:.8rem auto;border:1px dotted #333}",""]),t["default"]=s},8315:function(e,t,n){"use strict";var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=n(4417),l=n.n(s),d=new URL(n(4480),n.b),c=new URL(n(2817),n.b),u=r()(o()),f=l()(d),p=l()(c,{hash:"#iconfont"});u.push([e.id,"@font-face{font-family:iconfont;src:url("+f+') format("truetype"),url('+p+') format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-search:before{content:"\\e672"}',""]),t.A=u},7494:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,":export{theme:var(--bgColor)}",""]),t["default"]=s},479:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".pdftools-savedialog .van-loading{height:inherit;padding:inherit}",""]),t["default"]=s},6358:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,".idea-start-chat{margin-top:-20px;position:absolute;font-size:19px}",""]),t["default"]=s},165:function(e,t,n){"use strict";n.r(t);var a=n(1601),o=n.n(a),i=n(6314),r=n.n(i),s=r()(o());s.push([e.id,"#wapp{position:fixed;top:0;left:0;bottom:0;right:0}",""]),t["default"]=s},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,o,i){"string"===typeof e&&(e=[[null,e,void 0]]);var r={};if(a)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(r[l]=!0)}for(var d=0;d<e.length;d++){var c=[].concat(e[d]);a&&r[c[0]]||("undefined"!==typeof i&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},4417:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},41:function(e,t,n){"use strict";var a=n(655),o=n(8068),i=n(9675),r=n(5795);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],u=!!r&&r(e,t);if(a)a(e,t,{configurable:null===d&&u?u.configurable:!d,enumerable:null===s&&u?u.enumerable:!s,value:n,writable:null===l&&u?u.writable:!l});else{if(!c&&(s||l||d))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},655:function(e,t,n){"use strict";var a=n(453),o=a("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(i){o=!1}e.exports=o},1237:function(e){"use strict";e.exports=EvalError},9383:function(e){"use strict";e.exports=Error},9290:function(e){"use strict";e.exports=RangeError},9538:function(e){"use strict";e.exports=ReferenceError},8068:function(e){"use strict";e.exports=SyntaxError},9675:function(e){"use strict";e.exports=TypeError},5345:function(e){"use strict";e.exports=URIError},9353:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,o="[object Function]",i=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},r=function(e,t){for(var n=[],a=t||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n},s=function(e,t){for(var n="",a=0;a<e.length;a+=1)n+=e[a],a+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==o)throw new TypeError(t+l);for(var d,c=r(arguments,1),u=function(){if(this instanceof d){var t=l.apply(this,i(c,arguments));return Object(t)===t?t:this}return l.apply(e,i(c,arguments))},f=a(0,l.length-c.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(d=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(u),l.prototype){var h=function(){};h.prototype=l.prototype,d.prototype=new h,h.prototype=null}return d}},6743:function(e,t,n){"use strict";var a=n(9353);e.exports=Function.prototype.bind||a},453:function(e,t,n){"use strict";var a,o=n(9383),i=n(1237),r=n(9290),s=n(9538),l=n(8068),d=n(9675),c=n(5345),u=Function,f=function(e){try{return u('"use strict"; return ('+e+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch($){p=null}var m=function(){throw new d},h=p?function(){try{return m}catch(e){try{return p(arguments,"callee").get}catch(t){return m}}}():m,v=n(4039)(),g=n(24)(),y=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),_={},b="undefined"!==typeof Uint8Array&&y?y(Uint8Array):a,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?a:ArrayBuffer,"%ArrayIteratorPrototype%":v&&y?y([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"===typeof Atomics?a:Atomics,"%BigInt%":"undefined"===typeof BigInt?a:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?a:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?a:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?a:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?a:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":_,"%Int8Array%":"undefined"===typeof Int8Array?a:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?a:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&y?y(y([][Symbol.iterator]())):a,"%JSON%":"object"===typeof JSON?JSON:a,"%Map%":"undefined"===typeof Map?a:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&v&&y?y((new Map)[Symbol.iterator]()):a,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?a:Promise,"%Proxy%":"undefined"===typeof Proxy?a:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?a:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?a:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&v&&y?y((new Set)[Symbol.iterator]()):a,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&y?y(""[Symbol.iterator]()):a,"%Symbol%":v?Symbol:a,"%SyntaxError%":l,"%ThrowTypeError%":h,"%TypedArray%":b,"%TypeError%":d,"%Uint8Array%":"undefined"===typeof Uint8Array?a:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?a:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?a:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?a:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"===typeof WeakMap?a:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?a:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?a:WeakSet};if(y)try{null.error}catch($){var x=y(y($));w["%Error.prototype%"]=x}var M=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return w[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(6743),S=n(9957),T=L.call(Function.call,Array.prototype.concat),D=L.call(Function.apply,Array.prototype.splice),N=L.call(Function.call,String.prototype.replace),A=L.call(Function.call,String.prototype.slice),Y=L.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,I=function(e){var t=A(e,0,1),n=A(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var a=[];return N(e,C,(function(e,t,n,o){a[a.length]=n?N(o,O,"$1"):t||e})),a},E=function(e,t){var n,a=e;if(S(k,a)&&(n=k[a],a="%"+n[0]+"%"),S(w,a)){var o=w[a];if(o===_&&(o=M(a)),"undefined"===typeof o&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===Y(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=I(e),a=n.length>0?n[0]:"",o=E("%"+a+"%",t),i=o.name,r=o.value,s=!1,c=o.alias;c&&(a=c[0],D(n,T([0,1],c)));for(var u=1,f=!0;u<n.length;u+=1){var m=n[u],h=A(m,0,1),v=A(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&f||(s=!0),a+="."+m,i="%"+a+"%",S(w,i))r=w[i];else if(null!=r){if(!(m in r)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&u+1>=n.length){var g=p(r,m);f=!!g,r=f&&"get"in g&&!("originalValue"in g.get)?g.get:r[m]}else f=S(r,m),r=r[m];f&&!s&&(w[i]=r)}}return r}},5795:function(e,t,n){"use strict";var a=n(453),o=a("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(i){o=null}e.exports=o},592:function(e,t,n){"use strict";var a=n(655),o=function(){return!!a};o.hasArrayLengthDefineBug=function(){if(!a)return null;try{return 1!==a([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},24:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},4039:function(e,t,n){"use strict";var a="undefined"!==typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"===typeof a&&("function"===typeof Symbol&&("symbol"===typeof a("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},1333:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var a=42;for(t in e[t]=a,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==a||!0!==i.enumerable)return!1}return!0}},9957:function(e,t,n){"use strict";var a=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(6743);e.exports=i.call(a,o)},2215:function(e,t,n){var a,o;
|
|
2
2
|
/*!
|
|
3
3
|
* JavaScript Cookie v2.2.0
|
|
4
4
|
* https://github.com/js-cookie/js-cookie
|
|
@@ -287,4 +287,4 @@ o.version="2.30.1",i(Kn),o.fn=ci,o.min=ea,o.max=ta,o.now=na,o.utc=h,o.unix=ui,o.
|
|
|
287
287
|
* (c) 2021 Evan You
|
|
288
288
|
* @license MIT
|
|
289
289
|
*/
|
|
290
|
-
function a(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:a});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[a].concat(e.init):a,n.call(this,e)}}function a(){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)}}n.d(t,{L8:function(){return E},aH:function(){return O}});var o="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},i=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach((function(n){a[n]=l(e[n],t)})),a}function d(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function u(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var p=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)||{}},m={namespaced:{configurable:!0}};m.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.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)},p.prototype.forEachChild=function(e){d(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&d(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&d(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&d(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,m);var h=function(e){this.register([],e,!1)};function v(e,t,n){if(t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return void 0;v(e.concat(a),t.getChild(a),n.modules[a])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){v([],this.root,e)},h.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0);var o=new p(t,n);if(0===e.length)this.root=o;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],o)}t.modules&&d(t.modules,(function(t,o){a.register(e.concat(o),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],a=t.getChild(n);a&&a.runtime&&t.removeChild(n)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var y=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&C(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var a=e.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var o=this,i=this,s=i.dispatch,l=i.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return l.call(o,e,t,n)},this.strict=a;var d=this._modules.root.state;M(this,d,[],this._modules.root),x(this,d),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:g.config.devtools;c&&r(this)},_={state:{configurable:!0}};function b(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 w(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;M(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={};d(o,(function(t,n){i[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var r=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:i}),g.config.silent=r,e.strict&&N(e),a&&(n&&e._withCommit((function(){a._data.$$state=null})),g.nextTick((function(){return a.$destroy()})))}function M(e,t,n,a,o){var i=!n.length,r=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[r],e._modulesNamespaceMap[r]=a),!i&&!o){var s=A(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){g.set(s,l,a.state)}))}var d=a.context=k(e,r,n);a.forEachMutation((function(t,n){var a=r+n;S(e,a,t,d)})),a.forEachAction((function(t,n){var a=t.root?n:r+n,o=t.handler||t;T(e,a,o,d)})),a.forEachGetter((function(t,n){var a=r+n;D(e,a,t,d)})),a.forEachChild((function(a,i){M(e,t,n.concat(i),a,o)}))}function k(e,t,n){var a=""===t,o={dispatch:a?e.dispatch:function(n,a,o){var i=Y(n,a,o),r=i.payload,s=i.options,l=i.type;return s&&s.root||(l=t+l),e.dispatch(l,r)},commit:a?e.commit:function(n,a,o){var i=Y(n,a,o),r=i.payload,s=i.options,l=i.type;s&&s.root||(l=t+l),e.commit(l,r,s)}};return Object.defineProperties(o,{getters:{get:a?function(){return e.getters}:function(){return L(e,t)}},state:{get:function(){return A(e.state,n)}}}),o}function L(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,a)===t){var i=o.slice(a);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function S(e,t,n,a){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,a.state,t)}))}function T(e,t,n,a){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return u(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function D(e,t,n,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)})}function N(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(e,t){return t.reduce((function(e,t){return e[t]}),e)}function Y(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function C(e){g&&e===g||(g=e,a(g))}_.state.get=function(){return this._vm._data.$$state},_.state.set=function(e){0},y.prototype.commit=function(e,t,n){var a=this,o=Y(e,t,n),i=o.type,r=o.payload,s=(o.options,{type:i,payload:r}),l=this._mutations[i];l&&(this._withCommit((function(){l.forEach((function(e){e(r)}))})),this._subscribers.slice().forEach((function(e){return e(s,a.state)})))},y.prototype.dispatch=function(e,t){var n=this,a=Y(e,t),o=a.type,i=a.payload,r={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(r,n.state)}))}catch(d){0}var l=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);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(r,n.state)}))}catch(d){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(r,n.state,e)}))}catch(d){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var a=this;return this._watcherVM.$watch((function(){return e(a.state,a.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),M(this,this.state,e,this._modules.get(e),n.preserveState),x(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=A(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),w(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,_);var O=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=B(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[a].vuex=!0})),n})),I=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var a=this.$store.commit;if(e){var i=B(this.$store,"mapMutations",e);if(!i)return;a=i.context.commit}return"function"===typeof o?o.apply(this,[a].concat(t)):a.apply(this.$store,[o].concat(t))}})),n})),E=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;o=e+o,n[a]=function(){if(!e||B(this.$store,"mapGetters",e))return this.$store.getters[o]},n[a].vuex=!0})),n})),$=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var i=B(this.$store,"mapActions",e);if(!i)return;a=i.context.dispatch}return"function"===typeof o?o.apply(this,[a].concat(t)):a.apply(this.$store,[o].concat(t))}})),n})),P=function(e){return{mapState:O.bind(null,e),mapGetters:E.bind(null,e),mapMutations:I.bind(null,e),mapActions:$.bind(null,e)}};function j(e){return F(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 F(e){return Array.isArray(e)||c(e)}function H(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function B(e,t,n){var a=e._modulesNamespaceMap[n];return a}function U(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var a=e.transformer;void 0===a&&(a=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var i=e.actionFilter;void 0===i&&(i=function(e,t){return!0});var r=e.actionTransformer;void 0===r&&(r=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var d=e.logActions;void 0===d&&(d=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var u=l(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,i){var r=l(i);if(n(e,u,r)){var s=V(),d=o(e),f="mutation "+e.type+s;R(c,f,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",a(u)),c.log("%c mutation","color: #03A9F4; font-weight: bold",d),c.log("%c next state","color: #4CAF50; font-weight: bold",a(r)),W(c)}u=r})),d&&e.subscribeAction((function(e,n){if(i(e,n)){var a=V(),o=r(e),s="action "+e.type+a;R(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",o),W(c)}})))}}function R(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch(o){e.log(t)}}function W(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+J(e.getHours(),2)+":"+J(e.getMinutes(),2)+":"+J(e.getSeconds(),2)+"."+J(e.getMilliseconds(),3)}function z(e,t){return new Array(t+1).join(e)}function J(e,t){return z("0",t-e.toString().length)+e}var q={Store:y,install:C,version:"3.6.2",mapState:O,mapMutations:I,mapGetters:E,mapActions:$,createNamespacedHelpers:P,createLogger:U};t.Ay=q},9326:function(e,t,n){var a={"./app.js":3070,"./route.js":8076};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=9326},2397:function(e,t,n){var a={"./user.js":819};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=2397},5196:function(e,t,n){var a={"./app.js":8532,"./route.js":8256,"./settings.js":4578,"./tagsView.js":6575};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=5196},2817:function(e,t,n){"use strict";e.exports=n.p+"img/iconfont.de4e4895.svg"},4480:function(e){"use strict";e.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI86EhkAAABfAAAAFZjbWFw55q3AAAAAdwAAAFwZ2x5ZlzrmLUAAANUAAAAfGhlYWQbEaBvAAAA4AAAADZoaGVhB94DgwAAALwAAAAkaG10eAgAAAAAAAHUAAAACGxvY2EAPgAAAAADTAAAAAZtYXhwAQ4AMAAAARgAAAAgbmFtZT5U/n0AAAPQAAACbXBvc3TX3mJ6AAAGQAAAADAAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAIAAQAAAAEAAHSLjk5fDzz1AAsEAAAAAADb+S45AAAAANv5LjkAAP+tBAADUwAAAAgAAgAAAAAAAAABAAAAAgAkAAIAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5nLmcgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABVAABAAAAAABOAAMAAQAAACwAAwAKAAABVAAEACIAAAAEAAQAAQAA5nL//wAA5nL//wAAAAEABAAAAAEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAABwAAAAAAAAAAQAA5nIAAOZyAAAAAQAAAAAAPgAAAAIAAP+tA9MDUwAVACMAACUnPgE1LgEnDgEHHgEXMjY3FxYyNjQBPgE3HgEXDgEHIi4CA8OwKywE6rCw6gQE6rBGgTevECse/MQDr4SEsAMDsIQ+cVgvB683gUaw6gQE6rCw6gQsK7APHisBvYSvAwOvhISwAy9YcQAAAAAAABIA3gABAAAAAAAAABUAAAABAAAAAAABAAgAFQABAAAAAAACAAcAHQABAAAAAAADAAgAJAABAAAAAAAEAAgALAABAAAAAAAFAAsANAABAAAAAAAGAAgAPwABAAAAAAAKACsARwABAAAAAAALABMAcgADAAEECQAAACoAhQADAAEECQABABAArwADAAEECQACAA4AvwADAAEECQADABAAzQADAAEECQAEABAA3QADAAEECQAFABYA7QADAAEECQAGABABAwADAAEECQAKAFYBEwADAAEECQALACYBaQpDcmVhdGVkIGJ5IGljb25mb250Cmljb25mb250UmVndWxhcmljb25mb250aWNvbmZvbnRWZXJzaW9uIDEuMGljb25mb250R2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20ACgBDAHIAZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AAoAaQBjAG8AbgBmAG8AbgB0AFIAZQBnAHUAbABhAHIAaQBjAG8AbgBmAG8AbgB0AGkAYwBvAG4AZgBvAG4AdABWAGUAcgBzAGkAbwBuACAAMQAuADAAaQBjAG8AbgBmAG8AbgB0AEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgEDAAZzZWFyY2gAAA=="},356:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAB7klEQVRYCcXWzUvCYADH8d8201pEhyK0sheiF3qhoDxEQd26F3Xq3N9QUFhQQdSf0J9QRMfOBRX0AlGHEEUJirBDkWjm5trjzLacc5u6PYexic/z+T7bBAEbx/TOxzpll09wQYDfloBfnGze8gA5bnnAf9zSADXcsoBCuCUBWnjFA4rhFQ3Qg1csQC9ekQAjeNkDjOJlDTCDly3ALF6WgFLwkgNKxUkAQw5mhhG8z0Nj3ufEW0zAe1xQcKYCjOC+TgZ7C7UY9jrQ1kDj5D6lCKAVVzoujOCj7Qw2Z1k4HdLfjscXPk8wFGAEH/Ey2Jpj4criZ4EU9k+TeQG6H4Ea3uumsTjuQiwpIPr592yHWhnszLOocUo7Pw+m4D9KgE/n+fpeQjWcLLUt7nCyuwozg1WZFyzwmkZ/M4PdBRZsFr8McVgTcU4FJ2sUvQOFcDK5XXypBlocoCkKE2JIYx2Fpalq1LqknV+FOawexpHKf/RkemZoBmjhZPZ1mEc9S6HPIy3T42ZyL9xthMOKiH9r4GSNggHFcDKZPPWLIIf4t4CxDgaUeCfIuHvisHwQR5LLXGoeVAP04PJVH555hKJpdDXRuInw2DhO4Ev5c5d/XXEuJcs+MorLppo6VQRYjZPiXIAdeC7ALjwTYCdOAn4Agxr0fnLMxsEAAAAASUVORK5CYII="},9274:function(t){"use strict";t.exports=e},2634:function(){}},n={};function a(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=t,function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){a.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){a.p=""}(),function(){a.b=document.baseURI||self.location.href}();var o={};return function(){"use strict";a.r(o),a.d(o,{default:function(){return kf},httpRequest:function(){return bf},lang:function(){return _f},store:function(){return wf},webSocket:function(){return xf}});var e={};if(a.r(e),a.d(e,{hasBrowserEnv:function(){return lt},hasStandardBrowserEnv:function(){return dt},hasStandardBrowserWebWorkerEnv:function(){return ct},origin:function(){return ut}}),"undefined"!==typeof window){var t=window.document.currentScript,n=a(5003);t=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var i=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(a.p=i[1])}var r=a(8259),s=a(1954),l=a.n(s);function d(e){return d="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},d(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=m(e,"string");return"symbol"==d(t)?t:t+""}function m(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h={};h.en=u(u({},r.ot.en),l().en),h.zhCN=u(u({},r.ot.zhCN),l().zhCN),h.es=u(u({},r.ot.es),l().es),h.ja=u(u({},r.ot.ja),l().en);var v={};v.aiomessages=h,v.generateTitle=r.KS,v.getPageTitle=r.wS,v.getLanguage=r.Z0,v.$tx=r.Pc;var g=v;function y(e){return y="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},y(e)}var _=a(5093);function b(e){return 0===arguments.length?null:("object"===y(e)?t=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(/-/g,"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),t=new Date(e)),t);var t}function w(e,t){var n=b(e);null===e&&(n=Date().now());var a=Date.now(),o=(a-n)/1e3;return void 0===t?o<30?"刚刚":o<3600?Math.floor(o/60)+"分钟前":o<86400?Math.floor(o/3600)+"小时前":o<172800?"1天前":n.getFullYear()<b(a).getFullYear()?n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate():n.getMonth()+1+"/"+n.getDate():(t=t.replace("yyyy","YYYY").replace("dd","DD"),_(n).format(t))}function x(e){e=null==e?window.location.href:e;var t=e.substring(e.lastIndexOf("?")+1),n={},a=/([^?&=]+)=([^?&=]*)/g;return t.replace(a,(function(e,t,a){var o=decodeURIComponent(t),i=decodeURIComponent(a);return i=String(i),n[o]=i,e})),n}function M(e){if(!e&&"object"!==y(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===y(e[n])?t[n]=M(e[n]):t[n]=e[n]})),t}function k(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function L(e,t){k(e,t)||(e.className+=" "+t)}function S(e,t){if(k(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function T(e){if(e<1024)return e+"B";if(e<1048576){var t=e/1024;return t=t.toFixed(2),t+"KB"}if(e<1073741824){var n=e/1048576;return n=n.toFixed(2),n+"MB"}var a=e/1073741824;return a=a.toFixed(2),a+"GB"}function D(e,t,n){return e.sort((function(e,a){var o=e[t],i=a[t];return"desc"===n?o>i?-1:o<i?1:0:o<i?-1:o>i?1:0}))}function N(e,t){return function(){return e.apply(t,arguments)}}const{toString:A}=Object.prototype,{getPrototypeOf:Y}=Object,C=(e=>t=>{const n=A.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),O=e=>(e=e.toLowerCase(),t=>C(t)===e),I=e=>t=>typeof t===e,{isArray:E}=Array,P=I("undefined");function j(e){return null!==e&&!P(e)&&null!==e.constructor&&!P(e.constructor)&&U(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F=O("ArrayBuffer");function H(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&F(e.buffer),t}const B=I("string"),U=I("function"),R=I("number"),W=e=>null!==e&&"object"===typeof e,V=e=>!0===e||!1===e,z=e=>{if("object"!==C(e))return!1;const t=Y(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J=O("Date"),q=O("File"),G=O("Blob"),K=O("FileList"),Q=e=>W(e)&&U(e.pipe),Z=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||U(e.append)&&("formdata"===(t=C(e))||"object"===t&&U(e.toString)&&"[object FormData]"===e.toString()))},X=O("URLSearchParams"),[ee,te,ne,ae]=["ReadableStream","Request","Response","Headers"].map(O),oe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let a,o;if("object"!==typeof e&&(e=[e]),E(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let r;for(a=0;a<i;a++)r=o[a],t.call(null,e[r],r,e)}}function re(e,t){t=t.toLowerCase();const n=Object.keys(e);let a,o=n.length;while(o-- >0)if(a=n[o],t===a.toLowerCase())return a;return null}const se=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),le=e=>!P(e)&&e!==se;function de(){const{caseless:e}=le(this)&&this||{},t={},n=(n,a)=>{const o=e&&re(t,a)||a;z(t[o])&&z(n)?t[o]=de(t[o],n):z(n)?t[o]=de({},n):E(n)?t[o]=n.slice():t[o]=n};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&ie(arguments[a],n);return t}const ce=(e,t,n,{allOwnKeys:a}={})=>(ie(t,((t,a)=>{n&&U(t)?e[a]=N(t,n):e[a]=t}),{allOwnKeys:a}),e),ue=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),fe=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pe=(e,t,n,a)=>{let o,i,r;const s={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),i=o.length;while(i-- >0)r=o[i],a&&!a(r,e,t)||s[r]||(t[r]=e[r],s[r]=!0);e=!1!==n&&Y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},me=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},he=e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!R(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},ve=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&Y(Uint8Array)),ge=(e,t)=>{const n=e&&e[Symbol.iterator],a=n.call(e);let o;while((o=a.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},ye=(e,t)=>{let n;const a=[];while(null!==(n=e.exec(t)))a.push(n);return a},_e=O("HTMLFormElement"),be=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),we=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xe=O("RegExp"),Me=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};ie(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(a[o]=i||n)})),Object.defineProperties(e,a)},ke=e=>{Me(e,((t,n)=>{if(U(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];U(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Le=(e,t)=>{const n={},a=e=>{e.forEach((e=>{n[e]=!0}))};return E(e)?a(e):a(String(e).split(t)),n},Se=()=>{},Te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,De="abcdefghijklmnopqrstuvwxyz",Ne="0123456789",Ae={DIGIT:Ne,ALPHA:De,ALPHA_DIGIT:De+De.toUpperCase()+Ne},Ye=(e=16,t=Ae.ALPHA_DIGIT)=>{let n="";const{length:a}=t;while(e--)n+=t[Math.random()*a|0];return n};function Ce(e){return!!(e&&U(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const Oe=e=>{const t=new Array(10),n=(e,a)=>{if(W(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const o=E(e)?[]:{};return ie(e,((e,t)=>{const i=n(e,a+1);!P(i)&&(o[t]=i)})),t[a]=void 0,o}}return e};return n(e,0)},Ie=O("AsyncFunction"),Ee=e=>e&&(W(e)||U(e))&&U(e.then)&&U(e.catch);var $e={isArray:E,isArrayBuffer:F,isBuffer:j,isFormData:Z,isArrayBufferView:H,isString:B,isNumber:R,isBoolean:V,isObject:W,isPlainObject:z,isReadableStream:ee,isRequest:te,isResponse:ne,isHeaders:ae,isUndefined:P,isDate:J,isFile:q,isBlob:G,isRegExp:xe,isFunction:U,isStream:Q,isURLSearchParams:X,isTypedArray:ve,isFileList:K,forEach:ie,merge:de,extend:ce,trim:oe,stripBOM:ue,inherits:fe,toFlatObject:pe,kindOf:C,kindOfTest:O,endsWith:me,toArray:he,forEachEntry:ge,matchAll:ye,isHTMLForm:_e,hasOwnProperty:we,hasOwnProp:we,reduceDescriptors:Me,freezeMethods:ke,toObjectSet:Le,toCamelCase:be,noop:Se,toFiniteNumber:Te,findKey:re,global:se,isContextDefined:le,ALPHABET:Ae,generateString:Ye,isSpecCompliantForm:Ce,toJSONObject:Oe,isAsyncFn:Ie,isThenable:Ee};function Pe(e,t,n,a,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),o&&(this.response=o)}$e.inherits(Pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$e.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const je=Pe.prototype,Fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Fe[e]={value:e}})),Object.defineProperties(Pe,Fe),Object.defineProperty(je,"isAxiosError",{value:!0}),Pe.from=(e,t,n,a,o,i)=>{const r=Object.create(je);return $e.toFlatObject(e,r,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Pe.call(r,e.message,t,n,a,o),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};var He=Pe,Be=null;function Ue(e){return $e.isPlainObject(e)||$e.isArray(e)}function Re(e){return $e.endsWith(e,"[]")?e.slice(0,-2):e}function We(e,t,n){return e?e.concat(t).map((function(e,t){return e=Re(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Ve(e){return $e.isArray(e)&&!e.some(Ue)}const ze=$e.toFlatObject($e,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Je(e,t,n){if(!$e.isObject(e))throw new TypeError("target must be an object");t=t||new(Be||FormData),n=$e.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$e.isUndefined(t[e])}));const a=n.metaTokens,o=n.visitor||c,i=n.dots,r=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=s&&$e.isSpecCompliantForm(t);if(!$e.isFunction(o))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if($e.isDate(e))return e.toISOString();if(!l&&$e.isBlob(e))throw new He("Blob is not supported. Use a Buffer instead.");return $e.isArrayBuffer(e)||$e.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if($e.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if($e.isArray(e)&&Ve(e)||($e.isFileList(e)||$e.endsWith(n,"[]"))&&(s=$e.toArray(e)))return n=Re(n),s.forEach((function(e,a){!$e.isUndefined(e)&&null!==e&&t.append(!0===r?We([n],a,i):null===r?n:n+"[]",d(e))})),!1;return!!Ue(e)||(t.append(We(o,n,i),d(e)),!1)}const u=[],f=Object.assign(ze,{defaultVisitor:c,convertValue:d,isVisitable:Ue});function p(e,n){if(!$e.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+n.join("."));u.push(e),$e.forEach(e,(function(e,a){const i=!($e.isUndefined(e)||null===e)&&o.call(t,e,$e.isString(a)?a.trim():a,n,f);!0===i&&p(e,n?n.concat(a):[a])})),u.pop()}}if(!$e.isObject(e))throw new TypeError("data must be an object");return p(e),t}var qe=Je;function Ge(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ke(e,t){this._pairs=[],e&&qe(e,this,t)}const Qe=Ke.prototype;Qe.append=function(e,t){this._pairs.push([e,t])},Qe.toString=function(e){const t=e?function(t){return e.call(this,t,Ge)}:Ge;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ze=Ke;function Xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function et(e,t,n){if(!t)return e;const a=n&&n.encode||Xe,o=n&&n.serialize;let i;if(i=o?o(t,n):$e.isURLSearchParams(t)?t.toString():new Ze(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}class tt{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$e.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var nt=tt,at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ot="undefined"!==typeof URLSearchParams?URLSearchParams:Ze,it="undefined"!==typeof FormData?FormData:null,rt="undefined"!==typeof Blob?Blob:null,st={isBrowser:!0,classes:{URLSearchParams:ot,FormData:it,Blob:rt},protocols:["http","https","file","blob","url","data"]};const lt="undefined"!==typeof window&&"undefined"!==typeof document,dt=(e=>lt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),ct=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),ut=lt&&window.location.href||"http://localhost";var ft={...e,...st};function pt(e,t){return qe(e,new ft.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return ft.isNode&&$e.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function mt(e){return $e.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function ht(e){const t={},n=Object.keys(e);let a;const o=n.length;let i;for(a=0;a<o;a++)i=n[a],t[i]=e[i];return t}function vt(e){function t(e,n,a,o){let i=e[o++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=o>=e.length;if(i=!i&&$e.isArray(a)?a.length:i,s)return $e.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!r;a[i]&&$e.isObject(a[i])||(a[i]=[]);const l=t(e,n,a[i],o);return l&&$e.isArray(a[i])&&(a[i]=ht(a[i])),!r}if($e.isFormData(e)&&$e.isFunction(e.entries)){const n={};return $e.forEachEntry(e,((e,a)=>{t(mt(e),a,n,0)})),n}return null}var gt=vt;function yt(e,t,n){if($e.isString(e))try{return(t||JSON.parse)(e),$e.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(n||JSON.stringify)(e)}const _t={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=$e.isObject(e);o&&$e.isHTMLForm(e)&&(e=new FormData(e));const i=$e.isFormData(e);if(i)return a?JSON.stringify(gt(e)):e;if($e.isArrayBuffer(e)||$e.isBuffer(e)||$e.isStream(e)||$e.isFile(e)||$e.isBlob(e)||$e.isReadableStream(e))return e;if($e.isArrayBufferView(e))return e.buffer;if($e.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pt(e,this.formSerializer).toString();if((r=$e.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return qe(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),yt(e)):e}],transformResponse:[function(e){const t=this.transitional||_t.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if($e.isResponse(e)||$e.isReadableStream(e))return e;if(e&&$e.isString(e)&&(n&&!this.responseType||a)){const n=t&&t.silentJSONParsing,i=!n&&a;try{return JSON.parse(e)}catch(o){if(i){if("SyntaxError"===o.name)throw He.from(o,He.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ft.classes.FormData,Blob:ft.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$e.forEach(["delete","get","head","post","put","patch"],(e=>{_t.headers[e]={}}));var bt=_t;const wt=$e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var xt=e=>{const t={};let n,a,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),a=e.substring(o+1).trim(),!n||t[n]&&wt[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)})),t};const Mt=Symbol("internals");function kt(e){return e&&String(e).trim().toLowerCase()}function Lt(e){return!1===e||null==e?e:$e.isArray(e)?e.map(Lt):String(e)}function St(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;while(a=n.exec(e))t[a[1]]=a[2];return t}const Tt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dt(e,t,n,a,o){return $e.isFunction(a)?a.call(this,t,n):(o&&(t=n),$e.isString(t)?$e.isString(a)?-1!==t.indexOf(a):$e.isRegExp(a)?a.test(t):void 0:void 0)}function Nt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function At(e,t){const n=$e.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+n,{value:function(e,n,o){return this[a].call(this,t,e,n,o)},configurable:!0})}))}class Yt{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(e,t,n){const o=kt(t);if(!o)throw new Error("header name must be a non-empty string");const i=$e.findKey(a,o);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=Lt(e))}const i=(e,t)=>$e.forEach(e,((e,n)=>o(e,n,t)));if($e.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if($e.isString(e)&&(e=e.trim())&&!Tt(e))i(xt(e),t);else if($e.isHeaders(e))for(const[r,s]of e.entries())o(s,r,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=kt(e),e){const n=$e.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return St(e);if($e.isFunction(t))return t.call(this,e,n);if($e.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=kt(e),e){const n=$e.findKey(this,e);return!(!n||void 0===this[n]||t&&!Dt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function o(e){if(e=kt(e),e){const o=$e.findKey(n,e);!o||t&&!Dt(n,n[o],o,t)||(delete n[o],a=!0)}}return $e.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;while(n--){const o=t[n];e&&!Dt(this,this[o],o,e,!0)||(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return $e.forEach(this,((a,o)=>{const i=$e.findKey(n,o);if(i)return t[i]=Lt(a),void delete t[o];const r=e?Nt(o):String(o).trim();r!==o&&delete t[o],t[r]=Lt(a),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $e.forEach(this,((n,a)=>{null!=n&&!1!==n&&(t[a]=e&&$e.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[Mt]=this[Mt]={accessors:{}},n=t.accessors,a=this.prototype;function o(e){const t=kt(e);n[t]||(At(a,e),n[t]=!0)}return $e.isArray(e)?e.forEach(o):o(e),this}}Yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$e.reduceDescriptors(Yt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),$e.freezeMethods(Yt);var Ct=Yt;function Ot(e,t){const n=this||bt,a=t||n,o=Ct.from(a.headers);let i=a.data;return $e.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function It(e){return!(!e||!e.__CANCEL__)}function Et(e,t,n){He.call(this,null==e?"canceled":e,He.ERR_CANCELED,t,n),this.name="CanceledError"}$e.inherits(Et,He,{__CANCEL__:!0});var $t=Et;function Pt(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function jt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ft(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),d=a[r];o||(o=l),n[i]=s,a[i]=l;let c=r,u=0;while(c!==i)u+=n[c++],c%=e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),l-o<t)return;const f=d&&l-d;return f?Math.round(1e3*u/f):void 0}}var Ht=Ft;function Bt(e,t){let n=0;const a=1e3/t;let o=null;return function(){const t=!0===this,i=Date.now();if(t||i-n>a)return o&&(clearTimeout(o),o=null),n=i,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),a-(i-n)))}}var Ut=Bt,Rt=(e,t,n=3)=>{let a=0;const o=Ht(50,250);return Ut((n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-a,l=o(s),d=i<=r;a=i;const c={loaded:i,total:r,progress:r?i/r:void 0,bytes:s,rate:l||void 0,estimated:l&&r&&d?(r-i)/l:void 0,event:n,lengthComputable:null!=r};c[t?"download":"upload"]=!0,e(c)}),n)},Wt=ft.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function a(n){let a=n;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(e){const t=$e.isString(e)?a(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Vt=ft.hasStandardBrowserEnv?{write(e,t,n,a,o,i){const r=[e+"="+encodeURIComponent(t)];$e.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),$e.isString(a)&&r.push("path="+a),$e.isString(o)&&r.push("domain="+o),!0===i&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qt(e,t){return e&&!zt(t)?Jt(e,t):t}const Gt=e=>e instanceof Ct?{...e}:e;function Kt(e,t){t=t||{};const n={};function a(e,t,n){return $e.isPlainObject(e)&&$e.isPlainObject(t)?$e.merge.call({caseless:n},e,t):$e.isPlainObject(t)?$e.merge({},t):$e.isArray(t)?t.slice():t}function o(e,t,n){return $e.isUndefined(t)?$e.isUndefined(e)?void 0:a(void 0,e,n):a(e,t,n)}function i(e,t){if(!$e.isUndefined(t))return a(void 0,t)}function r(e,t){return $e.isUndefined(t)?$e.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,o,i){return i in t?a(n,o):i in e?a(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t)=>o(Gt(e),Gt(t),!0)};return $e.forEach(Object.keys(Object.assign({},e,t)),(function(a){const i=l[a]||o,r=i(e[a],t[a],a);$e.isUndefined(r)&&i!==s||(n[a]=r)})),n}var Qt=e=>{const t=Kt({},e);let n,{data:a,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:l}=t;if(t.headers=s=Ct.from(s),t.url=et(qt(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$e.isFormData(a))if(ft.hasStandardBrowserEnv||ft.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ft.hasStandardBrowserEnv&&(o&&$e.isFunction(o)&&(o=o(t)),o||!1!==o&&Wt(t.url))){const e=i&&r&&Vt.read(r);e&&s.set(i,e)}return t};const Zt="undefined"!==typeof XMLHttpRequest;var Xt=Zt&&function(e){return new Promise((function(t,n){const a=Qt(e);let o=a.data;const i=Ct.from(a.headers).normalize();let r,{responseType:s}=a;function l(){a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let d=new XMLHttpRequest;function c(){if(!d)return;const a=Ct.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),o=s&&"text"!==s&&"json"!==s?d.response:d.responseText,i={data:o,status:d.status,statusText:d.statusText,headers:a,config:e,request:d};Pt((function(e){t(e),l()}),(function(e){n(e),l()}),i),d=null}d.open(a.method.toUpperCase(),a.url,!0),d.timeout=a.timeout,"onloadend"in d?d.onloadend=c:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(c)},d.onabort=function(){d&&(n(new He("Request aborted",He.ECONNABORTED,a,d)),d=null)},d.onerror=function(){n(new He("Network Error",He.ERR_NETWORK,a,d)),d=null},d.ontimeout=function(){let e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const t=a.transitional||at;a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),n(new He(e,t.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,a,d)),d=null},void 0===o&&i.setContentType(null),"setRequestHeader"in d&&$e.forEach(i.toJSON(),(function(e,t){d.setRequestHeader(t,e)})),$e.isUndefined(a.withCredentials)||(d.withCredentials=!!a.withCredentials),s&&"json"!==s&&(d.responseType=a.responseType),"function"===typeof a.onDownloadProgress&&d.addEventListener("progress",Rt(a.onDownloadProgress,!0)),"function"===typeof a.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",Rt(a.onUploadProgress)),(a.cancelToken||a.signal)&&(r=t=>{d&&(n(!t||t.type?new $t(null,e,d):t),d.abort(),d=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const u=jt(a.url);u&&-1===ft.protocols.indexOf(u)?n(new He("Unsupported protocol "+u+":",He.ERR_BAD_REQUEST,e)):d.send(o||null)}))};const en=(e,t)=>{let n,a=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;a.abort(t instanceof He?t:new $t(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new He(`timeout ${t} of ms exceeded`,He.ETIMEDOUT))}),t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=a;return s.unsubscribe=r,[s,()=>{i&&clearTimeout(i),i=null}]};var tn=en;const nn=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,o=0;while(o<n)a=o+t,yield e.slice(o,a),o=a},an=async function*(e,t,n){for await(const a of e)yield*nn(ArrayBuffer.isView(a)?a:await n(String(a)),t)},on=(e,t,n,a,o)=>{const i=an(e,t,o);let r=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await i.next();if(t)return e.close(),void a();let s=o.byteLength;n&&n(r+=s),e.enqueue(new Uint8Array(o))},cancel(e){return a(e),i.return()}},{highWaterMark:2})},rn=(e,t)=>{const n=null!=e;return a=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:a})))},sn="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,ln=sn&&"function"===typeof ReadableStream,dn=sn&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cn=ln&&(()=>{let e=!1;const t=new Request(ft.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),un=65536,fn=ln&&!!(()=>{try{return $e.isReadableStream(new Response("").body)}catch(e){}})(),pn={stream:fn&&(e=>e.body)};sn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!pn[t]&&(pn[t]=$e.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new He(`Response type '${t}' is not supported`,He.ERR_NOT_SUPPORT,n)})}))})(new Response);const mn=async e=>null==e?0:$e.isBlob(e)?e.size:$e.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:$e.isArrayBufferView(e)?e.byteLength:($e.isURLSearchParams(e)&&(e+=""),$e.isString(e)?(await dn(e)).byteLength:void 0),hn=async(e,t)=>{const n=$e.toFiniteNumber(e.getContentLength());return null==n?mn(t):n};var vn=sn&&(async e=>{let{url:t,method:n,data:a,signal:o,cancelToken:i,timeout:r,onDownloadProgress:s,onUploadProgress:l,responseType:d,headers:c,withCredentials:u="same-origin",fetchOptions:f}=Qt(e);d=d?(d+"").toLowerCase():"text";let p,m,[h,v]=o||i||r?tn([o,i],r):[];const g=()=>{!p&&setTimeout((()=>{h&&h.unsubscribe()})),p=!0};let y;try{if(l&&cn&&"get"!==n&&"head"!==n&&0!==(y=await hn(c,a))){let e,n=new Request(t,{method:"POST",body:a,duplex:"half"});$e.isFormData(a)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body&&(a=on(n.body,un,rn(y,Rt(l)),null,dn))}$e.isString(u)||(u=u?"cors":"omit"),m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:a,duplex:"half",withCredentials:u});let o=await fetch(m);const i=fn&&("stream"===d||"response"===d);if(fn&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=$e.toFiniteNumber(o.headers.get("content-length"));o=new Response(on(o.body,un,s&&rn(t,Rt(s,!0)),i&&g,dn),e)}d=d||"text";let r=await pn[$e.findKey(pn,d)||"text"](o,e);return!i&&g(),v&&v(),await new Promise(((t,n)=>{Pt(t,n,{data:r,headers:Ct.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(_){if(g(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new He("Network Error",He.ERR_NETWORK,e,m),{cause:_.cause||_});throw He.from(_,_&&_.code,e,m)}});const gn={http:Be,xhr:Xt,fetch:vn};$e.forEach(gn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const yn=e=>`- ${e}`,_n=e=>$e.isFunction(e)||null===e||!1===e;var bn={getAdapter:e=>{e=$e.isArray(e)?e:[e];const{length:t}=e;let n,a;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],a=n,!_n(n)&&(a=gn[(t=String(n)).toLowerCase()],void 0===a))throw new He(`Unknown adapter '${t}'`);if(a)break;o[t||"#"+i]=a}if(!a){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(yn).join("\n"):" "+yn(e[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return a},adapters:gn};function wn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $t(null,e)}function xn(e){wn(e),e.headers=Ct.from(e.headers),e.data=Ot.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=bn.getAdapter(e.adapter||bt.adapter);return t(e).then((function(t){return wn(e),t.data=Ot.call(e,e.transformResponse,t),t.headers=Ct.from(t.headers),t}),(function(t){return It(t)||(wn(e),t&&t.response&&(t.response.data=Ot.call(e,e.transformResponse,t.response),t.response.headers=Ct.from(t.response.headers))),Promise.reject(t)}))}const Mn="1.7.2",kn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{kn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ln={};function Sn(e,t,n){if("object"!==typeof e)throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;while(o-- >0){const i=a[o],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new He("option "+i+" must be "+n,He.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new He("Unknown option "+i,He.ERR_BAD_OPTION)}}kn.transitional=function(e,t,n){function a(e,t){return"[Axios v"+Mn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new He(a(o," has been removed"+(t?" in "+t:"")),He.ERR_DEPRECATED);return t&&!Ln[o]&&(Ln[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Tn={assertOptions:Sn,validators:kn};const Dn=Tn.validators;class Nn{constructor(e){this.defaults=e,this.interceptors={request:new nt,response:new nt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(a){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Kt(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:o}=t;void 0!==n&&Tn.assertOptions(n,{silentJSONParsing:Dn.transitional(Dn.boolean),forcedJSONParsing:Dn.transitional(Dn.boolean),clarifyTimeoutError:Dn.transitional(Dn.boolean)},!1),null!=a&&($e.isFunction(a)?t.paramsSerializer={serialize:a}:Tn.assertOptions(a,{encode:Dn.function,serialize:Dn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&$e.merge(o.common,o[t.method]);o&&$e.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ct.concat(i,o);const r=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));const l=[];let d;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,u=0;if(!s){const e=[xn.bind(this),void 0];e.unshift.apply(e,r),e.push.apply(e,l),c=e.length,d=Promise.resolve(t);while(u<c)d=d.then(e[u++],e[u++]);return d}c=r.length;let f=t;u=0;while(u<c){const e=r[u++],t=r[u++];try{f=e(f)}catch(p){t.call(this,p);break}}try{d=xn.call(this,f)}catch(p){return Promise.reject(p)}u=0,c=l.length;while(u<c)d=d.then(l[u++],l[u++]);return d}getUri(e){e=Kt(this.defaults,e);const t=qt(e.baseURL,e.url);return et(t,e.params,e.paramsSerializer)}}$e.forEach(["delete","get","head","options"],(function(e){Nn.prototype[e]=function(t,n){return this.request(Kt(n||{},{method:e,url:t,data:(n||{}).data}))}})),$e.forEach(["post","put","patch"],(function(e){function t(t){return function(n,a,o){return this.request(Kt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Nn.prototype[e]=t(),Nn.prototype[e+"Form"]=t(!0)}));var An=Nn;class Yn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{n.subscribe(e),t=e})).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e((function(e,a,o){n.reason||(n.reason=new $t(e,a,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Yn((function(t){e=t}));return{token:t,cancel:e}}}var Cn=Yn;function On(e){return function(t){return e.apply(null,t)}}function In(e){return $e.isObject(e)&&!0===e.isAxiosError}const En={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(En).forEach((([e,t])=>{En[t]=e}));var $n=En;function Pn(e){const t=new An(e),n=N(An.prototype.request,t);return $e.extend(n,An.prototype,t,{allOwnKeys:!0}),$e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Pn(Kt(e,t))},n}const jn=Pn(bt);jn.Axios=An,jn.CanceledError=$t,jn.CancelToken=Cn,jn.isCancel=It,jn.VERSION=Mn,jn.toFormData=qe,jn.AxiosError=He,jn.Cancel=jn.CanceledError,jn.all=function(e){return Promise.all(e)},jn.spread=On,jn.isAxiosError=In,jn.mergeConfig=Kt,jn.AxiosHeaders=Ct,jn.formToJSON=e=>gt($e.isHTMLForm(e)?new FormData(e):e),jn.getAdapter=bn.getAdapter,jn.HttpStatusCode=$n,jn.default=jn;var Fn=jn,Hn=a(5730);Fn.defaults.withCredentials=!1;var Bn=Fn.create({baseURL:"/apigw",timeout:window.httpRequestTimeout||12e4});Bn.interceptors.request.use((function(e){if(window.VUE_APP_BASE_API&&(e.baseURL=window.VUE_APP_BASE_API),"put"!==e.method&&"delete"!==e.method||window.forbidPut&&(e.headers["X-HTTP-Method-Override"]=e.method.toUpperCase(),e.method="post"),Hn.A.getters.token&&e.url&&0!==e.url.indexOf("/login")){e.headers["httpPort"]=window.$tempPort||location.port,sessionStorage.getItem("productCode")?e.headers["productCode"]=sessionStorage.getItem("productCode"):window.productCode&&-1===location.href.indexOf("productCode")&&(e.headers["productCode"]=window.productCode);var t="";t=location.href.indexOf("windwx.html")>0?location.href.split("windwx.html")[0]:location.href.split("#")[0],"/"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),e.headers["apigw"]=t+"/apigw"}else window.productCode&&-1===location.href.indexOf("productCode")&&(e.headers["productCode"]=window.productCode);e.headers["ecweb-csrf-token"]=decodeURIComponent(sessionStorage.getItem("ecweb-csrf-token"))||"";var n=(0,r.Z0)();return"en"===n?n="en-US":"zhCN"===n&&(n="zh-CN"),e.headers["accept-language"]=n,e}),(function(e){return console.log(e),Promise.reject(e)})),Bn.interceptors.response.use((function(e){var t=JSON.stringify(e.data);return-1!==t.indexOf("9999-12-31 00:00:00")&&(t=t.replaceAll('"9999-12-31 00:00:00"',"null"),e.data=JSON.parse(t)),e.data}),(function(e){var t=window.$wapp||window.$mapp;if(t&&t.customErrorHander)t.customErrorHander(e);else{if(!e.response||401!==e.response.status||-1!==location.href.toLowerCase().indexOf("login")||-1!==e.config.url.indexOf("http:")||-1!==e.config.url.indexOf("https:")){if(e.response&&e.response.data&&e.response.data.code)return e.response.data;if(e.response&&e.response.data){var n={code:"error",body:{}};return e.response.data.message?n.message=e.response.data.message:e.response.data.error?404===e.response.data.status?n.message=window.$tx("request.status404"):n.message=e.response.data.error:e.response.data.msg?n.message=e.response.data.msg:n.message=e.response.data,"Network Error"===n.message&&(n.message="当前设备网络异常,请联系管理员或更换设备重试。"),n.message+="<br>"+e.config.url,"wapp"===window.vType?window.$alert(n.message,window.$tx("common.operationTip"),{type:"error",dangerouslyUseHTMLString:!0}):window.$alert({message:n.message,type:"error",allowHtml:!0}),Promise.reject(n.message)}var a=e;return"string"!==typeof a&&e.message&&(a=e.message),e.config.onUploadProgress?{code:"failure",message:a,body:{}}:(a+="<br>"+e.config.url,"wapp"===window.vType?window.$alert(a,window.$tx("common.operationTip"),{type:"error",dangerouslyUseHTMLString:!0}):window.$alert({message:a,type:"error",allowHtml:!0}),Promise.reject(a))}Hn.A.dispatch("user/resetToken").then((function(){if("wapp"!==window.vType)return window.$alert({message:window.$tx("request.status401"),type:"error",callback:function(){if("ecinc"===window.mappType)window.$wv.closeWindow();else if("wx"===window.mappType||window.wx)window.wx.closeWindow();else if("dd"===window.mappType||window.dd)window.dd.biz.navigation.close();else if("web"===window.mappType){var e="";-1!==location.href.indexOf("#")&&-1===location.href.indexOf("login")&&(e+="?redirect="+location.href.split("#")[1]),window.flutter_inappwebview?window.location="#/loginFail":window.location="#/login"+e,window.location.reload()}else window.close()}}),Promise.reject(e);window.$alert(window.$tx("request.status401relogin"),window.$tx("common.operationTip"),{type:"error",callback:function(){-1!==location.href.indexOf("#/wflow?")||-1!==location.href.indexOf("#/viewcontent?")||-1!==location.href.indexOf("#/viewpdffile?")||-1!==location.href.indexOf("#/designer?")?(window.opener&&window.opener.location.reload(),window.close()):location.reload()}})}))}}));var Un=Bn,Rn=a(5373),Wn=a.n(Rn);function Vn(e){return Vn="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},Vn(e)}function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return(t=Gn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){var t=Kn(e,"string");return"symbol"==Vn(t)?t:t+""}function Kn(e,t){if("object"!=Vn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Vn(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Qn=function(e){var t=new e({methods:{addNew:function(e){return Un({url:e,params:{},method:"post"})},getById:function(e,t){return Un({url:e,method:"get",params:{id:t}})},insert:function(e,t){return Un({url:e,method:"post",data:t})},update:function(e,t){return this.http({url:e,method:"put",data:t})},http:function(e){if(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.httpRequest){var t="";t=location.href.indexOf("windwx.html")>0?location.href.split("windwx.html")[0]:location.href.split("#")[0],"/"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1));var n={};n.apigw=t+"/apigw",n.httpPort=location.port,n.Cookie=document.cookie,window.productCode&&(n["productCode"]=window.productCode);var a=e.url,o=(t.indexOf("/mindex.html")>-1?t.split("/mindex.html")[0]:t)+"/apigw"+("/"!==a.charAt(0)?"/"+a:a),i={url:o,method:e.method||"get",header:n};return e.data&&(i.bodydata=e.data),e.params&&(i.params=e.params),window.webkit.messageHandlers.httpRequest.postMessage([i,"httpPostCallback"]),new Promise((function(e){window.httpPostCallback=function(t){e("string"===typeof t?JSON.parse(t):t)}}))}return Un(e)},getResRoles:function(e,t,n,a,o,i){var r="base/resRolePermission/getResPermissionRoles";return i&&1!==i&&(r="base/resRolePermission/getResPermissionOwners"),Un({url:r,method:"get",params:{resId:e,resType:t,pcode:n,orgCode:a,sysCode:o,ownerType:i}})},upload:function(e,t,n,a){var o=new FormData;if(null!=n)for(var i in n)o.append(i,n[i]);return o.append("file",t),void 0!==a&&null!==a||(a={}),a.timeout=6e5,Un(Jn(Jn({url:e},a),{},{method:"put",data:o}))},listdata:function(e,t){var n=M(t);return delete n.list,delete n.navigatepageNums,delete n.busiformFields,Un({url:e,method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:Wn().stringify(n)})},querydata:function(e,t,n,a){return Un({url:e,method:"post",params:{orderBy:n,count:a},data:t})},deleteByIds:function(e,t,n){return Un({url:e,method:"delete",params:{ids:t.join(),confirmContinue:n}})},decryptData:function(e){return"string"===typeof e&&(e=JSON.parse(e)),Un({url:"/common/dataDecrypt",method:"post",contentType:"application/json",data:e})}}});"undefined"!==typeof window&&(window.$app=t),e.prototype.$app=t},Zn=Qn,Xn=a(2215),ea=a.n(Xn),ta="-"+location.port;sessionStorage.getItem("productCode")?ta="-"+sessionStorage.getItem("productCode"):-1!==location.href.indexOf("productCode=")&&(ta="-"+location.href.split("productCode=")[1].split("&")[0]);var na=(window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+ta,aa="ECWEB-ROLE-CODE-LIST"+ta,oa="ECWEB-PERMISSION-LIST"+ta,ia="PERSON_ORGAN_LIST"+ta,ra=function(e){var t=new e({methods:{getTokenKey:function(){return na},setProductCode:function(e,t){e[t]&&(sessionStorage.setItem("productCode",e[t]),ta="-"+e[t],na=(window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+ta,aa="ECWEB-ROLE-CODE-LIST"+ta,oa="ECWEB-PERMISSION-LIST"+ta,ia="PERSON_ORGAN_LIST"+ta)},getProductCode:function(){var e=sessionStorage.getItem("productCode");return"undefined"===e?null:e},removeProductCode:function(){return sessionStorage.removeItem("productCode")},getTicket:function(){var e=(window.ecwebTicket||"ecweb-ticket")+ta,t=ea().get(e);return"undefined"===t?null:t},setTicket:function(e){return ea().set((window.ecwebTicket||"ecweb-ticket")+ta,e)},removeTicket:function(){return ea().remove((window.ecwebTicket||"ecweb-ticket")+ta)},getToken:function(){var e=sessionStorage.getItem(na);return e||(e=ea().get(na),e||"-"!==ta||(e=ea().get(window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"))),"undefined"===e?null:e},setToken:function(e){return sessionStorage.setItem(na,e)},removeToken:function(){return ea().remove(na),ea().remove(na.replace("-"+ta,"")),sessionStorage.removeItem(na.replace("-"+ta,"")),sessionStorage.removeItem(na)},getCsrfToken:function(){return sessionStorage.getItem("ecweb-csrf-token")||""},setCsrfToken:function(e){return sessionStorage.setItem("ecweb-csrf-token",encodeURIComponent(e))},getRoles:function(){return sessionStorage.getItem(aa)},setRoles:function(e){return sessionStorage.setItem(aa,e)},removeRoles:function(){return sessionStorage.removeItem(aa)},getPermissions:function(){return sessionStorage.getItem(oa)},setPermissions:function(e){return sessionStorage.setItem(oa,e)},removePermissions:function(){return sessionStorage.removeItem(oa)},getOrganList:function(){return sessionStorage.getItem(ia)},setOrganList:function(e){return sessionStorage.setItem(ia,e)},removeOrganList:function(){return sessionStorage.removeItem(ia)}}});"undefined"!==typeof window&&(window.$auth=t),e.prototype.$auth=t},sa=ra,la=function(e){var t=new e({methods:{emit:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];this.$emit.apply(this,[e].concat(n))},on:function(e,t){this.$on(e,t)},off:function(e,t){this.$off(e,t)}}});"undefined"!==typeof window&&(window.$bus=t),e.prototype.$bus=t},da=la,ca=a(127),ua=a.n(ca),fa=function(e){var t=new e({methods:{formLogin:function(e){return Un({url:"formLogin",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:Wn().stringify(e)})},logout:function(){return Un({url:"logout",method:"get"})},getLoginUser:function(e){return new Promise((function(t){-1!==e.indexOf("&enjwt")?Un({method:"GET",url:"login/getRsaPublicKey"}).then((function(n){e=e.substring(0,e.length-6);var a=new window.JSEncrypt;a.setPublicKey(n.body.rsaPublicKey),e=a.decryptLong(e),t(ua()(e))})):t(ua()(e))}))},findNavMenus:function(e){var t="homepage/allm";return 1===e&&(t+="&nowf=1"),Un({url:t,method:"get"})},findUserRolePermissions:function(){return Un({url:"base/resRolePermission/getUserRolePermissions",method:"get"})},findH5apps:function(){var e=[{compare:"=",field:"status",value:1},{compare:"notLike",field:"h5Url",value:"app:"}],t="appType,orderNo,appCode";return Un({url:"mpp/h5app/querydata",method:"post",params:{orderBy:t},data:e})},getUIStyle:function(){return Un({url:"base/styleConfig/getUiStyleConfig",method:"get"})},getDefaultUIStyle:function(e){return Un({url:"base/styleConfig/getNiMingUiStyleConfig",method:"get",params:{orgCode:e}})}}});"undefined"!==typeof window&&(window.$user=t),e.prototype.$user=t},pa=fa;function ma(e){return ma="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},ma(e)}function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(n),!0).forEach((function(t){ga(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ga(e,t,n){return(t=ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e){var t=_a(e,"string");return"symbol"==ma(t)?t:t+""}function _a(e,t){if("object"!=ma(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=ma(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function ba(e){return ka(e)||Ma(e)||xa(e)||wa()}function wa(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xa(e,t){if(e){if("string"==typeof e)return La(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}function Ma(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ka(e){if(Array.isArray(e))return La(e)}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Sa=function(e){var t=new e({methods:{getWfParams:function(e){var t=e.$route.query;if(e.$route.query.itemurl){var n=e.$route.query.itemurl.split("?")[1].split("&");n.forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]}))}return t},loadWfInstance:function(e,t){var n=this;return new Promise((function(a){var o=t.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance";void 0!==t.wfName&&""!==t.wfName&&void 0!==t.busiCode&&""!==t.busiCode?(o+="/startWfInstance",t.wfName=decodeURI(t.wfName),t.startNodeName=decodeURI(t.startNodeName||"")):void 0!==t.wfInstanceId&&""!==t.wfInstanceId?o+="/activeWfInstanceById":void 0!==t.busiDataId&&""!==t.busiDataId?o+="/activeWfInstanceByBusiDataId":a({code:"error",message:"请求参数格式不正确,不能启动流程。"}),t.autoTest||(t.copyWfNodeUser=1,t.asyncLoading=1),"BatchSubmit"!==t.openType&&(t.submitMode=t.submitMode||window.submitMode),e.wfEngineUrl=o.substring(0,o.lastIndexOf("/")),e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:t,url:o}).then((function(o){if("success"===o.code){console.log("wfEngineService load success"),e.wfInstance=o.body.wfInstance,e.commandBar=e.wfInstance.passenger.commandBar,e.officeType=e.wfInstance.passenger.officeType||e.officeType,e.showAttachments=e.wfInstance.passenger.h5formShowAttachments||e.showAttachments,e.$set(e,"showAttachments",e.wfInstance.passenger.h5formShowAttachments||e.showAttachments),e.$forceUpdate(),e.vo=e.wfInstance.passenger.busiData||{},e.vo.dynamicFields?e.vo.dynamicFields=JSON.parse(e.vo.dynamicFields):e.vo.dynamicFields={},e.ideaContentStyle=e.wfInstance.passenger.ideaContentStyle||"default","datatable"===e.ideaContentStyle&&e.wfInstance.status>0?e.showHistoryIdeaList=!0:e.showHistoryIdeaList=!1;var i=e.wfInstance.passenger.wfIdeaList;if(i.forEach((function(e){var t=e.ideaContent;if(t&&-1!==t.indexOf('</p><p align="center">')&&-1===t.indexOf("<img")){var n=t.split('<div class="ideaDiv"');n.forEach((function(t){-1!==t.indexOf("><p>")&&-1!==t.indexOf('</p><p align="center">')&&(t=t.substring(t.indexOf("><p>")+3,t.indexOf('</p><p align="center">')),e.ideaContent=e.ideaContent.replace(t,t.replace(/ /g," ")))})),e.ideaContent=e.ideaContent.replace(/ id=/g," id="),e.ideaContent=e.ideaContent.replace(/ class=/g," class=")}else t&&-1!==t.indexOf("/download?")&&(e.ideaContent=t.replaceAll(/download\?/g,"download?csrfToken="+window.$auth.getCsrfToken()+"&"))})),e.wfIdeaList=i,e.curTN=o.body.curTN,e.curTN.staffOrgName&&(e.curTN.staffOrgShortName=e.curTN.staffOrgName.substring(e.curTN.staffOrgName.indexOf("-")+1)),e.wfJsonData=e.wfInstance.passenger.wfJsonData,"string"===typeof e.wfJsonData&&(e.wfJsonData=JSON.parse(e.wfJsonData)),e.wfJsonData&&e.wfJsonData.ideaLables&&(e.wfInstance.udmNodes||(e.wfInstance.udmNodes=[])),e.wfJsonData&&e.wfJsonData.routes){e.wfJsonData&&1===e.wfInstance.passenger.isUdmNodes&&(e.wfJsonData.routes=[]);var r={},s=[];e.wfJsonData.routes.forEach((function(e){e.taskNodes&&e.taskNodes.forEach((function(e){e.users&&e.users.length>0&&("copyWfNodeUser"!==e.users[0].type?r[e.id]=e:s.push(e))}))})),s.forEach((function(e){var t=e.users[0].copyWfNodeId;r[t]?e.users=JSON.parse(JSON.stringify(r[t].users)):e.users=[]}))}if(e.curTN.passenger&&e.curTN.passenger.quickProcess&&e.wfJsonData&&e.wfJsonData.routes){var l=e.wfJsonData.routes.filter((function(e){return"0"===e.type||"4"===e.type||"7"===e.type||"10"===e.type||"14"===e.type}));if(l.length>0&&l[0].taskNodes.length>0)if(l[0].taskNodes.length>1)delete e.curTN.passenger.quickProcess;else{var d=l[0].taskNodes[0].users;d.length>1&&"1"!==l[0].taskNodes[0].autoCheckedAll&&delete e.curTN.passenger.quickProcess}else 0===l.length&&delete e.curTN.passenger.quickProcess}else e.curTN.passenger&&delete e.curTN.passenger.quickProcess;if(e.wfInstance.udmNodes&&""!==e.wfInstance.udmNodes){for(var c=JSON.parse(e.wfInstance.udmNodes),u=0;u<c.length;u++)"chartData"===c[u].name&&(e.wfInstance.passenger.chartData=c[u],c.splice(u--,1));e.wfInstance.udmNodes=c}if(e.commonIdeaList=e.wfInstance.passenger.commonIdeaList,void 0===e.commonIdeaList&&(e.commonIdeaList=[]),e.commonIdea=e.commonIdeaList[0],e.submitTemplateList=e.wfInstance.passenger.submitTemplateList,e.wfJsonData&&e.wfJsonData.routes){void 0!==e.submitTemplateList&&void 0!==e.wfJsonData&&"{}"!==JSON.stringify(e.submitTemplateList)||(e.submitTemplateList=[]);for(var f=0;f<e.submitTemplateList.length;f++){var p=e.submitTemplateList[f];p.valid=!1,e.wfJsonData.routes.forEach((function(e,t){e.name===p.submitRoute&&(p.valid=!0)})),p.valid||e.submitTemplateList.splice(f--,1)}e.submitTemplateList.length>0&&(e.submitTemplate=e.submitTemplateList[0])}if(e.nbyjEnabled=e.wfInstance.passenger.nbyjEnabled,e.wfInstance.passenger.nbyjBtnName&&(e.nbyjBtnName=e.wfInstance.passenger.nbyjBtnName),delete e.wfInstance.passenger.busiData,delete e.wfInstance.passenger.commandBar,delete e.wfInstance.passenger.wfIdeaList,delete e.wfInstance.passenger.wfJsonData,delete e.wfInstance.passenger.commonIdeaList,delete e.wfInstance.passenger.submitTemplateList,delete e.wfInstance.passenger.nbyjEnabled,delete e.wfInstance.passenger.nbyjBtnName,e.submitHandle={route:{index:0},askSMS:0,keepConcern:0,openUrl:"/wflow?wfEngineUrl="+(t.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance"),curUserIdea:e.curTN.tnIdea},e.wfJsonData&&e.wfJsonData.routes){var m=ea().get("route-index-"+e.wfInstance.id);void 0!==m&&null!==m&&(m=parseInt(m),e.wfJsonData.routes.length>m&&(e.submitHandle.route.index=m))}if(e.wfAttachUrl="workflow/wfBusiAttach",e.modifyWfNodelogUrl="workflow/wfInstanceNodelog/modifyWfNodelog",o.body.ECCLOUD_FEIGN_CLIENT&&(t.wfEngineUrl?(e.wfAttachUrl=t.wfEngineUrl,e.modifyWfNodelogUrl=t.wfEngineUrl+"/modifyWfNodelog",e.wfEngineUrl=t.wfEngineUrl):e.wfEngineUrl&&(e.wfAttachUrl=e.wfEngineUrl,e.modifyWfNodelogUrl=e.wfEngineUrl+"/modifyWfNodelog")),e.attachments=o.body.attachList||[],n.setFlBodyFile(e),n.setCommandBar(e,e.commandBar),"wapp"===window.vType&&-1!==e.$route.fullPath.indexOf("itemurl=")){var h=e.$route.fullPath;e.$store.state.tagsView.visitedViews.forEach((function(t){t.fullPath===h&&(t.title=e.wfInstance.title)}))}if(void 0!==e.vo.flContent&&null!=e.vo.flContent&&-1!==e.vo.flContent.indexOf("/workflow/wfBusiAttach/downloadById")&&(e.vo.flContent=e.vo.flContent.replace(/src=\"\/workflow\/wfBusiAttach\/downloadById/g,'src="/apigw/workflow/wfBusiAttach/downloadById')),-1!==location.href.indexOf("viewContent=1")&&(e.navNames=[],e.navNames[0]=e.wfInstance.wfName,"string"===typeof e.vo.type?e.navNames[1]=e.vo.type:"string"===typeof e.vo.flDocumentType&&(e.navNames[1]=e.vo.flDocumentType)),e.wfInstance.passenger.locker){var v=e.wfInstance.passenger.locker;v.lockerAccount!==e.curTN.userAccount&&v.passenger.minutes<2?e.$notify({title:"提示",message:v.lockerName+"正在编辑此文件。",offset:60,duration:1e4,type:"warning"}):e.$set(e.curTN,"tnCanEdit",1),window.wfLockerIntervalId&&window.clearInterval(window.wfLockerIntervalId),window.wfLockerIntervalId=setInterval((function(){e.wfInstance&&e.wfInstance.id?e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},url:"workflow/wfInstance/refreshWfInstanceLock",params:{wfInstanceId:e.wfInstance.id,nodeName:e.curTN.tnNodeName}}).then((function(t){v=t.body.locker;var n=0;v.lockerAccount!==e.curTN.userAccount?t.body.minutes>=2&&(n=1):n=1,0===e.curTN.tnCanEdit&&1===n&&(e.$set(e.curTN,"tnCanEdit",1),e.$notify({title:"提示",message:"您已获取此文件的编辑。",offset:60,duration:1e4,type:"success"}))})):window.wfLockerIntervalId&&window.clearInterval(window.wfLockerIntervalId)}),6e4)}}a(o)}))}))},setUdmCustomRoutes:function(e){var t=null,n=-1,a=[];if(e.wfInstance.udmNodes.forEach((function(o,i){if(o.name===e.curTN.tnNodeName&&(t=o,n=i,e.wfInstance.passenger.udmNodeUsers)){var r=null;if(e.wfInstance.passenger.chartData){t.canEndWflow=0;var s=e.wfInstance.passenger.chartData.paths;s.forEach((function(n){if(n.preNodeId===t.uuid){var o=e.wfInstance.udmNodes.filter((function(e){if(e.uuid===n.targetNodeId)return e.users||(e.users=[]),!0}));r={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:n.name,fullName:n.name,taskNodes:[],type:n.pathType+""||"0"},o.length>0&&(r.taskNodes.push(JSON.parse(JSON.stringify(o[0]))),r.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers[o[0].name]||[]),a.push(r)}}))}if(null===r)if(e.wfInstance.udmNodes.length>i+1){t.canEndWflow=0;var l=e.wfInstance.udmNodes[i+1];l.users||(l.users=[]),r={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:e.$tx("ecwapp.Wflowform.SubmitHandle.sendRoute",{nextNode:l.name},"送".concat(l.name)),fullName:e.$tx("ecwapp.Wflowform.SubmitHandle.sendRoute",{nextNode:l.name},"送".concat(l.name)),taskNodes:[JSON.parse(JSON.stringify(l))],type:"0"},r.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers[l.name]||[],a.push(r)}else t.canEndWflow=1}0===i?o.icon="el-icon-video-play":i+1===e.wfInstance.udmNodes.length?o.icon="el-icon-finished":o.icon="el-icon-edit-outline"})),null==t)return e.udmNode=null,e.wfInstance.udmNodes=null,a;if(0!==t.canEndWflow){var o={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:e.$tx("ecwapp.Wflowform.SubmitHandle.endProcessing","结束处理"),fullName:e.$tx("ecwapp.Wflowform.SubmitHandle.endProcessing","结束处理"),taskNodes:[],type:"4"};a.push(o)}if(0!==t.returnHistoryTN&&n>0&&e.wfInstance.passenger.udmNodeUsers){var i={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:e.$tx("ecwapp.Wflowform.SubmitHandle.sendBack","退回"),taskNodes:[],type:"3"};2==t.returnHistoryTN?(i.name="退回发起人",i.taskNodes.push(JSON.parse(JSON.stringify(e.wfInstance.udmNodes[0]))),i.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser):(i.name="退回上一节点",i.taskNodes.push(JSON.parse(JSON.stringify(e.wfInstance.udmNodes[n-1]))),i.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser),i.fullName=i.name,a.push(i)}return a},setCommandBar:function(e,t){t.forEach((function(t){if(2===t.btnAlign&&(t.btnAlign=1),"btnOpenWordClick"===t.btnCode||"btnModifyFlTypeClick"===t.btnCode?t.btnShow=e.canEditBodyfile:t.btnShow=!0,t.i18nCode||(t.btnJavascript&&-1!==t.btnJavascript.indexOf("(")?-1!==t.btnJavascript.indexOf("btnDeleteClick")?t.i18nCode="writeoff":-1===t.btnJavascript.indexOf("btnOpenWordClick")&&-1===t.btnJavascript.indexOf("btnModifyFlowLog")||-1===t.btnJavascript.indexOf("('")||-1===t.btnJavascript.indexOf("')")?(t.i18nCode=t.btnJavascript.split("(")[0].replace("btn","").replace("Click",""),t.i18nCode=t.i18nCode.substring(0,1).toLowerCase()+t.i18nCode.substring(1)):t.i18nCode=t.btnJavascript.substring(t.btnJavascript.indexOf("('")+2,t.btnJavascript.indexOf("')")):t.btnIcon&&(t.i18nCode=t.btnIcon.replace(".svg",""))),t.btnParams=null,null!==t.btnJavascript&&"string"===typeof t.btnJavascript){"dialog"===window.submitMode&&-1!==t.btnJavascript.indexOf("btnSubmitClick()")&&(t.btnName="办理",t.btnJavascriptBak=t.btnJavascript,t.btnJavascript="btnStartDoingClick()");var n=t.btnJavascript;if(-1!==n.indexOf("(")){var a=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==a&&(a=a.replace(/'/g,"").split(","),t.btnParams=a),n=n.split("(")[0]}void 0!==e[n]?t.btnClick=e[n]:console.log("按钮方法不存在:"+t.btnName+" "+t.btnJavascript)}}))},setFlBodyFile:function(e){e.bodyfile=null,e.redTitleFile=null,e.noTracksFile=null;var t=!1;if(e.vo.flBodyFilename||e.vo.flbodyfilename||e.vo.signedFileName){for(var n=e.vo.flBodyFilename||e.vo.flbodyfilename||e.vo.signedFileName,a=n.substring(0,n.lastIndexOf(".")),o=0;o<e.attachments.length;o++){var i=e.attachments[o].fileName.substring(0,e.attachments[o].fileName.lastIndexOf("."));if("BODY"===e.attachments[o].fileType.toUpperCase()){if(i===a||e.attachments[o].originalName.split(".")[0]===a){var r=e.attachments[o].originalName.split(".")[1].toLowerCase();e.bodyfile&&"pdf"!==r&&"ofd"!==r||(e.bodyfile=e.attachments[o])}-1!==e.attachments[o].originalName.indexOf(".doc")&&e.attachments[o].originalName.split(".")[0]===e.wfInstance.bodyDocId&&(t=!0)}}e.bodyfile||e.attachments.forEach((function(t){var n=t.originalName.split(".")[1].toLowerCase();"BODY"!==t.fileType.toUpperCase()||"pdf"!==n&&"ofd"!==n||(e.bodyfile=t)})),e.bodyfile&&-1!==e.bodyfile.fileName.indexOf(e.wfInstance.bodyDocId)&&(e.bodyfile.bodyFileName=e.bodyfile.fileName,e.bodyfile.fileName=e.wfInstance.title+"."+e.bodyfile.originalName.split(".")[1])}else e.attachments.forEach((function(n){if("BODY"===n.fileType.toUpperCase()){var a=n.originalName.split(".")[1].toLowerCase();0!==n.fileName.indexOf("RedTitle_")||"pdf"!==a&&"ofd"!==a?0!==n.fileName.indexOf("NoTracks_")||"pdf"!==a&&"ofd"!==a?0===n.fileName.indexOf("SignedFile_")&&(e.bodyfile=n):(e.bodyfile=n,e.noTracksFile=JSON.parse(JSON.stringify(n))):(e.bodyfile=n,e.redTitleFile=JSON.parse(JSON.stringify(n))),-1!==n.originalName.indexOf(".doc")&&n.originalName.split(".")[0]===e.wfInstance.bodyDocId&&-1===n.filePath.indexOf("/noTracks/")&&(t=!0,0===e.wfInstance.haveDoc&&("NoTitle"===e.wfInstance.passenger.docEditMode?e.wfInstance.haveDoc=1:e.wfInstance.haveDoc=2))}})),e.bodyfile||e.attachments.forEach((function(t){if("BODY"===t.fileType.toUpperCase()&&t.originalName.split(".")[0]===e.wfInstance.bodyDocId){var n=t.originalName.split(".")[1].toLowerCase();"pdf"===n||"ofd"===n||-1!==t.filePath.indexOf("/noTracks/")?e.bodyfile=t:e.bodyfile||-1===t.originalName.indexOf(".doc")||(e.bodyfile=t)}}));null==e.bodyfile||0!==e.bodyfile.originalName.indexOf(e.wfInstance.bodyDocId+".")&&-1===e.bodyfile.fileName.indexOf(e.wfInstance.bodyDocId+".")?t=!0:(-1!==e.bodyfile.fileName.indexOf(e.wfInstance.bodyDocId+".")&&(e.bodyfile.bodyFileName=e.bodyfile.fileName,e.bodyfile.fileName=e.wfInstance.title+"."+e.bodyfile.fileName.split(".")[1]),e.wfInstance.status>0&&(e.bodyfile.notDelete=!0)),e.canEditBodyfile=t},getWfJsonData:function(e,t,n){var a=this;return new Promise((function(o){var i=n.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance";i+="/getWfJsonData",n.copyWfNodeUser=1,n.asyncLoading=1,n.submitMode=window.submitMode;var r=JSON.parse(JSON.stringify(t));r.udmNodes&&r.passenger.chartData&&r.udmNodes.push(r.passenger.chartData);var s={wfInstance:JSON.stringify(r),curTN:JSON.stringify(e.curTN)};e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:Wn().stringify(s),params:n,url:i}).then((function(t){if("success"===t.code){if(console.log("wfEngineService getWfJsonData success"),e.wfJsonData=t.body.wfJsonData,t.body.udmjysp&&(e.wfInstance.passenger.udmjysp=t.body.udmjysp,e.wfInstance.passenger.isUdmNodes=t.body.isUdmNodes,e.wfInstance.passenger.udmNodeUsers=t.body.udmNodeUsers),e.wfJsonData&&e.wfJsonData.routes){var n={},i=[];e.wfJsonData.routes.forEach((function(e){e.taskNodes&&e.taskNodes.forEach((function(e){e.users&&e.users.length>0&&("copyWfNodeUser"!==e.users[0].type?n[e.id]=e:i.push(e))}))})),i.forEach((function(e){var t=e.users[0].copyWfNodeId;n[t]?e.users=JSON.parse(JSON.stringify(n[t].users)):e.users=[]}))}if(e.wfJsonData&&e.wfJsonData.routes){var r=ea().get("route-index-"+e.wfInstance.id);void 0!==r&&null!==r&&(r=parseInt(r),e.wfJsonData.routes.length>r&&(e.submitHandle.route.index=r))}void 0!==e.submitTemplateList&&void 0!==e.wfJsonData&&"{}"!==JSON.stringify(e.submitTemplateList)||(e.submitTemplateList=[]);for(var s=0;s<e.submitTemplateList.length;s++){var l=e.submitTemplateList[s];l.valid=!1,e.wfJsonData&&e.wfJsonData.routes&&e.wfJsonData.routes.forEach((function(e,t){e.name===l.submitRoute&&(l.valid=!0)})),l.valid||e.submitTemplateList.splice(s--,1)}e.submitTemplate=e.submitTemplateList[0],a.$nextTick((function(){e.$bus.emit("initSubmitHandle")}))}o(t)}))}))},saveWfInstance:function(e,t,n){var a=this;return new Promise((function(o){e.submitHandle.submitType=t,delete e.submitHandle.selectedNodes,e.vobak=JSON.parse(JSON.stringify(e.vo)),e.wfJsonDatabak=JSON.parse(JSON.stringify(e.wfJsonData||{})),e.wfInstancebak=JSON.parse(JSON.stringify(e.wfInstance)),-1===e.vo.status&&(e.vo.status=0),e.wfInstance.passenger.busiData=JSON.parse(JSON.stringify(e.vo)),e.wfInstance.passenger.busiData.dynamicFields&&"string"!==typeof e.wfInstance.passenger.busiData.dynamicFields&&(e.wfInstance.passenger.busiData.dynamicFields=JSON.stringify(e.wfInstance.passenger.busiData.dynamicFields)),e.wfInstance.udmNodes&&""!==e.wfInstance.udmNodes?(e.wfInstance.title=e.vo.flSubject||e.vo.flFormName+"-"+e.wfInstance.creator+"-"+e.wfInstance.startTime,e.wfInstance.passenger.wfName=e.vo.flFormName,e.wfInstance.passenger.chartData&&e.wfInstance.udmNodes.push(e.wfInstance.passenger.chartData)):(e.wfInstance.udmNodes="",e.wfInstance.title=e.vo.flSubject||e.wfInstance.wfName+"-"+e.wfInstance.creator+"-"+e.wfInstance.startTime),e.submitHandle.nextTNProp=[],e.submitHandle.nextTNUser=[],e.submitHandle.elevel=e.vo.flELevel,e.vo.passenger&&e.vo.passenger.flELevelOptions&&e.vo.passenger.flELevelOptions.length>0&&e.vo.passenger.flELevelOptions.forEach((function(t){t.value===e.vo.flELevel&&(e.submitHandle.elvVal=t.level)})),e.submitHandle.busiCate=e.vo.flCate,e.vo.flSubSubject?e.submitHandle.busiContent=e.vo.flSubSubject:e.vo.flsubsubject?e.submitHandle.busiContent=e.vo.flsubsubject:e.submitHandle.busiContent=e.vo.flContent;var i=JSON.parse(JSON.stringify(e.submitHandle));if(-1!==t.indexOf("Save")){ea().set("route-index-"+e.wfInstance.id,i.route.index);var r=null==e.wfJsonData||null==e.wfJsonData.routes||0===e.wfJsonData.routes.length?{taskNodes:[]}:e.wfJsonData.routes[i.route.index];r.taskNodes.forEach((function(t,n){if(i.route[t.name]&&i.route[t.name].users&&i.route[t.name].users.length>0){var a="";i.route[t.name].users.forEach((function(e,t){""!==a&&(a+=";"),a+=e.id})),ea().set("route-wfuser-"+e.curTN.tnID+"-"+t.id,a)}})),delete i.submitRoute,delete i.nextTNProp,delete i.nextTNUser}else{ea().set("route-index-"+e.wfInstance.id,"",{expires:0});var s=null==e.wfJsonData||null==e.wfJsonData.routes||0===e.wfJsonData.routes.length?{taskNodes:[]}:e.wfJsonData.routes[i.route.index];"FlowAdminSubmit"===t?e.wfInstance.passenger.modifyType=e.$vnode.context.modifyType:"ReturnHistTNSubmit"===t&&(s=i.submitRoute),s.taskNodes.forEach((function(t,n){if(i.route[t.name]&&i.route[t.name].users&&i.route[t.name].users.length>0){var a="";i.route[t.name].users.forEach((function(e,t){void 0!==e.collapseNodes?e.collapseNodes.forEach((function(e){""!==a&&(a+=";"),a+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||""),e.deputy&&(e.deputy.deputyOrgName&&-1===e.deputy.deputyFullName.indexOf("-")&&(e.deputy.deputyFullName=e.deputy.deputyOrgName+"-"+e.deputy.deputyFullName),a+="->"+e.deputy.deputyFullName+"@"+e.deputy.deputyStaffId)})):(""!==a&&(a+=";"),a+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||""),e.deputy&&(e.deputy.deputyOrgName&&-1===e.deputy.deputyFullName.indexOf("-")&&(e.deputy.deputyFullName=e.deputy.deputyOrgName+"-"+e.deputy.deputyFullName),a+="->"+e.deputy.deputyFullName+"@"+e.deputy.deputyStaffId))})),delete t.users,i.nextTNProp.push(t),i.nextTNUser.push(a),ea().set("route-wfuser-"+e.curTN.tnID+"-"+t.id,"",{expires:0})}})),i.submitRoute=JSON.parse(JSON.stringify(s)),delete i.submitRoute["$$hashKey"],delete i.submitRoute.taskNodes}e.curTN.tnIdeaLabelID||(i.curUserIdea="");var l={wfInstance:JSON.stringify(e.wfInstance),curTN:JSON.stringify(e.curTN),submitHandle:JSON.stringify(i)};l.wfInstance=l.wfInstance.replace(/ src=\"http(.*?)\/workflow\/wfBusiAttach\/downloadById/g,' src="./workflow/wfBusiAttach/downloadById'),l.autoTest=n.autoTest,"BatchTestSubmit"===t?o({code:"success",submitHandle:l.submitHandle}):e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},data:Wn().stringify(l),url:(n.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance")+"/saveWfInstance"}).then((function(n){if("success"===n.code){if(n.body.wfInstance.passenger.wfJsonData){var i=n.body.wfInstance.passenger.wfJsonData;if("string"===typeof i&&(i=JSON.parse(i)),i&&i.routes){var r={};for(var s in i.routes.forEach((function(e){e.taskNodes&&e.taskNodes.forEach((function(e){e.users&&e.users.length>0&&(r[e.id]=e)}))})),r)if("copyWfNodeUser"===r[s].users[0].type){var d=r[s].users[0].copyWfNodeId;r[d]?r[s].users=JSON.parse(JSON.stringify(r[d].users)):r[s].users=[]}}e.wfJsonData=i}else e.wfJsonData=e.wfJsonDatabak;if(n.body.wfInstance.passenger.commandBar){var c=JSON.parse(JSON.stringify(n.body.wfInstance.passenger.commandBar));a.setCommandBar(e,c),e.commandBar=c}e.vo=e.vobak,e.wfInstance=e.wfInstancebak,!n.body.wfInstance||null!==e.wfInstance.id&&""!==e.wfInstance.id||(e.wfInstance.id=n.body.wfInstance.id,e.wfInstance.status=n.body.wfInstance.status,e.vo.status=n.body.wfInstance.status),n.body.curTN&&(e.curTN=n.body.curTN),"BatchSubmit"===t&&(n.submitHandle=l.submitHandle),e.attachments.forEach((function(e){delete e.forward})),delete e.wfInstance.passenger.forwardAttachs,delete e.wfInstance.passenger.commandBar,delete e.wfInstance.passenger.wfJsonData,"function"===typeof e.onWflowFormSubmited&&e.onWflowFormSubmited(e),a.$nextTick((function(){e.$bus.emit("initSubmitHandle")}))}else e.wfInstance=e.wfInstancebak,e.wfJsonData=e.wfJsonDatabak,e.vo=e.vobak,delete e.wfInstance.passenger.forwardAttachs;o(n)}))}))},checkSubmitHandle:function(e,t){if(delete e.submitHandle.needCheckOuterDeputy,e.submitHandle.selectedNodes=[],-1===t.indexOf("Submit"))return{code:"success",message:"提交处理数据准备完成。"};var n=e.wfJsonData.routes[e.submitHandle.route.index];if(!n)return{code:"warning",message:"没有可用的提交路径。"};1===n.taskNodes.length&&1===n.taskNodes[0].users.length&&void 0!==n.taskNodes[0].users[0].account&&(e.submitHandle.route[n.taskNodes[0].name]={users:n.taskNodes[0].users});for(var a,o=!1,i=0,r=function(){var t=n.taskNodes[s];if(3!==t.type&&"3"!==t.type&&(i+=1),9!==t.tmLmtType&&"9"!==t.tmLmtType&&""===t.timeLimit&&(""===t.timeLimitHour||null===t.timeLimitHour||void 0===t.timeLimitHour))return{v:{code:"warning",message:"请输入“"+t.name+"”环节处理时限。"}};if(e.submitHandle.route[t.name]&&e.submitHandle.route[t.name].users&&e.submitHandle.route[t.name].users.length>0&&(e.submitHandle.selectedNodes.push(t.name),"9"!==t.pathType&&(o=!0,3!==t.type&&"3"!==t.type))){e.submitHandle.needCheckOuterDeputy||(e.submitHandle.needCheckOuterDeputy=[]);var a=e.submitHandle.route[t.name].users,r=[];a.forEach((function(e){var t;e.collapseNodes?(t=r).push.apply(t,ba(e.collapseNodes)):r.push(e)})),(3===t.todoMode||"3"===t.todoMode)&&a.length>1&&(r=r.slice(0,1)),e.submitHandle.needCheckOuterDeputy.push({wfnodeId:t.id,wfnodeName:t.name,users:r,todoType:t.todoType})}return-1===n.mustNextTN.indexOf(t.name)||e.submitHandle.route[t.name]&&e.submitHandle.route[t.name].users&&0!==e.submitHandle.route[t.name].users.length?void 0:{v:{code:"warning",message:"请选择“"+t.name+"”处理人。"}}},s=0;s<n.taskNodes.length;s++)if(a=r(),a)return a.v;if(i>0&&!o)return{code:"warning",message:"请选择处理人。"};if(1===e.curTN.tnIdeaIsMust&&null!==e.curTN.tnIdeaLabelID&&(null===e.submitHandle.curUserIdea||""===e.submitHandle.curUserIdea.trim()))return{code:"warning",message:"请填写处理意见。"};if(1===e.curTN.tnIdeaAttachment||8===e.curTN.tnIdeaAttachment){var l=[];if(e.attachments&&(l=e.attachments.filter((function(t){return t.uploadBy.indexOf(e.curTN.tnID)}))),0===l.length&&(!e.doNextAttach||!e.doNextAttach.file)&&(!e.doNextAttachList||0===e.doNextAttachList.length))return{code:"warning",message:"请上传意见附件。"}}return{code:"success",message:"提交处理数据准备完成"}},checkOuterDeputy:function(e,t){var n=this;return new Promise((function(a){if(e.submitHandle.needCheckOuterDeputy&&e.submitHandle.needCheckOuterDeputy.length>0){var o=e.submitHandle.needCheckOuterDeputy;delete e.submitHandle.needCheckOuterDeputy,e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},data:Wn().stringify({wfInstance:JSON.stringify(e.wfInstance),nextTNUsers:JSON.stringify(o)}),url:(t.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance")+"/findOuterDeputy"}).then((function(t){if("success"===t.code)if(t.body.outerDeputys&&t.body.outerDeputys.length>0){var o=[];t.body.outerDeputys.forEach((function(e){e.users.forEach((function(t){t.wfnodeId=e.wfnodeId,t.wfnodeName=e.wfnodeName,t.deputy=t.deputys[0],o.push(t)}))})),t.body.confirmOuterDeputys?n.$bus.emit("selectOuterDeputys",o,e.submitHandle.route,a):(o.forEach((function(t){var n=e.wfJsonData.routes[e.submitHandle.route.index].taskNodes;for(var a in e.submitHandle.route)if(e.submitHandle.route[a].users)for(var o=0;o<n.length;o++)n[o].name===a&&"3"!==n[o].type&&e.submitHandle.route[a].users.forEach((function(e){e.id===t.id&&(e.deputy=t.deputys[0])}))})),a({code:"success",message:"已选择外出代理人。"}))}else a({code:"success",message:"下一环节处理人未设置外出授权"});else a(t)}))}else a({code:"success",message:"无需检查外出授权"})}))},applySubmitTemplate:function(e,t){var n=this;e.curTN.tnIdeaLabelID&&(e.submitHandle.curUserIdea=t.curUserIdea),void 0!==t.keepConcern&&(e.submitHandle.keepConcern=t.keepConcern),void 0!==t.askSMS&&(e.submitHandle.askSMS=t.askSMS);for(var a=function(a){if(e.wfJsonData.routes[a].name===t.submitRoute.name)return e.submitHandle.route.index=a,e.wfJsonData.routes[a].taskNodes.forEach((function(t){e.submitHandle.route[t.name]&&(delete e.submitHandle.route[t.name].showUsers,e.submitHandle.route[t.name].users=[])})),t.selectedNodes.forEach((function(o){e.wfJsonData.routes[a].taskNodes.forEach((function(a){if(a.name===o){e.submitHandle.route[a.name]||(e.submitHandle.route[a.name]={});var i=[],r="",s=a.users;if(s.length>0&&"asyncLoadingUsers"===s[0].type){var l="";if(s.forEach((function(e){"asyncLoadingUsers"===e.type&&(l+=(""===l?"":",")+(e.orgId||e.parentId))})),""!==l){var d={method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:l,self:l.split(",").length>1}};n.$http(d).then((function(n){if("success"===n.code){if(t.route[o].users.forEach((function(e){for(var t=0;t<n.body.listdata.length;t++)if(n.body.listdata[t].id===e.id){i.push(n.body.listdata[t]),r+=n.body.listdata[t].id+",";break}})),e.submitHandle.route[a.name].users=i,i.length>0){var s="";1===i.length?s=i[0].name:2===i.length?s=i[0].name+"、"+i[1].name:i.length>2&&(s=i[0].name+"、"+i[1].name+"等"+i.length+"人"),e.submitHandle.route[a.name].showUsers=s,e.$set(e.wfNodeUser,a.name,r)}e.$forceUpdate()}}))}}else t.route[o].users.forEach((function(e){for(var t=0;t<a.users.length;t++)if(a.users[t].id===e.id){i.push(a.users[t]),r+=a.users[t].id+",";break}})),e.submitHandle.route[a.name].users=i,i.length>0&&e.$set(e.wfNodeUser,a.name,r)}}))})),1},o=0;o<e.wfJsonData.routes.length;o++)if(a(o))break},upload:function(e,t,n,a,o){var i=new FormData;if(null!=a)for(var r in a)i.append(r,a[r]);return i.append("file",n),void 0!==o&&null!==o||(o={}),e.$http(va(va({url:t},o),{},{method:"post",data:i}))},setAttend:function(e,t,n,a,o,i){return a||(a=e.moduleInfo.listDataUrl.split("/")[1].replace(/wfTaskItem/g,"")),""===a&&(a="todo"),new Promise((function(r){e.$http({method:"PUT",contentType:"application/json charset=utf-8",params:{itemType:a,ids:t,attend:n,udCateId:o,udCateName:i},url:"workflow/wfTaskItemAttend/batchAttend"}).then((function(e){var t=1===n||"1"===n?"添加":"取消";"success"===e.code?e.message=t+"关注成功!":e.message=t+"关注失败!",r(e)}))}))},setPause:function(e,t,n){return new Promise((function(a){e.$http({method:"PUT",contentType:"application/json charset=utf-8",params:{ids:t,status:n},url:"workflow/wfTaskItem/batchPause"}).then((function(e){var t=3===n?"挂起":"解挂";"success"===e.code?e.message=t+"文件成功!":e.message=t+"文件失败!",a(e)}))}))},forwardTodo:function(e,t,n){return new Promise((function(a){var o=t.ownerName+"@"+t.ownerStaffId,i=t.itemType+":"+t.wfInstanceId+"*"+t.wfNodelogId;e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{oldOwner:o,newOwner:n,item:i},url:"workflow/wfTaskItem/transferTodoItms"}).then((function(e){"success"===e.code?e.message="文件转办成功!":e.message="文件转办失败!",a(e)}))}))},loadBusiform:function(e,t,n){var a=t.split("url=")[1];return a=a.replace(/\//g,"."),a="#/dcontent/vuebusiform/"+n+"/"+a.substring(1).replace(".html",".vue"),a+="?sysCode="+(e.wfInstance.sysCode||""),e.$loadComponent(a)}}});e.prototype.$wfEngine=t},Ta=Sa,Da=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h5app-container"},[t("van-nav-bar",{attrs:{title:e.appName,"left-arrow":""},on:{"click-left":e.onClickLeft}}),t("van-skeleton",{attrs:{row:3,title:"",avatar:""}})],1)},Na=[],Aa={name:"Building",components:{},props:{},data:function(){return{appName:""}},computed:{},watch:{},created:function(){this.$route&&this.$route.meta&&(this.appName=this.$route.meta.appName)},beforeDestroy:function(){},mounted:function(){},methods:{onClickLeft:function(){this.$router.back(-1)}}},Ya=Aa,Ca=(a(5612),a(1656)),Oa=(0,Ca.A)(Ya,Da,Na,!1,null,"60fd66f2",null),Ia=Oa.exports;Ia.install=function(e){e.component(Ia.name,Ia)};var Ea=Ia,$a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-group-container"},[t("div",{staticClass:"slot-btn-group-container"},[e._t("default")],2)])},Pa=[],ja={name:"FooterButtonGroup",components:{},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.setBtnStyle()},updated:function(){this.setBtnStyle()},methods:{setBtnStyle:function(){var e=this.$el.querySelectorAll(".btn-group-container .slot-btn-group-container");e.forEach((function(e){for(var t=e.childElementCount,n=0;n<t;n++)e.children[n].style.width="calc((100% - "+10*(t-1)+"px) / "+t+")",e.children[n].style.float="left",n>=1&&(e.children[n].style["margin-left"]="10px")}))}}},Fa=ja,Ha=(a(4632),(0,Ca.A)(Fa,$a,Pa,!1,null,"38da20d2",null)),Ba=Ha.exports;Ba.install=function(e){e.component(Ba.name,Ba)};var Ua=Ba,Ra=function(){var e=this,t=e._self._c;return e.show?t("div",{staticClass:"floatbtn-group-container",style:{top:e.position.y+"px",left:e.position.x+"px"},on:{mousedown:e.down,touchstart:function(t){return t.stopPropagation(),e.down.apply(null,arguments)},mousemove:e.move,touchmove:function(t){return t.stopPropagation(),e.move.apply(null,arguments)},mouseup:e.end,touchend:function(t){return t.stopPropagation(),e.end.apply(null,arguments)}}},[e._t("default")],2):e._e()},Wa=[],Va={name:"FloatButtonGroup",components:{},props:{showFooterNavBar:{type:Boolean,default:!1}},data:function(){return{show:!1,flags:!1,dx:0,dy:0,screenWidth:document.body.clientWidth,screenHeight:document.body.clientHeight,position:{x:0,y:0},tabActive:-1}},computed:{},watch:{tabActive:function(e){void 0!==e&&null!==e&&e>-1&&this.initPosition()}},created:function(){},beforeDestroy:function(){},mounted:function(){this.initPosition()},updated:function(){this.tabActive=this.$vnode.context.tabActive},methods:{initPosition:function(){this.position.x=this.screenWidth-70,this.position.y=this.screenHeight-120,this.showFooterNavBar&&(this.position.y+=-50),this.show=!0},down:function(e){var t;this.flags=!0,t=e.touches?e.touches[0]:e,this.dx=t.clientX-this.position.x,this.dy=t.clientY-this.position.y,document.addEventListener("touchmove",(function(){e.preventDefault()}),{passive:!1})},move:function(){if(this.flags){var e;e=event.touches?event.touches[0]:event;var t=window.getComputedStyle(document.querySelector(".floatbtn-group-container .van-button"));this.position.x=e.clientX-this.dx,this.position.y=e.clientY-this.dy,this.position.x<0?this.position.x=0:this.position.x>this.screenWidth-parseInt(t.width)&&(this.position.x=this.screenWidth-parseInt(t.width)),this.position.y<0?this.position.y=0:this.position.y>this.screenHeight-parseInt(t.height)&&(this.position.y=this.screenHeight-parseInt(t.height))}},end:function(){this.flags=!1}}},za=Va,Ja=(a(1889),(0,Ca.A)(za,Ra,Wa,!1,null,"34d5c6f3",null)),qa=Ja.exports;qa.install=function(e){e.component(qa.name,qa)};var Ga=qa,Ka=function(){var e=this,t=e._self._c;return t("van-popup",{style:{width:"100%",height:"100%","border-top":"1px solid #fff"},attrs:{overlay:!1,position:"right",duration:e.duration},on:{close:e.onCloseDialog,closed:e.onClosedDialog},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[null!=e.title?t("van-nav-bar",{attrs:{title:e.title},on:{"click-right":function(t){return e.$router.back(-1)}}},[t("van-icon",{attrs:{slot:"right",name:"cross",color:"inherit",size:"16"},slot:"right"})],1):e._e(),t("div",{class:null!=e.title?"popup-body":"popup-body-nonav"},[e._t("default")],2)],1)},Qa=[];function Za(e){return Za="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},Za(e)}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){to(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t,n){return(t=no(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e){var t=ao(e,"string");return"symbol"==Za(t)?t:t+""}function ao(e,t){if("object"!=Za(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Za(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var oo={name:"PopupDialog",components:{},props:{title:{type:String,default:null},winTitle:{type:String,default:null},showpop:{type:Boolean,default:function(){return!1}},onClose:{type:Function,default:function(){return!0}},onClosed:{type:Function,default:function(){return!0}},onCancel:{type:Function,default:function(){return!0}}},data:function(){return{prepareClose:!1,tier:0,duration:.3,dialogVisible:!1}},computed:{},watch:{showpop:function(e){e?this.showDialog():this.tier&&(this.prepareClose=!0,this.$router.back(-1))},$route:function(e){this.tier>~~e.query.tier?(this.tier=0,this.duration=0,this.dialogVisible=!1,this.prepareClose=!1):this.prepareClose&&this.$router.back(-1)}},created:function(){var e=this;this.showpop&&this.$nextTick((function(){e.showDialog()}))},beforeDestroy:function(){this.tier&&!1===this.prepareClose&&this.$router.back(-1)},mounted:function(){},methods:{showDialog:function(){if(!this.tier){this.duration=.3,this.dialogVisible=!0;var e=this.$route,t=e.query,n=e.path,a=e.meta,o=~~t.tier;this.tier=o+1,a.title=document.title,this.$router.push({path:n,query:eo(eo({},t),{},{tier:this.tier}),meta:a}),null!==this.winTitle&&this.$wv.setTitle({bool:!0,text:this.winTitle})}},onCloseDialog:function(){this.onClose()},onClosedDialog:function(){this.showpop&&(this.showpop=!1,this.$emit("update:showpop",!1),this.onCancel()),this.onClosed()}}},io=oo,ro=(a(3974),(0,Ca.A)(io,Ka,Qa,!1,null,"e9b9765c",null)),so=ro.exports;so.install=function(e){e.component(so.name,so)};var lo=so;function co(e){return co="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},co(e)}function uo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uo=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==co(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(co(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function fo(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function po(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){fo(i,a,o,r,s,"next",e)}function s(e){fo(i,a,o,r,s,"throw",e)}r(void 0)}))}}function mo(e){return yo(e)||go(e)||vo(e)||ho()}function ho(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vo(e,t){if(e){if("string"==typeof e)return _o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_o(e,t):void 0}}function go(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function yo(e){if(Array.isArray(e))return _o(e)}function _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var bo=function(e,t){return t.map((function(t){return t=e[t],t}))},wo=function(e,t){var n=t.split("."),a=n[n.length-1];"jpg"===a&&(a="image/jpeg");var o=atob(e),i=o.length,r=new Uint8Array(i);while(i--)r[i]=o.charCodeAt(i);return new File([r],t,{type:a})},xo=function(e){return new Promise((function(t){var n=new FileReader;n.readAsDataURL(e),n.onload=function(e){t(e.target.result)}}))},Mo={string:"putKVString",number:"putKVInt",boolean:"putKVBool",double:"putKVDouble"},ko={string:"getKVString",number:"getKVInt",boolean:"getKVBool",double:"getKVDouble"},Lo=function(e){function t(e){if(window.WebViewJavascriptBridge)return e(window.WebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var t=document.createElement("iframe");t.style.display="none",t.src="wvjbscheme://__BRIDGE_LOADED__",document.documentElement.appendChild(t),setTimeout((function(){document.documentElement.removeChild(t)}),0)}function n(e,n,a){t((function(t){t.callHandler(e,n,(function(e){void 0!==a&&null!==a&&a(e)}))}))}function a(e,t,n){if(void 0!==window.flutter_inappwebview&&""!==window.flutter_inappwebview&&null!==window.flutter_inappwebview){if(window.flutter_inappwebview.callHandler instanceof Function){var o=null;if(null===t||void 0===t)o=window.flutter_inappwebview.callHandler(e);else if(t instanceof Array){var i;o=(i=window.flutter_inappwebview).callHandler.apply(i,[e].concat(mo(t)))}else o=window.flutter_inappwebview.callHandler(e,t);return new Promise((function(a){o.then((function(e){if(n&&n(e),null===e)return a(e);e.hasOwnProperty("value")?a(e.value):e.hasOwnProperty("fileList")?a(e.fileList):e.hasOwnProperty("result")&&"boolean"!==typeof e.result?a(e.result):a(e)})).catch((function(n){console.error("jsBridgeCallNativeMethodError => "+e,t,n)}))}))}setTimeout((function(){a(e,t,n)}),1e3)}}function o(e,t,n){return i.apply(this,arguments)}function i(){return i=po(uo().mark((function e(t,n,a){var o;return uo().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=null,null!==n&&void 0!==n){e.next=7;break}return e.next=4,window.WebViewJavascriptBridge.callHandler(t);case 4:o=e.sent,e.next=11;break;case 7:return"object"===co(n)&&(n=JSON.stringify(n)),e.next=10,window.WebViewJavascriptBridge.callHandler(t,n);case 10:o=e.sent;case 11:return console.log("resultPromise===>"+t,o),e.abrupt("return",new Promise((function(e){if(console.log("result====>",o),a&&a(o),null===o)return e(o);o.hasOwnProperty("value")?e(o.value):o.hasOwnProperty("fileList")?e(o.fileList):o.hasOwnProperty("result")&&"boolean"!==typeof o.result?e(o.result):e(o)})));case 13:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}var r=new e({methods:{checkInstallSuccess:function(){if(void 0!==window.flutter_inappwebview&&""!==window.flutter_inappwebview&&null!==window.flutter_inappwebview)return this.$toast.success("Flutter App is already!"),Promise.resolve();this.$toast.fail("Flutter_inappwebview is undefined!")},getSystemInfo:function(e){this.jsBridgeCallNativeMethod("getSystemInfo",null,e)},checkVersionUpdate:function(e){this.jsBridgeCallNativeMethod("checkVersionUpdate",null,e)},getAppVersion:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getAppVersion",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},clearCache:function(e){this.jsBridgeCallNativeMethod("clearCache",null,e)},logout:function(e){this.jsBridgeCallNativeMethod("logout",null,e)},updateBadgeNumber:function(e,t){this.jsBridgeCallNativeMethod("updateBadgeNumber",e,t)},switchOrg:function(e,t){this.jsBridgeCallNativeMethod("switchOrg",e,t)},setTransparentSystemStatusBar:function(e,t){this.jsBridgeCallNativeMethod("setTransparentSystemStatusBar",e,t)},getSystemStatusBarHeight:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log("getSystemStatusBarHeight===>"),n.next=3,t.jsBridgeCallNativeMethod("getSystemStatusBarHeight",null,e);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()},getBottomBarConfig:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getBottomBarConfig",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},getDisabledModuleCodeList:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getDisabledModuleCodeList",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},setTitle:function(e,t){window.wxCfg&&-1!==navigator.userAgent.indexOf("Android")&&"topbarBtn"===window.wxgobakMode&&document.querySelector(".App-nav-bar")?document.title="":document.title=e.text,this.$bus.emit("setTitle",e,t),"ecinc"===window.mappType&&this.jsBridgeCallNativeMethod("setTitle",e,t)},setCenterImage:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setCenterImage",e,t):this.$bus.emit("setCenterImage",e,t)},setLeftText:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setLeftText",e,t):this.$bus.emit("setLeftText",e,t)},setLeftImage:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setLeftImage",e,t):this.$bus.emit("setLeftImage",e,t)},setRightText:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setRightText",e,t):this.$bus.emit("setRightText",e,t)},setRightImage:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setRightImage",e,t):this.$bus.emit("setRightImage",e,t)},showBack:function(e){this.$bus.emit("showBack",e),this.jsBridgeCallNativeMethod("showBack",e)},listLocalFile:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("listLocalFile",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},getLocationInformation:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getLocationInformation",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},openLocalFile:function(e,t){this.jsBridgeCallNativeMethod("openLocalFile",e,t)},deleteLocalFile:function(e,t){this.jsBridgeCallNativeMethod("deleteLocalFile",e,t)},renameLocalFile:function(e,t){this.jsBridgeCallNativeMethod("renameLocalFile",e,t)},imagePicker:function(e,t){var n=this;return po(uo().mark((function a(){var o,i;return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("imagePicker",e);case 2:return o=a.sent,i={result:o.result,file:wo(o.fileData,o.fileName),fileName:o.fileName,content:""},a.next=6,xo(i.file);case 6:return i.content=a.sent,t&&t(i),a.abrupt("return",i);case 9:case"end":return a.stop()}}),a)})))()},filePicker:function(e,t){var n=this;return po(uo().mark((function a(){var o,i;return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("filePicker",e);case 2:return o=a.sent,i={result:o.result,file:{path:o.file,name:o.file}},t&&t(i),a.abrupt("return",i);case 6:case"end":return a.stop()}}),a)})))()},enableKeyboard:function(e,t){var n=this;return po(uo().mark((function a(){return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("enableKeyboard",e,t);case 2:case"end":return a.stop()}}),a)})))()},launchTel:function(e,t){this.jsBridgeCallNativeMethod("launchTel",e,t)},launchSms:function(e,t){this.jsBridgeCallNativeMethod("launchSms",e,t)},openHorizontalWeb:function(e){e=bo(e,["url","title","showTopBar"]),this.jsBridgeCallNativeMethod("openH5",e)},openDialog:function(e){this.jsBridgeCallNativeMethod("openDialog",e,null)},dismissWindow:function(e,t){this.jsBridgeCallNativeMethod("dismissWindow",e,t)},reload:function(e){this.jsBridgeCallNativeMethod("reload",e,null)},closeWindow:function(){this.jsBridgeCallNativeMethod("closeWindow",null,null)},getSportStep:function(e){this.jsBridgeCallNativeMethod("getSportStep",null,e)},getAddressInfo:function(e){this.jsBridgeCallNativeMethod("getAddressInfo",null,e)},getScanInfo:function(e){this.jsBridgeCallNativeMethod("getScanInfo",null,e)},faceAcquisitionOrRecognition:function(e,t){this.jsBridgeCallNativeMethod("faceAcquisitionOrRecognition",e,t)},uploadFile:function(e,t){this.jsBridgeCallNativeMethod("uploadFile",e,t)},downLoadAndOpenFile:function(e){this.jsBridgeCallNativeMethod("downLoadAndOpenFile",e,null)},getScanCodeInfo:function(e,t){this.jsBridgeCallNativeMethod("getScanCodeInfo",e,t)},historyBack:function(){if("H5"===window.layout)return location.hash.includes("isFullScreen")?this.closeWindow():history.back();this.jsBridgeCallNativeMethod("historyBack",null,null)},sendWvApiParams:function(e){this.jsBridgeCallNativeMethod("sendWvApiParams",e)},downloadFile:function(e,t,n,a){t=t?t.toUpperCase():"GET",a=a?a.toString():"true",this.jsBridgeCallNativeMethod("downloadFile",[e,t,n,a])},showAttachmentMenus:function(e,t){this.jsBridgeCallNativeMethod("showAttachmentMenus",e,t)},showAttachmentOtherApps:function(e){this.jsBridgeCallNativeMethod("showAttachmentOtherApps",e)},downloadAttachment:function(e){this.jsBridgeCallNativeMethod("downloadAttachment",e)},setAppStorageItem:function(e,t){var n=Hn.A.state.user.loginUser,a=Mo[e.type||"string"];e=bo(e,["key","value"]),e[0]+="-"+n.userId,this.jsBridgeCallNativeMethod(a,e,t)},getAppStorageItem:function(e,t){var n=this;return po(uo().mark((function a(){var o,i,r;return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return o=Hn.A.state.user.loginUser,i=e.key+="-"+o.userId,r=ko[e.type||"string"],a.next=5,n.jsBridgeCallNativeMethod(r,i,t);case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}}),a)})))()},removeAppStorageItem:function(e,t){var n=Hn.A.state.user.loginUser,a=e.key+="-"+n.userId;this.jsBridgeCallNativeMethod("removeKV",a,t)},databaseHandle:function(e,t,n,a){var o=this;return po(uo().mark((function i(){return uo().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,o.jsBridgeCallNativeMethod(e,[t,n],a);case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),i)})))()},getAudioAssetsMap:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getAudioAssetsMap",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},playAudio:function(e,t){var n=this;return po(uo().mark((function a(){return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("playAudio",e,t);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}}),a)})))()},stopPlayAudio:function(){var e=this;return po(uo().mark((function t(){return uo().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.jsBridgeCallNativeMethod("stopPlayAudio",null);case 2:case"end":return t.stop()}}),t)})))()},vibrate:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("vibrate",e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},sendLocalNotification:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("sendLocalNotification",e);case 2:case"end":return n.stop()}}),n)})))()},takeScreenshot:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("takeScreenshot",e);case 2:case"end":return n.stop()}}),n)})))()},userAuthSetting:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("userAuthSetting",e);case 2:case"end":return n.stop()}}),n)})))()},logoutAfterDeleteAccount:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("logoutAfterDeleteAccount",e);case 2:case"end":return n.stop()}}),n)})))()},showLoading:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("showLoading",e);case 2:case"end":return n.stop()}}),n)})))()},hideLoading:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("hideLoading",e);case 2:case"end":return n.stop()}}),n)})))()},clearAllNotification:function(){this.jsBridgeCallNativeMethod("clearAllNotification",null)},jsBridgeCallNativeMethod:window.flutter_inappwebview?a:navigator.userAgent&&navigator.userAgent.indexOf("Harmony")>-1?o:n}});"undefined"!==typeof window&&(window.$wv=r),e.prototype.$wv=r},So=Lo;function To(e){return To="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},To(e)}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Ao(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ao(e,t,n){return(t=Yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e){var t=Co(e,"string");return"symbol"==To(t)?t:t+""}function Co(e,t){if("object"!=To(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=To(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Oo=[So],Io=function e(t){e.installed||(e.installed=!0,Oo.map((function(e){t.use(e)})))};"undefined"!==typeof window&&window.Vue&&Io(window.Vue);var Eo=No({install:Io},Oo),$o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"van-selected-dialog"},[t("ListitemDialog"),t("DatetimePicker"),t("TreeDialog"),t("WfNamesDialog"),t("ListpageDialog")],1)},Po=[],jo=function(){var e=this,t=e._self._c;return e.dialogVisible?t("div",[e.multiple||"rightDialog"===e.dialogType?t("PopupDialog",{attrs:{showpop:e.dialogVisible,title:e.dialogTitle,"on-cancel":e.closeDialog},on:{"update:showpop":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"popup-content"},[e.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.itemList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.text,clickable:""},on:{click:function(t){return t.stopPropagation(),e.checkboxToggle(a)}}},[t("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{slot:"icon",name:a},slot:"icon"})],1)})),1)],1):t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.itemList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.text,clickable:""},on:{click:function(t){return e.radioboxClick(a)}}},[t("van-radio",{attrs:{slot:"icon",name:a},slot:"icon"})],1)})),1)],1)],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitForm}},[e._v("确 定")])],1)],1):"areaDialog"===e.dialogType?t("van-popup",{style:{width:"100%"},attrs:{position:"bottom"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("van-area",{attrs:{title:e.dialogTitle,"area-list":e.areaList,"columns-num":e.areaColumnsNum,"visible-item-count":e.areaVisibleItemCount,value:e.selected[0]},on:{cancel:e.closeDialog,confirm:e.submitForm}})],1):t("van-action-sheet",{staticClass:"bootom_slect_item",attrs:{description:e.dialogTitle,"cancel-text":e.$tx("pageBtns.cancel","取 消"),"close-on-click-action":!0,round:!1},on:{"click-overlay":e.closeDialog,cancel:e.closeDialog},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[e._l(e.itemList,(function(n,a){return t("button",{key:a,staticClass:"van-action-sheet__item",attrs:{type:"button"},on:{click:function(t){return e.submitForm(n,a)}}},[t("span",{staticClass:"van-action-sheet__name"},[e._v(e._s(n.name))])])}))],2)],1):e._e()},Fo=[],Ho={components:{},props:{},data:function(){return{dialogTitle:"请选择",dialogVisible:!1,itemList:[],areaList:null,areaColumnsNum:2,areaVisibleItemCount:3,multiple:!1,selected:[],callback:null,dialogType:"",canClear:!1}},computed:{},watch:{},created:function(){this.$bus.on("openListitemDialog",this.openListitemDialog)},beforeDestroy:function(){this.$bus.off("openListitemDialog",this.openListitemDialog)},mounted:function(){},methods:{openListitemDialog:function(e,t,n,a,o,i,r){var s=this;if(this.dialogTitle=e||"",this.itemList=t,this.callback=n,this.multiple=!0===o||1===o,this.dialogType=i||(t.length>8?"rightDialog":"bottomDialog"),this.canClear=r,this.selected=[],this.areaList={province_list:{},city_list:{},county_list:{}},this.areaColumnsNum=2,o||(t.forEach((function(e,t){e.className="",e.name||(e.name=e.text),s.pushAreaItem(e,1,t,null),e.children&&e.children.length>0&&(s.dialogType="areaDialog",e.children.forEach((function(e,n){e.name||(e.name=e.text),s.pushAreaItem(e,2,n,t),e.value===a&&(s.selected[0]=e.areaCode),e.children&&e.children.length>0&&e.children.forEach((function(o,i){o.name||(o.name=o.text),s.pushAreaItem(o,3,i,n,t),s.areaColumnsNum=3,o.value===a&&(s.selected[0]=e.areaCode)}))})),a=null)})),""!==this.dialogTitle&&-1===this.dialogTitle.indexOf(this.$tx("common.plChoose","请选择"))&&(this.dialogTitle=this.$tx("common.plChooseContent",{content:this.dialogTitle},"请选择".concat(this.dialogTitle)))),void 0!==a&&null!==a)for(var l=0;l<t.length;l++)if(t[l].text===a||t[l].value===a||-1!==(a+"").indexOf(t[l].value+"")){if(!0!==this.multiple){this.selected[0]=l,t[l].className="listitem-selected";break}this.selected.push(l)}this.dialogVisible=!0},pushAreaItem:function(e,t,n,a,o){var i="";1===t?(i=n+10+"0000",this.areaList["province_list"][i]=e.name):2===t?(i=a+10+""+(n+10)+"00",this.areaList["city_list"][i]=e.name):(i=o+10+""+(a+10)+(n+10),this.areaList["county_list"][i]=e.name),e.areaCode=i,n>6?this.areaVisibleItemCount=6:n>3&&(this.areaVisibleItemCount=n)},checkboxToggle:function(e){this.$refs.checkboxes[e].toggle()},radioboxClick:function(e){this.selected[0]=e,this.$forceUpdate()},submitForm:function(e,t){var n=this;if(void 0!==t&&(this.selected[0]=t),0!==this.selected.length||this.canClear)if("areaDialog"===this.dialogType){var a=e,o=[];this.itemList.forEach((function(e,t){a.forEach((function(t){if(t&&e.areaCode===t.code){var n=JSON.parse(JSON.stringify(e));delete n.children,o.push(n)}})),e.children&&e.children.forEach((function(e){a.forEach((function(t){if(t&&e.areaCode===t.code){var n=JSON.parse(JSON.stringify(e));delete n.children,o.push(n)}})),e.children&&e.children.forEach((function(e){a.forEach((function(t){t&&e.areaCode===t.code&&o.push(e)}))}))}))})),this.callback({code:"success",value:o}),this.dialogVisible=!1,this.selected=[]}else{var i=null;!0===this.multiple?(i=[],this.selected.forEach((function(e){i.push(n.itemList[e])}))):i=this.itemList[this.selected[0]],this.callback({code:"success",value:i}),this.dialogVisible=!1,this.selected=[]}else this.$dialog.alert({message:this.$tx("common.plChoose","请选择")})},closeDialog:function(){this.callback({code:"cancel",value:null}),this.dialogVisible=!1,this.selected=[]}}},Bo=Ho,Uo=(a(3760),(0,Ca.A)(Bo,jo,Fo,!1,null,"2e7fed1a",null)),Ro=Uo.exports,Wo=function(){var e=this,t=e._self._c;return e.dialogVisible?t("van-popup",{attrs:{position:"bottom"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("van-datetime-picker",{attrs:{type:e.type,title:e.title,filter:e.filter,"min-date":e.minDate},on:{confirm:e.submitForm,cancel:e.closeDialog},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1):e._e()},Vo=[];function zo(e){return zo="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},zo(e)}var Jo=a(5093),qo={components:{},props:{},data:function(){return{dialogVisible:!1,type:"datetime",minDate:new Date,currentDate:null,callback:null,stepNum:1,title:""}},computed:{},watch:{},created:function(){this.$bus.on("openDatetimePicker",this.openDatetimePicker)},beforeDestroy:function(){this.$bus.off("openDatetimePicker",this.openDatetimePicker)},mounted:function(){},methods:{filter:function(e,t){var n=this;if(this.stepNum)return"minute"===e?t.filter((function(e){return e%n.stepNum===0})):t},openDatetimePicker:function(e,t,n,a,o,i){this.stepNum=o||1,this.title=i;var r=new Date;null===e||void 0===e||""===e?this.currentDate=r:"string"===typeof e&&(this.currentDate=b(e)),null!==a&&""!==a&&void 0!==a?"object"===zo(a)?this.minDate=a:this.minDate=new Date(a):this.minDate.setFullYear(this.minDate.getFullYear()-100),this.type=n,"time"===this.type&&(this.currentDate=Jo(this.currentDate).format("HH:mm:ss")),this.callback=t,this.dialogVisible=!0},submitForm:function(e){this.dialogVisible=!1,"time"===this.type?(5===e.length&&(e+=":00"),e="1970-01-01 "+e,this.callback(e)):this.callback(Jo(e).format("YYYY-MM-DD HH:mm:ss"))},closeDialog:function(){this.dialogVisible=!1}}},Go=qo,Ko=(0,Ca.A)(Go,Wo,Vo,!1,null,"4aede178",null),Qo=Ko.exports,Zo=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"treeBox"}},[e.dialogVisible?t("PopupDialog",{attrs:{showpop:e.dialogVisible,title:e.dialogTitle,"on-cancel":e.closeDialog},on:{"update:showpop":function(t){e.dialogVisible=t}}},[e.loading?e._e():t("div",{staticClass:"searchInput"},[t("van-search",{staticClass:"p-search iconfont-search",attrs:{placeholder:"".concat(e.searchFocus?"":" ").concat(e.$tx("common.searchFor","搜索")),"input-align":e.searchFocus||e.searchText?"":"center"},on:{focus:function(t){e.searchFocus=!0},blur:function(t){e.searchFocus=!1}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[e.showSelectByTabs?t("van-dropdown-menu",{attrs:{slot:"left"},slot:"left"},[t("van-dropdown-item",{attrs:{options:e.selectByTabsOption},on:{change:e.onSelectByTabsHandleClick},model:{value:e.selectByTabsActiveName,callback:function(t){e.selectByTabsActiveName=t},expression:"selectByTabsActiveName"}})],1):e._e(),t("span",{class:e.searchFocus||e.searchKey?"iconfont icon-search":"",attrs:{slot:"left-icon"},slot:"left-icon"})],1)],1),e.searchResult?t("div",[e.condition.oneByOne?t("div",{staticClass:"popup-content search-staff-result"},[e.searchResult.length>0?[t("TreeDialogCollapse",{attrs:{condition:e.condition,"active-name":e.activeName,"tree-node-list":e.searchResult,"tree-node-click":e.chooseSection,"on-change":e.chooseDepartment}})]:[t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无人员")])])]],2):t("div",{staticClass:"popup-content",class:"staff"===e.condition.selectDialog||"wfNodeUser"===e.condition.selectDialog||"staffExt"===e.condition.selectDialog?"search-staff-result":""},[e.searchResult.length>0?[e.condition.multiple?t("van-checkbox-group",{model:{value:e.searchSelected,callback:function(t){e.searchSelected=t},expression:"searchSelected"}},[t("van-cell-group",e._l(e.searchResult,(function(n,a){return t("van-cell",{key:a,class:n.personId?"van-cell-staff":"",attrs:{clickable:""},on:{click:function(t){return e.coohseSearchItem(n)}}},[t("template",{slot:"title"},[t("van-checkbox",{attrs:{name:n}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),n.title&&!n.personId?t("span",[e._v(e._s(n.customName||n.title))]):t("span",{staticClass:"staff-name"},[e._v(e._s(n.customName||n.name))])],1),t("div",{attrs:{slot:"label"},slot:"label"},[t("span",{domProps:{innerHTML:e._s(n.pName)}})])],2)})),1)],1):t("van-radio-group",{model:{value:e.searchSelected[0],callback:function(t){e.$set(e.searchSelected,0,t)},expression:"searchSelected[0]"}},[t("van-cell-group",e._l(e.searchResult,(function(n,a){return t("van-cell",{key:a,class:n.personId?"van-cell-staff":"",attrs:{clickable:""},on:{click:function(t){return e.coohseSearchItem(n)}}},[t("template",{slot:"title"},[t("van-radio",{attrs:{name:n}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),n.title&&!n.personId?t("span",[e._v(e._s(n.customName||n.title))]):t("span",{staticClass:"staff-name"},[e._v(e._s(n.customName||n.name))])],1),t("div",{attrs:{slot:"label"},slot:"label"},[t("span",{domProps:{innerHTML:e._s(n.pName)}})])],2)})),1)],1)]:[t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无数据")])])]],2),t("FooterButtonGroup",[e.isStaff&&e.condition.multiple?t("div",{staticClass:"select_person_count"},[t("div",{staticClass:"count"},[t("span",{on:{click:function(t){return e.viewSelectPersons("search",e.searchResult)}}},[e._v(" 已选择:"+e._s(e.selectedCount.replace("(","").replace(")",""))+" "),t("van-icon",{staticStyle:{"margin-left":"5px"},attrs:{name:"arrow-up"}})],1)]),t("div",{staticClass:"confirm_btn"},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitSearchForm}},[e._v("确 定")])],1)]):t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitSearchForm}},[e._v("确 定")])],1)],1):t("div",[t("div",{staticClass:"select-all-nodes"},[e.showSelectAllNodes&&!e.lazy?t("van-cell",[t("template",{slot:"title"},[t("van-checkbox",{on:{click:e.selectAllNodesClick},model:{value:e.selectAllNodes,callback:function(t){e.selectAllNodes=t},expression:"selectAllNodes"}}),t("div",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")])],1)],2):e._e()],1),t("div",{staticClass:"popup-content",style:e.showSelectAllNodes?{height:"calc(100vh - 102px - 60px - 44px - var(--headerHeight))"}:""},[e.treeNodeList.length>0?[e.condition.multiple&&e.condition.oneByOne?t("TreeDialogCollapse",{ref:"collapse",attrs:{condition:e.condition,"active-name":e.activeName,"tree-node-list":e.treeNodeList,"tree-node-click":e.chooseSection,"on-change":e.chooseDepartment}}):e.isStaff&&!e.condition.multiple?t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":void 0!=n.type,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)}))}}},[t("template",{slot:"title"},[t("div",{directives:[{name:"show",rawName:"v-show",value:n.canSelect,expression:"radioPerson.canSelect"}],on:{click:function(e){e.stopPropagation()}}},[t("van-radio",{ref:"radio_"+n.id,refInFor:!0,staticClass:"cell-selection",attrs:{disabled:!n.canSelect,name:n}})],1),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])]),n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s(n.selectedNames)+" ")]):e._e()],2)})),1),e.popupConfig.isVisible?t("TreeDialogPopup",{attrs:{"popup-title":e.dialogTitle,"show-popup":e.popupConfig.isVisible,"parent-node":e.treeNodeList,"current-idx":e.popupConfig.currIdx},on:{"update:showPopup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:show-popup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:parentNode":function(t){e.treeNodeList=t},"update:parent-node":function(t){e.treeNodeList=t},"update:currentIdx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"update:current-idx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"handle-confirm":e.handleConfirm}}):e._e()],1):e.isStaff&&e.condition.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":void 0!=n.type&&!n.collapse,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)}))}}},[t("template",{slot:"title"},[t("div",{on:{click:function(e){e.stopPropagation()}}},[t("van-checkbox",{ref:"checkboxes_"+n.id,refInFor:!0,attrs:{disabled:!n.canSelect,name:n}})],1),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])]),"treeNode"!=n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s(n.selectedNames+(n.totalSelectedCount>2?"等"+n.totalSelectedCount+"人":""))+" ")]):e._e(),"treeNode"==n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s("已选("+n.totalSelectedCount+")个")+" ")]):e._e()],2)})),1),e.popupConfig.isVisible?t("TreeDialogPopup",{ref:"departmentDataPopup",attrs:{"popup-title":e.dialogTitle,"show-select-all-nodes":e.showSelectAllNodes,"show-popup":e.popupConfig.isVisible,"parent-node":e.treeNodeList,"current-idx":e.popupConfig.currIdx},on:{"update:showPopup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:show-popup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:parentNode":function(t){e.treeNodeList=t},"update:parent-node":function(t){e.treeNodeList=t},"update:currentIdx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"update:current-idx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"handle-confirm":e.handleConfirm}}):e._e()],1):e.condition.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{"is-link":0===n.isRealOrg,clickable:""},on:{click:function(t){e.chooseListitem(n),e.$forceUpdate()}}},[t("template",{slot:"title"},[t("van-checkbox",{ref:"checkboxes_"+n.id,refInFor:!0,attrs:{slot:"right-icon",disabled:0===n.isRealOrg,name:n},slot:"right-icon"}),t("div",{staticClass:"photo"},[n.photoUrl?t("img",{staticClass:"photo",attrs:{src:n.photoUrl}}):t("span",[e._v(e._s(n.name.substr(0,1)))])]),t("span",{class:0===n.isRealOrg&&"disabled-name"},[e._v(e._s(n.customName||n.name))])],1),void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s("已选("+n.selectedCount+")个")+" ")]):e._e()],2)})),1),t("TreeDialogPopup",{ref:"departmentDataPopup",attrs:{"popup-title":e.DepartmentTitle,"show-popup":e.showDepartment,"tree-node-list":e.departmentData.children,multiple:e.condition.multiple,"tree-node-click":e.chooseSection},on:{onPopupClose:function(t){return e.updateSelectedInfo(null,e.departmentData)}}},[e.isStaff&&e.condition.multiple?t("div",{staticClass:"select_person_count",attrs:{slot:"footerButton"},slot:"footerButton"},[t("div",{staticClass:"count"},[t("span",{on:{click:function(t){return e.viewSelectPersons("departmentDataPopup",e.departmentData)}}},[e._v(" 已选择:"+e._s(e.departmentData.selectedCount)+"人 "),t("van-icon",{staticStyle:{"margin-left":"5px"},attrs:{name:"arrow-up"}})],1)]),t("div",{staticClass:"confirm_btn"},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:function(t){e.showDepartment=!e.showDepartment}}},[e._v("确定")])],1)]):t("van-button",{attrs:{slot:"footerButton",square:"",type:"info",text:"已选("+e.departmentData.selectedCount+")个"},on:{click:function(t){e.showDepartment=!e.showDepartment}},slot:"footerButton"})],1)],1):t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{"is-link":0===n.isRealOrg,clickable:""},on:{click:function(t){e.chooseListitem(n),e.$forceUpdate()}}},[t("template",{slot:"title"},[t("van-radio",{ref:"radio_"+n.id,refInFor:!0,attrs:{disabled:0===n.isRealOrg,name:n}}),t("div",{staticClass:"photo"},[n.photoUrl?t("img",{staticClass:"photo",attrs:{src:n.photoUrl}}):t("span",[e._v(e._s(n.name.substr(0,1)))])]),t("span",{class:0===n.isRealOrg&&"disabled-name"},[e._v(e._s(n.customName||n.name))])],1),void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s("已选("+n.selectedCount+")个")+" ")]):e._e()],2)})),1),t("TreeDialogPopup",{attrs:{"popup-title":e.DepartmentTitle,"show-popup":e.showDepartment,"tree-node-list":e.departmentData.children,multiple:e.condition.multiple,"tree-node-click":e.chooseSection}},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{slot:"footerButton",square:"",type:"info"},on:{click:function(t){e.submitForm(),e.updateSelectedInfo(null,e.departmentData)}},slot:"footerButton"},[e._v(" 确 定 ")])],1)],1)]:e.loading?[t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.noData",expression:"'common.noData'"}],staticStyle:{float:"center"},attrs:{size:"24px",vertical:""}},[e._v("正在加载...")])]:[t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nomessage.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无数据")])])]],2),e.loading?e._e():t("FooterButtonGroup",[t("TreeSelectedPopup",{attrs:{"show-select-all-nodes":e.showSelectAllNodes},on:{"change-all":e.judgeSeletAllType,confirm:e.submitForm}})],1)],1)]):e._e(),e.areaDialogVisible?t("van-popup",{style:{width:"100%",height:"40%"},attrs:{position:"bottom"},model:{value:e.areaDialogVisible,callback:function(t){e.areaDialogVisible=t},expression:"areaDialogVisible"}},[t("van-area",{attrs:{title:e.dialogTitle,"area-list":e.treeNodeList,value:e.areaValue,"columns-num":3},on:{cancel:e.cancelCity,confirm:e.confirmCity}})],1):e._e(),e.deletePersonPopup?t("van-popup",{style:{width:"100%",height:"70%",overflow:"hidden"},attrs:{position:"bottom",round:!0,"close-on-popstate":!0},model:{value:e.deletePersonPopup,callback:function(t){e.deletePersonPopup=t},expression:"deletePersonPopup"}},[[t("div",{staticClass:"delete_Popup"},[t("div",{staticClass:"popup_header"},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.personnelSelection",expression:"'ecmapp.selectDialog.personnelSelection'"}],staticClass:"title"},[e._v("人员选择")]),t("div",{staticClass:"btn"},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],staticStyle:{color:"#c0c4cc"},on:{click:function(t){e.deletePersonPopup=!1}}},[e._v("关 闭")])])]),t("div",{staticClass:"popup_person"},[e._l(e.deletePersonPopupObj.canDeletePerson,(function(n){return t("div",{key:n.id,staticClass:"popup_cell"},[t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("div",{staticClass:"name"},[t("div",{staticStyle:{color:"#303133","font-size":"16px"}},[e._v(e._s(n.customName||n.name))]),t("div",{staticStyle:{color:"#999","font-size":"12px","margin-top":"5px"}},[e._v(e._s(n.orgFullName.substr(n.orgFullName.indexOf("-")+1)))])]),t("div",{staticClass:"deletebtn",on:{click:function(t){return e.deletePopupPerson(n)}}},[t("van-icon",{attrs:{name:"close"}})],1)])})),0===e.deletePersonPopupObj.canDeletePerson.length?t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nomessage.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无人员")])]):e._e()],2)])]],2):e._e()],1)},Xo=[],ei=a(5353),ti=function(){var e=this,t=e._self._c;return t("van-popup",{style:{width:"100%",height:"100%"},attrs:{"get-container":"#treeBox",position:"right",overlay:!1,closeable:!0,"close-icon-position":"top-right"},on:{close:e.onPopupClose},model:{value:e.showPopup,callback:function(t){e.showPopup=t},expression:"showPopup"}},[t("van-nav-bar",{attrs:{title:e.popupTitle}}),t("div",{staticClass:"popup-department"},[e.showSelectAllNodes&&e.treeNodeList[0]&&!e.treeNodeList[0].ocode?t("div",{staticClass:"select-all-nodes"},[t("van-cell",[t("template",{slot:"title"},[t("van-checkbox",{ref:"checkAll"+e.currentIdx,on:{click:e.selectAllNodesClick},model:{value:e.selectAllNodes,callback:function(t){e.selectAllNodes=t},expression:"selectAllNodes"}}),t("div",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")])],1)],2)],1):e._e(),e.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":n.isLink||void 0!=n.type&&!n.canSelect,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)})),e.$forceUpdate()}}},[t("template",{slot:"title"},[t("div",{on:{click:function(e){e.stopPropagation()}}},[t("van-checkbox",{ref:"checkboxes_"+n.id,refInFor:!0,attrs:{disabled:!n.canSelect,name:n}})],1),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])]),"treeNode"!=n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(e._s(n.selectedNames+(n.totalSelectedCount>2?"等"+n.totalSelectedCount+"人":"")))]):e._e(),"treeNode"==n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(e._s("已选("+n.totalSelectedCount+")个"))]):e._e()],2)})),1)],1):t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":void 0!=n.type&&!n.canSelect,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)}))}}},[t("template",{slot:"title"},[t("van-radio",{ref:"radio_"+n.id,refInFor:!0,attrs:{disabled:!n.canSelect,name:n}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])],1),n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(e._s(n.selectedNames))]):e._e()],2)})),1)],1),0===e.treeNodeList.length?t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nomessage.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无人员")])]):e._e(),e.popupConfig.isVisible?t("TreeDialogPopup",{attrs:{"popup-title":e.popupTitle,"show-select-all-nodes":e.showSelectAllNodes,"show-popup":e.popupConfig.isVisible,"parent-node":e.treeNodeList,"current-idx":e.popupConfig.currIdx},on:{"update:showPopup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:show-popup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:parentNode":function(t){e.treeNodeList=t},"update:parent-node":function(t){e.treeNodeList=t},"update:currentIdx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"update:current-idx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"handle-confirm":e.handleConfirm,"change-all":e.judgeSeletAllType,"update-selected":e.checkIncludeSelected}}):e._e()],1),t("FooterButtonGroup",[e.$slots.footerButton?[e._t("footerButton")]:e._e(),t("TreeSelectedPopup",{attrs:{"show-select-all-nodes":e.showSelectAllNodes},on:{"change-all":e.reviewSelected,confirm:e.handleConfirm}})],2)],1)},ni=[],ai=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"select_person_count"},[t("div",{staticClass:"count"},[t("span",{on:{click:function(t){e.visible=!0}}},[e._v(" 已选择:"+e._s(e.selectedCount)+" "),t("van-icon",{staticStyle:{"margin-left":"5px"},attrs:{name:"arrow-up"}})],1)]),t("div",{staticClass:"confirm_btn"},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.handleClick}},[e._v("确 定")])],1)]),t("van-popup",{style:{height:"80%",background:"#f7f9fb"},attrs:{id:"SelectedPopup",round:"",position:"bottom"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"header"},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.currentlySelected",expression:"'ecmapp.selectDialog.currentlySelected'"}],staticClass:"title"},[e._v("当前已选择")]),t("a",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],staticClass:"button",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.visible=!1}}},[e._v("确 定")])]),t("div",{staticClass:"content"},[t("van-cell-group",e._l(e.dataGroup.dept,(function(n){return t("van-cell",{key:n.id,attrs:{center:""}},[t("template",{slot:"title"},[t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",[e._v(e._s(n.customName||n.name))])]),t("template",{slot:"right-icon"},[t("van-icon",{attrs:{name:"close"},on:{click:function(t){return e.handleDelete(n.id,n)}}})],1)],2)})),1),e.dataGroup.dept.length?t("div",{staticClass:"split-line"}):e._e(),t("van-cell-group",e._l(e.dataGroup.person,(function(n){return t("van-cell",{key:n.id,attrs:{center:""}},[t("template",{slot:"title"},[t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",[e._v(e._s(n.customName||n.name))])]),t("template",{slot:"right-icon"},[t("van-icon",{attrs:{name:"close"},on:{click:function(t){return e.handleDelete(n.id,n)}}})],1)],2)})),1)],1)])],1)},oi=[],ii={props:{showSelectAllNodes:{type:Boolean,default:!1}},data:function(){var e,t;return{visible:!1,selected:null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]}},computed:{totalSelected:function(){var e,t;return null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]},dataGroup:function(){var e=[],t=[];return this.selected.forEach((function(n){n&&n.personId?t.push(n):n&&e.push(n)})),{dept:e,person:t}},selectedCount:function(){var e=this.$store.state.selectDialog?this.$store.state.selectDialog.condition:{},t=[],n=[],a="workgroup"===e.selectDialog?"个群组":"jobPosition"===e.selectDialog?"个岗位":"个部门(含子部门)";return this.selected.forEach((function(e){e&&e.personId?n.push(e):e&&t.push(e)})),(n.length?n.length+"人":"")+(n.length&&t.length?",":"")+(t.length?t.length+a:"")}},watch:{selected:function(e){this.totalSelected.length!==this.selected.length&&this.$store.commit("selectDialog/setSelected",e)},totalSelected:function(e){this.selected=e}},methods:{handleClick:function(){this.$emit("confirm")},handleDelete:function(e,t){var n=this.selected.findIndex((function(t){return t&&t.id===e}));t.checked=!1,this.selected.splice(n,1),this.showSelectAllNodes&&(this.$emit("change-all",e),this.$bus.emit("selectedPopupDelete",e))}}},ri=ii,si=(a(1594),(0,Ca.A)(ri,ai,oi,!1,null,"4d1a7426",null)),li=si.exports;function di(e){return di="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},di(e)}function ci(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ci=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==di(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(di(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function ui(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function fi(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){ui(i,a,o,r,s,"next",e)}function s(e){ui(i,a,o,r,s,"throw",e)}r(void 0)}))}}function pi(e){return gi(e)||vi(e)||hi(e)||mi()}function mi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hi(e,t){if(e){if("string"==typeof e)return yi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(e,t):void 0}}function vi(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function gi(e){if(Array.isArray(e))return yi(e)}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wi(e,t,n){return(t=xi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xi(e){var t=Mi(e,"string");return"symbol"==di(t)?t:t+""}function Mi(e,t){if("object"!=di(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=di(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ki={name:"TreeDialogPopup",components:{TreeSelectedPopup:li},props:{popupTitle:{type:String,default:""},showPopup:{type:Boolean,default:function(){return!1}},treeNodeList:{type:Array,default:function(){return[]}},treeNodeClick:{type:Function,default:function(){return null}},multiple:{type:Boolean,default:!1},showSelectAllNodes:{type:Boolean,default:!1},parentNode:{type:Object,default:function(){return{}}},currentIdx:{type:String,default:""}},data:function(){var e,t;return{$scope:{},popupConfig:{currIdx:null,isVisible:!1},lazy:!1,treeDataMap:[],selectAllNodes:!1,isSelectedVisible:!1,selected:null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]}},computed:bi(bi({},(0,ei.aH)({isStaff:function(e){var t;return null===(t=e.selectDialog)||void 0===t?void 0:t.isStaff},condition:function(e){var t,n;return null!==(t=null===(n=e.selectDialog)||void 0===n?void 0:n.condition)&&void 0!==t?t:{}}})),{},{totalSelected:function(){var e,t;return null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]}}),watch:{selected:function(e){(this.totalSelected.length!==this.selected.length||!this.multiple&&this.selected[0]&&this.selected[0].name!==this.totalSelected[0].name)&&this.$store.commit("selectDialog/setSelected",e.filter((function(e){return e})))},totalSelected:function(e){this.totalSelected.length!==this.selected.length&&(this.selected=e)}},created:function(){this.$scope=this.$vnode.context,this.treeDataMap=this.$scope.treeDataMap,this.multiple=this.condition.multiple,this.lazy=this.$scope.lazy,""!==this.currentIdx&&void 0!==this.currentIdx&&null!==this.currentIdx&&(this.treeNodeList=this.parentNode[this.currentIdx].children||[])},mounted:function(){this.reviewSelected()},methods:{checkIncludeSelected:function(){var e=this;this.selected=this.selected.filter((function(t,n){return t&&"selectedIndex"===e.condition.selectedOrderBy&&(t.selectedIndex=n),t}));var t=this.selected.map((function(e){return e.id})),n=this.treeNodeList.filter((function(e){return t.includes(e.id)})),a=this.treeNodeList.filter((function(e){return e.totalSelectedCount&&e.totalSelectedCount>0}));if(n.length&&a.length&&!this.condition.multiple&&(this.treeNodeList=this.treeNodeList.map((function(e){return e.totalSelectedCount&&(delete e.totalSelectedCount,delete e.selectedNames),e}))),"selectedIndex"===this.condition.selectedOrderBy&&n.sort((function(e,t){return e.selectedIndex-t.selectedIndex})),n.length||a.length||this.parentNode[this.currentIdx].selectedNames){var o=n.length,i=n.length?n[0].name+(n[1]?"、"+n[1].name:""):"";a.length&&a.forEach((function(e){e.totalSelectedCount&&(o+=e.totalSelectedCount),""===i&&e.selectedNames&&(i=e.selectedNames)})),this.parentNode[this.currentIdx].selectedNames=i,this.parentNode[this.currentIdx].totalSelectedCount=o,this.$emit("update:parent-node",this.parentNode),this.$emit("update-selected")}this.multiple&&this.judgeSeletAllType()},reviewSelected:function(e){var t=this;this.selected=this.selected.filter((function(e){return e}));var n=this.selected.map((function(e){return e.id}));e&&(n=n.filter((function(t){return t!==e}))),this.treeNodeList.forEach((function(e){if(n.includes(e.id)){var a=t.condition.multiple?"checkboxes_"+e.id:"radio_"+e.id;t.multiple&&(e.checked=!0),t.$refs[a]&&t.$refs[a][0].toggle(!0)}else t.multiple&&e.canSelect&&(e.checked=!1)})),this.judgeSeletAllType()},selectAllNodesClick:function(){var e;this.selectAllNodes=!this.selectAllNodes;var t=this,n=[];function a(e){for(var o=0;o<e.length;o++){e[o].personId||(e[o].selectedNames&&(e[o].selectedNames=""),e[o].selectedCount&&(e[o].selectedCount=0),e[o].subOrgSelectedCount&&(e[o].subOrgSelectedCount=0),e[o].totalSelectedCount&&(e[o].totalSelectedCount=0));var i=t.$scope.treeDataMap[e[o].pId];if(i.selectedNames="",i.selectedCount=0,i.subOrgSelectedCount=0,i.totalSelectedCount=0,e[o].canSelect)if(e[o].checked=t.selectAllNodes,t.selectAllNodes){for(var r=!0,s=0;s<t.selected.length;s++)t.selected[s]&&e[o].id===t.selected[s].id&&(r=!1),t.selected[s]||(t.selected.splice(s,1),s--);r&&e[o]&&n.push(e[o])}else for(var l=0;l<t.selected.length;l++)t.selected[l]&&e[o]&&e[o].id===t.selected[l].id&&(t.selected.splice(l,1),l--);e[o].children&&e[o].children.length>0&&a(e[o].children)}}a(this.treeNodeList),n=n.filter((function(e){return e})),(e=t.selected).push.apply(e,pi(n)),this.$bus.emit("resetHistorySelectedInfo"),this.judgeSeletAllType(),this.$forceUpdate()},judgeSeletAllType:function(e){var t=this,n=!0;function a(e){for(var t=0;t<e.length;t++)e[t].canSelect&&!e[t].checked&&(n=!1),e[t].children&&e[t].children.length>0&&a(e[t].children)}a(this.treeNodeList),this.$nextTick((function(){t.$refs["checkAll"+t.currentIdx]&&t.$refs["checkAll"+t.currentIdx].toggle(n),t.selectAllNodes=n,t.$forceUpdate()}))},objToFormData:function(e){var t=new FormData;for(var n in e)t.append(n,e[n]);return t},loadChildNode:function(e,t){var n=this,a=this.treeNodeList[e],o=this;return!this.lazy||a.isLoaded||a.personId||a.userId||a.children||"allOrg"===this.condition.selectDialog&&["subOrg","treeNode"].includes(a.type)?t():void new Promise(function(){var e=fi(ci().mark((function e(t,i){var r,s,l,d,c,u,f,p,m,h,v,g,y;return ci().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("allStaff"!==n.condition.selectDialog){e.next=15;break}return r="/base/organMgr/findOrganPersonByOrgCode?orgCode=".concat(a.code||a.ocode),n.$scope.openSysCode&&(r+="&openSysCode="+n.$scope.openSysCode),e.next=5,o.$http({method:"get",url:r});case 5:if(s=e.sent,"success"===s.code){e.next=8;break}return e.abrupt("return",i(s.message));case 8:o.selected=o.selected.filter((function(e){return e})),l=o.$scope.treeDataAdapter([a].concat(pi(s.body.listdata))),d=o.$scope.toTreeNodeList(l,"allStaff"),d instanceof Array&&!d.length&&(d=o.$scope.simplyToTree(l)),t(d[0]),e.next=38;break;case 15:if("rootOrg"!==a.type&&"treeNode"!==a.type){e.next=28;break}return c="base/organMgr/findTreeNodeVOListByOrgId",u={orgId:a.id,self:!1,status:1},e.next=20,o.$http({method:"GET",url:c,params:u});case 20:if(f=e.sent,"success"===f.code){e.next=23;break}return e.abrupt("return",i(f.message));case 23:p=f.body.listdata.map((function(e){return e.canSelect=!["staffExt","allStaff"].includes(n.condition.selectDialog),e.name=e.nName,e.title=e.nName,e.photoUrl="/images/m-imgs/contacts/suborg.png",e})),m=o.$scope.simplyToTree(p),t(m),e.next=38;break;case 28:if("subOrg"!==a.type){e.next=38;break}return h="base/organMgr/queryLinkManByPager?orgId="+a.id,v=o.objToFormData({pageNum:1,pageSize:1e4}),e.next=33,o.$http({method:"POST",url:h,data:v});case 33:if(g=e.sent,"success"===g.code){e.next=36;break}return e.abrupt("return",i(g.message));case 36:y=g.body.pageInfo.list.map((function(e){return e.canSelect=!0,e.title=e.name,e.photoUrl="/apigw/base/user/download?id="+e.userId+"&dataField=photoData&nameField=photoName&cacheMaxAge=1800&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),e})),t(y);case 38:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()).then((function(e){var t;"allStaff"===n.condition.selectDialog?(a.children=e.children,o.$scope.treeDataMap[a.id]=a,a.isLoaded=!0,n.$bus.emit("resetHistorySelectedInfo"),n.judgeSeletAllType()):(a.isLoaded=!0,a.children=[].concat(pi(e),pi(null!==(t=null===a||void 0===a?void 0:a.children)&&void 0!==t?t:[])));return o.$forceUpdate(),a.children?!!a.children.length:0})).then((function(e){e?t():o.$toast(n.$tx("common.nothingMore","没有更多了"))}))},handleCellClick:function(e){var t=this.treeNodeList[e];if(t.type&&("rootOrg"===t.type||"subOrg"===t.type&&t.children&&t.children.length>0||0===t.isRealOrg||"treeNode"===t.type))this.popupConfig={currIdx:e,isVisible:!0};else{if(this.condition.multiple){if(this.selected=this.selected.filter((function(e){return e})),t.canSelect){for(var n=!1,a=0;a<this.selected.length;a++)(void 0!==this.selected[a].id&&this.selected[a].id===t.id||void 0!==this.selected[a].index&&this.selected[a].index===t.index)&&(n=!0,this.selected.splice(a--,1));t.checked=!n,n||this.selected.push(t)}}else t.canSelect&&this.$set(this.selected,0,t);this.checkIncludeSelected()}},handleConfirm:function(){this.$emit("update:parent-node",this.parentNode),this.$emit("update:show-popup",!1),this.$emit("update:current-idx",null),this.multiple?this.$emit("change-all"):this.$emit("handle-confirm")},onCellClick:function(e){this.treeNodeClick(e,this)},onPopupClose:function(){this.$scope.showGroup?this.$scope.showGroup=!1:this.$scope.showTeam?this.$scope.showTeam=!1:this.$scope.showSection?this.$scope.showSection=!1:this.$scope.showDepartment&&(this.$scope.showDepartment=!1),this.$emit("update:show-popup",!1),this.$emit("update:current-idx",null),this.multiple&&this.$emit("onPopupClose")}}},Li=ki,Si=(a(2788),(0,Ca.A)(Li,ti,ni,!1,null,"85d5d846",null)),Ti=Si.exports,Di=function(){var e=this,t=e._self._c;return t("div",[t("van-collapse",{attrs:{accordion:""},on:{change:e.onChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.treeNodeList,(function(n,a){return t("van-collapse-item",{key:a,attrs:{title:n.title,name:n.id}},[n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",{attrs:{slot:"value"},slot:"value"},[e._v(e._s(n.selectedNames))]):e._e(),t("van-radio-group",{model:{value:e.$scope.selected[n.index],callback:function(t){e.$set(e.$scope.selected,n.index,t)},expression:"$scope.selected[item.index]"}},[t("van-cell-group",e._l(n.children,(function(a,o){return t("van-cell",{key:o,on:{click:function(t){return e.treeNodeClick(a)}}},[t("template",{slot:"title"},[a.type?e._e():t("van-radio",{ref:"radio_"+a.id,refInFor:!0,attrs:{"parent-item-index":n.index,name:a}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:a.photoUrl}})]),t("span",[e._v(e._s(a.customName||a.name))])],1)],2)})),1)],1)],1)})),1)],1)},Ni=[],Ai={components:{},props:{treeNodeList:{type:Array,default:function(){return[]}},condition:{type:Object,default:function(){return{}}},activeName:{type:String,default:function(){return null}},onChange:{type:Function,default:function(){return null}},treeNodeClick:{type:Function,default:function(){return null}}},data:function(){return{$scope:{},acitveOrg:""}},computed:{},watch:{},created:function(){this.$scope=this.$vnode.context},beforeDestroy:function(){},mounted:function(){},methods:{}},Yi=Ai,Ci=(a(681),(0,Ca.A)(Yi,Di,Ni,!1,null,"43b0ec8c",null)),Oi=Ci.exports,Ii={namespaced:!0,state:function(){return{lazy:!1,isStaff:!1,selected:[],condition:{}}},mutations:{setSelected:function(e,t){e.selected=t},setIsStaff:function(e,t){e.isStaff=t},setCondition:function(e,t){e.condition=t},setLazy:function(e,t){e.lazy=t}}},Ei=Ii;function $i(e){return $i="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},$i(e)}function Pi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pi=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==$i(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError($i(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function ji(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Fi(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){ji(i,a,o,r,s,"next",e)}function s(e){ji(i,a,o,r,s,"throw",e)}r(void 0)}))}}function Hi(e){return Wi(e)||Ri(e)||Ui(e)||Bi()}function Bi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ui(e,t){if(e){if("string"==typeof e)return Vi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(e,t):void 0}}function Ri(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Wi(e){if(Array.isArray(e))return Vi(e)}function Vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){qi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qi(e,t,n){return(t=Gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(e){var t=Ki(e,"string");return"symbol"==$i(t)?t:t+""}function Ki(e,t){if("object"!=$i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=$i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Qi={components:{TreeDialogPopup:Ti,TreeDialogCollapse:Oi,TreeSelectedPopup:li},props:{},data:function(){return{dialogTitle:this.$tx("common.plChoose","请选择"),dialogVisible:!1,areaDialogVisible:!1,isStaff:!1,treeNodeList:[],selected:[],selectedNames:"",callback:null,condition:{},prevSelected:[],activeName:"",searchText:"",searchResult:null,searchSelected:[],searchFocus:!1,dataBackUp:[],isHasChild:!1,showDepartment:!1,showSection:!1,showTeam:!1,showGroup:!1,DepartmentTitle:"",departmentData:"",SectionTitle:"",sectionData:"",TeamTitle:"",TeamData:"",groupTitle:"",groupData:"",isTreeData:!1,ListData:[],byOrgTreeData:null,byWgTreeData:null,byJbTreeData:null,byPrivateWorkgroupData:null,treeNodeVOList:null,treeDataMap:{},showSelectAllNodes:!1,selectAllNodes:!1,groupOrgans:[],openSysCode:"",required:!0,loading:!1,deletePersonPopup:!1,deletePersonPopupObj:{canDeletePerson:[],ref:""},showSelectByTabs:!1,selectByTabsActiveName:"byOrg",selectByTabsOption:[{text:this.$tx("ecmapp.selectDialog.byInstitution","按机构"),value:"byOrg"},{text:this.$tx("ecmapp.selectDialog.byPosition","按岗位"),value:"byJobPosition"},{text:this.$tx("ecmapp.selectDialog.byGroup","按群组"),value:"byWorkgroup"},{text:this.$tx("ecmapp.selectDialog.byCommonGroup","按常用组"),value:"byPrivateWorkgroup"}],canClick:!0,popupConfig:{currIdx:null,isVisible:!1}}},computed:Ji(Ji({},(0,ei.L8)(["loginUser"])),{},{selectedCount:function(){var e=[],t=[];return this.selected.forEach((function(n){n.personId?t.push(n):e.push(n)})),(t.length?t.length+"人":"")+(t.length&&e.length?",":"")+(e.length?e.length+"个部门(含子部门)":"")},totalSelected:function(){var e,t;return null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]},areaValue:function(){var e;return null===(e=this.selected[this.selected.length-1])||void 0===e?void 0:e.id}}),watch:{treeNodeList:{deep:!0,handler:function(){this.judgeSeletAllType()}},selected:function(e){this.$store.commit("selectDialog/setSelected",e)},totalSelected:function(e){this.selected=e},searchText:function(e){this.searchData(e)},showSection:function(e){var t=this;e||this.$nextTick((function(){t.showDepartment=!1}))},showTeam:function(e){var t=this;e||this.$nextTick((function(){t.showSection=!1}))}},created:function(){this.$bus.on("openTreeDialog",this.openTreeDialog),this.$bus.on("selectedPopupDelete",this.selectedPopupDelete),this.$bus.on("resetHistorySelectedInfo",this.resetHistorySelectedInfo)},beforeDestroy:function(){this.$bus.off("resetHistorySelectedInfo",this.resetHistorySelectedInfo),this.$bus.off("selectedPopupDelete",this.selectedPopupDelete),this.$bus.off("openTreeDialog",this.openTreeDialog)},mounted:function(){},methods:{openTreeDialog:function(e,t,n,a,o,i){var r=this;if(this.canClick){this.popupConfig={isVisible:!1,currIdx:null},t["init-tree-data"]=n,this.canClick=!1,this.$store.state.hasOwnProperty("selectDialog")||this.$store.registerModule("selectDialog",Ei),window._store=this.$store,this.dialogVisible=!1,this.areaDialogVisible=!1,this.isTreeData=!1,this.selected=[],this.dialogTitle=e,this.condition=t,this.callback=a,this.showDepartment=!1,this.showSection=!1,this.showTeam=!1,this.showGroup=!1,this.searchResult=null,this.dataBackUp=[],this.groupOrgans=[],this.byOrgTreeData=null,this.byJbTreeData=null,this.byWgTreeData=null,this.byPrivateWorkgroupData=null,this.treeNodeVOList=null,void 0!==o&&null!==o&&(i&&-1!==pSelected.indexOf(i)?this.prevSelected=o.split(i):this.prevSelected=o.replace(/、/g,",").replace(/;/g,",").replace(/,/g,",").split(",")),"staff"!==t.selectDialog||"0"!==t["org-level"]&&"10"!==t["org-level"]||(t.selectDialog="staffExt"),"staff"===t.selectDialog&&"8"===t["org-level"]&&(t.selectDialog="allStaff"),"allNode"===t.selectDialog&&void 0===t["org-level"]&&(t.selectDialog="curOrgNode"),this.lazy=this.isLazy(),!t.multiple||t.oneByOne||"6"===t.todoMode?this.showSelectAllNodes=!1:"staff"!==t.selectDialog&&"staffExt"!==t.selectDialog&&"allStaff"!==t.selectDialog&&"workgroupStaff"!==t.selectDialog&&"jobPositionStaff"!==t.selectDialog&&"wfNodeUser"!==t.selectDialog||(this.showSelectAllNodes=!0),void 0!==t.required&&(this.required=t.required),("allStaff"===t.selectDialog||"staffExt"===t.selectDialog||"staff"===t.selectDialog&&!t["org-level"])&&(this.showSelectByTabs=!0);var s=null;if("allOrg"===t.selectDialog||"allStaff"===t.selectDialog||"allNode"===t.selectDialog||"curOrgNode"===t.selectDialog){this.isStaff=!0,s={method:"GET",url:"base/organMgr/findTreeNodeVOListByNodeId",params:{status:1}};var l=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(l=t["root-org-code"]),"curOrgNode"===t.selectDialog?(s.url="base/organMgr/findTreeNodeVOListByOrgCode",s.params["orgCode"]=l):"allNode"===t.selectDialog&&"0"===t["org-level"]?(s.url="base/organMgr/findGroupOrganByOrgCode",s.params["orgCode"]=l):"10"===t["org-level"]&&(s.url="base/organMgr/findChildOrganByOrgCode",s.params["orgCode"]=l,s.params["self"]=!0),t["node-level"]&&(s.params["nLevelFilter"]=Number(t["node-level"])),t["node-id"]&&(s.params["nodeId"]=t["node-id"],s.params["self"]=!0),t["org-self"]&&(s.params["self"]=t["org-self"])}else if("treeNode"===t.selectDialog||"area"===t.selectDialog)this.isTreeData=!0,s={method:"GET",url:"base/organMgr/findTreeNodeVOListByNodeId",params:{type:t.selectDialog,status:1}},t["node-level"]&&(s.params["nLevelFilter"]=Number(t["node-level"]));else if("rootorg"===t.selectDialog)this.isStaff=!0,t["node-level"]&&(s.params["nLevelFilter"]=Number(t["node-level"])),t["node-id"]&&(s.params["nodeId"]=t["node-id"],s.params["self"]=!0),t["org-type"]&&(s.params["orgType"]=Number(t["org-type"])),s={method:"GET",url:"base/organMgr/findTreeNodeVOListByNodeId",params:{status:1}};else if("suborg"===t.selectDialog){this.isStaff=!0;var d=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(d=t["root-org-code"]);var c="";if(this.condition["org-level"])if(-1!==this.condition["org-level"].indexOf(",")){var u=this.condition["org-level"].split(",");c=u[u.length-1]}else c=this.condition["org-level"];s={method:"GET",url:"base/organMgr/findAllOrganByOrgCode",params:{orgCode:d,subOrgLevel:c}}}else if("suborgExt"===t.selectDialog){this.isStaff=!0;var f=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(f=t["root-org-code"]);var p={orgCode:"group_all_corp:"+f,subOrgLevel:2};if(s={url:"base/organMgr/findAllOrganByOrgCode",method:"GET",contentType:"application/x-www-form-urlencoded",params:p},"10"===t["org-level"])p.orgCode="group_child_corp:"+f,p.self=!0;else if(void 0!==t["org-level"]){var m=t["org-level"].split(",");p.subOrgLevel=m[m.length-1]}}else if("workgroup"===t.selectDialog){var h=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(h=t["root-org-code"]),s={method:"POST",url:"base/workGroup/querydata",data:[{field:"orgCode",compare:"=",value:h},{field:"status",compare:"=",value:1}]}}else if("jobPosition"===t.selectDialog){var v=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(v=t["root-org-code"]),s={method:"POST",url:"base/jobPosition/querydata",data:[{field:"orgCode",compare:"=",value:v},{field:"status",compare:"=",value:1}]}}else if("staff"===t.selectDialog){this.isStaff=!0;var g=t["org-id"],y=t["org-self"],_=t["org-level"],b=t["sub-org-name"],w=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(w=t["root-org-code"]),1===_||"1"===_?s={method:"GET",url:"base/organMgr/findOrgLeaderByOrgCode",params:{orgCode:w,self:y}}:2===_||"2"===_?(this.orgId="",this.$vnode.context.$parent.curTN?this.orgId=this.$vnode.context.$parent.curTN.staffOrgID.split("-")[1]:this.loginUser.staffList.forEach((function(e){r.orgId+=(""===r.orgId?"":",")+e.orgFullId.split("-")[1]})),s={method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:this.orgId,self:y}}):s=void 0!==g&&null!==g&&""!==g?{method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:g,self:y}}:void 0!==b&&null!==b&&""!==b?{method:"GET",url:"base/organMgr/findOrganPersonBySubOrgName",params:{orgCode:w,subOrgName:b,self:y}}:{method:"GET",url:"base/organMgr/findOrganPersonByOrgCode",params:{orgCode:w,self:y}}}else if("jobPositionStaff"===t.selectDialog){this.isStaf=!0;var x=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(x=t["root-org-code"]),s={method:"GET",url:"base/organMgr/findOrganPersonByJobPosition",params:{orgCode:x,jobPositionCode:t["job-position-code"]}},t.selectDialog="staff"}else if("workgroupStaff"===t.selectDialog){this.isStaff=!0;var M=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(M=t["root-org-code"]),s={method:"GET",url:"base/organMgr/findOrganPersonByWorkgroup",params:{orgCode:M,workgroupCode:t["workgroup-code"]}},t.selectDialog="staff"}else if("wfNodeUser"===t.selectDialog){this.isStaff=!0,this.showSelectByTabs=t.showSelectByTabs,this.selectByTabsActiveName="byOrg";var k="";if(n.forEach((function(e){"asyncLoadingUsers"===e.type&&(k+=(""===k?"":",")+(e.orgId||e.parentId))})),""!==k)s={method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:k,self:k.split(",").length>1}},n=null,t.selectDialog="staff";else{this.ListData=n;var L=this.treeDataAdapter(n);if(1===this.groupOrgans.length)for(var S=0;S<L.length;S++)1!==L[S].orgLevel&&1!==L[S].olevel||L.splice(S--,1);this.treeNodeList=this.toTreeNodeList(L),this.resetHistorySelectedInfo(),this.dialogVisible=!0}}else if("staffExt"===t.selectDialog){this.isStaff=!0;var T=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(T=t["root-org-code"]),s={url:"base/organMgr/findGroupOrganByOrgCode",method:"GET",contentType:"application/x-www-form-urlencoded",params:{orgCode:T}},"10"===t["org-level"]&&(s.url="base/organMgr/findChildOrganByOrgCode",s.params.self=!0)}t["option-generate-url"]&&""!==t["option-generate-url"]&&(s={method:t["option-generate-gethod"]||"get",url:t["option-generate-url"]});var D=this;if(null!==s)if("false"!==t["only-cur-sys"]&&!1!==t["only-cur-sys"]&&(this.openSysCode="",this.$vnode.context.$parent.wfInstance?this.openSysCode=this.$vnode.context.$parent.wfInstance.sysCode:this.$vnode.context.process&&this.$vnode.context.process.sysCode?this.openSysCode=this.$vnode.context.process.sysCode:this.$vnode.context.vo&&this.$vnode.context.vo.sysCode?this.openSysCode=this.$vnode.context.vo.sysCode:"eccloud"!==this.loginUser.sysCode&&(this.openSysCode=this.loginUser.sysCode),this.openSysCode&&(s.params||(s.params={}),s.params.openSysCode=this.openSysCode)),null!=n){var N=this.treeDataAdapter(n);this.treeNodeList=this.toTreeNodeList(N),this.isTreeData?this.areaDialogVisible=!0:this.dialogVisible=!0,this.judgeSeletAllType()}else this.isTreeData?this.areaDialogVisible=!0:this.dialogVisible=!0,this.loading=!0,this.$http(s).then((function(e){if(r.loading=!1,"success"===e.code){if(["rootorg","allStaff"].includes(t.selectDialog)){var n=[];e.body.listdata.forEach((function(e){"rootOrg"===e.type&&e.fullID&&e.fullID.split("-").forEach((function(e){-1===n.indexOf(e)&&n.push(e)}))})),e.body.listdata=e.body.listdata.filter((function(e){if("treeNode"!==e.type||-1!==n.indexOf(e.id))return!0}))}r.ListData=e.body.listdata;var a=Hi(e.body.listdata);"rootorg"!==t.selectDialog&&"allNode"!==t.selectDialog&&"allOrg"!==t.selectDialog&&"allStaff"!==t.selectDialog&&"staffExt"!==t.selectDialog&&"suborgExt"!==t.selectDialog||(a=r.filterEmputyNode(a));var o=r.treeDataAdapter(a);D.treeNodeList=r.toTreeNodeList(o),r.treeNodeList instanceof Array&&!r.treeNodeList.length&&(r.treeNodeList=r.simplyToTree(o)),(r.isStaff||"suborg"===t.selectDialog)&&r.resetHistorySelectedInfo(),r.judgeSeletAllType(),r.$nextTick((function(){r.lazy&&r.prevSelected.length>0&&""!==r.prevSelected[0]&&r.lazyLoadDefaultChecked(r.prevSelected)}))}else r.$dialog.alert({message:e.message})}));this.$store.commit("selectDialog/setIsStaff",this.isStaff),this.$store.commit("selectDialog/setSelected",this.selected),this.$store.commit("selectDialog/setCondition",Object.assign({},this.condition,{oldValue:o||""})),setTimeout((function(){r.canClick=!0}),2e3)}},filterEmputyNode:function(e){for(var t=[],n=0;n<e.length;n++){var a=e[n];"rootOrg"===a.type&&(a.fullID&&a.fullID.indexOf("-")>0?(a.isLeaf=1,a.fullID.split("-").forEach((function(e){-1===t.indexOf(e)&&t.push(e)}))):e.splice(n--,1))}return e.filter((function(e){if("treeNode"!==e.type||-1!==t.indexOf(e.id))return!0}))},treeDataAdapter:function(e){var t=this,n=JSON.parse(JSON.stringify(e));this.condition.onSelectTreeDataLoaded&&(n=this.condition.onSelectTreeDataLoaded(n,this.condition));for(var a=function(e){var a=n[e];if(a.type&&(a.type=a.type.replace(/\s*/g,"")),"treeNode"===t.condition.selectDialog||"area"===t.condition.selectDialog)a.pId=a.parentID,a.name=a.nName,a.title=a.name,a.canSelect=!0;else if(["rootorg"].includes(t.condition.selectDialog))a.pId=a.parentID||"root",a.ocode?(a.name=a.nName,a.title=a.name,a.canSelect=!0,a.photoUrl="./images/m-imgs/contacts/group.png",delete a.type):(a.name=a.nName||a.orgFullName,a.title=a.name||a.orgFullName,a.photoUrl="./images/m-imgs/contacts/suborg.png",a.selectedNames="",a.selectedCount=0,a.subOrgSelectedCount=0,a.totalSelectedCount=0);else if("suborg"===t.condition.selectDialog){var i=["2"];if(t.condition["org-level"]?i=t.condition["org-level"].split(","):t.condition["org-level"]="2",a.type="suborg",a.pId=a.parentId,a.title=a.orgFullName,-1!==a.title.indexOf("-")){var r=a.title.split("-");a.title=r[r.length-1]}a.canSelect=1==a.isRealOrg,-1===t.condition["org-level"].indexOf(a.orgLevel+"")&&-1===t.condition["org-level"].indexOf(a.olevel+"")&&(a.canSelect=!1),a.orgLevel>2&&(a.name=a.title),1===a.orgLevel||1===a.olevel?n.splice(e--,1):-1!==t.condition["org-level"].indexOf(a.orgLevel+"")||-1!==t.condition["org-level"].indexOf(a.olevel+"")?0!==a.isRealOrg&&(a.canSelect=!0):(a.orgLevel>i[i.length-1]||a.olevel>i[i.length-1])&&n.splice(e--,1),a.photoUrl="./images/m-imgs/contacts/suborg.png",a.selectedNames="",a.selectedCount=0}else if("staff"===t.condition.selectDialog||"wfNodeUser"===t.condition.selectDialog||"staffExt"===t.condition.selectDialog||"allStaff"===t.condition.selectDialog)if(a.personId){if(!0!==a.collapse||t.condition.onebyone)a.pId=a.parentId||a.groupId||a.orgId,a.pName=a.orgFullName.substring(a.orgFullName.indexOf("-")+1).replace(/-/g,"\\"),a.title=a.pName+"\\"+a.name+"/"+a.account,!0!==t.condition.showmobile&&"true"!==t.condition.showmobile||(a.mobile||(a.mobile=t.$tx("ecmapp.common.nothing","无")),a.name=a.name+"<"+a.mobile+">",a.title=a.name),!0!==t.condition.showemail&&"true"!==t.condition.showemail||(a.email||(a.email=t.$tx("ecmapp.common.nothing","无")),a.name=a.name+"<"+a.email+">",a.title=a.name),!0!==t.condition.showaccount&&"true"!==t.condition.showaccount||(a.showaccount||(a.showaccount=t.$tx("ecmapp.common.nothing","无")),a.name=a.name+"<"+a.showaccount+">",a.title=a.name),a.photoUrl="/apigw/base/user/download?id="+a.userId+"&dataField=photoData&nameField=photoName&cacheMaxAge=1800&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),a.canSelect=!0,a.selectedNames="",a.checked=!1;else for(var s=0;s<n.length;s++)if(n[s].id===a.groupId||n[s].id===a.parentId||n[s].id===a.orgId){var l=n[s].collapseNodes||[];"1"===t.condition.onebyone&&0!==l.length||(l.push(a),n[s].collapseNodes=l,n.splice(e--,1));break}}else a.pId=a.parentID||a.parentId||a.orgId||"-1",a.name=a.nName||a.name,a.title=a.fullName||a.orgFullName,-1!==a.title.indexOf("-")&&(a.title=a.title.substring(a.title.indexOf("-")+1)),0===e&&"true"===t.condition["org-self"]&&(a.open=!0),void 0===a.type&&(1===a.orgLevel?a.type="rootOrg":a.type="subOrg"),a.selectedNames="",a.selectedCount=0,a.subOrgSelectedCount=0,a.totalSelectedCount=0,!0===a.collapse&&"wfNodeUser"!==t.condition.selectDialog?a.canSelect=!0:(a.canSelect=!1,a.code||a.ocode||(a.isLoaded=!0)),a.photoUrl="./images/m-imgs/contacts/suborg.png",t.condition.oneByOne||1!==a.orgLevel&&1!==a.olevel||t.groupOrgans.push(a);else["curOrgNode","allNode","allOrg","suborgExt"].includes(t.condition.selectDialog)?(a.pId=a.pId||a.parentID||a.parentId||a.treeId||-1,a.canSelect=!0,"suborgExt"===t.condition.selectDialog?(a.title=a.name,1===a.orgLevel?(a.type="rootOrg",a.canSelect=!1):a.type="suborg"):(a.name=a.nName||a.orgFullName,a.title=a.nName||a.orgFullName,a.type=a.type||"rootOrg"),"rootOrg"===a.type?a.isLink=!0:"suborg"===a.type&&(a.canSelect=1==a.isRealOrg),a.photoUrl="./images/m-imgs/contacts/suborg.png",a.selectedNames="",a.selectedCount=0):(a.title=a.title||a.name,a.photoUrl="./images/m-imgs/contacts/group.png");if(a.canSelect&&t.prevSelected.length>0){for(var d=0;d<t.prevSelected.length;d++){var c=t.prevSelected[d],u=a.title;-1===c.indexOf("\\")&&u.indexOf("\\")>0&&(u=u.substring(u.lastIndexOf("\\")+1));var f=a.name+"/"+a.account;if(c===a.id||c===a.name&&"suborg"!==t.condition.selectDialog&&"suborgExt"!==t.condition.selectDialog||c===a.name&&2===a.orgLevel||c===u||c===f||a.code&&c===a.code){for(var p=0;p<t.selected.length;p++)t.selected[p].id===c&&t.selected.splice(p--,1);t.selected.push(a),a.checked=!0,a.selectedIndex=d,t.prevSelected[d]="removed";break}}t.lazy&&t.selected.forEach((function(e){e&&e.id===a.id&&(a.checked=!0)}))}o=e},o=0;o<n.length;o++)a(o);return!0===this.showSelectByTabs&&("byOrg"!==this.selectByTabsActiveName||this.byOrgTreeData?"byWorkgroup"!==this.selectByTabsActiveName||this.byWgTreeData?"byJobPosition"!==this.selectByTabsActiveName||this.byJbTreeData?"byPrivateWorkgroup"!==this.selectByTabsActiveName||this.byPrivateWorkgroupData||(this.byPrivateWorkgroupData=JSON.parse(JSON.stringify(n))):this.byJbTreeData=JSON.parse(JSON.stringify(n)):this.byWgTreeData=JSON.parse(JSON.stringify(n)):(this.byOrgTreeData=JSON.parse(JSON.stringify(n)),this.treeNodeVOList=JSON.parse(JSON.stringify(e)))),n},isLazy:function(){var e=!1,t=this.condition.selectDialog;return"allStaff"!==t&&"allOrg"!==t&&"allNode"!==t&&"curOrgNode"!==t&&"staffExt"!==t||this.condition["option-generate-url"]||this.condition["init-tree-data"]||(e=!0),e},selectAllNodesClick:function(){var e=this;function t(n){for(var a=0;a<n.length;a++)n[a].personId||(n[a].selectedNames&&(n[a].selectedNames=""),n[a].selectedCount&&(n[a].selectedCount=0),n[a].subOrgSelectedCount&&(n[a].subOrgSelectedCount=0),n[a].totalSelectedCount&&(n[a].totalSelectedCount=0)),n[a].canSelect&&(n[a].checked=e.selectAllNodes,e.selectAllNodes&&e.selected.push(n[a])),n[a].children&&n[a].children.length>0&&t(n[a].children)}this.selected=[],t(this.treeNodeList),this.resetHistorySelectedInfo(),this.$forceUpdate()},judgeSeletAllType:function(){var e=this;setTimeout((function(){var t=[];function n(e){for(var a=0;a<e.length;a++)e[a].canSelect&&t.push(e[a]),e[a].children&&e[a].children.length>0&&n(e[a].children)}n(e.treeNodeList),e.selectAllNodes=t.length===e.selected.length&&0!==e.selected.length}),0)},simplyToTree:function(e){var t=[],n=e.reduce((function(e,t){return delete t.children,e[t.id]=t,e}),{});return e.forEach((function(e){e.parentID&&n[e.parentID]?n[e.parentID].children?n[e.parentID].children.push(n[e.id]):n[e.parentID].children=[n[e.id]]:t.push(n[e.id])})),t},toTreeNodeList:function(e,t){var n=this,a=this,o=[];if(!Array.isArray(e))return o;if(t||(this.treeDataMap={}),e.forEach((function(e){(!n.condition.oneByOne||e.orgLevel>1)&&(n.treeDataMap[e.id]=e),n.condition.oneByOne&&2===e.orgLevel&&(e.title=e.orgFullName)})),this.isTreeData){e.forEach((function(e){var t=n.treeDataMap[e.pId];t&&t.nLevel>=1?t.children?t.children.push(e):t.children=[e]:null===e.pId&&o.push(e)}));var i={province_list:{},city_list:{},county_list:{}};return o.forEach((function(e,t){i.province_list.count||(i.province_list.count=9),i.province_list.count++,6===e.id.length?e.areaValue=e.id.substring(0,2):e.areaValue=i.province_list.count,i.province_list[e.areaValue+"0000"]=e.nName||e.name,e.children&&e.children.length>0&&e.children.forEach((function(t){i.city_list[e.fullName]||(i.city_list[e.fullName]={count:0}),i.city_list[e.fullName].count++,n.prevSelected.length>0&&n.prevSelected[0]===e.fullName&&n.selected.push(e.areaValue),6===t.id.length?t.areaValue=e.areaValue+t.id.substring(2,4):t.areaValue=e.areaValue+(i.city_list[e.fullName].count<10?"0":"")+i.city_list[e.fullName].count,i.city_list[t.areaValue+"00"]=t.nName||t.name,n.prevSelected.length>0&&n.prevSelected[0]===t.fullName&&n.selected.push(t.areaValue),t.children&&t.children.length>0&&t.children.forEach((function(e){i.county_list[t.fullName]||(i.county_list[t.fullName]={count:0}),i.county_list[t.fullName].count++,6===e.id.length?e.areaValue=t.areaValue+e.id.substring(4):e.areaValue=t.areaValue+(i.county_list[t.fullName].count<10?"0":"")+i.county_list[t.fullName].count,i.county_list[e.areaValue]=e.nName||e.name,n.prevSelected.length>0&&n.prevSelected[0]===e.fullName&&n.selected.push(e.areaValue)}))}))})),delete i.province_list.count,i}return e.forEach((function(e){var i=a.treeDataMap[e.pId];if(i){var r=i.children||(i.children=[]);if(n.lazy&&t&&"rootOrg"===e.type?o.push(e):r.push(e),["rootorg","allNode","allOrg","allStaff","staffExt"].includes(a.condition.selectDialog)&&(!e.type||n.lazy&&"rootOrg"===e.type)){var s=i;while(s)s.organCounts=(s.organCounts||0)+1,s=a.treeDataMap[s.pId]}}else!e.pId&&a.isStaff||o.push(e);n.lazy&&"rootOrg"===e.type&&(e.organCounts=1)})),o.forEach((function(e,t){e.index=t})),["rootorg","allNode","allOrg","allStaff","staffExt"].includes(a.condition.selectDialog)?o=a.clearEmptyTreeNode(o):"staff"===a.condition.selectDialog&&(o=a.clearEmptyOrgNode(o)),o},clearEmptyTreeNode:function(e){for(var t=0;t<e.length;t++)e[t].type&&(e[t].organCounts?e[t].children&&this.clearEmptyTreeNode(e[t].children):e.splice(t--,1));return e},clearEmptyOrgNode:function(e){for(var t=0;t<e.length;t++)e[t].type&&(e[t].personId||e[t].children&&0!==e[t].children?e[t].children&&this.clearEmptyOrgNode(e[t].children):e.splice(t--,1));return e},resetHistorySelectedInfo:function(){var e=this;this.condition.oneByOne?this.treeNodeList.forEach((function(e,t){e.index=t})):"selectedIndex"===this.condition.selectedOrderBy&&this.selected.sort((function(e,t){return e.selectedIndex-t.selectedIndex}));var t=[];this.selected.forEach((function(t){var n=e.treeDataMap[t.pId];n&&(n.selectedNames="",n.selectedCount=0,n.subOrgSelectedCount=0,n.totalSelectedCount=0)})),this.selected.forEach((function(n){if(n&&e.treeDataMap[n.pId]){var a=e.treeDataMap[n.pId];n.checked=!1,e.setOrgSelectedInfo(a,n,!0),void 0!==a&&(t[a.index]=n,e.updateSelectedInfo(e.treeDataMap[a.pId],a),void 0!==e.treeDataMap[a.pId]&&(a=e.treeDataMap[a.pId],e.updateSelectedInfo(e.treeDataMap[a.pId],a),void 0!==e.treeDataMap[a.pId]&&(a=e.treeDataMap[a.pId],e.updateSelectedInfo(e.treeDataMap[a.pId],a),void 0!==e.treeDataMap[a.pId]&&(a=e.treeDataMap[a.pId],e.updateSelectedInfo(e.treeDataMap[a.pId],a)))))}})),this.condition.oneByOne&&t.length>0&&(this.selected=t)},searchData:function(e){var t=this,n=this;if(this.searchSelected=[],""!==e)if(this.condition.multiple&&this.condition.oneByOne){this.dataBackUp=JSON.parse(JSON.stringify(this.treeNodeList));for(var a=0;a<this.dataBackUp.length;a++){if(this.dataBackUp[a].children)for(var o=0;o<this.dataBackUp[a].children.length;o++){var i=this.dataBackUp[a].children[o];(!i.account||-1===i.name.indexOf(e)&&-1===i.account.indexOf(e))&&this.dataBackUp[a].children.splice(o--,1)}0===this.dataBackUp[a].children.length&&this.dataBackUp.splice(a--,1)}this.searchResult=this.dataBackUp}else{0===this.dataBackUp.length&&(this.dataBackUp=this.treeDataToArray(JSON.parse(JSON.stringify(this.treeNodeList))));for(var r=[],s=0;s<this.dataBackUp.length;s++)this.isStaff?(this.dataBackUp[s].children||(this.dataBackUp[s].children=[this.dataBackUp[s]]),this.dataBackUp[s].children.forEach((function(n){void 0!==n.personId?-1===n.name.indexOf(e)&&-1===(n.account&&n.account.indexOf(e))||(r.push(n),void 0!==t.treeDataMap[n.id]&&t.treeDataMap[n.id].checked&&t.searchSelected.push(n)):(n.ocode||n.collapse||n.orgLevel)&&(n.name.indexOf(e)>-1||(n.ocode&&n.ocode.indexOf(e))>-1)&&(r.push(n),void 0!==t.treeDataMap[n.id]&&t.treeDataMap[n.id].checked&&t.searchSelected.push(n))}))):-1!==n.dataBackUp[s].name.indexOf(e)&&(r.push(n.dataBackUp[s]),void 0!==n.treeDataMap[this.dataBackUp[s].id]&&n.treeDataMap[n.dataBackUp[s].id].checked&&n.searchSelected.push(this.dataBackUp[s]));this.searchResult=r}else this.searchResult=null},treeDataToArray:function(e){function t(e,n){n.children&&n.children.forEach((function(n){!n.type||"subOrg"!==n.type&&"treeNode"!==n.type?e.push(n):t(e,n)}))}return e.forEach((function(e){e.children&&e.children.forEach((function(n,a){!n.type||"subOrg"!==n.type&&"suborg"!==n.type&&"treeNode"!==n.type||t(e.children,n)}))})),e},onSelectByTabsHandleClick:function(e){var t=this,n=this;n.lazy=!1,n.treeNodeList=[];var a=null;"byWorkgroup"===e?a=this.byWgTreeData:"byJobPosition"===e?a=this.byJbTreeData:"byPrivateWorkgroup"===e?a=this.byPrivateWorkgroupData:(a=this.byOrgTreeData,n.lazy=this.isLazy());var o="";if(this.showSelectByTabs&&this.selected.length>0&&this.selected.forEach((function(e){""!==o&&(o+=","),o+=e.id})),null===a){var i=[];this.treeNodeVOList.forEach((function(e){(1===e.isRealOrg&&1===e.orgLevel||"rootOrg"===e.type)&&i.push(e.code||e.ocode)})),0===i.length&&i.push(n.loginUser.orgCode);var r={method:"POST",url:"base/organMgr/findLinkManByGroupType",params:{orgCodes:i.join(),byType:e}};n.$http(r).then((function(i){if("success"===i.code){var r,s=[];if("staff"===t.condition.selectDialog||"byWorkgroup"!==e&&"byJobPosition"!==e)s=i.body.listdata;else s=JSON.parse(JSON.stringify(t.treeNodeVOList)),(r=s).push.apply(r,Hi(i.body.listdata));n.prevSelected=o.split(","),a=n.treeDataAdapter(s),n.treeNodeList=n.toTreeNodeList(a),n.resetHistorySelectedInfo()}else n.$dialog.alert({message:i.message})}))}else""!==o&&a.forEach((function(e){if(-1!==o.indexOf(e.id)){for(var n=0;n<t.selected.length;n++)t.selected[n].id===e.id&&t.selected.splice(n--,1);t.selected.push(e),e.checked=!0}})),n.treeNodeList=n.toTreeNodeList(a),n.resetHistorySelectedInfo()},submitSearchForm:function(){this.condition.multiple?this.searchText="":this.submitForm()},dataDecrypt:function(e){var t=this;return new Promise(function(){var n=Fi(Pi().mark((function n(a,o){var i,r,s,l,d,c,u;return Pi().wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(i=[],r="sm4",s=0;s<e.length;s++)for(l in e[s])"string"===typeof e[s][l]&&"{"===e[s][l].substring(0,1)&&"}"===e[s][l].substring(e[s][l].length-1)&&(d=JSON.parse(e[s][l]),r=d.enMode,e[s].dataIndex=s,i.push(e[s]));if(!(i.length>0)){n.next=10;break}return n.next=6,t.$http({url:"/common/dataDecrypt",method:"post",headers:{"Content-Type":"application/json"},data:{enMode:r,data:JSON.stringify(i)}});case 6:c=n.sent,"success"===c.code&&(t.condition.multiple?(u=JSON.parse(c.body.data),u.forEach((function(t){e[t.dataIndex]=t}))):e[0]=JSON.parse(c.body.data),a(!0)),n.next=11;break;case 10:a(!0);case 11:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())},submitForm:function(){var e=this;return Fi(Pi().mark((function t(){var n,a;return Pi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(n=0;n<e.selected.length;n++)e.selected[n]||e.selected.splice(n--,1);if(0!==e.selected.length||!1===e.required){t.next=5;break}return e.dialogTitle=e.dialogTitle||"",e.$dialog.alert({message:e.$tx("common.plChooseContent",{content:e.dialogTitle.replace("管理","").replace("请选择","").replace("请选择","")},"请选择".concat(e.dialogTitle.replace("管理","").replace("请选择","").replace("请选择","")))}),t.abrupt("return");case 5:return a=e.selected.map((function(e){return delete e.children,e})),t.next=8,e.dataDecrypt(a);case 8:e.closeDialog({code:"success",value:a});case 9:case"end":return t.stop()}}),t)})))()},handleConfirm:function(){this.submitForm(),this.popupConfig={isVisible:!1,currIdx:null}},closeDialog:function(e){this.$store.state.hasOwnProperty("selectDialog")&&this.$store.unregisterModule("selectDialog"),void 0===e&&(e={code:"cancel",value:""}),this.callback(e),this.dialogVisible=!1,this.treeNodeList=[],this.selected=[],this.searchResult=null,this.selectByTabsActiveName="byOrg",this.searchText="",this.isStaff=!1,this.isTreeData=!1},updateSelectedInfo:function(e,t){var n=[];t.children&&t.children.forEach((function(e){e.checked&&n.push(e)})),n.sort((function(e,t){return e.selectedIndex-t.selectedIndex}));var a="";if(n.forEach((function(e){""===a?a=e.name:1===a.split("、").length&&(a+="、"+e.name)})),t.children&&t.children.forEach((function(e){e.type&&""!==e.selectedNames&&(""===a?a=e.selectedNames:1===a.split("、").length&&(a+="、"+e.selectedNames.split("、")[0]))})),t.selectedNames=a,void 0!==e&&null!==e&&e.children){var o=0;e.children.forEach((function(e){e.type&&(o+=e.totalSelectedCount)})),e.subOrgSelectedCount=o,e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount}"staffExt"===this.condition.selectDialog&&t&&t.code&&this.treeNodeList.forEach((function(e){e.id===t.id&&(e.selectedNames=t.selectedNames,e.selectedCount=t.selectedCount,e.subOrgSelectedCount=t.subOrgSelectedCount,e.totalSelectedCount=t.totalSelectedCount)})),this.$forceUpdate(),this.judgeSeletAllType()},objToFormData:function(e){var t=new FormData;for(var n in e)t.append(n,e[n]);return t},lazyLoadDefaultChecked:function(e){var t=this,n=this.condition["root-org-code"];if(void 0===n&&(n=this.loginUser.orgCode),e=e.filter((function(e){return"removed"!==e})),e.length>0){var a={method:"POST",url:"base/organMgr/findLazyLoadDefaultChecked",contentType:"application/x-www-form-urlencoded",data:e,params:{selectType:this.condition.selectDialog,orgCode:n}};this.$http(a).then((function(e){"success"===e.code&&(t.treeDataAdapter(e.body.listdata),"staffExt"===t.condition.selectDialog?t.treeNodeList.forEach((function(e){e.selectedCount=0,e.selectedNames="",e.subOrgSelectedCount=0,e.totalSelectedCount=0,t.selected.forEach((function(t){t.orgFullId.indexOf(e.orgFullId)>-1&&(""===e.selectedNames?e.selectedNames=t.name:1===e.selectedNames.split("、").length&&(e.selectedNames+="、"+t.name),e.subOrgSelectedCount++)})),e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount})):"allStaff"===t.condition.selectDialog&&t.treeNodeList.forEach((function(e){e.selectedCount=0,e.selectedNames="",e.subOrgSelectedCount=0,e.totalSelectedCount=0,e.children&&e.children.length>0&&e.children.forEach((function(n){n.selectedCount=0,n.selectedNames="",n.subOrgSelectedCount=0,n.totalSelectedCount=0,t.selected.forEach((function(t){t.orgFullId.indexOf(n.id)>-1&&(""===n.selectedNames?n.selectedNames=t.name:1===n.selectedNames.split("、").length&&(n.selectedNames+="、"+t.name),""===e.selectedNames?e.selectedNames=t.name:1===e.selectedNames.split("、").length&&(e.selectedNames+="、"+t.name),n.subOrgSelectedCount++,e.subOrgSelectedCount++)})),n.totalSelectedCount=n.selectedCount+n.subOrgSelectedCount})),e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount})))}))}},loadChildNode:function(e,t){var n=this,a=this.treeNodeList[e];if(!a.collapse||"wfNodeUser"===this.condition.selectDialog){var o=this;return!this.lazy||a.isLoaded?t():"allOrg"===this.condition.selectDialog&&["subOrg","treeNode"].includes(a.type)?"subOrg"!==a.type&&t():void new Promise(function(){var e=Fi(Pi().mark((function e(t,i){var r,s,l,d,c,u,f,p,m,h,v,g,y;return Pi().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("staffExt"!==n.condition.selectDialog){e.next=16;break}return o.$toast.loading({message:n.$tx("common.loading","正在加载..."),forbidClick:!0,duration:0}),r="/base/organMgr/findOrganPersonByOrgCode?orgCode=".concat(a.code),n.openSysCode&&(r+="&openSysCode="+n.openSysCode),e.next=6,o.$http({method:"get",url:r});case 6:if(s=e.sent,"success"===s.code){e.next=9;break}return e.abrupt("return",i(s.message));case 9:o.selected=o.selected.filter((function(e){return e})),l=o.treeDataAdapter([a].concat(Hi(s.body.listdata))),d=o.toTreeNodeList(l,"staffExt"),d instanceof Array&&!d.length&&(d=o.simplyToTree(l)),t(d[0]),e.next=41;break;case 16:if("rootOrg"!==a.type&&"treeNode"!==a.type){e.next=30;break}return o.$toast.loading({message:n.$tx("common.loading","正在加载..."),forbidClick:!0,duration:0}),c="base/organMgr/findTreeNodeVOListByOrgId",u={orgId:a.id,self:!1,status:1},e.next=22,o.$http({method:"GET",url:c,params:u});case 22:if(f=e.sent,"success"===f.code){e.next=25;break}return e.abrupt("return",i(f.message));case 25:p=f.body.listdata.map((function(e){return e.canSelect=!["staffExt","allStaff"].includes(n.condition.selectDialog),e.name=e.nName,e.title=e.nName,e.photoUrl="./images/m-imgs/contacts/suborg.png",e})),m=o.simplyToTree(p),t(m),e.next=41;break;case 30:if("subOrg"!==a.type){e.next=41;break}return o.$toast.loading({message:n.$tx("common.loading","正在加载..."),forbidClick:!0,duration:0}),h="base/organMgr/queryLinkManByPager?orgId="+a.id,v=o.objToFormData({pageNum:1,pageSize:1e4}),e.next=36,o.$http({method:"POST",url:h,data:v});case 36:if(g=e.sent,"success"===g.code){e.next=39;break}return e.abrupt("return",i(g.message));case 39:y=g.body.pageInfo.list.map((function(e){return e.canSelect=!0,e.title=e.name,e.photoUrl="/apigw/base/user/download?id="+e.userId+"&dataField=photoData&nameField=photoName&cacheMaxAge=1800&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),e})),t(y);case 41:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()).then((function(e){var t;(o.$toast.clear(),"staffExt"===n.condition.selectDialog)?(a.children=e.children,o.treeDataMap[a.id]=a,a.isLoaded=!0,n.$bus.emit("resetHistorySelectedInfo"),n.judgeSeletAllType()):(a.isLoaded=!0,a.children=[].concat(Hi(e),Hi(null!==(t=null===a||void 0===a?void 0:a.children)&&void 0!==t?t:[])));return o.$forceUpdate(),a.children?!!a.children.length:0})).then((function(e){e?t():o.$toast(n.$tx("common.nothingMore","没有更多了"))}))}"6"===this.condition.todoMode?this.selected=[a]:this.selected.push(a)},handleCellClick:function(e){var t=this.treeNodeList[e];if(t.type&&("rootOrg"===t.type||"treeNode"===t.type)||("suborg"===t.type||"subOrg"===t.type)&&t.children)return this.popupConfig={currIdx:e,isVisible:!0},void this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}));if(this.condition.multiple){if(t.canSelect){for(var n=!1,a=0;a<this.selected.length;a++)(void 0!==this.selected[a].id&&this.selected[a].id===t.id||void 0!==this.selected[a].index&&this.selected[a].index===t.index)&&(n=!0,this.selected.splice(a--,1));n||this.selected.push(t)}}else t.canSelect&&this.$set(this.selected,0,t)},chooseDepartment:function(e){if("string"===typeof e&&this.treeNodeList.forEach((function(t){t.id===e&&(e=t)})),this.condition.multiple){if(e.canSelect){for(var t=!1,n=0;n<this.selected.length;n++)(void 0!==this.selected[n].id&&this.selected[n].id===e.id||void 0!==this.selected[n].index&&this.selected[n].index===e.index)&&(t=!0,this.selected.splice(n--,1));t||this.selected.push(e)}}else e.canSelect&&(this.selected[0]=e);!e.type||"rootOrg"!==e.type&&"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type||(this.DepartmentTitle=e.title,this.departmentData=e,this.showDepartment=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},chooseSection:function(e,t){!e.type||"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type?this.setOrgSelectedInfo(this.departmentData,e,null,t):(this.SectionTitle=e.title,this.sectionData=e,this.showSection=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},choosetTeam:function(e,t){!e.type||"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type?this.setOrgSelectedInfo(this.sectionData,e,null,t):(this.TeamTitle=e.title,this.TeamData=e,this.showTeam=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},choosetGroup:function(e,t){!e.type||"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type?this.setOrgSelectedInfo(this.TeamData,e,null,t):(this.groupTitle=e.title,this.groupData=e,this.showGroup=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},choosetStaff:function(e,t){this.setOrgSelectedInfo(this.groupData,e,null,t),this.judgeSeletAllType()},chooseListitem:function(e){if(this.condition.multiple){if(e.canSelect){for(var t=!1,n=0;n<this.selected.length;n++)this.selected[n].id===e.id&&(t=!0,this.selected.splice(n--,1));t||this.selected.push(e)}}else e.canSelect&&(this.selected[0]=e);0!==e.isRealOrg?this.condition.multiple?e.checked=!e.checked:(this.treeNodeList.forEach((function(e){e.checked=!1,0===e.isRealOrg&&(e.selectedNames="",e.selectedCount=0)})),this.$forceUpdate(),e.checked=!0):(this.DepartmentTitle=e.title,this.departmentData=e,this.showDepartment=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},coohseSearchItem:function(e,t){var n=e.pId;if(!this.treeDataMap[n]||"staff"!==this.condition.selectDialog&&"wfNodeUser"!==this.condition.selectDialog&&"suborg"!==this.condition.selectDialog&&"rootorg"!==this.condition.selectDialog)this.treeDataMap[e.id]&&this.chooseListitem(this.treeDataMap[e.id]);else{var a=this.treeDataMap[n];this.setOrgSelectedInfo(a,this.treeDataMap[e.id]),void 0!==a&&(this.updateSelectedInfo(this.treeDataMap[a.pId],a),void 0!==this.treeDataMap[a.pId]&&(a=this.treeDataMap[a.pId],this.updateSelectedInfo(this.treeDataMap[a.pId],a),void 0!==this.treeDataMap[a.pId]&&(a=this.treeDataMap[a.pId],this.updateSelectedInfo(this.treeDataMap[a.pId],a))))}for(var o={},i=0;i<this.selected.length;i++)this.selected[i].checked?o[this.selected[i].id]=this.selected[i]:this.selected.splice(i--,1);if(this.condition.multiple){for(var r=!1,s=0;s<this.searchSelected.length;s++)this.searchSelected[s].id===e.id&&(r=!0,this.searchSelected.splice(s--,1));!r&&e.canSelect&&this.searchSelected.push(e)}else e.canSelect&&(this.searchSelected[0]=e);for(var l=0;l<this.searchSelected.length;l++)this.treeDataMap[this.searchSelected[l].id].checked?this.condition.multiple?void 0===o[this.searchSelected[l].id]&&this.selected.push(this.treeDataMap[this.searchSelected[l].id]):this.selected[0]=this.treeDataMap[this.searchSelected[0].id]:this.searchSelected.splice(l--,1)},setOrgSelectedInfo:function(e,t,n,a){if(this.condition.multiple&&!this.condition.oneByOne){if(!n){var o=this.$refs["checkboxes_"+t.id];void 0===o&&a&&(o=a.$refs["checkboxes_"+t.id]),void 0!==o&&o.length>0&&o[0].toggle()}t.checked=!t.checked,t.checked?e.selectedCount++:e.selectedCount--,e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount,0===e.selectedCount?e.selectedNames="":1===e.selectedCount?e.selectedNames=t.shortName||t.name:2===e.selectedCount&&(e.selectedNames+="、"+(t.shortName||t.name))}else{if(this.condition.oneByOne){for(var i=0;i<this.selected.length;i++)this.selected[i]&&(this.selected[i].orgId!=t.orgId&&this.selected[i].groupId!=t.groupId||this.selected.splice(i--,1));if(!t.checked){var r=this.$refs["collapse"].$refs["radio_"+t.id][0];this.selected[r.$el.attributes["parent-item-index"].value]=t}}else this.condition.multiple||(this.selected=[t]),this.ListData.forEach((function(e){e.type?(e.selectedNames="",e.selectedCount=0,e.totalSelectedCount=0,e.subOrgSelectedCount=0):e.checked=!1}));t.checked=!0,t.checked?e.selectedCount=1:e.selectedCount=0,e.totalSelectedCount=e.selectedCount,0===e.selectedCount?e.selectedNames="":1===e.selectedCount&&(e.selectedNames=t.shortName||t.name),this.searchResult&&this.searchResult.length>0&&this.searchResult.forEach((function(t){t.id===e.id&&(t.selectedNames=e.selectedNames,t.selectedCount=e.selectedCount)}))}this.$forceUpdate(),this.judgeSeletAllType()},cancelCity:function(){this.isTreeData=!1,this.treeNodeList=[],this.areaDialogVisible=!1},confirmCity:function(e){var t=[],n=this;this.ListData.forEach((function(a,o){var i=(n.treeDataMap[a.id].areaValue||"")+"";2===i.length?i+="0000":4===i.length&&(i+="00"),e.forEach((function(e){e&&i===e.code&&(a.title=a.nName,t.push(a))}))})),this.callback({code:"success",value:t}),this.cancelCity()},viewSelectPersons:function(e,t){this.deletePersonPopupObj.ref=e;var n=this,a=[];function o(e){e.forEach((function(e){e.children&&e.children.length>0?o(e.children):n.selected.filter((function(t){t.id===e.id&&a.push(e)}))}))}"treeData"===e||"search"===e?this.deletePersonPopupObj.canDeletePerson=this.selected:(o(t.children||[]),this.deletePersonPopupObj.canDeletePerson=a),this.deletePersonPopup=!0},selectedPopupDelete:function(e){var t=this;function n(t){t.forEach((function(t){t.personId||(void 0!==t.selectedNames&&(t.selectedNames=""),void 0!==t.selectedCount&&(t.selectedCount=0),void 0!==t.subOrgSelectedCount&&(t.subOrgSelectedCount=0),void 0!==t.totalSelectedCount&&(t.totalSelectedCount=0)),t.id===e?t.checked=!1:t.children&&t.children.length>0&&n(t.children)}))}n(this.treeNodeList),this.$nextTick((function(){t.resetHistorySelectedInfo(),t.judgeSeletAllType()})),this.$forceUpdate()},deletePopupPerson:function(e){var t=this;if("search"!==this.deletePersonPopupObj.ref){o(this.treeNodeList);for(var n=0;n<this.deletePersonPopupObj.canDeletePerson.length;n++)if(this.deletePersonPopupObj.canDeletePerson[n].id===e.id){this.deletePersonPopupObj.canDeletePerson[n].checked=!1,this.deletePersonPopupObj.canDeletePerson.splice(n--,1);break}for(var a=0;a<this.selected.length;a++)if(this.selected[a].id===e.id){this.selected.checked=!1,this.selected.splice(a--,1);break}this.$nextTick((function(){t.resetHistorySelectedInfo(),t.judgeSeletAllType()})),this.$forceUpdate()}else this.coohseSearchItem(e);function o(t){t.forEach((function(t){t.personId||(void 0!==t.selectedNames&&(t.selectedNames=""),void 0!==t.selectedCount&&(t.selectedCount=0),void 0!==t.subOrgSelectedCount&&(t.subOrgSelectedCount=0),void 0!==t.totalSelectedCount&&(t.totalSelectedCount=0)),t.id===e.id?t.checked=!1:t.children&&t.children.length>0&&o(t.children)}))}}}},Zi=Qi,Xi=(a(1231),(0,Ca.A)(Zi,Zo,Xo,!1,null,"3ff50713",null)),er=Xi.exports,tr=function(){var e=this,t=e._self._c;return t("PopupDialog",{attrs:{showpop:e.dialogVisible,title:e.dialogTitle,"on-cancel":e.closeDialog},on:{"update:showpop":function(t){e.dialogVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):e._e(),t("div",{staticClass:"popup-content"},[t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.wflowList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.name,clickable:""},on:{click:function(t){return e.toggle(a)}}},[t("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{slot:"right-icon",name:n.value},slot:"right-icon"})],1)})),1)],1)],1),e.loading?e._e():t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitForm}},[e._v("确 定")])],1)],1)},nr=[],ar={name:"WfNamesDialog",components:{},props:{},data:function(){return{dialogTitle:this.$tx("common.plChoose","请选择"),dialogVisible:!1,loading:!1,callback:null,wflowList:[],selected:"".split(","),moduleInfo:{queryWfDataUrl:"workflow/wfdProcessMgr/queryValidProcess"}}},computed:{curUser:function(){return this.$store.getters.loginUser}},watch:{},created:function(){this.$bus.on("openWfNamesDialog",this.openWfNamesDialog)},beforeDestroy:function(){this.$bus.off("openWfNamesDialog",this.openWfNamesDialog)},mounted:function(){},methods:{toggle:function(e){this.$refs.checkboxes[e].toggle()},openWfNamesDialog:function(e,t,n,a){var o=this;if(this.dialogTitle=e,this.callback=n,0===this.wflowList.length){this.loading=!0;var i=this.curUser.sysCode;this.$vnode.context.$vnode.context.wfInstance?i=this.$vnode.context.$vnode.context.wfInstance.sysCode:this.$vnode.context.$vnode.context.vo&&this.$vnode.context.$vnode.context.vo.sysCode&&(i=this.$vnode.context.$vnode.context.vo.sysCode),this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{sysCode:i},url:this.moduleInfo.queryWfDataUrl}).then((function(e){if("success"===e.code){var n="";e.body.listdata.forEach((function(e){"processNo"===t&&-1===n.indexOf(e.processNo+",")?(o.wflowList.push({id:e.id,value:e.processNo,name:e.name}),n+=e.processNo+","):"name"===t&&-1===n.indexOf(e.name+",")&&(o.wflowList.push({id:e.id,value:e.name,name:e.name}),n+=e.name+",")})),void 0===a||null===a?o.selected=[]:"string"===typeof a&&(o.selected=a.split(","))}else o.$dialog.alert(e.message);o.loading=!1}))}this.dialogVisible=!0},submitForm:function(){0===this.selected.length?this.$dialog.alert({message:this.$tx("common.plChoose","请选择")}):(this.callback({code:"success",value:this.selected.join(",")}),this.dialogVisible=!1)},closeDialog:function(){this.callback({code:"cancel",value:null}),this.dialogVisible=!1}}},or=ar,ir=(a(7889),(0,Ca.A)(or,tr,nr,!1,null,"0685b481",null)),rr=ir.exports,sr={name:"SelectDialog",components:{ListitemDialog:Ro,DatetimePicker:Qo,TreeDialog:er,WfNamesDialog:rr},data:function(){return{}},created:function(){this.$options.components["ListpageDialog"]=this.$loadComponent("@/mapp/common/components/ListpageDialog/index"),this.$store.registerModule("selectDialog",Ei)},beforeDestroy:function(){this.$store.unregisterModule("selectDialog")}},lr=sr,dr=(0,Ca.A)(lr,$o,Po,!1,null,null,null),cr=dr.exports;cr.install=function(e){e.component(cr.name,cr)};var ur=cr,fr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"data-table-container",on:{touchstart:e.listTouchstart}},[e.navTabList.length>1?t("div",[e.advancedSearch.show?t("span",{staticClass:"tab-search",class:{"add-search":1===e.listStyle.search},on:{click:function(t){e.showSearch=!e.showSearch}}},[t("van-icon",{attrs:{name:"bars"}})],1):e._e(),t("van-tabs",{ref:"tabs",staticClass:"out-tbs",class:{show_search:e.advancedSearch.show&&0===e.listStyle.search},attrs:{border:!0,ellipsis:!1},on:{click:e.onTabClick},model:{value:e.tabActive,callback:function(t){e.tabActive=t},expression:"tabActive"}},e._l(e.navTabList,(function(n,a){return t("van-tab",{key:a,attrs:{title:n.name}},[e.showTabApp?[e.forceUpdate?e._e():t("tab-app",{attrs:{tab:e.navTabList[e.tabActive]}})]:[e.tabActive===a?t("search",{ref:"search",refInFor:!0,attrs:{"list-style":e.listStyle,"show-search":e.showSearch,"tb-columns":e.tbColumns,"advanced-search":e.advancedSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t}}},[t("template",{slot:"search-left"},[e._t("search-left")],2),t("template",{slot:"search-right"},[e._t("search-right")],2),[e._t("searchpopu")],t("template",{slot:"dropdownitem"},[e._t("dropdownitem")],2)],2):e._e(),t("div",{staticClass:"list-table-top",staticStyle:{width:"100%"}},[e._t("listtop")],2),e.tabActive==a+""?[t("table-list",{ref:"tableList",refInFor:!0,attrs:{"check-all-align":e.checkAllAlign,"checked-all":e.checkedAll,"empty-text":e.emptyText,"empty-img":e.emptyImg,"force-update":e.forceUpdate,finished:e.finished,iserror:e.error,"long-press":e.longPress,"list-loading":e.listLoading,loading:e.loading,"list-style":e.listStyle,pagelist:e.pagelist,"show-footer-nav-bar":e.showFooterNavBar,"show-more-btn":e.showMoreBtn,"show-popup-tip-btn":e.showPopupTipBtn,"toolbar-btns":e.toolbarBtns,"table-type":e.tableType,"pull-refresh":e.pullRefresh},on:{"update:checkedAll":function(t){e.checkedAll=t},"update:checked-all":function(t){e.checkedAll=t},"update:finished":function(t){e.finished=t},"update:iserror":function(t){e.error=t},"update:longPress":function(t){e.longPress=t},"update:long-press":function(t){e.longPress=t},"update:listLoading":function(t){e.listLoading=t},"update:list-loading":function(t){e.listLoading=t},"update:loading":function(t){e.loading=t},"update:showMoreBtn":function(t){e.showMoreBtn=t},"update:show-more-btn":function(t){e.showMoreBtn=t},"update:showPopupTipBtn":function(t){e.showPopupTipBtn=t},"update:show-popup-tip-btn":function(t){e.showPopupTipBtn=t},"update:pullRefresh":function(t){e.pullRefresh=t},"update:pull-refresh":function(t){e.pullRefresh=t},onRefresh:e.onRefresh,onLoad:e.onLoad,onCellClick:e.handleCellClick,editObject:e.editObject,viewObject:e.viewObject,deleteIds:e.deleteIds,btnClick:e.btnClick},scopedSlots:e._u([{key:"row",fn:function(t){return[e._t("row",null,{dataitem:t.row,rowindex:t.rowindex})]}},{key:"cellbtn",fn:function(n){return[1===e.listStyle.rowBtnStyle?e._t("cellBtn",(function(){return e._l(e.cellOperationBtn,(function(a,o){return t("van-button",{key:o,staticClass:"tag_btn van-hairline--surround",attrs:{hairline:"",plain:""},on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e(),1===e.listStyle.rowBtnStyle?e._t("cellbtn",null,{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e()]}},{key:"celllink",fn:function(n){return[e._t("cellLink",(function(){return e._l(e.cellOperationLink,(function(a,o){return t("a",{key:o,on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row}),e._t("celllink",null,{dataitem:n.row})]}},{key:"rightbtn",fn:function(n){return[e._t("rightBtn",(function(){return e._l(e.operateColumnBtns,(function(a,o){return t("van-button",{key:o,attrs:{square:"",type:a.btnStyleType,text:a.btnName},on:{click:function(t){return e.btnClick(a,n.row)}}})}))}),{dataitem:n.row}),e._t("rightbtn",null,{dataitem:n.row})]}}],null,!0)})]:e._e()]],2)})),1)],1):t("div",{staticClass:"not-tab-list"},[e.advancedSearch.show&&1===e.listStyle.search?t("span",{staticClass:"tab-search nonvtb",on:{click:function(t){e.showSearch=!e.showSearch}}},[t("van-icon",{attrs:{name:"bars"}})],1):e._e(),t("search",{ref:"search",attrs:{"list-style":e.listStyle,"show-search":e.showSearch,"tb-columns":e.tbColumns,"advanced-search":e.advancedSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t}}},[t("template",{slot:"search-left"},[e._t("search-left")],2),t("template",{slot:"search-right"},[e._t("search-right")],2),[e._t("searchpopu")]],2),t("div",{staticClass:"list-table-top",staticStyle:{width:"100%"}},[e._t("listtop")],2),[t("table-list",{ref:"tableList",attrs:{"check-all-align":e.checkAllAlign,"checked-all":e.checkedAll,"empty-text":e.emptyText,"empty-img":e.emptyImg,"force-update":e.forceUpdate,finished:e.finished,iserror:e.error,"long-press":e.longPress,"list-loading":e.listLoading,loading:e.loading,"list-style":e.listStyle,pagelist:e.pagelist,"show-footer-nav-bar":e.showFooterNavBar,"show-more-btn":e.showMoreBtn,"show-popup-tip-btn":e.showPopupTipBtn,"toolbar-btns":e.toolbarBtns,"table-type":e.tableType,"pull-refresh":e.pullRefresh},on:{"update:checkedAll":function(t){e.checkedAll=t},"update:checked-all":function(t){e.checkedAll=t},"update:finished":function(t){e.finished=t},"update:iserror":function(t){e.error=t},"update:longPress":function(t){e.longPress=t},"update:long-press":function(t){e.longPress=t},"update:listLoading":function(t){e.listLoading=t},"update:list-loading":function(t){e.listLoading=t},"update:loading":function(t){e.loading=t},"update:showMoreBtn":function(t){e.showMoreBtn=t},"update:show-more-btn":function(t){e.showMoreBtn=t},"update:showPopupTipBtn":function(t){e.showPopupTipBtn=t},"update:show-popup-tip-btn":function(t){e.showPopupTipBtn=t},"update:pullRefresh":function(t){e.pullRefresh=t},"update:pull-refresh":function(t){e.pullRefresh=t},onRefresh:e.onRefresh,onLoad:e.onLoad,onCellClick:e.handleCellClick,editObject:e.editObject,viewObject:e.viewObject,deleteIds:e.deleteIds,btnClick:e.btnClick},scopedSlots:e._u([{key:"row",fn:function(t){return[e._t("row",null,{dataitem:t.row,rowindex:t.rowindex})]}},{key:"cellbtn",fn:function(n){return[1===e.listStyle.rowBtnStyle?e._t("cellBtn",(function(){return e._l(e.cellOperationBtn,(function(a,o){return t("van-button",{key:o,staticClass:"tag_btn van-hairline--surround",attrs:{hairline:"",plain:""},on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e(),1===e.listStyle.rowBtnStyle?e._t("cellbtn",null,{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e()]}},{key:"celllink",fn:function(n){return[e._t("cellLink",(function(){return e._l(e.cellOperationLink,(function(a,o){return t("a",{key:o,on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row}),e._t("celllink",null,{dataitem:n.row})]}},{key:"rightbtn",fn:function(n){return[e._t("rightBtn",(function(){return e._l(e.operateColumnBtns,(function(a,o){return t("van-button",{key:o,attrs:{square:"",type:a.btnStyleType,text:a.btnName},on:{click:function(t){return e.btnClick(a,n.row)}}})}))}),{dataitem:n.row}),e._t("rightbtn",null,{dataitem:n.row})]}}],null,!0)})]],2),e._t("default")],2)},pr=[],mr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-search"},[1===e.listStyle.search?t("div",{staticClass:"search_out_div"},[t("div",{staticClass:"search-slot-container search-left-slot"},[e._t("search-left")],2),t("div",{staticStyle:{width:"100%"}},[t("van-search",{staticClass:"p-search iconfont-search",class:{show_search:e.advancedSearch.show},attrs:{placeholder:"".concat(e.searchFocus?"":" ").concat(e.$tx("common.searchFor","搜索")),"input-align":e.searchFocus||e.searchKey?"":"center"},on:{search:e.onSearch,focus:function(t){e.searchFocus=!0},blur:function(t){e.searchFocus=!1},clear:e.onSearch},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}},[t("span",{class:e.searchFocus||e.searchKey?"iconfont icon-search":"",attrs:{slot:"left-icon"},slot:"left-icon"})])],1),t("div",{staticClass:"search-slot-container search-right-slot"},[e._t("search-right")],2)]):e._e(),"droupDown"===e.advancedSearch.searchPopupType&&e.droupDownPopup?t("div",{staticClass:"droup_popup_search",class:{open_droup_popup_search:e.droupDownPopup}},[t("div",{staticClass:"droup_down_popup_panel"},[e._t("dropdownitem")],2)]):e._e(),1===e.listStyle.dropdownMenu?t("div",{staticClass:"van_dropdown-menu_cell"},[t("van-dropdown-menu",{staticClass:"van-search-dropdown-menu",attrs:{direction:"down",overlay:!0,"close-on-click-overlay":!0,"close-on-click-outside":!0}},[e._t("dropdownitem")],2)],1):e._e(),e.searchCondition?t("van-cell",{staticClass:"show-search-key",attrs:{center:""}},[t("template",{slot:"title"},[t("div",{staticStyle:{float:"left",overflow:"hidden",width:"calc(100% - 40px)",height:"21px","white-space":"nowrap"}},[null!==e.searchVo&&e.copytbColumns.length>0?[e._l(e.copytbColumns,(function(n,a){return[""!==e.formatSearchCondition(n)?t("van-tag",{key:a,staticClass:"show-search-title",attrs:{size:"medium",round:"",plain:""}},[e._v(e._s(e.formatSearchCondition(n)))]):e._e()]}))]:e._e(),e.advancedSearch.selectTime?[""!==e.formatSearchCondition(e.advancedSearch.selectTime)?t("van-tag",{staticClass:"show-search-title",attrs:{size:"medium",round:"",plain:""}},[e._v(e._s(e.formatSearchCondition(e.advancedSearch.selectTime)))]):e._e()]:e._e(),e.customSeaarchField&&e.customSeaarchField.length>0?[e._l(e.customSeaarchField,(function(n,a){return[n?t("van-tag",{key:a,staticClass:"show-search-title",attrs:{size:"medium",round:"",plain:""}},[e._v(e._s(n))]):e._e()]}))]:e._e()],2),t("van-tag",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cleanUp",expression:"'cleanUp'"}],staticClass:"show-search-clear",attrs:{size:"medium",plain:"",type:"primary"},on:{click:e.clearSearchKey}},[e._v("清除")])],1)],2):e._e(),e.showPopup&&"droupDown"!==e.advancedSearch.searchPopupType?t("PopupDialog",{attrs:{title:e.$tx("ecmapp.common.advancedSearch","高级搜索"),showpop:e.showPopup,"on-cancel":e.showSearchClick},on:{"update:showpop":function(t){e.showPopup=t}}},[[t("div",{staticStyle:{height:"calc(100% - 60px)","overflow-y":"auto",background:"#fff"}},[t("div",{staticClass:"search-content"},[t("div",[e._l(e.searchFields,(function(n,a){return["date"!==n.listAdvSearchElement&&"block"!==n.selectStyle?t("SearchField",{key:a,class:"search-column-"+n.field,attrs:{"search-map":e.searchVo,"search-column":n}}):e._e()]})),e._l(e.searchFields,(function(n,a){return["select"===n.listAdvSearchElement&&"block"===n.selectStyle?t("SearchField",{key:a,class:"search-column-"+n.field,attrs:{"search-map":e.searchVo,"search-column":n}}):e._e()]})),e._l(e.searchFields,(function(n,a){return["date"===n.listAdvSearchElement?t("SearchField",{key:a,class:"search-column-"+n.field,attrs:{"search-map":e.searchVo,"search-column":n}}):e._e()]}))],2),e._t("default")],2),e.advancedSearch.selectTime?t("SearchField",{class:"search-column-"+e.advancedSearch.selectTime.field,attrs:{"search-map":e.advancedSearch.selectTime,"search-column":e.advancedSearch.selectTime}}):e._e()],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"reset",expression:"'reset'"}],attrs:{type:"default"},on:{click:e.advSearchReset}},[e._v("重 置")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"info"},on:{click:e.startSearch}},[e._v("确 定")])],1)],e.showselecteddialog?t("SelectDialog"):e._e()],2):e._e()],1)},hr=[],vr=function(){var e=this,t=e._self._c;return t("div",["input"===e.searchColumn.listAdvSearchElement?t("input-field",{attrs:{vo:e.searchMap,model:e.searchColumn.field,label:e.searchColumn.title,"text-formatter":"textfield",placeholder:"请输入"+e.searchColumn.title,readonly:!1,"element-readonly":0}}):e._e(),"select"===e.searchColumn.listAdvSearchElement&&"block"!==e.searchColumn.selectStyle?t("select-field",{attrs:{vo:e.searchMap,model:e.searchColumn.field,label:e.searchColumn.title,placeholder:"请选择"+e.searchColumn.title,"prop-type":e.searchColumn.propType,readonly:!1,multiple:"checkbox"===e.searchColumn.selectType,options:e.searchColumn.options}}):e._e(),"select"===e.searchColumn.listAdvSearchElement&&"block"===e.searchColumn.selectStyle?t("div",{staticClass:"block_select"},[t("div",{staticStyle:{padding:"20px","font-size":"15px"}},[e._v(e._s(e.searchColumn.title||e.$tx("ecmapp.common.category","类别")))]),t("div",{staticStyle:{padding:"0 20px"}},[t("van-row",{attrs:{align:"center"}},e._l(JSON.parse(e.searchColumn.options),(function(n,a){return t("van-col",{key:a,staticStyle:{"margin-bottom":"10px"},attrs:{span:"8"}},[t("div",{staticClass:"radio-type",class:{wfTypeKey:e.selectOptionsValue.indexOf(n.value)>-1},style:{margin:(a+1)%3===0?"0 0 0 10px":(a+1)%3===1?"0 10px 0 0":"0 5px"},on:{click:function(t){return e.selectWfType(n,a)}}},[e._v(" "+e._s(n.text)+" ")])])})),1)],1)]):e._e(),"date"===e.searchColumn.listAdvSearchElement?t("div",{staticClass:"advancedSearch-selectTime"},[t("div",{staticStyle:{padding:"20px","font-size":"15px"}},[e._v(e._s(e.searchColumn.title||e.$tx("ecmapp.common.timeFrame","时间范围")))]),t("div",{staticClass:"selectTime",staticStyle:{padding:"0 20px"}},[t("van-row",{attrs:{align:"center"}},[t("van-col",{attrs:{span:"11"}},[t("div",{staticClass:"timebox",on:{click:e.startTimeClick}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.timeStart,expression:"timeStart"}],attrs:{placeholder:e.$tx("common.startTimePlaceholder","请选择开始时间"),readonly:""},domProps:{value:e.timeStart},on:{input:function(t){t.target.composing||(e.timeStart=t.target.value)}}}),t("van-icon",{attrs:{name:"cross"},on:{click:function(t){return t.stopPropagation(),e.clearSelectTime("_START")}}})],1)]),t("van-col",{attrs:{span:"2"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.to",expression:"'common.to'"}],staticClass:"timeinner",staticStyle:{margin:"0 auto"}},[e._v("至")])]),t("van-col",{attrs:{span:"11"}},[t("div",{staticClass:"timebox",on:{click:e.endTimeClick}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.timeEnd,expression:"timeEnd"}],attrs:{placeholder:e.$tx("common.endTimePlaceholder","请选择结束时间"),readonly:""},domProps:{value:e.timeEnd},on:{input:function(t){t.target.composing||(e.timeEnd=t.target.value)}}}),t("van-icon",{attrs:{name:"cross"},on:{click:function(t){return t.stopPropagation(),e.clearSelectTime("_END")}}})],1)])],1)],1),"date"===e.searchColumn.listAdvSearchElement?[e.selectTimeshow?t("van-popup",{attrs:{position:"bottom"},model:{value:e.selectTimeshow,callback:function(t){e.selectTimeshow=t},expression:"selectTimeshow"}},[e.searchColumn.hasNoOverTime?t("van-datetime-picker",{attrs:{type:"datetime","min-date":e.minDate,"max-date":e.maxDate},on:{confirm:e.submitForm,cancel:e.closeDialog},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}}):t("van-datetime-picker",{attrs:{type:"datetime","min-date":e.minDate},on:{confirm:e.submitForm,cancel:e.closeDialog},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1):e._e()]:e._e()],2):e._e()],1)},gr=[],yr=a(5093),_r={components:{},props:{searchColumn:{type:Object,default:null},searchMap:{type:Object,default:function(){return{}}}},data:function(){return{selectTimeshow:!1,currentDate:"",selectTimeType:"datetime",timeformat:"",minDate:"",maxDate:"",timeStart:"",timeEnd:"",selectOptionsValue:[]}},computed:{},watch:{searchMap:{handler:function(){this.initselectBlockValue()},deep:!0}},created:function(){if(this.initselectBlockValue(),this.searchColumn.propFormatter||this.searchColumn.elementFormatter)if("select"!==this.searchColumn.listAdvSearchElement||this.searchColumn.options)"date"===this.searchColumn.listAdvSearchElement&&this.initAdvancedSearchTime();else{for(var e=(this.searchColumn.propFormatter||this.searchColumn.elementFormatter).replace(/\\r\\n/g,"<br>").replace(/\r\n/g,"<br>").replace(/\n/g,"<br>").split("<br>"),t=[],n=0;n<e.length;n++)if(e[n].split(":").length>1){var a=e[n].split(":")[0];"Short"!==this.searchColumn.propType&&"Integer"!==this.searchColumn.propType&&"Lang"!==this.searchColumn.propType||(a=parseInt(a)),t.push({text:e[n].split(":")[1],value:a})}this.searchColumn.options=JSON.stringify(t)}},beforeDestroy:function(){},mounted:function(){},methods:{initselectBlockValue:function(){"select"===this.searchColumn.listAdvSearchElement&&(null!==this.searchMap[this.searchColumn.field]&&""!==this.searchMap[this.searchColumn.field]&&void 0!==this.searchMap[this.searchColumn.field]?"checkbox"===this.searchColumn.selectType?"block"===this.searchColumn.selectStyle?this.selectOptionsValue=this.searchMap[this.searchColumn.field].replace("in ","").split(","):this.searchMap[this.searchColumn.field]=this.searchMap[this.searchColumn.field].replace("in ",""):"block"===this.searchColumn.selectStyle&&(this.selectOptionsValue=[this.searchMap[this.searchColumn.field]]):this.selectOptionsValue=[])},initAdvancedSearchTime:function(){var e=new Date;this.minDate=new Date((new Date).setFullYear(e.getFullYear()-100)),this.maxDate=e,delete this.searchMap[this.searchColumn.field];var t=this.searchColumn.elementFormatter.replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,"");0===t.indexOf("format:")&&(t=t.substring(7),this.timeformat=t),this.timeformat?this.timeformat=this.timeformat.replace("yyyy","YYYY").replace("dd","DD").replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):this.timeformat="YYYY-MM-DD HH:mm:ss",this.searchMap[this.searchColumn.field+"_START"]?""!==this.searchMap[this.searchColumn.field+"_START"]?this.timeStart=yr(new Date(this.searchMap[this.searchColumn.field+"_START"])).format(this.timeformat):this.timeStart="":this.$set(this.searchMap,this.searchColumn.field+"_START",""),this.searchMap[this.searchColumn.field+"_END"]?""!==this.searchMap[this.searchColumn.field+"_END"]?this.timeEnd=yr(new Date(this.searchMap[this.searchColumn.field+"_END"])).format(this.timeformat):this.timeEnd="":this.$set(this.searchMap,this.searchColumn.field+"_END","");var n=this.timeformat.replace("年","").replace("月","").replace("日","").replace("时","").replace("分","").replace("秒","").replace(/-/g,"");n.split(" ").length>1?this.selectTimeType="datetime":"YYYYMMDD"===n?this.selectTimeType="date":"YYYYMM"===n?this.selectTimeType="year-month":"MMDD"===n?this.selectTimeType="month-day":n.indexOf("HH")>-1&&(this.selectTimeType="time")},selectWfType:function(e,t){"checkbox"===this.searchColumn.selectType?(this.selectOptionsValue.indexOf(e.value)>-1?this.selectOptionsValue.splice(this.selectOptionsValue.indexOf(e.value),1):this.selectOptionsValue.push(e.value),this.searchMap[this.searchColumn.field]="in "+this.selectOptionsValue.join(",")):(this.selectOptionsValue.indexOf(e.value)>-1?this.selectOptionsValue=[]:this.selectOptionsValue=[e.value],this.searchMap[this.searchColumn.field]=this.selectOptionsValue[0])},startTimeClick:function(){""!==this.searchMap[this.searchColumn.field+"_START"]?this.currentDate=new Date(this.searchMap[this.searchColumn.field+"_START"].replace(/-/g,"/")):this.currentDate=new Date,this.searchColumn.timeType=this.searchColumn.field+"_START",this.selectTimeshow=!0},endTimeClick:function(){""!==this.searchMap[this.searchColumn.field+"_END"]?this.currentDate=new Date(this.searchMap[this.searchColumn.field+"_END"].replace(/-/g,"/")):this.currentDate=new Date,this.searchColumn.timeType=this.searchColumn.field+"_END",this.selectTimeshow=!0},submitForm:function(e){var t=a(5093);this.searchMap[this.searchColumn.timeType]=t(e).format("YYYY-MM-DD HH:mm:ss"),this.searchColumn.timeType.indexOf("START")>-1?this.timeStart=t(e).format(this.timeformat):this.timeEnd=t(e).format(this.timeformat),this.$forceUpdate(),this.closeDialog()},clearSelectTime:function(e){this.searchMap[this.searchColumn.field+e]="","_START"===e?this.timeStart="":this.timeEnd="",this.$forceUpdate()},closeDialog:function(){this.selectTimeshow=!1}}},br=_r,wr=(a(697),(0,Ca.A)(br,vr,gr,!1,null,"13fe0b0a",null)),xr=wr.exports,Mr=a(5093),kr={components:{SearchField:xr},props:{listStyle:{type:Object,default:function(){return{search:1}}},showSearch:{type:Boolean,default:!1},advancedSearch:{type:Object,default:function(){return{show:!1,optionName:"",selectiveType:"radio",option:[]}}},tbColumns:{type:Array,default:function(){return[]}}},data:function(){return{searchKey:"",searchFocus:!1,showPopup:!1,searchCondition:!1,searchFields:[],searchVo:{},copytbColumns:[],droupDownPopup:!1,showselecteddialog:!1,customSeaarchField:[],clearrSearchCallBack:null}},computed:{},watch:{showSearch:{handler:function(e){"droupDown"===this.advancedSearch.searchPopupType?this.droupDownPopup=e:e?this.initSearchFileds():this.showPopup=e},immediate:!0},droupDownPopup:function(e){e||this.$emit("update:showSearch",!1)},searchFocus:function(e){this.$bus.emit("searchInputOnForce",e)}},created:function(){this.$bus.on("clearSearchKey",this.clearSearchKey),this.$bus.on("onCustomSearch",this.onCustomSearch)},beforeDestroy:function(){this.$bus.off("clearSearchKey",this.clearSearchKey),this.$bus.off("onCustomSearch",this.onCustomSearch)},mounted:function(){this.advancedSearch.optionName=this.$tx("ecmapp.common.category","类别")},methods:{initSearchFileds:function(){var e=this,t=JSON.parse(JSON.stringify(this.searchVo)),n=this.tbColumns;if(null===this.tbColumns&&(n=this.$vnode.context.$vnode.context.tbColumns||null),null!==n&&(n=JSON.parse(JSON.stringify(n))),this.advancedSearch.selectTime&&(this.advancedSearch.selectTime.listAdvSearchElement="date",this.advancedSearch.selectTime.title=this.advancedSearch.selectTime.name||this.$tx("ecmapp.common.dateRange","日期范围:"),this.advancedSearch.selectTime.field=this.advancedSearch.selectTime.filed,this.advancedSearch.selectTime.elementFormatter="format:"+this.advancedSearch.selectTime.format),this.advancedSearch.option&&this.advancedSearch.option.length>0){var a={listAdvSearchElement:"select",selectType:this.advancedSearch.selectiveType,selectStyle:"block",field:this.advancedSearch.option[0].filed,title:this.advancedSearch.optionName,searchable:!0},o=[];this.advancedSearch.option.forEach((function(e){o.push({text:e.name,value:e.code})})),a.options=JSON.stringify(o),n.push(a)}var i=[];null!==n&&(n.forEach((function(n){if(n.searchable){if(e.$vnode.context.pageInfo.passenger&&e.$vnode.context.pageInfo.passenger[n.field+"Options"])n.options=JSON.stringify(e.$vnode.context.pageInfo.passenger[n.field+"Options"]);else if("select"===n.listAdvSearchElement&&!n.options){for(var a=[],o=n.propFormatter||n.elementFormatter||"",r=o.replace(/\r\n/g,"<br>").replace(/\\r\\n/g,"<br>").replace(/\n/g,"<br>").replace(/\\n/g,"<br>").split("<br>"),s=0;s<r.length;s++)r[s].split(":").length>1&&a.push({text:r[s].split(":")[1],value:r[s].split(":")[0]});n.options=JSON.stringify(a)}i.push(n),void 0===t[n.field]&&(t[n.field]=null)}})),this.copytbColumns=n),i.length>0&&(i=D(i,"listAdvSearchIndex","asc")),this.searchFields=i,this.searchVo=t;var r=document.querySelector(".van-selected-dialog");this.showselecteddialog=null===r,this.$nextTick((function(){e.showPopup=!0}))},onSearch:function(){this.$bus.emit("refreshListData","or",this.searchKey),this.clearSearchKey("key")},startSearch:function(){this.searchKey="",this.advancedSearch.selectTime&&(this.searchVo[this.advancedSearch.selectTime.field+"_START"]=this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_START"],this.searchVo[this.advancedSearch.selectTime.field+"_END"]=this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_END"]);var e=!1;for(var t in this.searchVo)void 0!==this.searchVo[t]&&null!==this.searchVo[t]&&""!==this.searchVo[t]?e=!0:this.searchVo[t]=null;this.searchCondition=!!e,this.$bus.emit("refreshListData",this.searchCondition?"and":"","",this.searchVo),this.showSearchClick()},formatSearchCondition:function(e){var t=this,n="";if("select"===e.listAdvSearchElement){var a=JSON.parse(e.options),o=null;"checkbox"===e.selectType&&this.searchVo[e.field]&&this.searchVo[e.field].indexOf("in")>-1&&(o=this.searchVo[e.field].replace("in ","")),a.forEach((function(a){a.value===t.searchVo[e.field]&&null===o?n=a.text:null!==o&&o.indexOf(a.value)>-1&&(""!==n&&(n+=","),n+=a.text)}))}else if("date"===e.listAdvSearchElement){var i=e.elementFormatter?e.elementFormatter.replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):"";0===i.indexOf("format:")&&(i=i.substring(7)),i=i?i.replace("yyyy","YYYY").replace("dd","DD").replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):"YYYY-MM-DD HH:mm:ss",n=this.searchVo[e.field+"_START"]?Mr(new Date(this.searchVo[e.field+"_START"])).format(i):"",""!==n?this.searchVo[e.field+"_END"]&&(n+="至"+Mr(new Date(this.searchVo[e.field+"_END"])).format(i)):this.searchVo[e.field+"_END"]&&(n+=Mr(new Date(this.searchVo[e.field+"_END"])).format(i))}else n=this.searchVo[e.field];return n||""},closeDialog:function(){this.selectTimeshow=!1},onCustomSearch:function(e,t){e.length>0&&(this.searchCondition=!0),this.customSeaarchField=e,this.clearrSearchCallBack=t},advSearchReset:function(){this.$bus.emit("advSearchReset",this.searchVo,this.$vnode.context.moduleInfo),this.clearSearchKey("reset")},clearSearchKey:function(e){var t=this;if(this.searchCondition=!1,this.searchAndOr="",this.customSeaarchField=[],null!==this.clearrSearchCallBack&&"function"===typeof this.clearrSearchCallBack&&this.clearrSearchCallBack(),"reset"===e){var n=JSON.parse(JSON.stringify(this.searchVo));for(var a in n)n[a]="";this.searchVo={},this.$nextTick((function(){t.searchVo=n}))}else this.searchVo={};this.advancedSearch.selectTime&&(this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_START"]="",this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_END"]=""),"key"!==e&&(this.searchKey=""),"init"!==e&&"key"!==e&&this.$bus.emit("refreshListData","","",this.searchVo)},showSearchClick:function(){this.$emit("update:showSearch",!1)}}},Lr=kr,Sr=(a(4295),(0,Ca.A)(Lr,mr,hr,!1,null,"7908bea2",null)),Tr=Sr.exports,Dr=function(){var e=this,t=e._self._c;return t("div",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.longPress,expression:"longPress"}],staticClass:"long_press_checkall"},[t("van-cell",{class:{long_press_checkall_right:"right"===e.checkAllAlign}},[t("template",{slot:"title"},["left"===e.checkAllAlign?t("van-checkbox",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}],on:{click:function(t){return e.selectCheckedAll(e.checkedAll)}},model:{value:e.checkedAll,callback:function(t){e.checkedAll=t},expression:"checkedAll"}},[e._v("全选")]):t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],staticStyle:{"font-size":"16px"},on:{click:e.accomplishChecked}},[e._v("取消")])],1),t("template",{slot:"default"},["left"===e.checkAllAlign?t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],staticStyle:{"font-size":"16px"},on:{click:e.accomplishChecked}},[e._v("取消")]):t("van-checkbox",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}],on:{click:function(t){return e.selectCheckedAll(e.checkedAll)}},model:{value:e.checkedAll,callback:function(t){e.checkedAll=t},expression:"checkedAll"}},[e._v("全选")])],1)],2)],1),e.forceUpdate?e._e():t("div",{staticClass:"listdata-container",class:{card_listdata:"card"===e.tableType}},[e.listLoading?[t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],staticClass:"up-loading",attrs:{vertical:""}},[e._v("正在加载...")])]:e._e(),t("van-pull-refresh",{attrs:{"success-text":e.$tx("ecmapp.common.refreshSuccessful","刷新成功"),"success-duration":1e3,"animation-duration":1e3},on:{refresh:e.onPullRefresh},model:{value:e.pullRefresh,callback:function(t){e.pullRefresh=t},expression:"pullRefresh"}},[t("van-list",{directives:[{name:"show",rawName:"v-show",value:!e.listLoading,expression:"!listLoading"}],attrs:{finished:e.finished,"finished-text":e.emptyText,error:e.error,"error-text":e.$tx("ecmapp.common.clickReload","请求失败,点击重新加载")},on:{"update:error":function(t){e.error=t},load:e.loadlist},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[0===e.pagelist.length?t("div",{staticClass:"loadImgBox",staticStyle:{"text-align":"center","margin-top":"88px"}},[t("img",{staticStyle:{width:"240px"},attrs:{src:e.emptyImg}})]):e._e(),e.longPress||e.listLoading?e._l(e.pagelist,(function(n,a){return t("van-swipe-cell",{key:a,staticClass:"long_press",class:{card_cell:"card"===e.tableType,last_swipe_cell:a===e.pagelist.length-1&&e.finished}},[t("div",{staticClass:"cell_div",class:{cell_div_right:"right"===e.checkAllAlign},on:{click:function(t){return e.cellChecked(n.checked,a)}}},[e.longPress&&"left"===e.checkAllAlign?t("van-checkbox",{staticClass:"cell_checkbox",model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"dataitem.checked"}}):e._e(),e._t("row",null,{row:n,rowindex:a}),e.longPress&&"right"===e.checkAllAlign?t("van-checkbox",{staticClass:"cell_checkbox",model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"dataitem.checked"}}):e._e()],2)])})):e._l(e.pagelist,(function(n,a){return t("van-swipe-cell",{key:n.id,class:{add_van_swipe_cell:e.isCellBtn,add_tip_cell:e.isTipCell,card_cell:"card"===e.tableType,last_swipe_cell:a===e.pagelist.length-1&&e.finished}},[t("div",{staticClass:"cell_div",on:{click:function(t){return e.handleCellClick(n)},touchstart:e.gotouchstart,touchend:e.gotouchend}},[e._t("row",null,{row:n,rowindex:a}),e.isCellBtn&&!1!==n.showcellbtn?t("van-cell",{staticClass:"van_cell_btn",on:{click:function(e){e.stopPropagation()}}},[1===e.listStyle.rowBtnStyle?e._t("cellbtn",null,{row:n,rowindex:a,morebtnClick:e.cellTipClick,editObject:e.editObject,viewObject:e.viewObject,deleteIds:e.deleteIds}):e._e(),2===e.listStyle.rowBtnStyle?t("div",{staticClass:"van_cell_link"},[e._t("celllink",null,{row:n})],2):e._e()],2):e._e(),e.isTipCell&&!1!==n.showcellbtn?t("div",{staticClass:"cell_tip_btns_out",on:{click:function(t){return t.stopPropagation(),e.cellTipClick(a,n)},touchstart:function(e){e.stopPropagation()}}},[t("van-icon",{attrs:{name:"ellipsis"}})],1):e._e()],2),!1!==n.showcellbtn?t("template",{slot:"right"},[e._t("rightbtn",null,{row:n})],2):e._e()],2)}))],2)],1)],2),e.longPress||!e.showFloatBtns&&!e.showGobackBtn?e._e():t("FloatButtonGroup",{attrs:{"show-footer-nav-bar":e.showFooterNavBar}},[null!==e.pageFloatBtn?t("van-button",{attrs:{round:"",type:e.pageFloatBtn.btnStyleType,icon:e.pageFloatBtn.btnIcon,hairline:""},on:{click:function(t){return e.btnClick(e.pageFloatBtn)}}}):e._e(),e.showGobackBtn?t("van-button",{staticClass:"goback-btn",attrs:{round:"",plain:"",size:"normal",type:"info",icon:"revoke",hairline:""},on:{click:e.historyBack}}):e._e()],1),e.longPress&&e.longPressBtns.length>0?t("div",{staticClass:"long_press_bottom_btn"},[e._l(e.longPressBtns.filter((function(t,n){return e.longPressBtns.length<=5||e.longPressBtns.length>5&&n<=3})),(function(n,a){return t("a",{key:a,on:{click:function(t){return e.btnClick(n)}}},[n.btnIcon&&n.btnIcon.indexOf(".svg")>-1?t("svg",e._g({staticClass:"svg-icon-font",staticStyle:{"font-size":"15px"},attrs:{"aria-hidden":"true"}},e.$listeners),[t("use",{attrs:{"xlink:href":"#icon-"+n.btnIcon.substr(0,n.btnIcon.indexOf("."))}})]):n.btnIcon?t("van-icon",{staticStyle:{top:"3px","font-size":"15px"},attrs:{name:n.btnIcon}}):e._e(),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"btn.btnI18nCode"}]},[e._v(e._s(n.btnName))])],1)})),e.longPressBtns.length>5?[t("a",{staticStyle:{width:"60px",flex:"none"}},[t("van-popover",{attrs:{offset:[-5,8],trigger:"click",placement:"top-end"},model:{value:e.longPressMorBtns,callback:function(t){e.longPressMorBtns=t},expression:"longPressMorBtns"}},[e._l(e.longPressBtns.filter((function(e,t){return t>3})),(function(n,a){return t("div",{key:a,staticClass:"van-popover__action",attrs:{role:"menuitem"}},[t("div",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"btn.btnI18nCode"}],staticClass:"van-popover__action-text van-hairline--bottom",on:{click:function(t){e.btnClick(n),e.morBtn=!1}}},[e._v(" "+e._s(n.btnName)+" ")])])})),t("template",{slot:"reference"},[t("a",{staticClass:"a_btn",staticStyle:{"font-size":"17px"},on:{click:function(t){t.stopPropagation(),e.longPressMorBtns=!e.longPressMorBtns}}},[t("van-icon",{attrs:{name:"ellipsis"}})],1)])],2)],1)]:e._e()],2):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopupTipBtn&&3===e.listStyle.rowBtnStyle&&"bottom"!==e.listStyle.rowBtnPopupType||e.showMoreBtn,expression:"(showPopupTipBtn && listStyle.rowBtnStyle === 3 && listStyle.rowBtnPopupType !== 'bottom') || showMoreBtn"}],staticClass:"popup_tip_btn",on:{touchstart:function(e){e.stopPropagation()}}},[e._l(e.cellOperationTipbtn,(function(n,a){return t("p",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"tipbtn.btnI18nCode"}],key:a,on:{click:function(t){return e.btnClick(n)}}},[e._v(e._s(n.btnName))])})),e._l(e.cellTipbtns,(function(n,a){return t("p",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"tipbtn.btnI18nCode"}],key:a,on:{click:function(t){return e.customTipBtnClick(n)}}},[e._v(e._s(n.btnName))])}))],2),3===e.listStyle.rowBtnStyle&&"bottom"===e.listStyle.rowBtnPopupType?t("van-action-sheet",{class:{"van-action-sheet-scroll":e.cellOperationTipbtn.length+e.cellTipbtns.length>5},attrs:{"cancel-text":e.$tx("pageBtns.cancel","取 消"),round:!1,"close-on-popstate":!0,teleport:"body"},on:{closed:e.tipBottomBtnClose},model:{value:e.showPopupTipBtn,callback:function(t){e.showPopupTipBtn=t},expression:"showPopupTipBtn"}},[[e.cellOperationTipbtn.length>0?e._l(e.cellOperationTipbtn,(function(n,a){return t("button",{key:a,staticClass:"van-action-sheet__item van-action_cell_btn",attrs:{type:"button"},on:{click:function(t){return e.tipBottomBtnClick(n,a)}}},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"btn.btnI18nCode"}],staticClass:"van-action-sheet__name"},[e._v(e._s(n.btnName))])])})):e._e(),e.cellTipbtns.length>0?e._l(e.cellTipbtns,(function(n,a){return t("button",{key:a+e.cellOperationTipbtn.length,staticClass:"van-action-sheet__item van-action_cell_btn",attrs:{type:"button"},on:{click:function(t){return e.customTipBtnClick(n,a+e.cellOperationTipbtn.length)}}},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"tipbtn.btnI18nCode"}],staticClass:"van-action-sheet__name"},[e._v(e._s(n.btnName))])])})):e._e()]],2):e._e()],1)},Nr=[],Ar=null,Yr={components:{},props:{longPress:{type:Boolean,default:!1},checkAllAlign:{type:String,default:"left"},checkedAll:{type:Boolean,default:!1},forceUpdate:{type:Boolean,default:!1},tableType:{type:String,default:""},listLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},pullRefresh:{type:Boolean,default:!1},finished:{type:Boolean,default:!1},emptyText:{type:String,default:""},emptyImg:{type:String,default:"./images/m-imgs/nomessage.png"},iserror:{type:Boolean,default:!1},pagelist:{type:Array,default:function(){return[]}},listStyle:{type:Object,default:function(){return{}}},toolbarBtns:{type:Array,default:function(){return[]}},showFooterNavBar:{type:Boolean,default:!1},showMoreBtn:{type:Boolean,default:!1},showPopupTipBtn:{type:Boolean,default:!1}},data:function(){return{error:!1,isCellBtn:!1,isTipCell:!1,cellTipbtns:[],tipClickIndex:-1,tipClickData:{},longPressMorBtns:!1,scrollTop:0}},computed:{showFloatBtns:function(){var e=!1;return e=this.$vnode.context.navTabList.length>0?this.$vnode.context.navTabList[this.$vnode.context.tabActive].showFooterBtns:this.listStyle.pageBtn,e},showGobackBtn:function(){var e=document.querySelector(".main-tabbar")||document.querySelector(".navbar_bottom");return!e&&"floatBtn"===window.wxgobakMode},pageFloatBtn:function(){var e=this.toolbarBtns.filter((function(e){if("page"===e.btnType&&!0===e.btnPermission)return!0}));return e.length>0?e[0]:null},cellOperationTipbtn:function(){if(1===this.listStyle.rowBtn&&3===this.listStyle.rowBtnStyle){var e=this.toolbarBtns.filter((function(e){if("column"===e.btnType)return!0}));return e}return[]},longPressBtns:function(){if(0===this.listStyle.topbarBtn)return[];var e=this.toolbarBtns.filter((function(e){if("topbar"===e.btnType)return!0}));return e}},watch:{iserror:function(e){this.error=e},error:function(e){this.$emit("update:iserror",e)},pullRefresh:function(e){this.$emit("update:pullRefresh",e)},listStyle:{handler:function(){this.setCellBtnStyle()},deep:!0,immediate:!0}},created:function(){this.error=this.iserror,this.setCellBtnStyle(),this.$bus.on("accomplishChecked",this.accomplishChecked)},beforeDestroy:function(){this.$bus.off("accomplishChecked",this.accomplishChecked)},mounted:function(){this.emptyText=this.$tx("common.noData","暂无数据")},methods:{setCellBtnStyle:function(){this.isCellBtn=!1,this.isTipCell=!1,this.listStyle&&(1!==this.listStyle.rowBtn||1!==this.listStyle.rowBtnStyle&&2!==this.listStyle.rowBtnStyle?1===this.listStyle.rowBtn&&3===this.listStyle.rowBtnStyle&&(this.isTipCell=!0):this.isCellBtn=!0)},gotouchstart:function(){var e=this;0!==this.longPressBtns.length&&(Ar=setInterval((function(){e.$emit("update:longPress",!0),e.$vnode.context.setListViewHeight(),clearInterval(Ar)}),1e3))},gotouchend:function(){clearInterval(Ar),Ar=null},cellChecked:function(e,t){this.$set(this.pagelist[t],"checked",!e);var n=this.pagelist.filter((function(e){return!0===e.checked}));n.length===this.pagelist.length?this.$emit("update:checkedAll",!0):this.$emit("update:checkedAll",!1),this.$forceUpdate()},accomplishChecked:function(){var e=this;this.$emit("update:longPress",!1),this.$emit("update:checkedAll",!1),this.pagelist.forEach((function(e){e.checked=!1})),this.$nextTick((function(){e.$vnode.context.setListViewHeight()})),this.$forceUpdate()},selectCheckedAll:function(e){this.$emit("update:checkedAll",e),this.pagelist.forEach((function(t){t.checked=e})),this.$forceUpdate()},cellTipClick:function(e,t,n,a){var o=this;n&&(this.cellTipbtns=n),this.$bus.emit("onCellTipClick",t,(function(e){e.listbtns&&e.listbtns.length>0&&(o.cellTipbtns=e.listbtns)})),this.tipClickData=t;var i=document.querySelector(".popup_tip_btn"),r=document.querySelector(".out-tbs"),s=document.querySelector(".not-tab-list"),l=null;if(null!==r){var d=r.querySelectorAll(".van-tab__pane")[this.$vnode.context.tabActive],c=d.querySelectorAll(".cell_div")[e];l=null!==c.querySelector(".tag_more_btn")?c.querySelector(".tag_more_btn").getBoundingClientRect():null}else{var u=document.querySelectorAll(".cell_div")[e];l=null!==u.querySelector(".tag_more_btn")?u.querySelector(".tag_more_btn").getBoundingClientRect():null}var f=0!==document.querySelectorAll(".cell_tip_btns_out").length?document.querySelectorAll(".cell_tip_btns_out")[e].getBoundingClientRect():null,p=window.headerHeight||0;i.style.right="16px",i.style.top=l?parseInt(l.top)-p+28+"px":parseInt(f.top)-p+23+"px",this.tipClickIndex===e?(this.$emit("update:showPopupTipBtn",!this.showPopupTipBtn),1===this.listStyle.rowBtnStyle&&this.$emit("update:showMoreBtn",!this.showMoreBtn)):(this.showPopupTipBtn||this.$emit("update:showPopupTipBtn",!0),1===this.listStyle.rowBtnStyle&&(this.showMoreBtn||this.$emit("update:showMoreBtn",!0))),this.$nextTick((function(){var e=document.querySelector(".popup_tip_btn");null!==r&&e.offsetHeight+e.offsetTop>r.offsetHeight||null!==s&&e.offsetHeight+e.offsetTop>s.offsetHeight?(i.style.top=e.offsetTop-e.offsetHeight-p-24-10+"px",e.classList.add("popup_tip_btn_align")):e.classList.remove("popup_tip_btn_align")})),this.tipClickIndex=e},customTipBtnClick:function(e){e.btnClick&&(e.btnClick(this.tipClickIndex,this.tipClickData,e,this),this.$emit("update:showPopupTipBtn",!1),this.$emit("update:showMoreBtn",!1))},loadlist:function(){this.$emit("onLoad")},onPullRefresh:function(){this.$emit("onRefresh")},handleCellClick:function(e){this.$emit("onCellClick",e)},editObject:function(e){this.$emit("editObject",e)},viewObject:function(e){this.$emit("viewObject",e)},deleteIds:function(e){this.$emit("deleteIds",e)},btnClick:function(e,t){var n=t;3===this.listStyle.rowBtnStyle&&(n=this.tipClickData),this.$emit("btnClick",e,n)},tipBottomBtnClick:function(e,t){this.btnClick(e)},tipBottomBtnClose:function(){this.$emit("update:showPopupTipBtn",!1)},historyBack:function(){this.$router.back(-1)}}},Cr=Yr,Or=(a(3180),(0,Ca.A)(Cr,Dr,Nr,!1,null,"416f359a",null)),Ir=Or.exports;function Er(e){return Er="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},Er(e)}function $r(e){return Hr(e)||Fr(e)||jr(e)||Pr()}function Pr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jr(e,t){if(e){if("string"==typeof e)return Br(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Br(e,t):void 0}}function Fr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Hr(e){if(Array.isArray(e))return Br(e)}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Ur(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ur=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Er(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Er(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function Rr(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Wr(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){Rr(i,a,o,r,s,"next",e)}function s(e){Rr(i,a,o,r,s,"throw",e)}r(void 0)}))}}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e,t,n){return(t=qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(e){var t=Gr(e,"string");return"symbol"==Er(t)?t:t+""}function Gr(e,t){if("object"!=Er(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Er(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Kr={pageSize:15,total:0,pageNum:0},Qr={name:"DataTable",components:{search:Tr,TableList:Ir},props:{moduleInfo:{type:Object,default:function(){return{}}},toolbarBtns:{type:Array,default:function(){return[]}},navTabList:{type:Array,default:function(){return[]}},doSearchFields:{type:Array,default:function(){return[]}},listStyle:{type:Object,default:function(){return{search:1}}},showFooterNavBar:{type:Boolean,default:function(){return!1}},onNavTabClick:{type:Function,default:function(){}},onListDataBeforeLoad:{type:Function,default:function(){}},onListDataLoaded:{type:Function,default:function(){}},onDeleteSuccessed:{type:Function,default:function(){}},onCellClick:{type:Function,default:null},listdata:{type:Array,default:function(){return[]}},mode:{type:String,default:"listpage"},advancedSearch:{type:Object,default:function(){return{show:!1,optionName:"",selectiveType:"radio",option:[]}}},setTitle:{type:String,default:""},tableType:{type:String,default:""},checkAllAlign:{type:String,default:"left"},tbColumns:{type:Array,default:function(){return[]}},defaultEmptyText:{type:String,default:null},defaultEmptyImg:{type:String,default:null}},data:function(){return{tabActive:0,showTabApp:!1,forceUpdate:!1,loading:!1,finished:!1,error:!1,pageInfo:JSON.parse(JSON.stringify(Kr)),pagelist:[],defaultSort:{},selectedRows:[],searchAndOr:"",searchMap:{},showSearch:!1,pageGroupList:[],showNavBar:!0,longPress:!1,checkedAll:!1,showPopupTipBtn:!1,showMoreBtn:!1,listLoading:!1,emptyText:this.$tx("common.noData","暂无数据"),emptyImg:"./images/m-imgs/nomessage.png",searchKey:"",searchTime:{searchType:!1},pullRefresh:!1,scrollTop:0}},computed:zr(zr({},(0,ei.L8)(["loginUser"])),{},{cellOperationBtn:function(){if(1===this.listStyle.rowBtn&&1===this.listStyle.rowBtnStyle){var e=this.toolbarBtns.filter((function(e){if("column"===e.btnType)return!0}));return e}return[]},cellOperationLink:function(){if(1===this.listStyle.rowBtn&&2===this.listStyle.rowBtnStyle){var e=this.toolbarBtns.filter((function(e){if("column"===e.btnType)return!0}));return e}return[]},operateColumnBtns:function(){return 1!==this.listStyle.rowBtn||0!==this.listStyle.rowBtnStyle&&void 0!==this.listStyle.rowBtnStyle?[]:this.toolbarBtns.filter((function(e){if("column"===e.btnType&&!0===e.btnPermission)return!0}))}}),watch:{searchKey:function(e){this.pageInfo.pageNum=this.pageInfo.pageNum>1?1:this.pageInfo.pageNum},tabActive:function(e,t){var n=this;t!==e&&(this.longPress=!1,this.listLoading=!0,this.$nextTick((function(){n.listLoading=!1})))},showSearch:function(){this.$forceUpdate()}},created:function(){var e=this;if("undefined"!==typeof this.moduleInfo.listDefaultOrderBy&&null!==this.moduleInfo.listDefaultOrderBy){var t=this.moduleInfo.listDefaultOrderBy.split(",")[0].replace(" asc"," ascending").replace(" desc"," descending");this.defaultSort.prop=t.split(" ")[0],this.defaultSort.order=t.split(" ")[1]}var n=this,a={};this.toolbarBtns.forEach(function(){var t=Wr(Ur().mark((function t(o){var i,r,s;return Ur().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"!==typeof o.btnPermission?o.btnI18nCode=o.btnI18nCode||(o.id||o.btnIcon||o.btnName).replace("btn_","").replace("Ids","").replace("Object",""):o.btnI18nCode=o.btnI18nCode||(o.btnPermission||o.id||o.btnIcon||o.btnName).replace("btn_","").replace("Ids","").replace("Object",""),o.btnName=e.$i18n.generateTitle(o,e.$vnode.context),"design"!==e.mode){t.next=6;break}o.btnPermission=!0,t.next=17;break;case 6:if(i="",i="column"===o.btnType?"COLUMN_BTN$"+o.btnPermission:"TOOLBAR_BTN$"+o.btnPermission,!a[i]){t.next=12;break}o.btnPermission=a[i],t.next=16;break;case 12:return t.next=14,Hn.A.dispatch("user/hasPermission",{route:e.$route,pcode:i});case 14:r=t.sent,o.btnPermission=r;case 16:o.btnPermission&&("string"===typeof o.btnClick?(o.btnParams=[o.btnClick.split("(")[1].split(")")[0]],s=o.btnClick.split("(")[0],o.btnClick=n[s]?n[s]:s,o.btnClickFunc=s):void 0!==o.btnClickFunc&&(o.btnClick=n[o.btnClickFunc]),void 0===o.btnStyleType&&("delete"===o.btnIcon?o.btnStyleType="danger":"plus"===o.btnIcon?o.btnStyleType="info":o.btnStyleType="primary"),2===o.btnName.length&&"topbar"!==o.btnType&&(o.btnName=o.btnName.substring(0,1)+" "+o.btnName.substring(1)));case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.setTitle&&null!==this.setTitle&&""!==this.setTitle&&this.$wv.setTitle({bool:!0,text:this.setTitle,color:"#000000"}),this.$bus.$off("refreshListData").$on("refreshListData",this.refreshListData),this.$bus.$off("removeDataitem").$on("removeDataitem",this.removeDataitem),this.emptyText=null!==this.defaultEmptyText?this.defaultEmptyText:this.$tx("common.noData","暂无数据"),this.emptyImg=null!==this.defaultEmptyImg?this.defaultEmptyImg:"./images/m-imgs/nomessage.png"},beforeDestroy:function(){this.$bus.off("refreshListData",this.refreshListData),this.$bus.off("removeDataitem",this.removeDataitem)},mounted:function(){this.advancedSearch.optionName=this.$tx("ecmapp.common.category","类别"),this.tabActive=this.getTabIndex(),(this.tabActive>0&&this.navTabList.length>this.tabActive||this.navTabList.length>0&&void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl)&&this.forceUpdateListView()},methods:{listTouchstart:function(){"bottom"!==this.listStyle.rowBtnPopupType&&(this.showPopupTipBtn=!1),this.showMoreBtn=!1},onLoad:function(){this.pageInfo.pageNum++;var e=window.pageNumMap||{},t=window.scrollTopMap||{},n=this.moduleInfo.listDataUrl;if(1===this.pageInfo.pageNum){var a=window.searchKeyMap||{};a[n]&&(this.searchMap=window.searchKeyMap[n],delete window.searchKeyMap[n]);var o=window.searchAndOrMap||{};if(o[n])if(this.searchAndOr=window.searchAndOrMap[n],delete window.searchAndOrMap[n],"or"===this.searchAndOr)for(var i in this.searchMap){this.$refs.search[0]&&(this.$refs.search[0].searchKey=this.searchMap[i]);break}else"and"===this.searchAndOr&&(this.$refs.search[0].searchCondition=!0,this.$refs.search[0].searchVo=this.searchMap,this.$refs.search[0].copytbColumns=this.searchMap.copytbColumns,this.$refs.search[0].advancedSearch=this.searchMap.advancedSearch,this.$refs.search[0].customSeaarchField=this.searchMap.customSeaarchField,delete this.searchMap.copytbColumns,delete this.searchMap.advancedSearch,delete this.searchMap.customSeaarchField);e[n]>1&&t[n]>0&&(this.pageInfo.pageSize=15*e[n])}else e[n]=this.pageInfo.pageNum;window.pageNumMap=e,this.loadListdata()},onRefresh:function(){this.pageInfo.pageNum=1;var e=window.pageNumMap||{};delete e[this.moduleInfo.listDataUrl],this.finished=0,this.loadListdata(null,null,"down")},getTabIndex:function(){var e=0,t=this.$route.path,n=this.Cookies.get("LIST_TAB_ACTIVE");return void 0!==n&&null!==n&&(n=n.split(":"),n[1]===t&&(n=parseInt(n[0]),this.navTabList.length>n&&(e=n))),e},refreshListData:function(e,t,n){if(this.showSearch=!1,this.searchKey=t||"",this.searchMap=n||{},"and"===e||""===e)if(this.pageInfo.pageNum=1,this.searchAndOr=e,this.navTabList.length>0&&void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl&&void 0!==this.$options.components["TabApp"].methods.loadListdata)this.$options.components["TabApp"].methods.loadListdata(this,{},e,this.searchMap);else if(this.advancedSearch.show&&this.advancedSearch.advancedOnSearch&&"function"===typeof this.advancedSearch.advancedOnSearch){var a={};this.advancedSearch.selectTime&&(a[this.advancedSearch.selectTime.filed+"_start"]=this.searchMap[this.advancedSearch.selectTime.filed+"_START"],a[this.advancedSearch.selectTime.filed+"_end"]=this.searchMap[this.advancedSearch.selectTime.filed+"_END"]),this.advancedSearch.advancedOnSearch(this,this.searchMap,e,a,""),this.loadListdata(this.searchMap,e)}else this.loadListdata(this.searchMap,e);else this.onSearch()},onTabClick:function(e,t){var n=this;return Wr(Ur().mark((function a(){var o,i;return Ur().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(o=n.getTabIndex(),null===o||o!==e){a.next=5;break}return a.abrupt("return");case 5:if(!n.loading){a.next=9;break}return n.forceUpdate=!0,setTimeout((function(){n.onTabClick(e,t)}),100),a.abrupt("return");case 9:return i=window.pageNumMap||{},delete i[n.moduleInfo.listDataUrl],a.next=13,n.onNavTabClick(n.navTabList[n.tabActive],e,t);case 13:n.httpload=!1,n.$bus.emit("clearSearchKey","init"),n.searchKey="",n.searchMap={},n.$bus.$off("refreshListData").$on("refreshListData",n.refreshListData),n.$bus.$off("removeDataitem").$on("removeDataitem",n.removeDataitem),n.forceUpdateListView();case 20:case"end":return a.stop()}}),a)})))()},forceUpdateListView:function(){var e=this;if(this.forceUpdate=!0,void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl){var t=this.navTabList[this.tabActive].redirectUrl.split("?");0===t[0].indexOf("@/mapp/")?this.$options.components["TabApp"]=window.$loadComponent(t[0]):0===t[0].indexOf("#/dcontent/")&&(t[0]="#/dcontent/vuelistpage/"+t[0].substring(11),-1===t[0].indexOf(".vue")&&(t[0]+=".vue"),this.$route.meta&&this.$route.meta.sysCode&&(t[0]+="?sysCode="+this.$route.meta.sysCode),this.$options.components["TabApp"]=window.$loadComponent(t[0])),this.showTabApp=!0}else this.showTabApp=!1,this.pageInfo=JSON.parse(JSON.stringify(Kr)),this.showFooterBtns=this.navTabList[this.tabActive].showFooterBtns,this.pagelist=[],this.finished=!1;this.$nextTick((function(){e.Cookies.set("LIST_TAB_ACTIVE",e.tabActive+":"+e.$route.path),e.forceUpdate=!1}))},onSearch:function(){var e=this,t={};if(this.doSearchFields.forEach((function(n){t[n]=e.searchKey})),this.navTabList.length>0&&void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl&&void 0!==this.$options.components["TabApp"].methods.loadListdata)this.$options.components["TabApp"].methods.loadListdata(this,this.searchKey,"or",t);else if(this.advancedSearch.show&&this.advancedSearch.advancedOnSearch&&"function"===typeof this.advancedSearch.advancedOnSearch){var n={};this.advancedSearch.selectTime&&(n[this.advancedSearch.selectTime.filed+"_start"]=this.searchMap[this.advancedSearch.selectTime.filed+"_START"],n[this.advancedSearch.selectTime.filed+"_end"]=this.searchMap[this.advancedSearch.selectTime.filed+"_END"]),this.advancedSearch.advancedOnSearch(this,t,"or",n,this.searchKey),this.loadListdata(t,"or")}else this.loadListdata(t,"or")},handleCellClick:function(e){if(!this.longPress){var t=this.moduleInfo.listDataUrl,n=window.scrollTopMap||{},a=this.$el.querySelector(".listdata-container");n[t]=a.scrollTop,window.scrollTopMap=n;var o=window.searchKeyMap||{};o[t]=this.searchMap,window.searchKeyMap=o;var i=window.searchAndOrMap||{};i[t]=this.searchAndOr,window.searchAndOrMap=i,"and"===this.searchAndOr&&(window.searchKeyMap[t].copytbColumns=this.$refs.search[0]&&this.$refs.search[0].copytbColumns,window.searchKeyMap[t].advancedSearch=this.$refs.search[0]&&this.$refs.search[0].advancedSearch,window.searchKeyMap[t].customSeaarchField=this.$refs.search[0]&&this.$refs.search[0].customSeaarchField),this.selectedRows=[e],null!==this.onCellClick&&void 0!==this.onCellClick?this.onCellClick(e):this.viewObject()}},loadListdata:function(e,t,n){var a=this;return Wr(Ur().mark((function o(){var i,r,s,l,d;return Ur().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(a.pageInfo.pageNum<2&&(a.listLoading=!0),!(a.listdata.length>0)){o.next=8;break}return a.pagelist=a.listdata,a.loading=!1,a.finished=!0,a.listLoading=!1,a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:a.$tx("common.nothingMore","没有更多了"),o.abrupt("return");case 8:if("undefined"!==typeof a.moduleInfo.listDataUrl){o.next=13;break}return a.finished=!0,a.listLoading=!1,a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:a.$tx("common.noData","暂无数据"),o.abrupt("return");case 13:if(!a.httpload){o.next=18;break}return a.listLoading=!1,o.abrupt("return");case 18:a.httpload=!0;case 19:return"down"===n&&(a.pullRefresh=!0,a.loading=!1,a.listLoading=!1,a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:a.$tx("common.nothingMore","没有更多了")),a.searchAndOr=t||a.searchAndOr,a.searchMap=e||a.searchMap,i=a.pageInfo.orderBy||a.moduleInfo.listDefaultOrderBy,a.pageInfo.listpageId=a.moduleInfo.listpageId,a.pageInfo.listpageViewUrl=a.moduleInfo.listpageViewUrl,a.pageInfo.orderBy=i,a.pageInfo.searchAndOr=a.searchAndOr,a.pageInfo.searchMap=a.searchMap,r=a.getTabIndex(),"listpage"===a.mode&&(a.navTabList.length>0&&void 0!==a.navTabList[r].datafilter?a.pageInfo.urlsearch=a.navTabList[r].datafilter:a.pageInfo.urlsearch=""),o.next=32,a.onListDataBeforeLoad(a,a.pageInfo);case 32:if(a.moduleInfo.listDataUrl){o.next=34;break}return o.abrupt("return");case 34:return void 0!==a.moduleInfo.listpageViewUrl&&void 0===a.pageInfo.sysCode&&a.$route.meta&&a.$route.meta.sysCode&&(a.pageInfo.sysCode=a.$route.meta.sysCode),o.next=37,a.$app.listdata(a.moduleInfo.listDataUrl,a.pageInfo);case 37:if(s=o.sent,r===a.getTabIndex()){o.next=40;break}return o.abrupt("return");case 40:if("success"!==s.code){o.next=54;break}return a.pageInfo=s.body.pageInfo,a.pageInfo.orderBy=i,a.pageInfo.passenger=s.body.passenger,l=a,a.pageInfo.list.forEach((function(e){e.checked=l.checkedAll})),o.next=48,a.onListDataLoaded(a,a.pageInfo,s);case 48:void 0===e?(d=a.pagelist).push.apply(d,$r(a.pageInfo.list)):a.pagelist=a.pageInfo.list,a.pageInfo.endRow===a.pageInfo.total?a.finished=!0:a.finished=!1,a.$nextTick((function(){a.setListViewHeight()})),""!==a.searchKey||a.searchTime.searchType||void 0!==e&&null!==e&&""!==e&&"{}"!==JSON.stringify(e)?(a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:0===a.pagelist.length?a.$tx("common.noContent","抱歉, 无相关内容"):a.$tx("common.nothingMore","没有更多了"),a.emptyImg=null!==a.defaultEmptyImg?a.defaultEmptyImg:"./images/m-imgs/nosearch.png"):(a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:0===a.pagelist.length?a.$tx("common.noData","暂无数据"):a.$tx("common.nothingMore","没有更多了"),a.emptyImg=null!==a.defaultEmptyImg?a.defaultEmptyImg:"./images/m-imgs/nomessage.png"),o.next=56;break;case 54:a.$toast(s.message),a.finished=!0;case 56:a.loading=!1,a.httpload=!1,setTimeout((function(){a.listLoading=!1,a.pullRefresh=!1,setTimeout((function(){var e=window.pageNumMap||{},t=window.scrollTopMap||{},n=window.firstDataIdMap||{},o=a.moduleInfo.listDataUrl;if(1===a.pageInfo.pageNum&&a.pageInfo.size>0)if(e[o]>1)a.pageInfo.pageNum=e[o],a.pageInfo.pageSize=15,delete e[o];else{var i=window.firstDataIdMap||{};i[o]=a.pageInfo.list[0].id,window.firstDataIdMap=i}if(t[o]&&a.pageInfo.list[0].id===n[o]){var r=a.$el.querySelector(".listdata-container");r.scrollTo({top:t[o]}),delete t[o]}}),0)}),0);case 59:case"end":return o.stop()}}),o)})))()},setListViewHeight:function(){var e=document.querySelectorAll(".out-tbs").length,t=document.querySelectorAll(".p-search").length,n=document.querySelectorAll(".show-search-key").length,a=document.querySelector(".selectPageDialog"),o=document.querySelector(".van_dropdown-menu_cell"),i=0;e>0&&(i+=44),t>0&&(i+=55),n>0&&(i+=41),this.showFooterNavBar&&!this.longPress&&(i+=58),this.longPress&&(i+=104),a&&(i+=106),o&&(i+=50);var r=document.querySelector(".listdata-container");if(null!==r){if(this.navTabList.length>1){var s=document.querySelectorAll(".van-tab__pane");r=s[this.tabActive].querySelector(".listdata-container");var l=s[this.tabActive].querySelector(".list-table-top");l&&(i+=l.offsetHeight)}else{var d=this.$vnode.context.$vnode.context.$vnode.context.navTabList;d&&d.length>1&&(r=this.$el.querySelector(".listdata-container"));var c=document.querySelector(".list-table-top");c&&(i+=c.offsetHeight)}r.style.height="calc(100vh - "+i+"px - var(--headerHeight))"}},btnClick:function(e,t){var n=this;if(this.longPress){var a=this.pagelist.filter((function(e){return!0===e.checked}));if(0===a.length)return void this.$dialog.alert({message:this.$tx("ecmapp.message.selectNeedRows",{dataType:e.btnName.replace(" ","")},"请选择需要".concat(e.btnName.replace(" ",""),"的数据!")),type:"warning"});if(!this[e.btnClickFunc])return void e.btnClick(this,a,(function(e){null!==e.checked&&void 0!==e.checked&&(n.longPress=e.checked,!1===e.checked&&n.setListViewHeight())}));if("deleteIds"===e.btnClickFunc||"removeDataitem"===e.btnClickFunc){var o=[];a.forEach((function(e){o.push(e.id)})),e.btnClick(o.join(","))}this.$bus.emit("accomplishChecked")}else void 0!==e.btnParams&&null!==e.btnParams?1===e.btnParams.length&&"row.id"===e.btnParams[0]&&void 0!==t?e.btnClick.apply(this,t.id.split(",")):e.btnClick.apply(this,e.btnParams):e.btnClick(this,t),3===this.listStyle.rowBtnStyle&&(this.showPopupTipBtn=!1,this.showMoreBtn=!1)},addObject:function(){this.$router.push({path:this.$route.path,query:{id:"",canEdit:1}})},editObject:function(e){var t=e?e.id:this.getSelectedRows()[0];this.$router.push({path:this.$route.path,query:{id:t,canEdit:1}})},viewObject:function(e){var t=e?e.id:this.getSelectedRows()[0];this.$router.push({path:this.$route.path,query:{id:t,canEdit:0}})},deleteIds:function(e){var t=this,n=this;this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDeleteSelected","您是否确认删除选择的数据?")}).then(Wr(Ur().mark((function a(){var o;return Ur().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e=void 0===e?n.getSelectedRows():e.split(","),a.next=3,t.$app.deleteByIds(t.moduleInfo.delUrl,e);case 3:o=a.sent,"success"===o.code?(t.onDeleteSuccessed(t,e),t.$toast.success(o.message),t.removeDataitem(e)):"confirm"===o.code?t.$dialog.confirm({message:o.message}).then(Wr(Ur().mark((function n(){var a;return Ur().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$app.deleteByIds(t.moduleInfo.delUrl,e,!0);case 2:a=n.sent,"success"===a.code?(t.onDeleteSuccessed(t,e),t.$toast.success(a.message),t.removeDataitem(e)):t.$dialog.alert({message:a.message});case 4:case"end":return n.stop()}}),n)})))).catch((function(){console.log("cancel delete.")})):t.$dialog.alert({message:o.message});case 5:case"end":return a.stop()}}),a)})))).catch((function(){console.log("cancel delete.")}))},removeDataitem:function(e){var t=this,n=this.pagelist;this.pagelist=[],e.forEach((function(e){for(var t=0;t<n.length;t++)if(n[t].id===e){n.splice(t,1);break}})),this.$nextTick((function(){t.pagelist=n}))},getSelectedRows:function(){var e=[];return this.selectedRows.forEach((function(t){e.push(t.id)})),e},gotouchstart:function(){void 0!==this.$refs.tableList.length?this.$refs.tableList[this.tabActive].gotouchstart():this.$refs.tableList.gotouchstart()},gotouchend:function(){void 0!==this.$refs.tableList.length?this.$refs.tableList[this.tabActive].gotouchend():this.$refs.tableList.gotouchend()}}},Zr=Qr,Xr=(a(2719),(0,Ca.A)(Zr,fr,pr,!1,null,"ab09df0e",null)),es=Xr.exports;es.install=function(e){e.component(es.name,es)};var ts=es,ns=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inner-table-container"},[e._l(e.showListdata,(function(n,a){return t("van-cell-group",{key:a,staticClass:"inner-table-row"},[1==e.formCanEdit?t("van-cell",{staticClass:"inner_table_title",attrs:{title:e.formTitle}},[1==e.canEdit&&e.listpageRowBtns.length>0?e._l(e.listpageRowBtns,(function(n,a){return t("van-icon",{key:a,attrs:{slot:"right-icon",name:n.btnIcon},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.cloumHeaderBtnClick(n)}},slot:"right-icon"})})):e._e(),1==e.canDelete?t("van-icon",{attrs:{slot:"right-icon",name:"delete-o"},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteIds(n)}},slot:"right-icon"}):e._e(),1==e.canEdit?t("van-icon",{attrs:{slot:"right-icon",name:"edit"},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.editObject(n)}},slot:"right-icon"}):e._e()],2):e._e(),1!=e.formCanEdit?t("van-cell",{staticClass:"inner_table_title",attrs:{title:e.formTitle}},[t("van-icon",{attrs:{slot:"right-icon",name:"arrow"},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.editObject(n)}},slot:"right-icon"})],1):e._e(),e.showForm?e._e():t("van-cell-group",[e._t("row",(function(){return[e._l(e.tbColumns,(function(a,o){return["textarea"!=a.elementType?t("van-field",{key:o,attrs:{label:a.title,value:e.elementValueFormatter(n,a,n[a.field]),readonly:"","input-align":"right"}}):t("van-cell",{attrs:{title:a.title}},[t("div",{staticClass:"van-cell__value van-cell__value--alone",attrs:{slot:"label"},slot:"label"},[e._v(" "+e._s(n[a.field])+" ")])])]}))]}),{dataitem:n,columns:e.tbColumns})],2)],1)})),0==e.showListdata.length?t("van-cell-group",{staticClass:"inner-table-row"},[t("van-cell",{staticClass:"inner_table_title",attrs:{title:e.formTitle}}),t("van-cell-group",[t("van-cell",{staticClass:"inner-table-nodata",attrs:{title:e.$tx("common.noData","暂无数据")}})],1)],1):e._e(),t("div",{staticClass:"inner_table_list_bottom_slot"},[e._t("listbottom",null,{listdata:e.showListdata,canEdit:e.canEdit,canDelete:e.canDelete})],2),1==e.formCanEdit&&e.listpageBtns.length>0&&0!==e.canAdd?t("div",{staticClass:"inner-table-add-botton-container"},[t("van-button",{attrs:{type:"default",block:"",icon:e.listpageBtns[0].btnIcon?e.listpageBtns[0].btnIcon:"plus",disabled:e.innerTableBtnDisabled},on:{click:function(t){return e.cloumHeaderBtnClick(e.listpageBtns[0])}}},[e._v(e._s(e.listpageBtns[0].btnName?e.listpageBtns[0].btnName:e.$tx("pageBtns.addTo","添加")))])],1):e._e(),e.showForm?t("PopupDialog",{attrs:{showpop:e.showForm,title:e.formTitle},on:{"update:showpop":function(t){e.showForm=t},close:e.closeBusiform}},[t("div",{staticClass:"popup-content"},[""!=e.formTitle?t("Basicform",{attrs:{"disabled-dialog":1,"toolbar-btns":e.formToolbarBtns,"module-code":e.moduleInfo.moduleCode,"wf-attach":e.wfAttach,"attach-edit":e.attachEdit,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit},scopedSlots:e._u([{key:"default",fn:function(n){return[t("BusiForm",{ref:"busiform",attrs:{vo:n?n.vo:e.formVo,"can-edit":e.formCanEdit&&e.canEdit,"module-info":e.moduleInfo}})]}}],null,!1,1845604844)}):e._e()],1)]):e._e()],2)},as=[];function os(e){return os="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},os(e)}function is(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */is=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==os(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(os(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function rs(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function ss(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){rs(i,a,o,r,s,"next",e)}function s(e){rs(i,a,o,r,s,"throw",e)}r(void 0)}))}}function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach((function(t){cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cs(e,t,n){return(t=us(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function us(e){var t=fs(e,"string");return"symbol"==os(t)?t:t+""}function fs(e,t){if("object"!=os(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=os(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ps=a(5093),ms={name:"InnerTable",props:{listviewurl:{type:String,default:null},linkPropName:{type:String,default:null},masterFieldFormula:{type:String,default:null},excludeFields:{type:String,default:""},pageSize:{type:Number,default:1e4},showToolbar:{type:Number,default:0},canEdit:{type:Number,default:1},canDelete:{type:Number,default:1},canAdd:{type:Number,default:1},canEditWfNodes:{type:String,default:""},canDeleteWfNodes:{type:String,default:""},canAddWfNodes:{type:String,default:""},textareaStyle:{type:Number,default:0},listdata:{type:Array,default:function(){return[]}}},data:function(){return{showForm:!1,formTitle:"",formVo:null,formCanEdit:0,loading:!1,moduleInfo:{},wfAttach:!1,tbColumns:[],listpageBtns:[],listpageRowBtns:[],pageInfo:JSON.parse(JSON.stringify({pageSize:this.pageSize,total:0,pageNum:0})),formToolbarBtns:[],attachEdit:null,innerTableBtnDisabled:!1,showListdata:[],curTN:""}},computed:ds({},(0,ei.L8)(["loginUser"])),watch:{},created:function(){void 0!==this.$vnode.context.canEdit?this.formCanEdit=this.$vnode.context.canEdit:this.formCanEdit=this.canEdit,this.createInnerListpage(),this.$bus.on("refreshListData",this.loadListdata)},beforeDestroy:function(){this.$bus.off("refreshListData",this.loadListdata)},mounted:function(){var e=this.$vnode.context.curTN;if(e){if(this.curTN=e,e.tnChildDataEdit&&3===e.tnChildDataEdit.split(",").length){var t=e.tnChildDataEdit.split(",");this.canAdd=parseInt(t[0]),this.canEdit=parseInt(t[1]),this.canDelete=parseInt(t[2])}2===this.canAdd&&(-1!==this.canAddWfNodes.indexOf(e.tnNodeName)?this.canAdd=1:this.canAdd=0),2===this.canEdit?-1!==this.canEditWfNodes.indexOf(e.tnNodeName)?this.canEdit=1:this.canEdit=0:3===this.canEdit&&(this.canEdit=this.canAdd),2===this.canDelete?-1!==this.canEditWfNodes.indexOf(e.tnNodeName)?this.canDelete=1:this.canDelete=0:3===this.canDelete&&(this.canDelete=this.canAdd)}1===this.formCanEdit&&1===this.canEdit||this.formToolbarBtns.push({id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:"closeDialog",btnPermission:"",btnType:""})},methods:{createInnerListpage:function(){var e=this,t=this;if(!t.loading){t.loading=!0;var n={method:"GET",contentType:"application/x-www-form-urlencoded",url:"dcontent/getListpageInfo/"+this.listviewurl+"/"};this.$vnode.context.wfInstance?n.params={sysCode:this.$vnode.context.wfInstance.sysCode,textareaStyle:this.textareaStyle}:n.params={textareaStyle:this.textareaStyle},this.$http(n).then((function(n){if("success"===n.code){var a=n.body.listpage,o=JSON.parse(a.listModuleInfo);o.listpageId=a.id,-1!==a.listName.indexOf(">")?e.formTitle=a.listName.substring(a.listName.lastIndexOf(">")+1):e.formTitle=a.listName;for(var i=JSON.parse(a.listColumns),r=0;r<i.length;r++)i[r].sortable=!1,"state"===i[r].field||"index"===i[r].field?i.splice(r--,1):!1!==i[r].enabled&&-1===e.excludeFields.indexOf(i[r].field)||i.splice(r--,1);if(1===e.textareaStyle&&n.body.tbFieldList&&i.forEach((function(e){n.body.tbFieldList.forEach((function(t){e.field===t.prop&&(e.elementType=t.type||t.TYPE)}))})),1===e.formCanEdit){e.listpageRowBtns=[];var s=JSON.parse(a.listToolBtns),l=s.filter((function(t){if("columnHeaderBtn"===t.btnType){var n=t.btnClick,a=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));return""!==a&&(a=a.replace(/'/g,"").split(","),t.btnParams=a),"function"===typeof e.$vnode.context[n.split("(")[0]]&&(t.btnClick=e.$vnode.context[n.split("(")[0]]),!0}1===e.showToolbar&&"column"===t.btnType&&"editObject"!==t.btnPermission&&"deleteIds"!==t.btnPermission&&e.listpageRowBtns.push(t)}));0===l.length&&(l=s.filter((function(e){if(("toolbar"===e.btnType||"page"===e.btnType)&&"btn_add"===e.id)return!0}))),t.listpageBtns=l}t.moduleInfo=o,t.tbColumns=i,t.tableFieldInfo=void 0===n.body.busiformFields?[]:n.body.busiformFields;var d=t.getChildDataParentId();null!==d&&void 0!==d&&t.moduleInfo.addNewUrl&&(-1===t.moduleInfo.addNewUrl.indexOf("?")?t.moduleInfo.addNewUrl+="?":t.moduleInfo.addNewUrl+="&",t.moduleInfo.addNewUrl+=(null===t.linkPropName?"parentId=":t.linkPropName+"=")+d),t.$nextTick((function(){setTimeout((function(){var e=document.querySelector(".inner-table-container").parentElement;null!==e.nextElementSibling&&e.nextElementSibling.className.indexOf("form-slicer")>-1&&document.querySelector(".inner-table-add-botton-container")&&(document.querySelector(".inner-table-add-botton-container").style.marginBottom="1px")}),0)})),t.loadListdata()}else e.$toast(n.message);t.loading=!1}))}},getChildDataParentId:function(){var e=null,t=this.$vnode.context;if(t.vo&&(e=t.vo.id),this.masterFieldFormula){var n=this.masterFieldFormula.split(".");1===n.length?e=t[n[0]]:2===n.length&&(e=t[n[0]][n[1]])}return e},loadListdata:function(){var e=this;return ss(is().mark((function t(){var n,a;return is().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.listdata.length>0)){t.next=4;break}return e.finished=!0,e.showListdata=e.listdata,t.abrupt("return");case 4:if("undefined"!==typeof e.moduleInfo.listDataUrl){t.next=6;break}return t.abrupt("return");case 6:return n=e.pageInfo.orderBy||e.moduleInfo.listDefaultOrderBy,e.pageInfo.listpageId=e.moduleInfo.listpageId,e.pageInfo.listpageViewUrl=e.moduleInfo.listpageViewUrl,e.pageInfo.orderBy=n,e.pageInfo.searchAndOr=e.searchAndOr,e.pageInfo.searchMap=e.searchMap,t.next=14,e.onListDataBeforeLoad(e,e.pageInfo);case 14:return void 0!==e.moduleInfo.listpageViewUrl&&void 0===e.pageInfo.sysCode&&e.$route.meta&&e.$route.meta.sysCode&&(e.pageInfo.sysCode=e.$route.meta.sysCode),t.next=17,e.$app.listdata(e.moduleInfo.listDataUrl,e.pageInfo);case 17:if(a=t.sent,"success"!==a.code){t.next=27;break}return e.pageInfo=a.body.pageInfo,e.pageInfo.orderBy=n,e.pageInfo.passenger=a.body.passenger,t.next=24,e.onListDataLoaded(e,e.pageInfo);case 24:e.showListdata=e.pageInfo.list,t.next=28;break;case 27:e.$toast(a.message);case 28:case"end":return t.stop()}}),t)})))()},onListDataBeforeLoad:function(e,t){var n=this.getChildDataParentId();null!==n&&void 0!==n&&(t.urlsearch=(null===this.linkPropName?"parentId:":this.linkPropName+":")+n),t.pageSize=null===this.pageSize?1e4:this.pageSize,this.curTN&&this.curTN.tnChildDataFilterType>0&&(-1===this.moduleInfo.listDataUrl.indexOf("?")?this.moduleInfo.listDataUrl+="?dataFilterType="+this.curTN.tnChildDataFilterType:this.moduleInfo.listDataUrl+="&dataFilterType="+this.curTN.tnChildDataFilterType,5===this.curTN.tnChildDataFilterType?this.moduleInfo.listDataUrl+="&staffOrgID="+this.curTN.staffOrgID:7===this.curTN.tnChildDataFilterType&&(this.moduleInfo.listDataUrl+="&tnNodeID="+this.curTN.tnNodeID)),this.$vnode.context.onInnerTableListDataBeforeLoad&&this.$vnode.context.onInnerTableListDataBeforeLoad(e,t)},onListDataLoaded:function(e,t){this.$vnode.context.innerListData=t.list,this.$vnode.context.onInnerTableListDataLoaded&&this.$vnode.context.onInnerTableListDataLoaded(e,t)},elementValueFormatter:function(e,t,n,a){if(null==n)return n;var o=n,i=t.propFormatter;if("undefined"!==typeof i&&null!==i&&""!==i||(i=t.elementFormatter),"undefined"!==typeof i&&null!==i||(i=""),"java.util.Date"===t.propType||-1!==i.toUpperCase().indexOf("MM")){var r=i.replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,"");if(0===r.indexOf("format:")&&(r=r.substring(7),null!==n&&""!==n&&-1!==n.indexOf(":"))){var s=new Date(n.replace(/-/g,"/"));isNaN(s.getTime())||(o=ps(new Date(n.replace(/-/g,"/"))).format(r.replace("yyyy","YYYY").replace("dd","DD")))}}else if(0===i.indexOf("valueSuffix:"))null!==n&&""!==n&&""!==n.trim()&&(o=n+i.split(":")[1]);else{t.formatterMap||"checkbox"!==t.listAdvSearchElement&&"radio"!==t.listAdvSearchElement&&"select"!==t.listAdvSearchElement||this.pageInfo.passenger&&"object"===os(this.pageInfo.passenger[t.field+"Options"])&&this.pageInfo.passenger[t.field+"Options"].length>0&&(t.formatterMap=this.pageInfo.passenger[t.field+"Options"],t.formatterMap={},this.pageInfo.passenger[t.field+"Options"].forEach((function(e){t.formatterMap[e.value]=e.text})));var l=t.formatterMap||{};if(!t.formatterMap){for(var d=i.replace(/\r\n/g,"<br>").replace(/\\r\\n/g,"<br>").replace(/\n/g,"<br>").replace(/\\n/g,"<br>").split("<br>"),c=0;c<d.length;c++)if(d[c].split(":").length>1){var u=d[c].split(":")[0];l[u]=d[c].split(":")[1]}t.formatterMap=l}l[n]?o=l[n]:"boolean"===t.propType&&(o=l[n?1:0])}return"Float"===t.propType&&(o=Number(o).toFixed(2)),o},cloumHeaderBtnClick:function(e){"columnHeaderBtn"===e.btnType||"column"===e.btnType?("string"===typeof e.btnClick&&(e.btnClick=this.$vnode.context[e.btnClick.split("(")[0].trim()]),null!==e.btnParams?e.btnClick.apply(this.$vnode.context,e.btnParams):e.btnClick.apply(this.$vnode.context)):this.addObject()},addObject:function(){var e=this;this.innerTableBtnDisabled=!0;var t=this;new Promise((function(n,a){t.$vnode.context.$parent.isnew?t.$bus.emit("submitBusiform",t.$vnode.context.$parent.moduleInfo,(function(t){e.$nextTick((function(){e.innerTableBtnDisabled=!1})),n(t)}),"InnerTableSave"):t.$vnode.context.wfInstance&&-1===t.$vnode.context.wfInstance.status?t.$vnode.context.$vnode.context.btnSubmitClick("AutoSave",(function(t){e.$nextTick((function(){e.innerTableBtnDisabled=!1})),n(t)}),"InnerTableSave"):(e.$nextTick((function(){e.innerTableBtnDisabled=!1})),n(!0))})).then((function(t){t&&(e.showForm=!0,e.$nextTick((function(){e.loadSubForm(),setTimeout((function(){e.$bus.emit("openBusiform",e.moduleInfo,null,e.formCanEdit,e.closeBusiform)}),0)})))}))},editObject:function(e){var t=this;this.showForm=!0,this.$nextTick((function(){t.loadSubForm(),setTimeout((function(){t.$bus.emit("openBusiform",t.moduleInfo,{id:e.id},t.formCanEdit&&t.canEdit,t.closeBusiform)}),0)}))},loadSubForm:function(){var e=this.$vnode.context,t=this.moduleInfo.formTemplate.split("url=")[1];t=t.replace(/\//g,"."),t="#/dcontent/vuebusiform/M/"+t.substring(1).replace(".html",".vue"),t+="?openMode=innerTable",e.$route.meta&&e.$route.meta.sysCode?t+="&sysCode="+e.$route.meta.sysCode:e.vo.sysCode&&null!==e.vo.sysCode&&""!==e.vo.sysCode?t+="&sysCode="+e.vo.sysCode:e.wfInstance&&(t+="&sysCode="+e.wfInstance.sysCode),this.$options.components["BusiForm"]=this.$loadComponent(t)},onBasicFormBeforeOpen:function(e,t,n){var a=this;new Promise((function(n,o){a.$vnode.context.onInnerFormBeforeOpen?(e.innerModuleInfo=a.moduleInfo,a.$vnode.context.onInnerFormBeforeOpen(e,t,{resolve:n,reject:o})):n(!0)})).then((function(o){if(o){console.log(e.moduleInfo.moduleCode+" form before open");var i=null,r=a.$vnode.context;r.vo&&(i=r.vo.id),null!==i&&void 0!==i&&(void 0===a.linkPropName||null===a.linkPropName?t.parentId=i:t[a.linkPropName]=i),a.formVo=t,n.resolve(!0)}else n.resolve(!1)})).catch((function(e){n.reject(e)}))},onBasicFormBeforeSubmit:function(e,t,n){var a=this;new Promise((function(n,o){a.$vnode.context.onInnerBasicFormBeforeSubmit?a.$vnode.context.onInnerBasicFormBeforeSubmit(e,t,{resolve:n,reject:o}):n(!0)})).then((function(e){e?n.resolve(!0):n.resolve(!1)})).catch((function(e){n.reject(e)}))},deleteIds:function(e){var t=this;this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDeleteSelected","您是否确认删除选择的数据?")}).then(ss(is().mark((function n(){var a,o,i;return is().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.id.split(","),n.next=3,t.$app.deleteByIds(t.moduleInfo.delUrl,a);case 3:if(o=n.sent,"success"!==o.code){n.next=17;break}t.$toast.success(o.message),i=0;case 7:if(!(i<t.showListdata.length)){n.next=14;break}if(t.showListdata[i].id!==e.id){n.next=11;break}return t.showListdata.splice(i,1),n.abrupt("break",14);case 11:i++,n.next=7;break;case 14:t.closeBusiform({code:"success"}),n.next=18;break;case 17:t.$dialog.alert({message:o.message});case 18:case"end":return n.stop()}}),n)})))).catch((function(){console.log("cancel delete.")}))},closeBusiform:function(e){var t=document.querySelector(".popup-content");null!==t&&(t=t.querySelectorAll(".van-field--error")),void 0!==t&&null!==t&&t.length>0&&t.forEach((function(e){S(e,"van-field--error")})),e&&"success"===e.code&&(this.showListdata=[],this.loadListdata()),this.formVo=null,this.showForm=!1}}},hs=ms,vs=(a(3268),(0,Ca.A)(hs,ns,as,!1,null,"eedaacfa",null)),gs=vs.exports;gs.install=function(e){e.component(gs.name,gs)};var ys=gs,_s=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"bodyfilebox"}},[t("div",{staticClass:"box"},[t("div",{staticClass:"box-inner"},["ofd"===e.viewBodyFileShow?[t("div",{staticStyle:{width:"17px",right:"3px",padding:"8px",top:"4px","z-index":"1000"},style:{position:"ofd"===e.viewBodyFileShow?"absolute":"fixed",top:"ofd"===e.viewBodyFileShow?"40px":"100px"},attrs:{id:"changeScreenH"},on:{click:function(t){return t.stopPropagation(),e.changeScreenHo.apply(null,arguments)}}},[t("img",{staticStyle:{width:"100%"},attrs:{src:"./images/m-imgs/app-icons/ic_change_ho.png"}})])]:[t("div",{staticStyle:{width:"17px",right:"3px",padding:"8px",top:"4px","z-index":"1000",position:"absolute"},attrs:{id:"changeScreenH"},on:{click:function(t){return t.stopPropagation(),e.changeScreenHo.apply(null,arguments)}}},[t("img",{staticStyle:{width:"100%"},attrs:{src:"./images/m-imgs/app-icons/ic_change_ho.png"}})])],t("span",{directives:[{name:"show",rawName:"v-show",value:e.showViewer,expression:"showViewer"}]},[t("ShowViewer",{attrs:{"body-url":e.bodyFileUrl,"view-body-file-show":e.viewBodyFileShow,type:1}})],1),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.showViewer,expression:"!showViewer"}]},["pdf"===e.viewBodyFileShow?t("iframe",{ref:"iframeBodyFile",attrs:{id:"pdfHtml",width:"100%",height:"100%",frameborder:"0",src:e.bodyFileUrl}}):"ofd"===e.viewBodyFileShow?t("iframe",{ref:"OfdjsView",attrs:{id:"pofdHtml",width:"100%",height:"100%",frameborder:"0",scrolling:"yes",src:e.bodyFileUrl}}):e._e()])],2)]),e.sign||e.seal?t("div",{staticClass:"bottom-bar"},[e.sign&&e.dVisiblesign?t("AddSign",{on:{addSucc:e.signAddSucc,closesign:e.closesign}}):e._e(),e.seal&&e.dVisibleseal?t("ListSeals",{attrs:{"seal-source":e.sealSource,inputpwd:e.inputpwd},on:{addSucc:e.selsAddSucc,closeseal:e.closeseal}}):e._e()],1):e._e()])},bs=[],ws=function(){var e=this,t=e._self._c;return t("div",[e.dVisible?t("PopupDialog",{attrs:{title:e.$tx("ecmapp.pdfTools.selectSignature","选择签名"),showpop:e.dVisible,"on-closed":e.canAddFun},on:{"update:showpop":function(t){e.dVisible=t}}},[null!==e.signList?[t("div",{staticStyle:{height:"calc(100vh - 106px)","overflow-y":"auto"}},[e.signList.length>0?t("van-cell-group",{staticClass:"van_signList_list"},[e._l(e.signList,(function(n,a){return[t("van-cell",{key:a,on:{click:function(t){return e.selSign(n)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"sign_img"},[t("img",{attrs:{src:"data:image/png;base64,"+e.arrayBufferToBase64(n.imgFileData)}})]),t("div",{staticClass:"signList_content"},[t("div",[e._v(e._s(n.imgFileName))])])]},proxy:!0}],null,!0)})]}))],2):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pdfTools.firstAddSgnature",expression:"'ecmapp.pdfTools.firstAddSgnature'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("暂无可用签名,请先添加签名!")])],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pdfTools.addSgnature",expression:"'ecmapp.pdfTools.addSgnature'"}],attrs:{type:"info"},on:{click:e.newsign}},[e._v("添加签名")])],1)]:[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pdfTools.loadingWait",expression:"'ecmapp.pdfTools.loadingWait'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("正在加载,请稍候...")])]],2):e._e(),e.newSigndVisible?t("PopupDialog",{attrs:{showpop:e.newSigndVisible},on:{"update:showpop":function(t){e.newSigndVisible=t}}},[[t("mPdfSign")]],2):e._e()],1)},xs=[],Ms=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main"},[t("canvas",{attrs:{id:"myCanvas",width:"280",height:"600"},on:{touchstart:e.touchstart,touchmove:e.touchmove,touchend:e.touchend}}),t("div",{attrs:{id:"operation"}},[t("van-button",{attrs:{type:"default",disabled:!e.hasContent},on:{click:e.reset}},[e._v("重置签名")]),t("van-button",{attrs:{type:"info",disabled:!e.hasContent},on:{click:e.getPic}},[e._v("生成签名")])],1)])},ks=[],Ls=a(5093),Ss={components:{},props:{},data:function(){return{hasContent:!1,mobileWidth:0,mobileHeight:0,start_x:0,start_y:0,move_x:0,move_y:0,end_x:0,end_y:0,t:0,l:0}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.canvas=document.getElementById("myCanvas"),this.ctx=this.canvas.getContext("2d"),this.mobileWidth=document.documentElement?document.documentElement.clientWidth:document.body.clientWidth,this.mobileHeight=document.documentElement?document.documentElement.clientHeight:document.body.clientHeight;var e=document.documentElement?document.documentElement:document.body;e.style.fontSize=100*this.mobileWidth/750+"px",this.canvas.setAttribute("width",this.mobileWidth-1.7*this.mobileWidth*100/750-2),this.canvas.setAttribute("height",this.mobileHeight-1.2*this.mobileWidth*100/750-2),this.t=this.canvas.offsetTop,this.l=this.canvas.offsetLeft},methods:{touchstart:function(e){this.start_x=e.touches[0].pageX-this.l,this.start_y=e.touches[0].pageY-this.t,this.ctx.beginPath(),this.ctx.moveTo(this.start_x,this.start_y)},touchmove:function(e){e.preventDefault(),this.move_x=e.touches[0].pageX-this.l,this.move_y=e.touches[0].pageY-this.t,this.ctx.lineTo(this.move_x,this.move_y),this.ctx.stroke()},touchend:function(e){this.end_x=e.changedTouches[0].pageX-this.l,this.end_y=e.changedTouches[0].pageY-this.t,this.ctx.closePath(),this.hasContent=!0},reset:function(){this.ctx.clearRect(0,0,this.mobileWidth-1.7*this.mobileWidth*100/750-2,this.mobileHeight-1.2*this.mobileWidth*100/750-2),this.hasContent=!1},getPic:function(){var e=this,t=new Image;t.src=this.canvas.toDataURL("image/png");var n=document.createElement("canvas"),a=n.getContext("2d"),o={sx:0,sy:0,ex:0,ey:0};t.onload=function(){var e=t.width,i=t.height,r=i;n.width=2*r,n.height=2*r,o.sx=r,o.sy=r-e,o.ex=r+i,o.ey=r+e,a.translate(r,r),a.rotate(Math.PI/2*3),a.drawImage(t,0,0);var s=a.getImageData(o.sx,o.sy,o.ex,o.ey);n.width=i,n.height=e,a.putImageData(s,0,0)},setTimeout((function(){var t=n.toDataURL("image/png"),a=e.$route.query.tSessionId,o={id:a,imgFileName:"我的签名"+Ls(new Date).format("YYYYMMDDHHmmss")+".png",imgFileData:t.replace("data:image/png;base64,",""),imgPercentage:1,imgXPos:0,imgYPos:0,signTime:Ls(new Date).format("YYYY-MM-DD HH:mm"),status:1};e.$http({method:"POST",url:"usersetting/signature/insert?tSessionId="+a,data:o}).then((function(t){"success"===t.code?(e.reset(),e.$route.query.tier?e.$router.back(-1):e.$router.push({path:"/mSignSuccess"})):e.$message.error(t.message)}))}))}}},Ts=Ss,Ds=(a(4400),a(4927),(0,Ca.A)(Ts,Ms,ks,!1,null,"e2b48988",null)),Ns=Ds.exports,As={components:{mPdfSign:Ns},props:{},data:function(){return{codeimg:"",tSessionId:"",signList:null,selIndex:0,timer:null,dVisible:!0,newSigndVisible:!1}},computed:{curUser:function(){return this.$store.getters.loginUser}},watch:{dVisible:function(e){e||clearInterval(this.timer)}},created:function(){this.qrCode(),this.searchOldSign()},beforeDestroy:function(){clearInterval(this.timer)},mounted:function(){},methods:{arrayBufferToBase64:function(e){for(var t="",n=new Uint8Array(e),a=n.byteLength,o=0;o<a;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)},qrCode:function(){var e=this,t=window.location.protocol+"//"+window.location.host+"/mindex.html#/mPdfSign";this.$http({method:"GET",url:"usersetting/signature/getSignatureQrCode",params:{signatureH5Url:t}}).then((function(t){"success"===t.code?(e.tSessionId=t.body.tSessionId,e.timer=setInterval((function(){e.searchNewSign()}),2e3)):e.$dialog.alert({message:t.message})}))},searchOldSign:function(){var e=this;this.$http({method:"POST",url:"usersetting/signature/querydata",params:{orderBy:"signTime desc"},data:[{compare:"=",field:"ownerAccount",merge:!0,value:this.curUser.personAccount}]}).then((function(t){"success"===t.code?e.signList=t.body.listdata:e.$dialog.alert({message:t.message})}))},selSign:function(e){this.$emit("addSucc",e),this.$bus.emit("setBtnSingSave"),clearInterval(this.timer)},canAddFun:function(){this.$emit("closesign"),clearInterval(this.timer)},searchNewSign:function(){var e=this;this.$http({method:"GET",url:"usersetting/signature/getById",params:{id:this.tSessionId}}).then((function(t){"success"===t.code&&(e.signList.splice(0,1,t.body.vo),e.qrCode())}))},newsign:function(){this.$route.query["tSessionId"]=this.tSessionId,this.newSigndVisible=!0}}},Ys=As,Cs=(a(6568),(0,Ca.A)(Ys,ws,xs,!1,null,"4baca1b9",null)),Os=Cs.exports,Is=function(){var e=this,t=e._self._c;return t("div",[e.inputpwd?t("van-dialog",{attrs:{title:e.$tx("ecmapp.pdfTools.electronicSeal","电子印章"),"show-cancel-button":"","show-confirm-button":"","close-on-popstate":!1,"before-close":e.listSeals},on:{cancel:e.canAddFun},model:{value:e.showdialog,callback:function(t){e.showdialog=t},expression:"showdialog"}},[t("div",{staticClass:"sealAccount"},[t("validation-provider",{attrs:{name:e.$tx("ecmapp.pdfTools.sealAccount","印章账号"),rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sealAccount",expression:"'sealAccount'"}],attrs:{required:!0,label:"印章账号",placeholder:"请输入印章账号",error:void 0!==a&&void 0!==a[0]||e.iserror,"input-align":"left"},model:{value:e.sealAccount,callback:function(t){e.sealAccount=t},expression:"sealAccount"}})]}}],null,!1,1865200748)})],1),t("div",{staticClass:"sealPassword"},[t("validation-provider",{attrs:{name:e.$tx("ecmapp.pdfTools.sealPassword","印章密码"),rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sealPassword",expression:"'sealPassword'"}],attrs:{required:!0,label:"印章密码",placeholder:"请输入印章密码",type:"password",error:void 0!==a&&void 0!==a[0]||e.iserror,"input-align":"left"},model:{value:e.sealPassword,callback:function(t){e.sealPassword=t},expression:"sealPassword"}})]}}],null,!1,2431372355)})],1)]):e._e(),e.inputpwd?e._e():t("PopupDialog",{attrs:{title:e.$tx("ecmapp.pdfTools.selectSeal","选择印章"),showpop:e.dVisible,"on-closed":e.canAddFun},on:{"update:showpop":function(t){e.dVisible=t}}},[null!==e.seals?[t("div",{staticStyle:{height:"calc(100vh - 46px)","overflow-y":"auto"}},[e.seals.length>0?t("div",[t("van-radio-group",{model:{value:e.signType,callback:function(t){e.signType=t},expression:"signType"}},[t("van-cell-group",e._l(e.signTypes,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.name,clickable:""},on:{click:function(t){e.signType=n.value}},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-radio",{attrs:{name:n.value}})]},proxy:!0}],null,!0)})})),1)],1),3===e.signType?t("div",{staticStyle:{"margin-top":"10px"}},[t("van-cell",{attrs:{value:e.$tx("ecmapp.pdfTools.stampPageNumber","盖章页码")}}),t("div",{staticClass:"pageList"},e._l(e.filePaegs,(function(n){return t("div",{key:n,staticClass:"page-item",class:e.signPaegs.indexOf(n)>-1?"pageActive":"",on:{click:function(t){return e.setsignPaegs(n)}}},[e._v(e._s(n))])})),0)],1):e._e(),t("van-cell-group",{staticClass:"van_seals_list"},[e._l(e.seals,(function(n,a){return[t("van-cell",{key:a,on:{click:function(t){return e.selSign(n)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"sela_img"},[t("img",{attrs:{src:n.base64img?n.base64img:"data:image/png;base64,"+n.preview}})]),t("div",{staticClass:"seals_content"},[t("div",[e._v(e._s(n.title||n.sealName))]),t("div",[e._v(e._s(n.department||n.sealTypeName))]),n.createDate?t("div",[e._v(e._s(n.createDate.substr(0,10)))]):e._e()])]},proxy:!0}],null,!0)})]}))],2)],1):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"firstUploadSeal",expression:"'firstUploadSeal'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("暂无印章,请先上传印章!")])])]:[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"loadingWait",expression:"'loadingWait'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("正在加载,请稍候...")])]],2)],1)},Es=[],$s=new window.JSEncrypt,Ps={components:{},props:{sealSource:{type:String,default:"biceng"},inputpwd:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecmapp",moduleCode:"pdfTools",sealAccount:"",sealPassword:"",seals:null,sealSessionId:"",showdialog:!1,dVisible:!1,signTypes:[{name:this.$tx("ecmapp.pdfTools.singlePage","页码签单页"),value:1},{name:this.$tx("ecmapp.pdfTools.multiplePage","页码签多页"),value:3},{name:this.$tx("ecmapp.pdfTools.pagingSeal","骑缝章"),value:2}],signType:1,filePaegs:1,signPaegs:[]}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.inputpwd&&(this.showdialog=!0)},methods:{setsignPaegs:function(e){this.signPaegs.indexOf(e)>-1?this.signPaegs.splice(this.signPaegs.indexOf(e),1):this.signPaegs.push(e),this.$forceUpdate()},listSeals:function(e,t){var n=this,a=null,o=null;"cancel"!==e?new Promise((function(e,i){n.inputpwd?n.formValidate((function(){n.$http({method:"GET",url:"login/getRsaPublicKey"}).then((function(t){"success"===t.code?($s.setPublicKey(t.body.rsaPublicKey),a=$s.encrypt(n.sealAccount),o=$s.encrypt(n.sealPassword),e(!0)):(n.$dialog.alert({message:t.message}),i(t.message))}))}),(function(){t(!1)})):e(!0)})).then((function(e){n.inputpwd=!1,n.dVisible=!0;var t="";t="eseal"===n.sealSource?"seal/esign/getSealList":"stamp/listSeals",n.$http({method:"GET",params:{sealAccount:a,sealPassword:o},url:t}).then((function(e){"success"===e.code?(n.seals=e.body.listdata,n.sealSessionId=e.body.sealSessionId,n.sealPassword=o,n.filePaegs=Number(n.$vnode.context.iframeBodyFile.document.getElementById("footerNumPages").innerText)):(n.inputpwd=!0,n.$dialog.alert({message:e.message}))}))})):t()},selSign:function(e){e.imgFileData=e.preview,e.sealSessionId=this.sealSessionId,e.sealPassword=this.sealPassword,e.signType=this.signType,e.signPaegs=this.signPaegs,this.$emit("addSucc",e),this.$bus.emit("setBtnSealSave")},canAddFun:function(){this.sealPassword="",this.$emit("closeseal")}}},js=Ps,Fs=(a(7226),(0,Ca.A)(js,Is,Es,!1,null,"1789b27e",null)),Hs=Fs.exports,Bs=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"view-container"},[t("div",{staticClass:"divNoContainer"},[t("div",{ref:"container",staticClass:"docDiv container",attrs:{id:"pdfDiv"}},["ofd"!==e.viewBodyFileShow?t("iframe",{ref:"iframeBodyFile",attrs:{id:"pdfHtml",width:"100%",height:"100%",frameborder:"0",scrolling:"yes",src:e.bodyUrl}}):e._e(),t("div",{staticClass:"tool-dv"},[e.type?t("span",{staticClass:"buttomDivD",on:{click:e.downLoadFile}},[e._v("下载")]):e._e(),t("span",{staticClass:"buttomDiv",attrs:{id:"docChange"},on:{click:e.closeShowFileDialog}},[e._v("关闭")])])])])])])},Us=[],Rs={name:"MShowViewer",components:{},props:{bodyUrl:{type:String,default:""},viewBodyFileShow:{type:String,default:""},type:{type:Boolean,default:!0}},data:function(){return{show:!1,clickAttach:{}}},computed:{},watch:{},created:function(){},beforeDestroy:function(){this.$bus.emit("closeShow")},mounted:function(){var e=this;console.log(this.bodyUrl,this.viewBodyFileShow,this.type),"ofd"===this.viewBodyFileShow&&setTimeout((function(){e.show=!0}),300)},methods:{closeShowFileDialog:function(){this.$vnode.context.showViewer=!1,this.$router.back(),this.$bus.emit("closeView"),this.$bus.emit("closeShow"),this.$wv&&"ecinc"===window.mappType&&this.$mappUtils.changeScreen(2)},downLoadFile:function(){this.clickAttach=this.$vnode.context.bodyfile;var e="/apigw/"+this.$vnode.context.wfAttachUrl+"/downloadById?attachIds="+this.$vnode.context.bodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&saveAs="+this.$vnode.context.bodyfile.fileName;"ecinc"===window.mappType?(this.clickAttach.passenger.downloadUrl=e,this.$wv.downloadAttachment(this.clickAttach)):window.open(e)}}},Ws=Rs,Vs=(a(2432),(0,Ca.A)(Ws,Bs,Us,!1,null,"1526925b",null)),zs=Vs.exports;function Js(e){return Js="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},Js(e)}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){Ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ks(e,t,n){return(t=Qs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qs(e){var t=Zs(e,"string");return"symbol"==Js(t)?t:t+""}function Zs(e,t){if("object"!=Js(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Js(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Xs={name:"PdfTools",components:{AddSign:Os,ListSeals:Hs,ShowViewer:zs},props:{sealSource:{type:String,default:"biceng"},inputpwd:{type:Boolean,default:!0},bodyFileUrl:{type:String,default:""},sign:{type:Boolean,default:!1},seal:{type:Boolean,default:!1},wfAttachUrl:{type:String,default:"wfInstance/wfBusiAttach"},bodyfile:{type:Object,default:function(){return{}}},waterMark:{type:Boolean,default:!1},viewBodyFileShow:{type:String,default:"pdf"},markContent:{type:String,default:""}},data:function(){return{pdfId:"",canAddseal:!0,canAddsign:!0,canSaveseal:!1,canSavesign:!1,dVisiblesign:!1,dVisibleseal:!1,signType:1,signPaegs:[],signObj:{},iframeBodyFile:null,loginUser:this.$store.getters.loginUser,addType:"",downloadBtn:!0,showViewer:!1}},computed:{},watch:{},created:function(){-1!==this.bodyFileUrl.indexOf("?")&&(this.pdfId=decodeURIComponent(this.bodyFileUrl.split("?")[1]).split("&")[1].split("=")[1])},beforeDestroy:function(){window.removeEventListener("message",this.iframeBtnClick,!1)},updated:function(){},mounted:function(){var e=this;-1!==this.bodyFileUrl.indexOf("?")&&"pdf"===this.viewBodyFileShow&&(this.iframeBodyFile=this.$refs.iframeBodyFile.contentWindow,setTimeout((function(){e.iframeBodyFile&&e.iframeBodyFile.loadBodyFileType&&e.iframeBodyFile.loadBodyFileType("app")}),0))},methods:{openSign:function(){this.addType="sign",this.dVisiblesign=!0,this.canAddsign=!1},openSeal:function(){this.addType="seal",this.dVisibleseal=!0,this.canAddseal=!1},getOneMmsPx:function(e,t){var n=document.createElement("div");n.id="mm",n.style.width=e+"mm",n.style.height=t+"mm",document.querySelector("body").appendChild(n);var a=document.getElementById("mm").getBoundingClientRect();return console.log(a),{w:a.width,h:a.height}},changeScreenHo:function(){this.showViewer=!0,this.$router.push({path:this.$route.fullPath,query:Gs(Gs({},this.$route.query),{},{viewer:"1"})})},selsAddSucc:function(e){if(this.signObj=e,this.dVisibleseal=!1,this.canSaveseal=!0,this.canAddseal=!1,this.canAddsign=!1,this.canSavesign=!1,"eseal"===this.sealSource){this.signType=e.signType,this.signPaegs=e.signPaegs;var t=this.getOneMmsPx(e.sealWidth,e.sealHeight);this.iframeBodyFile.addImage(e.base64img,t.w+"px",t.h+"px","seals")}else this.iframeBodyFile.addImage("data:image/"+e.previewType+";base64,"+e.imgFileData,e.width+"px",e.height+"px","seals");this.$bus.emit("setBtnSingSave")},arrayBufferToBase64:function(e){for(var t="",n=new Uint8Array(e),a=n.byteLength,o=0;o<a;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)},signAddSucc:function(e){this.signObj=e,this.dVisiblesign=!1,this.canAddsign=!1,this.canSavesign=!0,this.canSaveseal=!1,this.canAddseal=!1,this.iframeBodyFile.addImage("data:image/pngs;base64,"+this.arrayBufferToBase64(e.imgFileData),"30%","auto","sign")},closeseal:function(){this.canAddseal=!0,this.canSaveseal=!1,this.dVisibleseal=!1},closesign:function(){this.canAddsign=!0,this.canSavesign=!1,this.dVisiblesign=!1},iframeBtnClick:function(e){"lock"===e.data?"sign"===this.addType?this.canSavesign=!0:this.canSaveseal=!0:"unlock"===e.data?"sign"===this.addType?this.canSavesign=!1:this.canSaveseal=!1:"delete"===e.data&&(this.canAddsign=!0,this.canAddseal=!0,this.canSavesign=!1,this.canSaveseal=!1)},pdfSign:function(){var e=this;this.$toast.loading({className:"pdftools-savedialog",duration:0,message:this.$tx("ecmapp.pdfTools.signaturing","正在签名..."),forbidClick:!0,loadingType:"spinner"});var t=this.iframeBodyFile.getImgDis(),n={attachId:this.pdfId,pageNum:t.nowPage,percentage:t.fullSize,xPos:t.imgleft,yPos:t.imgTop};this.$http({method:"POST",url:this.wfAttachUrl+"/pdfSignature",contentType:"application/x-www-form-urlencoded",params:n,data:{image:this.arrayBufferToBase64(this.signObj.imgFileData)}}).then((function(t){"success"===t.code?(e.$toast.clear(),e.$toast({message:t.message,position:"bottom"}),e.canAddsign=!0,e.canSavesign=!1,e.$bus.emit("btnSaveSignedfile","sign")):(e.$toast.clear(),e.$dialog.alert({message:t.message}))}),(function(t){e.$toast.clear(),e.$dialog.alert({message:t})}))},pdfStamp:function(){var e=this;this.$toast.loading({className:"pdftools-savedialog",duration:0,message:this.$tx("ecmapp.pdfTools.stamping","正在盖章..."),forbidClick:!0,loadingType:"spinner"});var t=this.iframeBodyFile.getImgDis(),n={attachId:this.pdfId,pageNum:t.nowPage,xPos:t.imgleft,yPos:t.imgTop,sealId:this.signObj.sealId,sealSessionId:this.signObj.sealSessionId,sealPassword:this.signObj.sealPassword,bodyfileType:this.bodyfile.fileType},a="";if("eseal"===this.sealSource){if(n.signType=2===this.signType?2:1,n.pageNum=3===this.signType&&this.signPaegs.length>0?this.signPaegs.join(","):t.nowPage,2===this.signType){for(var o=Number(this.iframeBodyFile.document.getElementById("footerNumPages").innerText),i=[],r=1;r<=o;r++)i.push(r);n.pageNum=i.join(",")}n.module=this.$vnode.context.wfInstance.module,a="seal/esign/sealToFile"}else a="stamp/sealToFile";this.$http({method:"POST",url:a,contentType:"application/x-www-form-urlencoded",params:n}).then((function(t){e.$bus.emit("closeDoingDialog"),"success"===t.code?(e.$toast.clear(),e.$toast({message:t.message,position:"bottom"}),e.canAddseal=!0,e.canSaveseal=!1,e.$bus.emit("btnSaveSignedfile","stamp",t.body.fileKey)):(e.$toast.clear(),e.$dialog.alert({message:t.message}))}))}}},el=Xs,tl=(a(1351),a(388),(0,Ca.A)(el,_s,bs,!1,null,"a2cfb25a",null)),nl=tl.exports;nl.install=function(e){e.component(nl.name,nl)};var al=nl,ol=function(){var e=this,t=e._self._c;return t("div",{staticClass:"busi-form-container"},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):e._e(),t("div",{staticStyle:{"overflow-y":"auto"},style:{height:e.footerBtns.length>0?"calc(100% - 60px)":"100%"}},[e.loading?e._e():e._t("default",null,{vo:e.vo,canEdit:e.canEdit}),e.wfAttach&&!e.loading&&e.vo.passenger?t("Attachment",{ref:"attachments",attrs:{"cur-t-n":e.curTN,vo:e.vo,"can-edit":e.canEdit,"attach-edit":e.attachEdit,attachments:e.vo.passenger.attachments,"attachs-type":e.wfAttachsType,"batch-save-namefield":e.batchSaveNamefield,"show-attachments":!0,"component-type":"Basicform"}}):e._e()],2),e.footerBtns.length>0?t("FooterButtonGroup",[e._l(e.footerBtns,(function(n,a){return[n.actions?t("van-popover",{key:a+"p",attrs:{placement:"top",trigger:"click",actions:n.actions},on:{select:n.btnClick},model:{value:n.showPopover,callback:function(t){e.$set(n,"showPopover",t)},expression:"btn.showPopover"}},[t("template",{slot:"reference"},[t("van-button",{attrs:{disabled:e.doing,id:n.id,type:n.btnStyleType,text:n.btnName,square:""}})],1)],2):t("van-button",{key:a+"b",attrs:{id:n.id,disabled:e.doing,type:n.btnStyleType,text:n.btnName,square:""},on:{click:n.btnClick}})]}))],2):e._e(),0==e.disabledDialog?t("SelectDialog"):e._e()],1)},il=[];function rl(e){return rl="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},rl(e)}function sl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */sl=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==rl(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(rl(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function ll(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function dl(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){ll(i,a,o,r,s,"next",e)}function s(e){ll(i,a,o,r,s,"throw",e)}r(void 0)}))}}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){fl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fl(e,t,n){return(t=pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(e){var t=ml(e,"string");return"symbol"==rl(t)?t:t+""}function ml(e,t){if("object"!=rl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=rl(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var hl={name:"Basicform",components:{},props:{moduleCode:{type:String,default:null},toolbarBtns:{type:Array,default:function(){return[]}},onBasicFormBeforeOpen:{type:Function,default:function(e,t,n){n.resolve(!0)}},onBasicFormOpened:{type:Function,default:function(e,t){}},onBasicFormBeforeSubmit:{type:Function,default:function(e,t,n){n.resolve(!0)}},onBasicFormSubmitConfirm:{type:Function,default:null},onBasicFormSubmited:{type:Function,default:function(e,t){}},disabledDialog:{type:Number,default:0},wfAttach:{type:Boolean,default:!1},batchSaveNamefield:{type:String,default:""},wfAttachsType:{type:String,default:"ATTACH"},attachEdit:{type:Object,default:null}},data:function(){return{dialogFormVisible:!1,moduleInfo:{},vo:{},callback:null,isnew:!1,canEdit:1,subForm:0,loading:!1,doing:!1,uploadFiles:[],uploadingFile:null,uploading:!1,refsAttachments:[],footerBtns:[]}},computed:ul({},(0,ei.L8)(["loginUser"])),watch:{wfAttach:function(e){e&&this.vo.passenger&&!this.vo.passenger.attachments&&(this.vo.passenger.attachments=[])}},created:function(){this.$bus.on("openBusiform",this.openBusiform),this.$bus.on("addUploadFiles",this.addUploadFiles),this.$bus.on("setVanCellStyle",this.setVanCellStyle),this.$bus.on("submitBusiform",this.submitBusiform)},beforeDestroy:function(){this.$bus.off("openBusiform",this.openBusiform),this.$bus.off("addUploadFiles",this.addUploadFiles),this.$bus.off("setVanCellStyle",this.setVanCellStyle),this.$bus.off("submitBusiform",this.submitBusiform),!0===this.dialogFormVisible&&this.closeDialog()},mounted:function(){var e=this.$vnode.context;e.curTN?this.disabledDialog=1:(e=e.$vnode.context,e.curTN?this.disabledDialog=1:(e=e.$vnode.context,e&&e.curTN&&(this.disabledDialog=1)))},updated:function(){this.setVanCellStyle()},methods:{openBusiform:function(e,t,n,a){var o=this;return dl(sl().mark((function i(){var r,s;return sl().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(null==o.moduleCode||o.moduleCode===e.moduleCode){i.next=2;break}return i.abrupt("return");case 2:if(r=o,!r.loading){i.next=5;break}return i.abrupt("return");case 5:if(r.loading=!0,r.moduleInfo=e,r.canEdit=n,r.callback=a||null,r.refsAttachments=[],s=null,null!==t&&""!==t.id){i.next=18;break}return i.next=14,o.$app.addNew(e.addNewUrl);case 14:s=i.sent,r.isnew=!0,i.next=23;break;case 18:return i.next=20,o.$app.getById(e.getByIdUrl,t.id);case 20:s=i.sent,r.canEdit=n,r.isnew=!1;case 23:null!==s&&"success"===s.code?(r.vo=s.body.vo,new Promise((function(e,t){r.onBasicFormBeforeOpen(r,r.vo,{resolve:e,reject:t})})).then((function(e){e&&(r.dialogFormVisible=!0,r.$nextTick((function(){r.onBasicFormOpened(r,r.vo),r.setFooterBtns(),r.$bus.emit("basicformOpened",this)})),void 0===r.vo.passenger.attachments&&(r.vo.passenger.attachments=[])),r.loading=!1})).catch((function(e){console.log(e),r.loading=!1}))):o.$dialog.alert({message:s.message,type:"error"});case 24:case"end":return i.stop()}}),i)})))()},setVanCellStyle:function(){for(var e=(document.querySelector(".busi-form-container")||document.querySelector(".busi-form-nobtn-container")).querySelectorAll(".van-cell"),t=0;t<e.length;t++)t<e.length-1?k(e[t],"van-cell-field-title")||L(e[t],"van-cell-not-last"):(S(e[t],"van-cell-not-last"),L(e[t].parentElement.parentElement,"van-field-last")),t>0&&k(e[t-1].parentElement.parentElement,"van-field-last")&&S(e[t-1].parentElement.parentElement,"van-field-last");for(var n=(document.querySelector(".busi-form-container")||document.querySelector(".busi-form-nobtn-container")).querySelectorAll(".form-slicer"),a=0;a<n.length;a++)n[a].previousElementSibling&&(S(n[a].previousElementSibling,"van-cell-not-last"),L(n[a].previousElementSibling,"van-field-last")),n[a].nextElementSibling&&k(n[a].nextElementSibling,"form-slicer")&&(n[a].nextElementSibling.style.display="none")},editObject:function(){var e=this,t=this.activeName;this.loading=!0,this.refsAttachments=[],this.$nextTick((function(){e.canEdit=1,e.setFooterBtns(),e.loading=!1,e.activeName=t}))},submitBusiform:function(e,t,n){var a=this;return dl(sl().mark((function o(){var i;return sl().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(null==a.moduleCode||void 0===e.moduleCode||a.moduleCode===e.moduleCode){o.next=2;break}return o.abrupt("return");case 2:if(i=a,!i.doing){o.next=5;break}return o.abrupt("return");case 5:a.formValidate((function(){i.doing=!0,i.actionType=n,new Promise((function(e,t){i.onBasicFormBeforeSubmit(i,i.vo,{resolve:e,reject:t})})).then(function(){var n=dl(sl().mark((function n(o){var r;return sl().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!o){n.next=16;break}if(r=null,!i.isnew){n.next=8;break}return n.next=5,a.$app.insert(i.moduleInfo.insertUrl,i.vo);case 5:r=n.sent,n.next=11;break;case 8:return n.next=10,a.$app.update(i.moduleInfo.updateUrl,i.vo);case 10:r=n.sent;case 11:delete i.vo.passenger.confirmContinue,"success"===r.code?(i.isnew=!1,!r.body.vo||null!==i.vo.id&&""!==i.vo.id&&i.vo.id===r.body.vo.id||(i.vo.id=r.body.vo.id),new Promise(function(){var e=dl(sl().mark((function e(t,n){var o,r,s,l;return sl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=i.$attachments,void 0===o&&i.$vnode.context.$refs["busiform"]&&(o=i.$vnode.context.$refs["busiform"].$attachments),!(i.uploadFiles.length>0)){e.next=6;break}a.startUploadFile(function(){var e=dl(sl().mark((function e(n){var r,s,l;return sl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i.wfInstance={module:i.moduleCode,bodyDocId:""},!(a.refsAttachments.length>0)){e.next=15;break}r=!0,s=0;case 4:if(!(s<i.refsAttachments.length)){e.next=13;break}return e.next=7,i.refsAttachments[s].uploadWflowAttach(i);case 7:l=e.sent,"success"!==l.code&&(r=!1,s=i.refsAttachments.length-1),i.refsAttachments.length===s+1&&(r?t(!0):i.doing=!1);case 10:s++,e.next=4;break;case 13:e.next=16;break;case 15:void 0!==o?o.uploadWflowAttach(i).then((function(e){"success"===e.code&&n?t(!0):i.doing=!1})):n&&t(!0);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=22;break;case 6:if(!(a.refsAttachments.length>0)){e.next=21;break}r=!0,i.wfInstance={module:i.moduleCode,bodyDocId:""},s=0;case 10:if(!(s<i.refsAttachments.length)){e.next=19;break}return e.next=13,i.refsAttachments[s].uploadWflowAttach(i);case 13:l=e.sent,"success"!==l.code&&(r=!1),i.refsAttachments.length===s+1&&(r?t(!0):i.doing=!1);case 16:s++,e.next=10;break;case 19:e.next=22;break;case 21:void 0!==o?(i.wfInstance={module:i.moduleCode,bodyDocId:""},o.uploadWflowAttach(i).then((function(e){"success"===e.code?t(!0):i.doing=!1}))):t(!0);case 22:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()).then((function(e){i.dialogFormVisible=!1,i.isnew=!1,i.vo.isnew=!1,i.onBasicFormSubmited(i,i.vo),t?t(r,i.vo):(i.$toast.success(r.message),null!==a.callback?a.callback(r,i.vo):a.$router.back(-1))})),i.$bus.emit("refreshListData")):"confirm"===r.code?new Promise((function(e,t){null!==i.onBasicFormSubmitConfirm?i.onBasicFormSubmitConfirm(i,i.vo,{resolve:e,reject:t}):a.$dialog.confirm({message:r.message}).then(dl(sl().mark((function t(){return sl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e(!0);case 1:case"end":return t.stop()}}),t)})))).catch((function(e){t(e)}))})).then((function(n){n&&(i.vo.passenger.confirmContinue=!0,i.submitBusiform(e,t))})):i.$toast(r.message),i.doing=!1,n.next=17;break;case 16:i.doing=!1;case 17:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){i.doing=!1}))}),(function(){t&&t(!1)}));case 6:case"end":return o.stop()}}),o)})))()},closeDialog:function(){this.dialogFormVisible=!1,null!==this.callback?this.callback({code:"cancel",message:this.$tx("ecmapp.common.cancelSave","取消保存")}):this.$route.query.id&&this.$router.back(-1)},historyBack:function(){this.$router.back(-1)},setFooterBtns:function(){var e=this;return dl(sl().mark((function t(){var n,a,o,i,r,s,l,d,c;return sl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e,a={id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:e.historyBack,btnPermission:"",btnStyleType:"default",showPopover:!1,btnI18nCode:"close"},void 0!==e.toolbarBtns&&null!==e.toolbarBtns){t.next=6;break}return e.footerBtns=[],"floatBtn"===window.wxgobakMode&&e.footerBtns.push(a),t.abrupt("return");case 6:o=JSON.parse(JSON.stringify(e.toolbarBtns)),0===e.toolbarBtns.length?("floatBtn"===window.wxgobakMode&&o.push(a),1===e.canEdit?o.push({id:"btn_save",btnName:"保 存",btnIcon:"check",btnClick:e.submitBusiform,btnPermission:"saveObject",btnStyleType:"info",showPopover:!1,btnI18nCode:"save"}):o.push({id:"btn_edit",btnName:"修 改",btnIcon:"edit",btnClick:e.editObject,btnPermission:"editObject",btnStyleType:"info",showPopover:!1,btnI18nCode:"modify"})):(o.forEach((function(t,n){if("string"===typeof e.toolbarBtns[n].btnClick){var a=t.btnClick.split("(")[0];t.btnClick=e[a],t.btnClickFunc=a}else t.btnClick=e.toolbarBtns[n].btnClick;t.showPopover=t.showPopove||!1})),"floatBtn"===window.wxgobakMode&&o.splice(0,0,a)),i=0;case 9:if(!(i<o.length)){t.next=21;break}return r=o[i],r.btnI18nCode=r.btnI18nCode||(r.btnPermission||r.btnIcon).replace("Ids","").replace("Object",""),r.btnName=e.$i18n.generateTitle(r,e),s="FOOTER_BTN$"+o[i].btnPermission,t.next=16,Hn.A.dispatch("user/hasPermission",{route:e.$route,pcode:s});case 16:l=t.sent,l||o.splice(i--,1);case 18:i++,t.next=9;break;case 21:n.footerBtns=o,d=0,c=setInterval((function(){d<50?n.$vnode.context.$refs["busiform"]&&(n.$vnode.context.$refs["busiform"].setFormBtns&&n.$vnode.context.$refs["busiform"].setFormBtns(n,o),clearInterval(c)):clearInterval(c)}),10);case 24:case"end":return t.stop()}}),t)})))()},addUploadFiles:function(e,t){for(var n=0;n<this.uploadFiles.length;n++)e.propName===this.uploadFiles[n].propName&&e.pid===this.uploadFiles[n].pid&&this.uploadFiles.splice(n--,1);e.fileList=t,this.uploadFiles.push(e)},startUploadFile:function(e){var t=this;return dl(sl().mark((function n(){var a,o,i,r,s,l,d,c,u,f,p;return sl().wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=t,a.uploading=!0,o=a.moduleInfo.updateUrl.substring(0,a.moduleInfo.updateUrl.lastIndexOf("/"))+"/upload",-1!==a.moduleInfo.updateUrl.indexOf("?")&&(o+="?"+a.moduleInfo.updateUrl.split("?")[1]),i=0;case 5:if(!(i<a.uploadFiles.length)){n.next=36;break}r=a.uploadFiles[i],s=0;case 8:if(!(s<r.fileList.length)){n.next=28;break}return l=r.fileList[s],a.uploadingFile=l,d=r.nameField,c=r.propName,s>0&&(d=r.nameField+(s+1),c=r.dataField+(s+1)),u={onUploadProgress:function(e){var t=e.loaded/e.total*100|0;a.uploadingFile.progress=t,a.$forceUpdate()}},f=o,void 0!==r.downloadUrl&&null!==r.downloadUrl&&""!==r.downloadUrl&&(f=r.downloadUrl.replace("/downloadById","/upload").replace("/download","/upload").replace("/apigw",""),f=f.replace("nameField=","dNameField=").replace("dataField=","dDataField=").replace("id=","did=")),n.next=19,t.$app.upload(f,l.raw,{id:r.pid||t.vo.id,nameField:d,dataField:c},u);case 19:if(p=n.sent,"success"!==p.code){n.next=24;break}r.fileList.splice(s--,1),n.next=25;break;case 24:return n.abrupt("break",28);case 25:s++,n.next=8;break;case 28:if(!(r.fileList.length>0)){n.next=32;break}return n.abrupt("break",36);case 32:a.uploadFiles.splice(i--,1);case 33:i++,n.next=5;break;case 36:0===a.uploadFiles.length&&setTimeout((function(){a.uploading=!1,e(!0)}),100);case 37:case"end":return n.stop()}}),n)})))()}}},vl=hl,gl=(a(7130),(0,Ca.A)(vl,ol,il,!1,null,"490ac5ca",null)),yl=gl.exports,_l=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{staticClass:"van-datetime-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{required:e.required,label:e.label,"is-link":!e.nodeFieldReadOnly,placeholder:e.nodeFieldReadOnly?"":e.placeholder,error:void 0!==a&&a.length>0,"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",readonly:e.nodeFieldReadOnly||1===e.elementReadonly},on:{click:e.selectDateTime},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}})]}}],null,!1,397611413)})],1):e._e()},bl=[],wl={name:"DatetimeField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},minDate:{type:String,default:null},placeholder:{type:String,default:"请选择"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},elementReadonly:{type:Number,default:1},type:{type:String,default:"datetime"},format:{type:String,default:""},stepNum:{type:Number,default:""}},data:function(){return{dateValue:null,fieldDom:{},isShowField:!0,nodeFieldReadOnly:!1}},computed:{},watch:{vo:{handler:function(e,t){this.setDateValue()},deep:!0}},created:function(){""!==this.format?this.format=this.format.replace("yyyy","YYYY").replace("dd","DD").replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):this.format="YYYY-MM-DD HH:mm:ss";var e=this.format.replace("年","").replace("月","").replace("日","").replace("时","").replace("分","").replace("秒","").replace(/-/g,"");if(e.split(" ").length>1?this.type="datetime":"YYYYMMDD"===e?this.type="date":"YYYYMM"===e?this.type="year-month":"MMDD"===e?this.type="month-day":e.indexOf("HH")>-1&&(this.type="time"),(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var t=this.$vnode.context.curTN.nodeFormFields,n=0;n<t.length;n++)if(t[n].propCode===this.model){this.readonly=1!==t[n].isEditable,this.required=1===t[n].isRequired;break}this.nodeFieldReadOnly=this.readonly,this.setDateValue(),this.nodeFieldReadOnly?(this.placeholder="",null!==this.dateValue&&""!==this.dateValue||(this.required=!1)):null===this.placeholder||""===this.placeholder?this.placeholder="请选择"+this.label:this.placeholder=this.placeholder.replace("请输入","请选择")},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify()},methods:{initVerify:function(){"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0},setDateValue:function(){var e=this.vo[this.model];"string"===typeof e&&(e=w(e,this.format)),this.dateValue=e},selectDateTime:function(){var e=this;if(!this.nodeFieldReadOnly){var t=this.vo[this.model];this.$bus.emit("openDatetimePicker",t,(function(t){e.$set(e.vo,e.model,t),e.setDateValue()}),this.type,this.minDate,this.stepNum)}}}},xl=wl,Ml=(a(4476),(0,Ca.A)(xl,_l,bl,!1,null,"9c6da034",null)),kl=Ml.exports,Ll=function(){var e=this,t=e._self._c;return e.forceUpdate?e._e():t("div",{staticClass:"van-file-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.nameField,expression:"nameField"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.nodeFieldReadOnly}],attrs:{required:e.required,label:e.label,"is-link":!e.readonly,placeholder:e.placeholder,error:void 0!==a&&a.length>0,"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",readonly:e.nodeFieldReadOnly},model:{value:e.vo[e.nameField],callback:function(t){e.$set(e.vo,e.nameField,t)},expression:"vo[nameField]"}},[e.formfile.fileName?t("template",{slot:"input"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.formfile.fileName,expression:"formfile.fileName"}],staticClass:"van-field__control van-field__control--right",attrs:{type:"text",readonly:"readonly",placeholder:e.placeholder},domProps:{value:e.formfile.fileName},on:{click:e.handleClick,input:function(t){t.target.composing||e.$set(e.formfile,"fileName",t.target.value)}}}),1===e.canEdit?t("div",{staticClass:"attach-delete-icon"},[t("van-icon",{attrs:{color:"#ee0a24",name:"cross"},on:{click:function(t){return t.stopPropagation(),e.removeFormfile()}}})],1):e._e()]):t("template",{slot:"input"},[1===e.canEdit?t("van-uploader",{attrs:{accept:e.field.textFormatter,"preview-image":!1,"after-read":e.selectfiled}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.vo[e.nameField],expression:"vo[nameField]"}],staticClass:"van-field__control van-field__control--right",attrs:{type:"text",readonly:"readonly",placeholder:e.placeholder},domProps:{value:e.vo[e.nameField]},on:{input:function(t){t.target.composing||e.$set(e.vo,e.nameField,t.target.value)}}})]):t("input",{directives:[{name:"model",rawName:"v-model",value:e.vo[e.nameField],expression:"vo[nameField]"}],staticClass:"van-field__control van-field__control--right",style:{color:0===e.canEdit?"#1989fa":""},attrs:{type:"text",readonly:"readonly",placeholder:e.placeholder},domProps:{value:e.vo[e.nameField]},on:{click:e.handleClick,input:function(t){t.target.composing||e.$set(e.vo,e.nameField,t.target.value)}}})],1)],2)]}}],null,!1,2900865153)})],1)},Sl=[];function Tl(e){return Tl="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},Tl(e)}function Dl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dl=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Tl(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Tl(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function Nl(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Al(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){Nl(i,a,o,r,s,"next",e)}function s(e){Nl(i,a,o,r,s,"throw",e)}r(void 0)}))}}var Yl={name:"FileField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},onClick:{type:Function,default:null},field:{type:Object,default:null},nameField:{type:String,default:null},onFileItemClick:{type:Function,default:null}},data:function(){return{attachments:[],canEdit:1,formfile:{},forceUpdate:!1,nodeFieldReadOnly:!1}},computed:{},watch:{},created:function(){var e=this;if(this.api="/apigw",this.port=location.port,this.canEdit=this.$vnode.context.canEdit,(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var t=this.$vnode.context.curTN.nodeFormFields,n=0;n<t.length;n++)if(t[n].propCode===this.model){this.readonly=1!==t[n].isEditable,this.required=1===t[n].isRequired,this.canEdit=1===t[n].isEditable;break}this.placeholder||(this.placeholder="请选择"),0===this.field.propName.indexOf("formfile")&&this.$vnode.context.$vnode.context.attachments.forEach((function(t){t.fileType.toLowerCase()===e.field.attachmentType.toLowerCase()&&(e.formfile=t,e.readonly=!0)})),this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){},mounted:function(){this.nodeFieldReadOnly?this.placeholder="":null!==this.onClick?this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")):null!==this.field&&(this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")),this.onClick=this.openSelectDialog),this.field.onlineFile||(this.field.onlineFile=".doc,.docx,.xls,.xlsx,.ppt,.pptx")},methods:{selectfiled:function(e){if(this.field.textFormatter&&"*.*"!==this.field.textFormatter&&-1===this.field.textFormatter.indexOf("/")){var t="";if(-1!==e.file.name.indexOf(".")&&(t=e.file.name.substring(e.file.name.lastIndexOf("."))),""===t||-1===(this.field.textFormatter+",").indexOf(t+","))return void this.$toast.fail(this.$tx("ecmapp.common.unsupported","不支持的文件格式!"))}if(e.file.raw=e.file,this.field.pid=this.vo.id,0===this.field.propName.indexOf("formfile")){var n={};n.fileName=e.file.name,n.fileSize=T(e.file.size),n.fileType=this.field.attachmentType,n.uploadBy=this.$vnode.context.loginUser.personName,n.uploadTime="待上传",n.file=e,n.checked=!1,n.uploadType="formfile",e.progress=0,this.$set(this.formfile,"fileName",n.fileName),this.$set(this.vo,this.nameField,n.fileName),this.readonly=!0,this.nodeFieldReadOnly=this.readonly,this.$vnode.context.$vnode.context.attachments.push(n)}else this.attachments=[e.file],this.$set(this.vo,this.nameField,e.file.name),this.$bus.emit("addUploadFiles",this.field,this.attachments)},handleClick:function(e){if(this.onFileItemClick)this.onFileItemClick(this.field);else if(this.nodeFieldReadOnly||(null!==this.onClick?this.onClick(e,this.field):this.$emit("onClick",e,this.field)),this.formfile.fileName){if(!this.formfile.id)return;var t="/apigw/"+this.$vnode.context.$vnode.context.wfAttachUrl+"/downloadById?attachIds="+this.formfile.id;t+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken();var n=this.formfile.fileName.substring(this.formfile.fileName.lastIndexOf(".")).toLowerCase();""!==n&&".pdf"!==n&&".pdfx"!==n&&-1!==(this.field.onlineFile+",").indexOf(n+",")&&(t+="&topdf=true&inline=true"),this.$mappUtils.downLoadAndOpenFile(this,t,this.formfile.fileName,null)}else if(0===this.canEdit){if(!this.vo[this.nameField])return;var a="/apigw/"+this.field.downloadUrl+"?nameField="+this.nameField+"&dataField="+this.model+"&id="+this.vo.id;a+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),this.$mappUtils.downLoadAndOpenFile(this,a,this.vo[this.nameField],null)}},removeFormfile:function(e){var t=this;if(this.formfile.fileName&&!this.formfile.id){for(var n=0;n<this.$vnode.context.$vnode.context.attachments.length;n++)this.$vnode.context.$vnode.context.attachments[n].fileType===this.field.attachmentType&&this.$vnode.context.$vnode.context.attachments.splice(n--,1);this.formfile={},1===this.canEdit?this.readonly=!1:this.readonly=!0,this.nodeFieldReadOnly=this.readonly,this.$forceUpdate()}else this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDelete",{label:this.label},"您是否确认删除".concat(this.label,"?"))}).then(Al(Dl().mark((function e(){var n;return Dl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.$vnode.context.$vnode.context.wfAttachUrl+"/delete",t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{attachIds:t.formfile.id},url:n}).then((function(e){if("success"===e.code){for(var n=0;n<t.$vnode.context.$vnode.context.attachments.length;n++)t.$vnode.context.$vnode.context.attachments[n].id===t.formfile.id&&t.$vnode.context.$vnode.context.attachments.splice(n--,1);t.formfile={},1===t.canEdit?t.readonly=!1:t.readonly=!0,t.nodeFieldReadOnly=t.readonly,t.$forceUpdate()}else t.$dialog.alert({message:e.message})}));case 2:case"end":return e.stop()}}),e)})))).catch((function(){console.log("cancel delete.")}))}}},Cl=Yl,Ol=(a(6689),(0,Ca.A)(Cl,Ll,Sl,!1,null,"6bd6eea1",null)),Il=Ol.exports,El=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{class:"van-input-field"+(""!=e.valueSuffix?" van-field__body_suffix":"")},[e.updateField?t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required,phone:e.phone,email:e.email,integer:e.isInteger,number:e.number,min:""!==e.valueMinLength&&e.valueMinLength,identity:e.isIdentity}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[""!=e.maxLength?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{required:e.required,label:e.label,"is-link":null!==e.onClick&&!e.nodeFieldReadOnly,placeholder:e.nodeFieldReadOnly?"":e.placeholder,error:void 0!==a&&a.length>0||e.iserror,"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",maxlength:e.maxLength,readonly:e.nodeFieldReadOnly||1===e.elementReadonly,type:"password"==e.textFormatter?"password":"text"},on:{focus:e.inputFocus,blur:e.inputBlur,click:e.handleClick},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):e._e()]}}],null,!1,333806362)}):e._e()],1):e._e()},$l=[];var Pl=/(\d{3})(?=\d)/g;function jl(e,t,n){if(e=parseFloat(e),!isFinite(e)||!e&&0!==e)return"";t=null!=t?t:"¥",n=null!=n?n:2;var a=Math.abs(e).toFixed(n),o=n?a.slice(0,-1-n):a,i=o.length%3,r=i>0?o.slice(0,i)+(o.length>3?",":""):"",s=n?a.slice(-1-n):"",l=e<0?"-":"";return l+t+r+o.slice(i).replace(Pl,"$1,")+s}function Fl(e){return Fl="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},Fl(e)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){Ul(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ul(e,t,n){return(t=Rl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rl(e){var t=Wl(e,"string");return"symbol"==Fl(t)?t:t+""}function Wl(e,t){if("object"!=Fl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Fl(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Vl={name:"InputField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},defaultValue:{type:String,default:null},textFormatter:{type:String,default:""},valueSuffix:{type:String,default:""},valueMaxLength:{type:String,default:""},valueMinLength:{type:String,default:""},placeholder:{type:String,default:"请输入"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},onClick:{type:Function,default:null},field:{type:Object,default:null},elementReadonly:{type:Number,default:0}},data:function(){return{phone:!1,email:!1,number:!1,isInteger:!1,isInputFocus:!1,fieldDom:{},isShowField:!0,maxLength:null,errors:[],updateField:!0,isIdentity:!1,inputValue:"",nodeFieldReadOnly:!1}},computed:Bl({},(0,ei.L8)(["loginUser"])),watch:{maxLength:function(){""===this.maxLength&&(this.maxLength="-")},readonly:function(){this.readonly?(this.placeholder="",null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1)):null!==this.onClick?this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")):null!==this.field&&(this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")),this.onClick=this.openSelectDialog,this.readonly=!1)},vo:{handler:function(e){this.formatDataValue()},deep:!0}},created:function(){if(this.maxLength=this.valueMaxLength,(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var e=this.$vnode.context.curTN.nodeFormFields,t=0;t<e.length;t++)if(e[t].propCode===this.model){this.readonly=1!==e[t].isEditable,this.required=1===e[t].isRequired;break}this.placeholder||(this.placeholder="请输入"),this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify(),this.formatDataValue()},methods:{initVerify:function(){this.fieldDom.style&&"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0,"phone"===this.textFormatter?this.phone=!0:"email"===this.textFormatter?this.email=!0:"number"===this.textFormatter?this.number=!0:"integer"===this.textFormatter?this.isInteger=!0:"card"===this.textFormatter&&(this.isIdentity=!0),"currency1"!==this.textFormatter&&"currency2"!==this.textFormatter||(this.number=!0),this.readonly?(this.placeholder="",null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1)):null!==this.field&&(this.onClick=this.openSelectDialog,this.readonly=!1)},formatDataValue:function(){var e=this;this.inputValue=this.vo[this.model],"integer"===this.textFormatter&&(""===this.vo[this.model]?this.inputValue=null:void 0!==this.defaultValue&&""!==this.defaultValue&&""!==this.defaultValue&&(this.inputValue=parseInt(this.defaultValue),this.vo[this.model]=parseInt(this.defaultValue))),"currency1"===this.textFormatter?(null!==this.vo[this.model]&&""!==this.vo[this.model]?this.inputValue=jl(this.vo[this.model],""):this.inputValue="0.00",(this.readonly||1===this.elementReadonly)&&(this.number=!1)):"currency2"===this.textFormatter&&(null!==this.vo[this.model]&&""!==this.vo[this.model]?this.readonly?this.inputValue=isNaN(Number(this.vo[this.model]))?this.vo[this.model]:"¥"+Number(this.vo[this.model]).toFixed(2):this.inputValue=isNaN(Number(this.vo[this.model]))?this.vo[this.model]:Number(this.vo[this.model]).toFixed(2):this.inputValue="0.00",(this.readonly||1===this.elementReadonly)&&(this.number=!1)),setTimeout((function(){var t=e.$el.querySelector(".van-field__body_suffix .van-field__body");null!==t&&""!==e.valueSuffix&&null!=e.inputValue&&""!=e.inputValue&&t.setAttribute("value-suffix",e.valueSuffix)}),0)},inputFocus:function(e){this.nodeFieldReadOnly||1===this.elementReadonly?(this.isInputFocus=!1,this.handleClick(e)):this.isInputFocus=!0},inputBlur:function(){var e=this;this.isInputFocus=!1,this.$set(this.vo,this.model,""===this.inputValue?null:this.inputValue),this.formatDataValue(),this.updateField=!1,this.$nextTick((function(){e.updateField=!0,e.initVerify()}))},handleClick:function(e){this.isInputFocus||this.nodeFieldReadOnly||(null!==this.onClick?this.onClick(e,this.field):this.$emit("onClick",e,this.field))},openSelectDialog:function(){var e=this,t=this,n=this.field.dialogTitle?this.field.dialogTitle:this.label;if("listitem"===this.field.dialogType)this.$http({method:this.field.optionGenerateMethod,params:{id:this.vo.id,sysCode:this.vo.sysCode||this.loginUser.sysCode},url:this.field.optionGenerateUrl}).then((function(a){"success"===a.code?e.$bus.emit("openListitemDialog",n,a.body.listdata,(function(n){if("success"===n.code){var o="onSelectListitemCompleted";if(void 0!==t.$vnode.context[o])t.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context.$vnode.context[o](a.value,{name:e.model});else{var i="";n.value.forEach((function(e){""!==i&&(i+=","),i+=e.title||e.text||e.name||e.label})),t.$set(e.vo,t.model,i)}}}),t.vo[t.model],t.field.dialogMultiple):e.$dialog.alert({message:a.message,type:"warning"})}));else if("listpage"!==this.field.dialogType){var a={selectDialog:this.field.dialogType,multiple:this.field.dialogMultiple,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded};this.field.dialogOrgLevel&&(a["org-level"]=this.field.dialogOrgLevel),this.field.dialogOrgId&&(a["org-id"]=this.field.dialogOrgId),this.field.dialogSubOrgName&&(a["sub-org-name"]=this.field.dialogSubOrgName),this.field.dialogOrgSelf&&(a["org-self"]=this.field.dialogOrgSelf),this.field.dialogOnlyCurSys&&(a["only-cur-sys"]=this.field.dialogOnlyCurSys),this.field.dialogNLevelFilter&&(a["node-level"]=this.field.dialogNLevelFilter),this.field.dialogRootOrgCode&&(a["root-org-code"]=this.field.dialogRootOrgCode),this.field.optionGenerateUrl&&(a["option-generate-url"]=this.field.optionGenerateUrl),this.field.optionGenerateMethod&&(a["option-generate-gethod"]=this.field.optionGenerateMethod);var o=this.vo[this.model];this.field.valueIdsField&&0===this.field.valueIdsField.indexOf("vo.")?o=this.vo[this.field.valueIdsField.substring(this.field.valueIdsField.indexOf(".")+1)]:this.field.valueIdsField&&this.vo[this.field.valueIdsField]&&(o=this.vo[this.field.valueIdsField]),this.$bus.emit("openTreeDialog",n,a,null,(function(n){if("success"===n.code){var a="onSelect"+e.field.dialogType.replace(e.field.dialogType[0],e.field.dialogType[0].toUpperCase())+"Completed";if("area"===e.field.dialogType[0]&&(a="onSelectTreeNodeCompleted"),void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),o)}else{var i={listviewurl:this.field.dialogListviewurl,navTabIndex:this.field.navTabIndex,context:this};this.$bus.emit("openListpageDialog",n,i,(function(n){if("success"===n.code){var a="onSelectListpageRowCompleted";if(void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),this.vo[this.model],this.field.dialogMultiple)}},onSelectTreeDataLoaded:function(e,t){return t.multiple=this.field.dialogMultiple,t.name=this.model,t.dialogTitle=this.field.dialogTitle||this.label,this.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):e}}},zl=Vl,Jl=(a(2656),(0,Ca.A)(zl,El,$l,!1,null,"03561330",null)),ql=Jl.exports,Gl=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{staticClass:"van-select-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{required:e.required,label:e.label,"is-link":!e.nodeFieldReadOnly,placeholder:e.nodeFieldReadOnly?"":e.placeholder,error:void 0!==a&&void 0!==a[0],"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",readonly:e.nodeFieldReadOnly||1===e.elementReadonly},on:{click:e.selectItem},model:{value:e.textValue,callback:function(t){e.textValue=t},expression:"textValue"}})]}}],null,!1,957041049)})],1):e._e()},Kl=[];function Ql(e){return Ql="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},Ql(e)}function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ed(e,t,n){return(t=td(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e){var t=nd(e,"string");return"symbol"==Ql(t)?t:t+""}function nd(e,t){if("object"!=Ql(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Ql(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ad={name:"SelectField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},defaultValue:{type:String,default:null},placeholder:{type:String,default:"请选择"},required:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},elementReadonly:{type:Number,default:1},elementFormatter:{type:String,default:""},propType:{type:String,default:"String"},options:{type:String,default:null},optionGenerateType:{type:Number,default:0},optionGenerateUrl:{type:String,default:null},optionGenerateMethod:{type:String,default:null},onClickEvent:{type:String,default:null}},data:function(){return{textValue:"",itemList:[],fieldDom:{},isShowField:!0,nodeFieldReadOnly:!1}},computed:Xl({},(0,ei.L8)(["loginUser"])),watch:{vo:{handler:function(e){this.setTextValue(),e.passenger&&e.passenger[this.model+"Options"]&&this.initVerify()},deep:!0}},created:function(){var e=this;if((1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var t=this.$vnode.context.curTN.nodeFormFields,n=0;n<t.length;n++)if(t[n].propCode===this.model){this.readonly=1!==t[n].isEditable,this.required=1===t[n].isRequired;break}this.nodeFieldReadOnly=this.readonly,2===this.optionGenerateType&&this.$http({method:this.optionGenerateMethod,params:{id:this.vo.id,sysCode:this.vo.sysCode||this.loginUser.sysCode},url:this.optionGenerateUrl}).then((function(t){if("success"===t.code){var n=null,a="onOptionsGenerateCompleted";void 0!==e.$vnode.context[a]?n=e.$vnode.context[a](t.body.listdata,{name:e.model}):void 0!==e.$vnode.context.$vnode.context[a]&&e.$vnode.context.$vnode.context[a](t.body.listdata,{name:e.model}),e.vo.passenger[e.model+"Options"]=n||t.body.listdata,e.optionGenerateType=1,e.initVerify()}else e.$dialog.alert({message:t.message,type:"warning"})}))},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify()},methods:{initVerify:function(){var e=this;"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0;var t=[];if(this.vo.passenger&&void 0!==this.vo.passenger[this.model+"Options"]&&"object"===Ql(this.vo.passenger[this.model+"Options"])&&this.vo.passenger[this.model+"Options"].length>0)t=this.vo.passenger[this.model+"Options"];else if(void 0!==this.options&&null!==this.options){var n=JSON.parse(this.options);n.forEach((function(n){"Short"!==e.propType&&"Integer"!==e.propType&&"Lang"!==e.propType||(n.value=parseInt(n.value)),t.push(n)}))}else for(var a=this.elementFormatter.replace(/\\r\\n/g,"<br>").replace(/\r\n/g,"<br>").replace(/\n/g,"<br>").split("<br>"),o=0;o<a.length;o++)if(a[o].split(":").length>1){var i=a[o].split(":")[0];"Short"!==this.propType&&"Integer"!==this.propType&&"Lang"!==this.propType||(i=parseInt(i)),t.push({text:a[o].split(":")[1],value:i})}this.itemList=t,"zhCN"!==this.$i18n.locale&&this.itemList.forEach((function(t){t.text=e.$i18n.generateTitle({field:e.model,type:"option",value:t.value},e)})),this.setTextValue()},selectItem:function(){var e=this;if(!this.nodeFieldReadOnly){var t=this;this.$bus.emit("openListitemDialog",this.label,this.itemList,(function(n){if("success"===n.code){if(!0===t.multiple){var a="";n.value.forEach((function(e){""!==a&&(a+=","),a+=e.value})),t.$set(t.vo,t.model,a)}else"Short"===e.propType||"Integer"===e.propType||"Lang"===e.propType?t.$set(t.vo,t.model,parseInt(n.value.value)):t.$set(t.vo,t.model,n.value.value);if(e.setTextValue(),e.onClickEvent&&-1!==e.onClickEvent.indexOf("@change")&&-1!==e.onClickEvent.indexOf("=")){var o=e.onClickEvent.trim().split("=")[1];'"'===o.substring(0,1)&&'"'===o.substring(o.length-1)&&(o=o.substring(1,o.length-1)),"'"===o.substring(0,1)&&"'"===o.substring(o.length-1)&&(o=o.substring(1,o.length-1)),void 0!==e.$vnode.context[o]?e.$vnode.context[o](e.textValue):e.$vnode.context.wfInstance&&void 0!==e.$vnode.context.$vnode.context[o]&&e.$vnode.context.$vnode.context[o](e.textValue)}}}),this.vo[this.model],this.multiple)}},setTextValue:function(){if(null===this.vo[this.model]&&void 0!==this.defaultValue&&""!==this.defaultValue&&""!==this.defaultValue&&(this.vo[this.model]=this.defaultValue),void 0!==this.vo[this.model]&&null!==this.vo[this.model]){var e="",t=[];t="string"===typeof this.vo[this.model]?this.vo[this.model].split(","):[this.vo[this.model]],this.itemList.forEach((function(n){t.forEach((function(t){n.value!==t&&n.value!==t+""&&n.value+""!==t||(""!==e&&(e+="、"),e+=n.text)}))})),this.textValue=e,""===e&&(this.textValue=this.vo[this.model])}this.nodeFieldReadOnly?(this.placeholder="",null!==this.textValue&&""!==this.textValue||(this.required=!1)):null===this.placeholder||""===this.placeholder?this.placeholder="请选择"+this.label:this.placeholder=this.placeholder.replace("请输入","请选择")}}},od=ad,id=(a(3561),(0,Ca.A)(od,Gl,Kl,!1,null,"565de7b0",null)),rd=id.exports,sd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"van-switch-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],attrs:{label:e.label,required:e.required}},[t("div",{staticClass:"van-cell__value",attrs:{slot:"input"},slot:"input"},[t("van-switch",{class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{"active-value":e.activeValue,"inactive-value":e.inactiveValue,disabled:e.nodeFieldReadOnly,size:"18px"},on:{change:e.handleSwitchChange},model:{value:e.vo[e.model],callback:function(t){e.$set(e.vo,e.model,t)},expression:"vo[model]"}})],1)])]}}])})],1)},ld=[],dd={name:"SwitchField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},defaultValue:{type:String,default:null},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},activeValue:{type:Number,default:function(){return 1}},inactiveValue:{type:Number,default:function(){return 0}}},data:function(){return{nodeFieldReadOnly:!1}},computed:{},watch:{},created:function(){if((1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var e=this.$vnode.context.curTN.nodeFormFields,t=0;t<e.length;t++)if(e[t].propCode===this.model){this.readonly=1!==e[t].isEditable,this.required=1===e[t].isRequired;break}this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){},mounted:function(){null===this.vo[this.model]&&null!==this.defaultValue&&(this.defaultValue=parseInt(this.defaultValue),isNaN(this.defaultValue)||this.$set(this.vo,this.model,this.defaultValue)),this.nodeFieldReadOnly&&(null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1))},methods:{handleSwitchChange:function(){var e=this;this.$nextTick((function(){e.$bus.emit("setVanCellStyle")}))}}},cd=dd,ud=(a(6108),(0,Ca.A)(cd,sd,ld,!1,null,"316c7b70",null)),fd=ud.exports,pd=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],staticClass:"van-textarea-field"},[t("validation-provider",[t("van-field",{staticClass:"van-cell-field-title",class:"field-"+e.model,attrs:{required:e.required,label:e.label,readonly:!0,"is-link":null!==e.onClick&&!e.nodeFieldReadOnly},on:{click:e.handleClick}})],1),t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required,min:""!==e.valueMinLength&&e.valueMinLength}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[e.readonly||e.elementReadonly||""===e.maxLength?t("div",{staticClass:"van-cell van-field",class:"field-"+e.model},[t("div",{ref:"textFieldContent",staticClass:"richtext-content",class:{"richtext-content-hidden":"down"===e.showType},style:{"min-height":20*e.rows+"px","-webkit-line-clamp":"down"===e.showType?e.rows:""},domProps:{innerHTML:e._s(e.vo[e.model])}})]):t("van-field",{class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{placeholder:e.nodeFieldReadOnly?"":e.placeholder,readonly:e.nodeFieldReadOnly||1===e.elementReadonly,error:void 0!==a&&a.length>0,"error-content":void 0!==a&&a.length>0?a[0]:"",maxlength:e.maxLength,type:"textarea",rows:e.rows,autosize:e.autosize},on:{blur:e.inputBlur},model:{value:e.vo[e.model],callback:function(t){e.$set(e.vo,e.model,t)},expression:"vo[model]"}})]}}],null,!1,2994816786)}),e.showDetailBtn?t("div",{staticClass:"vant-textarea-fold-btn",staticStyle:{color:"#1989fa","font-size":"14px","text-align":"right",padding:"0 16px 10px"}},[t("span",{on:{click:function(t){return e.showTextContent(e.showType)}}},[e._v(e._s(e.textName))])]):e._e()],1):e._e()},md=[];function hd(e){return hd="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},hd(e)}function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yd(e,t,n){return(t=_d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _d(e){var t=bd(e,"string");return"symbol"==hd(t)?t:t+""}function bd(e,t){if("object"!=hd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=hd(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var wd={name:"TextareaField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},placeholder:{type:String,default:"请输入"},required:{type:Boolean,default:!1},valueMaxLength:{type:String,default:""},valueMinLength:{type:String,default:""},readonly:{type:Boolean,default:!1},onClick:{type:Function,default:null},field:{type:Object,default:null},elementReadonly:{type:Number,default:0},rows:{type:Number,default:3},autosize:{type:Boolean,default:!0}},data:function(){return{textName:this.$tx("ecmapp.pageBtns.open","展开"),showType:"down",showDetailBtn:!1,fieldDom:{},isShowField:!0,maxLength:null,updateField:!0,nodeFieldReadOnly:!1}},computed:gd({},(0,ei.L8)(["loginUser"])),watch:{maxLength:function(){""===this.maxLength&&(this.maxLength="-")}},created:function(){if(this.maxLength=this.valueMaxLength,(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var e=this.$vnode.context.curTN.nodeFormFields,t=0;t<e.length;t++)if(e[t].propCode===this.model){this.readonly=1!==e[t].isEditable,this.required=1===e[t].isRequired;break}this.readonly||void 0===this.vo[this.model]||null===this.vo[this.model]||-1===this.vo[this.model].indexOf("<")||-1===this.vo[this.model].indexOf(">")||(this.readonly=!0),this.placeholder||(this.placeholder="请输入"),null!==this.field&&(this.onClick=this.openSelectDialog),this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify()},methods:{initVerify:function(){"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0,this.nodeFieldReadOnly&&(this.placeholder="",null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1)),(this.nodeFieldReadOnly||""===this.maxLength)&&this.showDetailBtnFun()},showDetailBtnFun:function(){var e=this;this.detailDom=this.$refs.textFieldContent,this.$nextTick((function(){e.showDetailBtn=e.detailDom.clientHeight<e.detailDom.scrollHeight,e.autosize&&(e.textName=e.$tx("ecmapp.pageBtns.retract","收起"),e.showType="up")}))},showTextContent:function(e){"down"===e?(this.textName=this.$tx("ecmapp.pageBtns.retract","收起"),this.showType="up"):(this.textName=this.$tx("ecmapp.pageBtns.open","展开"),this.showType="down")},handleClick:function(e){this.nodeFieldReadOnly||(null!==this.onClick?this.onClick(e,this.field):this.$emit("onClick",e,this.field))},openSelectDialog:function(){var e=this,t=this,n=this.field.dialogTitle?this.field.dialogTitle:this.label;if("listitem"===this.field.dialogType)this.$http({method:this.field.optionGenerateMethod,params:{id:this.vo.id,sysCode:this.vo.sysCode||this.loginUser.sysCode},url:this.field.optionGenerateUrl}).then((function(a){"success"===a.code?e.$bus.emit("openListitemDialog",n,a.body.listdata,(function(n){if("success"===n.code){var o="onSelectListitemCompleted";if(void 0!==t.$vnode.context[o])t.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context.$vnode.context[o](a.value,{name:e.model});else{var i="";n.value.forEach((function(e){""!==i&&(i+=","),i+=e.title||e.text||e.name||e.label})),t.$set(e.vo,t.model,i)}}}),t.vo[t.model],t.field.dialogMultiple):e.$dialog.alert({message:a.message,type:"warning"})}));else if("listpage"!==this.field.dialogType){var a={selectDialog:this.field.dialogType,multiple:this.field.dialogMultiple,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded};this.field.dialogOrgLevel&&(a["org-level"]=this.field.dialogOrgLevel),this.field.dialogOrgId&&(a["org-id"]=this.field.dialogOrgId),this.field.dialogSubOrgName&&(a["sub-org-name"]=this.field.dialogSubOrgName),this.field.dialogOrgSelf&&(a["org-self"]=this.field.dialogOrgSelf),this.field.dialogOnlyCurSys&&(a["only-cur-sys"]=this.field.dialogOnlyCurSys),this.field.dialogNLevelFilter&&(a["node-level"]=this.field.dialogNLevelFilter),this.field.dialogRootOrgCode&&(a["root-org-code"]=this.field.dialogRootOrgCode),this.field.optionGenerateUrl&&(a["option-generate-url"]=this.field.optionGenerateUrl),this.field.optionGenerateMethod&&(a["option-generate-gethod"]=this.field.optionGenerateMethod);var o=this.vo[this.model];this.field.valueIdsField&&0===this.field.valueIdsField.indexOf("vo.")?o=this.vo[this.field.valueIdsField.substring(this.field.valueIdsField.indexOf(".")+1)]:this.field.valueIdsField&&this.vo[this.field.valueIdsField]&&(o=this.vo[this.field.valueIdsField]),this.$bus.emit("openTreeDialog",n,a,null,(function(n){if("success"===n.code){var a="onSelect"+e.field.dialogType.replace(e.field.dialogType[0],e.field.dialogType[0].toUpperCase())+"Completed";if("area"===e.field.dialogType[0]&&(a="onSelectTreeNodeCompleted"),void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),o)}else{var i={listviewurl:this.field.dialogListviewurl,navTabIndex:this.field.navTabIndex,context:this};this.$bus.emit("openListpageDialog",n,i,(function(n){if("success"===n.code){var a="onSelectListpageRowCompleted";if(void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),this.vo[this.model],this.field.dialogMultiple)}},onSelectTreeDataLoaded:function(e,t){return t.multiple=this.field.dialogMultiple,t.name=this.model,t.dialogTitle=this.field.dialogTitle||this.label,this.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):e},inputBlur:function(){var e=this;this.updateField=!1,this.$nextTick((function(){e.updateField=!0}))}}},xd=wd,Md=(a(8668),(0,Ca.A)(xd,pd,md,!1,null,"7c9af7ac",null)),kd=Md.exports,Ld=function(){var e=this,t=e._self._c;return e.showWfIdea?t("div",{class:"idea-field van-textarea-field"},[t("van-field",{staticClass:"van-cell-field-title",class:"field-"+e.label,attrs:{required:e.required,label:e.label,readonly:!0,"right-icon":e.canWriteIdea?"records":""},on:{click:e.onClick}}),t("div",{staticClass:"van-cell van-field",class:"wfIdea-"+e.label},[t("div",{ref:"textFieldContent",staticClass:"idea-content",style:{"min-height":"80px"},domProps:{innerHTML:e._s(e.showWfIdea.ideaContent)}})]),t("van-button",{directives:[{name:"show",rawName:"v-show",value:e.flase,expression:"flase"}],staticClass:"delete-wfidea-btn",on:{click:e.deleteWfIdea}}),t("van-dialog",{attrs:{title:e.label,"show-cancel-button":""},on:{confirm:e.ideaInputDialogSubmit,close:e.ideaInputDialogClose},model:{value:e.ideaInputDialogVisible,callback:function(t){e.ideaInputDialogVisible=t},expression:"ideaInputDialogVisible"}},[t("div",{staticClass:"input-ideas"},[t("van-field",{staticClass:"curIdea-filed",attrs:{type:"textarea",placeholder:"请填写处理意见",rows:"4",autosize:""},model:{value:e.newWriteIdea,callback:function(t){e.newWriteIdea=t},expression:"newWriteIdea"}})],1)])],1):e._e()},Sd=[],Td=a(5093),Dd={name:"IdeaField",components:{},props:{vo:{type:Object,default:null},lableTd:{type:Number,default:null},label:{type:String,default:""},required:{type:Boolean,default:!1},ideaInputboxStyle:{type:String,default:null},ideaLabelAndContentAlign:{type:String,default:""},options:{type:String,default:""}},data:function(){return{curTN:null,wfInstance:null,submitHandle:null,wfIdeaList:[],showWfIdea:null,canWriteIdea:!1,newWriteIdea:"",ideaInputDialogVisible:!1}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.setShowWfIdea()},methods:{setShowWfIdea:function(){var e=this,t=this.$vnode.context.$vnode.context;this.curTN=t.curTN,this.wfInstance=t.wfInstance,this.submitHandle=t.submitHandle,this.wfIdeaList=t.wfIdeaList,this.showWfIdeaList=this.wfIdeaList.filter((function(t){return t.ideaLabelName===e.label})),this.showWfIdeaList.length>0&&(this.showWfIdea=this.showWfIdeaList[0]),this.curTN.tnID&&this.options&&-1!==this.options.indexOf("writeIdea(")&&(this.canWriteIdea=!0),this.$nextTick((function(){e.$nextTick((function(){e.initDeleteIdeaBtn()}))}))},onClick:function(){var e=JSON.parse(this.options).event,t=this.$vnode.context,n={};if(-1!==e.indexOf("@click=")&&(e=e.split("@click=")[1]),e=e.replace(/\\"|'\//g,""),e=e.replace(/"/g,""),-1!==e.indexOf("(")){var a=e.substring(e.indexOf("(")+1,e.lastIndexOf(")"));""!==a&&(n.btnParams=a.split(",")),e=e.split("(")[0]}void 0!==this[e]?n.btnClick=this[e]:void 0!==t[e]&&(n.btnClick=t[e]),n.btnClick?void 0!==n.btnParams&&null!==n.btnParams?n.btnClick.apply(t,n.btnParams):n.btnClick.apply(t):console.log("方法不存在:"+e)},writeIdea:function(e){var t=this;if(this.newWriteIdea=this.submitHandle.curUserIdea,e&&"string"===typeof e){var n=this.$vnode.context.curTN||this.$vnode.context.$vnode.context.curTN,a=this.$vnode.context.wfInstance||this.$vnode.context.$vnode.context.wfInstance;n.tnIdeaLabelName!==e&&(this.newWriteIdea=""),this.oldTNIdeaPosition=n.tnIdeaPosition,n.tnIdeaPosition=2,this.$http({method:"GET",params:{processId:a.wfId,labelName:e},url:"/workflow/wfdProcessMgr/findIdeaLabelByName"}).then((function(a){"success"===a.code?(t.speicalIdeaLabel=e,t.oldTnIdeaLabelID=n.tnIdeaLabelID,t.oldTnIdeaLabelName=n.tnIdeaLabelName,t.oldTnIdeaSaveType=n.tnIdeaSaveType,t.oldTnIdeaSignType=n.tnIdeaSignType,t.oldTnIdeaIsEmphasize=n.tnIdeaIsEmphasize,t.oldTnIdeaShowScope=n.tnIdeaShowScope,n.tnIdeaLabelID=a.body.vo.id,n.tnIdeaLabelName=a.body.vo.name,n.tnIdeaSaveType=a.body.vo.ideaSaveType,n.tnIdeaSignType=a.body.vo.ideaSignType,n.tnIdeaIsEmphasize=a.body.vo.isIdeaHighlight,n.tnIdeaShowScope=a.body.vo.ideaShowScope):t.$alert({message:a.message,type:"error"})}))}this.ideaInputDialogVisible=!0},ideaInputDialogSubmit:function(){var e=this,t=this;this.$set(this.submitHandle,"curUserIdea",this.newWriteIdea);var n=this.$vnode.context.curTN||this.$vnode.context.$vnode.context.curTN;if(n&&(1===this.inputboxStyle&&(t.showIdea=this.newWriteIdea+" "+n.tnIdeaSigner+" "+Td(new Date).format("YYYY-MM-DD"),t.$forceUpdate()),2===this.$vnode.context.curTN.tnIdeaPosition)){var a=t.$vnode.context.$vnode.context;a.$wfEngine.saveWfInstance(a,"SaveIdea",a.wfParams).then((function(n){e.ideaInputDialogClose(),"success"===n.code?(a.$set(a,"wfIdeaList",n.body.wfInstance.passenger.wfIdeaList),t.$forceUpdate(),t.$nextTick((function(){t.setShowWfIdea()}))):e.$dialog.alert({message:n.message,type:"error"})}))}},ideaInputDialogClose:function(){if(this.speicalIdeaLabel){var e=this.$vnode.context.curTN||this.$vnode.context.$vnode.context.curTN;e.tnIdeaLabelID=this.oldTnIdeaLabelID,e.tnIdeaLabelName=this.oldTnIdeaLabelName,e.tnIdeaSaveType=this.oldTnIdeaSaveType,e.tnIdeaSignType=this.oldTnIdeaSignType,e.tnIdeaIsEmphasize=this.oldTnIdeaIsEmphasize,e.tnIdeaShowScope=this.oldTnIdeaShowScope,e.tnIdeaPosition=this.oldTNIdeaPosition}this.ideaInputDialogVisible=!1},initDeleteIdeaBtn:function(){if(this.curTN.tnNodeID){var e=document.querySelectorAll(".idea-field .can-delete-idea");e.forEach((function(e){e.innerHTML='<a data-v-0582fa4e="" title="删除" href="javascript:callDeleteIdeaBtnClick(\''+e.id+'\');" ><i class="van-icon van-icon-cross" /></a>'}))}},deleteWfIdea:function(){var e=this,t=document.querySelector(".delete-wfidea-btn").ideaId;this.$http({method:"PUT",url:"workflow/wfInstanceNodelog/modifyWfNodelog",params:{wfInstanceId:this.$vnode.context.wfInstance.id,selTNID:this.curTN.tnID,ideaId:t,modifyType:"deleteIdea"}}).then((function(n){"success"===n.code?e.$dialog.alert({message:n.message}).then((function(){var e=document.getElementById(t);if(e){var n=document.getElementById(t);n&&($(n).prev().remove(),n.remove())}})):e.$dialog.alert({message:n.message,type:"error"})}))}}};window.callDeleteIdeaBtnClick=function(e){var t=document.querySelector(".delete-wfidea-btn");t.ideaId=e,t.click()};var Nd=Dd,Ad=(a(5917),(0,Ca.A)(Nd,Ld,Sd,!1,null,"67219e88",null)),Yd=Ad.exports;yl.install=function(e){e.component(yl.name,yl)},kl.install=function(e){e.component(kl.name,kl)},Il.install=function(e){e.component(Il.name,Il)},ql.install=function(e){e.component(ql.name,ql)},rd.install=function(e){e.component(rd.name,rd)},fd.install=function(e){e.component(fd.name,fd)},kd.install=function(e){e.component(kd.name,kd)},Yd.install=function(e){e.component(Yd.name,Yd)};var Cd=yl,Od=kl,Id=Il,Ed=ql,$d=rd,Pd=fd,jd=kd,Fd=Yd,Hd=function(){var e=this,t=e._self._c;return t("van-tag",{attrs:{plain:"",type:e.tagType}},[e._v(e._s(e.tagText))])},Bd=[],Ud={name:"WfStatus",components:{},props:{status:{type:Number,default:null},listType:{type:String,default:""}},data:function(){return{tagType:"",tagText:""}},computed:{},watch:{},created:function(){"myAllTask"===this.listType?0===this.status?(this.tagType="warning",this.tagText=this.$tx("ecmapp.common.toBeDealt","待办")):1===this.status&&(this.tagType="primary",this.tagText=this.$tx("ecmapp.common.alreadyDone","已办")):0===this.status?(this.tagType="default",this.tagText=this.$tx("ecmapp.common.draft","草稿")):1===this.status?(this.tagType="warning",this.tagText=this.$tx("ecmapp.common.inProgress","在办")):2===this.status&&(this.tagType="primary",this.tagText=this.$tx("ecmapp.common.end","结束"))},beforeDestroy:function(){},mounted:function(){},methods:{}},Rd=Ud,Wd=(0,Ca.A)(Rd,Hd,Bd,!1,null,"04c41a28",null),Vd=Wd.exports;Vd.install=function(e){e.component(Vd.name,Vd)};var zd=Vd,Jd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"van-wform-operate-cell"},["default"===e.attachModeType?t("div",{staticClass:"form-slicer"}):e._e(),"default"===e.attachModeType?t("van-cell-group",{staticClass:"van-attachment-field",class:{"wflow-attach":e.showAttachments||e.canUpload}},[e.canUpload?t("van-cell",{staticStyle:{height:"44px"},attrs:{required:e.isRequired>0,title:(e.title?e.title:e.$tx("common.attach","附件"))+"("+e.attachList.length+")"}},[t("van-uploader",{attrs:{"preview-image":!1,multiple:e.limitCount>1,accept:e.accept,"max-count":e.limitCount,"after-read":e.handleUploadChange},on:{oversize:e.handleUploadExceed},model:{value:e.uploadAttach,callback:function(t){e.uploadAttach=t},expression:"uploadAttach"}},[e.canUpload?t("van-icon",{staticStyle:{"margin-top":"2px"},attrs:{name:"add-o",size:"20px"}}):e._e()],1)],1):t("van-cell",{staticStyle:{height:"44px"},attrs:{required:e.isRequired>0,title:(e.title?e.title:e.$tx("common.attach","附件"))+"("+e.attachList.length+")"},on:{click:function(t){e.showAttachments=!e.showAttachments}}},[e.attachList.length>0?[e._v(" "+e._s(e.showAttachments?e.$tx("ecmapp.pageBtns.fold","折叠"):e.$tx("ecmapp.pageBtns.open","展开"))+" "),t("van-icon",{class:e.showAttachments?"icon-play-up":"icon-play-down",attrs:{name:"play"}})]:[e._v(e._s(e.$tx("ecmapp.common.nothing","无")))]],2)],1):e._e(),"default"===e.attachModeType?t("van-cell-group",{directives:[{name:"show",rawName:"v-show",value:e.showAttachments||"Wflow"===e.componentType&&e.vo.status<1,expression:"showAttachments || (componentType === 'Wflow' && vo.status < 1)"}],staticClass:"wfattach-container"},[e._l(e.attachList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.fileName},on:{click:function(t){return e.handleUploadPreview(n)}}},[t("template",{slot:"title"},[t("span",[e._v(e._s(n.fileName))]),void 0===n.id&&n.file.progress>0?t("van-progress",{attrs:{percentage:n.file.progress,"show-pivot":!1}}):e._e()],1),t("div",{staticClass:"attach-icon"},[t("span",{domProps:{innerHTML:e._s(n.fileSize)}}),e.showMoreMenu&&void 0!==n.id?[t("van-icon",{attrs:{name:"ellipsis"},on:{click:function(t){return t.stopPropagation(),e.openMoreMenuDialog(n)}}})]:[void 0!==n.id&&""!==e.onlineEditor&&1==e.curTN.tnCanEdit?t("van-icon",{attrs:{color:n.canModify?"#1989fa":"",name:"edit"},on:{click:function(t){return t.stopPropagation(),e.handleOpenEditor(n)}}}):e._e(),e.canUpload&&e.canDelete?t("van-icon",{attrs:{color:"#ee0a24",name:"cross"},on:{click:function(t){return t.stopPropagation(),e.handleUploadRemove(n)}}}):e._e()]],2)],2)})),0===e.attachList.length&&e.canUpload?t("van-cell",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.common.nothing",expression:"'ecmapp.common.nothing'"}]},[e._v("无")]):e._e()],2):e._e(),"preview"===e.attachModeType?t("div",{staticClass:"attachmants_preview"},[e.canUpload?t("div",{staticStyle:{"text-align":"right",padding:"0 16px 10px",background:"#fff",color:"#1989fa","font-size":"12px"}},[t("van-uploader",{attrs:{"preview-image":!1,multiple:e.limitCount>1,accept:e.accept,"max-count":e.limitCount,"after-read":e.handleUploadChange},on:{oversize:e.handleUploadExceed},model:{value:e.uploadAttach,callback:function(t){e.uploadAttach=t},expression:"uploadAttach"}},[t("span",[e._v(e._s(e.emptyMessage?e.$tx("pageBtns.addTo","添加"):e.$tx("pageBtns.addToAttach","添加附件")))])])],1):e._e(),e.attachList.length>0?t("div",{staticClass:"attachmants"},[t("van-cell-group",{attrs:{center:""}},e._l(e.attachList,(function(n,a){return t("van-cell",{key:a,on:{click:function(t){return e.handleUploadPreview(n)}}},[t("template",{slot:"title"},[t("div",{staticClass:"attach_photo"},[t("van-image",{attrs:{width:"44",height:"44",fit:"download"===n.previewType?"cover":"contain",src:e.initPotourl(n)}})],1),t("div",{staticClass:"attach_name"},[e._v(e._s(n.fileName))]),t("div",{staticStyle:{position:"absolute",right:"-29px",top:"11px",padding:"0 5px"}},[e.canUpload&&e.canDelete?t("van-icon",{attrs:{name:"cross"},on:{click:function(t){return t.stopPropagation(),e.handleUploadRemove(n)}}}):t("van-icon",{attrs:{name:"arrow"},on:{click:function(t){return t.stopPropagation(),e.handleUploadPreview(n)}}})],1)]),!n.id&&n.file.progress>0?t("template",{slot:"label"},[t("div",{staticClass:"upload-progress"},[t("van-progress",{attrs:{percentage:n.file.progress,"show-pivot":!1}})],1)]):t("template",{slot:"label"},[t("div",[e._v(e._s(n.fileSize))])])],2)})),1)],1):e._e()]):e._e(),e.showRenameDlg?t("van-dialog",{attrs:{title:e.$tx("ecmapp.common.rename","重命名"),"show-cancel-button":"","cancel-button-color":"black"},on:{cancel:e.onRenameCancel,confirm:e.onRenameConfirm},model:{value:e.showRenameDlg,callback:function(t){e.showRenameDlg=t},expression:"showRenameDlg"}},[t("van-field",{attrs:{autosize:"",placeholder:e.renameAttach.rename},model:{value:e.renameAttach.rename,callback:function(t){e.$set(e.renameAttach,"rename",t)},expression:"renameAttach.rename"}})],1):e._e()],1)},qd=[];function Gd(e){return Gd="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},Gd(e)}function Kd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kd=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Gd(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Gd(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function Qd(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Zd(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){Qd(i,a,o,r,s,"next",e)}function s(e){Qd(i,a,o,r,s,"throw",e)}r(void 0)}))}}function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xd(Object(n),!0).forEach((function(t){tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tc(e,t,n){return(t=nc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e){var t=ac(e,"string");return"symbol"==Gd(t)?t:t+""}function ac(e,t){if("object"!=Gd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Gd(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var oc={name:"Attachment",components:{},props:{vo:{type:Object,default:function(){return{}}},curTN:{type:Object,default:function(){return{}}},attachments:{type:Array,default:function(){return[]}},title:{type:String,default:""},accept:{type:String,default:"*.*"},wfAttachUrl:{type:String,default:""},emptyMessage:{type:String,default:""},onlineFile:{type:String,default:""},viewer:{type:String,default:"pdfjs"},viewerUrlParams:{type:String,default:""},showAttachments:{type:Boolean,default:function(){return!1}},batchSaveNamefield:{type:String,default:""},canEdit:{type:Number,default:null},limitCount:{type:Number,default:100},isRequired:{type:Number,default:0},componentType:{type:String,default:"Wflow"},attachsType:{type:String,default:"ATTACH"},attachEdit:{type:Object,default:null},attachModeType:{type:String,default:"default"},onlineEditor:{type:String,default:""},waterMark:{type:Boolean,default:function(){return!1}},markContent:{type:String,default:""},showMoreMenu:{type:Boolean,default:function(){return!1}},onAttachPreviewClick:{type:Function,default:null}},data:function(){return{attachList:[],uploadAttach:[],canUpload:!1,canDelete:!0,showRenameDlg:!1,renameAttach:{rename:""},licExpiredAlert:null,loginUser:this.$store.getters.loginUser,topdfFile:".doc,.docx,.xls,.xlsx,.ppt,.pptx"}},computed:ec({},(0,ei.L8)(["loginUser"])),watch:{attachments:{handler:function(e){var t=this;0===this.attachments.length&&this.vo.passenger&&void 0===this.vo.passenger.attachments&&this.$vnode.context.wfInstance&&this.$vnode.context.$vnode.context.attachments&&(this.attachments=this.$vnode.context.$vnode.context.attachments),this.attachments.length>0&&(this.attachments.forEach((function(e){var n="";-1!==e.fileName.indexOf(".")&&(n=e.fileName.substring(e.fileName.lastIndexOf(".")).toLowerCase(),(""!==n&&-1!==(t.onlineFile+",").indexOf(n+",")||".wps"===n&&"wpsh5"===t.onlineEditor)&&(e.canModify=!0))})),this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType})))},immediate:!0},canEdit:function(e){this.$set(this.curTN,"tnCanEdit",e),null!==this.attachEdit?(""!==this.attachEdit.canUpload&&null!==this.attachEdit.canUpload&&void 0!==this.attachEdit.canUpload&&(this.canUpload=this.attachEdit.canUpload),""!==this.attachEdit.canDelete&&null!==this.attachEdit.canDelete&&void 0!==this.attachEdit.canDelete&&(this.canDelete=this.attachEdit.canDelete)):this.canUpload=1===this.canEdit},attachEdit:{handler:function(e){null!==e&&(""!==e.canUpload&&null!==e.canUpload&&void 0!==e.canUpload&&(this.canUpload=e.canUpload),""!==e.canDelete&&null!==e.canDelete&&void 0!==e.canDelete&&(this.canDelete=e.canDelete))},deep:!0,immediate:!0}},created:function(){if(this.limitCount||(this.limitCount=100),void 0===this.curTN.tnCanEdit){var e=this.$vnode.context;void 0===this.$vnode.context.openBusiform&&(e=this.$vnode.context.$parent),this.curTN.tnCanEdit=e.canEdit,null==this.canEdit&&(this.canEdit=this.curTN.tnCanEdit),this.canUpload=null!==this.attachEdit?this.attachEdit.canUpload:1===this.canEdit}else(this.vo.status<1||"DONEXT"===this.attachsType)&&(this.canUpload=!0);this.setWfAttachUrl()},beforeDestroy:function(){},updated:function(){this.onlineFile||(this.onlineEditor=""),this.setWfAttachUrl()},mounted:function(){var e=this;setTimeout((function(){"ecinc"!==window.mappType&&(e.$set(e,"showMoreMenu",!1),e.$forceUpdate())}),500);var t=this.$vnode.context.refsAttachments||this.$vnode.context.$parent.refsAttachments||this.$vnode.context.$parent.$vnode.context.refsAttachments;t&&t.push(this);var n=this;setTimeout((function(){!n.licExpiredAlert&&n.loginUser.licExpiredTime&&(n.licExpiredAlert=!0,n.$dialog.alert({message:"系统授权已经于"+n.loginUser.licExpiredTime+"过期!",type:"warning"}).then((function(){n.licExpiredAlert=!1})))}),100)},methods:{setWfAttachUrl:function(){""===this.wfAttachUrl&&(this.$vnode.context.moduleInfo?this.wfAttachUrl=this.$vnode.context.moduleInfo.insertUrl.split("/insert")[0]:this.$vnode.context.$vnode.context.wfAttachUrl?this.wfAttachUrl=this.$vnode.context.$vnode.context.wfAttachUrl:this.$vnode.context.$vnode.context.$vnode.context.wfAttachUrl?this.wfAttachUrl=this.$vnode.context.$vnode.context.$vnode.context.wfAttachUrl:this.$vnode.context.wfParams?this.wfAttachUrl=this.$vnode.context.wfParams.wfEngineUrl:this.$vnode.context.$vnode.context.wfParams?this.wfAttachUrl=this.$vnode.context.$vnode.context.wfParams.wfEngineUrl:this.$vnode.context.$vnode.context.$vnode.context.wfParams&&(this.wfAttachUrl=this.$vnode.context.$vnode.context.$vnode.context.wfParams.wfEngineUrl))},openMoreMenuDialog:function(e){var t=this;e.passenger.actionList=[];var n=!1,a="";-1!==e.fileName.indexOf(".")&&(a=e.fileName.substring(e.fileName.lastIndexOf(".")).toLowerCase(),""!==a&&".pdf"!==a&&".pdfx"!==a&&-1!==(this.topdfFile+",").indexOf(a+",")&&(n=!0));var o=[".txt",".pdf",".pdfx",".jpg",".png",".jpeg",".gif",".bmp"];(n||-1!==o.indexOf(a))&&e.passenger.actionList.push("view"),e.canModify&&(""!==this.onlineEditor&&1===this.curTN.tnCanEdit&&e.passenger.actionList.push("edit"),e.passenger.actionList.push("rename")),this.canUpload&&this.canDelete&&e.passenger.actionList.push("delete");var i="/apigw";i+="/"===this.wfAttachUrl.substr(0,1)?this.wfAttachUrl:"/"+this.wfAttachUrl,i+="/downloadById?topdf=false&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),e.passenger.downloadUrl=i,this.$wv.showAttachmentMenus(e,(function(n){console.log(n),"string"===typeof n&&(n=JSON.parse(n)),"string"===typeof n.attach&&(n.attach=JSON.parse(n.attach)),"view"===n.actionType?t.handleUploadPreview(n.attach):"edit"===n.actionType?t.handleOpenEditor(n.attach):"rename"===n.actionType?(t.renameAttach=e,t.renameAttach.rename=e.fileName.substring(0,e.fileName.lastIndexOf(".")),t.showRenameDlg=!0):"delete"===n.actionType&&t.handleUploadRemove(n.attach)}))},onRenameCancel:function(){this.showRenameDlg=!1,this.renameAttach={}},onRenameConfirm:function(){var e=this,t=this.renameAttach.fileName.substring(0,this.renameAttach.fileName.lastIndexOf("."));if(t!==this.renameAttach.rename.trim()){var n="/"===this.wfAttachUrl.substr(0,1)?this.wfAttachUrl:"/"+this.wfAttachUrl;n+="/rename";var a=this.renameAttach.fileName.substring(this.renameAttach.fileName.lastIndexOf("."));this.$http({method:"POST",params:{attachId:this.renameAttach.id,attachName:this.renameAttach.rename.trim()+a},url:n}).then((function(t){"success"===t.code?e.attachList.forEach((function(t){t.id===e.renameAttach.id&&e.$set(t,"fileName",e.renameAttach.rename.trim()+a)})):e.$dialog.alert({message:t.message}),e.renameAttach={},e.showRenameDlg=!1}))}else this.renameAttach={},this.showRenameDlg=!1},handleUploadPreview:function(e){var t=this;return Zd(Kd().mark((function n(){var a,o,i,r,s,l,d,c,u,f,p,m,h,v,g,y,_,b,w;return Kd().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(void 0!==e.id){n.next=2;break}return n.abrupt("return");case 2:if(!t.onAttachPreviewClick){n.next=5;break}return t.onAttachPreviewClick(e),n.abrupt("return");case 5:if(a=ea().get("device"),o=!1,i="",-1!==e.fileName.indexOf(".")&&(i=e.fileName.substring(e.fileName.lastIndexOf(".")).toLowerCase()),"qywx"!==a&&"zwwx"!==a&&""!==i&&".pdf"!==i&&".pdfx"!==i&&-1!==(t.topdfFile+",").indexOf(i+",")&&(o=!0),0!==t.viewer.indexOf("dcs=")||!o&&".ofd"!==i){n.next=21;break}r=res.body.tSessionId,s=location.href.split("mindex.html")[0],l=s.substring(0,s.length-1)+"/apigw/"+t.wfAttachUrl+"/downloadById?attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+r,d="0",".pdf"===i?d="20":".ofd"===i&&(d="21"),l=t.viewer.split("=")[1]+"/composite/httpfile?convertType="+d+"&fileUrl="+encodeURIComponent(l+(t.waterMark?"&waterMark="+t.waterMark+"&markContent="+t.markContent:"")),""!==t.viewerUrlParams&&null!==t.viewerUrlParams&&void 0!==t.viewerUrlParams&&(l+=t.viewerUrlParams),$.post(l,{},(function(e){0===e.errorcode?window.open(e.data.viewUrl):t.$dialog.alert({message:e.message})}),"json"),n.next=64;break;case 21:if("wpsh5"!==t.viewer||!o&&".ofd"!==i&&".wps"!==i){n.next=39;break}return c=location.href.split("#")[0].split("mindex.html")[0],-1===c.indexOf("//127")&&-1===c.indexOf("//192")||(c="http://toa.ecinc.com.cn:2028/"),n.next=26,t.getSessionId();case 26:u=n.sent,f=c+"/apigw",f+="/"===t.wfAttachUrl.substring(0,1)?t.wfAttachUrl:"/"+t.wfAttachUrl,f+="/downloadById?attachIds="+e.id+"&topdf=false",f+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+u,f+="&saveAs="+encodeURI(e.fileName),p=t.$vnode.context.wfInstance.module,m=t.$vnode.context.wfInstance.bodyDocId,h=t.$vnode.context.vo.id,v={openType:"view",attachId:"",module:p,busiDataId:h,bodyDocId:m,downUrl:encodeURI(f),attachName:encodeURI(e.fileName),attachType:e.fileType},t.$http({method:"GET",params:v,url:"wpsOffice/getAppToken"}).then((function(n){if("success"===n.code){t.tSessionId=n.body.tSessionId;var a="./plugins/wpsjs/h5office/editor.html";a+="?token="+encodeURI(n.body.accessToken),a+="&signatureurl="+encodeURIComponent(n.body.url),t.$mappUtils.downLoadAndOpenFile(t,a,e.fileName,e.fileRealSize)}else t.$dialog.alert({message:n.message})})),n.next=64;break;case 39:if("fuxin"!==t.viewer||!o&&".ofd"!==i){n.next=56;break}return g=location.href.split("#")[0].split("mindex.html")[0],n.next=43,t.getSessionId();case 43:if(y=n.sent,!(imgType.indexOf(i.substring(1))>-1&&window.openImgView)){n.next=48;break}return sessionStorage.setItem("IMG_INDEX_"+t.vo.id,e.index),window.open("#/imgView?wfAttachUrl="+t.wfAttachUrl+"&busiDataId="+t.vo.id),n.abrupt("return");case 48:_=g+"/apigw",_+="/"===t.wfAttachUrl.substring(0,1)?t.wfAttachUrl:"/"+t.wfAttachUrl,_+="/downloadById?attachIds="+e.id+"&topdf="+o,_+=t.waterMark?"&waterMark="+t.waterMark+"&markContent="+t.markContent:"",_+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+y,t.fuxinBaseUrl?t.$mappUtils.downLoadAndOpenFile(t,his.fuxinBaseUrl+"?docuri="+encodeURIComponent(_),e.fileName,e.fileRealSize):t.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"base/paramConfig/findParamValueByName?orgCode=standard¶mName=fuxin.viewer.url"}).then((function(n){"success"===n.code?(t.fuxinBaseUrl=n.body.value,t.$mappUtils.downLoadAndOpenFile(t,his.fuxinBaseUrl+"?docuri="+encodeURIComponent(_),e.fileName,e.fileRealSize)):t.$dialog.alert({message:"未配置福星预览地址参数 fuxin.viewer.url"})})),n.next=64;break;case 56:b="/apigw",b+="/"===t.wfAttachUrl.substring(0,1)?t.wfAttachUrl:"/"+t.wfAttachUrl,b+="/downloadById?inline=true&attachIds="+e.id+"&topdf="+o,b+=t.waterMark?"&waterMark="+t.waterMark+"&markContent="+t.markContent:"",b+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),w=e.fileName,o&&(w.indexOf(".")>0?w=w.substring(0,w.lastIndexOf("."))+".pdf":w+=".pdf"),t.$mappUtils.downLoadAndOpenFile(t,b,w,e.fileRealSize);case 64:case"end":return n.stop()}}),n)})))()},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)}))}))},handleUploadExceed:function(e,t){this.$dialog.alert({message:this.$tx("ecmapp.wflowform.togetherUpload",{limitCount:this.limitCount,valLength:e.length,filelength:e.length+t.length},"当前限制选择 ".concat(this.limitCount," 个文件,本次选择了 ").concat(e.length," 个文件,共选择了").concat(e.length+t.length,"个文件"))})},handleUploadRemove:function(e){var t=this,n=this;if(void 0===e.id){for(var a=0;a<this.attachments.length;a++)this.attachments[a].file===e.file&&this.attachments.splice(a--,1);this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType}));for(var o=0;o<this.uploadAttach.length;o++)this.uploadAttach[o]===e.file&&this.uploadAttach.splice(o--,1);this.$forceUpdate()}else if(e.forward){for(var i=0;i<this.attachments.length;i++)this.attachments[i].id===e.id&&this.attachments.splice(i--,1);this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType})),this.$forceUpdate()}else this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDeleterAttach","您是否确认删除选择的附件?")}).then(Zd(Kd().mark((function a(){var o;return Kd().wrap((function(a){while(1)switch(a.prev=a.next){case 0:o=t.wfAttachUrl+"/delete",void 0!==n.$vnode.context.wfInstance&&null!==n.$vnode.context.wfInstance&&void 0!==n.$vnode.context.wfInstance.id||(o=t.wfAttachUrl+"/deleteAttach"),t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{attachIds:e.id},url:o}).then((function(n){if("success"===n.code){for(var a=0;a<t.attachments.length;a++)t.attachments[a].id===e.id&&t.attachments.splice(a--,1);t.attachList=t.attachments.filter((function(e){return e.fileType===t.attachsType})),t.$forceUpdate()}else t.$dialog.alert({message:n.message})}));case 3:case"end":return a.stop()}}),a)})))).catch((function(){console.log("cancel delete.")}))},handleUploadChange:function(e){var t=this;if(this.accept&&"*.*"!==this.accept&&-1===this.accept.indexOf("/")){var n="";if(-1!==e.file.name.indexOf(".")&&(n=e.file.name.substring(e.file.name.lastIndexOf("."))),""===n||-1===(this.accept+",").indexOf(n+","))return void this.$toast.fail(this.$tx("ecmapp.common.unsupported","不支持的文件格式!"))}if(void 0!==e.length){for(var a="",o=0;o<e.length;o++){for(var i=!1,r="",s=0;s<this.attachments.length;s++)e[o].file.name!==this.attachments[s].fileName||this.attachments[s].fileType!==this.attachsType&&(this.sameNameBodyfile||"BODY"!==this.attachments[s].fileType)||(i=!0,a+=e[o].file.name);if(/^image\./.test(e[o].file.name)&&(i=!1,r=e[o].file.name.replace(/^(.*?)\.([^\.]*)$/,"$1".concat(window.moment()-0,".$2"))),!i){var l={};l.fileName=r||e[o].file.name,l.fileSize=T(e[o].file.size),l.fileType=this.attachsType,l.uploadBy=this.loginUser.personName,"DONEXT"===this.attachsType&&(l.uploadType="DONEXT",l.uploadBy=(this.curTN.tnIdeaSigner||this.curTN.userName)+"_"+this.curTN.tnID),l.uploadTime="待上传",l.file=e[o],l.checked=!1,e[o].progress=0,this.attachments.push(l)}}""!==a&&this.$dialog.alert({message:this.$tx("ecmapp.message.cannotBeUpload",{fileName:a},"文件“".concat(a,"”已存在,不允许上传同命名文件。"))})}else{var d="";if(/^image\./.test(e.file.name))d=e.file.name.replace(/^(.*?)\.([^\.]*)$/,"$1".concat(window.moment()-0,".$2"));else for(var c=0;c<this.attachments.length;c++)if(e.file.name===this.attachments[c].fileName&&(this.attachments[c].fileType===this.attachsType||!this.sameNameBodyfile&&"BODY"===this.attachments[c].fileType))return void this.$dialog.alert({message:this.$tx("ecmapp.message.cannotBeUpload",{fileName:e.file.name},"文件“".concat(e.file.name,"”已存在,不允许上传同命名文件。"))});var u={};u.fileName=d||e.file.name,u.fileSize=T(e.file.size),u.fileType=this.attachsType,u.uploadBy=this.loginUser.personName,"DONEXT"===this.attachsType&&(u.uploadType="DONEXT",u.uploadBy=this.curTN.userName+"_"+this.curTN.tnID),u.uploadTime="待上传",u.file=e,u.checked=!1,e.progress=0,this.attachments.push(u)}this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType})),this.$forceUpdate()},initPotourl:function(e){var t=e.fileName.substr(e.fileName.lastIndexOf(".")+1).toLowerCase(),n=["zip","rar","arj"],a=["jpg","jpeg","png","gif"],o=["mp4","avi","wmv"];return t.indexOf("doc")>-1?"./images/m-imgs/app-icons/word@3x.png":t.indexOf("xls")>-1?"./images/m-imgs/app-icons/xls@3x.png":t.indexOf("ppt")>-1?"./images/m-imgs/app-icons/ppt文档@3x.png":t.indexOf("txt")>-1?"./images/m-imgs/app-icons/txt@3x.png":t.indexOf("pdf")>-1?"./images/m-imgs/app-icons/pdf@3x.png":n.indexOf(t)>-1?"./images/m-imgs/app-icons/zip@3x.png":o.indexOf(t)>-1?"./images/m-imgs/app-icons/video@3x.png":a.indexOf(t)>-1?(this.$set(e,"previewType","download"),e.id?"/apigw/"+this.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken():e.id?void 0:e.file.content):"./images/m-imgs/app-icons/other@3x.png"},uploadWflowAttach:function(e){var t=this;return new Promise(function(){var n=Zd(Kd().mark((function n(a){var o,i,r,s,l,d,c,u,f;return Kd().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=function(){return s=Zd(Kd().mark((function t(n,a){var o,r,s,l,d;return Kd().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=n.file,r={onUploadProgress:function(e){var t=e.loaded/e.total*100|0;i.$set(o,"progress",t),i.$set(n,"file",o),i.$forceUpdate(),"BODY"===n.fileType&&i.$bus.emit("onUploadProgress",n)}},o.name||(o.name=n.fileName||o.file.name),s=e.moduleCode||i.wfAttachUrl.split("/")[1],l={module:s,busiDataId:e.vo.id,attachsName:encodeURI(o.name),attachsType:o.fileType,attachsSize:o.file.size,clientType:"uploader",uploadIndex:n.uploadIndex||0},e.wfInstance&&(l.bodyDocId=e.wfInstance.bodyDocId,l.module=e.wfInstance.module),"DONEXT"!==n.uploadType&&"formfile"!==n.uploadType||(l.uploadBy=n.uploadBy),t.next=9,i.$wfEngine.upload(i,i.wfAttachUrl+"/upload",o.file,l,r);case 9:return d=t.sent,t.abrupt("return",d);case 11:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)},r=function(e,t){return s.apply(this,arguments)},o=[],e.doNextAttach&&void 0!==e.doNextAttach.file&&null!==e.doNextAttach.file&&0===e.doNextAttach.file.progress&&t.attachments.push(e.doNextAttach),t.attachments.forEach((function(e,n){null==e.file||e.file.complete||void 0!==e.uploadIndex||e.fileType!==t.attachsType&&"formfile"!==e.uploadType&&"DONEXT"!==e.uploadType||(e.file.message=null,e.file.fileType=e.fileType||t.attachsType,e.uploadIndex=n,o.push(e))})),i=t,!e.bodyfile||void 0===e.bodyfile.file||null===e.bodyfile.file||0!==e.bodyfile.file.progress){n.next=14;break}return l=e.bodyfile,l.file.message=null,l.file.fileType=l.fileType||t.attachsType,n.next=12,r(l,0);case 12:d=n.sent,"success"===d.code?(l.file.complete=!0,d.body.uploadAttachList.forEach((function(n){for(var a=0;a<e.attachments.length;a++){var o=e.attachments[a];if(o.fileType===n.fileType&&o.originalName===n.originalName){e.attachments.splice(a--,1);break}}t.attachments.push(n),(n.fileName.indexOf(".pdf")||n.fileName.indexOf(".ofd"))&&(i.$set(e,"bodyfile",n),"undefined"!==typeof e.vo.flBodyFilename&&(e.vo.flBodyFilename=n.fileName)),!n.fileName||".pdf"!==n.fileName.substring(n.fileName.length-4)&&".ofd"!==n.fileName.substring(n.fileName.length-4)||i.$bus.emit("onUploadProgress",n)})),c=l.file.name,u=c.substring(c.lastIndexOf(".")).toLowerCase(),f="",t.$vnode.context.wfInstance.passenger.docEditMode&&(f=t.$vnode.context.wfInstance.passenger.docEditMode),e.wfInstance.haveDoc="RedTitle"===f?2:"NoTitle"===f?".pdf"===u||".ofd"===u?2:1:2,-1===e.bodyfile.originalName.indexOf(e.wfInstance.bodyDocId)&&(e.wfInstance.bodyDocId=e.bodyfile.originalName.split(".")[0]),"undefined"===typeof e.vo.flBodyFilename||null!==e.vo.flBodyFilename&&""!==e.vo.flBodyFilename||(e.vo.flBodyFilename=l.fileName),0===o.length&&a({code:"success",message:t.$tx("ecmapp.message.fileUploadSuccess","文件正文上传成功!")}),t.$nextTick((function(){t.$bus.emit("onTabChanged",0)}))):(l.file.status="failure",l.file.message=d.message,t.$bus.emit("onUploadProgress",l),0===o.length&&a(d));case 14:0===o.length&&(1===t.isRequired&&0===t.attachList.length?(t.$dialog.alert({message:t.$tx("ecmapp.message.needUploadFile","请选择需要上传的附件!")}),a({code:"failure",message:t.$tx("ecmapp.message.noSelNeedUploadFile","没有选择需要上传的附件")})):a({code:"success",message:t.$tx("ecmapp.message.noTobeUploadFile","没有待上传附件")})),o.forEach(function(){var n=Zd(Kd().mark((function n(o,s){var l,d,c;return Kd().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r(o,s+1);case 2:l=n.sent,d=o.file,"success"===l.code?(d.complete=!0,c=!0,i.attachments.forEach((function(n,a){if(d===n.file){var o=e.attachments||e.vo.passenger.attachments||t.attachments;2===l.body.uploadAttachList.length?o.splice(a,1,l.body.uploadAttachList[0],l.body.uploadAttachList[1]):o.splice(a,1,l.body.uploadAttachList[0])}n.fileType===t.attachsType&&n.file&&!0!==n.file.complete&&(c=!1)})),c&&a({code:"success",message:t.$tx("ecmapp.message.attchUploadFile","附件全部上传成功")})):(d.status="failure",d.message=l.message,a(l),t.$forceUpdate());case 5:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}());case 16:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())},handleOpenEditor:function(e){e.canModify?this.$bus.emit("btnEditAttachClick",e,this.onlineEditor):this.$dialog.alert({message:this.$tx("ecmapp.message.notSupportedFile","文件不支持在线编辑。")})}}},ic=oc,rc=(a(9283),(0,Ca.A)(ic,Jd,qd,!1,null,"c5c0c8a2",null)),sc=rc.exports,lc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bodyfile-container"},[e.flBodyfile&&e.flBodyfile.id&&null===e.downloadurl?t("van-loading",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"},{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.loadingFile",expression:"'ecmapp.wflowform.loadingFile'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载正文文件...")]):e.flBodyfile&&e.flBodyfile.fileName?e.uploadList.length>0?t("div",{staticClass:"upload-progress"},[t("van-circle",{attrs:{rate:100,"stroke-width":60,speed:1,"layer-color":"#ebedf0",text:e.flBodyfile.fileSize},model:{value:e.flBodyfile.file.progress,callback:function(t){e.$set(e.flBodyfile.file,"progress",t)},expression:"flBodyfile.file.progress"}}),t("div",{staticClass:"van-ellipsis"},[e._v(e._s(e.flBodyfile.fileName))])],1):e._e():t("van-empty",{attrs:{description:e.$tx("ecmapp.wflowform.noBodyFile","暂无正文")}}),""!=e.bodyFileUrl&&0==e.uploadList.length?t("PdfTools",{ref:"PdfTools",attrs:{"seal-source":e.sealSource,"wf-attach-url":e.wfAttachUrl,"body-file-url":e.bodyFileUrl,bodyfile:e.flBodyfile,sign:e.sign,seal:e.seal,"view-body-file-show":e.viewBodyFileShow}}):null!==e.downloadurl?t("div",{staticStyle:{"text-align":"center",background:"#fff",padding:"20px 20px"},on:{click:e.downLoadFile}},[t("div",{staticClass:"file-svg-icon"},[t("svg",{staticClass:"svg-icon",attrs:{width:"15px",height:"18px",viewBox:"0 0 15 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[t("g",{attrs:{id:"bodyfile",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{id:"bodyfileIcon",transform:"translate(-263.000000, -1048.000000)","fill-rule":"nonzero"}},[t("g",{attrs:{id:"word",transform:"translate(263.000000, 1048.000000)"}},[t("path",{attrs:{id:"形状结合",d:"M10.2439176,0 L14.8728814,4.53013393 L14.8728814,17.4977679 C14.8728814,17.7751406 14.6405406,18 14.3539392,18 L0.518942127,18 C0.232340769,18 -1.49213975e-13,17.7751406 -1.49213975e-13,17.4977679 L-1.49213975e-13,0.502232143 C-1.49213975e-13,0.224859375 0.232340769,0 0.518942127,0 L10.2439176,0 Z M4.12729895,6.53424658 L2.66949153,6.53424658 L2.66949153,13.970203 C2.66949153,14.6089356 3.48798792,14.91363 3.93668022,14.4419465 L7.56355932,10.6291598 L11.1904384,14.4419465 C11.6391307,14.91361 12.4576271,14.6089157 12.4576271,13.970203 L12.4576271,6.53424658 L10.9998197,6.53424658 L10.9998197,12.1663439 L8.1018443,9.11984056 C7.81280274,8.81598579 7.3143159,8.81598579 7.02527434,9.11984056 L4.12729895,12.1663439 L4.12729895,6.53424658 Z",fill:"#4A8DFF"}}),t("path",{attrs:{id:"路径",d:"M10.2966102,0 L10.2966102,4.05591835 C10.2966102,4.33522042 10.5263061,4.56164384 10.8096451,4.56164384 L14.8728814,4.56164384 L10.2966102,0 Z",fill:"#E5F0FF"}})])])])])]),t("div",{staticStyle:{color:"#1989fa","font-size":"16px"}},[e._v(e._s(e.flBodyfile.fileName))]),t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.downloadView",expression:"'ecmapp.wflowform.downloadView'"}],staticStyle:{"font-size":"14px","margin-top":"10px"}},[e._v("点击下载查看")])]):e._e(),t("van-uploader",{attrs:{"preview-image":!1,accept:e.accept,"max-count":1,"after-read":e.handleUploadChange},on:{oversize:e.handleUploadExceed},model:{value:e.uploadList,callback:function(t){e.uploadList=t},expression:"uploadList"}},[t("van-icon",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"uploadIcon",attrs:{name:"add-o"}})],1),t("PopupDialog",{attrs:{showpop:e.historyDialogVisible,title:e.$tx("ecmapp.wflowform.historicalVersion","历史版本"),"on-closed":e.reloadBodyFile},on:{"update:showpop":function(t){e.historyDialogVisible=t}}},[0===e.historyFiles.length?t("van-empty",{attrs:{description:e.$tx("ecmapp.wflowform.descriptionText","描述文字")}}):e._e(),e._l(e.historyFiles.filter((function(e){return-1===e.fileName.indexOf(".doc")||-1!==e.filePath.indexOf("/noTracks/")})),(function(n,a){return t("van-cell-group",{key:a},[t("van-cell",{staticStyle:{"line-height":"32px"},attrs:{value:n.updateTime},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(n.updateBy))]},proxy:!0},{key:"icon",fn:function(){return[t("van-image",{attrs:{round:"",width:"32px",height:"32px",src:n.avatarUrl}})]},proxy:!0}],null,!0)}),t("van-cell",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(n.fileVer)+" "+e._s(1==n.fileStatus?e.$tx("ecmapp.wflowform.currentVersion","当前版本"):e.$tx("ecmapp.wflowform.historicalVersion","历史版本")))]},proxy:!0},{key:"right-icon",fn:function(){return[t("van-icon",{staticStyle:{padding:"0 10px"},attrs:{id:n.id,name:"ellipsis"},on:{click:function(t){return e.moreBtnClick(n)}}})]},proxy:!0}],null,!0)})],1)})),e.showMoreBtn?t("van-popup",{staticClass:"more-btns",attrs:{teleport:"#"+e.teleportId,"close-on-popstate":!0},model:{value:e.showMoreBtn,callback:function(t){e.showMoreBtn=t},expression:"showMoreBtn"}},[t("div",{staticClass:"btn-item",on:{click:function(t){return e.moreMenuitemClick("view")}}},[t("van-icon",{attrs:{name:"eye-o"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"look",expression:"'look'"}],staticStyle:{"margin-left":"5px"}},[e._v("查看")])],1),t("div",{staticClass:"btn-item",on:{click:function(t){return e.moreMenuitemClick("remove")}}},[t("van-icon",{attrs:{name:"cross"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"del",expression:"'del'"}],staticStyle:{"margin-left":"5px"}},[e._v("删除")])],1),t("div",{staticClass:"btn-item",on:{click:function(t){return e.moreMenuitemClick("download")}}},[t("van-icon",{attrs:{name:"down"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"download",expression:"'download'"}],staticStyle:{"margin-left":"5px"}},[e._v("下载")])],1)]):e._e()],2),t("van-action-sheet",{attrs:{title:e.$tx("common.attach","附件")+"("+e.attachments.filter((function(e){return"BODY"!==e.fileType})).length+")"},model:{value:e.showAttachmentFile,callback:function(t){e.showAttachmentFile=t},expression:"showAttachmentFile"}},[t("div",{staticClass:"attachmentContent"},[e._l(e.attachments,(function(n,a){return["BODY"!==n.fileType?t("div",{key:a,staticClass:"attachmentContent_son"},[t("div",{staticClass:"icon_left"},[t("svg",{staticClass:"svg-icon-font",staticStyle:{width:"70%",height:"70%",margin:"auto"}},[t("use",{attrs:{"xlink:href":"#icon-file_"+n.fileName.split(".")[1]}})])]),t("div",{staticClass:"content"},[t("div",{staticClass:"name"},[e._v(e._s(n.fileName))]),t("div",{staticClass:"size"},[e._v(e._s(n.fileSize))])]),n.id?t("div",{staticClass:"icon_right",staticStyle:{width:"30px"},on:{click:function(t){return e.attachmentDownloadClick(n)}}},[t("svg",{staticClass:"svg-icon-font",staticStyle:{width:"50%",height:"50%",margin:"auto"}},[t("use",{attrs:{"xlink:href":"#icon-wjzx_downcopy"}})])]):e._e()]):e._e()]}))],2)])],1)},dc=[];function cc(e){return cc="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},cc(e)}function uc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uc=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==cc(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(cc(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function fc(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function pc(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){fc(i,a,o,r,s,"next",e)}function s(e){fc(i,a,o,r,s,"throw",e)}r(void 0)}))}}var mc={name:"BodyFile",components:{},props:{vo:{type:Object,default:function(){return{}}},curTN:{type:Object,default:function(){return{}}},flBodyfile:{type:Object,default:function(){return{file:{name:""}}}},attachments:{type:Array,default:function(){return[]}},wfAttachUrl:{type:String,default:"wfInstance/wfBusiAttach"},accept:{type:String,default:".doc,.pdf,.ofd"},viewer:{type:String,default:"pdfjs"},fuxinBaseUrl:{type:String,default:""},viewerUrlParams:{type:String,default:""},officeType:{type:String,default:"yzh5"},fileNeedSign:{type:Number,default:0},waterMark:{type:Boolean,default:!1},downloadWaterMark:{type:String,default:""},markContent:{type:String,default:""},wflowNavbarList:{type:Array,default:function(){return["form","BodyFile","HandleIdea"]}}},data:function(){return{bodyFileUrl:"",sign:!1,seal:!1,loaded:!0,uploadList:[],sealSource:"biceng",loginUser:this.$store.getters.loginUser,flBodyfileBak:null,wfInstance:{},downloadurl:null,historyDialogVisible:!1,historyFiles:[],showMoreBtn:!1,teleportId:"",clickAttach:null,showAttachmentFile:!1,attachmentsNum:null,pdfSignChange:!1,pdfSealChange:!1,viewBodyFileShow:"",onlineViewer:null}},computed:{},watch:{},created:function(){this.sealSource=this.$vnode.context.wfInstance.passenger.sealType||"biceng",this.wfInstance=this.$vnode.context.wfInstance,this.$bus.on("onTabChanged",this.onTabChanged),this.$bus.on("onUploadProgress",this.onUploadProgress),this.$bus.on("reloadBodyFile",this.reloadBodyFile),this.$bus.on("setBtnSingSave",this.setBtnSingSave),this.$bus.on("setBtnSealSave",this.setBtnSealSave)},beforeDestroy:function(){this.$bus.off("onTabChanged",this.onTabChanged),this.$bus.off("onUploadProgress",this.onUploadProgress),this.$bus.off("reloadBodyFile",this.reloadBodyFile),this.$bus.off("setBtnSingSave",this.setBtnSingSave),this.$bus.off("setBtnSealSave",this.setBtnSealSave)},mounted:function(){},methods:{onTabChanged:function(e){"BodyFile"===this.wflowNavbarList[e]&&this.viewBodyFile(),this.setFooterBtns(e)},viewBodyFile:function(){var e=this;return pc(uc().mark((function t(){var n,a,o,i,r,s,l,d;return uc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.flBodyfile&&void 0!==e.flBodyfile.id){t.next=2;break}return t.abrupt("return");case 2:if(e.viewBodyFileShow="",e.downloadurl=null,e.bodyFileUrl="",e.flBodyfileBak=e.flBodyfile,n=e.flBodyfile.originalName.replace(".des","").replace(".xor","").replace(".rsm3","").replace(".sm4",""),a=n.substring(n.lastIndexOf(".")).toLowerCase(),e.seal=!1,e.$vnode.context.commandBar.forEach((function(t){"btnStampClick"===t.btnCode&&2===e.$vnode.context.wfInstance.haveDoc&&(e.seal=!0)})),1===e.fileNeedSign&&2===e.$vnode.context.wfInstance.haveDoc?e.sign=!0:e.sign=!1,o=e,".ofd"!==a||"fuxin"!==e.viewer){t.next=28;break}return i=location.href.split("#")[0],i.indexOf("/mindex.html")>-1&&(i=i.split("/mindex.html")[0]),t.next=17,e.getSessionId();case 17:return r=t.sent,s=i+"/apigw",s+="/"===e.wfAttachUrl.substring(0,1)?e.wfAttachUrl:"/"+e.wfAttachUrl,s+="/downloadById?attachIds="+e.flBodyfile.id+"&topdf=true",s+="&tSessionId="+r,e.fuxinBaseUrl?(e.fuxinBaseUrl=e.fuxinBaseUrl.replace("/pc/","/mobile/"),e.bodyFileUrl=e.fuxinBaseUrl+"?docuri="+encodeURIComponent(s)):e.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"base/paramConfig/findParamValueByName?orgCode=standard¶mName=fuxin.viewer.url"}).then((function(t){"success"===t.code?(e.fuxinBaseUrl=t.body.value,e.fuxinBaseUrl=e.fuxinBaseUrl.replace("/pc/","/mobile/"),e.bodyFileUrl=e.fuxinBaseUrl+"?docuri="+encodeURIComponent(s)):e.$toast.fail("未配置福星预览地址参数 fuxin.viewer.url")})),console.log("bodyFileUrl=====>",e.bodyFileUrl),e.viewBodyFileShow="ofd",e.$nextTick((function(){document.getElementById("changeScreenH")&&(document.getElementById("changeScreenH").style.display="none")})),o.loaded=!1,t.abrupt("return");case 28:e.viewer="pdfjs",".pdf"!==a&&".pdf.des"!==a&&".pdf.xor"!==a&&".pdf.rsm3"!==a&&".pdf.sm4"!==a||"pdfjs"!==e.viewer&&!e.sign&&!e.seal?".ofd"===a?(e.sign=!1,e.seal=!1,e.viewBodyFileShow="ofd",d="/apigw/"+e.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.flBodyfile.id+"&widthType=auto&viewType=mobile",-1!==e.flBodyfile.fileName.indexOf("{")||-1!==e.flBodyfile.fileName.indexOf("%")||-1!==e.flBodyfile.fileName.indexOf("[")?d+="&fileName="+encodeURI(e.flBodyfile.fileName):d+="&fileName="+e.flBodyfile.fileName,d+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+e.waterMark+"&markContent="+e.markContent,e.bodyFileUrl="./plugins/OfdJs/view.html?file="+encodeURIComponent(d),o.loaded=!1):0===e.viewer.indexOf("dcs=")?(e.sign=!1,e.seal=!1,e.$http({method:"GET",url:"base/user/getSessionId"}).then((function(t){if("success"===t.code){var n=t.body.tSessionId,a=location.href.split("mindex.html")[0],i=a.substring(0,a.length-1)+"/apigw/"+e.wfAttachUrl+"/downloadById?attachIds="+e.flBodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+n,r="0";".ofd"===e.extName?r="21":".pdf"!==e.extName&&".pdfx"!==e.extName||(r="20"),i=e.viewer.split("=")[1]+"/composite/httpfile?convertType="+r+"&fileUrl="+encodeURIComponent(i),e.viewerUrlParams&&(i+="&"+e.viewerUrlParams),-1===i.indexOf("&acceptTracks=0")&&(i+="&acceptTracks=0"),$.post(i,{},(function(t){o.loaded=!1,0===t.errorcode?o.bodyFileUrl=t.data.viewUrl:e.$dialog.alert({message:t.message})}),"json")}}))):e.downloadurl="/apigw/"+e.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.flBodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+e.waterMark+"&markContent="+e.markContent:(e.viewBodyFileShow="pdf",(e.sign||e.seal)&&(e.waterMark=!1),l="/apigw/"+e.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.flBodyfile.id+"&widthType=auto&viewType=mobile",l+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+e.waterMark+"&markContent="+e.markContent,-1!==e.flBodyfile.fileName.indexOf("{")||-1!==e.flBodyfile.fileName.indexOf("%")||-1!==e.flBodyfile.fileName.indexOf("[")?l+="&fileName="+encodeURI(e.flBodyfile.fileName):l+="&fileName="+e.flBodyfile.fileName,e.bodyFileUrl="./plugins/PDFjs/web/viewer.html?file="+encodeURIComponent(l),e.$nextTick((function(){var e=document.getElementById("pdfHtml");null!=e&&(e.attachEvent?e.attachEvent("onload",(function(){o.loaded=!1})):e.onload=function(){o.loaded=!1})})));case 30:case"end":return t.stop()}}),t)})))()},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)}))}))},reloadBodyFile:function(){var e=this;this.downloadurl=null,this.bodyFileUrl="",this.$nextTick((function(){e.viewBodyFile()}))},setFooterBtns:function(e){var t=this;return pc(uc().mark((function n(){var a,o,i,r,s,l,d,c,u,f,p,m,h,v,g,y,_,b;return uc().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=[],"BodyFile"===t.wflowNavbarList[e]){n.next=5;break}t.$vnode.context.setFooterBtns(),n.next=22;break;case 5:if(!t.pdfSealChange){n.next=8;break}return t.setBtnSealSave(),n.abrupt("return");case 8:if(!t.pdfSignChange){n.next=11;break}return t.setBtnSingSave(),n.abrupt("return");case 11:for(o=0;o<a.length;o++)i=a[o],"btn_submit"!==i.id&&a.splice(o--,1);if(r=!1,"NoTitle"===t.$vnode.context.wfInstance.passenger.docEditMode?(console.log(t.attachments,"attachment"),s=t.attachments.filter((function(e){return"BODY"===e.fileType})),s&&s.length>0&&(1===s.length?r=!0:s.forEach((function(e){var n=e.fileName,a=e.bodyFileName?e.bodyFileName:e.fileName;(a.includes("RedTitle_")||a===t.$vnode.context.vo.flbodyfilename||n===t.$vnode.context.vo.flbodyfilename||n.includes("RedTitle_"))&&(r=!0)})))):r=!0,1===t.curTN.tnCanEdit&&(t.seal&&r&&(l={id:"btn_openDoc",btnName:"盖 章",btnIcon:"upload",btnClick:t.openSeal,btnPermission:"",btnStyleType:"default"},a.splice(0,0,l)),t.sign&&r&&(d={id:"btn_openDoc",btnName:"签 名",btnIcon:"upload",btnClick:t.pdfSign,btnPermission:"",btnStyleType:"default"},a.splice(0,0,d))),t.flBodyfile&&(c={id:"btn_download",btnName:"下 载",btnIcon:"download",btnClick:t.downLoadFile,btnPermission:"",btnStyleType:"default"},a.splice(0,0,c)),t.flBodyfile&&t.flBodyfile.fileId&&(u={id:"btn_historyFiles",btnName:"历史版本",btnIcon:"upload",btnClick:t.btnViewHistoryFilesClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,u)),"ecinc"===window.mappType&&(f={id:"btn_otherApp",btnName:"其它应用打开",btnIcon:"otherApp",btnClick:t.btnOtherAppOpenClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,f)),1===t.curTN.tnCanEdit&&(t.flBodyfile&&t.flBodyfile.id?(m={id:"btn_upload",btnName:"重新上传",btnIcon:"upload",btnClick:t.btnUploadBodyfileClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,m)):(p={id:"btn_upload",btnName:"上传正文",btnIcon:"upload",btnClick:t.btnUploadBodyfileClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,p)),h=t.$vnode.context.commandBar.filter((function(e){if(e.btnShow&&e.btnJavascript&&0===e.btnJavascript.indexOf("btnOpenWordClick"))return!0})),"NoTitle"===t.$vnode.context.wfInstance.passenger.docEditMode&&(v=t.$vnode.context.commandBar.filter((function(e){if(e.btnShow&&e.btnJavascript&&0===e.btnJavascript.indexOf("btnNoTitleModifyFlTypeClick"))return!0})),v.btnClick=t.btnNoTitleModifyFlTypeClick,2===t.$vnode.context.wfInstance.haveDoc&&h.length>0?(v.btnName="重新套红",a.splice(0,0,v)):1===t.$vnode.context.wfInstance.haveDoc&&h.length>0&&(v.btnName="套红",a.splice(0,0,v))),h.length>0&&("wpsh5"===t.officeType||"yzh5"===t.officeType||"ech5"===t.officeType)&&(g={id:"btn_openDoc",btnName:"编辑正文",btnIcon:"upload",btnClick:t.btnOpenWordClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,g)),t.attachmentsNum=t.attachments.filter((function(e){return"BODY"!==e.fileType})).length,y={id:"btn_attachment",btnName:"附 件(".concat(t.attachmentsNum,")"),btnIcon:"attachment",btnClick:t.attachmentFile,btnPermission:"",btnStyleType:"default"},a.splice(0,0,y)),a.length>3){for(_={id:"btn_upload",btnName:"更 多",btnIcon:"upload",btnPermission:"",btnStyleType:"default",children:[]},b=1;b<a.length-1;b++)a[b].text=a[b].btnName,_.children.push(a[b]),a.splice(b--,1);a.splice(1,0,_)}console.log(a,"footerBtns --- >363"),t.$vnode.context.footerBtns=a;case 22:case"end":return n.stop()}}),n)})))()},openSeal:function(){this.$refs.PdfTools.openSeal(),this.pdfSealChange=!0},setBtnSealSave:function(){this.$vnode.context.footerBtns=[{id:"btn_download",btnName:"保存印章",btnIcon:"download",btnClick:this.pdfSealSave,btnPermission:"",btnStyleType:"info"}]},pdfSealSave:function(){var e=this;return pc(uc().mark((function t(){return uc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.PdfTools.pdfStamp();case 2:e.pdfSealChange=!1,e.setFooterBtns(0);case 4:case"end":return t.stop()}}),t)})))()},pdfSign:function(){this.$refs.PdfTools.openSign(),this.pdfSignChange=!0},setBtnSingSave:function(){this.$vnode.context.footerBtns=[{id:"btn_download",btnName:"保存签名",btnIcon:"download",btnClick:this.pdfSignSave,btnPermission:"",btnStyleType:"info"}]},pdfSignSave:function(){var e=this;return pc(uc().mark((function t(){return uc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.PdfTools.pdfSign();case 2:e.pdfSignChange=!1,e.setFooterBtns(0);case 4:case"end":return t.stop()}}),t)})))()},attachmentDownloadClick:function(e){if(e.id){var t="";t="/apigw/"+this.wfAttachUrl+"/downloadById?inline=false&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),this.$mappUtils.downLoadAndOpenFile(this,t,e.fileName,e.fileSize)}},attachmentFile:function(){this.attachmentsNum>0&&(this.showAttachmentFile=!0)},btnOtherAppOpenClick:function(){var e="/apigw";e+="/"===this.wfAttachUrl.substring(0,1)?this.wfAttachUrl:"/"+this.wfAttachUrl,e+="/downloadById?topdf=false&attachIds="+this.flBodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),this.flBodyfile.passenger.downloadUrl=e,this.$wv.showAttachmentOtherApps(this.flBodyfile)},btnUploadBodyfileClick:function(){var e=this;new Promise((function(t,n){e.$vnode.context.wfInstance.haveDoc?e.$dialog.confirm({message:e.$tx("ecmapp.wflowform.coverMainText","重新上传会覆盖现有正文,是否确认?")}).then(pc(uc().mark((function e(){return uc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t(!0);case 1:case"end":return e.stop()}}),e)})))).catch((function(){n("cancel btnUploadBodyfileClick.")})):t(!0)})).then((function(t){e.uploadList=[],e.$vnode.context.formValidate((function(){e.$vnode.context.submitHandle.submitType="Save",new Promise((function(t,n){e.$vnode.context.formEvents.onWflowFormBeforeSubmit(e.$vnode.context,{resolve:t,reject:n})})).then((function(t){t&&(e.flBodyfile=e.flBodyfileBak,e.$nextTick((function(){var t=e.$el.querySelector(".van-uploader__input");t.click()})))}))}))})).catch((function(e){console.log(e)}))},btnOpenWordClick:function(){var e=this;"NoTitle"===this.$vnode.context.wfInstance.passenger.docEditMode&&2===this.$vnode.context.wfInstance.haveDoc?this.$dialog.confirm({message:this.$tx("ecmapp.wflowform.alreadlyRed","该公文已经套红,重新编辑正文后需要重套红!是否继续?"),title:this.$tx("common.confirm","确认操作")}).then((function(){e.$bus.emit("btnOpenWordClick",e.$vnode.context)})).catch((function(){})):this.$bus.emit("btnOpenWordClick",this.$vnode.context)},btnNoTitleModifyFlTypeClick:function(){this.$bus.emit("btnNoTitleModifyFlTypeClick",this.$vnode.context)},handleUploadExceed:function(e,t){this.$dialog.alert({message:this.$tx("ecmapp.wflowform.beyondUpload",{limitCount:this.limitCount,valLength:e.length,filelength:e.length+t.length},"当前限制选择 ".concat(this.limitCount," 个文件,本次选择了 ").concat(e.length," 个文件,共选择了 ").concat(e.length+t.length," 个文件"))})},handleUploadChange:function(e){var t=this,n=e.file.name,a=n.substring(n.lastIndexOf(".")).toLowerCase();if(-1===this.accept.indexOf(a))return this.$dialog.alert({message:this.$tx("ecmapp.wflowform.errFileFormat",{accept:this.accept.replace(/,/g,"、")},"您上传的文件格式有误,仅支持'".concat(this.accept.replace(/,/g,"、"),"'格式的文件!")),confirmButtonText:this.$tx("common.confirm","确认操作"),type:"warning"}),void(this.fileList=[]);if(this.flBodyfile&&""!==this.flBodyfile.name)for(var o=0;o<this.attachments.length;o++)this.attachments[o].name===this.flBodyfile.name&&"BODY"===this.attachments[o].fileType&&"待上传"===this.attachments[o].uploadTime&&this.attachments.splice(o--,1);var i={};i.fileName=n,i.fileSize=T(e.file.size),i.fileType="BODY",i.uploadBy=this.loginUser.personName,i.uploadTime="待上传",i.uploadStatus="待上传",i.file=e,i.checked=!1,e.progress=0,this.flBodyfile=i,this.$set(this.$vnode.context,"bodyfile",i),this.bodyFileUrl="",this.$nextTick((function(){t.$vnode.context.btnSubmitClick("Save")}))},onUploadProgress:function(e){e.id?(this.flBodyfile.fileName.split(".").length>0&&("doc"===this.flBodyfile.fileName.split(".")[1]||"docx"===this.flBodyfile.fileName.split(".")[1]?this.$vnode.context.commandBar.forEach((function(e){e.btnJavascript&&0===e.btnJavascript.indexOf("btnOpenWordClick")&&(e.btnShow=!0)})):this.$vnode.context.commandBar.forEach((function(e){e.btnJavascript&&0===e.btnJavascript.indexOf("btnOpenWordClick")&&(e.btnShow=!1)}))),this.uploadList=[],this.flBodyfile=e,this.setFooterBtns(),this.viewBodyFile()):100===e.file.process&&(this.uploadList=[]),this.$forceUpdate()},downLoadFile:function(){""===this.downloadWaterMark&&(this.downloadWaterMark=this.waterMark);var e="";null!==this.downloadurl?e=this.downloadurl:(e="/apigw/"+this.wfAttachUrl+"/downloadById?inline=false&attachIds="+this.flBodyfile.id,e+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+this.downloadWaterMark+"&markContent="+this.markContent),"ecinc"===window.mappType?(this.flBodyfile.passenger.downloadUrl=e,this.$wv.downloadAttachment(this.flBodyfile)):this.$mappUtils.downLoadAndOpenFile(this,e,this.flBodyfile.fileName,this.flBodyfile.fileRealSize)},btnViewHistoryFilesClick:function(e){var t=this;this.historyDialogVisible=!0;var n=this.wfAttachUrl+"/listAttach",a=e?e.fileId:this.flBodyfile.fileId;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{pageNum:1,pageSize:1e3,orderBy:"fileVer desc",urlsearch:"fileId:"+a},url:n}).then((function(e){"success"===e.code?t.historyFiles=e.body.pageInfo.list.filter((function(e){return t.flBodyfile.id!==e.id&&1===e.fileStatus&&e.originalName===t.flBodyfile.originalName&&(t.flBodyfile=e,t.$vnode.context.bodyfile=t.flBodyfile,t.reloadBodyFile()),e.updateTime=w(e.updateTime),e.avatarUrl="/apigw/base/user/downloadPhotoByAccount?orgCode="+e.orgCode+"&account="+e.updateBy+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),!0})):t.$dialog.alert({message:e.message,type:"error"})}))},downHistoryFile:function(e){var t="/apigw/"+this.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+this.waterMark+"&markContent="+this.markContent;this.$mappUtils.downLoadAndOpenFile(this,t,this.flBodyfile.fileName,e.fileRealSize)},moreBtnClick:function(e){this.showMoreBtn=!0,this.teleportId=e.id,this.clickAttach=e},moreMenuitemClick:function(e){var t=this;if(-1!==e.indexOf("view"))this.downHistoryFile(this.clickAttach);else if(-1!==e.indexOf("remove"))this.removeBodyfile(this.clickAttach);else if(-1!==e.indexOf("download")){var n=this.clickAttach.id;this.historyFiles.forEach((function(e){e.fileVer&&e.fileVer===t.clickAttach.fileVer&&e.id!==t.clickAttach.id&&(n+=","+e.id)}));var a="/apigw/"+this.wfAttachUrl+"/downloadById?attachIds="+n+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&saveAs=文件正文_"+this.clickAttach.fileVer+".zip";"ecinc"===window.mappType?(this.clickAttach.passenger.downloadUrl=a,this.$wv.downloadAttachment(this.clickAttach)):window.open(a)}this.showMoreBtn=!1},removeBodyfile:function(e){var t=this,n=this.$tx("ecmapp.wflowform.delCurrentVersion","您是否确认删除当前版本文件?");8===e.fileStatus&&(n=this.$tx("ecmapp.wflowform.delHistoricalVersion","您是否确认删除历史版本文件?"));var a=this;this.$dialog.confirm({message:n}).then(pc(uc().mark((function n(){var o,i,r;return uc().wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(o=e.id,i=e.originalName.substring(0,e.originalName.indexOf(".")),r=0;r<a.attachments.length;r++)a.attachments[r].id&&a.attachments[r].id!==e.id&&a.attachments[r].originalName&&0===a.attachments[r].originalName.indexOf(i)&&(!e.fileVer||e.fileVer&&e.fileVer===a.attachments[r].fileVer)&&(o+=","+a.attachments[r].id);t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{attachIds:o},url:t.wfAttachUrl+"/delete"}).then((function(n){if("success"===n.code){for(var a=0;a<t.attachments.length;a++)t.attachments[a].id!==e.id&&0!==t.attachments[a].originalName.indexOf(i+".pdf")||t.attachments.splice(a--,1);t.btnViewHistoryFilesClick(t.flBodyfile),8!==e.fileStatus&&("undefined"!==typeof t.vo.flBodyFilename&&(t.vo.flBodyFilename=null),"undefined"!==typeof t.vo.signedFileName&&(t.vo.signedFileName=null),"undefined"!==typeof t.vo.sealFileName&&(t.vo.sealFileName=null),t.$vnode.context.commandBar.forEach((function(e){"btnOpenWordClick"===e.btnCode&&(e.btnShow=!0)})),n.body.restoreHistoryFile||(t.flBodyfile={file:{name:""}},t.$vnode.context.bodyfile=t.flBodyfile,t.$vnode.context.wfInstance.haveDoc=0),t.$vnode.context.btnSubmitClick("Save"))}else t.$dialog.alert({message:n.message,type:"error"})}));case 4:case"end":return n.stop()}}),n)}))))}}},hc=mc,vc=(a(4270),(0,Ca.A)(hc,lc,dc,!1,null,"4602c485",null)),gc=vc.exports,yc=function(){var e=this,t=e._self._c;return t("div",[e.showIdea>0?t("div",{staticClass:"handle-idea-container van-wform-operate-cell"},[e.separateTopShow?t("div",{staticClass:"form-slicer"}):e._e(),e.showHandleTitle?t("van-cell-group",[t("van-cell",{attrs:{title:e.$tx("ecmapp.wflowform.handlingSuggestions","处理意见")},on:{click:function(t){e.showHandleIdea=!e.showHandleIdea}}},[[e._v(" "+e._s(e.showHandleIdea?e.$tx("ecmapp.pageBtns.fold","折叠"):e.$tx("ecmapp.pageBtns.open","展开"))+" "),t("van-icon",{class:e.showHandleIdea?"icon-play-up":"icon-play-down",attrs:{name:"play"}})]],2)],1):e._e(),e.showHandleIdea?t("div",[e._l(e.wfIdeaList,(function(n,a){return[[e.showEmptyLabel||null!==n.ideaContent&&""!==n.ideaContent?t("div",{key:a,staticStyle:{background:"#fff"},attrs:{title:n.ideaLabelName}},[t("div",{directives:[{name:"wfIdea-lbl",rawName:"v-wfIdea-lbl",value:n.i18nCode,expression:"wfIdea.i18nCode"}],staticStyle:{padding:"10px 12px","font-size":"14px",color:"#303133"}},[e._v(e._s(n.ideaLabelName))]),e.handleArr[a].length>0?[e._l(e.handleArr[a],(function(n,a){return[n.show?t("div",{key:a,staticClass:"HandleIdeaContent"},[t("div",{domProps:{innerHTML:e._s(""===n.content?e.$tx("ecmapp.common.nothing","无"):n.content)}})]):e._e()]})),e.handleArr[a].length>2?[e.handleArr[a][2].show?t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookTow(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookAll(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAllOpinions",expression:"'ecmapp.wflowform.viewAllOpinions'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部意见")]),t("van-icon",{attrs:{name:"arrow-down"}})],1)]:e._e()]:t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.common.nothing",expression:"'ecmapp.common.nothing'"}],staticClass:"HandleIdeaContent"},[e._v("无")])],2):e._e(),[t("div",{key:a,staticClass:"form-slicer"})]]]}))],2):e._e()],1):t("div",{staticClass:"handle-idea-container van-wform-operate-cell"},[t("div",{staticClass:"form-slicer"}),t("van-cell-group",[t("van-cell",{attrs:{title:e.$tx("ecmapp.wflowform.handlingSuggestions","处理意见"),"is-link":""},on:{click:function(t){e.showHandleIdea=!e.showHandleIdea}}})],1),t("PopupDialog",{attrs:{showpop:e.showHandleIdea,title:e.$tx("ecmapp.wflowform.handlingSuggestions","处理意见")},on:{"update:showpop":function(t){e.showHandleIdea=t}}},[t("div",[e._l(e.wfIdeaList,(function(n,a){return[[e.showEmptyLabel||null!==n.ideaContent&&""!==n.ideaContent?t("div",{key:a,staticStyle:{background:"#fff"},attrs:{title:n.ideaLabelName}},[t("div",{directives:[{name:"wfIdea-lbl",rawName:"v-wfIdea-lbl",value:n.i18nCode,expression:"wfIdea.i18nCode"}],staticStyle:{padding:"10px 12px","font-size":"14px",color:"#303133"}},[e._v(e._s(n.ideaLabelName))]),e.handleArr[a].length>0?[e._l(e.handleArr[a],(function(n,a){return[n.show?t("div",{key:a,staticClass:"HandleIdeaContent"},[t("div",{domProps:{innerHTML:e._s(""===n.content?e.$tx("ecmapp.common.nothing","无"):n.content)}})]):e._e()]})),e.handleArr[a].length>2?[e.handleArr[a][2].show?t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookTow(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookAll(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAllOpinions",expression:"'ecmapp.wflowform.viewAllOpinions'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部意见")]),t("van-icon",{attrs:{name:"arrow-down"}})],1)]:e._e()]:t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.common.nothing",expression:"'ecmapp.common.nothing'"}],staticClass:"HandleIdeaContent"},[e._v("无")])],2):e._e(),[t("div",{key:a,staticClass:"form-slicer"})]]]}))],2)])],1),t("van-button",{directives:[{name:"show",rawName:"v-show",value:e.flse,expression:"flse"}],staticClass:"startChatBtn",on:{click:e.startChat}}),t("van-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"donext-attachBtn",on:{click:e.todownload}})],1)},_c=[];window.startChat=function(e){document.querySelector(".startChatBtn").staffId=e,document.querySelector(".startChatBtn").click()},window.todownload=function(e){console.log(e),document.querySelector(".donext-attachBtn").downUrl=e.split(",")[0],document.querySelector(".donext-attachBtn").fileName=e.split(",")[1],document.querySelector(".donext-attachBtn").fileRealSize=e.split(",")[2],document.querySelector(".donext-attachBtn").click()};var bc={name:"HandleIdea",components:{},props:{wfIdeaList:{type:Array,default:function(){return[]}},showIdea:{type:Number,default:function(){return 0}},showEmptyLabel:{type:Boolean,default:!0},showHandleTitle:{type:Boolean,default:!0},defaultCommentsNum:{type:Number,default:function(){return 3}},separateTopShow:{type:Boolean,default:!1}},data:function(){return{showHandleIdea:!1,collapseNames:[],viewCommentsNum:null,handleArr:[],anywhereChat:window.anywhereChat||!1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{showIdea:function(){this.setFormShowIdea()},showHandleIdea:function(){var e=this;setTimeout((function(){e.showDoNextAttach()}),0)}},created:function(){var e=this;this.viewCommentsNum=this.defaultCommentsNum,this.$vnode.context.wfInstance&&void 0!==this.$vnode.context.wfInstance.passenger.h5formShowIdea&&this.$set(this.$vnode.context,"showIdea",this.$vnode.context.wfInstance.passenger.h5formShowIdea),this.setFormShowIdea(),this.wfIdeaList.forEach((function(t,n){if(e.collapseNames.push(n),t.ideaContent){var a=t.ideaContent.match(/<div class="ideaDiv(.*?)<\/div>/g),o=[];a&&a.forEach((function(e,t){t<2?o.push({show:!0,content:e}):o.push({show:!1,content:e})})),e.handleArr.push(o)}else e.handleArr.push([])})),this.loginUser.webchat||(this.anywhereChat=!1)},updated:function(){var e=this,t=document.querySelectorAll(".ideaDiv");t&&this.anywhereChat&&t.forEach((function(t){if(t.innerText!==e.$tx("ecmapp.common.nothing","无")&&""!==t.innerText&&t.innerText!==e.$tx("ecmapp.common.nothing","无")&&t.attributes["staffId"]){var n=t.attributes["staffId"].nodeValue;if(n){var a=!1;e.loginUser.staffList.forEach((function(e){n===e.id&&(a=!0)})),a||(t.innerHTML+='<a href="javascript:" onclick="startChat(\''+n+'\')"><i data-v-5c359387="" class="idea-start-chat van-icon van-icon-chat-o"></i></a>')}}}))},beforeDestroy:function(){},mounted:function(){var e=this;setTimeout((function(){e.showDoNextAttach()}),0)},methods:{clickLookAll:function(e){e.forEach((function(e){e.show=!0}))},clickLookTow:function(e){e.forEach((function(e,t){t>1&&(e.show=!1)}))},setFormShowIdea:function(){var e=this;this.showIdea>0?this.showHandleIdea=!0:this.showHandleIdea=!1,this.collapseNames=[],1!==this.showIdea&&this.wfIdeaList.forEach((function(t,n){e.collapseNames.push(n)}))},onCollapseChange:function(e){this.showDoNextAttach()},showDoNextAttach:function(){var e=this,t=this.$vnode.context.attachments;t.forEach((function(t){if("DONEXT"===t.fileType){var n=t.updateBy.split("_")[1],a=document.querySelectorAll(".ideaDiv");a.forEach((function(a){if(-1!==a.innerHTML.indexOf(n)&&-1===a.querySelector(".donext-attach").innerHTML.indexOf(t.id)){var o="/apigw/"+e.$vnode.context.wfAttachUrl+"/downloadById?inline=true&attachIds="+t.id;o+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),a.querySelector(".donext-attach").innerHTML+='<a href="javascript:" onclick="todownload(\''+o+","+t.fileName+","+t.fileRealSize+'\')"><svg data-v-877131dc="" data-v-69d5d2f1="" aria-hidden="true" class="svg-icon disabled"><use data-v-877131dc="" xlink:href="#icon-attachIcon"></use></svg> </a>',a.querySelector(".donext-attach").className="donext-attach el-link el-link--primary"}}))}}))},todownload:function(){var e=document.querySelector(".donext-attachBtn").downUrl,t=document.querySelector(".donext-attachBtn").fileName,n=document.querySelector(".donext-attachBtn").fileRealSize;this.$mappUtils.downLoadAndOpenFile(this,e,t,n)},startChat:function(){var e=this,t=document.querySelector(".startChatBtn").staffId;this.$http({method:"GET",params:{staffIds:t},url:"base/organMgr/findLinkManListByStaffIds"}).then((function(t){if("success"===t.code)if(t.body.listdata[0].webchat="23234",t.body.listdata.length>0&&t.body.listdata[0].webchat){var n=encodeURIComponent(location.href.split("#")[1]),a=t.body.listdata[0].webchat;e.$router.push({path:"/chatRoom",query:{webchat:a,openType:"singleChat",from:n}})}else e.$dialog.alert({message:e.$tx("ecmapp.wflowform.notActivated","未开通即时通信功能")});else e.$dialog.alert({message:res.message})}))}}},wc=bc,xc=(a(4188),a(205),(0,Ca.A)(wc,yc,_c,!1,null,"436c37ca",null)),Mc=xc.exports,kc=function(){var e=this,t=e._self._c;return t("PopupDialog",{attrs:{showpop:e.popupDialogVisible,title:e.title,"on-cancel":e.dialogClose},on:{"update:showpop":function(t){e.popupDialogVisible=t}}},[e._l(e.outerDeputys,(function(n,a){return t("div",{key:a,staticClass:"outer-deputy-selector"},[t("van-cell-group",[t("van-field",{attrs:{label:e.$tx("ecmapp.wflowform.outwardPeople","外出人"),readonly:""},model:{value:n.travelPeople,callback:function(t){e.$set(n,"travelPeople",t)},expression:"item.travelPeople"}})],1),t("van-cell-group",[t("van-cell",{attrs:{title:e.$tx("ecmapp.wflowform.sendToMe","送本人")}},[t("van-switch",{attrs:{slot:"right-icon",size:"20px"},slot:"right-icon",model:{value:n.invalid,callback:function(t){e.$set(n,"invalid",t)},expression:"item.invalid"}})],1),n.invalid?e._e():t("van-radio-group",{model:{value:n.deputy,callback:function(t){e.$set(n,"deputy",t)},expression:"item.deputy"}},e._l(n.deputys,(function(e,n){return t("van-cell",{key:n,attrs:{title:e.deputyPeople}},[t("van-radio",{attrs:{slot:"right-icon",name:e},slot:"right-icon"})],1)})),1)],1)],1)})),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitSelectOuterDeputyForm}},[e._v("确 定")])],1)],2)},Lc=[],Sc={name:"SelectOuterDeputy",components:{},props:{},data:function(){return{title:this.$tx("ecmapp.wflowform.selectAgent","选择代理人"),popupDialogVisible:!1,outerDeputys:[],submitRoute:null,outerDeputyResolve:null}},computed:{},watch:{},created:function(){this.$bus.on("selectOuterDeputys",this.selectOuterDeputys)},beforeDestroy:function(){this.$bus.on("selectOuterDeputys",this.selectOuterDeputys)},mounted:function(){},methods:{selectOuterDeputys:function(e,t,n){e.forEach((function(e){e.travelPeople=e.travelFullName.replace(/\:/g,"\\"),e.deputys.forEach((function(e){e.deputyPeople=e.deputyFullName.replace(/\:/g,"\\")}))})),this.outerDeputys=e,this.submitRoute=t,this.outerDeputyResolve=n,this.popupDialogVisible=!0},submitSelectOuterDeputyForm:function(){var e=this;this.outerDeputys.forEach((function(t){if(!t.invalid){var n=e.$vnode.context.wfJsonData.routes[e.submitRoute.index].taskNodes;for(var a in e.submitRoute)if(e.submitRoute[a].users)for(var o=0;o<n.length;o++)n[o].name===a&&"3"!==n[o].type&&e.submitRoute[a].users.forEach((function(e){e.id===t.id?e.deputy=t.deputy:e.collapseNodes&&e.collapseNodes.forEach((function(e){e.id===t.id&&(e.deputy=t.deputy)}))}))}})),this.outerDeputyResolve({code:"success",message:this.$tx("ecmapp.wflowform.selectedOutAgent","已选择外出代理人。")}),this.handleDialogClose()},handleDialogClose:function(){this.popupDialogVisible=!1,this.outerDeputys=[],this.outerDeputyResolve=null},dialogClose:function(){this.$bus.emit("submitformDoing",!1),this.handleDialogClose()}}},Tc=Sc,Dc=(a(2400),(0,Ca.A)(Tc,kc,Lc,!1,null,"6850137e",null)),Nc=Dc.exports,Ac=function(){var e=this,t=e._self._c;return e.initiated?t("div",{staticClass:"submit-handle-container"},[e.isUdmNodes&&e.wfInstance.udmNodes&&0!==e.curTN.modifyUdmNode&&e.curTN.userAccount==e.wfInstance.creatorAccount?t("div",{staticClass:"form-slicer"}):e._e(),e.isUdmNodes&&e.wfInstance.udmNodes&&0!==e.curTN.modifyUdmNode&&e.curTN.userAccount==e.wfInstance.creatorAccount?t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell"},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"defineSteps",expression:"'defineSteps'"}],attrs:{title:"流程环节"}},[t("van-icon",{staticStyle:{"margin-top":"2px"},attrs:{name:"add-o",size:"20px"},on:{click:e.addUdmNode}})],1),e._l(e.wfInstance.udmNodes,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.name,value:n.userNames||n.orgNames||n.workgroupNames||n.jobPositionNames},on:{click:function(t){return e.editUdmNode(n)}}},[t("template",{slot:"title"},[t("span",{directives:[{name:"wfnode-lbl",rawName:"v-wfnode-lbl",value:n.i18nCode,expression:"taskNode.i18nCode"}]},[e._v(e._s(n.name))])]),t("div",{staticClass:"delete-icon"},[t("van-icon",{attrs:{color:"#1989fa",name:"edit"},on:{click:function(t){return t.stopPropagation(),e.editUdmNode(n)}}}),e.chartData?e._e():t("van-icon",{attrs:{color:0==a?"#f3a3a3":"#ee0a24",name:"cross"},on:{click:function(t){return t.stopPropagation(),e.delUdmNode(a)}}})],1)],2)}))],2):e._e(),e.wfJsonData&&e.wfJsonData.routes&&e.wfJsonData.routes.length>0?e._t("default",(function(){return[null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID?t("div",{staticClass:"form-slicer"}):e._e(),null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID?t("div",{staticClass:"input-ideas"},[t("van-cell-group",[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"writeOpinion",expression:"'writeOpinion'"}],attrs:{title:"填写意见"}})],1),t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"curUserIdea",expression:"'curUserIdea'"}],staticClass:"curIdea-filed",attrs:{label:"处理意见",type:"textarea",placeholder:"请填写处理意见",rows:"2",autosize:""},model:{value:e.submitHandle.curUserIdea,callback:function(t){e.$set(e.submitHandle,"curUserIdea",t)},expression:"submitHandle.curUserIdea"}}),t("van-cell",{staticClass:"idea-button-container",scopedSlots:e._u([{key:"default",fn:function(){return[t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"stagingComOpinion",expression:"'stagingComOpinion'"}],attrs:{type:"default",size:"small",hairline:""},on:{click:function(t){return e.saveCurTNIdea()}}},[e._v("暂存处理意见")]),t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"saveComOpinion",expression:"'saveComOpinion'"}],attrs:{type:"default",size:"small",hairline:""},on:{click:function(t){return e.saveCommonIdea()}}},[e._v("保存常用意见")]),t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectComOpinion",expression:"'selectComOpinion'"}],attrs:{type:"default",size:"small",hairline:""},on:{click:function(t){return e.applyCommonIdea()}}},[e._v("选择常用意见")])]},proxy:!0}],null,!1,2817145136)}),1===e.curTN.tnIdeaAttachment||9===e.curTN.tnIdeaAttachment?t("div",{staticClass:"van-area-field"},[t("Attachment",{ref:"attachments",attrs:{vo:e.busiData,"can-edit":1,"cur-t-n":e.curTN,"is-required":0,title:e.$tx("ecmapp.wflowform.opinionattach","意见附件"),accept:e.ideaAttachAccept,"empty-message":"","wf-attach-url":"","limit-count":1,"online-editor":"","online-file":"",attachments:e.attachments,"attachs-type":"DONEXT","show-attachments":!0}})],1):e._e()],1):e._e(),t("div",{staticClass:"form-slicer"}),t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[t("van-field",{directives:[{name:"show",rawName:"v-show",value:90===e.curTN.tnIdeaShowScope,expression:"curTN.tnIdeaShowScope === 90"},{name:"field-lbl",rawName:"v-field-lbl",value:"ideaShowScope",expression:"'ideaShowScope'"}],attrs:{label:"意见可见范围","is-link":!0,"input-align":"right",readonly:!0},on:{click:e.setIdeaShowScope}},[t("div",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.ideaShowScope,expression:"ideaShowScope"}],attrs:{slot:"input"},slot:"input"},[e._v(e._s(e.ideaShowScope))])])],1),t("div",{staticClass:"form-slicer"}),["radio"!==e.selectPathType?t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"submitPath",expression:"'submitPath'"}],attrs:{label:"提交路径","is-link":e.wfJsonData.routes.length>1,"input-align":"right",readonly:!0},on:{click:function(t){return e.initSubmitHandle("dialog")}}},[t("div",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.wfJsonData.routes[e.submitHandle.route.index].i18nCode,expression:"wfJsonData.routes[submitHandle.route.index].i18nCode"}],attrs:{slot:"input"},slot:"input"},[e._v(e._s(e.wfJsonData.routes[e.submitHandle.route.index].name))])])],1):[t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"submitPath",expression:"'submitPath'"}],attrs:{label:"提交路径","is-link":!1,"input-align":"right",readonly:!0}},[t("div",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.wfJsonData.routes[e.submitHandle.route.index].i18nCode,expression:"wfJsonData.routes[submitHandle.route.index].i18nCode"}],attrs:{slot:"input"},slot:"input"},[e._v(e._s(e.wfJsonData.routes[e.submitHandle.route.index].name))])])],1),t("van-radio-group",{model:{value:e.submitHandle.route.index,callback:function(t){e.$set(e.submitHandle.route,"index",t)},expression:"submitHandle.route.index"}},[t("van-cell-group",e._l(e.wfJsonData.routes,(function(n,a){return t("van-cell",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.wfJsonData.routes[e.submitHandle.route.index].i18nCode,expression:"wfJsonData.routes[submitHandle.route.index].i18nCode"}],attrs:{title:n.name,clickable:""},on:{click:function(t){return e.initSubmitHandle("radio")}},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-radio",{attrs:{name:a}})]},proxy:!0}],null,!0)})})),1)],1),t("div",{staticClass:"form-slicer"})]],t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[e._l(e.wfJsonData.routes[e.submitHandle.route.index].taskNodes,(function(n,a){return[n.users.some((function(e){return e.orgLevel||e.olevel||e.nLevel||"asyncLoadingUsers"===e.type}))&&n.users.some((function(e){return e.orgId||e.groupId||"asyncLoadingUsers"===e.type}))&&!n.users.some((function(e){return e.collapse}))?[0!==n.showNodeUsers&&e.submitHandle.route[n.name]?t("van-field",{directives:[{name:"wfnode-lbl",rawName:"v-wfnode-lbl",value:n.i18nCode,expression:"wfnode.i18nCode"}],key:a,attrs:{label:n.name,"is-link":e.submitHandle.route[n.name].isLink&&2!==n.showNodeUsers,"input-align":"right",readonly:!0,multiple:0!==n.todoMode&&"0"!==n.todoMode},on:{click:function(t){return e.selectWfNodeUser(n.name,n)}},model:{value:e.submitHandle.route[n.name].showUsers,callback:function(t){e.$set(e.submitHandle.route[n.name],"showUsers",t)},expression:"submitHandle.route[wfnode.name].showUsers"}}):e._e()]:[t("div",{key:a,staticClass:"selectBox"},[t("div",{staticClass:"selectBox_title"},[t("div",{directives:[{name:"wfnode-lbl",rawName:"v-wfnode-lbl",value:n.i18nCode,expression:"wfnode.i18nCode"}],staticStyle:{"font-weight":"700",color:"#333333"}},[e._v(e._s(n.name))]),t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectedPeople",expression:"'selectedPeople'"}],staticStyle:{color:"#666666"},attrs:{dataType:n.users.filter((function(e){return e.changed})).length}},[e._v("当前已选:"+e._s(n.users.filter((function(e){return e.changed})).length)+"人")])]),n.users.some((function(e){return e.collapse}))?t("div",{staticClass:"selectBox_content"},[e._l(n.users.filter((function(e){return e.collapse&&e.orgLevel})),(function(a,o){return[o<e.viewCommentsNum?t("div",{key:o,staticClass:"selectBox_content_sonall",class:a.changed?"selectBox_content_son_change":"selectBox_content_son",on:{click:function(t){return e.selectBanlFn(a,n.users,n)}}},[e._v(e._s(a.name))]):e._e()]})),e.viewCommentsNum<=e.defaultNumber&&n.users.filter((function(e){return e.collapse&&e.orgLevel})).length>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=n.users.length}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAll",expression:"'ecmapp.wflowform.viewAll'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部")]),t("van-icon",{attrs:{name:"arrow-down"}})],1):e._e(),e.viewCommentsNum>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=e.defaultNumber}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):e._e()],2):t("div",{staticClass:"selectBox_content"},[e._l(n.users,(function(a,o){return[o<e.viewCommentsNum?t("div",{key:o,staticClass:"selectBox_content_sonall",class:a.changed?"selectBox_content_son_change":"selectBox_content_son",on:{click:function(t){return e.selectBanlFn(a,n.users,n)}}},[e._v(e._s(a.name))]):e._e()]})),e.viewCommentsNum<=e.defaultNumber&&n.users.length>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=n.users.length}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAll",expression:"'ecmapp.wflowform.viewAll'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部")]),t("van-icon",{attrs:{name:"arrow-down"}})],1):e._e(),e.viewCommentsNum>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=e.defaultNumber}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):e._e()],2)])]]}))],2),e.showTimeLimit?t("div",{staticClass:"form-slicer"}):e._e(),e.showTimeLimit?t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell tnLimit-container"},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"handleLimint",expression:"'handleLimint'"}],attrs:{title:"处理时限"}}),e._l(e.wfJsonData.routes[e.submitHandle.route.index].taskNodes,(function(n,a){return[9!=n.tmLmtType&&1==n.tmLmtCanEdit?t("van-cell",{key:a,attrs:{title:n.name+"("+(1==n.tmLmtType?e.$tx("ecmapp.wflowform.byWorkDay","按工作日"):e.$tx("ecmapp.wflowform.byNaturalDay","按自然日"))+")"}},[t("van-field",{staticClass:"timiLimitInput",attrs:{type:"digit",maxlength:"2","input-align":"right"},on:{focus:e.timeLimitInputFocus,blur:e.timeLimitInputBlur},scopedSlots:e._u([{key:"label",fn:function(){},proxy:!0}],null,!0),model:{value:n.timeLimit,callback:function(t){e.$set(n,"timeLimit",t)},expression:"wfnode.timeLimit"}}),t("van-field",{staticClass:"timiLimitHourInput",attrs:{type:"digit",maxlength:"2","input-align":"right"},on:{focus:e.timeLimitInputFocus,blur:e.timeLimitInputHourBlur},scopedSlots:e._u([{key:"label",fn:function(){},proxy:!0}],null,!0),model:{value:n.timeLimitHour,callback:function(t){e.$set(n,"timeLimitHour",t)},expression:"wfnode.timeLimitHour"}})],1):e._e()]}))],2):e._e(),t("div",{staticClass:"form-slicer"}),t("van-cell-group",{class:{"van-wform-assist":e.showAssistants}},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"assistHandling",expression:"'assistHandling'"}],attrs:{title:"辅助办文"},on:{click:e.switchAssistants}},[[e._v(" "+e._s(e.showAssistants?e.$tx("ecmapp.pageBtns.fold","折叠"):e.$tx("ecmapp.pageBtns.open","展开"))+" "),t("van-icon",{class:e.showAssistants?"icon-play-up":"icon-play-down",attrs:{name:"play"}})]],2)],1),t("van-cell-group",{directives:[{name:"show",rawName:"v-show",value:e.showAssistants,expression:"showAssistants"}],staticClass:"van-wflow-operate-detail-cell"},[null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID||e.noIdeaSubmitTemplate?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"selectTemplate",expression:"'selectTemplate'"}],attrs:{title:"选择办理模板","is-link":""},on:{click:e.applySubmitTemplate}}):e._e(),null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID||e.noIdeaSubmitTemplate?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"saveTemplate",expression:"'saveTemplate'"}],attrs:{title:"保存办理模板","is-link":""},on:{click:e.saveSubmitTemplate}}):e._e(),null!==e.msgTypeOptions&&e.msgTypeOptions.length>0?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"selectReminderMethod",expression:"'selectReminderMethod'"}],attrs:{title:"选择提醒方式",value:e.msgType,"is-link":""},on:{click:e.selectMsgType}}):e._e(),null===e.msgTypeOptions?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"smsNotice",expression:"'smsNotice'"}],attrs:{title:"短信通知"}},[t("van-switch",{attrs:{size:"20px"},on:{change:e.assistantsChange},model:{value:e.askSMS,callback:function(t){e.askSMS=t},expression:"askSMS"}})],1):e._e(),e.disabledKeepConcern?e._e():t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stayTuned",expression:"'stayTuned'"}],attrs:{title:"保持关注"}},[t("van-switch",{attrs:{size:"20px"},on:{change:e.assistantsChange},model:{value:e.keepConcern,callback:function(t){e.keepConcern=t},expression:"keepConcern"}})],1)],1),e._t("shortcutButton")]})):e._e(),e.popupDialogVisible?t("PopupDialog",{attrs:{showpop:e.popupDialogVisible,title:e.popupTitle,"on-cancel":e.closePopupDialog},on:{"update:showpop":function(t){e.popupDialogVisible=t}}},[t("div",{staticClass:"popup-content"},[""!=e.popupTitle?t("Basicform",{attrs:{"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("busi-form",{attrs:{vo:n?n.vo:e.formVo,"can-edit":1,"module-info":e.submitTemplateModuleInfo}})]}}],null,!1,1637533502)}):e._e()],1)]):e._e(),e.wfNodeDialogVisible?t("PopupDialog",{attrs:{showpop:e.wfNodeDialogVisible,title:e.$tx("ecmapp.wflowform.stepSetting","环节设置"),"on-cancel":e.closePopupDialog},on:{"update:showpop":function(t){e.wfNodeDialogVisible=t}}},[t("WfTaskNode",{attrs:{"task-node":e.udmNode,"idea-lables":e.wfJsonData.ideaLables}})],1):e._e()],2):e._e()},Yc=[],Cc=function(){var e=this,t=e._self._c;return t("div",[t("van-cell-group",[t("div",{staticClass:"van-input-field"},[t("validation-provider",{staticClass:"cell_item",attrs:{name:e.$tx("ecmapp.wflowform.fields.linkName","环节名称"),rules:{required:!0}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"linkName",expression:"'linkName'"}],attrs:{readonly:!e.canModify,label:"环节名称",placeholder:"请输入",error:void 0!==a&&void 0!==a[0]||e.iserror,"input-align":"right",maxlength:20},model:{value:e.taskNode.name,callback:function(t){e.$set(e.taskNode,"name",t)},expression:"taskNode.name"}})]}}])})],1),t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecmapp.wflowform.fields.taskType","任务类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"taskType",expression:"'taskType'"}],attrs:{disabled:!e.canModify,label:"任务类型",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("任务类型","todoMode")}},model:{value:e.todoMode,callback:function(t){e.todoMode=t},expression:"todoMode"}})]}}])})],1),t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecmapp.wflowform.fields.handleMethod","处理人选择方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"handleMethod",expression:"'handleMethod'"}],attrs:{label:"处理人选择方式",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("处理人选择方式","selectType")}},model:{value:e.selectType,callback:function(t){e.selectType=t},expression:"selectType"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.taskNode.selectType||9==e.taskNode.selectType,expression:"taskNode.selectType == 0 || taskNode.selectType == 9"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"组织机构级别",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"组织机构级别",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("组织机构级别","orgLevel")}},model:{value:e.orgLevel,callback:function(t){e.orgLevel=t},expression:"orgLevel"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:(0==e.taskNode.selectType||9==e.taskNode.selectType)&&1!=e.taskNode.orgLevel&&5!=e.taskNode.orgLevel,expression:"(taskNode.selectType == 0 || taskNode.selectType == 9) && taskNode.orgLevel != 1 && taskNode.orgLevel != 5"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"机构筛选方式",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"机构筛选方式",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("机构筛选方式","orgStaffFilterType")}},model:{value:e.orgStaffFilterType,callback:function(t){e.orgStaffFilterType=t},expression:"orgStaffFilterType"}})]}}])})],1),0==e.taskNode.selectType&&1==e.taskNode.orgStaffFilterType||1==e.taskNode.selectType||3==e.taskNode.selectType||7==e.taskNode.selectType?t("div",{staticClass:"van-input-field"},[3==e.taskNode.selectType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdPersonal",expression:"'zdPersonal'"}],attrs:{label:"处理人指定人员",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("staff","userNames")}},model:{value:e.taskNode.userNames,callback:function(t){e.$set(e.taskNode,"userNames",t)},expression:"taskNode.userNames"}}):e._e(),0==e.taskNode.selectType&&1==e.taskNode.orgStaffFilterType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdDept",expression:"'zdDept'"}],attrs:{label:"处理人指定部门",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("suborg","orgNames")}},model:{value:e.taskNode.orgNames,callback:function(t){e.$set(e.taskNode,"orgNames",t)},expression:"taskNode.orgNames"}}):e._e(),1==e.taskNode.selectType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdGroup",expression:"'zdGroup'"}],attrs:{label:"处理人指定群组",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("workgroup","workgroupNames")}},model:{value:e.taskNode.workgroupNames,callback:function(t){e.$set(e.taskNode,"workgroupNames",t)},expression:"taskNode.workgroupNames"}}):e._e(),7==e.taskNode.selectType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdJobPostion",expression:"'zdJobPostion'"}],attrs:{label:"处理人指定岗位",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("jobPosition","jopPositionNames")}},model:{value:e.taskNode.jopPositionNames,callback:function(t){e.$set(e.taskNode,"jopPositionNames",t)},expression:"taskNode.jopPositionNames"}}):e._e()],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.taskNode.selectType||6==e.taskNode.selectType,expression:"taskNode.selectType == 0 || taskNode.selectType == 6"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"机构参与人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"机构参与人",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("机构参与人","orgStaffType")}},model:{value:e.orgStaffType,callback:function(t){e.orgStaffType=t},expression:"orgStaffType"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:9==e.taskNode.selectType,expression:"taskNode.selectType == 9"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"处理人职级",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"处理人职级",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("处理人职级","orgStaffType")}},model:{value:e.orgStaffType,callback:function(t){e.orgStaffType=t},expression:"orgStaffType"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2==e.taskNode.selectType,expression:"taskNode.selectType == 2"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"指定历史节点",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"指定历史节点",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("指定历史节点","historyNodeId")}},model:{value:e.taskNode.historyNodeId,callback:function(t){e.$set(e.taskNode,"historyNodeId",t)},expression:"taskNode.historyNodeId"}})]}}])})],1),t("div",{staticClass:"van-input-field"},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"editPermissions",expression:"'editPermissions'"}],attrs:{center:"",title:"编辑权限"},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-switch",{attrs:{disabled:!e.canModify,"active-value":1,"inactive-value":0,size:"24"},model:{value:e.taskNode.canEdit,callback:function(t){e.$set(e.taskNode,"canEdit",t)},expression:"taskNode.canEdit"}})]},proxy:!0}])})],1),t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecmapp.wflowform.fields.opinionLabel","处理意见标签"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"opinionLabel",expression:"'opinionLabel'"}],attrs:{label:"处理意见标签",placeholder:"请选择","input-align":"right","is-link":e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("处理意见标签","ideaLable")}},model:{value:e.ideaLable,callback:function(t){e.ideaLable=t},expression:"ideaLable"}})]}}])})],1),""!=e.taskNode.ideaLable&&"无"!=e.taskNode.ideaLable?t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"是否需要意见附件",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"是否需要意见附件",placeholder:"请选择","input-align":"right","is-link":e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("是否需要意见附件","isIdeaAttachment")}},model:{value:e.isIdeaAttachment,callback:function(t){e.isIdeaAttachment=t},expression:"isIdeaAttachment"}})]}}],null,!1,2181530220)})],1):e._e(),""!=e.taskNode.ideaLable&&"无"!=e.taskNode.ideaLable?t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"是否可以退回",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"是否可以退回",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("是否可以退回","returnHistoryTN")}},model:{value:e.returnHistoryTN,callback:function(t){e.returnHistoryTN=t},expression:"returnHistoryTN"}})]}}],null,!1,4264136526)})],1):e._e()]),t("FooterButtonGroup",[1==e.canModify?[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{square:""},on:{click:e.closeDialog}},[e._v("取 消")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"info",square:""},on:{click:e.submitForm}},[e._v("确 定")])]:[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{type:"info",square:""},on:{click:e.closeDialog}},[e._v("取 消")])]],2)],1)},Oc=[],Ic={name:"WfTaskNode",components:{},props:{taskNode:{type:Object,default:function(){return{}}},ideaLables:{type:String,default:""}},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",forceUpdate:!1,dialogFormVisible:!0,canModify:null,todoModeOptions:[{value:0,text:this.$tx("ecmapp.wflowform.singlePerson","单人")},{value:1,text:this.$tx("ecmapp.wflowform.multiplayerParallel","多人并行")},{value:2,text:this.$tx("ecmapp.wflowform.multiPersonSignature","多人会签")},{value:3,text:this.$tx("ecmapp.wflowform.multiplayerSerial","多人串行")},{value:4,text:this.$tx("ecmapp.wflowform.multiplayerCompetition","多人竞争")},{value:5,text:this.$tx("ecmapp.wflowform.multiPersonReading","多人阅文")}],selectTypeOptions:[{value:0,text:this.$tx("ecmapp.Wflowform.byDepartment","按组织机构")},{value:7,text:this.$tx("ecmapp.Wflowform.byJobPosition","按工作岗位")},{value:1,text:this.$tx("ecmapp.Wflowform.byWorkgroup","按工作群组")},{value:9,text:this.$tx("ecmapp.Wflowform.byJobRank","按处理人职级")},{value:2,text:this.$tx("ecmapp.Wflowform.byHistoryTNUser","历史节点处理人")},{value:3,text:this.$tx("ecmapp.Wflowform.designatedPersonnel","直接指定人员")}],orgLevelOptions:[{value:1,text:"一级(公司级)"},{value:2,text:"二级(部门级)"},{value:3,text:"三级(科室级)"},{value:4,text:"四级(班组级)"}],isIdeaAttachmentOptions:[{value:0,text:"不需要"},{value:1,text:"需要1个"},{value:2,text:"可选1个"},{value:8,text:"至少1个"},{value:9,text:"可选多个"}],returnHistoryTNOptions:[{value:0,text:"不需要退回"},{value:1,text:"退回到上一节点"},{value:2,text:"退回到发起节点"}],curNodeName:"",todoMode:"单人",selectType:"直接指定人员",orgLevel:"",orgStaffFilterType:"",orgStaffType:"",ideaLable:"",isIdeaAttachment:"",returnHistoryTN:""}},computed:{ideaLableOptions:function(){var e=[];return this.ideaLables.split(",").forEach((function(t){t&&e.push({value:t,text:t})})),0==e.length&&this.taskNode.name&&e.push({value:"curNodeName",text:this.taskNode.name+"意见"}),e.push({value:"无",text:"不需要"}),e},orgStaffFilterTypeOptions:function(){var e=[{value:0,text:"不筛选"}];return 2===this.taskNode.orgLevel?(e.push({value:1,text:"指定部门"}),e.push({value:2,text:"当前用户所在部门"}),e.push({value:3,text:"拟稿用户所在部门"})):3===this.taskNode.orgLevel?(e[0].text="部门内不筛选",e.push({value:5,text:"所有不筛选"}),e.push({value:1,text:"指定科室"}),e.push({value:2,text:"当前用户所在科室"}),e.push({value:3,text:"拟稿用户所在科室"})):4===this.taskNode.orgLevel&&(e[0].text="科室内不筛选",e.push({value:1,text:"指定班组"}),e.push({value:2,text:"当前用户所在班组"}),e.push({value:3,text:"拟稿用户所在班组"})),e},orgStaffTypeOptions:function(){return 9===this.taskNode.selectType?[{value:5,text:"不大于1个职级"},{value:6,text:"不大于2个职级"},{value:7,text:"不大于3个职级"},{value:8,text:"不大于4个职级"},{value:9,text:"不大于5个职级"}]:[{value:0,text:"主负责人"},{value:1,text:"主、副负责人"},{value:2,text:"副负责人"},{value:3,text:"全体人员"},{value:4,text:"普通(非负责人)人员"}]},historyNodeIdOptions:function(){for(var e=[],t=this.$vnode.context.wfInstance.udmNodes,n=0;n<t.length;n++)t[n].uuid!=this.taskNode.uuid&&e.push({value:t[n].name,text:t[n].name});return e}},watch:{taskNode:{handler:function(e,t){var n=this;void 0===this.taskNode.nodeType&&(this.taskNode.nodeType=1),void 0!==this.taskNode.selectType&&this.selectTypeOptions.forEach((function(e){e.value===n.taskNode.selectType&&(n.selectType=e.text)})),void 0!==this.taskNode.todoMode&&(this.todoMode=this.todoModeOptions[this.taskNode.todoMode].text),void 0!==this.taskNode.orgLevel&&(this.orgLevel=this.orgLevelOptions[this.taskNode.orgLevel-1].text),void 0!==this.taskNode.orgStaffFilterType&&this.orgStaffFilterTypeOptions.forEach((function(e){e.value===n.taskNode.orgStaffFilterType&&(n.orgStaffFilterType=e.text)})),void 0!==this.taskNode.orgStaffType&&(this.taskNode.orgStaffType>=5?this.orgStaffType=this.orgStaffTypeOptions[this.taskNode.orgStaffType-5].text:this.orgStaffType=this.orgStaffTypeOptions[this.taskNode.orgStaffType].text),void 0!==this.taskNode.ideaLable&&this.ideaLableOptions.forEach((function(e){e.value===n.taskNode.ideaLable&&(n.ideaLable=e.text)})),void 0!==this.taskNode.isIdeaAttachment&&this.isIdeaAttachmentOptions.forEach((function(e){e.value===n.taskNode.isIdeaAttachment&&(n.isIdeaAttachment=e.text)})),void 0!==this.taskNode.returnHistoryTN&&(this.returnHistoryTN=this.returnHistoryTNOptions[this.taskNode.returnHistoryTN].text)},deep:!0,immediate:!0}},created:function(){void 0===this.taskNode.selectType&&(this.taskNode.selectType=3),void 0===this.taskNode.orgLevel&&(this.taskNode.orgLevel=2),void 0===this.taskNode.orgStaffFilterType&&(this.taskNode.orgStaffFilterType=2),void 0===this.taskNode.orgStaffType&&(this.taskNode.orgStaffType=3),this.taskNode.ideaLable||(this.taskNode.ideaLable="无"),void 0===this.taskNode.isIdeaAttachment&&(this.taskNode.isIdeaAttachment=0),1===this.taskNode.status&&(this.curNodeName=this.taskNode.name),this.taskNode.returnHistoryTN||(this.taskNode.returnHistoryTN=0)},beforeDestroy:function(){},mounted:function(){var e=this;this.taskNode.startNode&&this.selectTypeOptions.splice(4,1),this.$vnode.context.curTN.tnNodeID?this.canModify=1:this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.$vnode.context.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(t){if("success"===t.code){var n=t.body.listdata.filter((function(t){return t.nodeName===e.taskNode.name}));n.length>0?e.canModify=0:e.canModify=1}else e.canModify=0,e.$dialog.alert({message:t.message})}))},methods:{selectItem:function(e,t){var n=this;if(!this.taskNode.startNode){var a=this.$tx("common.plChoose","请选择")+e;this.$bus.emit("openListitemDialog",a,this[t+"Options"],(function(e){"success"===e.code&&(n.$set(n.taskNode,t,e.value.value),n.$forceUpdate())}),this.taskNode[t],!1,"bottomDialog")}},openSelectDialog:function(e,t){var n=this;if(!this.taskNode.startNode){var a={selectDialog:e,multiple:!0,"org-level":"2"},o=this.$tx("common.plChoose","请选择");this.$bus.emit("openTreeDialog",o,a,null,(function(t){if("success"===t.code){var a="onSelect"+e.replace(e[0],e[0].toUpperCase())+"Completed";n[a](t.value,{name:n.model})}}),this.taskNode[t])}},onSelectStaffCompleted:function(e,t){var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",n),this.$set(this.taskNode,"orgNames",""),this.$set(this.taskNode,"workgroupNames",""),this.$set(this.taskNode,"jobPositionNames","")},onSelectSuborgCompleted:function(e,t){e=JSON.parse(JSON.stringify(e));var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name,e.orgId=e.id,delete e.id})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",""),this.$set(this.taskNode,"orgNames",n),this.$set(this.taskNode,"workgroupNames",""),this.$set(this.taskNode,"jobPositionNames","")},onSelectWorkgroupCompleted:function(e,t){e=JSON.parse(JSON.stringify(e));var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name,e.workgroupId=e.id,delete e.id})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",""),this.$set(this.taskNode,"orgNames",""),this.$set(this.taskNode,"workgroupNames",n),this.$set(this.taskNode,"jobPositionNames","")},onSelectJobPositionCompleted:function(e,t){e=JSON.parse(JSON.stringify(e));var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name,e.jobPositionId=e.id,delete e.id})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",""),this.$set(this.taskNode,"orgNames",""),this.$set(this.taskNode,"workgroupNames",""),this.$set(this.taskNode,"jobPositionNames",n)},submitForm:function(){var e=this;this.formValidate((function(){var t=JSON.parse(JSON.stringify(e.taskNode));if(t.tmLmtType="9",t.type=1,5===t.todoMode&&(t.type=3),0==t.selectType){var n={0:"主负责人",1:"主、副负责人",2:"副负责人",3:"全体人员",4:"普通(非负责人)人员"},a="";1==t.orgLevel?a="公司"+n[t.orgStaffType+""]:(0==t.orgStaffFilterType?a=2==curNode.orgLevel?"二级部门":3==curNode.orgLevel?"部门内科室":"科室内班组":1==t.orgStaffFilterType?a=t.orgNames:2==t.orgStaffFilterType?a="当前用户所在"+(2==t.orgLevel?"部门":3==t.orgLevel?"科室":"班组"):3==t.orgStaffFilterType?a="拟稿用户所在"+(2==t.orgLevel?"部门":3==t.orgLevel?"科室":"班组"):5==t.orgStaffFilterType&&(a="所有科室"),a+=n[t.orgStaffType+""]),t.selectRule=a}else 2==t.selectType?t.selectRule=t.historyTNName+"节点处理人":9==t.selectType&&(t.selectRule="不大于"+(t.orgStaffType-4)+"个职级");var o=e.$vnode.context.wfInstance.passenger.wfdNodeList;o&&o.forEach((function(e){e.processType===t.todoMode&&e.nodeType===t.type&&(t.id=e.id)})),1!==t.status?(t.status=1,t.uuid=e.uuid(),e.$vnode.context.wfInstance.udmNodes.push(t)):e.$vnode.context.wfInstance.udmNodes.forEach((function(n,a){n.uuid===t.uuid&&(e.$vnode.context.wfInstance.udmNodes.splice(a,1,t),e.$vnode.context.curTN.tnNodeName===e.curNodeName&&(e.$vnode.context.curTN.tnNodeName=t.name,e.$vnode.context.curTN.tnCanEdit=t.canEdit,5===t.todoMode?e.$vnode.context.curTN.tnTaskType=3:e.$vnode.context.curTN.tnTaskType=1,e.$vnode.context.curTN.tnToDoMode=t.todoMode,"无"===t.ideaLable?(e.$vnode.context.curTN.tnIdeaLabelID="",e.$vnode.context.curTN.tnIdeaLabelName=""):(e.$vnode.context.curTN.tnIdeaLabelID="udm_"+t.ideaLable,e.$vnode.context.curTN.tnIdeaLabelName=t.ideaLable,e.$vnode.context.curTN.tnIdeaIsMust=1)))}));var i={wfInstance:JSON.stringify(e.$vnode.context.wfInstance),curTN:JSON.stringify(e.$vnode.context.curTN)};e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:Wn().stringify(i),params:e.$vnode.context.wfParams,url:"workflow/wfInstance/getUdmNodeUsers"}).then((function(n){"success"===n.code?(e.$set(e.$vnode.context.wfInstance.passenger,"udmNodeUsers",n.body.udmNodeUsers),e.$vnode.context.wfInstance.udmNodes.forEach((function(n,a){n.uuid===t.uuid&&e.$vnode.context.wfInstance.udmNodes.splice(a,1,t)})),e.closeDialog()):e.$alert(n.message,"操作提示",{type:"error"})}))}))},closeDialog:function(){this.$vnode.context.wfNodeDialogVisible=!1},uuid:function(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="",e.join("")}}},Ec=Ic,$c=(0,Ca.A)(Ec,Cc,Oc,!1,null,"8e60a7d4",null),Pc=$c.exports;function jc(e){return jc="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},jc(e)}var Fc=a(5093),Hc={name:"SubmitHandle",components:{WfTaskNode:Pc},props:{curTN:{type:Object,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},wfJsonData:{type:Object,default:function(){return{}}},submitHandle:{type:Object,default:function(){return{}}},commonIdeaList:{type:Array,default:function(){return[]}},commonIdeaFillMode:{type:String,default:function(){return"replace"}},submitTemplateList:{type:Array,default:function(){return[]}},ideaAttachAccept:{type:String,default:".doc,.docx,.xls,.xlsx,.pdf,.ppt,.pptx,.jpg,.png,.zip,.rar"},noIdeaSubmitTemplate:{type:Boolean,default:!1},showOverPath:{type:Boolean,default:!0},selectPathType:{type:String,default:"dialog"},disabledKeepConcern:{type:Boolean,default:!1},shortcutButton:{type:Boolean,default:!1}},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",initiated:!1,wfNodeUser:{},submitTemplate:{},curUserIdea:"",ideaShowScope:null,ideaShowScopeList:[{text:"所有人可见",value:0},{text:"仅本人及拟稿部门可见",value:1},{text:"仅本人及分管部门可见",value:8},{text:"仅填写意见部门可见",value:3},{text:"仅填写意见部门及分管领导可见",value:9}],formVo:null,showTimeLimit:!1,showAssistants:!1,askSMS:!1,keepConcern:!1,popupDialogVisible:!1,commonIdeaModuleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/usersetting/commonSuggest/form.html",addNewUrl:"usersetting/commonSuggest/addNew",insertUrl:"usersetting/commonSuggest/insert",moduleCode:"commonSuggest"},submitTemplateModuleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/usersetting/submitTemplate/form.html",addNewUrl:"usersetting/submitTemplate/addNew",insertUrl:"usersetting/submitTemplate/insert",moduleCode:"submitTemplate"},busiformBtns:[],udmNode:null,wfNodeDialogVisible:null,popupTitle:"",showOverPatnRow:!0,msgTypeOptions:null,msgType:"",timer:"",isUdmNodes:!1,attachments:[],busiData:{},selectChangeList:[],marginRight:0,defaultNumber:8,viewCommentsNum:8,selectCount:0}},computed:{chartData:function(){return this.wfInstance.passenger.chartData}},watch:{wfJsonData:{handler:function(e,t){this.commonIdeaFillMode=this.$vnode.context.commonIdeaFillMode||this.$vnode.context.$vnode.context.commonIdeaFillMode||this.commonIdeaFillMode,this.submitHandleValChange()},deep:!0,immediate:!0},wfInstance:{handler:function(e,t){var n=this;this.wfInstance.udmNodes&&"[]"!==this.wfInstance.udmNodes&&"string"===typeof this.wfInstance.udmNodes&&(this.wfInstance.udmNodes=JSON.parse(this.wfInstance.udmNodes)),this.wfInstance.udmNodes&&"object"===jc(this.wfInstance.udmNodes)&&null!==this.curTN.tnNodeID&&(this.wfJsonData.routes=n.$wfEngine.setUdmCustomRoutes(n),this.initSubmitHandle()),this.$forceUpdate(),this.submitHandleValChange()},immediate:!0,deep:!0},submitHandle:{handler:function(e,t){this.submitHandleValChange(),this.viewCommentsNum=this.defaultNumber,this.selectChangeList=[]},deep:!0,immediate:!0}},created:function(){this.$bus.on("initSubmitHandle",this.initSubmitHandle)},beforeDestroy:function(){this.$bus.off("initSubmitHandle",this.initSubmitHandle),clearInterval(this.timer)},mounted:function(){var e=this;this.msgTypeOptions=this.wfInstance.passenger.msgTypeOptions||null,this.initSubmitHandle(),this.curUserIdea=this.submitHandle.curUserIdea,this.timer=setInterval((function(){e.submitHandle.curUserIdea!==e.curUserIdea&&""!==e.submitHandle.curUserIdea&&(e.saveCurTNIdea("AutoSave"),e.curUserIdea=e.submitHandle.curUserIdea)}),3e5),this.$vnode.context.attachments?(this.attachments=this.$vnode.context.attachments,this.busiData=this.$vnode.context.vo):(this.attachments=this.$vnode.context.$vnode.context.attachments,this.busiData=this.$vnode.context.$vnode.context.vo)},methods:{setMargin:function(){var e=Math.floor((screen.width-20)/93),t=screen.width-20-93*e;this.defaultNumber=2*e,this.viewCommentsNum=2*e,this.marginRight=t/e/2},selectBanlFn:function(e,t,n){var a=this;if(e.changed){if("1"===n.autoCheckedAll&&2===n.showNodeUsers)return;t.length>1||this.wfJsonData.routes[this.submitHandle.route.index].taskNodes.length>1?e.changed=!1:e.changed=!0}else e.changed=!0;if(0===this.selectCount?e.selectedIndex=0:e.selectedIndex=this.selectChangeList[this.selectChangeList.length-1].selectedIndex+1,0!==n.todoMode&&"0"!==n.todoMode||t.forEach((function(t){t.id!==e.id&&(t.changed=!1)})),this.selectChangeList=t.filter((function(e){return e.changed})),"1"===n.type&&"3"===n.todoMode&&this.selectChangeList.sort((function(e,t){return e.selectedIndex-t.selectedIndex})),console.log("this.selectChangeList====>",this.selectChangeList),this.selectCount=this.selectChangeList.length,this.$forceUpdate(),e.collapse){this.selectChangeList.forEach((function(e){e.collapseNodes=[],t.forEach((function(t){e.id===t.groupId&&e.collapseNodes.push(t)}))}));var o=n.name,i="";1===this.selectChangeList.length?i=this.selectChangeList[0].name:2===this.selectChangeList.length?i=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name:this.selectChangeList.length>2&&(i=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name+"等"+this.selectChangeList.length+"人"),this.submitHandle.route[o]||(this.submitHandle.route[o]={}),this.submitHandle.route[o].users=this.selectChangeList,this.submitHandle.route[o].showUsers=i,this.$forceUpdate(),this.$nextTick((function(){a.submitHandleValChange()}))}else{var r=n.name,s="";1===this.selectChangeList.length?s=this.selectChangeList[0].name:2===this.selectChangeList.length?s=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name:this.selectChangeList.length>2&&(s=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name+"等"+this.selectChangeList.length+"人"),this.submitHandle.route[r]||(this.submitHandle.route[r]={}),this.submitHandle.route[r].users=this.selectChangeList,this.submitHandle.route[r].showUsers=s,this.$forceUpdate(),this.$nextTick((function(){a.submitHandleValChange()}))}},submitHandleValChange:function(){this.$bus.emit("submitHandleValChange",this)},initSubmitHandle:function(e){var t=this,n=this;if(n.showTimeLimit=!1,n.isUdmNodes=n.wfInstance.passenger.isUdmNodes,this.wfJsonData.routes&&this.wfJsonData.routes.length>0){if(new Promise((function(a,o){"dialog"===e?(t.wfJsonData.routes.forEach((function(e,t){e.index=t,e.text=e.name})),t.$bus.emit("openListitemDialog",t.$tx("ecmapp.wflowform.pSubmitPath","请选择提交路径"),t.wfJsonData.routes.filter((function(e){return 16!==e.type&&"16"!==e.type})),(function(e){"success"===e.code?(n.initiated=!1,a(e.value.index)):o("cancel")}),t.submitHandle.route.index)):a("radio"===e||"QuickSubmit"===e?n.submitHandle.route.index:0)})).then((function(e){1!==t.wfJsonData.routes.length||"4"!==t.wfJsonData.routes[0].type&&"7"!==t.wfJsonData.routes[0].type||(t.showOverPath?t.showOverPatnRow=!0:t.showOverPatnRow=!1),n.submitHandle.route.index=e,n.selectCount=0,n.selectChangeList=[];for(var a=t.wfJsonData.routes[t.submitHandle.route.index],o=function(e){var n=a.taskNodes[e];if(t.submitHandle.route[n.name]={users:[],showUsers:"",isLink:!0},null===n.users&&(n.users=[]),"1"===n.autoCheckedAll&&("3"===n.type||"0"===n.todoMode||"1"===n.todoMode||"3"===n.todoMode||"4"===n.todoMode||"5"===n.todoMode||"2"===n.todoMode&&"0"===n.oneByOne))if(n.users.length>0){var o=[];"0"===n.todoMode?1===n.users.length&&o.push(n.users[0]):n.users.forEach((function(e){e.personId&&o.push(e)}));var r="";1===o.length?r=o[0].name:2===o.length?r=o[0].name+"、"+o[1].name:o.length>2&&(r=o[0].name+"、"+o[1].name+"等"+o.length+"人"),t.submitHandle.route[n.name]={users:o,showUsers:r,isLink:!0}}else a.taskNodes.splice(e--,1);else{n.autoCheckedAll="0";var s=t.Cookies.get("route-wfuser-"+t.curTN.tnID+"-"+n.id);if(void 0!==s&&null!==s){var l=[];n.users.forEach((function(e){-1!==s.indexOf(e.id)&&l.push(e)}));var d="";1===l.length?d=l[0].name:2===l.length?d=l[0].name+"、"+l[1].name:l.length>2&&(d=l[0].name+"、"+l[1].name+"等"+l.length+"人"),t.submitHandle.route[n.name]={users:l,showUsers:d,isLink:!0}}}1!==a.taskNodes.length&&-1===a.mustNextTN.indexOf(n.name)||1!==n.users.length||"asyncLoadingUsers"===n.users[0].type||(t.submitHandle.route[n.name]={users:n.users,showUsers:n.users[0].name,isLink:!1}),t.submitHandle.route[n.name].users&&t.submitHandle.route[n.name].users.forEach((function(e){e.changed=!1,t.selectBanlFn(e,n.users,n)})),9!==parseInt(n.tmLmtType)&&1===parseInt(n.tmLmtCanEdit)&&(t.showTimeLimit=!0),i=e},i=0;i<a.taskNodes.length;i++)o(i);t.initiated=!0,t.$forceUpdate(),t.$nextTick((function(){var e=t.$el.querySelectorAll(".timiLimitInput .van-field__body");e.forEach((function(e){e.setAttribute("value-suffix","天")}));var n=t.$el.querySelectorAll(".timiLimitHourInput .van-field__body");n.forEach((function(e){e.setAttribute("value-suffix","小时")}))}))})),this.submitHandle.askMsgTypes){this.msgType="";var a=this.submitHandle.askMsgTypes.split(",");this.wfInstance.passenger.msgTypeOptions.forEach((function(e){-1!==a.indexOf(e.value+"")&&(t.msgType&&(t.msgType+="、"),t.msgType+=e.text)}))}}else if(this.wfInstance.udmNodes&&"[]"!==this.wfInstance.udmNodes)"string"===typeof this.wfInstance.udmNodes&&(this.wfInstance.udmNodes=JSON.parse(this.wfInstance.udmNodes)),this.initiated=!0,this.$forceUpdate();else if(this.wfInstance.passenger.udmjysp){var o=[{id:this.curTN.staffID}],i={todoMode:0,canEdit:1,status:1,name:this.curTN.tnNodeName,userNames:this.curTN.userName,users:o,id:this.curTN.tnNodeID,uuid:this.curTN.tnNodeID,startNode:!0,ideaLable:""};this.wfInstance.udmNodes=[i]}},timeLimitInputFocus:function(e){e.srcElement.parentElement.setAttribute("value-suffix","")},timeLimitInputBlur:function(e){e.srcElement.parentElement.setAttribute("value-suffix","天")},timeLimitInputHourBlur:function(e){e.srcElement.parentElement.setAttribute("value-suffix","小时")},saveCurTNIdea:function(e){null!==this.submitHandle.curUserIdea&&""!==this.submitHandle.curUserIdea.trim()?(e||(e="Save"),this.$vnode.context.btnSubmitClick?this.$vnode.context.btnSubmitClick(e):this.$vnode.context.$vnode.context.btnSubmitClick&&this.$vnode.context.$vnode.context.btnSubmitClick(e)):this.$dialog.alert({message:this.$tx("ecmapp.common.pWriteOpinion","请填写处理意见。"),type:"warning"})},saveCommonIdea:function(){var e=this;null!==this.submitHandle.curUserIdea&&""!==this.submitHandle.curUserIdea.trim()?(this.formTitle=this.$tx("ecmapp.wflowform.personalOpinions","个人常用意见"),this.popupTitle=this.$tx("ecmapp.wflowform.saveComOpinion","保存常用意见"),this.$options.components["BusiForm"]=this.$wfEngine.loadBusiform(this,this.commonIdeaModuleInfo.formTemplate,"M"),this.popupDialogVisible=!0,setTimeout((function(){e.$bus.emit("openBusiform",e.commonIdeaModuleInfo,null,1,e.closePopupDialog)}),0)):this.$dialog.alert({message:this.$tx("ecmapp.common.pWriteOpinion","请填写处理意见。"),type:"warning"})},applyCommonIdea:function(){var e=this;if(0!==this.commonIdeaList.length){for(var t=[],n=0;n<this.commonIdeaList.length;n++)t.push({value:n,text:this.commonIdeaList[n]});this.$bus.emit("openListitemDialog",this.$tx("ecmapp.wflowform.selectComOpinion","选择常用意见"),t,(function(t){if("success"===t.code){var n=t.value.text;void 0===e.submitHandle.curUserIdea||null===e.submitHandle.curUserIdea||""===e.submitHandle.curUserIdea.trim()?(e.submitHandle.curUserIdea=n,e.$forceUpdate()):"append"===e.commonIdeaFillMode?(e.submitHandle.curUserIdea+=n,e.$forceUpdate()):e.$dialog.confirm({message:e.$tx("ecmapp.wflowform.alreadlyHave","意见已存在,是否确认使用常用意见?")}).then((function(){e.submitHandle.curUserIdea=n,e.$forceUpdate()}))}}),null,!1,"bottomDialog")}else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.noComOpinion","暂无常用意见。"),type:"warning"})},saveSubmitTemplate:function(){var e=this;if(!this.curTN.tnIdeaLabelID||1!==this.curTN.tnIdeaIsMust||null!==this.submitHandle.curUserIdea&&""!==this.submitHandle.curUserIdea.trim()){var t=this.$wfEngine.checkSubmitHandle(this,"Submit");"success"===t.code?(this.popupTitle=this.$tx("ecmapp.wflowform.fields.saveTemplate","保存办理模板"),this.$options.components["BusiForm"]=this.$wfEngine.loadBusiform(this,this.submitTemplateModuleInfo.formTemplate,"M"),this.popupDialogVisible=!0,setTimeout((function(){e.$bus.emit("openBusiform",e.submitTemplateModuleInfo,null,1,e.closePopupDialog)}),0)):this.$dialog.alert({message:t.message})}else this.$dialog.alert({message:this.$tx("ecmapp.common.pWriteOpinion","请填写处理意见。"),type:"warning"})},onBasicFormBeforeOpen:function(e,t,n){if(console.log(e.moduleInfo.moduleCode+" form before open"),"commonSuggest"===e.moduleInfo.moduleCode)e.$set(t,"commonIdea",this.submitHandle.curUserIdea),e.$set(t,"wfType",1),e.$set(t,"updateTime",Fc(new Date).format("YYYY-MM-DD HH:mm:ss"));else if("submitTemplate"===e.moduleInfo.moduleCode){e.$set(t,"ownerStaffId",this.curTN.staffID),this.curTN.tnIdeaLabelID&&e.$set(t,"submitIdea",this.submitHandle.curUserIdea);var a=JSON.parse(JSON.stringify(this.submitHandle));a.submitRoute=JSON.parse(JSON.stringify(this.wfJsonData.routes[this.submitHandle.route.index])),delete a.submitRoute.taskNodes,delete a.needCheckOuterDeputy,e.$set(t,"submitJsondata",a),e.$set(t,"submitRoute",this.wfJsonData.routes[this.submitHandle.route.index].name),e.$set(t,"templateName",this.wfJsonData.routes[this.submitHandle.route.index].name)}this.formVo=t,n.resolve(!0)},onBasicFormSubmited:function(e,t){if(console.log(e.moduleInfo.moduleCode+" form submited"),this.formTitle="",this.formVo=null,"commonSuggest"===e.moduleInfo.moduleCode)this.commonIdeaList.unshift(e.vo.commonIdea);else if("submitTemplate"===e.moduleInfo.moduleCode){var n=e.vo;delete n.passenger,n.submitJsondata=JSON.stringify(n.submitJsondata);for(var a=!1,o=0;o<this.submitTemplateList.length;o++)if(this.submitTemplateList[o].templateName===n.templateName){this.submitTemplateList[o]=n,a=!0;break}a||this.submitTemplateList.unshift(n)}},closePopupDialog:function(){this.popupDialogVisible=!1,this.wfNodeDialogVisible=!1,this.formVo=null,this.curNode=null},applySubmitTemplate:function(){var e=this;if(0!==this.submitTemplateList.length){for(var t=[],n=0;n<this.submitTemplateList.length;n++)t.push({value:n,text:this.submitTemplateList[n].templateName});var a=this;this.$bus.emit("openListitemDialog",this.$tx("ecmapp.Wflowform.fields.selectTemplate","选择办理模板"),t,(function(t){if("success"===t.code){var n=t.value.value;a.$wfEngine.applySubmitTemplate(a,JSON.parse(e.submitTemplateList[n].submitJsondata)),a.wfJsonData.routes[e.submitHandle.route.index].taskNodes&&a.wfJsonData.routes[e.submitHandle.route.index].taskNodes.forEach((function(e){if(a.submitHandle.route[e.name]){var t=a.submitHandle.route[e.name].users;if(t){var n="";1===t.length?n=t[0].name:2===t.length?n=t[0].name+"、"+t[1].name:t.length>2&&(n=t[0].name+"、"+t[1].name+"等"+t.length+"人"),a.submitHandle.route[e.name].showUsers=n}}})),a.$forceUpdate()}}))}else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.noTemplate","暂无办理模板。")})},setIdeaShowScope:function(){var e=this;this.$bus.emit("openListitemDialog",this.$tx("ecmapp.Wflowform.fields.ideaShowScope","意见可见范围"),this.ideaShowScopeList,(function(t){"success"===t.code&&(e.ideaShowScope=t.value.text,e.curTN.passenger.tnIdeaShowScope=t.value.value,e.$forceUpdate())}),this.ideaShowScope)},switchAssistants:function(){this.showAssistants=!this.showAssistants,this.$forceUpdate()},assistantsChange:function(){this.submitHandle.askSMS=this.askSMS?1:0,this.submitHandle.keepConcern=this.keepConcern?1:0,this.$forceUpdate()},selectWfNodeUser:function(e,t){var n=this;if("1"!==t.autoCheckedAll||2!==t.showNodeUsers){var a={selectDialog:"wfNodeUser",multiple:!1,oneByOne:!1,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded,required:!1};a.showSelectByTabs=t.showSelectByTabs,a.todoMode=t.todoMode,0!==t.todoMode&&"0"!==t.todoMode&&(a.multiple=!0,"1"===t.type&&"3"===t.todoMode?a.selectedOrderBy="selectedIndex":a.selectedOrderBy="orgOrderBy"),"1"===t.oneByOne&&(a.oneByOne=!0);var o="";this.submitHandle.route[e].users&&this.submitHandle.route[e].users.forEach((function(e){""!==o&&(o+=","),o+=e.id})),this.$bus.emit("openTreeDialog",this.$tx("ecmapp.wflowform.titleHandler",{title:e},"".concat(e,"处理人")),a,t.users,(function(t){if("success"===t.code){var a="";if(1===t.value.length?a=t.value[0].name:2===t.value.length?a=t.value[0].name+"、"+t.value[1].name:t.value.length>2&&(a=t.value[0].name+"、"+t.value[1].name+"等"+t.value.length+"人"),n.submitHandle.route[e]||(n.submitHandle.route[e]={}),n.submitHandle.route[e].users=t.value,n.submitHandle.route[e].showUsers=a,2==n.curTN.tnIdeaAutoFillType&&n.curTN.tnIdeaAutoFillContent){var o="";t.value.forEach((function(e){o&&(o+="、"),o+=e.name}));var i="";n.submitHandle.route[e].users&&n.submitHandle.route[e].users.forEach((function(e){i&&(i+="、"),i+=e.name}));var r=n.curTN.tnIdeaAutoFillContent,s=n.curTN.tnIdeaAutoFillContent;if(-1!==r.indexOf("${sendTo}"))r=r.replace("${sendTo}",o),s=s.replace("${sendTo}",i);else if(-1!==r.indexOf("x")){var l=new RegExp("x+","g");r=r.replace(l,o),s=s.replace(l,i)}else if(-1!==r.indexOf("X")){var d=new RegExp("X+","g");r=r.replace(d,o),s=s.replace(d,i)}n.submitHandle.curUserIdea&&n.submitHandle.curUserIdea!==s||n.$set(n.submitHandle,"curUserIdea",r)}n.$forceUpdate(),n.$nextTick((function(){n.submitHandleValChange()}))}}),o)}},onSelectTreeDataLoaded:function(e,t){var n=JSON.parse(JSON.stringify(e));function a(e){var t=[];if(!Array.isArray(e))return t;e.forEach((function(e){delete e.children}));var n={};return e.forEach((function(e){n[e.id]=e})),e.forEach((function(e){var a=e.parentId||e.parentID||e.groupId||e.orgId,o=n[a];if(o){var i=o.children||(o.children=[]);i.push(e)}else t.push(e)})),t}a(n);var o={};function i(e){for(var t=0;t<e.length;t++)e[t].personId||(void 0===e[t].children||0===e[t].children.length?e.splice(t--,1):i(e[t].children))}i(n),a(n);for(var r=0;r<n.length;r++)!n[r].personId&&!n[r].children||n[r].children&&0===n[r].children.length?n.splice(r--,1):(delete n[r].children,o[n[r].id]&&(n[r]=o[n[r].id]));return n},selectMsgType:function(){var e=this;this.$bus.emit("openListitemDialog",this.$tx("ecmapp.wflowform.reminderMethod","提醒方式"),this.msgTypeOptions,(function(t){if("success"===t.code){var n="",a="";t.value.forEach((function(e){""!==n?(n+=","+e.value,a+="、"+e.text):(n=e.value,a=e.text)})),e.submitHandle.askMsgTypes=n,e.msgType=a,e.submitHandle.askSMS=a?1:0,e.$forceUpdate()}}),this.submitHandle.askMsgTypes,!0,null,!0)},addUdmNode:function(){this.udmNode={todoMode:0,selectType:3,orgLevel:2,orgStaffFilterType:2,orgStaffType:3,canEdit:1,status:0,ideaLable:""},this.wfNodeDialogVisible=!0},editUdmNode:function(e){this.udmNode=JSON.parse(JSON.stringify(e)),this.wfNodeDialogVisible=!0},delUdmNode:function(e){var t=this;0!==e&&(this.curTN.tnNodeID?(this.wfInstance.udmNodes.splice(e,1),this.$forceUpdate()):this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(n){if("success"===n.code){var a=n.body.listdata.filter((function(n){return n.nodeName===t.wfInstance.udmNodes[e].name}));a.length>0?t.$dialog.alert({message:"不允许删除已经送审批或办理的节点!"}):(t.wfInstance.udmNodes.splice(e,1),t.$forceUpdate())}else t.$dialog.alert({message:n.message})})))}}},Bc=Hc,Uc=(a(2988),(0,Ca.A)(Bc,Ac,Yc,!1,null,"6b76414a",null)),Rc=Uc.exports,Wc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"submit-dialog-container"},[t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,title:e.title},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):e._e(),e.loading?e._e():t("SubmitHandle",{attrs:{"show-over-path":e.showOverPath,"disabled-keep-concern":e.disabledKeepConcern,"shortcut-button":e.shortcutButton,"cur-t-n":e.curTN,"wf-instance":e.wfInstance,"submit-handle":e.submitHandle,"wf-json-data":e.wfJsonData,"idea-attach-accept":e.ideaAttachAccept,"common-idea-list":e.commonIdeaList,"common-idea-fill-mode":e.commonIdeaFillMode,"submit-template-list":e.submitTemplateList,"no-idea-submit-template":e.noIdeaSubmitTemplate,"select-path-type":e.selectPathType},scopedSlots:e._u([{key:"shortcutButton",fn:function(){return[e._t("shortcutButton")]},proxy:!0}],null,!0)}),e.showSubmitBtn?t("FooterButtonGroup",[t("van-button",{directives:[{name:"wfbtn-lbl",rawName:"v-wfbtn-lbl",value:"submit",expression:"'submit'"}],attrs:{square:"",type:"info",text:"提 交"},on:{click:e.submitFile}})],1):e._e()],1),e.loading||"QuickSubmit"!==e.submitHandle.submitType?e._e():t("SubmitHandle",{attrs:{"show-over-path":e.showOverPath,"disabled-keep-concern":e.disabledKeepConcern,"shortcut-button":e.shortcutButton,"cur-t-n":e.curTN,"wf-instance":e.wfInstance,"submit-handle":e.submitHandle,"wf-json-data":e.wfJsonData,"idea-attach-accept":e.ideaAttachAccept,"common-idea-list":e.commonIdeaList,"common-idea-fill-mode":e.commonIdeaFillMode,"submit-template-list":e.submitTemplateList,"no-idea-submit-template":e.noIdeaSubmitTemplate},scopedSlots:e._u([{key:"shortcutButton",fn:function(){return[e._t("shortcutButton")]},proxy:!0}],null,!0)}),t("van-dialog",{attrs:{title:e.ideaTitle,"show-cancel-button":""},on:{confirm:e.ideaInputDialogSubmit,close:e.ideaInputDialogClose},model:{value:e.ideaInputDialogVisible,callback:function(t){e.ideaInputDialogVisible=t},expression:"ideaInputDialogVisible"}},[t("div",{staticClass:"input-ideas"},[t("van-field",{staticClass:"curIdea-filed",attrs:{type:"textarea",placeholder:"请填写处理意见",rows:"4",autosize:""},model:{value:e.submitHandle.curUserIdea,callback:function(t){e.$set(e.submitHandle,"curUserIdea",t)},expression:"submitHandle.curUserIdea"}})],1)])],1)},Vc=[],zc={name:"SubmitDialog",components:{SubmitHandle:Rc},props:{curTN:{type:Object,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},wfJsonData:{type:Object,default:function(){return{}}},submitHandle:{type:Object,default:function(){return{}}},commonIdeaList:{type:Array,default:function(){return{}}},commonIdeaFillMode:{type:String,default:function(){return"replace"}},submitTemplateList:{type:Array,default:function(){return{}}},ideaAttachAccept:{type:String,default:".doc,.docx,.xls,.xlsx,.pdf,.ppt,.pptx,.jpg,.png,.zip,.rar"},noIdeaSubmitTemplate:{type:Boolean,default:!1},showOverPath:{type:Boolean,default:!0},selectPathType:{type:String,default:"dialog"},disabledKeepConcern:{type:Boolean,default:!1},shortcutButton:{type:Boolean,default:!1}},data:function(){return{title:this.$tx("ecmapp.wflowform.submitHandle","提交办理"),dialogFormVisible:!1,showSubmitBtn:!0,loading:!0,ideaTitle:this.$tx("ecmapp.wflowform.fields.writeOpinion","填写意见"),ideaInputDialogVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("btnStartDoingClick",this.btnStartDoingClick),this.$bus.on("btnQuickSubmitClick",this.btnQuickSubmitClick);var e=this.$vnode.context,t=e.commandBar.filter((function(e){if(e.btnJavascriptBak)return!0}));0===t.length&&(this.showSubmitBtn=!1)},beforeDestroy:function(){this.$bus.off("btnStartDoingClick",this.btnStartDoingClick),this.$bus.off("btnQuickSubmitClick",this.btnQuickSubmitClick)},mounted:function(){},methods:{btnStartDoingClick:function(){var e=this,t=this,n=this.$vnode.context;if(t.wfJsonData&&t.wfJsonData.routes)t.dialogFormVisible=!0,t.loading=!1;else{var a=JSON.parse(JSON.stringify(t.wfInstance));a.passenger.busiData=n.vo,t.loading=!0,t.dialogFormVisible=!0,t.$nextTick((function(){e.$wfEngine.getWfJsonData(n,a,n.wfParams).then((function(e){t.loading=!1}))}))}},submitFile:function(){var e=this.$vnode.context,t=e.commandBar.filter((function(e){if(e.btnJavascriptBak)return!0}))[0],n=t.btnJavascriptBak;if(-1!==n.indexOf("(")){var a=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==a&&(a=a.replace(/'/g,"").split(","),t.btnParams=a),n=n.split("(")[0]}void 0!==e[n]&&(t.btnClick=e[n]),void 0!==t.btnParams&&null!==t.btnParams?t.btnClick.apply(this.$parent,t.btnParams):t.btnClick.apply(this.$parent)},btnQuickSubmitClick:function(e){var t=this,n=this.$vnode.context;n.formValidate((function(){var a=n.wfJsonData.routes.filter((function(e,t){if("0"===e.type||"4"===e.type||"7"===e.type||"10"===e.type||"14"===e.type)return e.index=t,!0}));t.submitHandle.route.index=a[0].index,t.submitHandle.submitType="QuickSubmit",t.loading=!1,t.$nextTick((function(){t.$bus.emit("initSubmitHandle",t.initSubmitHandle,"QuickSubmit"),new Promise((function(e,t){n.formEvents.onWflowFormBeforeSubmit(n,{resolve:e,reject:t})})).then((function(a){a&&(e?(t.$set(t.submitHandle,"curUserIdea",e),t.$dialog.confirm({message:t.$tx("ecwapp.Wflowform.submitToNet","您是否确认提交下一环节?")}).then((function(){n.btnSubmitClick("QuickSubmit")}))):t.ideaInputDialogVisible=!0)}))}))}),(function(e){console.log(e),n.tabActive=0}))},ideaInputDialogSubmit:function(){var e=this.$vnode.context;e.btnSubmitClick("QuickSubmit"),this.ideaInputDialogVisible=!1},ideaInputDialogClose:function(){this.ideaInputDialogVisible=!1}}},Jc=zc,qc=(a(1698),(0,Ca.A)(Jc,Wc,Vc,!1,null,"2e79fb7e",null)),Gc=qc.exports,Kc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wf-nodelogs-container van-wform-operate-cell"},[t("div",{staticClass:"form-slicer"}),t("van-cell-group",[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"processLog",expression:"'processLog'"}],attrs:{title:"流程日志","is-link":""},on:{click:e.viewWfNodelogs}})],1),t("PopupDialog",{class:{"call-back-file":1==e.callbackFile},attrs:{showpop:e.showpop,title:e.$tx("ecmapp.wflowform.fields.processLog","流程日志")},on:{"update:showpop":function(t){e.showpop=t}}},[t("van-steps",{attrs:{direction:"vertical","active-color":"#1989fa","inactive-icon":"checked"}},e._l(e.wfNodeLogList,(function(n){return t("van-step",{key:n.id,class:{"active-step-finish":1===n.step}},[t("div",{staticClass:"litit clearboth"},[t("span",[e._v(e._s(n.nodeName))]),t("span",{staticClass:"elapsed-time"},[e.anywhereChat&&e.loginUser.personAccount!==n.staffAccount?t("van-icon",{staticClass:"start-chat",attrs:{name:"chat-o"},on:{click:function(t){return e.startChat(n.staffId,n.staffName)}}}):e._e(),e._v(" "+e._s(n.staffName)+" ")],1)]),t("div",{staticClass:"licont"},[1===e.showProcessedTimeLength?[t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"processingTime",expression:"'processingTime'"}]},[e._v("处理时间:")]),e._v(" "+e._s(n.createTime.substr(0,16))+" - "+e._s(null==n.completeTime?e.$tx("ecmapp.wflowform.processing","处理中"):n.completeTime.substr(0,16))+" ")])])]:[t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"startTime",expression:"'startTime'"}]},[e._v("开始时间:")]),e._v(" "+e._s(n.createTime.substr(0,16))+" ")])]),t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"completionTime",expression:"'completionTime'"}]},[e._v("完成时间:")]),e._v(" "+e._s(null==n.completeTime?e.$tx("ecmapp.wflowform.processing","处理中"):n.completeTime.substr(0,16))+" ")])])],n.limitTime?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"limitTime",expression:"'limitTime'"}]},[e._v("处理时限:")]),e._v(" "+e._s(n.limitTime)+" ")])]):e._e(),n.timeoutTime?t("p",{staticStyle:{color:"red"}},[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"timeOut",expression:"'timeOut'"}]},[e._v("超时时长:")]),e._v(" "+e._s(n.timeoutTime)+" ")])]):e._e(),void 0!==n.durTime&&1===e.showProcessedTimeLength?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"todoTime",expression:"'todoTime'"}]},[e._v("办理时长:")]),e._v(" "+e._s(n.durTime)+" ")])]):e._e(),null!==n.idea?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"handlingSuggestions",expression:"'handlingSuggestions'"}]},[e._v("处理意见:")]),t("span",{domProps:{innerHTML:e._s(n.idea)}})])]):e._e(),null!==n.pathName?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"fields.submitPath",expression:"'fields.submitPath'"}]},[e._v("提交路径:")]),t("span",{style:{color:n.pathName.indexOf("退回")>-1?"red":""}},[e._v(e._s(n.pathName))])])]):e._e()],2)])})),1),1==e.callbackFile?t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"takBack",expression:"'takBack'"}],attrs:{square:"",type:"info"},on:{click:e.submitCallbackFile}},[e._v("收 回")])],1):e._e()],1),t("WriteToReadIdea"),t("ModifyWflogAddUser"),t("ModifyWflogForwardTodo")],1)},Qc=[],Zc=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,title:e.winTitle,"on-cancel":e.handleDialogClose},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):t("van-cell-group",[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileTitle",expression:"'fileTitle'"}],attrs:{title:"文件标题",label:e.wfInstance.title}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"prevStep",expression:"'prevStep'"}],attrs:{title:"上一处理环节",value:e.wflog.nodeName}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"prevHandler",expression:"'prevHandler'"}],attrs:{title:"上一环节处理人",value:e.wflog.staffName}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addStep",expression:"'addStep'"}],attrs:{title:"新增处理环节",value:e.wfNodeName}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addHandler",expression:"'addHandler'"}],attrs:{required:"true",title:"新增环节处理人",value:e.wflog.addNewStaffName,"is-link":"true"},on:{click:function(t){return e.selectWfNodeUser(e.wflog)}}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addLimt",expression:"'addLimt'"}],attrs:{required:"true",title:"新增环节处理时限",value:1===e.wflog.timeLimitDay?e.$tx("ecmapp.wflowform.specifyLimit","指定时限"):e.$tx("ecmapp.wflowform.endless","无时限")}}),1===e.wflog.timeLimitDay?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdLimt",expression:"'zdLimt'"}],attrs:{required:"true",title:"指定环节处理时限",value:e.wflog.newTimeLimit,"is-link":"true"},on:{click:function(t){return e.selectNewTimeLimit(e.wflog)}}}):e._e()],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{square:"",type:"default"},on:{click:e.handleDialogClose}},[e._v("取 消")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.handleSubmitForm}},[e._v("确 定")])],1)],1):e._e()},Xc=[],eu={name:"ModifyWflogAddUser",components:{},props:{},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",modifyType:"addUser",winTitle:this.$tx("ecmapp.wflowform.addProcessor","添加处理人"),wfNode:null,wfNodeName:"",dialogFormVisible:!1,wfInstance:{},wflog:{},wfdNodeList:[],wfEngineUrl:"",loading:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("showModifyWflogAddUser",this.showModifyWflogAddUser)},beforeDestroy:function(){this.$bus.off("showModifyWflogAddUser",this.showModifyWflogAddUser)},mounted:function(){},methods:{showModifyWflogAddUser:function(e,t,n,a,o){var i=this,r=this;if(!r.loading){a&&(this.winTitle=a),r.loading=!0;var s=r.$vnode.context.$vnode.context;if(r.wfInstance=JSON.parse(JSON.stringify(e)),r.wfInstance.passenger.busiData=s.vo,r.wflog=t,r.wfNodeName=o,t)if(this.wfEngineUrl=this.$route.query.wfEngineUrl||"",this.$set(this.wflog,"newNode",null),this.$set(this.wflog,"addNewStaffName",""),this.$set(this.wflog,"newTimeLimit",""),this.$set(this.wflog,"timeLimitDay",0),"forwardAll"===n&&(this.modifyType=n,this.winTitle=this.$tx("ecmapp.wflowform.batchTransfer","批量转派"),this.wflog.pathName=this.$tx("ecmapp.wflowform.batchTransfer","批量转派")),this.dialogFormVisible=!0,e.udmNodes&&0==e.module.indexOf("udmjysp_")){var l=e.udmNodes;"string"===typeof l&&(l=JSON.parse(l)),l.forEach((function(e){("addCooperationUser"!==r.modifyType||r.historyWflogs.filter((function(t){return t.nodeName===e.name})).length>0)&&r.wfdNodeList.push(e),e.name===i.wfNodeName&&(r.$set(r.wflog,"newNode",r.wfdNodeList.length-1),r.setTimeLimit(r.wfdNodeList.length-1),1===r.wflog.timeLimitDay&&0===e.timeLimitDay&&r.$set(r.wflog,"newTimeLimit",r.wflog.limitTime))})),r.loading=!1}else this.$http({method:"POST",params:{wfProcessId:e.wfId},url:"workflow/wfdProcessMgr/queryWfdNodeByProcessId"}).then((function(e){"success"===e.code?(e.body.listdata.forEach((function(e){"jslc"===e.name||"start"===e.name||"jslc"===e.name||"dfzjd"===e.name||"jsrw"===e.name||"zyjd"===e.name||e.dccodeType||(r.wfdNodeList.push(e),e.name===i.wfNodeName&&(r.$set(r.wflog,"newNode",r.wfdNodeList.length-1),r.setTimeLimit(r.wfdNodeList.length-1),1===r.wflog.timeLimitDay&&0===e.timeLimitDay&&r.$set(r.wflog,"newTimeLimit",r.wflog.limitTime)))})),r.loading=!1):i.$alert({message:e.message,type:"error"}).then((function(){r.handleDialogClose(),r.loading=!1}))}));else r.getCurWflog()}},getCurWflog:function(){var e=this,t=this,n=this.$vnode.context.$vnode.context;t.$nextTick((function(){t.$wfEngine.getWfJsonData(n,e.wfInstance,n.wfParams).then((function(n){n.body.wfJsonData.routes.forEach((function(n){if(("16"===n.type||16===n.type)&&n.taskNodes.length>0){var a=n.taskNodes[0];t.wfNodeName&&(a=n.taskNodes.filter((function(e){return t.wfNodeName===e.name}))[0]),t.wfNode=a,t.wfNodeName=a.name;var o=e.$vnode.context.$vnode.context.curTN;e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:e.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(a){t.loading=!1,"success"===a.code?a.body.listdata.forEach((function(t){t.id===o.tnID&&(e.wflog=t,e.wflog.pathName=n.name,e.wflog.pathType=n.type,e.showModifyWflogAddUser(e.wfInstance,t,e.modifyType,e.winTitle,e.wfNodeName))})):e.$alert({message:a.message,type:"error"})}))}}))}))}))},selectNewTimeLimit:function(){var e=this;this.$bus.emit("openDatetimePicker",this.wflog.newTimeLimit,(function(t){e.$set(e.wflog,"newTimeLimit",t)}),"datetime",this.wflog.createdTime,5)},setTimeLimit:function(e){9!==this.wfdNodeList[e].timeLimitType&&"9"!==this.wfdNodeList[e].timeLimitType?this.$set(this.wflog,"timeLimitDay",1):this.$set(this.wflog,"timeLimitDay",0)},selectWfNodeUser:function(){var e=this,t={selectDialog:"wfNodeUser",multiple:!1,oneByOne:!1,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded,required:!1};t.showSelectByTabs=this.wfNode.showSelectByTabs,t.todoMode=this.wfNode.todoMode,0!==this.wfNode.todoMode&&"0"!==this.wfNode.todoMode&&(t.multiple=!0,"1"===this.wfNode.type&&"3"===this.wfNode.todoMode?t.selectedOrderBy="selectedIndex":t.selectedOrderBy="orgOrderBy"),"1"===this.wfNode.oneByOne&&(t.oneByOne=!0);var n=this.wfNodeName,a=this.wflog.addNewStaffId;this.$bus.emit("openTreeDialog",this.$tx("ecmapp.wflowform.titleHandler",{title:n},"".concat(n,"处理人")),t,this.wfNode.users,(function(t){if("success"===t.code){var n="",a="";t.value.forEach((function(e){void 0!==e.collapseNodes?e.collapseNodes.forEach((function(e){""!==n&&(n+=";"),n+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||"")})):(""!==n&&(n+=";"),n+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||"")),""!==a&&(a+="、"),a+=e.name})),e.$set(e.wflog,"addNewStaffId",n),e.$set(e.wflog,"addNewStaffName",a)}}),a)},handleSubmitForm:function(){var e=this,t=this;if(!t.doing)if(this.wflog.addNewStaffId)if(1!==this.wflog.timeLimitDay||this.wflog.newTimeLimit){t.doing=!0;var n="$";1===this.wflog.timeLimitDay&&(n=this.wflog.newTimeLimit);var a=this.wfdNodeList[this.wflog.newNode].id+";"+n+";"+this.wflog.pathName;this.wflog.pathType&&(a+=";"+this.wflog.pathType);var o={wfInstanceId:this.wfInstance.id,modifyType:this.modifyType,newNodeProp:a,selTNID:this.wflog.id,newStaffId:this.wflog.addNewStaffId};""!==this.wfEngineUrl&&(o.wfEngineUrl=this.wfEngineUrl),this.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",params:o,data:Wn().stringify({wfInstance:JSON.stringify(this.wfInstance)}),url:this.$vnode.context.modifyWfNodelogUrl||this.$vnode.context.$vnode.context.modifyWfNodelogUrl}).then((function(n){"success"===n.code?e.$dialog.alert({message:e.$tx("ecmapp.wflowform.successfullyCompleted",{winTitle:e.winTitle},"".concat(e.winTitle,"已成功!"))}).then((function(){t.handleDialogClose()})):(t.doing=!1,t.$dialog.alert({message:n.message,type:"error"}))}))}else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.addStepLimit","请指定办理时限!")});else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.pSelectAddHandler","请选择新增环节处理人!")})},handleDialogClose:function(){this.dialogFormVisible=!1,this.wfInstance={},this.wflog={},this.wfdNodeList=[]}}},tu=eu,nu=(a(6517),(0,Ca.A)(tu,Zc,Xc,!1,null,"897ddfa6",null)),au=nu.exports,ou=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,title:e.winTitle,"on-cancel":e.handleDialogClose},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileTitle",expression:"'fileTitle'"}],attrs:{title:"文件标题",label:e.wfInstance.title}}),t("div",{staticClass:"form-slicer"}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"prevStep",expression:"'prevStep'"}],attrs:{title:"转办环节",value:e.forwardTN}}),e.todoWflogs.length>1?t("van-radio-group",{model:{value:e.forwardTNID,callback:function(t){e.forwardTNID=t},expression:"forwardTNID"}},[t("van-cell-group",e._l(e.todoWflogs,(function(n){return t("van-cell",{attrs:{title:n.nodeName+" "+n.staffName},on:{click:function(t){return e.selectForwardTN(n)}},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-radio",{attrs:{name:n.id}})]},proxy:!0}],null,!0)})})),1)],1):e._e(),t("div",{staticClass:"form-slicer"}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addHandler",expression:"'addHandler'"}],attrs:{required:"true",title:"新处理人",value:e.forwardStaffName,"is-link":"true"},on:{click:function(t){return e.selectWfNodeUser(e.wflog)}}})],t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{square:"",type:"default"},on:{click:e.handleDialogClose}},[e._v("取 消")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.handleSubmitForm}},[e._v("确 定")])],1)],2):e._e()},iu=[],ru={name:"ModifyWflogForward",components:{},props:{},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",modifyType:"forwardTodo",winTitle:this.$tx("ecmapp.wflowform.forwardTodo","文件转办"),dialogFormVisible:!1,wfInstance:{},forwardTNID:"",forwardTN:"",forwardStaffId:"",forwardStaffName:"",todoWflogs:[],wflog:{},modifyWfNodelogUrl:"",loading:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("btnFlowForwardTodoClick",this.btnFlowForwardTodoClick)},beforeDestroy:function(){this.$bus.off("btnFlowForwardTodoClick",this.btnFlowForwardTodoClick)},mounted:function(){},methods:{btnFlowForwardTodoClick:function(e){var t=this;this.wfInstance=e.wfInstance,this.forwardTNID="",this.forwardTN="",this.forwardStaffId="",this.modifyWfNodelogUrl=e.modifyWfNodelogUrl;var n={method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"};1===this.callbackFile&&(n.params.modifyType="callback"),this.$http(n).then((function(e){if("success"===e.code){if(t.todoWflogs=e.body.listdata.filter((function(e){return e.status<6&&1===e.taskType})),0===t.todoWflogs.length)return void t.$dialog.alert({message:"当前文件没有在办节点,不需要转办"});1===t.todoWflogs.length&&(t.forwardTNID=t.todoWflogs[0].id,t.forwardTN=t.todoWflogs[0].nodeName+" "+t.todoWflogs[0].staffName),t.dialogFormVisible=!0}}))},selectForwardTN:function(e){this.forwardTNID=e.id,this.forwardTN=e.nodeName+" "+e.staffName},selectWfNodeUser:function(){var e=this;if(this.forwardTNID){var t={selectDialog:"staff",multiple:!1,oneByOne:!1,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded,required:!1,showSelectByTabs:!0,todoMode:0};this.wflog=this.todoWflogs.filter((function(t){return t.id===e.forwardTNID}))[0];var n=this.wflog.nodeName;this.$bus.emit("openTreeDialog",this.$tx("ecmapp.wflowform.titleHandler",{title:n},"".concat(n,"处理人")),t,null,(function(t){"success"===t.code&&(e.forwardStaffId=t.value[0].id,e.forwardStaffName=t.value[0].orgFullName.split("-")[1]+" "+t.value[0].name)}))}else this.$dialog.alert({message:"请选择需要转办的节点"})},handleSubmitForm:function(){var e=this;this.forwardStaffId?this.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id,modifyType:"forward",selTNID:this.forwardTNID,newStaffId:this.forwardStaffId},data:Wn().stringify({wfInstance:JSON.stringify(this.wfInstance)}),url:this.modifyWfNodelogUrl}).then((function(t){"success"===t.code?e.$dialog.alert({message:e.$tx("ecwapp.Wflowform.ModifyWfNodelog.transferredHandle",{selectedNodes:e.forwardStaffName},"已经成功将文件转给".concat(e.forwardStaffName,"办理"))}).then((function(){e.handleDialogClose()})):e.$dialog.alert({message:t.message,type:"error"})})):this.$dialog.alert({message:"请选择转办新处理人"})},handleDialogClose:function(){this.dialogFormVisible=!1,this.wfInstance={},this.wflog={}}}},su=ru,lu=(a(9735),(0,Ca.A)(su,ou,iu,!1,null,"301979cb",null)),du=lu.exports;function cu(e){return cu="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},cu(e)}function uu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uu=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==cu(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(cu(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function fu(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function pu(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){fu(i,a,o,r,s,"next",e)}function s(e){fu(i,a,o,r,s,"throw",e)}r(void 0)}))}}var mu=a(5093),hu={name:"WfNodelogList",components:{ModifyWflogAddUser:au,ModifyWflogForwardTodo:du},props:{wfInstance:{type:Object,default:function(){return{}}},showProcessedTimeLength:{type:Number,default:1}},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",callbackFile:0,callTNID:"",callbackMode:"beforeopen",callbackSendsms:null,selTNID:[],wfNodeLogList:{},msgTypeOptions:null,totalDurTime:"",showpop:!1,anywhereChat:window.anywhereChat||!1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){var e=this.$vnode.context.curTN;e.passenger&&e.passenger.callbackFile&&(this.callbackFile=e.passenger.callbackFile,this.callTNID=e.tnID),this.loginUser.webchat||(this.anywhereChat=!1),this.$bus.on("btnAddReader",this.btnAddReaderClick),this.$bus.on("btnReadedClick",this.btnReadedClick),this.$bus.on("btnReturnHistoryClick",this.btnReturnHistoryClick)},beforeDestroy:function(){this.$bus.off("btnAddReader",this.btnAddReaderClick),this.$bus.off("btnReadedClick",this.btnReadedClick),this.$bus.off("btnReturnHistoryClick",this.btnReturnHistoryClick)},mounted:function(){},methods:{viewWfNodelogs:function(){var e=this,t={method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"};1===this.callbackFile&&(t.params.modifyType="callback"),this.$http(t).then((function(t){if("success"===t.code){var n=e.$vnode.context.curTN;2===e.wfInstance.busiHaveExt&&n.passenger&&n.passenger.returnParentWflog&&res.body.listdata.push(n.passenger.returnParentWflog),e.wfNodeLogList=t.body.listdata.filter((function(e){return e.taskType>0&&9!==e.taskType})),e.callbackMode=t.body.callbackMode,e.msgTypeOptions=t.body.msgTypeOptions||null,null!==t.body.callbackSendsms&&(e.callbackSendsms=t.body.callbackSendsms);var a,o=e.wfNodeLogList[0].createTime;a=9===e.wfNodeLogList[e.wfNodeLogList.length-1].status&&null!=e.wfNodeLogList[e.wfNodeLogList.length-1].completeTime?e.wfNodeLogList[e.wfNodeLogList.length-1].completeTime:mu(new Date).format("YYYY-MM-DD HH:mm:ss"),e.totalDurTime=e.computeDurTime(o,a),e.wfNodeLogList.forEach((function(t){t.createTime=t.createTime.replace(/\-/g,"/"),9===t.status&&null!=t.completeTime?(a=t.completeTime,t.step=1):(a=mu(new Date).format("YYYY-MM-DD HH:mm:ss"),t.step=-1),t.durTime=e.computeDurTime(t.createTime,a),9===t.status&&null!==t.completeTime&&(t.completeTime=t.completeTime.replace(/\-/g,"/")),t.limitTime&&(t.limitTime<a&&(t.timeoutTime=e.computeDurTime(t.limitTime,a)),t.limitTime=t.limitTime.replace(/\-/g,"/")),t.idea&&0===t.idea.indexOf("{handwriting:1,")&&(t.idea='<img name="handwritingidea" class="handwritingIdea" src="./apigw/workflow/wfInstanceNodelog/viewHandwritingIdea?wfNodelogId='+t.id+'"></img>')})),e.showpop=!0}else console.log(t.message)}),(function(e){console.log(e)}))},computeDurTime:function(e,t){var n;e=e.replace(/\-/g,"/"),t=t.replace(/\-/g,"/");var a=(Date.parse(t)-Date.parse(e))/6e4,o=parseInt(a%60),i=parseInt(a%1440/60),r=parseInt(a/1440),s=(Date.parse(t)-Date.parse(e))/1e3%60;return n=r>=1?r+"天"+i+"时"+o+"分":i>=1?i+"时"+o+"分":o+"分"+s+"秒",n},submitCallbackFile:function(){var e=this;this.wfNodeLogList.forEach((function(t){"beforeend"===callbackMode?t.status<6&&e.selTNID.push(t.id):t.parentId!==e.callTNID||null!==t.openTime&&"beforesubmit"!==e.callbackMode||e.selTNID.push(t.id)})),this.$dialog.confirm({message:this.$tx("ecmapp.wflowform.wantToRetrieve","您是否确认要收回文件?"),type:"warning"}).then((function(){e.showpop=!1;var t={wfInstanceId:e.wfInstance.id,modifyType:"callback",callTNID:e.callTNID,selTNID:e.selTNID.join(","),callbackMode:e.callbackMode};null!==e.msgTypeOptions?t.sendMsg=e.callbackSendsms:t.sendSms=e.callbackSendsms,e.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",params:t,data:Wn().stringify({wfInstance:JSON.stringify(e.wfInstance)}),url:e.$vnode.context.modifyWfNodelogUrl}).then((function(t){if("success"===t.code){var n=location.href;-1!==n.indexOf("&wfNodelogId=")&&(n=n.substring(0,n.indexOf("&wfNodelogId="))+n.substring(n.indexOf("&wfNodelogId=")+32+13),location.href=n),e.$bus.emit("loadWfInstance")}else e.$dialog.alert({message:t.message})}))}))},btnAddReaderClick:function(e,t,n,a){var o=this;a=a||"staff";var i={selectDialog:a,multiple:!0};this.$bus.emit("openTreeDialog",n||this.$tx("ecmapp.wflowform.addReaders","添加阅文人"),i,null,(function(n){if("success"===n.code){var a=n.value;if(a.length>0){var i=JSON.parse(JSON.stringify(e.wfInstance));i.passenger.busiData=e.vo;var r={wfInstance:JSON.stringify(i)};r.openUrl=e.submitHandle.openUrl,r.nodeName=t||e.curTN.passenger.toReadedNodeName||"阅知",r.sender=e.curTN.userName,r.senderDept=e.curTN.staffOrgName,r.senderStaffId=e.curTN.senderStaffId,r.sendToOther=0,r.disabledViewIdea=0,r.leaders=[],a.forEach((function(e){r.leaders.push(e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id)})),r.leaders=r.leaders.join(","),o.$bus.emit("showDoingDialog"),o.$http({method:"POST",contentType:"application/x-www-form-urlencoded;charset=UTF-8",data:Wn().stringify(r),url:"workflow/wfInstance/createToReadItem"}).then((function(e){o.$bus.emit("closeDoingDialog"),"success"===e.code?o.$dialog.alert({message:"已成功添加阅文人!"}):o.$dialog.alert({message:e.message})}))}}}))},btnReadedClick:function(e){var t=this;this.$dialog.confirm({message:this.$tx("ecmapp.wflowform.sureReaded","您是否确认已阅?")}).then((function(){e.doing=!0,e.$wfEngine.saveWfInstance(e,"ManulReaded",e.wfParams).then((function(n){"success"===n.code?(t.$toast.success(n.message),setTimeout((function(){e.btnCloseClick()}),100)):(e.doing=!1,t.$dialog.alert({message:n.message}))}))}))},startChat:function(e,t){var n=this;this.$http({method:"GET",params:{staffIds:e},url:"base/organMgr/findLinkManListByStaffIds"}).then((function(e){"success"===e.code?e.body.listdata.length>0&&e.body.listdata[0].webchat?(n.$router.back(-1),setTimeout((function(){var t=encodeURIComponent(location.href.split("#")[1]),a=e.body.listdata[0].webchat;n.$router.push({path:"/chat/chatRoom",query:{webchat:a,openType:"singleChat",from:t}})}),100)):n.$dialog.alert({message:n.$tx("ecmapp.wflowform.notActivated1",{staffName:t},"".concat(t,"未开通即时通信功能"))}):n.$dialog.alert({message:e.message})}))},btnReturnHistoryClick:function(e){var t=this,n=this.$vnode.context.wfInstance,a=this.$vnode.context.curTN,o="workflow/wfInstanceNodelog/queryHistoryNode";e&&(o="workflow/wfInstanceNodelog/queryHistoryNodeByWflogId"),this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:n.id,curTnCreateTime:a.tnStartTime,curNodeId:a.tnNodeID,returnMode:a.tnReturnMode,wflogId:e},url:o}).then((function(e){if("success"===e.code)if(e.body.listdata&&e.body.listdata.length>0){var n=[];e.body.listdata.forEach((function(e){n.push({text:e.nodeName+" "+e.staffName,value:JSON.stringify(e)})})),n.length>1?t.$bus.emit("openListitemDialog","驳回",n,(function(e){if("success"===e.code){var n=JSON.parse(e.value.value);t.returnHistoryNodeSubmit(n)}}),null,null,"请选择驳回节点"):1===n.length&&t.$dialog.confirm({message:t.$tx("ecwapp.Wflowform.returnHistory","您是否确认驳回到上一环节?")}).then((function(){var e=JSON.parse(n[0].value);t.returnHistoryNodeSubmit(e)}))}else t.$dialog.alert({message:e.message})}))},returnHistoryNodeSubmit:function(e){var t=this.$vnode.context,n={id:e.staffId,name:e.staffName,account:e.staffAccount,orgFullName:e.staffOrgName};t.submitHandle.needCheckOuterDeputy=[{wfnodeId:e.nodeId,wfnodeName:e.nodeName,users:[n],todoType:e.todoType}],t.$wfEngine.checkOuterDeputy(t,t.wfParams).then(function(){var a=pu(uu().mark((function a(o){var i,r,s,l,d,c;return uu().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("success"===o.code){a.next=4;break}t.$dialog.alert({message:o.message}),a.next=19;break;case 4:t.doing=!0,i=!0,r=0;case 7:if(!(r<t.refsAttachments.length)){a.next=17;break}return a.next=10,t.refsAttachments[r].uploadWflowAttach(t);case 10:if(s=a.sent,"success"===s.code){a.next=14;break}return i=!1,a.abrupt("break",17);case 14:r++,a.next=7;break;case 17:t.submitHandle.curUserIdea&&2!==t.curTN.tnIdeaSaveType||(t.curTN.tnIdeaLabelID=null,t.curTN.tnIdeaLabelName=null,t.submitHandle.curUserIdea=""),i?(l="ReturnHistTNSubmit",d="退回"+e.nodeName,c={id:e.nodeId,name:e.nodeName,type:e.nodeType,todoMode:e.todoMode,todoType:e.todoType,timeLimit:e.timeLimit,tmLmtBeforeNotice:e.tmLmtBeforeNotice,tmLmtType:e.tmLmtType,pathType:3},t.submitHandle.route[e.nodeName]={users:[n]},t.submitHandle.submitRoute={name:d,type:3,taskNodes:[c]},t.$wfEngine.saveWfInstance(t,l,t.wfParams).then((function(e){"success"===e.code?(t.$toast.success(e.message),setTimeout((function(){t.btnCloseClick()}),1e3)):t.$dialog.alert({message:e.message}),t.doing=!1}))):(t.$dialog.alert({message:t.$tx("ecwapp.Wflowform.IdeaInputBox.uploadFileFail","上传文件失败")}),t.doing=!1);case 19:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}())}}},vu=hu,gu=(a(3806),(0,Ca.A)(vu,Kc,Qc,!1,null,"785b60a7",null)),yu=gu.exports,_u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"write_toread_idea"},[e.dialogVisible?t("van-dialog",{attrs:{title:e.$tx("ecmapp.wflowform.fields.reviewComments","批阅意见"),"show-cancel-button":"","confirm-button-text":"确定","before-close":e.dialogBeforeClose},on:{cancel:e.handleDialogClose,confirm:e.handleSubmitForm},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"reviewComments",expression:"'reviewComments'"}],staticClass:"idea_content",attrs:{placeholder:"请填写批阅意见",readonly:!1,type:"textarea",rows:8,autosize:!1},model:{value:e.wflog.idea,callback:function(t){e.$set(e.wflog,"idea",t)},expression:"wflog.idea"}})],1):e._e()],1)},bu=[],wu={name:"WriteToReadIdea",components:{},props:{},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",dialogVisible:!1,$scope:null,wflog:{},fail:!1}},computed:{},watch:{},created:function(){this.$bus.on("writeToReadIdea",this.writeToReadIdea)},beforeDestroy:function(){this.$bus.on("writeToReadIdea",this.writeToReadIdea)},mounted:function(){},methods:{writeToReadIdea:function(e){var t=this;this.$scope=e;var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:e.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(a){if("success"===a.code){var o=e.curTN.passenger.toReadedNodeName,i=a.body.listdata.filter((function(t){if(t.staffAccount===e.curTN.userAccount&&(0===t.taskType||9===t.taskType)&&(t.nodeName===o||null===o||""===o))return!0}));i.length>0?(n.wflog=i[0],n.dialogVisible=!0):t.$toast.fail(t.$tx("ecmapp.wflowform.noWritReview","您的阅文记录不存在,不能填写批阅意见"))}}))},handleSubmitForm:function(){var e=this;if(!this.wflog.idea)return this.fail=!0,void this.$toast.fail(this.$tx("ecmapp.wflowform.writReviewComments","请填写批阅意见"));this.fail=!1;var t=this.$scope.curTN;this.$http({method:"PUT",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{wfInstanceId:this.wflog.wfInstanceId,modifyType:"modifyIdea",selTNID:this.wflog.id},data:Wn().stringify({wfInstance:JSON.stringify(this.$scope.wfInstance),modifiedIdea:this.wflog.idea,tnIdeaLabelID:t.tnIdeaLabelID,tnIdeaLabelName:t.tnIdeaLabelName}),url:this.$scope.modifyWfNodelogUrl}).then((function(t){"success"===t.code?(e.$toast.success(t.message),e.$scope.loadWfInstance()):(e.fail=!0,e.$toast.fail(t.message))}))},dialogBeforeClose:function(e,t){"confirm"===e&&this.fail?t(!1):t()},handleDialogClose:function(){this.fail=!1,this.wflog={},this.dialogVisible=!1}}},xu=wu,Mu=(a(5357),(0,Ca.A)(xu,_u,bu,!1,null,"a814ebae",null)),ku=Mu.exports,Lu=function(){var e=this,t=e._self._c;return t("div",[t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,"on-closed":e.onClosed,title:e.title},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[null!=e.wfItem?t("van-cell-group",[t("div",{staticClass:"van-textarea-field"},[t("van-field",{staticClass:"van-cell-field-title",attrs:{label:e.$tx("ecmapp.wflowform.fileTitle","文件标题"),readonly:!0}}),t("div",{staticClass:"van-cell van-field"},[t("div",{staticClass:"richtext-content",domProps:{innerHTML:e._s(e.wfItem.flSubject)}})])],1),t("van-field",{attrs:{label:e.$tx("ecmapp.wflowform.fileType","文件类型"),readonly:!0,"input-align":"right"},model:{value:e.wfItem.flType,callback:function(t){e.$set(e.wfItem,"flType",t)},expression:"wfItem.flType"}})],1):e._e(),void 0!=e.wfJsonData&&null!=e.submitHandle?t("SubmitHandle",{attrs:{"cur-t-n":e.curTN,"wf-instance":e.wfInstance,"submit-handle":e.submitHandle,"wf-json-data":e.wfJsonData,"common-idea-list":e.commonIdeaList,"submit-template-list":e.submitTemplateList}}):e._e(),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"submit",expression:"'submit'"}],attrs:{square:"",type:"info"},on:{click:e.submitFile}},[e._v("提 交")])],1)],1),t("SelectDialog"),t("SelectOuterDeputy")],1)},Su=[],Tu={name:"ShortcutProcessing",components:{},props:{},data:function(){return{title:this.$tx("ecmapp.wflowform.submitHandle","提交办理"),wfItem:null,curTN:null,wfInstance:null,wfJsonData:null,submitHandle:null,commonIdeaList:null,submitTemplateList:null,dialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("startBatchProcessFiles",this.startBatchProcessFiles)},beforeDestroy:function(){this.$bus.off("startBatchProcessFiles",this.startBatchProcessFiles)},mounted:function(){},methods:{startBatchProcessFiles:function(e,t,n){var a=this;this.title=t,this.wfItem=n.wfItem;var o=x(this.wfItem.itemUrl);o.openType="BatchSubmit",this.dialogFormVisible=!0,this.$wfEngine.loadWfInstance(this,o).then((function(e){"success"!==e.code&&a.$dialog.alert({message:e.message})}))},submitFile:function(){var e=this,t="BatchSubmit",n=this.$wfEngine.checkSubmitHandle(this,t);if("success"===n.code){var a=x(this.wfItem.itemUrl);this.$wfEngine.checkOuterDeputy(this,a).then((function(n){"success"!==n.code?e.$dialog.alert({message:n.message}):e.$wfEngine.saveWfInstance(e,t,a).then((function(t){"success"===t.code?(e.$bus.emit("refreshListData"),e.dialogFormVisible=!1):e.$dialog.alert({message:t.message})}))}))}else this.$dialog.alert({message:n.message})},onClosed:function(){this.wfItem=null,this.curTN=null,this.wfInstance=null,this.wfJsonData=null,this.submitHandle=null,this.commonIdeaList=null,this.submitTemplateList=null}}},Du=Tu,Nu=(0,Ca.A)(Du,Lu,Su,!1,null,"4c6e246c",null),Au=Nu.exports;sc.install=function(e){e.component(sc.name,sc)},gc.install=function(e){e.component(gc.name,gc)},Mc.install=function(e){e.component(Mc.name,Mc)},Nc.install=function(e){e.component(Nc.name,Nc)},Rc.install=function(e){e.component(Rc.name,Rc)},Gc.install=function(e){e.component(Gc.name,Gc)},yu.install=function(e){e.component(yu.name,yu)},ku.install=function(e){e.component(ku.name,ku)},Au.install=function(e){e.component(Au.name,Au)};var Yu=sc,Cu=gc,Ou=Mc,Iu=Nc,Eu=Rc,$u=Gc,Pu=yu,ju=ku,Fu=Au,Hu=function(){var e=this,t=e._self._c;return t("div",{staticClass:"richtext-container"},[t("div",{style:"height:"+e.height,attrs:{id:"richtext"}})])},Bu=[],Uu={name:"RichtextEditor",components:{},props:{value:{type:String,default:""},height:{type:String,default:"calc(100vh - 44px - 60px)"},toolbar:{type:String,default:"standard"},startupMode:{type:String,default:"wysiwyg"},imageUploadUrl:{type:String,default:null},autoFocus:{type:Boolean,default:!0},placeholder:{type:String,default:""}},data:function(){return{editor:null}},computed:{},watch:{value:function(){this.value!==this.editor.txt.html()&&this.editor.txt.html(this.value)}},created:function(){},beforeDestroy:function(){this.editor.destroy()},mounted:function(){this.placeholder=this.$tx("ecmapp.common.enterMainText","请输入正文");var e=this,t=window.wangEditor;this.editor=new t("#richtext"),this.editor.config.menus=["head","bold","fontSize","fontName","italic","underline","lineHeight","foreColor","backColor","justify","image","table","undo","redo"],this.editor.config.zIndex=5,this.editor.config.height=this.height,this.editor.config.focus=this.autoFocus,this.editor.config.showFullScreen=!1,this.editor.config.placeholder=this.placeholder;var n=this.imageUploadUrl;null==n&&this.$vnode.context.wfInstance&&(n=this.$vnode.context.wfEngineUrl?"/apigw/"+this.$vnode.context.wfEngineUrl+"/uploadBodyPicture?module="+this.$vnode.context.wfInstance.module+"&busiDataId="+this.$vnode.context.wfInstance.busiDataId+"&attachsType=BODY&apigw=/apigw":"/apigw/workflow/wfBusiAttach/uploadBodyPicture?module="+this.$vnode.context.wfInstance.module+"&busiDataId="+this.$vnode.context.wfInstance.busiDataId+"&attachsType=BODY&apigw=/apigw"),-1!==n.indexOf("?")?n+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken():n+="?httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),0===n.indexOf("/apigw")&&(n=n.replace("/apigw","")),this.editor.config.uploadImgServer=n,this.editor.config.uploadImgShowBase64=!1,this.editor.config.showLinkImg=!1,this.editor.config.uploadImgMaxLength=1,this.editor.config.uploadImgAccept=["jpg","jpeg","png","gif"],this.editor.config.customUploadImg=function(t,a){var o=new FormData;o.append("file",t[0]),e.$http({url:n,method:"POST",data:o}).then((function(e){e.url&&a(e.url)}))},this.editor.config.uploadVideoServer=n,this.editor.config.uploadVideoMaxSize=52428800,this.editor.config.uploadVideoAccept=["mp4"],this.editor.config.showLinkVideo=!1,this.editor.config.customUploadVideo=function(t,a){var o=new FormData;o.append("file",t[0]),e.$http({url:n,method:"POST",data:o}).then((function(e){e.url&&a(e.url)}))},this.editor.txt.eventHooks.keydownEvents.push(this.keydownEvents),this.editor.config.onchange=function(t){e.$emit("input",t)},this.editor.create(),this.editor.txt.html(this.value);var a=this.$vnode.context.canEdit;this.$vnode.context.curTN&&(a=this.$vnode.context.curTN.tnCanEdit),0!==a&&"0"!==a||(this.editor.config.placeholder="",this.editor.disable())},methods:{keydownEvents:function(e){if("source"!==this.startupMode){if(32===e.keyCode)return e.cancel&&e.cancel(),e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.editor.cmd.do("insertHTML"," "),!1;if(9===e.keyCode)return e.cancel&&e.cancel(),e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.editor.cmd.do("insertHTML","    "),!1}},tabDownEvents:function(e){return e.cancel&&e.cancel(),e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.editor.cmd.do("insertHTML","    "),!1}}},Ru=Uu,Wu=(a(1582),(0,Ca.A)(Ru,Hu,Bu,!1,null,"1c8100d7",null)),Vu=Wu.exports;Vu.install=function(e){e.component(Vu.name,Vu)};var zu=Vu,Ju=a(9274),qu=a.n(Ju);function Gu(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({field:t.value},n.context,o.moduleCode,o.i18npkg,o);if(i){var r=e.querySelector(".van-field__label")||e.querySelector(".van-cell__title");if(r){if(r.querySelector("span").innerHTML=i,!r.classList.contains("van-field__label"))return;n.context.label&&n.context.$set(n.context,"label",i);var s=n.context.$vnode.tag;-1!==s.indexOf("-")&&(s=s.substring(s.lastIndexOf("-")+1));var l=null;l="TextareaField"===s?e.childNodes[1].querySelector(".van-field__control"):e.querySelector(".van-field__control"),l&&l&&l.placeholder&&("SelectField"===s||"DatetimeField"===s||"InputField"===s&&null!==n.context.onClick&&!n.context.nodeFieldReadOnly?l.placeholder=n.context.$tx("common.plChooseContent",{content:i})||l.placeholder:l.placeholder=n.context.$tx("common.plInputContent",{content:i})||l.placeholder)}else e.innerHTML=i}}}function Ku(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=e["__vue__"].label,r=n.context.$i18n.generateTitle({field:t.value,type:"option",value:i},n.context,o.moduleCode,o.i18npkg,o);if(r){n.context.formItem.formatterMap&&n.context.formItem.formatterMap.forEach((function(e){e.value==i&&(e.text=r)}));var s=e.querySelector(".el-checkbox__label")||e.querySelector(".el-radio__label")||e.querySelector("span");s&&(s.innerHTML=r)}}}function Qu(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({formTitle:t.value,code:t.value},n.context,o.moduleCode,o.i18npkg,o);i&&(e.querySelector(".content")?e.querySelector(".content").innerHTML=i:e.innerHTML=i)}}function Zu(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({i18nCode:t.value},n.context,o.moduleCode,o.i18npkg,o);if(i){var r=e.querySelector(".van-field__label")||e.querySelector(".van-cell__title"),s=e.querySelector(".el-checkbox__label")||e.querySelector(".el-radio__label")||e.querySelector(".el-radio-button__inner");r?r.querySelector("span").innerHTML=i:s?s.innerHTML=i:e.innerHTML=i}}}function Xu(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({btnI18nCode:t.value},n.context,o.moduleCode,o.i18npkg,o);i&&(e.innerHTML=i)}}function ef(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({btnI18nCode:t.value,type:"commandBarBtn"},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function tf(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({wfNodeName:t.value},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function nf(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({wfPathName:t.value},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function af(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({wfIdeaLabel:t.value},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function of(e){return of="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},of(e)}qu().directive("field-lbl",{inserted:function(e,t,n){Gu(e,t,n)},update:function(e,t,n){Gu(e,t,n)}}),qu().directive("option-lbl",{inserted:function(e,t,n){Ku(e,t,n)},update:function(e,t,n){Ku(e,t,n)}}),qu().directive("form-title",{inserted:function(e,t,n){Qu(e,t,n)},update:function(e,t,n){Qu(e,t,n)}}),qu().directive("text-lbl",{inserted:function(e,t,n){Zu(e,t,n)},update:function(e,t,n){Zu(e,t,n)}}),qu().directive("pageBtn-lbl",{inserted:function(e,t,n){Xu(e,t,n)},update:function(e,t,n){Xu(e,t,n)}}),qu().directive("wfbtn-lbl",{inserted:function(e,t,n){ef(e,t,n)},update:function(e,t,n){ef(e,t,n)}}),qu().directive("wfnode-lbl",{inserted:function(e,t,n){tf(e,t,n)},update:function(e,t,n){tf(e,t,n)}}),qu().directive("wfpath-lbl",{inserted:function(e,t,n){nf(e,t,n)},update:function(e,t,n){nf(e,t,n)}}),qu().directive("wfidea-lbl",{inserted:function(e,t,n){af(e,t,n)},update:function(e,t,n){af(e,t,n)}});var rf=a(5093);qu().directive("format-value",{inserted:function(e,t,n){var a=t.value;void 0!==n.context.tbColumns&&n.context.tbColumns.forEach((function(t){if(t.field===a)if(n.context.pageInfo.passenger&&"object"===of(n.context.pageInfo.passenger[t.field+"Options"])&&n.context.pageInfo.passenger[t.field+"Options"].length>0)of(n.context.pageInfo.passenger[t.field+"Options"].forEach((function(t){t.value+""===e.textContent&&(e.innerHTML=t.text)})));else{var o=t.elementFormatter||"";if(o=o.replace(/\r\n/g,"<br>").replace(/\\r\\n/g,"<br>").replace(/\n/g,"<br>").split("<br>"),0===o[0].indexOf("format:")){var i=o[0].substring(7),r=e.textContent;if(null!==r&&""!==r&&-1!==r.indexOf(":")){var s=new Date(r.replace(/-/g,"/"));isNaN(s.getTime())||(e.innerHTML=rf(new Date(r.replace(/-/g,"/"))).format(i.replace("yyyy","YYYY").replace("dd","DD")))}}else if(0===o[0].indexOf("valueSuffix:")){var l=e.textContent;null!==l&&""!==l&&""!==l.trim()&&(e.innerHTML=l+o[0].split(":")[1])}else if(o.length>2||2===o.length&&""!==o[1])for(var d=0;d<o.length;d++)if(o[d].split(":").length>1){var c=o[d].split(":")[0];if(e.textContent===c){e.innerHTML=o[d].split(":")[1];break}}}}))}});var sf={inserted:function(e,t,n){var a=t.value;if(void 0!==a){var o=null;o="FOOTER"===e.parentElement.tagName||"FOOTER"===e.parentElement.parentElement.tagName?"FOOTER_BTN$":k(e.parentElement,"el-table-toolbar-right")||k(e.parentElement.parentElement,"el-table-toolbar-right")?"TOOLBAR_BTN$":k(e,"el-link")&&e.parentElement.parentElement.tagName("TD")?"COLUMN_BTN$":"OTHER$";var i=o+a;n.context.$store.dispatch("user/hasPermission",{href:n.context.$route.meta.href,pcode:i}).then((function(t){t||e.parentNode&&e.parentNode.removeChild(e)}))}}},lf=function(e){e.directive("permission",sf)};window.Vue&&(window["permission"]=sf,Vue.use(lf)),sf.install=lf;var df=sf;qu().use(df);var cf=a(4466);function uf(e){return uf="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},uf(e)}function ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ff(Object(n),!0).forEach((function(t){mf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mf(e,t,n){return(t=hf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hf(e){var t=vf(e,"string");return"symbol"==uf(t)?t:t+""}function vf(e,t){if("object"!=uf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=uf(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var gf=[Zn,sa,da,pa,Ea,Cd,Od,Id,Ed,$d,Pd,jd,Fd,ts,ys,Ua,Ga,Eo,ur,zd,Ta,Yu,Cu,Ou,Iu,Eu,$u,Fu,Pu,ju,lo,al,zu],yf=function e(t){e.installed||(e.installed=!0,gf.map((function(e){t.use(e)})))};"undefined"!==typeof window&&window.Vue&&(yf(window.Vue),setTimeout((function(){window.$alert=window.Vue.prototype.$dialog.alert,Vue.prototype.$tx=_f.$tx,window.$tx=g.$tx}),0));var _f=g,bf=Un,wf=Hn.A,xf=cf.A,Mf=pf({install:yf},gf),kf=Mf}(),o}()}));
|
|
290
|
+
function a(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:a});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[a].concat(e.init):a,n.call(this,e)}}function a(){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)}}n.d(t,{L8:function(){return E},aH:function(){return O}});var o="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},i=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach((function(n){a[n]=l(e[n],t)})),a}function d(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function u(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var p=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)||{}},m={namespaced:{configurable:!0}};m.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.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)},p.prototype.forEachChild=function(e){d(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&d(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&d(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&d(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,m);var h=function(e){this.register([],e,!1)};function v(e,t,n){if(t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return void 0;v(e.concat(a),t.getChild(a),n.modules[a])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){v([],this.root,e)},h.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0);var o=new p(t,n);if(0===e.length)this.root=o;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],o)}t.modules&&d(t.modules,(function(t,o){a.register(e.concat(o),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],a=t.getChild(n);a&&a.runtime&&t.removeChild(n)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var y=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&C(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var a=e.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var o=this,i=this,s=i.dispatch,l=i.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return l.call(o,e,t,n)},this.strict=a;var d=this._modules.root.state;M(this,d,[],this._modules.root),x(this,d),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:g.config.devtools;c&&r(this)},_={state:{configurable:!0}};function b(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 w(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;M(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={};d(o,(function(t,n){i[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var r=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:i}),g.config.silent=r,e.strict&&N(e),a&&(n&&e._withCommit((function(){a._data.$$state=null})),g.nextTick((function(){return a.$destroy()})))}function M(e,t,n,a,o){var i=!n.length,r=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[r],e._modulesNamespaceMap[r]=a),!i&&!o){var s=A(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){g.set(s,l,a.state)}))}var d=a.context=k(e,r,n);a.forEachMutation((function(t,n){var a=r+n;S(e,a,t,d)})),a.forEachAction((function(t,n){var a=t.root?n:r+n,o=t.handler||t;T(e,a,o,d)})),a.forEachGetter((function(t,n){var a=r+n;D(e,a,t,d)})),a.forEachChild((function(a,i){M(e,t,n.concat(i),a,o)}))}function k(e,t,n){var a=""===t,o={dispatch:a?e.dispatch:function(n,a,o){var i=Y(n,a,o),r=i.payload,s=i.options,l=i.type;return s&&s.root||(l=t+l),e.dispatch(l,r)},commit:a?e.commit:function(n,a,o){var i=Y(n,a,o),r=i.payload,s=i.options,l=i.type;s&&s.root||(l=t+l),e.commit(l,r,s)}};return Object.defineProperties(o,{getters:{get:a?function(){return e.getters}:function(){return L(e,t)}},state:{get:function(){return A(e.state,n)}}}),o}function L(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,a)===t){var i=o.slice(a);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function S(e,t,n,a){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,a.state,t)}))}function T(e,t,n,a){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return u(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function D(e,t,n,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)})}function N(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(e,t){return t.reduce((function(e,t){return e[t]}),e)}function Y(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function C(e){g&&e===g||(g=e,a(g))}_.state.get=function(){return this._vm._data.$$state},_.state.set=function(e){0},y.prototype.commit=function(e,t,n){var a=this,o=Y(e,t,n),i=o.type,r=o.payload,s=(o.options,{type:i,payload:r}),l=this._mutations[i];l&&(this._withCommit((function(){l.forEach((function(e){e(r)}))})),this._subscribers.slice().forEach((function(e){return e(s,a.state)})))},y.prototype.dispatch=function(e,t){var n=this,a=Y(e,t),o=a.type,i=a.payload,r={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(r,n.state)}))}catch(d){0}var l=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);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(r,n.state)}))}catch(d){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(r,n.state,e)}))}catch(d){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var a=this;return this._watcherVM.$watch((function(){return e(a.state,a.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),M(this,this.state,e,this._modules.get(e),n.preserveState),x(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=A(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),w(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,_);var O=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=B(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[a].vuex=!0})),n})),I=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var a=this.$store.commit;if(e){var i=B(this.$store,"mapMutations",e);if(!i)return;a=i.context.commit}return"function"===typeof o?o.apply(this,[a].concat(t)):a.apply(this.$store,[o].concat(t))}})),n})),E=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;o=e+o,n[a]=function(){if(!e||B(this.$store,"mapGetters",e))return this.$store.getters[o]},n[a].vuex=!0})),n})),$=H((function(e,t){var n={};return j(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var i=B(this.$store,"mapActions",e);if(!i)return;a=i.context.dispatch}return"function"===typeof o?o.apply(this,[a].concat(t)):a.apply(this.$store,[o].concat(t))}})),n})),P=function(e){return{mapState:O.bind(null,e),mapGetters:E.bind(null,e),mapMutations:I.bind(null,e),mapActions:$.bind(null,e)}};function j(e){return F(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 F(e){return Array.isArray(e)||c(e)}function H(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function B(e,t,n){var a=e._modulesNamespaceMap[n];return a}function U(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var a=e.transformer;void 0===a&&(a=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var i=e.actionFilter;void 0===i&&(i=function(e,t){return!0});var r=e.actionTransformer;void 0===r&&(r=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var d=e.logActions;void 0===d&&(d=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var u=l(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,i){var r=l(i);if(n(e,u,r)){var s=V(),d=o(e),f="mutation "+e.type+s;R(c,f,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",a(u)),c.log("%c mutation","color: #03A9F4; font-weight: bold",d),c.log("%c next state","color: #4CAF50; font-weight: bold",a(r)),W(c)}u=r})),d&&e.subscribeAction((function(e,n){if(i(e,n)){var a=V(),o=r(e),s="action "+e.type+a;R(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",o),W(c)}})))}}function R(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch(o){e.log(t)}}function W(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+J(e.getHours(),2)+":"+J(e.getMinutes(),2)+":"+J(e.getSeconds(),2)+"."+J(e.getMilliseconds(),3)}function z(e,t){return new Array(t+1).join(e)}function J(e,t){return z("0",t-e.toString().length)+e}var q={Store:y,install:C,version:"3.6.2",mapState:O,mapMutations:I,mapGetters:E,mapActions:$,createNamespacedHelpers:P,createLogger:U};t.Ay=q},9326:function(e,t,n){var a={"./app.js":3070,"./route.js":8076};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=9326},2397:function(e,t,n){var a={"./user.js":819};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=2397},5196:function(e,t,n){var a={"./app.js":8532,"./route.js":8256,"./settings.js":4578,"./tagsView.js":6575};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=5196},2817:function(e,t,n){"use strict";e.exports=n.p+"img/iconfont.de4e4895.svg"},4480:function(e){"use strict";e.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI86EhkAAABfAAAAFZjbWFw55q3AAAAAdwAAAFwZ2x5ZlzrmLUAAANUAAAAfGhlYWQbEaBvAAAA4AAAADZoaGVhB94DgwAAALwAAAAkaG10eAgAAAAAAAHUAAAACGxvY2EAPgAAAAADTAAAAAZtYXhwAQ4AMAAAARgAAAAgbmFtZT5U/n0AAAPQAAACbXBvc3TX3mJ6AAAGQAAAADAAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAIAAQAAAAEAAHSLjk5fDzz1AAsEAAAAAADb+S45AAAAANv5LjkAAP+tBAADUwAAAAgAAgAAAAAAAAABAAAAAgAkAAIAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5nLmcgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABVAABAAAAAABOAAMAAQAAACwAAwAKAAABVAAEACIAAAAEAAQAAQAA5nL//wAA5nL//wAAAAEABAAAAAEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAABwAAAAAAAAAAQAA5nIAAOZyAAAAAQAAAAAAPgAAAAIAAP+tA9MDUwAVACMAACUnPgE1LgEnDgEHHgEXMjY3FxYyNjQBPgE3HgEXDgEHIi4CA8OwKywE6rCw6gQE6rBGgTevECse/MQDr4SEsAMDsIQ+cVgvB683gUaw6gQE6rCw6gQsK7APHisBvYSvAwOvhISwAy9YcQAAAAAAABIA3gABAAAAAAAAABUAAAABAAAAAAABAAgAFQABAAAAAAACAAcAHQABAAAAAAADAAgAJAABAAAAAAAEAAgALAABAAAAAAAFAAsANAABAAAAAAAGAAgAPwABAAAAAAAKACsARwABAAAAAAALABMAcgADAAEECQAAACoAhQADAAEECQABABAArwADAAEECQACAA4AvwADAAEECQADABAAzQADAAEECQAEABAA3QADAAEECQAFABYA7QADAAEECQAGABABAwADAAEECQAKAFYBEwADAAEECQALACYBaQpDcmVhdGVkIGJ5IGljb25mb250Cmljb25mb250UmVndWxhcmljb25mb250aWNvbmZvbnRWZXJzaW9uIDEuMGljb25mb250R2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20ACgBDAHIAZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AAoAaQBjAG8AbgBmAG8AbgB0AFIAZQBnAHUAbABhAHIAaQBjAG8AbgBmAG8AbgB0AGkAYwBvAG4AZgBvAG4AdABWAGUAcgBzAGkAbwBuACAAMQAuADAAaQBjAG8AbgBmAG8AbgB0AEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgEDAAZzZWFyY2gAAA=="},356:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAB7klEQVRYCcXWzUvCYADH8d8201pEhyK0sheiF3qhoDxEQd26F3Xq3N9QUFhQQdSf0J9QRMfOBRX0AlGHEEUJirBDkWjm5trjzLacc5u6PYexic/z+T7bBAEbx/TOxzpll09wQYDfloBfnGze8gA5bnnAf9zSADXcsoBCuCUBWnjFA4rhFQ3Qg1csQC9ekQAjeNkDjOJlDTCDly3ALF6WgFLwkgNKxUkAQw5mhhG8z0Nj3ufEW0zAe1xQcKYCjOC+TgZ7C7UY9jrQ1kDj5D6lCKAVVzoujOCj7Qw2Z1k4HdLfjscXPk8wFGAEH/Ey2Jpj4criZ4EU9k+TeQG6H4Ea3uumsTjuQiwpIPr592yHWhnszLOocUo7Pw+m4D9KgE/n+fpeQjWcLLUt7nCyuwozg1WZFyzwmkZ/M4PdBRZsFr8McVgTcU4FJ2sUvQOFcDK5XXypBlocoCkKE2JIYx2Fpalq1LqknV+FOawexpHKf/RkemZoBmjhZPZ1mEc9S6HPIy3T42ZyL9xthMOKiH9r4GSNggHFcDKZPPWLIIf4t4CxDgaUeCfIuHvisHwQR5LLXGoeVAP04PJVH555hKJpdDXRuInw2DhO4Ev5c5d/XXEuJcs+MorLppo6VQRYjZPiXIAdeC7ALjwTYCdOAn4Agxr0fnLMxsEAAAAASUVORK5CYII="},9274:function(t){"use strict";t.exports=e},2634:function(){}},n={};function a(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=t,function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){a.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){a.p=""}(),function(){a.b=document.baseURI||self.location.href}();var o={};return function(){"use strict";a.r(o),a.d(o,{default:function(){return kf},httpRequest:function(){return bf},lang:function(){return _f},store:function(){return wf},webSocket:function(){return xf}});var e={};if(a.r(e),a.d(e,{hasBrowserEnv:function(){return lt},hasStandardBrowserEnv:function(){return dt},hasStandardBrowserWebWorkerEnv:function(){return ct},origin:function(){return ut}}),"undefined"!==typeof window){var t=window.document.currentScript,n=a(5003);t=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var i=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(a.p=i[1])}var r=a(8259),s=a(1954),l=a.n(s);function d(e){return d="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},d(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=m(e,"string");return"symbol"==d(t)?t:t+""}function m(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h={};h.en=u(u({},r.ot.en),l().en),h.zhCN=u(u({},r.ot.zhCN),l().zhCN),h.es=u(u({},r.ot.es),l().es),h.ja=u(u({},r.ot.ja),l().en);var v={};v.aiomessages=h,v.generateTitle=r.KS,v.getPageTitle=r.wS,v.getLanguage=r.Z0,v.$tx=r.Pc;var g=v;function y(e){return y="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},y(e)}var _=a(5093);function b(e){return 0===arguments.length?null:("object"===y(e)?t=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(/-/g,"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),t=new Date(e)),t);var t}function w(e,t){var n=b(e);null===e&&(n=Date().now());var a=Date.now(),o=(a-n)/1e3;return void 0===t?o<30?"刚刚":o<3600?Math.floor(o/60)+"分钟前":o<86400?Math.floor(o/3600)+"小时前":o<172800?"1天前":n.getFullYear()<b(a).getFullYear()?n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate():n.getMonth()+1+"/"+n.getDate():(t=t.replace("yyyy","YYYY").replace("dd","DD"),_(n).format(t))}function x(e){e=null==e?window.location.href:e;var t=e.substring(e.lastIndexOf("?")+1),n={},a=/([^?&=]+)=([^?&=]*)/g;return t.replace(a,(function(e,t,a){var o=decodeURIComponent(t),i=decodeURIComponent(a);return i=String(i),n[o]=i,e})),n}function M(e){if(!e&&"object"!==y(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===y(e[n])?t[n]=M(e[n]):t[n]=e[n]})),t}function k(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function L(e,t){k(e,t)||(e.className+=" "+t)}function S(e,t){if(k(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function T(e){if(e<1024)return e+"B";if(e<1048576){var t=e/1024;return t=t.toFixed(2),t+"KB"}if(e<1073741824){var n=e/1048576;return n=n.toFixed(2),n+"MB"}var a=e/1073741824;return a=a.toFixed(2),a+"GB"}function D(e,t,n){return e.sort((function(e,a){var o=e[t],i=a[t];return"desc"===n?o>i?-1:o<i?1:0:o<i?-1:o>i?1:0}))}function N(e,t){return function(){return e.apply(t,arguments)}}const{toString:A}=Object.prototype,{getPrototypeOf:Y}=Object,C=(e=>t=>{const n=A.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),O=e=>(e=e.toLowerCase(),t=>C(t)===e),I=e=>t=>typeof t===e,{isArray:E}=Array,P=I("undefined");function j(e){return null!==e&&!P(e)&&null!==e.constructor&&!P(e.constructor)&&U(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F=O("ArrayBuffer");function H(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&F(e.buffer),t}const B=I("string"),U=I("function"),R=I("number"),W=e=>null!==e&&"object"===typeof e,V=e=>!0===e||!1===e,z=e=>{if("object"!==C(e))return!1;const t=Y(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J=O("Date"),q=O("File"),G=O("Blob"),K=O("FileList"),Q=e=>W(e)&&U(e.pipe),Z=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||U(e.append)&&("formdata"===(t=C(e))||"object"===t&&U(e.toString)&&"[object FormData]"===e.toString()))},X=O("URLSearchParams"),[ee,te,ne,ae]=["ReadableStream","Request","Response","Headers"].map(O),oe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let a,o;if("object"!==typeof e&&(e=[e]),E(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let r;for(a=0;a<i;a++)r=o[a],t.call(null,e[r],r,e)}}function re(e,t){t=t.toLowerCase();const n=Object.keys(e);let a,o=n.length;while(o-- >0)if(a=n[o],t===a.toLowerCase())return a;return null}const se=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),le=e=>!P(e)&&e!==se;function de(){const{caseless:e}=le(this)&&this||{},t={},n=(n,a)=>{const o=e&&re(t,a)||a;z(t[o])&&z(n)?t[o]=de(t[o],n):z(n)?t[o]=de({},n):E(n)?t[o]=n.slice():t[o]=n};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&ie(arguments[a],n);return t}const ce=(e,t,n,{allOwnKeys:a}={})=>(ie(t,((t,a)=>{n&&U(t)?e[a]=N(t,n):e[a]=t}),{allOwnKeys:a}),e),ue=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),fe=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pe=(e,t,n,a)=>{let o,i,r;const s={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),i=o.length;while(i-- >0)r=o[i],a&&!a(r,e,t)||s[r]||(t[r]=e[r],s[r]=!0);e=!1!==n&&Y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},me=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},he=e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!R(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},ve=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&Y(Uint8Array)),ge=(e,t)=>{const n=e&&e[Symbol.iterator],a=n.call(e);let o;while((o=a.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},ye=(e,t)=>{let n;const a=[];while(null!==(n=e.exec(t)))a.push(n);return a},_e=O("HTMLFormElement"),be=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),we=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xe=O("RegExp"),Me=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};ie(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(a[o]=i||n)})),Object.defineProperties(e,a)},ke=e=>{Me(e,((t,n)=>{if(U(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];U(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Le=(e,t)=>{const n={},a=e=>{e.forEach((e=>{n[e]=!0}))};return E(e)?a(e):a(String(e).split(t)),n},Se=()=>{},Te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,De="abcdefghijklmnopqrstuvwxyz",Ne="0123456789",Ae={DIGIT:Ne,ALPHA:De,ALPHA_DIGIT:De+De.toUpperCase()+Ne},Ye=(e=16,t=Ae.ALPHA_DIGIT)=>{let n="";const{length:a}=t;while(e--)n+=t[Math.random()*a|0];return n};function Ce(e){return!!(e&&U(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const Oe=e=>{const t=new Array(10),n=(e,a)=>{if(W(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const o=E(e)?[]:{};return ie(e,((e,t)=>{const i=n(e,a+1);!P(i)&&(o[t]=i)})),t[a]=void 0,o}}return e};return n(e,0)},Ie=O("AsyncFunction"),Ee=e=>e&&(W(e)||U(e))&&U(e.then)&&U(e.catch);var $e={isArray:E,isArrayBuffer:F,isBuffer:j,isFormData:Z,isArrayBufferView:H,isString:B,isNumber:R,isBoolean:V,isObject:W,isPlainObject:z,isReadableStream:ee,isRequest:te,isResponse:ne,isHeaders:ae,isUndefined:P,isDate:J,isFile:q,isBlob:G,isRegExp:xe,isFunction:U,isStream:Q,isURLSearchParams:X,isTypedArray:ve,isFileList:K,forEach:ie,merge:de,extend:ce,trim:oe,stripBOM:ue,inherits:fe,toFlatObject:pe,kindOf:C,kindOfTest:O,endsWith:me,toArray:he,forEachEntry:ge,matchAll:ye,isHTMLForm:_e,hasOwnProperty:we,hasOwnProp:we,reduceDescriptors:Me,freezeMethods:ke,toObjectSet:Le,toCamelCase:be,noop:Se,toFiniteNumber:Te,findKey:re,global:se,isContextDefined:le,ALPHABET:Ae,generateString:Ye,isSpecCompliantForm:Ce,toJSONObject:Oe,isAsyncFn:Ie,isThenable:Ee};function Pe(e,t,n,a,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),o&&(this.response=o)}$e.inherits(Pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$e.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const je=Pe.prototype,Fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Fe[e]={value:e}})),Object.defineProperties(Pe,Fe),Object.defineProperty(je,"isAxiosError",{value:!0}),Pe.from=(e,t,n,a,o,i)=>{const r=Object.create(je);return $e.toFlatObject(e,r,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Pe.call(r,e.message,t,n,a,o),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};var He=Pe,Be=null;function Ue(e){return $e.isPlainObject(e)||$e.isArray(e)}function Re(e){return $e.endsWith(e,"[]")?e.slice(0,-2):e}function We(e,t,n){return e?e.concat(t).map((function(e,t){return e=Re(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Ve(e){return $e.isArray(e)&&!e.some(Ue)}const ze=$e.toFlatObject($e,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Je(e,t,n){if(!$e.isObject(e))throw new TypeError("target must be an object");t=t||new(Be||FormData),n=$e.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$e.isUndefined(t[e])}));const a=n.metaTokens,o=n.visitor||c,i=n.dots,r=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=s&&$e.isSpecCompliantForm(t);if(!$e.isFunction(o))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if($e.isDate(e))return e.toISOString();if(!l&&$e.isBlob(e))throw new He("Blob is not supported. Use a Buffer instead.");return $e.isArrayBuffer(e)||$e.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if($e.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if($e.isArray(e)&&Ve(e)||($e.isFileList(e)||$e.endsWith(n,"[]"))&&(s=$e.toArray(e)))return n=Re(n),s.forEach((function(e,a){!$e.isUndefined(e)&&null!==e&&t.append(!0===r?We([n],a,i):null===r?n:n+"[]",d(e))})),!1;return!!Ue(e)||(t.append(We(o,n,i),d(e)),!1)}const u=[],f=Object.assign(ze,{defaultVisitor:c,convertValue:d,isVisitable:Ue});function p(e,n){if(!$e.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+n.join("."));u.push(e),$e.forEach(e,(function(e,a){const i=!($e.isUndefined(e)||null===e)&&o.call(t,e,$e.isString(a)?a.trim():a,n,f);!0===i&&p(e,n?n.concat(a):[a])})),u.pop()}}if(!$e.isObject(e))throw new TypeError("data must be an object");return p(e),t}var qe=Je;function Ge(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ke(e,t){this._pairs=[],e&&qe(e,this,t)}const Qe=Ke.prototype;Qe.append=function(e,t){this._pairs.push([e,t])},Qe.toString=function(e){const t=e?function(t){return e.call(this,t,Ge)}:Ge;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ze=Ke;function Xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function et(e,t,n){if(!t)return e;const a=n&&n.encode||Xe,o=n&&n.serialize;let i;if(i=o?o(t,n):$e.isURLSearchParams(t)?t.toString():new Ze(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}class tt{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$e.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var nt=tt,at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ot="undefined"!==typeof URLSearchParams?URLSearchParams:Ze,it="undefined"!==typeof FormData?FormData:null,rt="undefined"!==typeof Blob?Blob:null,st={isBrowser:!0,classes:{URLSearchParams:ot,FormData:it,Blob:rt},protocols:["http","https","file","blob","url","data"]};const lt="undefined"!==typeof window&&"undefined"!==typeof document,dt=(e=>lt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),ct=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),ut=lt&&window.location.href||"http://localhost";var ft={...e,...st};function pt(e,t){return qe(e,new ft.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return ft.isNode&&$e.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function mt(e){return $e.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function ht(e){const t={},n=Object.keys(e);let a;const o=n.length;let i;for(a=0;a<o;a++)i=n[a],t[i]=e[i];return t}function vt(e){function t(e,n,a,o){let i=e[o++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=o>=e.length;if(i=!i&&$e.isArray(a)?a.length:i,s)return $e.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!r;a[i]&&$e.isObject(a[i])||(a[i]=[]);const l=t(e,n,a[i],o);return l&&$e.isArray(a[i])&&(a[i]=ht(a[i])),!r}if($e.isFormData(e)&&$e.isFunction(e.entries)){const n={};return $e.forEachEntry(e,((e,a)=>{t(mt(e),a,n,0)})),n}return null}var gt=vt;function yt(e,t,n){if($e.isString(e))try{return(t||JSON.parse)(e),$e.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(n||JSON.stringify)(e)}const _t={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=$e.isObject(e);o&&$e.isHTMLForm(e)&&(e=new FormData(e));const i=$e.isFormData(e);if(i)return a?JSON.stringify(gt(e)):e;if($e.isArrayBuffer(e)||$e.isBuffer(e)||$e.isStream(e)||$e.isFile(e)||$e.isBlob(e)||$e.isReadableStream(e))return e;if($e.isArrayBufferView(e))return e.buffer;if($e.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pt(e,this.formSerializer).toString();if((r=$e.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return qe(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),yt(e)):e}],transformResponse:[function(e){const t=this.transitional||_t.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if($e.isResponse(e)||$e.isReadableStream(e))return e;if(e&&$e.isString(e)&&(n&&!this.responseType||a)){const n=t&&t.silentJSONParsing,i=!n&&a;try{return JSON.parse(e)}catch(o){if(i){if("SyntaxError"===o.name)throw He.from(o,He.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ft.classes.FormData,Blob:ft.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$e.forEach(["delete","get","head","post","put","patch"],(e=>{_t.headers[e]={}}));var bt=_t;const wt=$e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var xt=e=>{const t={};let n,a,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),a=e.substring(o+1).trim(),!n||t[n]&&wt[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)})),t};const Mt=Symbol("internals");function kt(e){return e&&String(e).trim().toLowerCase()}function Lt(e){return!1===e||null==e?e:$e.isArray(e)?e.map(Lt):String(e)}function St(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;while(a=n.exec(e))t[a[1]]=a[2];return t}const Tt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dt(e,t,n,a,o){return $e.isFunction(a)?a.call(this,t,n):(o&&(t=n),$e.isString(t)?$e.isString(a)?-1!==t.indexOf(a):$e.isRegExp(a)?a.test(t):void 0:void 0)}function Nt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function At(e,t){const n=$e.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+n,{value:function(e,n,o){return this[a].call(this,t,e,n,o)},configurable:!0})}))}class Yt{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(e,t,n){const o=kt(t);if(!o)throw new Error("header name must be a non-empty string");const i=$e.findKey(a,o);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=Lt(e))}const i=(e,t)=>$e.forEach(e,((e,n)=>o(e,n,t)));if($e.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if($e.isString(e)&&(e=e.trim())&&!Tt(e))i(xt(e),t);else if($e.isHeaders(e))for(const[r,s]of e.entries())o(s,r,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=kt(e),e){const n=$e.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return St(e);if($e.isFunction(t))return t.call(this,e,n);if($e.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=kt(e),e){const n=$e.findKey(this,e);return!(!n||void 0===this[n]||t&&!Dt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function o(e){if(e=kt(e),e){const o=$e.findKey(n,e);!o||t&&!Dt(n,n[o],o,t)||(delete n[o],a=!0)}}return $e.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;while(n--){const o=t[n];e&&!Dt(this,this[o],o,e,!0)||(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return $e.forEach(this,((a,o)=>{const i=$e.findKey(n,o);if(i)return t[i]=Lt(a),void delete t[o];const r=e?Nt(o):String(o).trim();r!==o&&delete t[o],t[r]=Lt(a),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $e.forEach(this,((n,a)=>{null!=n&&!1!==n&&(t[a]=e&&$e.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[Mt]=this[Mt]={accessors:{}},n=t.accessors,a=this.prototype;function o(e){const t=kt(e);n[t]||(At(a,e),n[t]=!0)}return $e.isArray(e)?e.forEach(o):o(e),this}}Yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$e.reduceDescriptors(Yt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),$e.freezeMethods(Yt);var Ct=Yt;function Ot(e,t){const n=this||bt,a=t||n,o=Ct.from(a.headers);let i=a.data;return $e.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function It(e){return!(!e||!e.__CANCEL__)}function Et(e,t,n){He.call(this,null==e?"canceled":e,He.ERR_CANCELED,t,n),this.name="CanceledError"}$e.inherits(Et,He,{__CANCEL__:!0});var $t=Et;function Pt(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function jt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ft(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),d=a[r];o||(o=l),n[i]=s,a[i]=l;let c=r,u=0;while(c!==i)u+=n[c++],c%=e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),l-o<t)return;const f=d&&l-d;return f?Math.round(1e3*u/f):void 0}}var Ht=Ft;function Bt(e,t){let n=0;const a=1e3/t;let o=null;return function(){const t=!0===this,i=Date.now();if(t||i-n>a)return o&&(clearTimeout(o),o=null),n=i,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),a-(i-n)))}}var Ut=Bt,Rt=(e,t,n=3)=>{let a=0;const o=Ht(50,250);return Ut((n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-a,l=o(s),d=i<=r;a=i;const c={loaded:i,total:r,progress:r?i/r:void 0,bytes:s,rate:l||void 0,estimated:l&&r&&d?(r-i)/l:void 0,event:n,lengthComputable:null!=r};c[t?"download":"upload"]=!0,e(c)}),n)},Wt=ft.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function a(n){let a=n;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(e){const t=$e.isString(e)?a(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Vt=ft.hasStandardBrowserEnv?{write(e,t,n,a,o,i){const r=[e+"="+encodeURIComponent(t)];$e.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),$e.isString(a)&&r.push("path="+a),$e.isString(o)&&r.push("domain="+o),!0===i&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qt(e,t){return e&&!zt(t)?Jt(e,t):t}const Gt=e=>e instanceof Ct?{...e}:e;function Kt(e,t){t=t||{};const n={};function a(e,t,n){return $e.isPlainObject(e)&&$e.isPlainObject(t)?$e.merge.call({caseless:n},e,t):$e.isPlainObject(t)?$e.merge({},t):$e.isArray(t)?t.slice():t}function o(e,t,n){return $e.isUndefined(t)?$e.isUndefined(e)?void 0:a(void 0,e,n):a(e,t,n)}function i(e,t){if(!$e.isUndefined(t))return a(void 0,t)}function r(e,t){return $e.isUndefined(t)?$e.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,o,i){return i in t?a(n,o):i in e?a(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t)=>o(Gt(e),Gt(t),!0)};return $e.forEach(Object.keys(Object.assign({},e,t)),(function(a){const i=l[a]||o,r=i(e[a],t[a],a);$e.isUndefined(r)&&i!==s||(n[a]=r)})),n}var Qt=e=>{const t=Kt({},e);let n,{data:a,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:l}=t;if(t.headers=s=Ct.from(s),t.url=et(qt(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$e.isFormData(a))if(ft.hasStandardBrowserEnv||ft.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ft.hasStandardBrowserEnv&&(o&&$e.isFunction(o)&&(o=o(t)),o||!1!==o&&Wt(t.url))){const e=i&&r&&Vt.read(r);e&&s.set(i,e)}return t};const Zt="undefined"!==typeof XMLHttpRequest;var Xt=Zt&&function(e){return new Promise((function(t,n){const a=Qt(e);let o=a.data;const i=Ct.from(a.headers).normalize();let r,{responseType:s}=a;function l(){a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let d=new XMLHttpRequest;function c(){if(!d)return;const a=Ct.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),o=s&&"text"!==s&&"json"!==s?d.response:d.responseText,i={data:o,status:d.status,statusText:d.statusText,headers:a,config:e,request:d};Pt((function(e){t(e),l()}),(function(e){n(e),l()}),i),d=null}d.open(a.method.toUpperCase(),a.url,!0),d.timeout=a.timeout,"onloadend"in d?d.onloadend=c:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(c)},d.onabort=function(){d&&(n(new He("Request aborted",He.ECONNABORTED,a,d)),d=null)},d.onerror=function(){n(new He("Network Error",He.ERR_NETWORK,a,d)),d=null},d.ontimeout=function(){let e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const t=a.transitional||at;a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),n(new He(e,t.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,a,d)),d=null},void 0===o&&i.setContentType(null),"setRequestHeader"in d&&$e.forEach(i.toJSON(),(function(e,t){d.setRequestHeader(t,e)})),$e.isUndefined(a.withCredentials)||(d.withCredentials=!!a.withCredentials),s&&"json"!==s&&(d.responseType=a.responseType),"function"===typeof a.onDownloadProgress&&d.addEventListener("progress",Rt(a.onDownloadProgress,!0)),"function"===typeof a.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",Rt(a.onUploadProgress)),(a.cancelToken||a.signal)&&(r=t=>{d&&(n(!t||t.type?new $t(null,e,d):t),d.abort(),d=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const u=jt(a.url);u&&-1===ft.protocols.indexOf(u)?n(new He("Unsupported protocol "+u+":",He.ERR_BAD_REQUEST,e)):d.send(o||null)}))};const en=(e,t)=>{let n,a=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;a.abort(t instanceof He?t:new $t(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new He(`timeout ${t} of ms exceeded`,He.ETIMEDOUT))}),t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=a;return s.unsubscribe=r,[s,()=>{i&&clearTimeout(i),i=null}]};var tn=en;const nn=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,o=0;while(o<n)a=o+t,yield e.slice(o,a),o=a},an=async function*(e,t,n){for await(const a of e)yield*nn(ArrayBuffer.isView(a)?a:await n(String(a)),t)},on=(e,t,n,a,o)=>{const i=an(e,t,o);let r=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await i.next();if(t)return e.close(),void a();let s=o.byteLength;n&&n(r+=s),e.enqueue(new Uint8Array(o))},cancel(e){return a(e),i.return()}},{highWaterMark:2})},rn=(e,t)=>{const n=null!=e;return a=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:a})))},sn="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,ln=sn&&"function"===typeof ReadableStream,dn=sn&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cn=ln&&(()=>{let e=!1;const t=new Request(ft.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),un=65536,fn=ln&&!!(()=>{try{return $e.isReadableStream(new Response("").body)}catch(e){}})(),pn={stream:fn&&(e=>e.body)};sn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!pn[t]&&(pn[t]=$e.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new He(`Response type '${t}' is not supported`,He.ERR_NOT_SUPPORT,n)})}))})(new Response);const mn=async e=>null==e?0:$e.isBlob(e)?e.size:$e.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:$e.isArrayBufferView(e)?e.byteLength:($e.isURLSearchParams(e)&&(e+=""),$e.isString(e)?(await dn(e)).byteLength:void 0),hn=async(e,t)=>{const n=$e.toFiniteNumber(e.getContentLength());return null==n?mn(t):n};var vn=sn&&(async e=>{let{url:t,method:n,data:a,signal:o,cancelToken:i,timeout:r,onDownloadProgress:s,onUploadProgress:l,responseType:d,headers:c,withCredentials:u="same-origin",fetchOptions:f}=Qt(e);d=d?(d+"").toLowerCase():"text";let p,m,[h,v]=o||i||r?tn([o,i],r):[];const g=()=>{!p&&setTimeout((()=>{h&&h.unsubscribe()})),p=!0};let y;try{if(l&&cn&&"get"!==n&&"head"!==n&&0!==(y=await hn(c,a))){let e,n=new Request(t,{method:"POST",body:a,duplex:"half"});$e.isFormData(a)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body&&(a=on(n.body,un,rn(y,Rt(l)),null,dn))}$e.isString(u)||(u=u?"cors":"omit"),m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:a,duplex:"half",withCredentials:u});let o=await fetch(m);const i=fn&&("stream"===d||"response"===d);if(fn&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=$e.toFiniteNumber(o.headers.get("content-length"));o=new Response(on(o.body,un,s&&rn(t,Rt(s,!0)),i&&g,dn),e)}d=d||"text";let r=await pn[$e.findKey(pn,d)||"text"](o,e);return!i&&g(),v&&v(),await new Promise(((t,n)=>{Pt(t,n,{data:r,headers:Ct.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(_){if(g(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new He("Network Error",He.ERR_NETWORK,e,m),{cause:_.cause||_});throw He.from(_,_&&_.code,e,m)}});const gn={http:Be,xhr:Xt,fetch:vn};$e.forEach(gn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const yn=e=>`- ${e}`,_n=e=>$e.isFunction(e)||null===e||!1===e;var bn={getAdapter:e=>{e=$e.isArray(e)?e:[e];const{length:t}=e;let n,a;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],a=n,!_n(n)&&(a=gn[(t=String(n)).toLowerCase()],void 0===a))throw new He(`Unknown adapter '${t}'`);if(a)break;o[t||"#"+i]=a}if(!a){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(yn).join("\n"):" "+yn(e[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return a},adapters:gn};function wn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $t(null,e)}function xn(e){wn(e),e.headers=Ct.from(e.headers),e.data=Ot.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=bn.getAdapter(e.adapter||bt.adapter);return t(e).then((function(t){return wn(e),t.data=Ot.call(e,e.transformResponse,t),t.headers=Ct.from(t.headers),t}),(function(t){return It(t)||(wn(e),t&&t.response&&(t.response.data=Ot.call(e,e.transformResponse,t.response),t.response.headers=Ct.from(t.response.headers))),Promise.reject(t)}))}const Mn="1.7.2",kn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{kn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ln={};function Sn(e,t,n){if("object"!==typeof e)throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;while(o-- >0){const i=a[o],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new He("option "+i+" must be "+n,He.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new He("Unknown option "+i,He.ERR_BAD_OPTION)}}kn.transitional=function(e,t,n){function a(e,t){return"[Axios v"+Mn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new He(a(o," has been removed"+(t?" in "+t:"")),He.ERR_DEPRECATED);return t&&!Ln[o]&&(Ln[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Tn={assertOptions:Sn,validators:kn};const Dn=Tn.validators;class Nn{constructor(e){this.defaults=e,this.interceptors={request:new nt,response:new nt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(a){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Kt(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:o}=t;void 0!==n&&Tn.assertOptions(n,{silentJSONParsing:Dn.transitional(Dn.boolean),forcedJSONParsing:Dn.transitional(Dn.boolean),clarifyTimeoutError:Dn.transitional(Dn.boolean)},!1),null!=a&&($e.isFunction(a)?t.paramsSerializer={serialize:a}:Tn.assertOptions(a,{encode:Dn.function,serialize:Dn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&$e.merge(o.common,o[t.method]);o&&$e.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ct.concat(i,o);const r=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));const l=[];let d;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,u=0;if(!s){const e=[xn.bind(this),void 0];e.unshift.apply(e,r),e.push.apply(e,l),c=e.length,d=Promise.resolve(t);while(u<c)d=d.then(e[u++],e[u++]);return d}c=r.length;let f=t;u=0;while(u<c){const e=r[u++],t=r[u++];try{f=e(f)}catch(p){t.call(this,p);break}}try{d=xn.call(this,f)}catch(p){return Promise.reject(p)}u=0,c=l.length;while(u<c)d=d.then(l[u++],l[u++]);return d}getUri(e){e=Kt(this.defaults,e);const t=qt(e.baseURL,e.url);return et(t,e.params,e.paramsSerializer)}}$e.forEach(["delete","get","head","options"],(function(e){Nn.prototype[e]=function(t,n){return this.request(Kt(n||{},{method:e,url:t,data:(n||{}).data}))}})),$e.forEach(["post","put","patch"],(function(e){function t(t){return function(n,a,o){return this.request(Kt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Nn.prototype[e]=t(),Nn.prototype[e+"Form"]=t(!0)}));var An=Nn;class Yn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{n.subscribe(e),t=e})).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e((function(e,a,o){n.reason||(n.reason=new $t(e,a,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Yn((function(t){e=t}));return{token:t,cancel:e}}}var Cn=Yn;function On(e){return function(t){return e.apply(null,t)}}function In(e){return $e.isObject(e)&&!0===e.isAxiosError}const En={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(En).forEach((([e,t])=>{En[t]=e}));var $n=En;function Pn(e){const t=new An(e),n=N(An.prototype.request,t);return $e.extend(n,An.prototype,t,{allOwnKeys:!0}),$e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Pn(Kt(e,t))},n}const jn=Pn(bt);jn.Axios=An,jn.CanceledError=$t,jn.CancelToken=Cn,jn.isCancel=It,jn.VERSION=Mn,jn.toFormData=qe,jn.AxiosError=He,jn.Cancel=jn.CanceledError,jn.all=function(e){return Promise.all(e)},jn.spread=On,jn.isAxiosError=In,jn.mergeConfig=Kt,jn.AxiosHeaders=Ct,jn.formToJSON=e=>gt($e.isHTMLForm(e)?new FormData(e):e),jn.getAdapter=bn.getAdapter,jn.HttpStatusCode=$n,jn.default=jn;var Fn=jn,Hn=a(5730);Fn.defaults.withCredentials=!1;var Bn=Fn.create({baseURL:"/apigw",timeout:window.httpRequestTimeout||12e4});Bn.interceptors.request.use((function(e){if(window.VUE_APP_BASE_API&&(e.baseURL=window.VUE_APP_BASE_API),"put"!==e.method&&"delete"!==e.method||window.forbidPut&&(e.headers["X-HTTP-Method-Override"]=e.method.toUpperCase(),e.method="post"),Hn.A.getters.token&&e.url&&0!==e.url.indexOf("/login")){e.headers["httpPort"]=window.$tempPort||location.port,sessionStorage.getItem("productCode")?e.headers["productCode"]=sessionStorage.getItem("productCode"):window.productCode&&-1===location.href.indexOf("productCode")&&(e.headers["productCode"]=window.productCode);var t="";t=location.href.indexOf("windwx.html")>0?location.href.split("windwx.html")[0]:location.href.split("#")[0],"/"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),e.headers["apigw"]=t+"/apigw"}else window.productCode&&-1===location.href.indexOf("productCode")&&(e.headers["productCode"]=window.productCode);e.headers["ecweb-csrf-token"]=decodeURIComponent(sessionStorage.getItem("ecweb-csrf-token"))||"";var n=(0,r.Z0)();return"en"===n?n="en-US":"zhCN"===n&&(n="zh-CN"),e.headers["accept-language"]=n,e}),(function(e){return console.log(e),Promise.reject(e)})),Bn.interceptors.response.use((function(e){var t=JSON.stringify(e.data);return-1!==t.indexOf("9999-12-31 00:00:00")&&(t=t.replaceAll('"9999-12-31 00:00:00"',"null"),e.data=JSON.parse(t)),e.data}),(function(e){var t=window.$wapp||window.$mapp;if(t&&t.customErrorHander)t.customErrorHander(e);else{if(!e.response||401!==e.response.status||-1!==location.href.toLowerCase().indexOf("login")||-1!==e.config.url.indexOf("http:")||-1!==e.config.url.indexOf("https:")){if(e.response&&e.response.data&&e.response.data.code)return e.response.data;if(e.response&&e.response.data){var n={code:"error",body:{}};return e.response.data.message?n.message=e.response.data.message:e.response.data.error?404===e.response.data.status?n.message=window.$tx("request.status404"):n.message=e.response.data.error:e.response.data.msg?n.message=e.response.data.msg:n.message=e.response.data,"Network Error"===n.message&&(n.message="当前设备网络异常,请联系管理员或更换设备重试。"),n.message+="<br>"+e.config.url,"wapp"===window.vType?window.$alert(n.message,window.$tx("common.operationTip"),{type:"error",dangerouslyUseHTMLString:!0}):window.$alert({message:n.message,type:"error",allowHtml:!0}),Promise.reject(n.message)}var a=e;return"string"!==typeof a&&e.message&&(a=e.message),e.config.onUploadProgress?{code:"failure",message:a,body:{}}:(a+="<br>"+e.config.url,"wapp"===window.vType?window.$alert(a,window.$tx("common.operationTip"),{type:"error",dangerouslyUseHTMLString:!0}):window.$alert({message:a,type:"error",allowHtml:!0}),Promise.reject(a))}Hn.A.dispatch("user/resetToken").then((function(){if("wapp"!==window.vType)return window.$alert({message:window.$tx("request.status401"),type:"error",callback:function(){if("ecinc"===window.mappType)window.$wv.closeWindow();else if("wx"===window.mappType||window.wx)window.wx.closeWindow();else if("dd"===window.mappType||window.dd)window.dd.biz.navigation.close();else if("web"===window.mappType){var e="";-1!==location.href.indexOf("#")&&-1===location.href.indexOf("login")&&(e+="?redirect="+location.href.split("#")[1]),window.flutter_inappwebview?window.location="#/loginFail":window.location="#/login"+e,window.location.reload()}else window.close()}}),Promise.reject(e);window.$alert(window.$tx("request.status401relogin"),window.$tx("common.operationTip"),{type:"error",callback:function(){-1!==location.href.indexOf("#/wflow?")||-1!==location.href.indexOf("#/viewcontent?")||-1!==location.href.indexOf("#/viewpdffile?")||-1!==location.href.indexOf("#/designer?")?(window.opener&&window.opener.location.reload(),window.close()):location.reload()}})}))}}));var Un=Bn,Rn=a(5373),Wn=a.n(Rn);function Vn(e){return Vn="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},Vn(e)}function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return(t=Gn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){var t=Kn(e,"string");return"symbol"==Vn(t)?t:t+""}function Kn(e,t){if("object"!=Vn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Vn(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Qn=function(e){var t=new e({methods:{addNew:function(e){return Un({url:e,params:{},method:"post"})},getById:function(e,t){return Un({url:e,method:"get",params:{id:t}})},insert:function(e,t){return Un({url:e,method:"post",data:t})},update:function(e,t){return this.http({url:e,method:"put",data:t})},http:function(e){if(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.httpRequest){var t="";t=location.href.indexOf("windwx.html")>0?location.href.split("windwx.html")[0]:location.href.split("#")[0],"/"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1));var n={};n.apigw=t+"/apigw",n.httpPort=location.port,n.Cookie=document.cookie,window.productCode&&(n["productCode"]=window.productCode);var a=e.url,o=(t.indexOf("/mindex.html")>-1?t.split("/mindex.html")[0]:t)+"/apigw"+("/"!==a.charAt(0)?"/"+a:a),i={url:o,method:e.method||"get",header:n};return e.data&&(i.bodydata=e.data),e.params&&(i.params=e.params),window.webkit.messageHandlers.httpRequest.postMessage([i,"httpPostCallback"]),new Promise((function(e){window.httpPostCallback=function(t){e("string"===typeof t?JSON.parse(t):t)}}))}return Un(e)},getResRoles:function(e,t,n,a,o,i){var r="base/resRolePermission/getResPermissionRoles";return i&&1!==i&&(r="base/resRolePermission/getResPermissionOwners"),Un({url:r,method:"get",params:{resId:e,resType:t,pcode:n,orgCode:a,sysCode:o,ownerType:i}})},upload:function(e,t,n,a){var o=new FormData;if(null!=n)for(var i in n)o.append(i,n[i]);return o.append("file",t),void 0!==a&&null!==a||(a={}),a.timeout=6e5,Un(Jn(Jn({url:e},a),{},{method:"put",data:o}))},listdata:function(e,t){var n=M(t);return delete n.list,delete n.navigatepageNums,delete n.busiformFields,Un({url:e,method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:Wn().stringify(n)})},querydata:function(e,t,n,a){return Un({url:e,method:"post",params:{orderBy:n,count:a},data:t})},deleteByIds:function(e,t,n){return Un({url:e,method:"delete",params:{ids:t.join(),confirmContinue:n}})},decryptData:function(e){return"string"===typeof e&&(e=JSON.parse(e)),Un({url:"/common/dataDecrypt",method:"post",contentType:"application/json",data:e})}}});"undefined"!==typeof window&&(window.$app=t),e.prototype.$app=t},Zn=Qn,Xn=a(2215),ea=a.n(Xn),ta="-"+location.port;sessionStorage.getItem("productCode")?ta="-"+sessionStorage.getItem("productCode"):-1!==location.href.indexOf("productCode=")&&(ta="-"+location.href.split("productCode=")[1].split("&")[0]);var na=(window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+ta,aa="ECWEB-ROLE-CODE-LIST"+ta,oa="ECWEB-PERMISSION-LIST"+ta,ia="PERSON_ORGAN_LIST"+ta,ra=function(e){var t=new e({methods:{getTokenKey:function(){return na},setProductCode:function(e,t){e[t]&&(sessionStorage.setItem("productCode",e[t]),ta="-"+e[t],na=(window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+ta,aa="ECWEB-ROLE-CODE-LIST"+ta,oa="ECWEB-PERMISSION-LIST"+ta,ia="PERSON_ORGAN_LIST"+ta)},getProductCode:function(){var e=sessionStorage.getItem("productCode");return"undefined"===e?null:e},removeProductCode:function(){return sessionStorage.removeItem("productCode")},getTicket:function(){var e=(window.ecwebTicket||"ecweb-ticket")+ta,t=ea().get(e);return"undefined"===t?null:t},setTicket:function(e){return ea().set((window.ecwebTicket||"ecweb-ticket")+ta,e)},removeTicket:function(){return ea().remove((window.ecwebTicket||"ecweb-ticket")+ta)},getToken:function(){var e=sessionStorage.getItem(na);return e||(e=ea().get(na),e||"-"!==ta||(e=ea().get(window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"))),"undefined"===e?null:e},setToken:function(e){return sessionStorage.setItem(na,e)},removeToken:function(){return ea().remove(na),ea().remove(na.replace("-"+ta,"")),sessionStorage.removeItem(na.replace("-"+ta,"")),sessionStorage.removeItem(na)},getCsrfToken:function(){return sessionStorage.getItem("ecweb-csrf-token")||""},setCsrfToken:function(e){return sessionStorage.setItem("ecweb-csrf-token",encodeURIComponent(e))},getRoles:function(){return sessionStorage.getItem(aa)},setRoles:function(e){return sessionStorage.setItem(aa,e)},removeRoles:function(){return sessionStorage.removeItem(aa)},getPermissions:function(){return sessionStorage.getItem(oa)},setPermissions:function(e){return sessionStorage.setItem(oa,e)},removePermissions:function(){return sessionStorage.removeItem(oa)},getOrganList:function(){return sessionStorage.getItem(ia)},setOrganList:function(e){return sessionStorage.setItem(ia,e)},removeOrganList:function(){return sessionStorage.removeItem(ia)}}});"undefined"!==typeof window&&(window.$auth=t),e.prototype.$auth=t},sa=ra,la=function(e){var t=new e({methods:{emit:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];this.$emit.apply(this,[e].concat(n))},on:function(e,t){this.$on(e,t)},off:function(e,t){this.$off(e,t)}}});"undefined"!==typeof window&&(window.$bus=t),e.prototype.$bus=t},da=la,ca=a(127),ua=a.n(ca),fa=function(e){var t=new e({methods:{formLogin:function(e){return Un({url:"formLogin",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:Wn().stringify(e)})},logout:function(){return Un({url:"logout",method:"get"})},getLoginUser:function(e){return new Promise((function(t){-1!==e.indexOf("&enjwt")?Un({method:"GET",url:"login/getRsaPublicKey"}).then((function(n){e=e.substring(0,e.length-6);var a=new window.JSEncrypt;a.setPublicKey(n.body.rsaPublicKey),e=a.decryptLong(e),t(ua()(e))})):t(ua()(e))}))},findNavMenus:function(e){var t="homepage/allm";return 1===e&&(t+="&nowf=1"),Un({url:t,method:"get"})},findUserRolePermissions:function(){return Un({url:"base/resRolePermission/getUserRolePermissions",method:"get"})},findH5apps:function(){var e=[{compare:"=",field:"status",value:1},{compare:"notLike",field:"h5Url",value:"app:"}],t="appType,orderNo,appCode";return Un({url:"mpp/h5app/querydata",method:"post",params:{orderBy:t},data:e})},getUIStyle:function(){return Un({url:"base/styleConfig/getUiStyleConfig",method:"get"})},getDefaultUIStyle:function(e){return Un({url:"base/styleConfig/getNiMingUiStyleConfig",method:"get",params:{orgCode:e}})}}});"undefined"!==typeof window&&(window.$user=t),e.prototype.$user=t},pa=fa;function ma(e){return ma="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},ma(e)}function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(n),!0).forEach((function(t){ga(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ga(e,t,n){return(t=ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e){var t=_a(e,"string");return"symbol"==ma(t)?t:t+""}function _a(e,t){if("object"!=ma(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=ma(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function ba(e){return ka(e)||Ma(e)||xa(e)||wa()}function wa(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xa(e,t){if(e){if("string"==typeof e)return La(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}function Ma(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ka(e){if(Array.isArray(e))return La(e)}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Sa=function(e){var t=new e({methods:{getWfParams:function(e){var t=e.$route.query;if(e.$route.query.itemurl){var n=e.$route.query.itemurl.split("?")[1].split("&");n.forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]}))}return t},loadWfInstance:function(e,t){var n=this;return new Promise((function(a){var o=t.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance";void 0!==t.wfName&&""!==t.wfName&&void 0!==t.busiCode&&""!==t.busiCode?(o+="/startWfInstance",t.wfName=decodeURI(t.wfName),t.startNodeName=decodeURI(t.startNodeName||"")):void 0!==t.wfInstanceId&&""!==t.wfInstanceId?o+="/activeWfInstanceById":void 0!==t.busiDataId&&""!==t.busiDataId?o+="/activeWfInstanceByBusiDataId":a({code:"error",message:"请求参数格式不正确,不能启动流程。"}),t.autoTest||(t.copyWfNodeUser=1,t.asyncLoading=1),"BatchSubmit"!==t.openType&&(t.submitMode=t.submitMode||window.submitMode),e.wfEngineUrl=o.substring(0,o.lastIndexOf("/")),e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:t,url:o}).then((function(o){if("success"===o.code){console.log("wfEngineService load success"),e.wfInstance=o.body.wfInstance,e.commandBar=e.wfInstance.passenger.commandBar,e.officeType=e.wfInstance.passenger.officeType||e.officeType,e.showAttachments=e.wfInstance.passenger.h5formShowAttachments||e.showAttachments,e.$set(e,"showAttachments",e.wfInstance.passenger.h5formShowAttachments||e.showAttachments),e.$forceUpdate(),e.vo=e.wfInstance.passenger.busiData||{},e.vo.dynamicFields?e.vo.dynamicFields=JSON.parse(e.vo.dynamicFields):e.vo.dynamicFields={},e.ideaContentStyle=e.wfInstance.passenger.ideaContentStyle||"default","datatable"===e.ideaContentStyle&&e.wfInstance.status>0?e.showHistoryIdeaList=!0:e.showHistoryIdeaList=!1;var i=e.wfInstance.passenger.wfIdeaList;if(i.forEach((function(e){var t=e.ideaContent;if(t&&-1!==t.indexOf('</p><p align="center">')&&-1===t.indexOf("<img")){var n=t.split('<div class="ideaDiv"');n.forEach((function(t){-1!==t.indexOf("><p>")&&-1!==t.indexOf('</p><p align="center">')&&(t=t.substring(t.indexOf("><p>")+3,t.indexOf('</p><p align="center">')),e.ideaContent=e.ideaContent.replace(t,t.replace(/ /g," ")))})),e.ideaContent=e.ideaContent.replace(/ id=/g," id="),e.ideaContent=e.ideaContent.replace(/ class=/g," class=")}else t&&-1!==t.indexOf("/download?")&&(e.ideaContent=t.replaceAll(/download\?/g,"download?csrfToken="+window.$auth.getCsrfToken()+"&"))})),e.wfIdeaList=i,e.curTN=o.body.curTN,e.curTN.staffOrgName&&(e.curTN.staffOrgShortName=e.curTN.staffOrgName.substring(e.curTN.staffOrgName.indexOf("-")+1)),e.wfJsonData=e.wfInstance.passenger.wfJsonData,"string"===typeof e.wfJsonData&&(e.wfJsonData=JSON.parse(e.wfJsonData)),e.wfJsonData&&e.wfJsonData.ideaLables&&(e.wfInstance.udmNodes||(e.wfInstance.udmNodes=[])),e.wfJsonData&&e.wfJsonData.routes){e.wfJsonData&&1===e.wfInstance.passenger.isUdmNodes&&(e.wfJsonData.routes=[]);var r={},s=[];e.wfJsonData.routes.forEach((function(e){e.taskNodes&&e.taskNodes.forEach((function(e){e.users&&e.users.length>0&&("copyWfNodeUser"!==e.users[0].type?r[e.id]=e:s.push(e))}))})),s.forEach((function(e){var t=e.users[0].copyWfNodeId;r[t]?e.users=JSON.parse(JSON.stringify(r[t].users)):e.users=[]}))}if(e.curTN.passenger&&e.curTN.passenger.quickProcess&&e.wfJsonData&&e.wfJsonData.routes){var l=e.wfJsonData.routes.filter((function(e){return"0"===e.type||"4"===e.type||"7"===e.type||"10"===e.type||"14"===e.type}));if(l.length>0&&l[0].taskNodes.length>0)if(l[0].taskNodes.length>1)delete e.curTN.passenger.quickProcess;else{var d=l[0].taskNodes[0].users;d.length>1&&"1"!==l[0].taskNodes[0].autoCheckedAll&&delete e.curTN.passenger.quickProcess}else 0===l.length&&delete e.curTN.passenger.quickProcess}else e.curTN.passenger&&delete e.curTN.passenger.quickProcess;if(e.wfInstance.udmNodes&&""!==e.wfInstance.udmNodes){for(var c=JSON.parse(e.wfInstance.udmNodes),u=0;u<c.length;u++)"chartData"===c[u].name&&(e.wfInstance.passenger.chartData=c[u],c.splice(u--,1));e.wfInstance.udmNodes=c}if(e.commonIdeaList=e.wfInstance.passenger.commonIdeaList,void 0===e.commonIdeaList&&(e.commonIdeaList=[]),e.commonIdea=e.commonIdeaList[0],e.submitTemplateList=e.wfInstance.passenger.submitTemplateList,e.wfJsonData&&e.wfJsonData.routes){void 0!==e.submitTemplateList&&void 0!==e.wfJsonData&&"{}"!==JSON.stringify(e.submitTemplateList)||(e.submitTemplateList=[]);for(var f=0;f<e.submitTemplateList.length;f++){var p=e.submitTemplateList[f];p.valid=!1,e.wfJsonData.routes.forEach((function(e,t){e.name===p.submitRoute&&(p.valid=!0)})),p.valid||e.submitTemplateList.splice(f--,1)}e.submitTemplateList.length>0&&(e.submitTemplate=e.submitTemplateList[0])}if(e.nbyjEnabled=e.wfInstance.passenger.nbyjEnabled,e.wfInstance.passenger.nbyjBtnName&&(e.nbyjBtnName=e.wfInstance.passenger.nbyjBtnName),delete e.wfInstance.passenger.busiData,delete e.wfInstance.passenger.commandBar,delete e.wfInstance.passenger.wfIdeaList,delete e.wfInstance.passenger.wfJsonData,delete e.wfInstance.passenger.commonIdeaList,delete e.wfInstance.passenger.submitTemplateList,delete e.wfInstance.passenger.nbyjEnabled,delete e.wfInstance.passenger.nbyjBtnName,e.submitHandle={route:{index:0},askSMS:0,keepConcern:0,openUrl:"/wflow?wfEngineUrl="+(t.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance"),curUserIdea:e.curTN.tnIdea},e.wfJsonData&&e.wfJsonData.routes){var m=ea().get("route-index-"+e.wfInstance.id);void 0!==m&&null!==m&&(m=parseInt(m),e.wfJsonData.routes.length>m&&(e.submitHandle.route.index=m))}if(e.wfAttachUrl="workflow/wfBusiAttach",e.modifyWfNodelogUrl="workflow/wfInstanceNodelog/modifyWfNodelog",o.body.ECCLOUD_FEIGN_CLIENT&&(t.wfEngineUrl?(e.wfAttachUrl=t.wfEngineUrl,e.modifyWfNodelogUrl=t.wfEngineUrl+"/modifyWfNodelog",e.wfEngineUrl=t.wfEngineUrl):e.wfEngineUrl&&(e.wfAttachUrl=e.wfEngineUrl,e.modifyWfNodelogUrl=e.wfEngineUrl+"/modifyWfNodelog")),e.attachments=o.body.attachList||[],n.setFlBodyFile(e),n.setCommandBar(e,e.commandBar),"wapp"===window.vType&&-1!==e.$route.fullPath.indexOf("itemurl=")){var h=e.$route.fullPath;e.$store.state.tagsView.visitedViews.forEach((function(t){t.fullPath===h&&(t.title=e.wfInstance.title)}))}if(void 0!==e.vo.flContent&&null!=e.vo.flContent&&-1!==e.vo.flContent.indexOf("/workflow/wfBusiAttach/downloadById")&&(e.vo.flContent=e.vo.flContent.replace(/src=\"\/workflow\/wfBusiAttach\/downloadById/g,'src="/apigw/workflow/wfBusiAttach/downloadById')),-1!==location.href.indexOf("viewContent=1")&&(e.navNames=[],e.navNames[0]=e.wfInstance.wfName,"string"===typeof e.vo.type?e.navNames[1]=e.vo.type:"string"===typeof e.vo.flDocumentType&&(e.navNames[1]=e.vo.flDocumentType)),e.wfInstance.passenger.locker){var v=e.wfInstance.passenger.locker;v.lockerAccount!==e.curTN.userAccount&&v.passenger.minutes<2?e.$notify({title:"提示",message:v.lockerName+"正在编辑此文件。",offset:60,duration:1e4,type:"warning"}):e.$set(e.curTN,"tnCanEdit",1),window.wfLockerIntervalId&&window.clearInterval(window.wfLockerIntervalId),window.wfLockerIntervalId=setInterval((function(){e.wfInstance&&e.wfInstance.id?e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},url:"workflow/wfInstance/refreshWfInstanceLock",params:{wfInstanceId:e.wfInstance.id,nodeName:e.curTN.tnNodeName}}).then((function(t){v=t.body.locker;var n=0;v.lockerAccount!==e.curTN.userAccount?t.body.minutes>=2&&(n=1):n=1,0===e.curTN.tnCanEdit&&1===n&&(e.$set(e.curTN,"tnCanEdit",1),e.$notify({title:"提示",message:"您已获取此文件的编辑。",offset:60,duration:1e4,type:"success"}))})):window.wfLockerIntervalId&&window.clearInterval(window.wfLockerIntervalId)}),6e4)}}a(o)}))}))},setUdmCustomRoutes:function(e){var t=null,n=-1,a=[];if(e.wfInstance.udmNodes.forEach((function(o,i){if(o.name===e.curTN.tnNodeName&&(t=o,n=i,e.wfInstance.passenger.udmNodeUsers)){var r=null;if(e.wfInstance.passenger.chartData){t.canEndWflow=0;var s=e.wfInstance.passenger.chartData.paths;s.forEach((function(n){if(n.preNodeId===t.uuid){var o=e.wfInstance.udmNodes.filter((function(e){if(e.uuid===n.targetNodeId)return e.users||(e.users=[]),!0}));r={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:n.name,fullName:n.name,taskNodes:[],type:n.pathType+""||"0"},o.length>0&&(r.taskNodes.push(JSON.parse(JSON.stringify(o[0]))),r.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers[o[0].name]||[]),a.push(r)}}))}if(null===r)if(e.wfInstance.udmNodes.length>i+1){t.canEndWflow=0;var l=e.wfInstance.udmNodes[i+1];l.users||(l.users=[]),r={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:e.$tx("ecwapp.Wflowform.SubmitHandle.sendRoute",{nextNode:l.name},"送".concat(l.name)),fullName:e.$tx("ecwapp.Wflowform.SubmitHandle.sendRoute",{nextNode:l.name},"送".concat(l.name)),taskNodes:[JSON.parse(JSON.stringify(l))],type:"0"},r.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers[l.name]||[],a.push(r)}else t.canEndWflow=1}0===i?o.icon="el-icon-video-play":i+1===e.wfInstance.udmNodes.length?o.icon="el-icon-finished":o.icon="el-icon-edit-outline"})),null==t)return e.udmNode=null,e.wfInstance.udmNodes=null,a;if(0!==t.canEndWflow){var o={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:e.$tx("ecwapp.Wflowform.SubmitHandle.endProcessing","结束处理"),fullName:e.$tx("ecwapp.Wflowform.SubmitHandle.endProcessing","结束处理"),taskNodes:[],type:"4"};a.push(o)}if(0!==t.returnHistoryTN&&n>0&&e.wfInstance.passenger.udmNodeUsers){var i={evtMsg:"",mustNextTN:"",evtCplPercent:"0",name:e.$tx("ecwapp.Wflowform.SubmitHandle.sendBack","退回"),taskNodes:[],type:"3"};2==t.returnHistoryTN?(i.name="退回发起人",i.taskNodes.push(JSON.parse(JSON.stringify(e.wfInstance.udmNodes[0]))),i.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser):(i.name="退回上一节点",i.taskNodes.push(JSON.parse(JSON.stringify(e.wfInstance.udmNodes[n-1]))),i.taskNodes[0].users=e.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser),i.fullName=i.name,a.push(i)}return a},setCommandBar:function(e,t){t.forEach((function(t){if(2===t.btnAlign&&(t.btnAlign=1),"btnOpenWordClick"===t.btnCode||"btnModifyFlTypeClick"===t.btnCode?t.btnShow=e.canEditBodyfile:t.btnShow=!0,t.i18nCode||(t.btnJavascript&&-1!==t.btnJavascript.indexOf("(")?-1!==t.btnJavascript.indexOf("btnDeleteClick")?t.i18nCode="writeoff":-1===t.btnJavascript.indexOf("btnOpenWordClick")&&-1===t.btnJavascript.indexOf("btnModifyFlowLog")||-1===t.btnJavascript.indexOf("('")||-1===t.btnJavascript.indexOf("')")?(t.i18nCode=t.btnJavascript.split("(")[0].replace("btn","").replace("Click",""),t.i18nCode=t.i18nCode.substring(0,1).toLowerCase()+t.i18nCode.substring(1)):t.i18nCode=t.btnJavascript.substring(t.btnJavascript.indexOf("('")+2,t.btnJavascript.indexOf("')")):t.btnIcon&&(t.i18nCode=t.btnIcon.replace(".svg",""))),t.btnParams=null,null!==t.btnJavascript&&"string"===typeof t.btnJavascript){"dialog"===window.submitMode&&-1!==t.btnJavascript.indexOf("btnSubmitClick()")&&(t.btnName="办理",t.btnJavascriptBak=t.btnJavascript,t.btnJavascript="btnStartDoingClick()");var n=t.btnJavascript;if(-1!==n.indexOf("(")){var a=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==a&&(a=a.replace(/'/g,"").split(","),t.btnParams=a),n=n.split("(")[0]}void 0!==e[n]?t.btnClick=e[n]:console.log("按钮方法不存在:"+t.btnName+" "+t.btnJavascript)}}))},setFlBodyFile:function(e){e.bodyfile=null,e.redTitleFile=null,e.noTracksFile=null;var t=!1;if(e.vo.flBodyFilename||e.vo.flbodyfilename||e.vo.signedFileName){for(var n=e.vo.flBodyFilename||e.vo.flbodyfilename||e.vo.signedFileName,a=n.substring(0,n.lastIndexOf(".")),o=0;o<e.attachments.length;o++){var i=e.attachments[o].fileName.substring(0,e.attachments[o].fileName.lastIndexOf("."));if("BODY"===e.attachments[o].fileType.toUpperCase()){if(i===a||e.attachments[o].originalName.split(".")[0]===a){var r=e.attachments[o].originalName.split(".")[1].toLowerCase();e.bodyfile&&"pdf"!==r&&"ofd"!==r||(e.bodyfile=e.attachments[o])}-1!==e.attachments[o].originalName.indexOf(".doc")&&e.attachments[o].originalName.split(".")[0]===e.wfInstance.bodyDocId&&(t=!0)}}e.bodyfile||e.attachments.forEach((function(t){var n=t.originalName.split(".")[1].toLowerCase();"BODY"!==t.fileType.toUpperCase()||"pdf"!==n&&"ofd"!==n||(e.bodyfile=t)})),e.bodyfile&&-1!==e.bodyfile.fileName.indexOf(e.wfInstance.bodyDocId)&&(e.bodyfile.bodyFileName=e.bodyfile.fileName,e.bodyfile.fileName=e.wfInstance.title+"."+e.bodyfile.originalName.split(".")[1])}else e.attachments.forEach((function(n){if("BODY"===n.fileType.toUpperCase()){var a=n.originalName.split(".")[1].toLowerCase();0!==n.fileName.indexOf("RedTitle_")||"pdf"!==a&&"ofd"!==a?0!==n.fileName.indexOf("NoTracks_")||"pdf"!==a&&"ofd"!==a?0===n.fileName.indexOf("SignedFile_")&&(e.bodyfile=n):(e.bodyfile=n,e.noTracksFile=JSON.parse(JSON.stringify(n))):(e.bodyfile=n,e.redTitleFile=JSON.parse(JSON.stringify(n))),-1!==n.originalName.indexOf(".doc")&&n.originalName.split(".")[0]===e.wfInstance.bodyDocId&&-1===n.filePath.indexOf("/noTracks/")&&(t=!0,0===e.wfInstance.haveDoc&&("NoTitle"===e.wfInstance.passenger.docEditMode?e.wfInstance.haveDoc=1:e.wfInstance.haveDoc=2))}})),e.bodyfile||e.attachments.forEach((function(t){if("BODY"===t.fileType.toUpperCase()&&t.originalName.split(".")[0]===e.wfInstance.bodyDocId){var n=t.originalName.split(".")[1].toLowerCase();"pdf"===n||"ofd"===n||-1!==t.filePath.indexOf("/noTracks/")?e.bodyfile=t:e.bodyfile||-1===t.originalName.indexOf(".doc")||(e.bodyfile=t)}}));null==e.bodyfile||0!==e.bodyfile.originalName.indexOf(e.wfInstance.bodyDocId+".")&&-1===e.bodyfile.fileName.indexOf(e.wfInstance.bodyDocId+".")?t=!0:(-1!==e.bodyfile.fileName.indexOf(e.wfInstance.bodyDocId+".")&&(e.bodyfile.bodyFileName=e.bodyfile.fileName,e.bodyfile.fileName=e.wfInstance.title+"."+e.bodyfile.fileName.split(".")[1]),e.wfInstance.status>0&&(e.bodyfile.notDelete=!0)),e.canEditBodyfile=t},getWfJsonData:function(e,t,n){var a=this;return new Promise((function(o){var i=n.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance";i+="/getWfJsonData",n.copyWfNodeUser=1,n.asyncLoading=1,n.submitMode=window.submitMode;var r=JSON.parse(JSON.stringify(t));r.udmNodes&&r.passenger.chartData&&r.udmNodes.push(r.passenger.chartData);var s={wfInstance:JSON.stringify(r),curTN:JSON.stringify(e.curTN)};e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:Wn().stringify(s),params:n,url:i}).then((function(t){if("success"===t.code){if(console.log("wfEngineService getWfJsonData success"),e.wfJsonData=t.body.wfJsonData,t.body.udmjysp&&(e.wfInstance.passenger.udmjysp=t.body.udmjysp,e.wfInstance.passenger.isUdmNodes=t.body.isUdmNodes,e.wfInstance.passenger.udmNodeUsers=t.body.udmNodeUsers),e.wfJsonData&&e.wfJsonData.routes){var n={},i=[];e.wfJsonData.routes.forEach((function(e){e.taskNodes&&e.taskNodes.forEach((function(e){e.users&&e.users.length>0&&("copyWfNodeUser"!==e.users[0].type?n[e.id]=e:i.push(e))}))})),i.forEach((function(e){var t=e.users[0].copyWfNodeId;n[t]?e.users=JSON.parse(JSON.stringify(n[t].users)):e.users=[]}))}if(e.wfJsonData&&e.wfJsonData.routes){var r=ea().get("route-index-"+e.wfInstance.id);void 0!==r&&null!==r&&(r=parseInt(r),e.wfJsonData.routes.length>r&&(e.submitHandle.route.index=r))}void 0!==e.submitTemplateList&&void 0!==e.wfJsonData&&"{}"!==JSON.stringify(e.submitTemplateList)||(e.submitTemplateList=[]);for(var s=0;s<e.submitTemplateList.length;s++){var l=e.submitTemplateList[s];l.valid=!1,e.wfJsonData&&e.wfJsonData.routes&&e.wfJsonData.routes.forEach((function(e,t){e.name===l.submitRoute&&(l.valid=!0)})),l.valid||e.submitTemplateList.splice(s--,1)}e.submitTemplate=e.submitTemplateList[0],a.$nextTick((function(){e.$bus.emit("initSubmitHandle")}))}o(t)}))}))},saveWfInstance:function(e,t,n){var a=this;return new Promise((function(o){e.submitHandle.submitType=t,delete e.submitHandle.selectedNodes,e.vobak=JSON.parse(JSON.stringify(e.vo)),e.wfJsonDatabak=JSON.parse(JSON.stringify(e.wfJsonData||{})),e.wfInstancebak=JSON.parse(JSON.stringify(e.wfInstance)),-1===e.vo.status&&(e.vo.status=0),e.wfInstance.passenger.busiData=JSON.parse(JSON.stringify(e.vo)),e.wfInstance.passenger.busiData.dynamicFields&&"string"!==typeof e.wfInstance.passenger.busiData.dynamicFields&&(e.wfInstance.passenger.busiData.dynamicFields=JSON.stringify(e.wfInstance.passenger.busiData.dynamicFields)),e.wfInstance.udmNodes&&""!==e.wfInstance.udmNodes?(e.wfInstance.title=e.vo.flSubject||e.vo.flFormName+"-"+e.wfInstance.creator+"-"+e.wfInstance.startTime,e.wfInstance.passenger.wfName=e.vo.flFormName,e.wfInstance.passenger.chartData&&e.wfInstance.udmNodes.push(e.wfInstance.passenger.chartData)):(e.wfInstance.udmNodes="",e.wfInstance.title=e.vo.flSubject||e.wfInstance.wfName+"-"+e.wfInstance.creator+"-"+e.wfInstance.startTime),e.submitHandle.nextTNProp=[],e.submitHandle.nextTNUser=[],e.submitHandle.elevel=e.vo.flELevel,e.vo.passenger&&e.vo.passenger.flELevelOptions&&e.vo.passenger.flELevelOptions.length>0&&e.vo.passenger.flELevelOptions.forEach((function(t){t.value===e.vo.flELevel&&(e.submitHandle.elvVal=t.level)})),e.submitHandle.busiCate=e.vo.flCate,e.vo.flSubSubject?e.submitHandle.busiContent=e.vo.flSubSubject:e.vo.flsubsubject?e.submitHandle.busiContent=e.vo.flsubsubject:e.submitHandle.busiContent=e.vo.flContent;var i=JSON.parse(JSON.stringify(e.submitHandle));if(-1!==t.indexOf("Save")){ea().set("route-index-"+e.wfInstance.id,i.route.index);var r=null==e.wfJsonData||null==e.wfJsonData.routes||0===e.wfJsonData.routes.length?{taskNodes:[]}:e.wfJsonData.routes[i.route.index];r.taskNodes.forEach((function(t,n){if(i.route[t.name]&&i.route[t.name].users&&i.route[t.name].users.length>0){var a="";i.route[t.name].users.forEach((function(e,t){""!==a&&(a+=";"),a+=e.id})),ea().set("route-wfuser-"+e.curTN.tnID+"-"+t.id,a)}})),delete i.submitRoute,delete i.nextTNProp,delete i.nextTNUser}else{ea().set("route-index-"+e.wfInstance.id,"",{expires:0});var s=null==e.wfJsonData||null==e.wfJsonData.routes||0===e.wfJsonData.routes.length?{taskNodes:[]}:e.wfJsonData.routes[i.route.index];"FlowAdminSubmit"===t?e.wfInstance.passenger.modifyType=e.$vnode.context.modifyType:"ReturnHistTNSubmit"===t&&(s=i.submitRoute),s.taskNodes.forEach((function(t,n){if(i.route[t.name]&&i.route[t.name].users&&i.route[t.name].users.length>0){var a="";i.route[t.name].users.forEach((function(e,t){void 0!==e.collapseNodes?e.collapseNodes.forEach((function(e){""!==a&&(a+=";"),a+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||""),e.deputy&&(e.deputy.deputyOrgName&&-1===e.deputy.deputyFullName.indexOf("-")&&(e.deputy.deputyFullName=e.deputy.deputyOrgName+"-"+e.deputy.deputyFullName),a+="->"+e.deputy.deputyFullName+"@"+e.deputy.deputyStaffId)})):(""!==a&&(a+=";"),a+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||""),e.deputy&&(e.deputy.deputyOrgName&&-1===e.deputy.deputyFullName.indexOf("-")&&(e.deputy.deputyFullName=e.deputy.deputyOrgName+"-"+e.deputy.deputyFullName),a+="->"+e.deputy.deputyFullName+"@"+e.deputy.deputyStaffId))})),delete t.users,i.nextTNProp.push(t),i.nextTNUser.push(a),ea().set("route-wfuser-"+e.curTN.tnID+"-"+t.id,"",{expires:0})}})),i.submitRoute=JSON.parse(JSON.stringify(s)),delete i.submitRoute["$$hashKey"],delete i.submitRoute.taskNodes}e.curTN.tnIdeaLabelID||(i.curUserIdea="");var l={wfInstance:JSON.stringify(e.wfInstance),curTN:JSON.stringify(e.curTN),submitHandle:JSON.stringify(i)};l.wfInstance=l.wfInstance.replace(/ src=\"http(.*?)\/workflow\/wfBusiAttach\/downloadById/g,' src="./workflow/wfBusiAttach/downloadById'),l.autoTest=n.autoTest,"BatchTestSubmit"===t?o({code:"success",submitHandle:l.submitHandle}):e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},data:Wn().stringify(l),url:(n.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance")+"/saveWfInstance"}).then((function(n){if("success"===n.code){if(n.body.wfInstance.passenger.wfJsonData){var i=n.body.wfInstance.passenger.wfJsonData;if("string"===typeof i&&(i=JSON.parse(i)),i&&i.routes){var r={};for(var s in i.routes.forEach((function(e){e.taskNodes&&e.taskNodes.forEach((function(e){e.users&&e.users.length>0&&(r[e.id]=e)}))})),r)if("copyWfNodeUser"===r[s].users[0].type){var d=r[s].users[0].copyWfNodeId;r[d]?r[s].users=JSON.parse(JSON.stringify(r[d].users)):r[s].users=[]}}e.wfJsonData=i}else e.wfJsonData=e.wfJsonDatabak;if(n.body.wfInstance.passenger.commandBar){var c=JSON.parse(JSON.stringify(n.body.wfInstance.passenger.commandBar));a.setCommandBar(e,c),e.commandBar=c}e.vo=e.vobak,e.wfInstance=e.wfInstancebak,!n.body.wfInstance||null!==e.wfInstance.id&&""!==e.wfInstance.id||(e.wfInstance.id=n.body.wfInstance.id,e.wfInstance.status=n.body.wfInstance.status,e.vo.status=n.body.wfInstance.status),n.body.curTN&&(e.curTN=n.body.curTN),"BatchSubmit"===t&&(n.submitHandle=l.submitHandle),e.attachments.forEach((function(e){delete e.forward})),delete e.wfInstance.passenger.forwardAttachs,delete e.wfInstance.passenger.commandBar,delete e.wfInstance.passenger.wfJsonData,"function"===typeof e.onWflowFormSubmited&&e.onWflowFormSubmited(e),a.$nextTick((function(){e.$bus.emit("initSubmitHandle")}))}else e.wfInstance=e.wfInstancebak,e.wfJsonData=e.wfJsonDatabak,e.vo=e.vobak,delete e.wfInstance.passenger.forwardAttachs;o(n)}))}))},checkSubmitHandle:function(e,t){if(delete e.submitHandle.needCheckOuterDeputy,e.submitHandle.selectedNodes=[],-1===t.indexOf("Submit"))return{code:"success",message:"提交处理数据准备完成。"};var n=e.wfJsonData.routes[e.submitHandle.route.index];if(!n)return{code:"warning",message:"没有可用的提交路径。"};1===n.taskNodes.length&&1===n.taskNodes[0].users.length&&void 0!==n.taskNodes[0].users[0].account&&(e.submitHandle.route[n.taskNodes[0].name]={users:n.taskNodes[0].users});for(var a,o=!1,i=0,r=function(){var t=n.taskNodes[s];if(3!==t.type&&"3"!==t.type&&(i+=1),9!==t.tmLmtType&&"9"!==t.tmLmtType&&""===t.timeLimit&&(""===t.timeLimitHour||null===t.timeLimitHour||void 0===t.timeLimitHour))return{v:{code:"warning",message:"请输入“"+t.name+"”环节处理时限。"}};if(e.submitHandle.route[t.name]&&e.submitHandle.route[t.name].users&&e.submitHandle.route[t.name].users.length>0&&(e.submitHandle.selectedNodes.push(t.name),"9"!==t.pathType&&(o=!0,3!==t.type&&"3"!==t.type))){e.submitHandle.needCheckOuterDeputy||(e.submitHandle.needCheckOuterDeputy=[]);var a=e.submitHandle.route[t.name].users,r=[];a.forEach((function(e){var t;e.collapseNodes?(t=r).push.apply(t,ba(e.collapseNodes)):r.push(e)})),(3===t.todoMode||"3"===t.todoMode)&&a.length>1&&(r=r.slice(0,1)),e.submitHandle.needCheckOuterDeputy.push({wfnodeId:t.id,wfnodeName:t.name,users:r,todoType:t.todoType})}return-1===n.mustNextTN.indexOf(t.name)||e.submitHandle.route[t.name]&&e.submitHandle.route[t.name].users&&0!==e.submitHandle.route[t.name].users.length?void 0:{v:{code:"warning",message:"请选择“"+t.name+"”处理人。"}}},s=0;s<n.taskNodes.length;s++)if(a=r(),a)return a.v;if(i>0&&!o)return{code:"warning",message:"请选择处理人。"};if(1===e.curTN.tnIdeaIsMust&&null!==e.curTN.tnIdeaLabelID&&(null===e.submitHandle.curUserIdea||""===e.submitHandle.curUserIdea.trim()))return{code:"warning",message:"请填写处理意见。"};if(1===e.curTN.tnIdeaAttachment||8===e.curTN.tnIdeaAttachment){var l=[];if(e.attachments&&(l=e.attachments.filter((function(t){return t.uploadBy.indexOf(e.curTN.tnID)}))),0===l.length&&(!e.doNextAttach||!e.doNextAttach.file)&&(!e.doNextAttachList||0===e.doNextAttachList.length))return{code:"warning",message:"请上传意见附件。"}}return{code:"success",message:"提交处理数据准备完成"}},checkOuterDeputy:function(e,t){var n=this;return new Promise((function(a){if(e.submitHandle.needCheckOuterDeputy&&e.submitHandle.needCheckOuterDeputy.length>0){var o=e.submitHandle.needCheckOuterDeputy;delete e.submitHandle.needCheckOuterDeputy,e.$http({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},data:Wn().stringify({wfInstance:JSON.stringify(e.wfInstance),nextTNUsers:JSON.stringify(o)}),url:(t.wfEngineUrl||e.wfEngineUrl||"workflow/wfInstance")+"/findOuterDeputy"}).then((function(t){if("success"===t.code)if(t.body.outerDeputys&&t.body.outerDeputys.length>0){var o=[];t.body.outerDeputys.forEach((function(e){e.users.forEach((function(t){t.wfnodeId=e.wfnodeId,t.wfnodeName=e.wfnodeName,t.deputy=t.deputys[0],o.push(t)}))})),t.body.confirmOuterDeputys?n.$bus.emit("selectOuterDeputys",o,e.submitHandle.route,a):(o.forEach((function(t){var n=e.wfJsonData.routes[e.submitHandle.route.index].taskNodes;for(var a in e.submitHandle.route)if(e.submitHandle.route[a].users)for(var o=0;o<n.length;o++)n[o].name===a&&"3"!==n[o].type&&e.submitHandle.route[a].users.forEach((function(e){e.id===t.id&&(e.deputy=t.deputys[0])}))})),a({code:"success",message:"已选择外出代理人。"}))}else a({code:"success",message:"下一环节处理人未设置外出授权"});else a(t)}))}else a({code:"success",message:"无需检查外出授权"})}))},applySubmitTemplate:function(e,t){var n=this;e.curTN.tnIdeaLabelID&&(e.submitHandle.curUserIdea=t.curUserIdea),void 0!==t.keepConcern&&(e.submitHandle.keepConcern=t.keepConcern),void 0!==t.askSMS&&(e.submitHandle.askSMS=t.askSMS);for(var a=function(a){if(e.wfJsonData.routes[a].name===t.submitRoute.name)return e.submitHandle.route.index=a,e.wfJsonData.routes[a].taskNodes.forEach((function(t){e.submitHandle.route[t.name]&&(delete e.submitHandle.route[t.name].showUsers,e.submitHandle.route[t.name].users=[])})),t.selectedNodes.forEach((function(o){e.wfJsonData.routes[a].taskNodes.forEach((function(a){if(a.name===o){e.submitHandle.route[a.name]||(e.submitHandle.route[a.name]={});var i=[],r="",s=a.users;if(s.length>0&&"asyncLoadingUsers"===s[0].type){var l="";if(s.forEach((function(e){"asyncLoadingUsers"===e.type&&(l+=(""===l?"":",")+(e.orgId||e.parentId))})),""!==l){var d={method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:l,self:l.split(",").length>1}};n.$http(d).then((function(n){if("success"===n.code){if(t.route[o].users.forEach((function(e){for(var t=0;t<n.body.listdata.length;t++)if(n.body.listdata[t].id===e.id){i.push(n.body.listdata[t]),r+=n.body.listdata[t].id+",";break}})),e.submitHandle.route[a.name].users=i,i.length>0){var s="";1===i.length?s=i[0].name:2===i.length?s=i[0].name+"、"+i[1].name:i.length>2&&(s=i[0].name+"、"+i[1].name+"等"+i.length+"人"),e.submitHandle.route[a.name].showUsers=s,e.$set(e.wfNodeUser,a.name,r)}e.$forceUpdate()}}))}}else t.route[o].users.forEach((function(e){for(var t=0;t<a.users.length;t++)if(a.users[t].id===e.id){i.push(a.users[t]),r+=a.users[t].id+",";break}})),e.submitHandle.route[a.name].users=i,i.length>0&&e.$set(e.wfNodeUser,a.name,r)}}))})),1},o=0;o<e.wfJsonData.routes.length;o++)if(a(o))break},upload:function(e,t,n,a,o){var i=new FormData;if(null!=a)for(var r in a)i.append(r,a[r]);return i.append("file",n),void 0!==o&&null!==o||(o={}),e.$http(va(va({url:t},o),{},{method:"post",data:i}))},setAttend:function(e,t,n,a,o,i){return a||(a=e.moduleInfo.listDataUrl.split("/")[1].replace(/wfTaskItem/g,"")),""===a&&(a="todo"),new Promise((function(r){e.$http({method:"PUT",contentType:"application/json charset=utf-8",params:{itemType:a,ids:t,attend:n,udCateId:o,udCateName:i},url:"workflow/wfTaskItemAttend/batchAttend"}).then((function(e){var t=1===n||"1"===n?"添加":"取消";"success"===e.code?e.message=t+"关注成功!":e.message=t+"关注失败!",r(e)}))}))},setPause:function(e,t,n){return new Promise((function(a){e.$http({method:"PUT",contentType:"application/json charset=utf-8",params:{ids:t,status:n},url:"workflow/wfTaskItem/batchPause"}).then((function(e){var t=3===n?"挂起":"解挂";"success"===e.code?e.message=t+"文件成功!":e.message=t+"文件失败!",a(e)}))}))},forwardTodo:function(e,t,n){return new Promise((function(a){var o=t.ownerName+"@"+t.ownerStaffId,i=t.itemType+":"+t.wfInstanceId+"*"+t.wfNodelogId;e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{oldOwner:o,newOwner:n,item:i},url:"workflow/wfTaskItem/transferTodoItms"}).then((function(e){"success"===e.code?e.message="文件转办成功!":e.message="文件转办失败!",a(e)}))}))},loadBusiform:function(e,t,n){var a=t.split("url=")[1];return a=a.replace(/\//g,"."),a="#/dcontent/vuebusiform/"+n+"/"+a.substring(1).replace(".html",".vue"),a+="?sysCode="+(e.wfInstance.sysCode||""),e.$loadComponent(a)}}});e.prototype.$wfEngine=t},Ta=Sa,Da=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h5app-container"},[t("van-nav-bar",{attrs:{title:e.appName,"left-arrow":""},on:{"click-left":e.onClickLeft}}),t("van-skeleton",{attrs:{row:3,title:"",avatar:""}})],1)},Na=[],Aa={name:"Building",components:{},props:{},data:function(){return{appName:""}},computed:{},watch:{},created:function(){this.$route&&this.$route.meta&&(this.appName=this.$route.meta.appName)},beforeDestroy:function(){},mounted:function(){},methods:{onClickLeft:function(){this.$router.back(-1)}}},Ya=Aa,Ca=(a(5612),a(1656)),Oa=(0,Ca.A)(Ya,Da,Na,!1,null,"60fd66f2",null),Ia=Oa.exports;Ia.install=function(e){e.component(Ia.name,Ia)};var Ea=Ia,$a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-group-container"},[t("div",{staticClass:"slot-btn-group-container"},[e._t("default")],2)])},Pa=[],ja={name:"FooterButtonGroup",components:{},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.setBtnStyle()},updated:function(){this.setBtnStyle()},methods:{setBtnStyle:function(){var e=this.$el.querySelectorAll(".btn-group-container .slot-btn-group-container");e.forEach((function(e){for(var t=e.childElementCount,n=0;n<t;n++)e.children[n].style.width="calc((100% - "+10*(t-1)+"px) / "+t+")",e.children[n].style.float="left",n>=1&&(e.children[n].style["margin-left"]="10px")}))}}},Fa=ja,Ha=(a(4632),(0,Ca.A)(Fa,$a,Pa,!1,null,"38da20d2",null)),Ba=Ha.exports;Ba.install=function(e){e.component(Ba.name,Ba)};var Ua=Ba,Ra=function(){var e=this,t=e._self._c;return e.show?t("div",{staticClass:"floatbtn-group-container",style:{top:e.position.y+"px",left:e.position.x+"px"},on:{mousedown:e.down,touchstart:function(t){return t.stopPropagation(),e.down.apply(null,arguments)},mousemove:e.move,touchmove:function(t){return t.stopPropagation(),e.move.apply(null,arguments)},mouseup:e.end,touchend:function(t){return t.stopPropagation(),e.end.apply(null,arguments)}}},[e._t("default")],2):e._e()},Wa=[],Va={name:"FloatButtonGroup",components:{},props:{showFooterNavBar:{type:Boolean,default:!1}},data:function(){return{show:!1,flags:!1,dx:0,dy:0,screenWidth:document.body.clientWidth,screenHeight:document.body.clientHeight,position:{x:0,y:0},tabActive:-1}},computed:{},watch:{tabActive:function(e){void 0!==e&&null!==e&&e>-1&&this.initPosition()}},created:function(){},beforeDestroy:function(){},mounted:function(){this.initPosition()},updated:function(){this.tabActive=this.$vnode.context.tabActive},methods:{initPosition:function(){this.position.x=this.screenWidth-70,this.position.y=this.screenHeight-120,this.showFooterNavBar&&(this.position.y+=-50),this.show=!0},down:function(e){var t;this.flags=!0,t=e.touches?e.touches[0]:e,this.dx=t.clientX-this.position.x,this.dy=t.clientY-this.position.y,document.addEventListener("touchmove",(function(){e.preventDefault()}),{passive:!1})},move:function(){if(this.flags){var e;e=event.touches?event.touches[0]:event;var t=window.getComputedStyle(document.querySelector(".floatbtn-group-container .van-button"));this.position.x=e.clientX-this.dx,this.position.y=e.clientY-this.dy,this.position.x<0?this.position.x=0:this.position.x>this.screenWidth-parseInt(t.width)&&(this.position.x=this.screenWidth-parseInt(t.width)),this.position.y<0?this.position.y=0:this.position.y>this.screenHeight-parseInt(t.height)&&(this.position.y=this.screenHeight-parseInt(t.height))}},end:function(){this.flags=!1}}},za=Va,Ja=(a(1889),(0,Ca.A)(za,Ra,Wa,!1,null,"34d5c6f3",null)),qa=Ja.exports;qa.install=function(e){e.component(qa.name,qa)};var Ga=qa,Ka=function(){var e=this,t=e._self._c;return t("van-popup",{style:{width:"100%",height:"100%","border-top":"1px solid #fff"},attrs:{overlay:!1,position:"right",duration:e.duration},on:{close:e.onCloseDialog,closed:e.onClosedDialog},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[null!=e.title?t("van-nav-bar",{attrs:{title:e.title},on:{"click-right":function(t){return e.$router.back(-1)}}},[t("van-icon",{attrs:{slot:"right",name:"cross",color:"inherit",size:"16"},slot:"right"})],1):e._e(),t("div",{class:null!=e.title?"popup-body":"popup-body-nonav"},[e._t("default")],2)],1)},Qa=[];function Za(e){return Za="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},Za(e)}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){to(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t,n){return(t=no(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e){var t=ao(e,"string");return"symbol"==Za(t)?t:t+""}function ao(e,t){if("object"!=Za(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Za(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var oo={name:"PopupDialog",components:{},props:{title:{type:String,default:null},winTitle:{type:String,default:null},showpop:{type:Boolean,default:function(){return!1}},onClose:{type:Function,default:function(){return!0}},onClosed:{type:Function,default:function(){return!0}},onCancel:{type:Function,default:function(){return!0}}},data:function(){return{prepareClose:!1,tier:0,duration:.3,dialogVisible:!1}},computed:{},watch:{showpop:function(e){e?this.showDialog():this.tier&&(this.prepareClose=!0,this.$router.back(-1))},$route:function(e){this.tier>~~e.query.tier?(this.tier=0,this.duration=0,this.dialogVisible=!1,this.prepareClose=!1):this.prepareClose&&this.$router.back(-1)}},created:function(){var e=this;this.showpop&&this.$nextTick((function(){e.showDialog()}))},beforeDestroy:function(){this.tier&&!1===this.prepareClose&&this.$router.back(-1)},mounted:function(){},methods:{showDialog:function(){if(!this.tier){this.duration=.3,this.dialogVisible=!0;var e=this.$route,t=e.query,n=e.path,a=e.meta,o=~~t.tier;this.tier=o+1,a.title=document.title,this.$router.push({path:n,query:eo(eo({},t),{},{tier:this.tier}),meta:a}),null!==this.winTitle&&this.$wv.setTitle({bool:!0,text:this.winTitle})}},onCloseDialog:function(){this.onClose()},onClosedDialog:function(){this.showpop&&(this.showpop=!1,this.$emit("update:showpop",!1),this.onCancel()),this.onClosed()}}},io=oo,ro=(a(3974),(0,Ca.A)(io,Ka,Qa,!1,null,"e9b9765c",null)),so=ro.exports;so.install=function(e){e.component(so.name,so)};var lo=so;function co(e){return co="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},co(e)}function uo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uo=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==co(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(co(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function fo(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function po(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){fo(i,a,o,r,s,"next",e)}function s(e){fo(i,a,o,r,s,"throw",e)}r(void 0)}))}}function mo(e){return yo(e)||go(e)||vo(e)||ho()}function ho(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vo(e,t){if(e){if("string"==typeof e)return _o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_o(e,t):void 0}}function go(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function yo(e){if(Array.isArray(e))return _o(e)}function _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var bo=function(e,t){return t.map((function(t){return t=e[t],t}))},wo=function(e,t){var n=t.split("."),a=n[n.length-1];"jpg"===a&&(a="image/jpeg");var o=atob(e),i=o.length,r=new Uint8Array(i);while(i--)r[i]=o.charCodeAt(i);return new File([r],t,{type:a})},xo=function(e){return new Promise((function(t){var n=new FileReader;n.readAsDataURL(e),n.onload=function(e){t(e.target.result)}}))},Mo={string:"putKVString",number:"putKVInt",boolean:"putKVBool",double:"putKVDouble"},ko={string:"getKVString",number:"getKVInt",boolean:"getKVBool",double:"getKVDouble"},Lo=function(e){function t(e){if(window.WebViewJavascriptBridge)return e(window.WebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var t=document.createElement("iframe");t.style.display="none",t.src="wvjbscheme://__BRIDGE_LOADED__",document.documentElement.appendChild(t),setTimeout((function(){document.documentElement.removeChild(t)}),0)}function n(e,n,a){t((function(t){t.callHandler(e,n,(function(e){void 0!==a&&null!==a&&a(e)}))}))}function a(e,t,n){if(void 0!==window.flutter_inappwebview&&""!==window.flutter_inappwebview&&null!==window.flutter_inappwebview){if(window.flutter_inappwebview.callHandler instanceof Function){var o=null;if(null===t||void 0===t)o=window.flutter_inappwebview.callHandler(e);else if(t instanceof Array){var i;o=(i=window.flutter_inappwebview).callHandler.apply(i,[e].concat(mo(t)))}else o=window.flutter_inappwebview.callHandler(e,t);return new Promise((function(a){o.then((function(e){if(n&&n(e),null===e)return a(e);e.hasOwnProperty("value")?a(e.value):e.hasOwnProperty("fileList")?a(e.fileList):e.hasOwnProperty("result")&&"boolean"!==typeof e.result?a(e.result):a(e)})).catch((function(n){console.error("jsBridgeCallNativeMethodError => "+e,t,n)}))}))}setTimeout((function(){a(e,t,n)}),1e3)}}function o(e,t,n){return i.apply(this,arguments)}function i(){return i=po(uo().mark((function e(t,n,a){var o;return uo().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=null,null!==n&&void 0!==n){e.next=7;break}return e.next=4,window.WebViewJavascriptBridge.callHandler(t);case 4:o=e.sent,e.next=11;break;case 7:return"object"===co(n)&&(n=JSON.stringify(n)),e.next=10,window.WebViewJavascriptBridge.callHandler(t,n);case 10:o=e.sent;case 11:return console.log("resultPromise===>"+t,o),e.abrupt("return",new Promise((function(e){if(console.log("result====>",o),a&&a(o),null===o)return e(o);o.hasOwnProperty("value")?e(o.value):o.hasOwnProperty("fileList")?e(o.fileList):o.hasOwnProperty("result")&&"boolean"!==typeof o.result?e(o.result):e(o)})));case 13:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}var r=new e({methods:{checkInstallSuccess:function(){if(void 0!==window.flutter_inappwebview&&""!==window.flutter_inappwebview&&null!==window.flutter_inappwebview)return this.$toast.success("Flutter App is already!"),Promise.resolve();this.$toast.fail("Flutter_inappwebview is undefined!")},getSystemInfo:function(e){this.jsBridgeCallNativeMethod("getSystemInfo",null,e)},checkVersionUpdate:function(e){this.jsBridgeCallNativeMethod("checkVersionUpdate",null,e)},getAppVersion:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getAppVersion",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},clearCache:function(e){this.jsBridgeCallNativeMethod("clearCache",null,e)},logout:function(e){this.jsBridgeCallNativeMethod("logout",null,e)},updateBadgeNumber:function(e,t){this.jsBridgeCallNativeMethod("updateBadgeNumber",e,t)},switchOrg:function(e,t){this.jsBridgeCallNativeMethod("switchOrg",e,t)},setTransparentSystemStatusBar:function(e,t){this.jsBridgeCallNativeMethod("setTransparentSystemStatusBar",e,t)},getSystemStatusBarHeight:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log("getSystemStatusBarHeight===>"),n.next=3,t.jsBridgeCallNativeMethod("getSystemStatusBarHeight",null,e);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()},getBottomBarConfig:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getBottomBarConfig",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},getDisabledModuleCodeList:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getDisabledModuleCodeList",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},setTitle:function(e,t){window.wxCfg&&-1!==navigator.userAgent.indexOf("Android")&&"topbarBtn"===window.wxgobakMode&&document.querySelector(".App-nav-bar")?document.title="":document.title=e.text,this.$bus.emit("setTitle",e,t),"ecinc"===window.mappType&&this.jsBridgeCallNativeMethod("setTitle",e,t)},setCenterImage:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setCenterImage",e,t):this.$bus.emit("setCenterImage",e,t)},setLeftText:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setLeftText",e,t):this.$bus.emit("setLeftText",e,t)},setLeftImage:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setLeftImage",e,t):this.$bus.emit("setLeftImage",e,t)},setRightText:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setRightText",e,t):this.$bus.emit("setRightText",e,t)},setRightImage:function(e,t){"H5"!==window.layout?this.jsBridgeCallNativeMethod("setRightImage",e,t):this.$bus.emit("setRightImage",e,t)},showBack:function(e){this.$bus.emit("showBack",e),this.jsBridgeCallNativeMethod("showBack",e)},listLocalFile:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("listLocalFile",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},getLocationInformation:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getLocationInformation",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},openLocalFile:function(e,t){this.jsBridgeCallNativeMethod("openLocalFile",e,t)},deleteLocalFile:function(e,t){this.jsBridgeCallNativeMethod("deleteLocalFile",e,t)},renameLocalFile:function(e,t){this.jsBridgeCallNativeMethod("renameLocalFile",e,t)},imagePicker:function(e,t){var n=this;return po(uo().mark((function a(){var o,i;return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("imagePicker",e);case 2:return o=a.sent,i={result:o.result,file:wo(o.fileData,o.fileName),fileName:o.fileName,content:""},a.next=6,xo(i.file);case 6:return i.content=a.sent,t&&t(i),a.abrupt("return",i);case 9:case"end":return a.stop()}}),a)})))()},filePicker:function(e,t){var n=this;return po(uo().mark((function a(){var o,i;return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("filePicker",e);case 2:return o=a.sent,i={result:o.result,file:{path:o.file,name:o.file}},t&&t(i),a.abrupt("return",i);case 6:case"end":return a.stop()}}),a)})))()},enableKeyboard:function(e,t){var n=this;return po(uo().mark((function a(){return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("enableKeyboard",e,t);case 2:case"end":return a.stop()}}),a)})))()},launchTel:function(e,t){this.jsBridgeCallNativeMethod("launchTel",e,t)},launchSms:function(e,t){this.jsBridgeCallNativeMethod("launchSms",e,t)},openHorizontalWeb:function(e){e=bo(e,["url","title","showTopBar"]),this.jsBridgeCallNativeMethod("openH5",e)},openDialog:function(e){this.jsBridgeCallNativeMethod("openDialog",e,null)},dismissWindow:function(e,t){this.jsBridgeCallNativeMethod("dismissWindow",e,t)},reload:function(e){this.jsBridgeCallNativeMethod("reload",e,null)},closeWindow:function(){this.jsBridgeCallNativeMethod("closeWindow",null,null)},getSportStep:function(e){this.jsBridgeCallNativeMethod("getSportStep",null,e)},getAddressInfo:function(e){this.jsBridgeCallNativeMethod("getAddressInfo",null,e)},getScanInfo:function(e){this.jsBridgeCallNativeMethod("getScanInfo",null,e)},faceAcquisitionOrRecognition:function(e,t){this.jsBridgeCallNativeMethod("faceAcquisitionOrRecognition",e,t)},uploadFile:function(e,t){this.jsBridgeCallNativeMethod("uploadFile",e,t)},downLoadAndOpenFile:function(e){this.jsBridgeCallNativeMethod("downLoadAndOpenFile",e,null)},getScanCodeInfo:function(e,t){this.jsBridgeCallNativeMethod("getScanCodeInfo",e,t)},historyBack:function(){if("H5"===window.layout)return location.hash.includes("isFullScreen")?this.closeWindow():history.back();this.jsBridgeCallNativeMethod("historyBack",null,null)},sendWvApiParams:function(e){this.jsBridgeCallNativeMethod("sendWvApiParams",e)},downloadFile:function(e,t,n,a){t=t?t.toUpperCase():"GET",a=a?a.toString():"true",this.jsBridgeCallNativeMethod("downloadFile",[e,t,n,a])},showAttachmentMenus:function(e,t){this.jsBridgeCallNativeMethod("showAttachmentMenus",e,t)},showAttachmentOtherApps:function(e){this.jsBridgeCallNativeMethod("showAttachmentOtherApps",e)},downloadAttachment:function(e){this.jsBridgeCallNativeMethod("downloadAttachment",e)},setAppStorageItem:function(e,t){var n=Hn.A.state.user.loginUser,a=Mo[e.type||"string"];e=bo(e,["key","value"]),e[0]+="-"+n.userId,this.jsBridgeCallNativeMethod(a,e,t)},getAppStorageItem:function(e,t){var n=this;return po(uo().mark((function a(){var o,i,r;return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return o=Hn.A.state.user.loginUser,i=e.key+="-"+o.userId,r=ko[e.type||"string"],a.next=5,n.jsBridgeCallNativeMethod(r,i,t);case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}}),a)})))()},removeAppStorageItem:function(e,t){var n=Hn.A.state.user.loginUser,a=e.key+="-"+n.userId;this.jsBridgeCallNativeMethod("removeKV",a,t)},databaseHandle:function(e,t,n,a){var o=this;return po(uo().mark((function i(){return uo().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,o.jsBridgeCallNativeMethod(e,[t,n],a);case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),i)})))()},getAudioAssetsMap:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("getAudioAssetsMap",null,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},playAudio:function(e,t){var n=this;return po(uo().mark((function a(){return uo().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,n.jsBridgeCallNativeMethod("playAudio",e,t);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}}),a)})))()},stopPlayAudio:function(){var e=this;return po(uo().mark((function t(){return uo().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.jsBridgeCallNativeMethod("stopPlayAudio",null);case 2:case"end":return t.stop()}}),t)})))()},vibrate:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("vibrate",e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},sendLocalNotification:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("sendLocalNotification",e);case 2:case"end":return n.stop()}}),n)})))()},takeScreenshot:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("takeScreenshot",e);case 2:case"end":return n.stop()}}),n)})))()},userAuthSetting:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("userAuthSetting",e);case 2:case"end":return n.stop()}}),n)})))()},logoutAfterDeleteAccount:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("logoutAfterDeleteAccount",e);case 2:case"end":return n.stop()}}),n)})))()},showLoading:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("showLoading",e);case 2:case"end":return n.stop()}}),n)})))()},hideLoading:function(e){var t=this;return po(uo().mark((function n(){return uo().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.jsBridgeCallNativeMethod("hideLoading",e);case 2:case"end":return n.stop()}}),n)})))()},clearAllNotification:function(){this.jsBridgeCallNativeMethod("clearAllNotification",null)},jsBridgeCallNativeMethod:window.flutter_inappwebview?a:navigator.userAgent&&navigator.userAgent.indexOf("Harmony")>-1?o:n}});"undefined"!==typeof window&&(window.$wv=r),e.prototype.$wv=r},So=Lo;function To(e){return To="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},To(e)}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Ao(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ao(e,t,n){return(t=Yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e){var t=Co(e,"string");return"symbol"==To(t)?t:t+""}function Co(e,t){if("object"!=To(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=To(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Oo=[So],Io=function e(t){e.installed||(e.installed=!0,Oo.map((function(e){t.use(e)})))};"undefined"!==typeof window&&window.Vue&&Io(window.Vue);var Eo=No({install:Io},Oo),$o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"van-selected-dialog"},[t("ListitemDialog"),t("DatetimePicker"),t("TreeDialog"),t("WfNamesDialog"),t("ListpageDialog")],1)},Po=[],jo=function(){var e=this,t=e._self._c;return e.dialogVisible?t("div",[e.multiple||"rightDialog"===e.dialogType?t("PopupDialog",{attrs:{showpop:e.dialogVisible,title:e.dialogTitle,"on-cancel":e.closeDialog},on:{"update:showpop":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"popup-content"},[e.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.itemList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.text,clickable:""},on:{click:function(t){return t.stopPropagation(),e.checkboxToggle(a)}}},[t("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{slot:"icon",name:a},slot:"icon"})],1)})),1)],1):t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.itemList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.text,clickable:""},on:{click:function(t){return e.radioboxClick(a)}}},[t("van-radio",{attrs:{slot:"icon",name:a},slot:"icon"})],1)})),1)],1)],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitForm}},[e._v("确 定")])],1)],1):"areaDialog"===e.dialogType?t("van-popup",{style:{width:"100%"},attrs:{position:"bottom"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("van-area",{attrs:{title:e.dialogTitle,"area-list":e.areaList,"columns-num":e.areaColumnsNum,"visible-item-count":e.areaVisibleItemCount,value:e.selected[0]},on:{cancel:e.closeDialog,confirm:e.submitForm}})],1):t("van-action-sheet",{staticClass:"bootom_slect_item",attrs:{description:e.dialogTitle,"cancel-text":e.$tx("pageBtns.cancel","取 消"),"close-on-click-action":!0,round:!1},on:{"click-overlay":e.closeDialog,cancel:e.closeDialog},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[e._l(e.itemList,(function(n,a){return t("button",{key:a,staticClass:"van-action-sheet__item",attrs:{type:"button"},on:{click:function(t){return e.submitForm(n,a)}}},[t("span",{staticClass:"van-action-sheet__name"},[e._v(e._s(n.name))])])}))],2)],1):e._e()},Fo=[],Ho={components:{},props:{},data:function(){return{dialogTitle:"请选择",dialogVisible:!1,itemList:[],areaList:null,areaColumnsNum:2,areaVisibleItemCount:3,multiple:!1,selected:[],callback:null,dialogType:"",canClear:!1}},computed:{},watch:{},created:function(){this.$bus.on("openListitemDialog",this.openListitemDialog)},beforeDestroy:function(){this.$bus.off("openListitemDialog",this.openListitemDialog)},mounted:function(){},methods:{openListitemDialog:function(e,t,n,a,o,i,r){var s=this;if(this.dialogTitle=e||"",this.itemList=t,this.callback=n,this.multiple=!0===o||1===o,this.dialogType=i||(t.length>8?"rightDialog":"bottomDialog"),this.canClear=r,this.selected=[],this.areaList={province_list:{},city_list:{},county_list:{}},this.areaColumnsNum=2,o||(t.forEach((function(e,t){e.className="",e.name||(e.name=e.text),s.pushAreaItem(e,1,t,null),e.children&&e.children.length>0&&(s.dialogType="areaDialog",e.children.forEach((function(e,n){e.name||(e.name=e.text),s.pushAreaItem(e,2,n,t),e.value===a&&(s.selected[0]=e.areaCode),e.children&&e.children.length>0&&e.children.forEach((function(o,i){o.name||(o.name=o.text),s.pushAreaItem(o,3,i,n,t),s.areaColumnsNum=3,o.value===a&&(s.selected[0]=e.areaCode)}))})),a=null)})),""!==this.dialogTitle&&-1===this.dialogTitle.indexOf(this.$tx("common.plChoose","请选择"))&&(this.dialogTitle=this.$tx("common.plChooseContent",{content:this.dialogTitle},"请选择".concat(this.dialogTitle)))),void 0!==a&&null!==a)for(var l=0;l<t.length;l++)if(t[l].text===a||t[l].value===a||-1!==(a+"").indexOf(t[l].value+"")){if(!0!==this.multiple){this.selected[0]=l,t[l].className="listitem-selected";break}this.selected.push(l)}this.dialogVisible=!0},pushAreaItem:function(e,t,n,a,o){var i="";1===t?(i=n+10+"0000",this.areaList["province_list"][i]=e.name):2===t?(i=a+10+""+(n+10)+"00",this.areaList["city_list"][i]=e.name):(i=o+10+""+(a+10)+(n+10),this.areaList["county_list"][i]=e.name),e.areaCode=i,n>6?this.areaVisibleItemCount=6:n>3&&(this.areaVisibleItemCount=n)},checkboxToggle:function(e){this.$refs.checkboxes[e].toggle()},radioboxClick:function(e){this.selected[0]=e,this.$forceUpdate()},submitForm:function(e,t){var n=this;if(void 0!==t&&(this.selected[0]=t),0!==this.selected.length||this.canClear)if("areaDialog"===this.dialogType){var a=e,o=[];this.itemList.forEach((function(e,t){a.forEach((function(t){if(t&&e.areaCode===t.code){var n=JSON.parse(JSON.stringify(e));delete n.children,o.push(n)}})),e.children&&e.children.forEach((function(e){a.forEach((function(t){if(t&&e.areaCode===t.code){var n=JSON.parse(JSON.stringify(e));delete n.children,o.push(n)}})),e.children&&e.children.forEach((function(e){a.forEach((function(t){t&&e.areaCode===t.code&&o.push(e)}))}))}))})),this.callback({code:"success",value:o}),this.dialogVisible=!1,this.selected=[]}else{var i=null;!0===this.multiple?(i=[],this.selected.forEach((function(e){i.push(n.itemList[e])}))):i=this.itemList[this.selected[0]],this.callback({code:"success",value:i}),this.dialogVisible=!1,this.selected=[]}else this.$dialog.alert({message:this.$tx("common.plChoose","请选择")})},closeDialog:function(){this.callback({code:"cancel",value:null}),this.dialogVisible=!1,this.selected=[]}}},Bo=Ho,Uo=(a(3760),(0,Ca.A)(Bo,jo,Fo,!1,null,"2e7fed1a",null)),Ro=Uo.exports,Wo=function(){var e=this,t=e._self._c;return e.dialogVisible?t("van-popup",{attrs:{position:"bottom"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("van-datetime-picker",{attrs:{type:e.type,title:e.title,filter:e.filter,"min-date":e.minDate},on:{confirm:e.submitForm,cancel:e.closeDialog},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1):e._e()},Vo=[];function zo(e){return zo="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},zo(e)}var Jo=a(5093),qo={components:{},props:{},data:function(){return{dialogVisible:!1,type:"datetime",minDate:new Date,currentDate:null,callback:null,stepNum:1,title:""}},computed:{},watch:{},created:function(){this.$bus.on("openDatetimePicker",this.openDatetimePicker)},beforeDestroy:function(){this.$bus.off("openDatetimePicker",this.openDatetimePicker)},mounted:function(){},methods:{filter:function(e,t){var n=this;if(this.stepNum)return"minute"===e?t.filter((function(e){return e%n.stepNum===0})):t},openDatetimePicker:function(e,t,n,a,o,i){this.stepNum=o||1,this.title=i;var r=new Date;null===e||void 0===e||""===e?this.currentDate=r:"string"===typeof e&&(this.currentDate=b(e)),null!==a&&""!==a&&void 0!==a?"object"===zo(a)?this.minDate=a:this.minDate=new Date(a):this.minDate.setFullYear(this.minDate.getFullYear()-100),this.type=n,"time"===this.type&&(this.currentDate=Jo(this.currentDate).format("HH:mm:ss")),this.callback=t,this.dialogVisible=!0},submitForm:function(e){this.dialogVisible=!1,"time"===this.type?(5===e.length&&(e+=":00"),e="1970-01-01 "+e,this.callback(e)):this.callback(Jo(e).format("YYYY-MM-DD HH:mm:ss"))},closeDialog:function(){this.dialogVisible=!1}}},Go=qo,Ko=(0,Ca.A)(Go,Wo,Vo,!1,null,"4aede178",null),Qo=Ko.exports,Zo=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"treeBox"}},[e.dialogVisible?t("PopupDialog",{attrs:{showpop:e.dialogVisible,title:e.dialogTitle,"on-cancel":e.closeDialog},on:{"update:showpop":function(t){e.dialogVisible=t}}},[e.loading?e._e():t("div",{staticClass:"searchInput"},[t("van-search",{staticClass:"p-search iconfont-search",attrs:{placeholder:"".concat(e.searchFocus?"":" ").concat(e.$tx("common.searchFor","搜索")),"input-align":e.searchFocus||e.searchText?"":"center"},on:{focus:function(t){e.searchFocus=!0},blur:function(t){e.searchFocus=!1}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[e.showSelectByTabs?t("van-dropdown-menu",{attrs:{slot:"left"},slot:"left"},[t("van-dropdown-item",{attrs:{options:e.selectByTabsOption},on:{change:e.onSelectByTabsHandleClick},model:{value:e.selectByTabsActiveName,callback:function(t){e.selectByTabsActiveName=t},expression:"selectByTabsActiveName"}})],1):e._e(),t("span",{class:e.searchFocus||e.searchKey?"iconfont icon-search":"",attrs:{slot:"left-icon"},slot:"left-icon"})],1)],1),e.searchResult?t("div",[e.condition.oneByOne?t("div",{staticClass:"popup-content search-staff-result"},[e.searchResult.length>0?[t("TreeDialogCollapse",{attrs:{condition:e.condition,"active-name":e.activeName,"tree-node-list":e.searchResult,"tree-node-click":e.chooseSection,"on-change":e.chooseDepartment}})]:[t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无人员")])])]],2):t("div",{staticClass:"popup-content",class:"staff"===e.condition.selectDialog||"wfNodeUser"===e.condition.selectDialog||"staffExt"===e.condition.selectDialog?"search-staff-result":""},[e.searchResult.length>0?[e.condition.multiple?t("van-checkbox-group",{model:{value:e.searchSelected,callback:function(t){e.searchSelected=t},expression:"searchSelected"}},[t("van-cell-group",e._l(e.searchResult,(function(n,a){return t("van-cell",{key:a,class:n.personId?"van-cell-staff":"",attrs:{clickable:""},on:{click:function(t){return e.coohseSearchItem(n)}}},[t("template",{slot:"title"},[t("van-checkbox",{attrs:{name:n}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),n.title&&!n.personId?t("span",[e._v(e._s(n.customName||n.title))]):t("span",{staticClass:"staff-name"},[e._v(e._s(n.customName||n.name))])],1),t("div",{attrs:{slot:"label"},slot:"label"},[t("span",{domProps:{innerHTML:e._s(n.pName)}})])],2)})),1)],1):t("van-radio-group",{model:{value:e.searchSelected[0],callback:function(t){e.$set(e.searchSelected,0,t)},expression:"searchSelected[0]"}},[t("van-cell-group",e._l(e.searchResult,(function(n,a){return t("van-cell",{key:a,class:n.personId?"van-cell-staff":"",attrs:{clickable:""},on:{click:function(t){return e.coohseSearchItem(n)}}},[t("template",{slot:"title"},[t("van-radio",{attrs:{name:n}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),n.title&&!n.personId?t("span",[e._v(e._s(n.customName||n.title))]):t("span",{staticClass:"staff-name"},[e._v(e._s(n.customName||n.name))])],1),t("div",{attrs:{slot:"label"},slot:"label"},[t("span",{domProps:{innerHTML:e._s(n.pName)}})])],2)})),1)],1)]:[t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nosearch.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无数据")])])]],2),t("FooterButtonGroup",[e.isStaff&&e.condition.multiple?t("div",{staticClass:"select_person_count"},[t("div",{staticClass:"count"},[t("span",{on:{click:function(t){return e.viewSelectPersons("search",e.searchResult)}}},[e._v(" 已选择:"+e._s(e.selectedCount.replace("(","").replace(")",""))+" "),t("van-icon",{staticStyle:{"margin-left":"5px"},attrs:{name:"arrow-up"}})],1)]),t("div",{staticClass:"confirm_btn"},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitSearchForm}},[e._v("确 定")])],1)]):t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitSearchForm}},[e._v("确 定")])],1)],1):t("div",[t("div",{staticClass:"select-all-nodes"},[e.showSelectAllNodes&&!e.lazy?t("van-cell",[t("template",{slot:"title"},[t("van-checkbox",{on:{click:e.selectAllNodesClick},model:{value:e.selectAllNodes,callback:function(t){e.selectAllNodes=t},expression:"selectAllNodes"}}),t("div",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")])],1)],2):e._e()],1),t("div",{staticClass:"popup-content",style:e.showSelectAllNodes?{height:"calc(100vh - 102px - 60px - 44px - var(--headerHeight))"}:""},[e.treeNodeList.length>0?[e.condition.multiple&&e.condition.oneByOne?t("TreeDialogCollapse",{ref:"collapse",attrs:{condition:e.condition,"active-name":e.activeName,"tree-node-list":e.treeNodeList,"tree-node-click":e.chooseSection,"on-change":e.chooseDepartment}}):e.isStaff&&!e.condition.multiple?t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":void 0!=n.type,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)}))}}},[t("template",{slot:"title"},[t("div",{directives:[{name:"show",rawName:"v-show",value:n.canSelect,expression:"radioPerson.canSelect"}],on:{click:function(e){e.stopPropagation()}}},[t("van-radio",{ref:"radio_"+n.id,refInFor:!0,staticClass:"cell-selection",attrs:{disabled:!n.canSelect,name:n}})],1),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])]),n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s(n.selectedNames)+" ")]):e._e()],2)})),1),e.popupConfig.isVisible?t("TreeDialogPopup",{attrs:{"popup-title":e.dialogTitle,"show-popup":e.popupConfig.isVisible,"parent-node":e.treeNodeList,"current-idx":e.popupConfig.currIdx},on:{"update:showPopup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:show-popup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:parentNode":function(t){e.treeNodeList=t},"update:parent-node":function(t){e.treeNodeList=t},"update:currentIdx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"update:current-idx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"handle-confirm":e.handleConfirm}}):e._e()],1):e.isStaff&&e.condition.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":void 0!=n.type&&!n.collapse,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)}))}}},[t("template",{slot:"title"},[t("div",{on:{click:function(e){e.stopPropagation()}}},[t("van-checkbox",{ref:"checkboxes_"+n.id,refInFor:!0,attrs:{disabled:!n.canSelect,name:n}})],1),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])]),"treeNode"!=n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s(n.selectedNames+(n.totalSelectedCount>2?"等"+n.totalSelectedCount+"人":""))+" ")]):e._e(),"treeNode"==n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s("已选("+n.totalSelectedCount+")个")+" ")]):e._e()],2)})),1),e.popupConfig.isVisible?t("TreeDialogPopup",{ref:"departmentDataPopup",attrs:{"popup-title":e.dialogTitle,"show-select-all-nodes":e.showSelectAllNodes,"show-popup":e.popupConfig.isVisible,"parent-node":e.treeNodeList,"current-idx":e.popupConfig.currIdx},on:{"update:showPopup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:show-popup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:parentNode":function(t){e.treeNodeList=t},"update:parent-node":function(t){e.treeNodeList=t},"update:currentIdx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"update:current-idx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"handle-confirm":e.handleConfirm}}):e._e()],1):e.condition.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{"is-link":0===n.isRealOrg,clickable:""},on:{click:function(t){e.chooseListitem(n),e.$forceUpdate()}}},[t("template",{slot:"title"},[t("van-checkbox",{ref:"checkboxes_"+n.id,refInFor:!0,attrs:{slot:"right-icon",disabled:0===n.isRealOrg,name:n},slot:"right-icon"}),t("div",{staticClass:"photo"},[n.photoUrl?t("img",{staticClass:"photo",attrs:{src:n.photoUrl}}):t("span",[e._v(e._s(n.name.substr(0,1)))])]),t("span",{class:0===n.isRealOrg&&"disabled-name"},[e._v(e._s(n.customName||n.name))])],1),void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s("已选("+n.selectedCount+")个")+" ")]):e._e()],2)})),1),t("TreeDialogPopup",{ref:"departmentDataPopup",attrs:{"popup-title":e.DepartmentTitle,"show-popup":e.showDepartment,"tree-node-list":e.departmentData.children,multiple:e.condition.multiple,"tree-node-click":e.chooseSection},on:{onPopupClose:function(t){return e.updateSelectedInfo(null,e.departmentData)}}},[e.isStaff&&e.condition.multiple?t("div",{staticClass:"select_person_count",attrs:{slot:"footerButton"},slot:"footerButton"},[t("div",{staticClass:"count"},[t("span",{on:{click:function(t){return e.viewSelectPersons("departmentDataPopup",e.departmentData)}}},[e._v(" 已选择:"+e._s(e.departmentData.selectedCount)+"人 "),t("van-icon",{staticStyle:{"margin-left":"5px"},attrs:{name:"arrow-up"}})],1)]),t("div",{staticClass:"confirm_btn"},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:function(t){e.showDepartment=!e.showDepartment}}},[e._v("确定")])],1)]):t("van-button",{attrs:{slot:"footerButton",square:"",type:"info",text:"已选("+e.departmentData.selectedCount+")个"},on:{click:function(t){e.showDepartment=!e.showDepartment}},slot:"footerButton"})],1)],1):t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{"is-link":0===n.isRealOrg,clickable:""},on:{click:function(t){e.chooseListitem(n),e.$forceUpdate()}}},[t("template",{slot:"title"},[t("van-radio",{ref:"radio_"+n.id,refInFor:!0,attrs:{disabled:0===n.isRealOrg,name:n}}),t("div",{staticClass:"photo"},[n.photoUrl?t("img",{staticClass:"photo",attrs:{src:n.photoUrl}}):t("span",[e._v(e._s(n.name.substr(0,1)))])]),t("span",{class:0===n.isRealOrg&&"disabled-name"},[e._v(e._s(n.customName||n.name))])],1),void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(" "+e._s("已选("+n.selectedCount+")个")+" ")]):e._e()],2)})),1),t("TreeDialogPopup",{attrs:{"popup-title":e.DepartmentTitle,"show-popup":e.showDepartment,"tree-node-list":e.departmentData.children,multiple:e.condition.multiple,"tree-node-click":e.chooseSection}},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{slot:"footerButton",square:"",type:"info"},on:{click:function(t){e.submitForm(),e.updateSelectedInfo(null,e.departmentData)}},slot:"footerButton"},[e._v(" 确 定 ")])],1)],1)]:e.loading?[t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.noData",expression:"'common.noData'"}],staticStyle:{float:"center"},attrs:{size:"24px",vertical:""}},[e._v("正在加载...")])]:[t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nomessage.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无数据")])])]],2),e.loading?e._e():t("FooterButtonGroup",[t("TreeSelectedPopup",{attrs:{"show-select-all-nodes":e.showSelectAllNodes},on:{"change-all":e.judgeSeletAllType,confirm:e.submitForm}})],1)],1)]):e._e(),e.areaDialogVisible?t("van-popup",{style:{width:"100%",height:"40%"},attrs:{position:"bottom"},model:{value:e.areaDialogVisible,callback:function(t){e.areaDialogVisible=t},expression:"areaDialogVisible"}},[t("van-area",{attrs:{title:e.dialogTitle,"area-list":e.treeNodeList,value:e.areaValue,"columns-num":3},on:{cancel:e.cancelCity,confirm:e.confirmCity}})],1):e._e(),e.deletePersonPopup?t("van-popup",{style:{width:"100%",height:"70%",overflow:"hidden"},attrs:{position:"bottom",round:!0,"close-on-popstate":!0},model:{value:e.deletePersonPopup,callback:function(t){e.deletePersonPopup=t},expression:"deletePersonPopup"}},[[t("div",{staticClass:"delete_Popup"},[t("div",{staticClass:"popup_header"},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.personnelSelection",expression:"'ecmapp.selectDialog.personnelSelection'"}],staticClass:"title"},[e._v("人员选择")]),t("div",{staticClass:"btn"},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],staticStyle:{color:"#c0c4cc"},on:{click:function(t){e.deletePersonPopup=!1}}},[e._v("关 闭")])])]),t("div",{staticClass:"popup_person"},[e._l(e.deletePersonPopupObj.canDeletePerson,(function(n){return t("div",{key:n.id,staticClass:"popup_cell"},[t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("div",{staticClass:"name"},[t("div",{staticStyle:{color:"#303133","font-size":"16px"}},[e._v(e._s(n.customName||n.name))]),t("div",{staticStyle:{color:"#999","font-size":"12px","margin-top":"5px"}},[e._v(e._s(n.orgFullName.substr(n.orgFullName.indexOf("-")+1)))])]),t("div",{staticClass:"deletebtn",on:{click:function(t){return e.deletePopupPerson(n)}}},[t("van-icon",{attrs:{name:"close"}})],1)])})),0===e.deletePersonPopupObj.canDeletePerson.length?t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nomessage.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无人员")])]):e._e()],2)])]],2):e._e()],1)},Xo=[],ei=a(5353),ti=function(){var e=this,t=e._self._c;return t("van-popup",{style:{width:"100%",height:"100%"},attrs:{"get-container":"#treeBox",position:"right",overlay:!1,closeable:!0,"close-icon-position":"top-right"},on:{close:e.onPopupClose},model:{value:e.showPopup,callback:function(t){e.showPopup=t},expression:"showPopup"}},[t("van-nav-bar",{attrs:{title:e.popupTitle}}),t("div",{staticClass:"popup-department"},[e.showSelectAllNodes&&e.treeNodeList[0]&&!e.treeNodeList[0].ocode?t("div",{staticClass:"select-all-nodes"},[t("van-cell",[t("template",{slot:"title"},[t("van-checkbox",{ref:"checkAll"+e.currentIdx,on:{click:e.selectAllNodesClick},model:{value:e.selectAllNodes,callback:function(t){e.selectAllNodes=t},expression:"selectAllNodes"}}),t("div",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}]},[e._v("全选")])],1)],2)],1):e._e(),e.multiple?t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":n.isLink||void 0!=n.type&&!n.canSelect,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)})),e.$forceUpdate()}}},[t("template",{slot:"title"},[t("div",{on:{click:function(e){e.stopPropagation()}}},[t("van-checkbox",{ref:"checkboxes_"+n.id,refInFor:!0,attrs:{disabled:!n.canSelect,name:n}})],1),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])]),"treeNode"!=n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(e._s(n.selectedNames+(n.totalSelectedCount>2?"等"+n.totalSelectedCount+"人":"")))]):e._e(),"treeNode"==n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(e._s("已选("+n.totalSelectedCount+")个"))]):e._e()],2)})),1)],1):t("van-radio-group",{model:{value:e.selected[0],callback:function(t){e.$set(e.selected,0,t)},expression:"selected[0]"}},[t("van-cell-group",e._l(e.treeNodeList,(function(n,a){return t("van-cell",{key:a,attrs:{center:"","is-link":void 0!=n.type&&!n.canSelect,clickable:""},on:{click:function(t){e.loadChildNode(a,(function(){e.handleCellClick(a)}))}}},[t("template",{slot:"title"},[t("van-radio",{ref:"radio_"+n.id,refInFor:!0,attrs:{disabled:!n.canSelect,name:n}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",{class:!n.canSelect&&"disabled-name"},[e._v(e._s(n.customName||n.name))])],1),n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",[e._v(e._s(n.selectedNames))]):e._e()],2)})),1)],1),0===e.treeNodeList.length?t("div",{staticClass:"no-message-img"},[t("img",{attrs:{src:"./images/m-imgs/nomessage.png"}}),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.nonePersonal",expression:"'ecmapp.selectDialog.nonePersonal'"}]},[e._v("暂无人员")])]):e._e(),e.popupConfig.isVisible?t("TreeDialogPopup",{attrs:{"popup-title":e.popupTitle,"show-select-all-nodes":e.showSelectAllNodes,"show-popup":e.popupConfig.isVisible,"parent-node":e.treeNodeList,"current-idx":e.popupConfig.currIdx},on:{"update:showPopup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:show-popup":function(t){return e.$set(e.popupConfig,"isVisible",t)},"update:parentNode":function(t){e.treeNodeList=t},"update:parent-node":function(t){e.treeNodeList=t},"update:currentIdx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"update:current-idx":function(t){return e.$set(e.popupConfig,"currIdx",t)},"handle-confirm":e.handleConfirm,"change-all":e.judgeSeletAllType,"update-selected":e.checkIncludeSelected}}):e._e()],1),t("FooterButtonGroup",[e.$slots.footerButton?[e._t("footerButton")]:e._e(),t("TreeSelectedPopup",{attrs:{"show-select-all-nodes":e.showSelectAllNodes},on:{"change-all":e.reviewSelected,confirm:e.handleConfirm}})],2)],1)},ni=[],ai=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"select_person_count"},[t("div",{staticClass:"count"},[t("span",{on:{click:function(t){e.visible=!0}}},[e._v(" 已选择:"+e._s(e.selectedCount)+" "),t("van-icon",{staticStyle:{"margin-left":"5px"},attrs:{name:"arrow-up"}})],1)]),t("div",{staticClass:"confirm_btn"},[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.handleClick}},[e._v("确 定")])],1)]),t("van-popup",{style:{height:"80%",background:"#f7f9fb"},attrs:{id:"SelectedPopup",round:"",position:"bottom"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"header"},[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.selectDialog.currentlySelected",expression:"'ecmapp.selectDialog.currentlySelected'"}],staticClass:"title"},[e._v("当前已选择")]),t("a",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],staticClass:"button",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.visible=!1}}},[e._v("确 定")])]),t("div",{staticClass:"content"},[t("van-cell-group",e._l(e.dataGroup.dept,(function(n){return t("van-cell",{key:n.id,attrs:{center:""}},[t("template",{slot:"title"},[t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",[e._v(e._s(n.customName||n.name))])]),t("template",{slot:"right-icon"},[t("van-icon",{attrs:{name:"close"},on:{click:function(t){return e.handleDelete(n.id,n)}}})],1)],2)})),1),e.dataGroup.dept.length?t("div",{staticClass:"split-line"}):e._e(),t("van-cell-group",e._l(e.dataGroup.person,(function(n){return t("van-cell",{key:n.id,attrs:{center:""}},[t("template",{slot:"title"},[t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:n.photoUrl}})]),t("span",[e._v(e._s(n.customName||n.name))])]),t("template",{slot:"right-icon"},[t("van-icon",{attrs:{name:"close"},on:{click:function(t){return e.handleDelete(n.id,n)}}})],1)],2)})),1)],1)])],1)},oi=[],ii={props:{showSelectAllNodes:{type:Boolean,default:!1}},data:function(){var e,t;return{visible:!1,selected:null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]}},computed:{totalSelected:function(){var e,t;return null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]},dataGroup:function(){var e=[],t=[];return this.selected.forEach((function(n){n&&n.personId?t.push(n):n&&e.push(n)})),{dept:e,person:t}},selectedCount:function(){var e=this.$store.state.selectDialog?this.$store.state.selectDialog.condition:{},t=[],n=[],a="workgroup"===e.selectDialog?"个群组":"jobPosition"===e.selectDialog?"个岗位":"个部门(含子部门)";return this.selected.forEach((function(e){e&&e.personId?n.push(e):e&&t.push(e)})),(n.length?n.length+"人":"")+(n.length&&t.length?",":"")+(t.length?t.length+a:"")}},watch:{selected:function(e){this.totalSelected.length!==this.selected.length&&this.$store.commit("selectDialog/setSelected",e)},totalSelected:function(e){this.selected=e}},methods:{handleClick:function(){this.$emit("confirm")},handleDelete:function(e,t){var n=this.selected.findIndex((function(t){return t&&t.id===e}));t.checked=!1,this.selected.splice(n,1),this.showSelectAllNodes&&(this.$emit("change-all",e),this.$bus.emit("selectedPopupDelete",e))}}},ri=ii,si=(a(1594),(0,Ca.A)(ri,ai,oi,!1,null,"4d1a7426",null)),li=si.exports;function di(e){return di="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},di(e)}function ci(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ci=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==di(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(di(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function ui(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function fi(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){ui(i,a,o,r,s,"next",e)}function s(e){ui(i,a,o,r,s,"throw",e)}r(void 0)}))}}function pi(e){return gi(e)||vi(e)||hi(e)||mi()}function mi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hi(e,t){if(e){if("string"==typeof e)return yi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(e,t):void 0}}function vi(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function gi(e){if(Array.isArray(e))return yi(e)}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wi(e,t,n){return(t=xi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xi(e){var t=Mi(e,"string");return"symbol"==di(t)?t:t+""}function Mi(e,t){if("object"!=di(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=di(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ki={name:"TreeDialogPopup",components:{TreeSelectedPopup:li},props:{popupTitle:{type:String,default:""},showPopup:{type:Boolean,default:function(){return!1}},treeNodeList:{type:Array,default:function(){return[]}},treeNodeClick:{type:Function,default:function(){return null}},multiple:{type:Boolean,default:!1},showSelectAllNodes:{type:Boolean,default:!1},parentNode:{type:Object,default:function(){return{}}},currentIdx:{type:String,default:""}},data:function(){var e,t;return{$scope:{},popupConfig:{currIdx:null,isVisible:!1},lazy:!1,treeDataMap:[],selectAllNodes:!1,isSelectedVisible:!1,selected:null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]}},computed:bi(bi({},(0,ei.aH)({isStaff:function(e){var t;return null===(t=e.selectDialog)||void 0===t?void 0:t.isStaff},condition:function(e){var t,n;return null!==(t=null===(n=e.selectDialog)||void 0===n?void 0:n.condition)&&void 0!==t?t:{}}})),{},{totalSelected:function(){var e,t;return null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]}}),watch:{selected:function(e){(this.totalSelected.length!==this.selected.length||!this.multiple&&this.selected[0]&&this.selected[0].name!==this.totalSelected[0].name)&&this.$store.commit("selectDialog/setSelected",e.filter((function(e){return e})))},totalSelected:function(e){this.totalSelected.length!==this.selected.length&&(this.selected=e)}},created:function(){this.$scope=this.$vnode.context,this.treeDataMap=this.$scope.treeDataMap,this.multiple=this.condition.multiple,this.lazy=this.$scope.lazy,""!==this.currentIdx&&void 0!==this.currentIdx&&null!==this.currentIdx&&(this.treeNodeList=this.parentNode[this.currentIdx].children||[])},mounted:function(){this.reviewSelected()},methods:{checkIncludeSelected:function(){var e=this;this.selected=this.selected.filter((function(t,n){return t&&"selectedIndex"===e.condition.selectedOrderBy&&(t.selectedIndex=n),t}));var t=this.selected.map((function(e){return e.id})),n=this.treeNodeList.filter((function(e){return t.includes(e.id)})),a=this.treeNodeList.filter((function(e){return e.totalSelectedCount&&e.totalSelectedCount>0}));if(n.length&&a.length&&!this.condition.multiple&&(this.treeNodeList=this.treeNodeList.map((function(e){return e.totalSelectedCount&&(delete e.totalSelectedCount,delete e.selectedNames),e}))),"selectedIndex"===this.condition.selectedOrderBy&&n.sort((function(e,t){return e.selectedIndex-t.selectedIndex})),n.length||a.length||this.parentNode[this.currentIdx].selectedNames){var o=n.length,i=n.length?n[0].name+(n[1]?"、"+n[1].name:""):"";a.length&&a.forEach((function(e){e.totalSelectedCount&&(o+=e.totalSelectedCount),""===i&&e.selectedNames&&(i=e.selectedNames)})),this.parentNode[this.currentIdx].selectedNames=i,this.parentNode[this.currentIdx].totalSelectedCount=o,this.$emit("update:parent-node",this.parentNode),this.$emit("update-selected")}this.multiple&&this.judgeSeletAllType()},reviewSelected:function(e){var t=this;this.selected=this.selected.filter((function(e){return e}));var n=this.selected.map((function(e){return e.id}));e&&(n=n.filter((function(t){return t!==e}))),this.treeNodeList.forEach((function(e){if(n.includes(e.id)){var a=t.condition.multiple?"checkboxes_"+e.id:"radio_"+e.id;t.multiple&&(e.checked=!0),t.$refs[a]&&t.$refs[a][0].toggle(!0)}else t.multiple&&e.canSelect&&(e.checked=!1)})),this.judgeSeletAllType()},selectAllNodesClick:function(){var e;this.selectAllNodes=!this.selectAllNodes;var t=this,n=[];function a(e){for(var o=0;o<e.length;o++){e[o].personId||(e[o].selectedNames&&(e[o].selectedNames=""),e[o].selectedCount&&(e[o].selectedCount=0),e[o].subOrgSelectedCount&&(e[o].subOrgSelectedCount=0),e[o].totalSelectedCount&&(e[o].totalSelectedCount=0));var i=t.$scope.treeDataMap[e[o].pId];if(i.selectedNames="",i.selectedCount=0,i.subOrgSelectedCount=0,i.totalSelectedCount=0,e[o].canSelect)if(e[o].checked=t.selectAllNodes,t.selectAllNodes){for(var r=!0,s=0;s<t.selected.length;s++)t.selected[s]&&e[o].id===t.selected[s].id&&(r=!1),t.selected[s]||(t.selected.splice(s,1),s--);r&&e[o]&&n.push(e[o])}else for(var l=0;l<t.selected.length;l++)t.selected[l]&&e[o]&&e[o].id===t.selected[l].id&&(t.selected.splice(l,1),l--);e[o].children&&e[o].children.length>0&&a(e[o].children)}}a(this.treeNodeList),n=n.filter((function(e){return e})),(e=t.selected).push.apply(e,pi(n)),this.$bus.emit("resetHistorySelectedInfo"),this.judgeSeletAllType(),this.$forceUpdate()},judgeSeletAllType:function(e){var t=this,n=!0;function a(e){for(var t=0;t<e.length;t++)e[t].canSelect&&!e[t].checked&&(n=!1),e[t].children&&e[t].children.length>0&&a(e[t].children)}a(this.treeNodeList),this.$nextTick((function(){t.$refs["checkAll"+t.currentIdx]&&t.$refs["checkAll"+t.currentIdx].toggle(n),t.selectAllNodes=n,t.$forceUpdate()}))},objToFormData:function(e){var t=new FormData;for(var n in e)t.append(n,e[n]);return t},loadChildNode:function(e,t){var n=this,a=this.treeNodeList[e],o=this;return!this.lazy||a.isLoaded||a.personId||a.userId||a.children||"allOrg"===this.condition.selectDialog&&["subOrg","treeNode"].includes(a.type)?t():void new Promise(function(){var e=fi(ci().mark((function e(t,i){var r,s,l,d,c,u,f,p,m,h,v,g,y;return ci().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("allStaff"!==n.condition.selectDialog){e.next=15;break}return r="/base/organMgr/findOrganPersonByOrgCode?orgCode=".concat(a.code||a.ocode),n.$scope.openSysCode&&(r+="&openSysCode="+n.$scope.openSysCode),e.next=5,o.$http({method:"get",url:r});case 5:if(s=e.sent,"success"===s.code){e.next=8;break}return e.abrupt("return",i(s.message));case 8:o.selected=o.selected.filter((function(e){return e})),l=o.$scope.treeDataAdapter([a].concat(pi(s.body.listdata))),d=o.$scope.toTreeNodeList(l,"allStaff"),d instanceof Array&&!d.length&&(d=o.$scope.simplyToTree(l)),t(d[0]),e.next=38;break;case 15:if("rootOrg"!==a.type&&"treeNode"!==a.type){e.next=28;break}return c="base/organMgr/findTreeNodeVOListByOrgId",u={orgId:a.id,self:!1,status:1},e.next=20,o.$http({method:"GET",url:c,params:u});case 20:if(f=e.sent,"success"===f.code){e.next=23;break}return e.abrupt("return",i(f.message));case 23:p=f.body.listdata.map((function(e){return e.canSelect=!["staffExt","allStaff"].includes(n.condition.selectDialog),e.name=e.nName,e.title=e.nName,e.photoUrl="/images/m-imgs/contacts/suborg.png",e})),m=o.$scope.simplyToTree(p),t(m),e.next=38;break;case 28:if("subOrg"!==a.type){e.next=38;break}return h="base/organMgr/queryLinkManByPager?orgId="+a.id,v=o.objToFormData({pageNum:1,pageSize:1e4}),e.next=33,o.$http({method:"POST",url:h,data:v});case 33:if(g=e.sent,"success"===g.code){e.next=36;break}return e.abrupt("return",i(g.message));case 36:y=g.body.pageInfo.list.map((function(e){return e.canSelect=!0,e.title=e.name,e.photoUrl="/apigw/base/user/download?id="+e.userId+"&dataField=photoData&nameField=photoName&cacheMaxAge=1800&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),e})),t(y);case 38:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()).then((function(e){var t;"allStaff"===n.condition.selectDialog?(a.children=e.children,o.$scope.treeDataMap[a.id]=a,a.isLoaded=!0,n.$bus.emit("resetHistorySelectedInfo"),n.judgeSeletAllType()):(a.isLoaded=!0,a.children=[].concat(pi(e),pi(null!==(t=null===a||void 0===a?void 0:a.children)&&void 0!==t?t:[])));return o.$forceUpdate(),a.children?!!a.children.length:0})).then((function(e){e?t():o.$toast(n.$tx("common.nothingMore","没有更多了"))}))},handleCellClick:function(e){var t=this.treeNodeList[e];if(t.type&&("rootOrg"===t.type||"subOrg"===t.type&&t.children&&t.children.length>0||0===t.isRealOrg||"treeNode"===t.type))this.popupConfig={currIdx:e,isVisible:!0};else{if(this.condition.multiple){if(this.selected=this.selected.filter((function(e){return e})),t.canSelect){for(var n=!1,a=0;a<this.selected.length;a++)(void 0!==this.selected[a].id&&this.selected[a].id===t.id||void 0!==this.selected[a].index&&this.selected[a].index===t.index)&&(n=!0,this.selected.splice(a--,1));t.checked=!n,n||this.selected.push(t)}}else t.canSelect&&this.$set(this.selected,0,t);this.checkIncludeSelected()}},handleConfirm:function(){this.$emit("update:parent-node",this.parentNode),this.$emit("update:show-popup",!1),this.$emit("update:current-idx",null),this.multiple?this.$emit("change-all"):this.$emit("handle-confirm")},onCellClick:function(e){this.treeNodeClick(e,this)},onPopupClose:function(){this.$scope.showGroup?this.$scope.showGroup=!1:this.$scope.showTeam?this.$scope.showTeam=!1:this.$scope.showSection?this.$scope.showSection=!1:this.$scope.showDepartment&&(this.$scope.showDepartment=!1),this.$emit("update:show-popup",!1),this.$emit("update:current-idx",null),this.multiple&&this.$emit("onPopupClose")}}},Li=ki,Si=(a(2788),(0,Ca.A)(Li,ti,ni,!1,null,"85d5d846",null)),Ti=Si.exports,Di=function(){var e=this,t=e._self._c;return t("div",[t("van-collapse",{attrs:{accordion:""},on:{change:e.onChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.treeNodeList,(function(n,a){return t("van-collapse-item",{key:a,attrs:{title:n.title,name:n.id}},[n.type&&void 0!==n.selectedNames&&null!==n.selectedNames&&""!=n.selectedNames?t("span",{attrs:{slot:"value"},slot:"value"},[e._v(e._s(n.selectedNames))]):e._e(),t("van-radio-group",{model:{value:e.$scope.selected[n.index],callback:function(t){e.$set(e.$scope.selected,n.index,t)},expression:"$scope.selected[item.index]"}},[t("van-cell-group",e._l(n.children,(function(a,o){return t("van-cell",{key:o,on:{click:function(t){return e.treeNodeClick(a)}}},[t("template",{slot:"title"},[a.type?e._e():t("van-radio",{ref:"radio_"+a.id,refInFor:!0,attrs:{"parent-item-index":n.index,name:a}}),t("div",{staticClass:"photo"},[t("img",{staticClass:"photo",attrs:{src:a.photoUrl}})]),t("span",[e._v(e._s(a.customName||a.name))])],1)],2)})),1)],1)],1)})),1)],1)},Ni=[],Ai={components:{},props:{treeNodeList:{type:Array,default:function(){return[]}},condition:{type:Object,default:function(){return{}}},activeName:{type:String,default:function(){return null}},onChange:{type:Function,default:function(){return null}},treeNodeClick:{type:Function,default:function(){return null}}},data:function(){return{$scope:{},acitveOrg:""}},computed:{},watch:{},created:function(){this.$scope=this.$vnode.context},beforeDestroy:function(){},mounted:function(){},methods:{}},Yi=Ai,Ci=(a(681),(0,Ca.A)(Yi,Di,Ni,!1,null,"43b0ec8c",null)),Oi=Ci.exports,Ii={namespaced:!0,state:function(){return{lazy:!1,isStaff:!1,selected:[],condition:{}}},mutations:{setSelected:function(e,t){e.selected=t},setIsStaff:function(e,t){e.isStaff=t},setCondition:function(e,t){e.condition=t},setLazy:function(e,t){e.lazy=t}}},Ei=Ii;function $i(e){return $i="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},$i(e)}function Pi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pi=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==$i(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError($i(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function ji(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Fi(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){ji(i,a,o,r,s,"next",e)}function s(e){ji(i,a,o,r,s,"throw",e)}r(void 0)}))}}function Hi(e){return Wi(e)||Ri(e)||Ui(e)||Bi()}function Bi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ui(e,t){if(e){if("string"==typeof e)return Vi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(e,t):void 0}}function Ri(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Wi(e){if(Array.isArray(e))return Vi(e)}function Vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){qi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qi(e,t,n){return(t=Gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(e){var t=Ki(e,"string");return"symbol"==$i(t)?t:t+""}function Ki(e,t){if("object"!=$i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=$i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Qi={components:{TreeDialogPopup:Ti,TreeDialogCollapse:Oi,TreeSelectedPopup:li},props:{},data:function(){return{dialogTitle:this.$tx("common.plChoose","请选择"),dialogVisible:!1,areaDialogVisible:!1,isStaff:!1,treeNodeList:[],selected:[],selectedNames:"",callback:null,condition:{},prevSelected:[],activeName:"",searchText:"",searchResult:null,searchSelected:[],searchFocus:!1,dataBackUp:[],isHasChild:!1,showDepartment:!1,showSection:!1,showTeam:!1,showGroup:!1,DepartmentTitle:"",departmentData:"",SectionTitle:"",sectionData:"",TeamTitle:"",TeamData:"",groupTitle:"",groupData:"",isTreeData:!1,ListData:[],byOrgTreeData:null,byWgTreeData:null,byJbTreeData:null,byPrivateWorkgroupData:null,treeNodeVOList:null,treeDataMap:{},showSelectAllNodes:!1,selectAllNodes:!1,groupOrgans:[],openSysCode:"",required:!0,loading:!1,deletePersonPopup:!1,deletePersonPopupObj:{canDeletePerson:[],ref:""},showSelectByTabs:!1,selectByTabsActiveName:"byOrg",selectByTabsOption:[{text:this.$tx("ecmapp.selectDialog.byInstitution","按机构"),value:"byOrg"},{text:this.$tx("ecmapp.selectDialog.byPosition","按岗位"),value:"byJobPosition"},{text:this.$tx("ecmapp.selectDialog.byGroup","按群组"),value:"byWorkgroup"},{text:this.$tx("ecmapp.selectDialog.byCommonGroup","按常用组"),value:"byPrivateWorkgroup"}],canClick:!0,popupConfig:{currIdx:null,isVisible:!1}}},computed:Ji(Ji({},(0,ei.L8)(["loginUser"])),{},{selectedCount:function(){var e=[],t=[];return this.selected.forEach((function(n){n.personId?t.push(n):e.push(n)})),(t.length?t.length+"人":"")+(t.length&&e.length?",":"")+(e.length?e.length+"个部门(含子部门)":"")},totalSelected:function(){var e,t;return null!==(e=null===(t=this.$store.state.selectDialog)||void 0===t?void 0:t.selected)&&void 0!==e?e:[]},areaValue:function(){var e;return null===(e=this.selected[this.selected.length-1])||void 0===e?void 0:e.id}}),watch:{treeNodeList:{deep:!0,handler:function(){this.judgeSeletAllType()}},selected:function(e){this.$store.commit("selectDialog/setSelected",e)},totalSelected:function(e){this.selected=e},searchText:function(e){this.searchData(e)},showSection:function(e){var t=this;e||this.$nextTick((function(){t.showDepartment=!1}))},showTeam:function(e){var t=this;e||this.$nextTick((function(){t.showSection=!1}))}},created:function(){this.$bus.on("openTreeDialog",this.openTreeDialog),this.$bus.on("selectedPopupDelete",this.selectedPopupDelete),this.$bus.on("resetHistorySelectedInfo",this.resetHistorySelectedInfo)},beforeDestroy:function(){this.$bus.off("resetHistorySelectedInfo",this.resetHistorySelectedInfo),this.$bus.off("selectedPopupDelete",this.selectedPopupDelete),this.$bus.off("openTreeDialog",this.openTreeDialog)},mounted:function(){},methods:{openTreeDialog:function(e,t,n,a,o,i){var r=this;if(this.canClick){this.popupConfig={isVisible:!1,currIdx:null},t["init-tree-data"]=n,this.canClick=!1,this.$store.state.hasOwnProperty("selectDialog")||this.$store.registerModule("selectDialog",Ei),window._store=this.$store,this.dialogVisible=!1,this.areaDialogVisible=!1,this.isTreeData=!1,this.selected=[],this.dialogTitle=e,this.condition=t,this.callback=a,this.showDepartment=!1,this.showSection=!1,this.showTeam=!1,this.showGroup=!1,this.searchResult=null,this.dataBackUp=[],this.groupOrgans=[],this.byOrgTreeData=null,this.byJbTreeData=null,this.byWgTreeData=null,this.byPrivateWorkgroupData=null,this.treeNodeVOList=null,void 0!==o&&null!==o&&(i&&-1!==pSelected.indexOf(i)?this.prevSelected=o.split(i):this.prevSelected=o.replace(/、/g,",").replace(/;/g,",").replace(/,/g,",").split(",")),"staff"!==t.selectDialog||"0"!==t["org-level"]&&"10"!==t["org-level"]||(t.selectDialog="staffExt"),"staff"===t.selectDialog&&"8"===t["org-level"]&&(t.selectDialog="allStaff"),"allNode"===t.selectDialog&&void 0===t["org-level"]&&(t.selectDialog="curOrgNode"),this.lazy=this.isLazy(),!t.multiple||t.oneByOne||"6"===t.todoMode?this.showSelectAllNodes=!1:"staff"!==t.selectDialog&&"staffExt"!==t.selectDialog&&"allStaff"!==t.selectDialog&&"workgroupStaff"!==t.selectDialog&&"jobPositionStaff"!==t.selectDialog&&"wfNodeUser"!==t.selectDialog||(this.showSelectAllNodes=!0),void 0!==t.required&&(this.required=t.required),("allStaff"===t.selectDialog||"staffExt"===t.selectDialog||"staff"===t.selectDialog&&!t["org-level"])&&(this.showSelectByTabs=!0);var s=null;if("allOrg"===t.selectDialog||"allStaff"===t.selectDialog||"allNode"===t.selectDialog||"curOrgNode"===t.selectDialog){this.isStaff=!0,s={method:"GET",url:"base/organMgr/findTreeNodeVOListByNodeId",params:{status:1}};var l=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(l=t["root-org-code"]),"curOrgNode"===t.selectDialog?(s.url="base/organMgr/findTreeNodeVOListByOrgCode",s.params["orgCode"]=l):"allNode"===t.selectDialog&&"0"===t["org-level"]?(s.url="base/organMgr/findGroupOrganByOrgCode",s.params["orgCode"]=l):"10"===t["org-level"]&&(s.url="base/organMgr/findChildOrganByOrgCode",s.params["orgCode"]=l,s.params["self"]=!0),t["node-level"]&&(s.params["nLevelFilter"]=Number(t["node-level"])),t["node-id"]&&(s.params["nodeId"]=t["node-id"],s.params["self"]=!0),t["org-self"]&&(s.params["self"]=t["org-self"])}else if("treeNode"===t.selectDialog||"area"===t.selectDialog)this.isTreeData=!0,s={method:"GET",url:"base/organMgr/findTreeNodeVOListByNodeId",params:{type:t.selectDialog,status:1}},t["node-level"]&&(s.params["nLevelFilter"]=Number(t["node-level"]));else if("rootorg"===t.selectDialog)this.isStaff=!0,t["node-level"]&&(s.params["nLevelFilter"]=Number(t["node-level"])),t["node-id"]&&(s.params["nodeId"]=t["node-id"],s.params["self"]=!0),t["org-type"]&&(s.params["orgType"]=Number(t["org-type"])),s={method:"GET",url:"base/organMgr/findTreeNodeVOListByNodeId",params:{status:1}};else if("suborg"===t.selectDialog){this.isStaff=!0;var d=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(d=t["root-org-code"]);var c="";if(this.condition["org-level"])if(-1!==this.condition["org-level"].indexOf(",")){var u=this.condition["org-level"].split(",");c=u[u.length-1]}else c=this.condition["org-level"];s={method:"GET",url:"base/organMgr/findAllOrganByOrgCode",params:{orgCode:d,subOrgLevel:c}}}else if("suborgExt"===t.selectDialog){this.isStaff=!0;var f=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(f=t["root-org-code"]);var p={orgCode:"group_all_corp:"+f,subOrgLevel:2};if(s={url:"base/organMgr/findAllOrganByOrgCode",method:"GET",contentType:"application/x-www-form-urlencoded",params:p},"10"===t["org-level"])p.orgCode="group_child_corp:"+f,p.self=!0;else if(void 0!==t["org-level"]){var m=t["org-level"].split(",");p.subOrgLevel=m[m.length-1]}}else if("workgroup"===t.selectDialog){var h=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(h=t["root-org-code"]),s={method:"POST",url:"base/workGroup/querydata",data:[{field:"orgCode",compare:"=",value:h},{field:"status",compare:"=",value:1}]}}else if("jobPosition"===t.selectDialog){var v=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(v=t["root-org-code"]),s={method:"POST",url:"base/jobPosition/querydata",data:[{field:"orgCode",compare:"=",value:v},{field:"status",compare:"=",value:1}]}}else if("staff"===t.selectDialog){this.isStaff=!0;var g=t["org-id"],y=t["org-self"],_=t["org-level"],b=t["sub-org-name"],w=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(w=t["root-org-code"]),1===_||"1"===_?s={method:"GET",url:"base/organMgr/findOrgLeaderByOrgCode",params:{orgCode:w,self:y}}:2===_||"2"===_?(this.orgId="",this.$vnode.context.$parent.curTN?this.orgId=this.$vnode.context.$parent.curTN.staffOrgID.split("-")[1]:this.loginUser.staffList.forEach((function(e){r.orgId+=(""===r.orgId?"":",")+e.orgFullId.split("-")[1]})),s={method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:this.orgId,self:y}}):s=void 0!==g&&null!==g&&""!==g?{method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:g,self:y}}:void 0!==b&&null!==b&&""!==b?{method:"GET",url:"base/organMgr/findOrganPersonBySubOrgName",params:{orgCode:w,subOrgName:b,self:y}}:{method:"GET",url:"base/organMgr/findOrganPersonByOrgCode",params:{orgCode:w,self:y}}}else if("jobPositionStaff"===t.selectDialog){this.isStaf=!0;var x=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(x=t["root-org-code"]),s={method:"GET",url:"base/organMgr/findOrganPersonByJobPosition",params:{orgCode:x,jobPositionCode:t["job-position-code"]}},t.selectDialog="staff"}else if("workgroupStaff"===t.selectDialog){this.isStaff=!0;var M=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(M=t["root-org-code"]),s={method:"GET",url:"base/organMgr/findOrganPersonByWorkgroup",params:{orgCode:M,workgroupCode:t["workgroup-code"]}},t.selectDialog="staff"}else if("wfNodeUser"===t.selectDialog){this.isStaff=!0,this.showSelectByTabs=t.showSelectByTabs,this.selectByTabsActiveName="byOrg";var k="";if(n.forEach((function(e){"asyncLoadingUsers"===e.type&&(k+=(""===k?"":",")+(e.orgId||e.parentId))})),""!==k)s={method:"GET",url:"base/organMgr/findOrganPersonByOrgId",params:{orgId:k,self:k.split(",").length>1}},n=null,t.selectDialog="staff";else{this.ListData=n;var L=this.treeDataAdapter(n);if(1===this.groupOrgans.length)for(var S=0;S<L.length;S++)1!==L[S].orgLevel&&1!==L[S].olevel||L.splice(S--,1);this.treeNodeList=this.toTreeNodeList(L),this.resetHistorySelectedInfo(),this.dialogVisible=!0}}else if("staffExt"===t.selectDialog){this.isStaff=!0;var T=this.loginUser.orgCode;void 0!==t["root-org-code"]&&(T=t["root-org-code"]),s={url:"base/organMgr/findGroupOrganByOrgCode",method:"GET",contentType:"application/x-www-form-urlencoded",params:{orgCode:T}},"10"===t["org-level"]&&(s.url="base/organMgr/findChildOrganByOrgCode",s.params.self=!0)}t["option-generate-url"]&&""!==t["option-generate-url"]&&(s={method:t["option-generate-gethod"]||"get",url:t["option-generate-url"]});var D=this;if(null!==s)if("false"!==t["only-cur-sys"]&&!1!==t["only-cur-sys"]&&(this.openSysCode="",this.$vnode.context.$parent.wfInstance?this.openSysCode=this.$vnode.context.$parent.wfInstance.sysCode:this.$vnode.context.process&&this.$vnode.context.process.sysCode?this.openSysCode=this.$vnode.context.process.sysCode:this.$vnode.context.vo&&this.$vnode.context.vo.sysCode?this.openSysCode=this.$vnode.context.vo.sysCode:"eccloud"!==this.loginUser.sysCode&&(this.openSysCode=this.loginUser.sysCode),this.openSysCode&&(s.params||(s.params={}),s.params.openSysCode=this.openSysCode)),null!=n){var N=this.treeDataAdapter(n);this.treeNodeList=this.toTreeNodeList(N),this.isTreeData?this.areaDialogVisible=!0:this.dialogVisible=!0,this.judgeSeletAllType()}else this.isTreeData?this.areaDialogVisible=!0:this.dialogVisible=!0,this.loading=!0,this.$http(s).then((function(e){if(r.loading=!1,"success"===e.code){if(["rootorg","allStaff"].includes(t.selectDialog)){var n=[];e.body.listdata.forEach((function(e){"rootOrg"===e.type&&e.fullID&&e.fullID.split("-").forEach((function(e){-1===n.indexOf(e)&&n.push(e)}))})),e.body.listdata=e.body.listdata.filter((function(e){if("treeNode"!==e.type||-1!==n.indexOf(e.id))return!0}))}r.ListData=e.body.listdata;var a=Hi(e.body.listdata);"rootorg"!==t.selectDialog&&"allNode"!==t.selectDialog&&"allOrg"!==t.selectDialog&&"allStaff"!==t.selectDialog&&"staffExt"!==t.selectDialog&&"suborgExt"!==t.selectDialog||(a=r.filterEmputyNode(a));var o=r.treeDataAdapter(a);D.treeNodeList=r.toTreeNodeList(o),r.treeNodeList instanceof Array&&!r.treeNodeList.length&&(r.treeNodeList=r.simplyToTree(o)),(r.isStaff||"suborg"===t.selectDialog)&&r.resetHistorySelectedInfo(),r.judgeSeletAllType(),r.$nextTick((function(){r.lazy&&r.prevSelected.length>0&&""!==r.prevSelected[0]&&r.lazyLoadDefaultChecked(r.prevSelected)}))}else r.$dialog.alert({message:e.message})}));this.$store.commit("selectDialog/setIsStaff",this.isStaff),this.$store.commit("selectDialog/setSelected",this.selected),this.$store.commit("selectDialog/setCondition",Object.assign({},this.condition,{oldValue:o||""})),setTimeout((function(){r.canClick=!0}),2e3)}},filterEmputyNode:function(e){for(var t=[],n=0;n<e.length;n++){var a=e[n];"rootOrg"===a.type&&(a.fullID&&a.fullID.indexOf("-")>0?(a.isLeaf=1,a.fullID.split("-").forEach((function(e){-1===t.indexOf(e)&&t.push(e)}))):e.splice(n--,1))}return e.filter((function(e){if("treeNode"!==e.type||-1!==t.indexOf(e.id))return!0}))},treeDataAdapter:function(e){var t=this,n=JSON.parse(JSON.stringify(e));this.condition.onSelectTreeDataLoaded&&(n=this.condition.onSelectTreeDataLoaded(n,this.condition));for(var a=function(e){var a=n[e];if(a.type&&(a.type=a.type.replace(/\s*/g,"")),"treeNode"===t.condition.selectDialog||"area"===t.condition.selectDialog)a.pId=a.parentID,a.name=a.nName,a.title=a.name,a.canSelect=!0;else if(["rootorg"].includes(t.condition.selectDialog))a.pId=a.parentID||"root",a.ocode?(a.name=a.nName,a.title=a.name,a.canSelect=!0,a.photoUrl="./images/m-imgs/contacts/group.png",delete a.type):(a.name=a.nName||a.orgFullName,a.title=a.name||a.orgFullName,a.photoUrl="./images/m-imgs/contacts/suborg.png",a.selectedNames="",a.selectedCount=0,a.subOrgSelectedCount=0,a.totalSelectedCount=0);else if("suborg"===t.condition.selectDialog){var i=["2"];if(t.condition["org-level"]?i=t.condition["org-level"].split(","):t.condition["org-level"]="2",a.type="suborg",a.pId=a.parentId,a.title=a.orgFullName,-1!==a.title.indexOf("-")){var r=a.title.split("-");a.title=r[r.length-1]}a.canSelect=1==a.isRealOrg,-1===t.condition["org-level"].indexOf(a.orgLevel+"")&&-1===t.condition["org-level"].indexOf(a.olevel+"")&&(a.canSelect=!1),a.orgLevel>2&&(a.name=a.title),1===a.orgLevel||1===a.olevel?n.splice(e--,1):-1!==t.condition["org-level"].indexOf(a.orgLevel+"")||-1!==t.condition["org-level"].indexOf(a.olevel+"")?0!==a.isRealOrg&&(a.canSelect=!0):(a.orgLevel>i[i.length-1]||a.olevel>i[i.length-1])&&n.splice(e--,1),a.photoUrl="./images/m-imgs/contacts/suborg.png",a.selectedNames="",a.selectedCount=0}else if("staff"===t.condition.selectDialog||"wfNodeUser"===t.condition.selectDialog||"staffExt"===t.condition.selectDialog||"allStaff"===t.condition.selectDialog)if(a.personId){if(!0!==a.collapse||t.condition.onebyone)a.pId=a.parentId||a.groupId||a.orgId,a.pName=a.orgFullName.substring(a.orgFullName.indexOf("-")+1).replace(/-/g,"\\"),a.title=a.pName+"\\"+a.name+"/"+a.account,!0!==t.condition.showmobile&&"true"!==t.condition.showmobile||(a.mobile||(a.mobile=t.$tx("ecmapp.common.nothing","无")),a.name=a.name+"<"+a.mobile+">",a.title=a.name),!0!==t.condition.showemail&&"true"!==t.condition.showemail||(a.email||(a.email=t.$tx("ecmapp.common.nothing","无")),a.name=a.name+"<"+a.email+">",a.title=a.name),!0!==t.condition.showaccount&&"true"!==t.condition.showaccount||(a.showaccount||(a.showaccount=t.$tx("ecmapp.common.nothing","无")),a.name=a.name+"<"+a.showaccount+">",a.title=a.name),a.photoUrl="/apigw/base/user/download?id="+a.userId+"&dataField=photoData&nameField=photoName&cacheMaxAge=1800&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),a.canSelect=!0,a.selectedNames="",a.checked=!1;else for(var s=0;s<n.length;s++)if(n[s].id===a.groupId||n[s].id===a.parentId||n[s].id===a.orgId){var l=n[s].collapseNodes||[];"1"===t.condition.onebyone&&0!==l.length||(l.push(a),n[s].collapseNodes=l,n.splice(e--,1));break}}else a.pId=a.parentID||a.parentId||a.orgId||"-1",a.name=a.nName||a.name,a.title=a.fullName||a.orgFullName,-1!==a.title.indexOf("-")&&(a.title=a.title.substring(a.title.indexOf("-")+1)),0===e&&"true"===t.condition["org-self"]&&(a.open=!0),void 0===a.type&&(1===a.orgLevel?a.type="rootOrg":a.type="subOrg"),a.selectedNames="",a.selectedCount=0,a.subOrgSelectedCount=0,a.totalSelectedCount=0,!0===a.collapse&&"wfNodeUser"!==t.condition.selectDialog?a.canSelect=!0:(a.canSelect=!1,a.code||a.ocode||(a.isLoaded=!0)),a.photoUrl="./images/m-imgs/contacts/suborg.png",t.condition.oneByOne||1!==a.orgLevel&&1!==a.olevel||t.groupOrgans.push(a);else["curOrgNode","allNode","allOrg","suborgExt"].includes(t.condition.selectDialog)?(a.pId=a.pId||a.parentID||a.parentId||a.treeId||-1,a.canSelect=!0,"suborgExt"===t.condition.selectDialog?(a.title=a.name,1===a.orgLevel?(a.type="rootOrg",a.canSelect=!1):a.type="suborg"):(a.name=a.nName||a.orgFullName,a.title=a.nName||a.orgFullName,a.type=a.type||"rootOrg"),"rootOrg"===a.type?a.isLink=!0:"suborg"===a.type&&(a.canSelect=1==a.isRealOrg),a.photoUrl="./images/m-imgs/contacts/suborg.png",a.selectedNames="",a.selectedCount=0):(a.title=a.title||a.name,a.photoUrl="./images/m-imgs/contacts/group.png");if(a.canSelect&&t.prevSelected.length>0){for(var d=0;d<t.prevSelected.length;d++){var c=t.prevSelected[d],u=a.title;-1===c.indexOf("\\")&&u.indexOf("\\")>0&&(u=u.substring(u.lastIndexOf("\\")+1));var f=a.name+"/"+a.account;if(c===a.id||c===a.name&&"suborg"!==t.condition.selectDialog&&"suborgExt"!==t.condition.selectDialog||c===a.name&&2===a.orgLevel||c===u||c===f||a.code&&c===a.code){for(var p=0;p<t.selected.length;p++)t.selected[p].id===c&&t.selected.splice(p--,1);t.selected.push(a),a.checked=!0,a.selectedIndex=d,t.prevSelected[d]="removed";break}}t.lazy&&t.selected.forEach((function(e){e&&e.id===a.id&&(a.checked=!0)}))}o=e},o=0;o<n.length;o++)a(o);return!0===this.showSelectByTabs&&("byOrg"!==this.selectByTabsActiveName||this.byOrgTreeData?"byWorkgroup"!==this.selectByTabsActiveName||this.byWgTreeData?"byJobPosition"!==this.selectByTabsActiveName||this.byJbTreeData?"byPrivateWorkgroup"!==this.selectByTabsActiveName||this.byPrivateWorkgroupData||(this.byPrivateWorkgroupData=JSON.parse(JSON.stringify(n))):this.byJbTreeData=JSON.parse(JSON.stringify(n)):this.byWgTreeData=JSON.parse(JSON.stringify(n)):(this.byOrgTreeData=JSON.parse(JSON.stringify(n)),this.treeNodeVOList=JSON.parse(JSON.stringify(e)))),n},isLazy:function(){var e=!1,t=this.condition.selectDialog;return"allStaff"!==t&&"allOrg"!==t&&"allNode"!==t&&"curOrgNode"!==t&&"staffExt"!==t||this.condition["option-generate-url"]||this.condition["init-tree-data"]||(e=!0),e},selectAllNodesClick:function(){var e=this;function t(n){for(var a=0;a<n.length;a++)n[a].personId||(n[a].selectedNames&&(n[a].selectedNames=""),n[a].selectedCount&&(n[a].selectedCount=0),n[a].subOrgSelectedCount&&(n[a].subOrgSelectedCount=0),n[a].totalSelectedCount&&(n[a].totalSelectedCount=0)),n[a].canSelect&&(n[a].checked=e.selectAllNodes,e.selectAllNodes&&e.selected.push(n[a])),n[a].children&&n[a].children.length>0&&t(n[a].children)}this.selected=[],t(this.treeNodeList),this.resetHistorySelectedInfo(),this.$forceUpdate()},judgeSeletAllType:function(){var e=this;setTimeout((function(){var t=[];function n(e){for(var a=0;a<e.length;a++)e[a].canSelect&&t.push(e[a]),e[a].children&&e[a].children.length>0&&n(e[a].children)}n(e.treeNodeList),e.selectAllNodes=t.length===e.selected.length&&0!==e.selected.length}),0)},simplyToTree:function(e){var t=[],n=e.reduce((function(e,t){return delete t.children,e[t.id]=t,e}),{});return e.forEach((function(e){e.parentID&&n[e.parentID]?n[e.parentID].children?n[e.parentID].children.push(n[e.id]):n[e.parentID].children=[n[e.id]]:t.push(n[e.id])})),t},toTreeNodeList:function(e,t){var n=this,a=this,o=[];if(!Array.isArray(e))return o;if(t||(this.treeDataMap={}),e.forEach((function(e){(!n.condition.oneByOne||e.orgLevel>1)&&(n.treeDataMap[e.id]=e),n.condition.oneByOne&&2===e.orgLevel&&(e.title=e.orgFullName)})),this.isTreeData){e.forEach((function(e){var t=n.treeDataMap[e.pId];t&&t.nLevel>=1?t.children?t.children.push(e):t.children=[e]:null===e.pId&&o.push(e)}));var i={province_list:{},city_list:{},county_list:{}};return o.forEach((function(e,t){i.province_list.count||(i.province_list.count=9),i.province_list.count++,6===e.id.length?e.areaValue=e.id.substring(0,2):e.areaValue=i.province_list.count,i.province_list[e.areaValue+"0000"]=e.nName||e.name,e.children&&e.children.length>0&&e.children.forEach((function(t){i.city_list[e.fullName]||(i.city_list[e.fullName]={count:0}),i.city_list[e.fullName].count++,n.prevSelected.length>0&&n.prevSelected[0]===e.fullName&&n.selected.push(e.areaValue),6===t.id.length?t.areaValue=e.areaValue+t.id.substring(2,4):t.areaValue=e.areaValue+(i.city_list[e.fullName].count<10?"0":"")+i.city_list[e.fullName].count,i.city_list[t.areaValue+"00"]=t.nName||t.name,n.prevSelected.length>0&&n.prevSelected[0]===t.fullName&&n.selected.push(t.areaValue),t.children&&t.children.length>0&&t.children.forEach((function(e){i.county_list[t.fullName]||(i.county_list[t.fullName]={count:0}),i.county_list[t.fullName].count++,6===e.id.length?e.areaValue=t.areaValue+e.id.substring(4):e.areaValue=t.areaValue+(i.county_list[t.fullName].count<10?"0":"")+i.county_list[t.fullName].count,i.county_list[e.areaValue]=e.nName||e.name,n.prevSelected.length>0&&n.prevSelected[0]===e.fullName&&n.selected.push(e.areaValue)}))}))})),delete i.province_list.count,i}return e.forEach((function(e){var i=a.treeDataMap[e.pId];if(i){var r=i.children||(i.children=[]);if(n.lazy&&t&&"rootOrg"===e.type?o.push(e):r.push(e),["rootorg","allNode","allOrg","allStaff","staffExt"].includes(a.condition.selectDialog)&&(!e.type||n.lazy&&"rootOrg"===e.type)){var s=i;while(s)s.organCounts=(s.organCounts||0)+1,s=a.treeDataMap[s.pId]}}else!e.pId&&a.isStaff||o.push(e);n.lazy&&"rootOrg"===e.type&&(e.organCounts=1)})),o.forEach((function(e,t){e.index=t})),["rootorg","allNode","allOrg","allStaff","staffExt"].includes(a.condition.selectDialog)?o=a.clearEmptyTreeNode(o):"staff"===a.condition.selectDialog&&(o=a.clearEmptyOrgNode(o)),o},clearEmptyTreeNode:function(e){for(var t=0;t<e.length;t++)e[t].type&&(e[t].organCounts?e[t].children&&this.clearEmptyTreeNode(e[t].children):e.splice(t--,1));return e},clearEmptyOrgNode:function(e){for(var t=0;t<e.length;t++)e[t].type&&(e[t].personId||e[t].children&&0!==e[t].children?e[t].children&&this.clearEmptyOrgNode(e[t].children):e.splice(t--,1));return e},resetHistorySelectedInfo:function(){var e=this;this.condition.oneByOne?this.treeNodeList.forEach((function(e,t){e.index=t})):"selectedIndex"===this.condition.selectedOrderBy&&this.selected.sort((function(e,t){return e.selectedIndex-t.selectedIndex}));var t=[];this.selected.forEach((function(t){var n=e.treeDataMap[t.pId];n&&(n.selectedNames="",n.selectedCount=0,n.subOrgSelectedCount=0,n.totalSelectedCount=0)})),this.selected.forEach((function(n){if(n&&e.treeDataMap[n.pId]){var a=e.treeDataMap[n.pId];n.checked=!1,e.setOrgSelectedInfo(a,n,!0),void 0!==a&&(t[a.index]=n,e.updateSelectedInfo(e.treeDataMap[a.pId],a),void 0!==e.treeDataMap[a.pId]&&(a=e.treeDataMap[a.pId],e.updateSelectedInfo(e.treeDataMap[a.pId],a),void 0!==e.treeDataMap[a.pId]&&(a=e.treeDataMap[a.pId],e.updateSelectedInfo(e.treeDataMap[a.pId],a),void 0!==e.treeDataMap[a.pId]&&(a=e.treeDataMap[a.pId],e.updateSelectedInfo(e.treeDataMap[a.pId],a)))))}})),this.condition.oneByOne&&t.length>0&&(this.selected=t)},searchData:function(e){var t=this,n=this;if(this.searchSelected=[],""!==e)if(this.condition.multiple&&this.condition.oneByOne){this.dataBackUp=JSON.parse(JSON.stringify(this.treeNodeList));for(var a=0;a<this.dataBackUp.length;a++){if(this.dataBackUp[a].children)for(var o=0;o<this.dataBackUp[a].children.length;o++){var i=this.dataBackUp[a].children[o];(!i.account||-1===i.name.indexOf(e)&&-1===i.account.indexOf(e))&&this.dataBackUp[a].children.splice(o--,1)}0===this.dataBackUp[a].children.length&&this.dataBackUp.splice(a--,1)}this.searchResult=this.dataBackUp}else{0===this.dataBackUp.length&&(this.dataBackUp=this.treeDataToArray(JSON.parse(JSON.stringify(this.treeNodeList))));for(var r=[],s=0;s<this.dataBackUp.length;s++)this.isStaff?(this.dataBackUp[s].children||(this.dataBackUp[s].children=[this.dataBackUp[s]]),this.dataBackUp[s].children.forEach((function(n){void 0!==n.personId?-1===n.name.indexOf(e)&&-1===(n.account&&n.account.indexOf(e))||(r.push(n),void 0!==t.treeDataMap[n.id]&&t.treeDataMap[n.id].checked&&t.searchSelected.push(n)):(n.ocode||n.collapse||n.orgLevel)&&(n.name.indexOf(e)>-1||(n.ocode&&n.ocode.indexOf(e))>-1)&&(r.push(n),void 0!==t.treeDataMap[n.id]&&t.treeDataMap[n.id].checked&&t.searchSelected.push(n))}))):-1!==n.dataBackUp[s].name.indexOf(e)&&(r.push(n.dataBackUp[s]),void 0!==n.treeDataMap[this.dataBackUp[s].id]&&n.treeDataMap[n.dataBackUp[s].id].checked&&n.searchSelected.push(this.dataBackUp[s]));this.searchResult=r}else this.searchResult=null},treeDataToArray:function(e){function t(e,n){n.children&&n.children.forEach((function(n){!n.type||"subOrg"!==n.type&&"treeNode"!==n.type?e.push(n):t(e,n)}))}return e.forEach((function(e){e.children&&e.children.forEach((function(n,a){!n.type||"subOrg"!==n.type&&"suborg"!==n.type&&"treeNode"!==n.type||t(e.children,n)}))})),e},onSelectByTabsHandleClick:function(e){var t=this,n=this;n.lazy=!1,n.treeNodeList=[];var a=null;"byWorkgroup"===e?a=this.byWgTreeData:"byJobPosition"===e?a=this.byJbTreeData:"byPrivateWorkgroup"===e?a=this.byPrivateWorkgroupData:(a=this.byOrgTreeData,n.lazy=this.isLazy());var o="";if(this.showSelectByTabs&&this.selected.length>0&&this.selected.forEach((function(e){""!==o&&(o+=","),o+=e.id})),null===a){var i=[];this.treeNodeVOList.forEach((function(e){(1===e.isRealOrg&&1===e.orgLevel||"rootOrg"===e.type)&&i.push(e.code||e.ocode)})),0===i.length&&i.push(n.loginUser.orgCode);var r={method:"POST",url:"base/organMgr/findLinkManByGroupType",params:{orgCodes:i.join(),byType:e}};n.$http(r).then((function(i){if("success"===i.code){var r,s=[];if("staff"===t.condition.selectDialog||"byWorkgroup"!==e&&"byJobPosition"!==e)s=i.body.listdata;else s=JSON.parse(JSON.stringify(t.treeNodeVOList)),(r=s).push.apply(r,Hi(i.body.listdata));n.prevSelected=o.split(","),a=n.treeDataAdapter(s),n.treeNodeList=n.toTreeNodeList(a),n.resetHistorySelectedInfo()}else n.$dialog.alert({message:i.message})}))}else""!==o&&a.forEach((function(e){if(-1!==o.indexOf(e.id)){for(var n=0;n<t.selected.length;n++)t.selected[n].id===e.id&&t.selected.splice(n--,1);t.selected.push(e),e.checked=!0}})),n.treeNodeList=n.toTreeNodeList(a),n.resetHistorySelectedInfo()},submitSearchForm:function(){this.condition.multiple?this.searchText="":this.submitForm()},dataDecrypt:function(e){var t=this;return new Promise(function(){var n=Fi(Pi().mark((function n(a,o){var i,r,s,l,d,c,u;return Pi().wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(i=[],r="sm4",s=0;s<e.length;s++)for(l in e[s])"string"===typeof e[s][l]&&"{"===e[s][l].substring(0,1)&&"}"===e[s][l].substring(e[s][l].length-1)&&(d=JSON.parse(e[s][l]),r=d.enMode,e[s].dataIndex=s,i.push(e[s]));if(!(i.length>0)){n.next=10;break}return n.next=6,t.$http({url:"/common/dataDecrypt",method:"post",headers:{"Content-Type":"application/json"},data:{enMode:r,data:JSON.stringify(i)}});case 6:c=n.sent,"success"===c.code&&(t.condition.multiple?(u=JSON.parse(c.body.data),u.forEach((function(t){e[t.dataIndex]=t}))):e[0]=JSON.parse(c.body.data),a(!0)),n.next=11;break;case 10:a(!0);case 11:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())},submitForm:function(){var e=this;return Fi(Pi().mark((function t(){var n,a;return Pi().wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(n=0;n<e.selected.length;n++)e.selected[n]||e.selected.splice(n--,1);if(0!==e.selected.length||!1===e.required){t.next=5;break}return e.dialogTitle=e.dialogTitle||"",e.$dialog.alert({message:e.$tx("common.plChooseContent",{content:e.dialogTitle.replace("管理","").replace("请选择","").replace("请选择","")},"请选择".concat(e.dialogTitle.replace("管理","").replace("请选择","").replace("请选择","")))}),t.abrupt("return");case 5:return a=e.selected.map((function(e){return delete e.children,e})),t.next=8,e.dataDecrypt(a);case 8:e.closeDialog({code:"success",value:a});case 9:case"end":return t.stop()}}),t)})))()},handleConfirm:function(){this.submitForm(),this.popupConfig={isVisible:!1,currIdx:null}},closeDialog:function(e){this.$store.state.hasOwnProperty("selectDialog")&&this.$store.unregisterModule("selectDialog"),void 0===e&&(e={code:"cancel",value:""}),this.callback(e),this.dialogVisible=!1,this.treeNodeList=[],this.selected=[],this.searchResult=null,this.selectByTabsActiveName="byOrg",this.searchText="",this.isStaff=!1,this.isTreeData=!1},updateSelectedInfo:function(e,t){var n=[];t.children&&t.children.forEach((function(e){e.checked&&n.push(e)})),n.sort((function(e,t){return e.selectedIndex-t.selectedIndex}));var a="";if(n.forEach((function(e){""===a?a=e.name:1===a.split("、").length&&(a+="、"+e.name)})),t.children&&t.children.forEach((function(e){e.type&&""!==e.selectedNames&&(""===a?a=e.selectedNames:1===a.split("、").length&&(a+="、"+e.selectedNames.split("、")[0]))})),t.selectedNames=a,void 0!==e&&null!==e&&e.children){var o=0;e.children.forEach((function(e){e.type&&(o+=e.totalSelectedCount)})),e.subOrgSelectedCount=o,e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount}"staffExt"===this.condition.selectDialog&&t&&t.code&&this.treeNodeList.forEach((function(e){e.id===t.id&&(e.selectedNames=t.selectedNames,e.selectedCount=t.selectedCount,e.subOrgSelectedCount=t.subOrgSelectedCount,e.totalSelectedCount=t.totalSelectedCount)})),this.$forceUpdate(),this.judgeSeletAllType()},objToFormData:function(e){var t=new FormData;for(var n in e)t.append(n,e[n]);return t},lazyLoadDefaultChecked:function(e){var t=this,n=this.condition["root-org-code"];if(void 0===n&&(n=this.loginUser.orgCode),e=e.filter((function(e){return"removed"!==e})),e.length>0){var a={method:"POST",url:"base/organMgr/findLazyLoadDefaultChecked",contentType:"application/x-www-form-urlencoded",data:e,params:{selectType:this.condition.selectDialog,orgCode:n}};this.$http(a).then((function(e){"success"===e.code&&(t.treeDataAdapter(e.body.listdata),"staffExt"===t.condition.selectDialog?t.treeNodeList.forEach((function(e){e.selectedCount=0,e.selectedNames="",e.subOrgSelectedCount=0,e.totalSelectedCount=0,t.selected.forEach((function(t){t.orgFullId.indexOf(e.orgFullId)>-1&&(""===e.selectedNames?e.selectedNames=t.name:1===e.selectedNames.split("、").length&&(e.selectedNames+="、"+t.name),e.subOrgSelectedCount++)})),e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount})):"allStaff"===t.condition.selectDialog&&t.treeNodeList.forEach((function(e){e.selectedCount=0,e.selectedNames="",e.subOrgSelectedCount=0,e.totalSelectedCount=0,e.children&&e.children.length>0&&e.children.forEach((function(n){n.selectedCount=0,n.selectedNames="",n.subOrgSelectedCount=0,n.totalSelectedCount=0,t.selected.forEach((function(t){t.orgFullId.indexOf(n.id)>-1&&(""===n.selectedNames?n.selectedNames=t.name:1===n.selectedNames.split("、").length&&(n.selectedNames+="、"+t.name),""===e.selectedNames?e.selectedNames=t.name:1===e.selectedNames.split("、").length&&(e.selectedNames+="、"+t.name),n.subOrgSelectedCount++,e.subOrgSelectedCount++)})),n.totalSelectedCount=n.selectedCount+n.subOrgSelectedCount})),e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount})))}))}},loadChildNode:function(e,t){var n=this,a=this.treeNodeList[e];if(!a.collapse||"wfNodeUser"===this.condition.selectDialog){var o=this;return!this.lazy||a.isLoaded?t():"allOrg"===this.condition.selectDialog&&["subOrg","treeNode"].includes(a.type)?"subOrg"!==a.type&&t():void new Promise(function(){var e=Fi(Pi().mark((function e(t,i){var r,s,l,d,c,u,f,p,m,h,v,g,y;return Pi().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("staffExt"!==n.condition.selectDialog){e.next=16;break}return o.$toast.loading({message:n.$tx("common.loading","正在加载..."),forbidClick:!0,duration:0}),r="/base/organMgr/findOrganPersonByOrgCode?orgCode=".concat(a.code),n.openSysCode&&(r+="&openSysCode="+n.openSysCode),e.next=6,o.$http({method:"get",url:r});case 6:if(s=e.sent,"success"===s.code){e.next=9;break}return e.abrupt("return",i(s.message));case 9:o.selected=o.selected.filter((function(e){return e})),l=o.treeDataAdapter([a].concat(Hi(s.body.listdata))),d=o.toTreeNodeList(l,"staffExt"),d instanceof Array&&!d.length&&(d=o.simplyToTree(l)),t(d[0]),e.next=41;break;case 16:if("rootOrg"!==a.type&&"treeNode"!==a.type){e.next=30;break}return o.$toast.loading({message:n.$tx("common.loading","正在加载..."),forbidClick:!0,duration:0}),c="base/organMgr/findTreeNodeVOListByOrgId",u={orgId:a.id,self:!1,status:1},e.next=22,o.$http({method:"GET",url:c,params:u});case 22:if(f=e.sent,"success"===f.code){e.next=25;break}return e.abrupt("return",i(f.message));case 25:p=f.body.listdata.map((function(e){return e.canSelect=!["staffExt","allStaff"].includes(n.condition.selectDialog),e.name=e.nName,e.title=e.nName,e.photoUrl="./images/m-imgs/contacts/suborg.png",e})),m=o.simplyToTree(p),t(m),e.next=41;break;case 30:if("subOrg"!==a.type){e.next=41;break}return o.$toast.loading({message:n.$tx("common.loading","正在加载..."),forbidClick:!0,duration:0}),h="base/organMgr/queryLinkManByPager?orgId="+a.id,v=o.objToFormData({pageNum:1,pageSize:1e4}),e.next=36,o.$http({method:"POST",url:h,data:v});case 36:if(g=e.sent,"success"===g.code){e.next=39;break}return e.abrupt("return",i(g.message));case 39:y=g.body.pageInfo.list.map((function(e){return e.canSelect=!0,e.title=e.name,e.photoUrl="/apigw/base/user/download?id="+e.userId+"&dataField=photoData&nameField=photoName&cacheMaxAge=1800&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),e})),t(y);case 41:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()).then((function(e){var t;(o.$toast.clear(),"staffExt"===n.condition.selectDialog)?(a.children=e.children,o.treeDataMap[a.id]=a,a.isLoaded=!0,n.$bus.emit("resetHistorySelectedInfo"),n.judgeSeletAllType()):(a.isLoaded=!0,a.children=[].concat(Hi(e),Hi(null!==(t=null===a||void 0===a?void 0:a.children)&&void 0!==t?t:[])));return o.$forceUpdate(),a.children?!!a.children.length:0})).then((function(e){e?t():o.$toast(n.$tx("common.nothingMore","没有更多了"))}))}"6"===this.condition.todoMode?this.selected=[a]:this.selected.push(a)},handleCellClick:function(e){var t=this.treeNodeList[e];if(t.type&&("rootOrg"===t.type||"treeNode"===t.type)||("suborg"===t.type||"subOrg"===t.type)&&t.children)return this.popupConfig={currIdx:e,isVisible:!0},void this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}));if(this.condition.multiple){if(t.canSelect){for(var n=!1,a=0;a<this.selected.length;a++)(void 0!==this.selected[a].id&&this.selected[a].id===t.id||void 0!==this.selected[a].index&&this.selected[a].index===t.index)&&(n=!0,this.selected.splice(a--,1));n||this.selected.push(t)}}else t.canSelect&&this.$set(this.selected,0,t)},chooseDepartment:function(e){if("string"===typeof e&&this.treeNodeList.forEach((function(t){t.id===e&&(e=t)})),this.condition.multiple){if(e.canSelect){for(var t=!1,n=0;n<this.selected.length;n++)(void 0!==this.selected[n].id&&this.selected[n].id===e.id||void 0!==this.selected[n].index&&this.selected[n].index===e.index)&&(t=!0,this.selected.splice(n--,1));t||this.selected.push(e)}}else e.canSelect&&(this.selected[0]=e);!e.type||"rootOrg"!==e.type&&"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type||(this.DepartmentTitle=e.title,this.departmentData=e,this.showDepartment=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},chooseSection:function(e,t){!e.type||"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type?this.setOrgSelectedInfo(this.departmentData,e,null,t):(this.SectionTitle=e.title,this.sectionData=e,this.showSection=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},choosetTeam:function(e,t){!e.type||"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type?this.setOrgSelectedInfo(this.sectionData,e,null,t):(this.TeamTitle=e.title,this.TeamData=e,this.showTeam=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},choosetGroup:function(e,t){!e.type||"subOrg"!==e.type&&"suborg"!==e.type&&"treeNode"!==e.type?this.setOrgSelectedInfo(this.TeamData,e,null,t):(this.groupTitle=e.title,this.groupData=e,this.showGroup=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},choosetStaff:function(e,t){this.setOrgSelectedInfo(this.groupData,e,null,t),this.judgeSeletAllType()},chooseListitem:function(e){if(this.condition.multiple){if(e.canSelect){for(var t=!1,n=0;n<this.selected.length;n++)this.selected[n].id===e.id&&(t=!0,this.selected.splice(n--,1));t||this.selected.push(e)}}else e.canSelect&&(this.selected[0]=e);0!==e.isRealOrg?this.condition.multiple?e.checked=!e.checked:(this.treeNodeList.forEach((function(e){e.checked=!1,0===e.isRealOrg&&(e.selectedNames="",e.selectedCount=0)})),this.$forceUpdate(),e.checked=!0):(this.DepartmentTitle=e.title,this.departmentData=e,this.showDepartment=!0,this.$nextTick((function(){document.querySelectorAll(".popup-department").forEach((function(e){e.style.height=window.innerHeight-106-window.headerHeight+"px"}))}))),this.judgeSeletAllType()},coohseSearchItem:function(e,t){var n=e.pId;if(!this.treeDataMap[n]||"staff"!==this.condition.selectDialog&&"wfNodeUser"!==this.condition.selectDialog&&"suborg"!==this.condition.selectDialog&&"rootorg"!==this.condition.selectDialog)this.treeDataMap[e.id]&&this.chooseListitem(this.treeDataMap[e.id]);else{var a=this.treeDataMap[n];this.setOrgSelectedInfo(a,this.treeDataMap[e.id]),void 0!==a&&(this.updateSelectedInfo(this.treeDataMap[a.pId],a),void 0!==this.treeDataMap[a.pId]&&(a=this.treeDataMap[a.pId],this.updateSelectedInfo(this.treeDataMap[a.pId],a),void 0!==this.treeDataMap[a.pId]&&(a=this.treeDataMap[a.pId],this.updateSelectedInfo(this.treeDataMap[a.pId],a))))}for(var o={},i=0;i<this.selected.length;i++)this.selected[i].checked?o[this.selected[i].id]=this.selected[i]:this.selected.splice(i--,1);if(this.condition.multiple){for(var r=!1,s=0;s<this.searchSelected.length;s++)this.searchSelected[s].id===e.id&&(r=!0,this.searchSelected.splice(s--,1));!r&&e.canSelect&&this.searchSelected.push(e)}else e.canSelect&&(this.searchSelected[0]=e);for(var l=0;l<this.searchSelected.length;l++)this.treeDataMap[this.searchSelected[l].id].checked?this.condition.multiple?void 0===o[this.searchSelected[l].id]&&this.selected.push(this.treeDataMap[this.searchSelected[l].id]):this.selected[0]=this.treeDataMap[this.searchSelected[0].id]:this.searchSelected.splice(l--,1)},setOrgSelectedInfo:function(e,t,n,a){if(this.condition.multiple&&!this.condition.oneByOne){if(!n){var o=this.$refs["checkboxes_"+t.id];void 0===o&&a&&(o=a.$refs["checkboxes_"+t.id]),void 0!==o&&o.length>0&&o[0].toggle()}t.checked=!t.checked,t.checked?e.selectedCount++:e.selectedCount--,e.totalSelectedCount=e.selectedCount+e.subOrgSelectedCount,0===e.selectedCount?e.selectedNames="":1===e.selectedCount?e.selectedNames=t.shortName||t.name:2===e.selectedCount&&(e.selectedNames+="、"+(t.shortName||t.name))}else{if(this.condition.oneByOne){for(var i=0;i<this.selected.length;i++)this.selected[i]&&(this.selected[i].orgId!=t.orgId&&this.selected[i].groupId!=t.groupId||this.selected.splice(i--,1));if(!t.checked){var r=this.$refs["collapse"].$refs["radio_"+t.id][0];this.selected[r.$el.attributes["parent-item-index"].value]=t}}else this.condition.multiple||(this.selected=[t]),this.ListData.forEach((function(e){e.type?(e.selectedNames="",e.selectedCount=0,e.totalSelectedCount=0,e.subOrgSelectedCount=0):e.checked=!1}));t.checked=!0,t.checked?e.selectedCount=1:e.selectedCount=0,e.totalSelectedCount=e.selectedCount,0===e.selectedCount?e.selectedNames="":1===e.selectedCount&&(e.selectedNames=t.shortName||t.name),this.searchResult&&this.searchResult.length>0&&this.searchResult.forEach((function(t){t.id===e.id&&(t.selectedNames=e.selectedNames,t.selectedCount=e.selectedCount)}))}this.$forceUpdate(),this.judgeSeletAllType()},cancelCity:function(){this.isTreeData=!1,this.treeNodeList=[],this.areaDialogVisible=!1},confirmCity:function(e){var t=[],n=this;this.ListData.forEach((function(a,o){var i=(n.treeDataMap[a.id].areaValue||"")+"";2===i.length?i+="0000":4===i.length&&(i+="00"),e.forEach((function(e){e&&i===e.code&&(a.title=a.nName,t.push(a))}))})),this.callback({code:"success",value:t}),this.cancelCity()},viewSelectPersons:function(e,t){this.deletePersonPopupObj.ref=e;var n=this,a=[];function o(e){e.forEach((function(e){e.children&&e.children.length>0?o(e.children):n.selected.filter((function(t){t.id===e.id&&a.push(e)}))}))}"treeData"===e||"search"===e?this.deletePersonPopupObj.canDeletePerson=this.selected:(o(t.children||[]),this.deletePersonPopupObj.canDeletePerson=a),this.deletePersonPopup=!0},selectedPopupDelete:function(e){var t=this;function n(t){t.forEach((function(t){t.personId||(void 0!==t.selectedNames&&(t.selectedNames=""),void 0!==t.selectedCount&&(t.selectedCount=0),void 0!==t.subOrgSelectedCount&&(t.subOrgSelectedCount=0),void 0!==t.totalSelectedCount&&(t.totalSelectedCount=0)),t.id===e?t.checked=!1:t.children&&t.children.length>0&&n(t.children)}))}n(this.treeNodeList),this.$nextTick((function(){t.resetHistorySelectedInfo(),t.judgeSeletAllType()})),this.$forceUpdate()},deletePopupPerson:function(e){var t=this;if("search"!==this.deletePersonPopupObj.ref){o(this.treeNodeList);for(var n=0;n<this.deletePersonPopupObj.canDeletePerson.length;n++)if(this.deletePersonPopupObj.canDeletePerson[n].id===e.id){this.deletePersonPopupObj.canDeletePerson[n].checked=!1,this.deletePersonPopupObj.canDeletePerson.splice(n--,1);break}for(var a=0;a<this.selected.length;a++)if(this.selected[a].id===e.id){this.selected.checked=!1,this.selected.splice(a--,1);break}this.$nextTick((function(){t.resetHistorySelectedInfo(),t.judgeSeletAllType()})),this.$forceUpdate()}else this.coohseSearchItem(e);function o(t){t.forEach((function(t){t.personId||(void 0!==t.selectedNames&&(t.selectedNames=""),void 0!==t.selectedCount&&(t.selectedCount=0),void 0!==t.subOrgSelectedCount&&(t.subOrgSelectedCount=0),void 0!==t.totalSelectedCount&&(t.totalSelectedCount=0)),t.id===e.id?t.checked=!1:t.children&&t.children.length>0&&o(t.children)}))}}}},Zi=Qi,Xi=(a(1231),(0,Ca.A)(Zi,Zo,Xo,!1,null,"3ff50713",null)),er=Xi.exports,tr=function(){var e=this,t=e._self._c;return t("PopupDialog",{attrs:{showpop:e.dialogVisible,title:e.dialogTitle,"on-cancel":e.closeDialog},on:{"update:showpop":function(t){e.dialogVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):e._e(),t("div",{staticClass:"popup-content"},[t("van-checkbox-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[t("van-cell-group",e._l(e.wflowList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.name,clickable:""},on:{click:function(t){return e.toggle(a)}}},[t("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{slot:"right-icon",name:n.value},slot:"right-icon"})],1)})),1)],1)],1),e.loading?e._e():t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitForm}},[e._v("确 定")])],1)],1)},nr=[],ar={name:"WfNamesDialog",components:{},props:{},data:function(){return{dialogTitle:this.$tx("common.plChoose","请选择"),dialogVisible:!1,loading:!1,callback:null,wflowList:[],selected:"".split(","),moduleInfo:{queryWfDataUrl:"workflow/wfdProcessMgr/queryValidProcess"}}},computed:{curUser:function(){return this.$store.getters.loginUser}},watch:{},created:function(){this.$bus.on("openWfNamesDialog",this.openWfNamesDialog)},beforeDestroy:function(){this.$bus.off("openWfNamesDialog",this.openWfNamesDialog)},mounted:function(){},methods:{toggle:function(e){this.$refs.checkboxes[e].toggle()},openWfNamesDialog:function(e,t,n,a){var o=this;if(this.dialogTitle=e,this.callback=n,0===this.wflowList.length){this.loading=!0;var i=this.curUser.sysCode;this.$vnode.context.$vnode.context.wfInstance?i=this.$vnode.context.$vnode.context.wfInstance.sysCode:this.$vnode.context.$vnode.context.vo&&this.$vnode.context.$vnode.context.vo.sysCode&&(i=this.$vnode.context.$vnode.context.vo.sysCode),this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{sysCode:i},url:this.moduleInfo.queryWfDataUrl}).then((function(e){if("success"===e.code){var n="";e.body.listdata.forEach((function(e){"processNo"===t&&-1===n.indexOf(e.processNo+",")?(o.wflowList.push({id:e.id,value:e.processNo,name:e.name}),n+=e.processNo+","):"name"===t&&-1===n.indexOf(e.name+",")&&(o.wflowList.push({id:e.id,value:e.name,name:e.name}),n+=e.name+",")})),void 0===a||null===a?o.selected=[]:"string"===typeof a&&(o.selected=a.split(","))}else o.$dialog.alert(e.message);o.loading=!1}))}this.dialogVisible=!0},submitForm:function(){0===this.selected.length?this.$dialog.alert({message:this.$tx("common.plChoose","请选择")}):(this.callback({code:"success",value:this.selected.join(",")}),this.dialogVisible=!1)},closeDialog:function(){this.callback({code:"cancel",value:null}),this.dialogVisible=!1}}},or=ar,ir=(a(7889),(0,Ca.A)(or,tr,nr,!1,null,"0685b481",null)),rr=ir.exports,sr={name:"SelectDialog",components:{ListitemDialog:Ro,DatetimePicker:Qo,TreeDialog:er,WfNamesDialog:rr},data:function(){return{}},created:function(){this.$options.components["ListpageDialog"]=this.$loadComponent("@/mapp/common/components/ListpageDialog/index"),this.$store.registerModule("selectDialog",Ei)},beforeDestroy:function(){this.$store.unregisterModule("selectDialog")}},lr=sr,dr=(0,Ca.A)(lr,$o,Po,!1,null,null,null),cr=dr.exports;cr.install=function(e){e.component(cr.name,cr)};var ur=cr,fr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"data-table-container",on:{touchstart:e.listTouchstart}},[e.navTabList.length>1?t("div",[e.advancedSearch.show?t("span",{staticClass:"tab-search",class:{"add-search":1===e.listStyle.search},on:{click:function(t){e.showSearch=!e.showSearch}}},[t("van-icon",{attrs:{name:"bars"}})],1):e._e(),t("van-tabs",{ref:"tabs",staticClass:"out-tbs",class:{show_search:e.advancedSearch.show&&0===e.listStyle.search},attrs:{border:!0,ellipsis:!1},on:{click:e.onTabClick},model:{value:e.tabActive,callback:function(t){e.tabActive=t},expression:"tabActive"}},e._l(e.navTabList,(function(n,a){return t("van-tab",{key:a,attrs:{title:n.name}},[e.showTabApp?[e.forceUpdate?e._e():t("tab-app",{attrs:{tab:e.navTabList[e.tabActive]}})]:[e.tabActive===a?t("search",{ref:"search",refInFor:!0,attrs:{"list-style":e.listStyle,"show-search":e.showSearch,"tb-columns":e.tbColumns,"advanced-search":e.advancedSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t}}},[t("template",{slot:"search-left"},[e._t("search-left")],2),t("template",{slot:"search-right"},[e._t("search-right")],2),[e._t("searchpopu")],t("template",{slot:"dropdownitem"},[e._t("dropdownitem")],2)],2):e._e(),t("div",{staticClass:"list-table-top",staticStyle:{width:"100%"}},[e._t("listtop")],2),e.tabActive==a+""?[t("table-list",{ref:"tableList",refInFor:!0,attrs:{"check-all-align":e.checkAllAlign,"checked-all":e.checkedAll,"empty-text":e.emptyText,"empty-img":e.emptyImg,"force-update":e.forceUpdate,finished:e.finished,iserror:e.error,"long-press":e.longPress,"list-loading":e.listLoading,loading:e.loading,"list-style":e.listStyle,pagelist:e.pagelist,"show-footer-nav-bar":e.showFooterNavBar,"show-more-btn":e.showMoreBtn,"show-popup-tip-btn":e.showPopupTipBtn,"toolbar-btns":e.toolbarBtns,"table-type":e.tableType,"pull-refresh":e.pullRefresh},on:{"update:checkedAll":function(t){e.checkedAll=t},"update:checked-all":function(t){e.checkedAll=t},"update:finished":function(t){e.finished=t},"update:iserror":function(t){e.error=t},"update:longPress":function(t){e.longPress=t},"update:long-press":function(t){e.longPress=t},"update:listLoading":function(t){e.listLoading=t},"update:list-loading":function(t){e.listLoading=t},"update:loading":function(t){e.loading=t},"update:showMoreBtn":function(t){e.showMoreBtn=t},"update:show-more-btn":function(t){e.showMoreBtn=t},"update:showPopupTipBtn":function(t){e.showPopupTipBtn=t},"update:show-popup-tip-btn":function(t){e.showPopupTipBtn=t},"update:pullRefresh":function(t){e.pullRefresh=t},"update:pull-refresh":function(t){e.pullRefresh=t},onRefresh:e.onRefresh,onLoad:e.onLoad,onCellClick:e.handleCellClick,editObject:e.editObject,viewObject:e.viewObject,deleteIds:e.deleteIds,btnClick:e.btnClick},scopedSlots:e._u([{key:"row",fn:function(t){return[e._t("row",null,{dataitem:t.row,rowindex:t.rowindex})]}},{key:"cellbtn",fn:function(n){return[1===e.listStyle.rowBtnStyle?e._t("cellBtn",(function(){return e._l(e.cellOperationBtn,(function(a,o){return t("van-button",{key:o,staticClass:"tag_btn van-hairline--surround",attrs:{hairline:"",plain:""},on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e(),1===e.listStyle.rowBtnStyle?e._t("cellbtn",null,{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e()]}},{key:"celllink",fn:function(n){return[e._t("cellLink",(function(){return e._l(e.cellOperationLink,(function(a,o){return t("a",{key:o,on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row}),e._t("celllink",null,{dataitem:n.row})]}},{key:"rightbtn",fn:function(n){return[e._t("rightBtn",(function(){return e._l(e.operateColumnBtns,(function(a,o){return t("van-button",{key:o,attrs:{square:"",type:a.btnStyleType,text:a.btnName},on:{click:function(t){return e.btnClick(a,n.row)}}})}))}),{dataitem:n.row}),e._t("rightbtn",null,{dataitem:n.row})]}}],null,!0)})]:e._e()]],2)})),1)],1):t("div",{staticClass:"not-tab-list"},[e.advancedSearch.show&&1===e.listStyle.search?t("span",{staticClass:"tab-search nonvtb",on:{click:function(t){e.showSearch=!e.showSearch}}},[t("van-icon",{attrs:{name:"bars"}})],1):e._e(),t("search",{ref:"search",attrs:{"list-style":e.listStyle,"show-search":e.showSearch,"tb-columns":e.tbColumns,"advanced-search":e.advancedSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t}}},[t("template",{slot:"search-left"},[e._t("search-left")],2),t("template",{slot:"search-right"},[e._t("search-right")],2),[e._t("searchpopu")]],2),t("div",{staticClass:"list-table-top",staticStyle:{width:"100%"}},[e._t("listtop")],2),[t("table-list",{ref:"tableList",attrs:{"check-all-align":e.checkAllAlign,"checked-all":e.checkedAll,"empty-text":e.emptyText,"empty-img":e.emptyImg,"force-update":e.forceUpdate,finished:e.finished,iserror:e.error,"long-press":e.longPress,"list-loading":e.listLoading,loading:e.loading,"list-style":e.listStyle,pagelist:e.pagelist,"show-footer-nav-bar":e.showFooterNavBar,"show-more-btn":e.showMoreBtn,"show-popup-tip-btn":e.showPopupTipBtn,"toolbar-btns":e.toolbarBtns,"table-type":e.tableType,"pull-refresh":e.pullRefresh},on:{"update:checkedAll":function(t){e.checkedAll=t},"update:checked-all":function(t){e.checkedAll=t},"update:finished":function(t){e.finished=t},"update:iserror":function(t){e.error=t},"update:longPress":function(t){e.longPress=t},"update:long-press":function(t){e.longPress=t},"update:listLoading":function(t){e.listLoading=t},"update:list-loading":function(t){e.listLoading=t},"update:loading":function(t){e.loading=t},"update:showMoreBtn":function(t){e.showMoreBtn=t},"update:show-more-btn":function(t){e.showMoreBtn=t},"update:showPopupTipBtn":function(t){e.showPopupTipBtn=t},"update:show-popup-tip-btn":function(t){e.showPopupTipBtn=t},"update:pullRefresh":function(t){e.pullRefresh=t},"update:pull-refresh":function(t){e.pullRefresh=t},onRefresh:e.onRefresh,onLoad:e.onLoad,onCellClick:e.handleCellClick,editObject:e.editObject,viewObject:e.viewObject,deleteIds:e.deleteIds,btnClick:e.btnClick},scopedSlots:e._u([{key:"row",fn:function(t){return[e._t("row",null,{dataitem:t.row,rowindex:t.rowindex})]}},{key:"cellbtn",fn:function(n){return[1===e.listStyle.rowBtnStyle?e._t("cellBtn",(function(){return e._l(e.cellOperationBtn,(function(a,o){return t("van-button",{key:o,staticClass:"tag_btn van-hairline--surround",attrs:{hairline:"",plain:""},on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e(),1===e.listStyle.rowBtnStyle?e._t("cellbtn",null,{dataitem:n.row,rowindex:n.rowindex,morebtnClick:n.morebtnClick,editObject:n.editObject,viewObject:n.viewObject,deleteIds:n.deleteIds}):e._e()]}},{key:"celllink",fn:function(n){return[e._t("cellLink",(function(){return e._l(e.cellOperationLink,(function(a,o){return t("a",{key:o,on:{click:function(t){return e.btnClick(a,n.row)}}},[e._v(e._s(a.btnName))])}))}),{dataitem:n.row}),e._t("celllink",null,{dataitem:n.row})]}},{key:"rightbtn",fn:function(n){return[e._t("rightBtn",(function(){return e._l(e.operateColumnBtns,(function(a,o){return t("van-button",{key:o,attrs:{square:"",type:a.btnStyleType,text:a.btnName},on:{click:function(t){return e.btnClick(a,n.row)}}})}))}),{dataitem:n.row}),e._t("rightbtn",null,{dataitem:n.row})]}}],null,!0)})]],2),e._t("default")],2)},pr=[],mr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-search"},[1===e.listStyle.search?t("div",{staticClass:"search_out_div"},[t("div",{staticClass:"search-slot-container search-left-slot"},[e._t("search-left")],2),t("div",{staticStyle:{width:"100%"}},[t("van-search",{staticClass:"p-search iconfont-search",class:{show_search:e.advancedSearch.show},attrs:{placeholder:"".concat(e.searchFocus?"":" ").concat(e.$tx("common.searchFor","搜索")),"input-align":e.searchFocus||e.searchKey?"":"center"},on:{search:e.onSearch,focus:function(t){e.searchFocus=!0},blur:function(t){e.searchFocus=!1},clear:e.onSearch},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}},[t("span",{class:e.searchFocus||e.searchKey?"iconfont icon-search":"",attrs:{slot:"left-icon"},slot:"left-icon"})])],1),t("div",{staticClass:"search-slot-container search-right-slot"},[e._t("search-right")],2)]):e._e(),"droupDown"===e.advancedSearch.searchPopupType&&e.droupDownPopup?t("div",{staticClass:"droup_popup_search",class:{open_droup_popup_search:e.droupDownPopup}},[t("div",{staticClass:"droup_down_popup_panel"},[e._t("dropdownitem")],2)]):e._e(),1===e.listStyle.dropdownMenu?t("div",{staticClass:"van_dropdown-menu_cell"},[t("van-dropdown-menu",{staticClass:"van-search-dropdown-menu",attrs:{direction:"down",overlay:!0,"close-on-click-overlay":!0,"close-on-click-outside":!0}},[e._t("dropdownitem")],2)],1):e._e(),e.searchCondition?t("van-cell",{staticClass:"show-search-key",attrs:{center:""}},[t("template",{slot:"title"},[t("div",{staticStyle:{float:"left",overflow:"hidden",width:"calc(100% - 40px)",height:"21px","white-space":"nowrap"}},[null!==e.searchVo&&e.copytbColumns.length>0?[e._l(e.copytbColumns,(function(n,a){return[""!==e.formatSearchCondition(n)?t("van-tag",{key:a,staticClass:"show-search-title",attrs:{size:"medium",round:"",plain:""}},[e._v(e._s(e.formatSearchCondition(n)))]):e._e()]}))]:e._e(),e.advancedSearch.selectTime?[""!==e.formatSearchCondition(e.advancedSearch.selectTime)?t("van-tag",{staticClass:"show-search-title",attrs:{size:"medium",round:"",plain:""}},[e._v(e._s(e.formatSearchCondition(e.advancedSearch.selectTime)))]):e._e()]:e._e(),e.customSeaarchField&&e.customSeaarchField.length>0?[e._l(e.customSeaarchField,(function(n,a){return[n?t("van-tag",{key:a,staticClass:"show-search-title",attrs:{size:"medium",round:"",plain:""}},[e._v(e._s(n))]):e._e()]}))]:e._e()],2),t("van-tag",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cleanUp",expression:"'cleanUp'"}],staticClass:"show-search-clear",attrs:{size:"medium",plain:"",type:"primary"},on:{click:e.clearSearchKey}},[e._v("清除")])],1)],2):e._e(),e.showPopup&&"droupDown"!==e.advancedSearch.searchPopupType?t("PopupDialog",{attrs:{title:e.$tx("ecmapp.common.advancedSearch","高级搜索"),showpop:e.showPopup,"on-cancel":e.showSearchClick},on:{"update:showpop":function(t){e.showPopup=t}}},[[t("div",{staticStyle:{height:"calc(100% - 60px)","overflow-y":"auto",background:"#fff"}},[t("div",{staticClass:"search-content"},[t("div",[e._l(e.searchFields,(function(n,a){return["date"!==n.listAdvSearchElement&&"block"!==n.selectStyle?t("SearchField",{key:a,class:"search-column-"+n.field,attrs:{"search-map":e.searchVo,"search-column":n}}):e._e()]})),e._l(e.searchFields,(function(n,a){return["select"===n.listAdvSearchElement&&"block"===n.selectStyle?t("SearchField",{key:a,class:"search-column-"+n.field,attrs:{"search-map":e.searchVo,"search-column":n}}):e._e()]})),e._l(e.searchFields,(function(n,a){return["date"===n.listAdvSearchElement?t("SearchField",{key:a,class:"search-column-"+n.field,attrs:{"search-map":e.searchVo,"search-column":n}}):e._e()]}))],2),e._t("default")],2),e.advancedSearch.selectTime?t("SearchField",{class:"search-column-"+e.advancedSearch.selectTime.field,attrs:{"search-map":e.advancedSearch.selectTime,"search-column":e.advancedSearch.selectTime}}):e._e()],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"reset",expression:"'reset'"}],attrs:{type:"default"},on:{click:e.advSearchReset}},[e._v("重 置")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"info"},on:{click:e.startSearch}},[e._v("确 定")])],1)],e.showselecteddialog?t("SelectDialog"):e._e()],2):e._e()],1)},hr=[],vr=function(){var e=this,t=e._self._c;return t("div",["input"===e.searchColumn.listAdvSearchElement?t("input-field",{attrs:{vo:e.searchMap,model:e.searchColumn.field,label:e.searchColumn.title,"text-formatter":"textfield",placeholder:"请输入"+e.searchColumn.title,readonly:!1,"element-readonly":0}}):e._e(),"select"===e.searchColumn.listAdvSearchElement&&"block"!==e.searchColumn.selectStyle?t("select-field",{attrs:{vo:e.searchMap,model:e.searchColumn.field,label:e.searchColumn.title,placeholder:"请选择"+e.searchColumn.title,"prop-type":e.searchColumn.propType,readonly:!1,multiple:"checkbox"===e.searchColumn.selectType,options:e.searchColumn.options}}):e._e(),"select"===e.searchColumn.listAdvSearchElement&&"block"===e.searchColumn.selectStyle?t("div",{staticClass:"block_select"},[t("div",{staticStyle:{padding:"20px","font-size":"15px"}},[e._v(e._s(e.searchColumn.title||e.$tx("ecmapp.common.category","类别")))]),t("div",{staticStyle:{padding:"0 20px"}},[t("van-row",{attrs:{align:"center"}},e._l(JSON.parse(e.searchColumn.options),(function(n,a){return t("van-col",{key:a,staticStyle:{"margin-bottom":"10px"},attrs:{span:"8"}},[t("div",{staticClass:"radio-type",class:{wfTypeKey:e.selectOptionsValue.indexOf(n.value)>-1},style:{margin:(a+1)%3===0?"0 0 0 10px":(a+1)%3===1?"0 10px 0 0":"0 5px"},on:{click:function(t){return e.selectWfType(n,a)}}},[e._v(" "+e._s(n.text)+" ")])])})),1)],1)]):e._e(),"date"===e.searchColumn.listAdvSearchElement?t("div",{staticClass:"advancedSearch-selectTime"},[t("div",{staticStyle:{padding:"20px","font-size":"15px"}},[e._v(e._s(e.searchColumn.title||e.$tx("ecmapp.common.timeFrame","时间范围")))]),t("div",{staticClass:"selectTime",staticStyle:{padding:"0 20px"}},[t("van-row",{attrs:{align:"center"}},[t("van-col",{attrs:{span:"11"}},[t("div",{staticClass:"timebox",on:{click:e.startTimeClick}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.timeStart,expression:"timeStart"}],attrs:{placeholder:e.$tx("common.startTimePlaceholder","请选择开始时间"),readonly:""},domProps:{value:e.timeStart},on:{input:function(t){t.target.composing||(e.timeStart=t.target.value)}}}),t("van-icon",{attrs:{name:"cross"},on:{click:function(t){return t.stopPropagation(),e.clearSelectTime("_START")}}})],1)]),t("van-col",{attrs:{span:"2"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.to",expression:"'common.to'"}],staticClass:"timeinner",staticStyle:{margin:"0 auto"}},[e._v("至")])]),t("van-col",{attrs:{span:"11"}},[t("div",{staticClass:"timebox",on:{click:e.endTimeClick}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.timeEnd,expression:"timeEnd"}],attrs:{placeholder:e.$tx("common.endTimePlaceholder","请选择结束时间"),readonly:""},domProps:{value:e.timeEnd},on:{input:function(t){t.target.composing||(e.timeEnd=t.target.value)}}}),t("van-icon",{attrs:{name:"cross"},on:{click:function(t){return t.stopPropagation(),e.clearSelectTime("_END")}}})],1)])],1)],1),"date"===e.searchColumn.listAdvSearchElement?[e.selectTimeshow?t("van-popup",{attrs:{position:"bottom"},model:{value:e.selectTimeshow,callback:function(t){e.selectTimeshow=t},expression:"selectTimeshow"}},[e.searchColumn.hasNoOverTime?t("van-datetime-picker",{attrs:{type:"datetime","min-date":e.minDate,"max-date":e.maxDate},on:{confirm:e.submitForm,cancel:e.closeDialog},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}}):t("van-datetime-picker",{attrs:{type:"datetime","min-date":e.minDate},on:{confirm:e.submitForm,cancel:e.closeDialog},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1):e._e()]:e._e()],2):e._e()],1)},gr=[],yr=a(5093),_r={components:{},props:{searchColumn:{type:Object,default:null},searchMap:{type:Object,default:function(){return{}}}},data:function(){return{selectTimeshow:!1,currentDate:"",selectTimeType:"datetime",timeformat:"",minDate:"",maxDate:"",timeStart:"",timeEnd:"",selectOptionsValue:[]}},computed:{},watch:{searchMap:{handler:function(){this.initselectBlockValue()},deep:!0}},created:function(){if(this.initselectBlockValue(),this.searchColumn.propFormatter||this.searchColumn.elementFormatter)if("select"!==this.searchColumn.listAdvSearchElement||this.searchColumn.options)"date"===this.searchColumn.listAdvSearchElement&&this.initAdvancedSearchTime();else{for(var e=(this.searchColumn.propFormatter||this.searchColumn.elementFormatter).replace(/\\r\\n/g,"<br>").replace(/\r\n/g,"<br>").replace(/\n/g,"<br>").split("<br>"),t=[],n=0;n<e.length;n++)if(e[n].split(":").length>1){var a=e[n].split(":")[0];"Short"!==this.searchColumn.propType&&"Integer"!==this.searchColumn.propType&&"Lang"!==this.searchColumn.propType||(a=parseInt(a)),t.push({text:e[n].split(":")[1],value:a})}this.searchColumn.options=JSON.stringify(t)}},beforeDestroy:function(){},mounted:function(){},methods:{initselectBlockValue:function(){"select"===this.searchColumn.listAdvSearchElement&&(null!==this.searchMap[this.searchColumn.field]&&""!==this.searchMap[this.searchColumn.field]&&void 0!==this.searchMap[this.searchColumn.field]?"checkbox"===this.searchColumn.selectType?"block"===this.searchColumn.selectStyle?this.selectOptionsValue=this.searchMap[this.searchColumn.field].replace("in ","").split(","):this.searchMap[this.searchColumn.field]=this.searchMap[this.searchColumn.field].replace("in ",""):"block"===this.searchColumn.selectStyle&&(this.selectOptionsValue=[this.searchMap[this.searchColumn.field]]):this.selectOptionsValue=[])},initAdvancedSearchTime:function(){var e=new Date;this.minDate=new Date((new Date).setFullYear(e.getFullYear()-100)),this.maxDate=e,delete this.searchMap[this.searchColumn.field];var t=this.searchColumn.elementFormatter.replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,"");0===t.indexOf("format:")&&(t=t.substring(7),this.timeformat=t),this.timeformat?this.timeformat=this.timeformat.replace("yyyy","YYYY").replace("dd","DD").replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):this.timeformat="YYYY-MM-DD HH:mm:ss",this.searchMap[this.searchColumn.field+"_START"]?""!==this.searchMap[this.searchColumn.field+"_START"]?this.timeStart=yr(new Date(this.searchMap[this.searchColumn.field+"_START"])).format(this.timeformat):this.timeStart="":this.$set(this.searchMap,this.searchColumn.field+"_START",""),this.searchMap[this.searchColumn.field+"_END"]?""!==this.searchMap[this.searchColumn.field+"_END"]?this.timeEnd=yr(new Date(this.searchMap[this.searchColumn.field+"_END"])).format(this.timeformat):this.timeEnd="":this.$set(this.searchMap,this.searchColumn.field+"_END","");var n=this.timeformat.replace("年","").replace("月","").replace("日","").replace("时","").replace("分","").replace("秒","").replace(/-/g,"");n.split(" ").length>1?this.selectTimeType="datetime":"YYYYMMDD"===n?this.selectTimeType="date":"YYYYMM"===n?this.selectTimeType="year-month":"MMDD"===n?this.selectTimeType="month-day":n.indexOf("HH")>-1&&(this.selectTimeType="time")},selectWfType:function(e,t){"checkbox"===this.searchColumn.selectType?(this.selectOptionsValue.indexOf(e.value)>-1?this.selectOptionsValue.splice(this.selectOptionsValue.indexOf(e.value),1):this.selectOptionsValue.push(e.value),this.searchMap[this.searchColumn.field]="in "+this.selectOptionsValue.join(",")):(this.selectOptionsValue.indexOf(e.value)>-1?this.selectOptionsValue=[]:this.selectOptionsValue=[e.value],this.searchMap[this.searchColumn.field]=this.selectOptionsValue[0])},startTimeClick:function(){""!==this.searchMap[this.searchColumn.field+"_START"]?this.currentDate=new Date(this.searchMap[this.searchColumn.field+"_START"].replace(/-/g,"/")):this.currentDate=new Date,this.searchColumn.timeType=this.searchColumn.field+"_START",this.selectTimeshow=!0},endTimeClick:function(){""!==this.searchMap[this.searchColumn.field+"_END"]?this.currentDate=new Date(this.searchMap[this.searchColumn.field+"_END"].replace(/-/g,"/")):this.currentDate=new Date,this.searchColumn.timeType=this.searchColumn.field+"_END",this.selectTimeshow=!0},submitForm:function(e){var t=a(5093);this.searchMap[this.searchColumn.timeType]=t(e).format("YYYY-MM-DD HH:mm:ss"),this.searchColumn.timeType.indexOf("START")>-1?this.timeStart=t(e).format(this.timeformat):this.timeEnd=t(e).format(this.timeformat),this.$forceUpdate(),this.closeDialog()},clearSelectTime:function(e){this.searchMap[this.searchColumn.field+e]="","_START"===e?this.timeStart="":this.timeEnd="",this.$forceUpdate()},closeDialog:function(){this.selectTimeshow=!1}}},br=_r,wr=(a(697),(0,Ca.A)(br,vr,gr,!1,null,"13fe0b0a",null)),xr=wr.exports,Mr=a(5093),kr={components:{SearchField:xr},props:{listStyle:{type:Object,default:function(){return{search:1}}},showSearch:{type:Boolean,default:!1},advancedSearch:{type:Object,default:function(){return{show:!1,optionName:"",selectiveType:"radio",option:[]}}},tbColumns:{type:Array,default:function(){return[]}}},data:function(){return{searchKey:"",searchFocus:!1,showPopup:!1,searchCondition:!1,searchFields:[],searchVo:{},copytbColumns:[],droupDownPopup:!1,showselecteddialog:!1,customSeaarchField:[],clearrSearchCallBack:null}},computed:{},watch:{showSearch:{handler:function(e){"droupDown"===this.advancedSearch.searchPopupType?this.droupDownPopup=e:e?this.initSearchFileds():this.showPopup=e},immediate:!0},droupDownPopup:function(e){e||this.$emit("update:showSearch",!1)},searchFocus:function(e){this.$bus.emit("searchInputOnForce",e)}},created:function(){this.$bus.on("clearSearchKey",this.clearSearchKey),this.$bus.on("onCustomSearch",this.onCustomSearch)},beforeDestroy:function(){this.$bus.off("clearSearchKey",this.clearSearchKey),this.$bus.off("onCustomSearch",this.onCustomSearch)},mounted:function(){this.advancedSearch.optionName=this.$tx("ecmapp.common.category","类别")},methods:{initSearchFileds:function(){var e=this,t=JSON.parse(JSON.stringify(this.searchVo)),n=this.tbColumns;if(null===this.tbColumns&&(n=this.$vnode.context.$vnode.context.tbColumns||null),null!==n&&(n=JSON.parse(JSON.stringify(n))),this.advancedSearch.selectTime&&(this.advancedSearch.selectTime.listAdvSearchElement="date",this.advancedSearch.selectTime.title=this.advancedSearch.selectTime.name||this.$tx("ecmapp.common.dateRange","日期范围:"),this.advancedSearch.selectTime.field=this.advancedSearch.selectTime.filed,this.advancedSearch.selectTime.elementFormatter="format:"+this.advancedSearch.selectTime.format),this.advancedSearch.option&&this.advancedSearch.option.length>0){var a={listAdvSearchElement:"select",selectType:this.advancedSearch.selectiveType,selectStyle:"block",field:this.advancedSearch.option[0].filed,title:this.advancedSearch.optionName,searchable:!0},o=[];this.advancedSearch.option.forEach((function(e){o.push({text:e.name,value:e.code})})),a.options=JSON.stringify(o),n.push(a)}var i=[];null!==n&&(n.forEach((function(n){if(n.searchable){if(e.$vnode.context.pageInfo.passenger&&e.$vnode.context.pageInfo.passenger[n.field+"Options"])n.options=JSON.stringify(e.$vnode.context.pageInfo.passenger[n.field+"Options"]);else if("select"===n.listAdvSearchElement&&!n.options){for(var a=[],o=n.propFormatter||n.elementFormatter||"",r=o.replace(/\r\n/g,"<br>").replace(/\\r\\n/g,"<br>").replace(/\n/g,"<br>").replace(/\\n/g,"<br>").split("<br>"),s=0;s<r.length;s++)r[s].split(":").length>1&&a.push({text:r[s].split(":")[1],value:r[s].split(":")[0]});n.options=JSON.stringify(a)}i.push(n),void 0===t[n.field]&&(t[n.field]=null)}})),this.copytbColumns=n),i.length>0&&(i=D(i,"listAdvSearchIndex","asc")),this.searchFields=i,this.searchVo=t;var r=document.querySelector(".van-selected-dialog");this.showselecteddialog=null===r,this.$nextTick((function(){e.showPopup=!0}))},onSearch:function(){this.$bus.emit("refreshListData","or",this.searchKey),this.clearSearchKey("key")},startSearch:function(){this.searchKey="",this.advancedSearch.selectTime&&(this.searchVo[this.advancedSearch.selectTime.field+"_START"]=this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_START"],this.searchVo[this.advancedSearch.selectTime.field+"_END"]=this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_END"]);var e=!1;for(var t in this.searchVo)void 0!==this.searchVo[t]&&null!==this.searchVo[t]&&""!==this.searchVo[t]?e=!0:this.searchVo[t]=null;this.searchCondition=!!e,this.$bus.emit("refreshListData",this.searchCondition?"and":"","",this.searchVo),this.showSearchClick()},formatSearchCondition:function(e){var t=this,n="";if("select"===e.listAdvSearchElement){var a=JSON.parse(e.options),o=null;"checkbox"===e.selectType&&this.searchVo[e.field]&&this.searchVo[e.field].indexOf("in")>-1&&(o=this.searchVo[e.field].replace("in ","")),a.forEach((function(a){a.value===t.searchVo[e.field]&&null===o?n=a.text:null!==o&&o.indexOf(a.value)>-1&&(""!==n&&(n+=","),n+=a.text)}))}else if("date"===e.listAdvSearchElement){var i=e.elementFormatter?e.elementFormatter.replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):"";0===i.indexOf("format:")&&(i=i.substring(7)),i=i?i.replace("yyyy","YYYY").replace("dd","DD").replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):"YYYY-MM-DD HH:mm:ss",n=this.searchVo[e.field+"_START"]?Mr(new Date(this.searchVo[e.field+"_START"])).format(i):"",""!==n?this.searchVo[e.field+"_END"]&&(n+="至"+Mr(new Date(this.searchVo[e.field+"_END"])).format(i)):this.searchVo[e.field+"_END"]&&(n+=Mr(new Date(this.searchVo[e.field+"_END"])).format(i))}else n=this.searchVo[e.field];return n||""},closeDialog:function(){this.selectTimeshow=!1},onCustomSearch:function(e,t){e.length>0&&(this.searchCondition=!0),this.customSeaarchField=e,this.clearrSearchCallBack=t},advSearchReset:function(){this.$bus.emit("advSearchReset",this.searchVo,this.$vnode.context.moduleInfo),this.clearSearchKey("reset")},clearSearchKey:function(e){var t=this;if(this.searchCondition=!1,this.searchAndOr="",this.customSeaarchField=[],null!==this.clearrSearchCallBack&&"function"===typeof this.clearrSearchCallBack&&this.clearrSearchCallBack(),"reset"===e){var n=JSON.parse(JSON.stringify(this.searchVo));for(var a in n)n[a]="";this.searchVo={},this.$nextTick((function(){t.searchVo=n}))}else this.searchVo={};this.advancedSearch.selectTime&&(this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_START"]="",this.advancedSearch.selectTime[this.advancedSearch.selectTime.field+"_END"]=""),"key"!==e&&(this.searchKey=""),"init"!==e&&"key"!==e&&this.$bus.emit("refreshListData","","",this.searchVo)},showSearchClick:function(){this.$emit("update:showSearch",!1)}}},Lr=kr,Sr=(a(4295),(0,Ca.A)(Lr,mr,hr,!1,null,"7908bea2",null)),Tr=Sr.exports,Dr=function(){var e=this,t=e._self._c;return t("div",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.longPress,expression:"longPress"}],staticClass:"long_press_checkall"},[t("van-cell",{class:{long_press_checkall_right:"right"===e.checkAllAlign}},[t("template",{slot:"title"},["left"===e.checkAllAlign?t("van-checkbox",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}],on:{click:function(t){return e.selectCheckedAll(e.checkedAll)}},model:{value:e.checkedAll,callback:function(t){e.checkedAll=t},expression:"checkedAll"}},[e._v("全选")]):t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],staticStyle:{"font-size":"16px"},on:{click:e.accomplishChecked}},[e._v("取消")])],1),t("template",{slot:"default"},["left"===e.checkAllAlign?t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],staticStyle:{"font-size":"16px"},on:{click:e.accomplishChecked}},[e._v("取消")]):t("van-checkbox",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"selectAll",expression:"'selectAll'"}],on:{click:function(t){return e.selectCheckedAll(e.checkedAll)}},model:{value:e.checkedAll,callback:function(t){e.checkedAll=t},expression:"checkedAll"}},[e._v("全选")])],1)],2)],1),e.forceUpdate?e._e():t("div",{staticClass:"listdata-container",class:{card_listdata:"card"===e.tableType}},[e.listLoading?[t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],staticClass:"up-loading",attrs:{vertical:""}},[e._v("正在加载...")])]:e._e(),t("van-pull-refresh",{attrs:{"success-text":e.$tx("ecmapp.common.refreshSuccessful","刷新成功"),"success-duration":1e3,"animation-duration":1e3},on:{refresh:e.onPullRefresh},model:{value:e.pullRefresh,callback:function(t){e.pullRefresh=t},expression:"pullRefresh"}},[t("van-list",{directives:[{name:"show",rawName:"v-show",value:!e.listLoading,expression:"!listLoading"}],attrs:{finished:e.finished,"finished-text":e.emptyText,error:e.error,"error-text":e.$tx("ecmapp.common.clickReload","请求失败,点击重新加载")},on:{"update:error":function(t){e.error=t},load:e.loadlist},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[0===e.pagelist.length?t("div",{staticClass:"loadImgBox",staticStyle:{"text-align":"center","margin-top":"88px"}},[t("img",{staticStyle:{width:"240px"},attrs:{src:e.emptyImg}})]):e._e(),e.longPress||e.listLoading?e._l(e.pagelist,(function(n,a){return t("van-swipe-cell",{key:a,staticClass:"long_press",class:{card_cell:"card"===e.tableType,last_swipe_cell:a===e.pagelist.length-1&&e.finished}},[t("div",{staticClass:"cell_div",class:{cell_div_right:"right"===e.checkAllAlign},on:{click:function(t){return e.cellChecked(n.checked,a)}}},[e.longPress&&"left"===e.checkAllAlign?t("van-checkbox",{staticClass:"cell_checkbox",model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"dataitem.checked"}}):e._e(),e._t("row",null,{row:n,rowindex:a}),e.longPress&&"right"===e.checkAllAlign?t("van-checkbox",{staticClass:"cell_checkbox",model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"dataitem.checked"}}):e._e()],2)])})):e._l(e.pagelist,(function(n,a){return t("van-swipe-cell",{key:n.id,class:{add_van_swipe_cell:e.isCellBtn,add_tip_cell:e.isTipCell,card_cell:"card"===e.tableType,last_swipe_cell:a===e.pagelist.length-1&&e.finished}},[t("div",{staticClass:"cell_div",on:{click:function(t){return e.handleCellClick(n)},touchstart:e.gotouchstart,touchend:e.gotouchend}},[e._t("row",null,{row:n,rowindex:a}),e.isCellBtn&&!1!==n.showcellbtn?t("van-cell",{staticClass:"van_cell_btn",on:{click:function(e){e.stopPropagation()}}},[1===e.listStyle.rowBtnStyle?e._t("cellbtn",null,{row:n,rowindex:a,morebtnClick:e.cellTipClick,editObject:e.editObject,viewObject:e.viewObject,deleteIds:e.deleteIds}):e._e(),2===e.listStyle.rowBtnStyle?t("div",{staticClass:"van_cell_link"},[e._t("celllink",null,{row:n})],2):e._e()],2):e._e(),e.isTipCell&&!1!==n.showcellbtn?t("div",{staticClass:"cell_tip_btns_out",on:{click:function(t){return t.stopPropagation(),e.cellTipClick(a,n)},touchstart:function(e){e.stopPropagation()}}},[t("van-icon",{attrs:{name:"ellipsis"}})],1):e._e()],2),!1!==n.showcellbtn?t("template",{slot:"right"},[e._t("rightbtn",null,{row:n})],2):e._e()],2)}))],2)],1)],2),e.longPress||!e.showFloatBtns&&!e.showGobackBtn?e._e():t("FloatButtonGroup",{attrs:{"show-footer-nav-bar":e.showFooterNavBar}},[null!==e.pageFloatBtn?t("van-button",{attrs:{round:"",type:e.pageFloatBtn.btnStyleType,icon:e.pageFloatBtn.btnIcon,hairline:""},on:{click:function(t){return e.btnClick(e.pageFloatBtn)}}}):e._e(),e.showGobackBtn?t("van-button",{staticClass:"goback-btn",attrs:{round:"",plain:"",size:"normal",type:"info",icon:"revoke",hairline:""},on:{click:e.historyBack}}):e._e()],1),e.longPress&&e.longPressBtns.length>0?t("div",{staticClass:"long_press_bottom_btn"},[e._l(e.longPressBtns.filter((function(t,n){return e.longPressBtns.length<=5||e.longPressBtns.length>5&&n<=3})),(function(n,a){return t("a",{key:a,on:{click:function(t){return e.btnClick(n)}}},[n.btnIcon&&n.btnIcon.indexOf(".svg")>-1?t("svg",e._g({staticClass:"svg-icon-font",staticStyle:{"font-size":"15px"},attrs:{"aria-hidden":"true"}},e.$listeners),[t("use",{attrs:{"xlink:href":"#icon-"+n.btnIcon.substr(0,n.btnIcon.indexOf("."))}})]):n.btnIcon?t("van-icon",{staticStyle:{top:"3px","font-size":"15px"},attrs:{name:n.btnIcon}}):e._e(),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"btn.btnI18nCode"}]},[e._v(e._s(n.btnName))])],1)})),e.longPressBtns.length>5?[t("a",{staticStyle:{width:"60px",flex:"none"}},[t("van-popover",{attrs:{offset:[-5,8],trigger:"click",placement:"top-end"},model:{value:e.longPressMorBtns,callback:function(t){e.longPressMorBtns=t},expression:"longPressMorBtns"}},[e._l(e.longPressBtns.filter((function(e,t){return t>3})),(function(n,a){return t("div",{key:a,staticClass:"van-popover__action",attrs:{role:"menuitem"}},[t("div",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"btn.btnI18nCode"}],staticClass:"van-popover__action-text van-hairline--bottom",on:{click:function(t){e.btnClick(n),e.morBtn=!1}}},[e._v(" "+e._s(n.btnName)+" ")])])})),t("template",{slot:"reference"},[t("a",{staticClass:"a_btn",staticStyle:{"font-size":"17px"},on:{click:function(t){t.stopPropagation(),e.longPressMorBtns=!e.longPressMorBtns}}},[t("van-icon",{attrs:{name:"ellipsis"}})],1)])],2)],1)]:e._e()],2):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopupTipBtn&&3===e.listStyle.rowBtnStyle&&"bottom"!==e.listStyle.rowBtnPopupType||e.showMoreBtn,expression:"(showPopupTipBtn && listStyle.rowBtnStyle === 3 && listStyle.rowBtnPopupType !== 'bottom') || showMoreBtn"}],staticClass:"popup_tip_btn",on:{touchstart:function(e){e.stopPropagation()}}},[e._l(e.cellOperationTipbtn,(function(n,a){return t("p",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"tipbtn.btnI18nCode"}],key:a,on:{click:function(t){return e.btnClick(n)}}},[e._v(e._s(n.btnName))])})),e._l(e.cellTipbtns,(function(n,a){return t("p",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"tipbtn.btnI18nCode"}],key:a,on:{click:function(t){return e.customTipBtnClick(n)}}},[e._v(e._s(n.btnName))])}))],2),3===e.listStyle.rowBtnStyle&&"bottom"===e.listStyle.rowBtnPopupType?t("van-action-sheet",{class:{"van-action-sheet-scroll":e.cellOperationTipbtn.length+e.cellTipbtns.length>5},attrs:{"cancel-text":e.$tx("pageBtns.cancel","取 消"),round:!1,"close-on-popstate":!0,teleport:"body"},on:{closed:e.tipBottomBtnClose},model:{value:e.showPopupTipBtn,callback:function(t){e.showPopupTipBtn=t},expression:"showPopupTipBtn"}},[[e.cellOperationTipbtn.length>0?e._l(e.cellOperationTipbtn,(function(n,a){return t("button",{key:a,staticClass:"van-action-sheet__item van-action_cell_btn",attrs:{type:"button"},on:{click:function(t){return e.tipBottomBtnClick(n,a)}}},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"btn.btnI18nCode"}],staticClass:"van-action-sheet__name"},[e._v(e._s(n.btnName))])])})):e._e(),e.cellTipbtns.length>0?e._l(e.cellTipbtns,(function(n,a){return t("button",{key:a+e.cellOperationTipbtn.length,staticClass:"van-action-sheet__item van-action_cell_btn",attrs:{type:"button"},on:{click:function(t){return e.customTipBtnClick(n,a+e.cellOperationTipbtn.length)}}},[t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:n.btnI18nCode,expression:"tipbtn.btnI18nCode"}],staticClass:"van-action-sheet__name"},[e._v(e._s(n.btnName))])])})):e._e()]],2):e._e()],1)},Nr=[],Ar=null,Yr={components:{},props:{longPress:{type:Boolean,default:!1},checkAllAlign:{type:String,default:"left"},checkedAll:{type:Boolean,default:!1},forceUpdate:{type:Boolean,default:!1},tableType:{type:String,default:""},listLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},pullRefresh:{type:Boolean,default:!1},finished:{type:Boolean,default:!1},emptyText:{type:String,default:""},emptyImg:{type:String,default:"./images/m-imgs/nomessage.png"},iserror:{type:Boolean,default:!1},pagelist:{type:Array,default:function(){return[]}},listStyle:{type:Object,default:function(){return{}}},toolbarBtns:{type:Array,default:function(){return[]}},showFooterNavBar:{type:Boolean,default:!1},showMoreBtn:{type:Boolean,default:!1},showPopupTipBtn:{type:Boolean,default:!1}},data:function(){return{error:!1,isCellBtn:!1,isTipCell:!1,cellTipbtns:[],tipClickIndex:-1,tipClickData:{},longPressMorBtns:!1,scrollTop:0}},computed:{showFloatBtns:function(){var e=!1;return e=this.$vnode.context.navTabList.length>0?this.$vnode.context.navTabList[this.$vnode.context.tabActive].showFooterBtns:this.listStyle.pageBtn,e},showGobackBtn:function(){var e=document.querySelector(".main-tabbar")||document.querySelector(".navbar_bottom");return!e&&"floatBtn"===window.wxgobakMode},pageFloatBtn:function(){var e=this.toolbarBtns.filter((function(e){if("page"===e.btnType&&!0===e.btnPermission)return!0}));return e.length>0?e[0]:null},cellOperationTipbtn:function(){if(1===this.listStyle.rowBtn&&3===this.listStyle.rowBtnStyle){var e=this.toolbarBtns.filter((function(e){if("column"===e.btnType)return!0}));return e}return[]},longPressBtns:function(){if(0===this.listStyle.topbarBtn)return[];var e=this.toolbarBtns.filter((function(e){if("topbar"===e.btnType)return!0}));return e}},watch:{iserror:function(e){this.error=e},error:function(e){this.$emit("update:iserror",e)},pullRefresh:function(e){this.$emit("update:pullRefresh",e)},listStyle:{handler:function(){this.setCellBtnStyle()},deep:!0,immediate:!0}},created:function(){this.error=this.iserror,this.setCellBtnStyle(),this.$bus.on("accomplishChecked",this.accomplishChecked)},beforeDestroy:function(){this.$bus.off("accomplishChecked",this.accomplishChecked)},mounted:function(){this.emptyText=this.$tx("common.noData","暂无数据")},methods:{setCellBtnStyle:function(){this.isCellBtn=!1,this.isTipCell=!1,this.listStyle&&(1!==this.listStyle.rowBtn||1!==this.listStyle.rowBtnStyle&&2!==this.listStyle.rowBtnStyle?1===this.listStyle.rowBtn&&3===this.listStyle.rowBtnStyle&&(this.isTipCell=!0):this.isCellBtn=!0)},gotouchstart:function(){var e=this;0!==this.longPressBtns.length&&(Ar=setInterval((function(){e.$emit("update:longPress",!0),e.$vnode.context.setListViewHeight(),clearInterval(Ar)}),1e3))},gotouchend:function(){clearInterval(Ar),Ar=null},cellChecked:function(e,t){this.$set(this.pagelist[t],"checked",!e);var n=this.pagelist.filter((function(e){return!0===e.checked}));n.length===this.pagelist.length?this.$emit("update:checkedAll",!0):this.$emit("update:checkedAll",!1),this.$forceUpdate()},accomplishChecked:function(){var e=this;this.$emit("update:longPress",!1),this.$emit("update:checkedAll",!1),this.pagelist.forEach((function(e){e.checked=!1})),this.$nextTick((function(){e.$vnode.context.setListViewHeight()})),this.$forceUpdate()},selectCheckedAll:function(e){this.$emit("update:checkedAll",e),this.pagelist.forEach((function(t){t.checked=e})),this.$forceUpdate()},cellTipClick:function(e,t,n,a){var o=this;n&&(this.cellTipbtns=n),this.$bus.emit("onCellTipClick",t,(function(e){e.listbtns&&e.listbtns.length>0&&(o.cellTipbtns=e.listbtns)})),this.tipClickData=t;var i=document.querySelector(".popup_tip_btn"),r=document.querySelector(".out-tbs"),s=document.querySelector(".not-tab-list"),l=null;if(null!==r){var d=r.querySelectorAll(".van-tab__pane")[this.$vnode.context.tabActive],c=d.querySelectorAll(".cell_div")[e];l=null!==c.querySelector(".tag_more_btn")?c.querySelector(".tag_more_btn").getBoundingClientRect():null}else{var u=document.querySelectorAll(".cell_div")[e];l=null!==u.querySelector(".tag_more_btn")?u.querySelector(".tag_more_btn").getBoundingClientRect():null}var f=0!==document.querySelectorAll(".cell_tip_btns_out").length?document.querySelectorAll(".cell_tip_btns_out")[e].getBoundingClientRect():null,p=window.headerHeight||0;i.style.right="16px",i.style.top=l?parseInt(l.top)-p+28+"px":parseInt(f.top)-p+23+"px",this.tipClickIndex===e?(this.$emit("update:showPopupTipBtn",!this.showPopupTipBtn),1===this.listStyle.rowBtnStyle&&this.$emit("update:showMoreBtn",!this.showMoreBtn)):(this.showPopupTipBtn||this.$emit("update:showPopupTipBtn",!0),1===this.listStyle.rowBtnStyle&&(this.showMoreBtn||this.$emit("update:showMoreBtn",!0))),this.$nextTick((function(){var e=document.querySelector(".popup_tip_btn");null!==r&&e.offsetHeight+e.offsetTop>r.offsetHeight||null!==s&&e.offsetHeight+e.offsetTop>s.offsetHeight?(i.style.top=e.offsetTop-e.offsetHeight-p-24-10+"px",e.classList.add("popup_tip_btn_align")):e.classList.remove("popup_tip_btn_align")})),this.tipClickIndex=e},customTipBtnClick:function(e){e.btnClick&&(e.btnClick(this.tipClickIndex,this.tipClickData,e,this),this.$emit("update:showPopupTipBtn",!1),this.$emit("update:showMoreBtn",!1))},loadlist:function(){this.$emit("onLoad")},onPullRefresh:function(){this.$emit("onRefresh")},handleCellClick:function(e){this.$emit("onCellClick",e)},editObject:function(e){this.$emit("editObject",e)},viewObject:function(e){this.$emit("viewObject",e)},deleteIds:function(e){this.$emit("deleteIds",e)},btnClick:function(e,t){var n=t;3===this.listStyle.rowBtnStyle&&(n=this.tipClickData),this.$emit("btnClick",e,n)},tipBottomBtnClick:function(e,t){this.btnClick(e)},tipBottomBtnClose:function(){this.$emit("update:showPopupTipBtn",!1)},historyBack:function(){this.$router.back(-1)}}},Cr=Yr,Or=(a(3180),(0,Ca.A)(Cr,Dr,Nr,!1,null,"416f359a",null)),Ir=Or.exports;function Er(e){return Er="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},Er(e)}function $r(e){return Hr(e)||Fr(e)||jr(e)||Pr()}function Pr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jr(e,t){if(e){if("string"==typeof e)return Br(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Br(e,t):void 0}}function Fr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Hr(e){if(Array.isArray(e))return Br(e)}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Ur(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ur=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Er(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Er(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function Rr(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Wr(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){Rr(i,a,o,r,s,"next",e)}function s(e){Rr(i,a,o,r,s,"throw",e)}r(void 0)}))}}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e,t,n){return(t=qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(e){var t=Gr(e,"string");return"symbol"==Er(t)?t:t+""}function Gr(e,t){if("object"!=Er(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Er(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Kr={pageSize:15,total:0,pageNum:0},Qr={name:"DataTable",components:{search:Tr,TableList:Ir},props:{moduleInfo:{type:Object,default:function(){return{}}},toolbarBtns:{type:Array,default:function(){return[]}},navTabList:{type:Array,default:function(){return[]}},doSearchFields:{type:Array,default:function(){return[]}},listStyle:{type:Object,default:function(){return{search:1}}},showFooterNavBar:{type:Boolean,default:function(){return!1}},onNavTabClick:{type:Function,default:function(){}},onListDataBeforeLoad:{type:Function,default:function(){}},onListDataLoaded:{type:Function,default:function(){}},onDeleteSuccessed:{type:Function,default:function(){}},onCellClick:{type:Function,default:null},listdata:{type:Array,default:function(){return[]}},mode:{type:String,default:"listpage"},advancedSearch:{type:Object,default:function(){return{show:!1,optionName:"",selectiveType:"radio",option:[]}}},setTitle:{type:String,default:""},tableType:{type:String,default:""},checkAllAlign:{type:String,default:"left"},tbColumns:{type:Array,default:function(){return[]}},defaultEmptyText:{type:String,default:null},defaultEmptyImg:{type:String,default:null}},data:function(){return{tabActive:0,showTabApp:!1,forceUpdate:!1,loading:!1,finished:!1,error:!1,pageInfo:JSON.parse(JSON.stringify(Kr)),pagelist:[],defaultSort:{},selectedRows:[],searchAndOr:"",searchMap:{},showSearch:!1,pageGroupList:[],showNavBar:!0,longPress:!1,checkedAll:!1,showPopupTipBtn:!1,showMoreBtn:!1,listLoading:!1,emptyText:this.$tx("common.noData","暂无数据"),emptyImg:"./images/m-imgs/nomessage.png",searchKey:"",searchTime:{searchType:!1},pullRefresh:!1,scrollTop:0}},computed:zr(zr({},(0,ei.L8)(["loginUser"])),{},{cellOperationBtn:function(){if(1===this.listStyle.rowBtn&&1===this.listStyle.rowBtnStyle){var e=this.toolbarBtns.filter((function(e){if("column"===e.btnType)return!0}));return e}return[]},cellOperationLink:function(){if(1===this.listStyle.rowBtn&&2===this.listStyle.rowBtnStyle){var e=this.toolbarBtns.filter((function(e){if("column"===e.btnType)return!0}));return e}return[]},operateColumnBtns:function(){return 1!==this.listStyle.rowBtn||0!==this.listStyle.rowBtnStyle&&void 0!==this.listStyle.rowBtnStyle?[]:this.toolbarBtns.filter((function(e){if("column"===e.btnType&&!0===e.btnPermission)return!0}))}}),watch:{searchKey:function(e){this.pageInfo.pageNum=this.pageInfo.pageNum>1?1:this.pageInfo.pageNum},tabActive:function(e,t){var n=this;t!==e&&(this.longPress=!1,this.listLoading=!0,this.$nextTick((function(){n.listLoading=!1})))},showSearch:function(){this.$forceUpdate()}},created:function(){var e=this;if("undefined"!==typeof this.moduleInfo.listDefaultOrderBy&&null!==this.moduleInfo.listDefaultOrderBy){var t=this.moduleInfo.listDefaultOrderBy.split(",")[0].replace(" asc"," ascending").replace(" desc"," descending");this.defaultSort.prop=t.split(" ")[0],this.defaultSort.order=t.split(" ")[1]}var n=this,a={};this.toolbarBtns.forEach(function(){var t=Wr(Ur().mark((function t(o){var i,r,s;return Ur().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"!==typeof o.btnPermission?o.btnI18nCode=o.btnI18nCode||(o.id||o.btnIcon||o.btnName).replace("btn_","").replace("Ids","").replace("Object",""):o.btnI18nCode=o.btnI18nCode||(o.btnPermission||o.id||o.btnIcon||o.btnName).replace("btn_","").replace("Ids","").replace("Object",""),o.btnName=e.$i18n.generateTitle(o,e.$vnode.context),"design"!==e.mode){t.next=6;break}o.btnPermission=!0,t.next=17;break;case 6:if(i="",i="column"===o.btnType?"COLUMN_BTN$"+o.btnPermission:"TOOLBAR_BTN$"+o.btnPermission,!a[i]){t.next=12;break}o.btnPermission=a[i],t.next=16;break;case 12:return t.next=14,Hn.A.dispatch("user/hasPermission",{route:e.$route,pcode:i});case 14:r=t.sent,o.btnPermission=r;case 16:o.btnPermission&&("string"===typeof o.btnClick?(o.btnParams=[o.btnClick.split("(")[1].split(")")[0]],s=o.btnClick.split("(")[0],o.btnClick=n[s]?n[s]:s,o.btnClickFunc=s):void 0!==o.btnClickFunc&&(o.btnClick=n[o.btnClickFunc]),void 0===o.btnStyleType&&("delete"===o.btnIcon?o.btnStyleType="danger":"plus"===o.btnIcon?o.btnStyleType="info":o.btnStyleType="primary"),2===o.btnName.length&&"topbar"!==o.btnType&&(o.btnName=o.btnName.substring(0,1)+" "+o.btnName.substring(1)));case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.setTitle&&null!==this.setTitle&&""!==this.setTitle&&this.$wv.setTitle({bool:!0,text:this.setTitle,color:"#000000"}),this.$bus.$off("refreshListData").$on("refreshListData",this.refreshListData),this.$bus.$off("removeDataitem").$on("removeDataitem",this.removeDataitem),this.emptyText=null!==this.defaultEmptyText?this.defaultEmptyText:this.$tx("common.noData","暂无数据"),this.emptyImg=null!==this.defaultEmptyImg?this.defaultEmptyImg:"./images/m-imgs/nomessage.png"},beforeDestroy:function(){this.$bus.off("refreshListData",this.refreshListData),this.$bus.off("removeDataitem",this.removeDataitem)},mounted:function(){this.advancedSearch.optionName=this.$tx("ecmapp.common.category","类别"),this.tabActive=this.getTabIndex(),(this.tabActive>0&&this.navTabList.length>this.tabActive||this.navTabList.length>0&&void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl)&&this.forceUpdateListView()},methods:{listTouchstart:function(){"bottom"!==this.listStyle.rowBtnPopupType&&(this.showPopupTipBtn=!1),this.showMoreBtn=!1},onLoad:function(){this.pageInfo.pageNum++;var e=window.pageNumMap||{},t=window.scrollTopMap||{},n=this.moduleInfo.listDataUrl;if(1===this.pageInfo.pageNum){var a=window.searchKeyMap||{};a[n]&&(this.searchMap=window.searchKeyMap[n],delete window.searchKeyMap[n]);var o=window.searchAndOrMap||{};if(o[n])if(this.searchAndOr=window.searchAndOrMap[n],delete window.searchAndOrMap[n],"or"===this.searchAndOr)for(var i in this.searchMap){this.$refs.search[0]&&(this.$refs.search[0].searchKey=this.searchMap[i]);break}else"and"===this.searchAndOr&&(this.$refs.search[0].searchCondition=!0,this.$refs.search[0].searchVo=this.searchMap,this.$refs.search[0].copytbColumns=this.searchMap.copytbColumns,this.$refs.search[0].advancedSearch=this.searchMap.advancedSearch,this.$refs.search[0].customSeaarchField=this.searchMap.customSeaarchField,delete this.searchMap.copytbColumns,delete this.searchMap.advancedSearch,delete this.searchMap.customSeaarchField);e[n]>1&&t[n]>0&&(this.pageInfo.pageSize=15*e[n])}else e[n]=this.pageInfo.pageNum;window.pageNumMap=e,this.loadListdata()},onRefresh:function(){this.pageInfo.pageNum=1;var e=window.pageNumMap||{};delete e[this.moduleInfo.listDataUrl],this.finished=0,this.loadListdata(null,null,"down")},getTabIndex:function(){var e=0,t=this.$route.path,n=this.Cookies.get("LIST_TAB_ACTIVE");return void 0!==n&&null!==n&&(n=n.split(":"),n[1]===t&&(n=parseInt(n[0]),this.navTabList.length>n&&(e=n))),e},refreshListData:function(e,t,n){if(this.showSearch=!1,this.searchKey=t||"",this.searchMap=n||{},"and"===e||""===e)if(this.pageInfo.pageNum=1,this.searchAndOr=e,this.navTabList.length>0&&void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl&&void 0!==this.$options.components["TabApp"].methods.loadListdata)this.$options.components["TabApp"].methods.loadListdata(this,{},e,this.searchMap);else if(this.advancedSearch.show&&this.advancedSearch.advancedOnSearch&&"function"===typeof this.advancedSearch.advancedOnSearch){var a={};this.advancedSearch.selectTime&&(a[this.advancedSearch.selectTime.filed+"_start"]=this.searchMap[this.advancedSearch.selectTime.filed+"_START"],a[this.advancedSearch.selectTime.filed+"_end"]=this.searchMap[this.advancedSearch.selectTime.filed+"_END"]),this.advancedSearch.advancedOnSearch(this,this.searchMap,e,a,""),this.loadListdata(this.searchMap,e)}else this.loadListdata(this.searchMap,e);else this.onSearch()},onTabClick:function(e,t){var n=this;return Wr(Ur().mark((function a(){var o,i;return Ur().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(o=n.getTabIndex(),null===o||o!==e){a.next=5;break}return a.abrupt("return");case 5:if(!n.loading){a.next=9;break}return n.forceUpdate=!0,setTimeout((function(){n.onTabClick(e,t)}),100),a.abrupt("return");case 9:return i=window.pageNumMap||{},delete i[n.moduleInfo.listDataUrl],a.next=13,n.onNavTabClick(n.navTabList[n.tabActive],e,t);case 13:n.httpload=!1,n.$bus.emit("clearSearchKey","init"),n.searchKey="",n.searchMap={},n.$bus.$off("refreshListData").$on("refreshListData",n.refreshListData),n.$bus.$off("removeDataitem").$on("removeDataitem",n.removeDataitem),n.forceUpdateListView();case 20:case"end":return a.stop()}}),a)})))()},forceUpdateListView:function(){var e=this;if(this.forceUpdate=!0,void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl){var t=this.navTabList[this.tabActive].redirectUrl.split("?");0===t[0].indexOf("@/mapp/")?this.$options.components["TabApp"]=window.$loadComponent(t[0]):0===t[0].indexOf("#/dcontent/")&&(t[0]="#/dcontent/vuelistpage/"+t[0].substring(11),-1===t[0].indexOf(".vue")&&(t[0]+=".vue"),this.$route.meta&&this.$route.meta.sysCode&&(t[0]+="?sysCode="+this.$route.meta.sysCode),this.$options.components["TabApp"]=window.$loadComponent(t[0])),this.showTabApp=!0}else this.showTabApp=!1,this.pageInfo=JSON.parse(JSON.stringify(Kr)),this.showFooterBtns=this.navTabList[this.tabActive].showFooterBtns,this.pagelist=[],this.finished=!1;this.$nextTick((function(){e.Cookies.set("LIST_TAB_ACTIVE",e.tabActive+":"+e.$route.path),e.forceUpdate=!1}))},onSearch:function(){var e=this,t={};if(this.doSearchFields.forEach((function(n){t[n]=e.searchKey})),this.navTabList.length>0&&void 0!==this.navTabList[this.tabActive].redirectUrl&&""!==this.navTabList[this.tabActive].redirectUrl&&void 0!==this.$options.components["TabApp"].methods.loadListdata)this.$options.components["TabApp"].methods.loadListdata(this,this.searchKey,"or",t);else if(this.advancedSearch.show&&this.advancedSearch.advancedOnSearch&&"function"===typeof this.advancedSearch.advancedOnSearch){var n={};this.advancedSearch.selectTime&&(n[this.advancedSearch.selectTime.filed+"_start"]=this.searchMap[this.advancedSearch.selectTime.filed+"_START"],n[this.advancedSearch.selectTime.filed+"_end"]=this.searchMap[this.advancedSearch.selectTime.filed+"_END"]),this.advancedSearch.advancedOnSearch(this,t,"or",n,this.searchKey),this.loadListdata(t,"or")}else this.loadListdata(t,"or")},handleCellClick:function(e){if(!this.longPress){var t=this.moduleInfo.listDataUrl,n=window.scrollTopMap||{},a=this.$el.querySelector(".listdata-container");n[t]=a.scrollTop,window.scrollTopMap=n;var o=window.searchKeyMap||{};o[t]=this.searchMap,window.searchKeyMap=o;var i=window.searchAndOrMap||{};i[t]=this.searchAndOr,window.searchAndOrMap=i,"and"===this.searchAndOr&&(window.searchKeyMap[t].copytbColumns=this.$refs.search[0]&&this.$refs.search[0].copytbColumns,window.searchKeyMap[t].advancedSearch=this.$refs.search[0]&&this.$refs.search[0].advancedSearch,window.searchKeyMap[t].customSeaarchField=this.$refs.search[0]&&this.$refs.search[0].customSeaarchField),this.selectedRows=[e],null!==this.onCellClick&&void 0!==this.onCellClick?this.onCellClick(e):this.viewObject()}},loadListdata:function(e,t,n){var a=this;return Wr(Ur().mark((function o(){var i,r,s,l,d;return Ur().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(a.pageInfo.pageNum<2&&(a.listLoading=!0),!(a.listdata.length>0)){o.next=8;break}return a.pagelist=a.listdata,a.loading=!1,a.finished=!0,a.listLoading=!1,a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:a.$tx("common.nothingMore","没有更多了"),o.abrupt("return");case 8:if("undefined"!==typeof a.moduleInfo.listDataUrl){o.next=13;break}return a.finished=!0,a.listLoading=!1,a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:a.$tx("common.noData","暂无数据"),o.abrupt("return");case 13:if(!a.httpload){o.next=18;break}return a.listLoading=!1,o.abrupt("return");case 18:a.httpload=!0;case 19:return"down"===n&&(a.pullRefresh=!0,a.loading=!1,a.listLoading=!1,a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:a.$tx("common.nothingMore","没有更多了")),a.searchAndOr=t||a.searchAndOr,a.searchMap=e||a.searchMap,i=a.pageInfo.orderBy||a.moduleInfo.listDefaultOrderBy,a.pageInfo.listpageId=a.moduleInfo.listpageId,a.pageInfo.listpageViewUrl=a.moduleInfo.listpageViewUrl,a.pageInfo.orderBy=i,a.pageInfo.searchAndOr=a.searchAndOr,a.pageInfo.searchMap=a.searchMap,r=a.getTabIndex(),"listpage"===a.mode&&(a.navTabList.length>0&&void 0!==a.navTabList[r].datafilter?a.pageInfo.urlsearch=a.navTabList[r].datafilter:a.pageInfo.urlsearch=""),o.next=32,a.onListDataBeforeLoad(a,a.pageInfo);case 32:if(a.moduleInfo.listDataUrl){o.next=34;break}return o.abrupt("return");case 34:return void 0!==a.moduleInfo.listpageViewUrl&&void 0===a.pageInfo.sysCode&&a.$route.meta&&a.$route.meta.sysCode&&(a.pageInfo.sysCode=a.$route.meta.sysCode),o.next=37,a.$app.listdata(a.moduleInfo.listDataUrl,a.pageInfo);case 37:if(s=o.sent,r===a.getTabIndex()){o.next=40;break}return o.abrupt("return");case 40:if("success"!==s.code){o.next=54;break}return a.pageInfo=s.body.pageInfo,a.pageInfo.orderBy=i,a.pageInfo.passenger=s.body.passenger,l=a,a.pageInfo.list.forEach((function(e){e.checked=l.checkedAll})),o.next=48,a.onListDataLoaded(a,a.pageInfo,s);case 48:void 0===e?(d=a.pagelist).push.apply(d,$r(a.pageInfo.list)):a.pagelist=a.pageInfo.list,a.pageInfo.endRow===a.pageInfo.total?a.finished=!0:a.finished=!1,a.$nextTick((function(){a.setListViewHeight()})),""!==a.searchKey||a.searchTime.searchType||void 0!==e&&null!==e&&""!==e&&"{}"!==JSON.stringify(e)?(a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:0===a.pagelist.length?a.$tx("common.noContent","抱歉, 无相关内容"):a.$tx("common.nothingMore","没有更多了"),a.emptyImg=null!==a.defaultEmptyImg?a.defaultEmptyImg:"./images/m-imgs/nosearch.png"):(a.emptyText=null!==a.defaultEmptyText?a.defaultEmptyText:0===a.pagelist.length?a.$tx("common.noData","暂无数据"):a.$tx("common.nothingMore","没有更多了"),a.emptyImg=null!==a.defaultEmptyImg?a.defaultEmptyImg:"./images/m-imgs/nomessage.png"),o.next=56;break;case 54:a.$toast(s.message),a.finished=!0;case 56:a.loading=!1,a.httpload=!1,setTimeout((function(){a.listLoading=!1,a.pullRefresh=!1,setTimeout((function(){var e=window.pageNumMap||{},t=window.scrollTopMap||{},n=window.firstDataIdMap||{},o=a.moduleInfo.listDataUrl;if(1===a.pageInfo.pageNum&&a.pageInfo.size>0)if(e[o]>1)a.pageInfo.pageNum=e[o],a.pageInfo.pageSize=15,delete e[o];else{var i=window.firstDataIdMap||{};i[o]=a.pageInfo.list[0].id,window.firstDataIdMap=i}if(t[o]&&a.pageInfo.list[0].id===n[o]){var r=a.$el.querySelector(".listdata-container");r.scrollTo({top:t[o]}),delete t[o]}}),0)}),0);case 59:case"end":return o.stop()}}),o)})))()},setListViewHeight:function(){var e=document.querySelectorAll(".out-tbs").length,t=document.querySelectorAll(".p-search").length,n=document.querySelectorAll(".show-search-key").length,a=document.querySelector(".selectPageDialog"),o=document.querySelector(".van_dropdown-menu_cell"),i=0;e>0&&(i+=44),t>0&&(i+=55),n>0&&(i+=41),this.showFooterNavBar&&!this.longPress&&(i+=58),this.longPress&&(i+=104),a&&(i+=106),o&&(i+=50);var r=document.querySelector(".listdata-container");if(null!==r){if(this.navTabList.length>1){var s=document.querySelectorAll(".van-tab__pane");r=s[this.tabActive].querySelector(".listdata-container");var l=s[this.tabActive].querySelector(".list-table-top");l&&(i+=l.offsetHeight)}else{var d=this.$vnode.context.$vnode.context.$vnode.context.navTabList;d&&d.length>1&&(r=this.$el.querySelector(".listdata-container"));var c=document.querySelector(".list-table-top");c&&(i+=c.offsetHeight)}r.style.height="calc(100vh - "+i+"px - var(--headerHeight))"}},btnClick:function(e,t){var n=this;if(this.longPress){var a=this.pagelist.filter((function(e){return!0===e.checked}));if(0===a.length)return void this.$dialog.alert({message:this.$tx("ecmapp.message.selectNeedRows",{dataType:e.btnName.replace(" ","")},"请选择需要".concat(e.btnName.replace(" ",""),"的数据!")),type:"warning"});if(!this[e.btnClickFunc])return void e.btnClick(this,a,(function(e){null!==e.checked&&void 0!==e.checked&&(n.longPress=e.checked,!1===e.checked&&n.setListViewHeight())}));if("deleteIds"===e.btnClickFunc||"removeDataitem"===e.btnClickFunc){var o=[];a.forEach((function(e){o.push(e.id)})),e.btnClick(o.join(","))}this.$bus.emit("accomplishChecked")}else void 0!==e.btnParams&&null!==e.btnParams?1===e.btnParams.length&&"row.id"===e.btnParams[0]&&void 0!==t?e.btnClick.apply(this,t.id.split(",")):e.btnClick.apply(this,e.btnParams):e.btnClick(this,t),3===this.listStyle.rowBtnStyle&&(this.showPopupTipBtn=!1,this.showMoreBtn=!1)},addObject:function(){this.$router.push({path:this.$route.path,query:{id:"",canEdit:1}})},editObject:function(e){var t=e?e.id:this.getSelectedRows()[0];this.$router.push({path:this.$route.path,query:{id:t,canEdit:1}})},viewObject:function(e){var t=e?e.id:this.getSelectedRows()[0];this.$router.push({path:this.$route.path,query:{id:t,canEdit:0}})},deleteIds:function(e){var t=this,n=this;this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDeleteSelected","您是否确认删除选择的数据?")}).then(Wr(Ur().mark((function a(){var o;return Ur().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e=void 0===e?n.getSelectedRows():e.split(","),a.next=3,t.$app.deleteByIds(t.moduleInfo.delUrl,e);case 3:o=a.sent,"success"===o.code?(t.onDeleteSuccessed(t,e),t.$toast.success(o.message),t.removeDataitem(e)):"confirm"===o.code?t.$dialog.confirm({message:o.message}).then(Wr(Ur().mark((function n(){var a;return Ur().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$app.deleteByIds(t.moduleInfo.delUrl,e,!0);case 2:a=n.sent,"success"===a.code?(t.onDeleteSuccessed(t,e),t.$toast.success(a.message),t.removeDataitem(e)):t.$dialog.alert({message:a.message});case 4:case"end":return n.stop()}}),n)})))).catch((function(){console.log("cancel delete.")})):t.$dialog.alert({message:o.message});case 5:case"end":return a.stop()}}),a)})))).catch((function(){console.log("cancel delete.")}))},removeDataitem:function(e){var t=this,n=this.pagelist;this.pagelist=[],e.forEach((function(e){for(var t=0;t<n.length;t++)if(n[t].id===e){n.splice(t,1);break}})),this.$nextTick((function(){t.pagelist=n}))},getSelectedRows:function(){var e=[];return this.selectedRows.forEach((function(t){e.push(t.id)})),e},gotouchstart:function(){void 0!==this.$refs.tableList.length?this.$refs.tableList[this.tabActive].gotouchstart():this.$refs.tableList.gotouchstart()},gotouchend:function(){void 0!==this.$refs.tableList.length?this.$refs.tableList[this.tabActive].gotouchend():this.$refs.tableList.gotouchend()}}},Zr=Qr,Xr=(a(2719),(0,Ca.A)(Zr,fr,pr,!1,null,"ab09df0e",null)),es=Xr.exports;es.install=function(e){e.component(es.name,es)};var ts=es,ns=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inner-table-container"},[e._l(e.showListdata,(function(n,a){return t("van-cell-group",{key:a,staticClass:"inner-table-row"},[1==e.formCanEdit?t("van-cell",{staticClass:"inner_table_title",attrs:{title:e.formTitle}},[1==e.canEdit&&e.listpageRowBtns.length>0?e._l(e.listpageRowBtns,(function(n,a){return t("van-icon",{key:a,attrs:{slot:"right-icon",name:n.btnIcon},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.cloumHeaderBtnClick(n)}},slot:"right-icon"})})):e._e(),1==e.canDelete?t("van-icon",{attrs:{slot:"right-icon",name:"delete-o"},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteIds(n)}},slot:"right-icon"}):e._e(),1==e.canEdit?t("van-icon",{attrs:{slot:"right-icon",name:"edit"},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.editObject(n)}},slot:"right-icon"}):e._e()],2):e._e(),1!=e.formCanEdit?t("van-cell",{staticClass:"inner_table_title",attrs:{title:e.formTitle}},[t("van-icon",{attrs:{slot:"right-icon",name:"arrow"},on:{touchstart:function(t){return t.stopPropagation(),t.preventDefault(),e.editObject(n)}},slot:"right-icon"})],1):e._e(),e.showForm?e._e():t("van-cell-group",[e._t("row",(function(){return[e._l(e.tbColumns,(function(a,o){return["textarea"!=a.elementType?t("van-field",{key:o,attrs:{label:a.title,value:e.elementValueFormatter(n,a,n[a.field]),readonly:"","input-align":"right"}}):t("van-cell",{attrs:{title:a.title}},[t("div",{staticClass:"van-cell__value van-cell__value--alone",attrs:{slot:"label"},slot:"label"},[e._v(" "+e._s(n[a.field])+" ")])])]}))]}),{dataitem:n,columns:e.tbColumns})],2)],1)})),0==e.showListdata.length?t("van-cell-group",{staticClass:"inner-table-row"},[t("van-cell",{staticClass:"inner_table_title",attrs:{title:e.formTitle}}),t("van-cell-group",[t("van-cell",{staticClass:"inner-table-nodata",attrs:{title:e.$tx("common.noData","暂无数据")}})],1)],1):e._e(),t("div",{staticClass:"inner_table_list_bottom_slot"},[e._t("listbottom",null,{listdata:e.showListdata,canEdit:e.canEdit,canDelete:e.canDelete})],2),1==e.formCanEdit&&e.listpageBtns.length>0&&0!==e.canAdd?t("div",{staticClass:"inner-table-add-botton-container"},[t("van-button",{attrs:{type:"default",block:"",icon:e.listpageBtns[0].btnIcon?e.listpageBtns[0].btnIcon:"plus",disabled:e.innerTableBtnDisabled},on:{click:function(t){return e.cloumHeaderBtnClick(e.listpageBtns[0])}}},[e._v(e._s(e.listpageBtns[0].btnName?e.listpageBtns[0].btnName:e.$tx("pageBtns.addTo","添加")))])],1):e._e(),e.showForm?t("PopupDialog",{attrs:{showpop:e.showForm,title:e.formTitle},on:{"update:showpop":function(t){e.showForm=t},close:e.closeBusiform}},[t("div",{staticClass:"popup-content"},[""!=e.formTitle?t("Basicform",{attrs:{"disabled-dialog":1,"toolbar-btns":e.formToolbarBtns,"module-code":e.moduleInfo.moduleCode,"wf-attach":e.wfAttach,"attach-edit":e.attachEdit,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit},scopedSlots:e._u([{key:"default",fn:function(n){return[t("BusiForm",{ref:"busiform",attrs:{vo:n?n.vo:e.formVo,"can-edit":e.formCanEdit&&e.canEdit,"module-info":e.moduleInfo}})]}}],null,!1,1845604844)}):e._e()],1)]):e._e()],2)},as=[];function os(e){return os="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},os(e)}function is(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */is=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==os(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(os(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function rs(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function ss(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){rs(i,a,o,r,s,"next",e)}function s(e){rs(i,a,o,r,s,"throw",e)}r(void 0)}))}}function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach((function(t){cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cs(e,t,n){return(t=us(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function us(e){var t=fs(e,"string");return"symbol"==os(t)?t:t+""}function fs(e,t){if("object"!=os(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=os(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ps=a(5093),ms={name:"InnerTable",props:{listviewurl:{type:String,default:null},linkPropName:{type:String,default:null},masterFieldFormula:{type:String,default:null},excludeFields:{type:String,default:""},pageSize:{type:Number,default:1e4},showToolbar:{type:Number,default:0},canEdit:{type:Number,default:1},canDelete:{type:Number,default:1},canAdd:{type:Number,default:1},canEditWfNodes:{type:String,default:""},canDeleteWfNodes:{type:String,default:""},canAddWfNodes:{type:String,default:""},textareaStyle:{type:Number,default:0},listdata:{type:Array,default:function(){return[]}}},data:function(){return{showForm:!1,formTitle:"",formVo:null,formCanEdit:0,loading:!1,moduleInfo:{},wfAttach:!1,tbColumns:[],listpageBtns:[],listpageRowBtns:[],pageInfo:JSON.parse(JSON.stringify({pageSize:this.pageSize,total:0,pageNum:0})),formToolbarBtns:[],attachEdit:null,innerTableBtnDisabled:!1,showListdata:[],curTN:""}},computed:ds({},(0,ei.L8)(["loginUser"])),watch:{},created:function(){void 0!==this.$vnode.context.canEdit?this.formCanEdit=this.$vnode.context.canEdit:this.formCanEdit=this.canEdit,this.createInnerListpage(),this.$bus.on("refreshListData",this.loadListdata)},beforeDestroy:function(){this.$bus.off("refreshListData",this.loadListdata)},mounted:function(){var e=this.$vnode.context.curTN;if(e){if(this.curTN=e,e.tnChildDataEdit&&3===e.tnChildDataEdit.split(",").length){var t=e.tnChildDataEdit.split(",");this.canAdd=parseInt(t[0]),this.canEdit=parseInt(t[1]),this.canDelete=parseInt(t[2])}2===this.canAdd&&(-1!==this.canAddWfNodes.indexOf(e.tnNodeName)?this.canAdd=1:this.canAdd=0),2===this.canEdit?-1!==this.canEditWfNodes.indexOf(e.tnNodeName)?this.canEdit=1:this.canEdit=0:3===this.canEdit&&(this.canEdit=this.canAdd),2===this.canDelete?-1!==this.canEditWfNodes.indexOf(e.tnNodeName)?this.canDelete=1:this.canDelete=0:3===this.canDelete&&(this.canDelete=this.canAdd)}1===this.formCanEdit&&1===this.canEdit||this.formToolbarBtns.push({id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:"closeDialog",btnPermission:"",btnType:""})},methods:{createInnerListpage:function(){var e=this,t=this;if(!t.loading){t.loading=!0;var n={method:"GET",contentType:"application/x-www-form-urlencoded",url:"dcontent/getListpageInfo/"+this.listviewurl+"/"};this.$vnode.context.wfInstance?n.params={sysCode:this.$vnode.context.wfInstance.sysCode,textareaStyle:this.textareaStyle}:n.params={textareaStyle:this.textareaStyle},this.$http(n).then((function(n){if("success"===n.code){var a=n.body.listpage,o=JSON.parse(a.listModuleInfo);o.listpageId=a.id,-1!==a.listName.indexOf(">")?e.formTitle=a.listName.substring(a.listName.lastIndexOf(">")+1):e.formTitle=a.listName;for(var i=JSON.parse(a.listColumns),r=0;r<i.length;r++)i[r].sortable=!1,"state"===i[r].field||"index"===i[r].field?i.splice(r--,1):!1!==i[r].enabled&&-1===e.excludeFields.indexOf(i[r].field)||i.splice(r--,1);if(1===e.textareaStyle&&n.body.tbFieldList&&i.forEach((function(e){n.body.tbFieldList.forEach((function(t){e.field===t.prop&&(e.elementType=t.type||t.TYPE)}))})),1===e.formCanEdit){e.listpageRowBtns=[];var s=JSON.parse(a.listToolBtns),l=s.filter((function(t){if("columnHeaderBtn"===t.btnType){var n=t.btnClick,a=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));return""!==a&&(a=a.replace(/'/g,"").split(","),t.btnParams=a),"function"===typeof e.$vnode.context[n.split("(")[0]]&&(t.btnClick=e.$vnode.context[n.split("(")[0]]),!0}1===e.showToolbar&&"column"===t.btnType&&"editObject"!==t.btnPermission&&"deleteIds"!==t.btnPermission&&e.listpageRowBtns.push(t)}));0===l.length&&(l=s.filter((function(e){if(("toolbar"===e.btnType||"page"===e.btnType)&&"btn_add"===e.id)return!0}))),t.listpageBtns=l}t.moduleInfo=o,t.tbColumns=i,t.tableFieldInfo=void 0===n.body.busiformFields?[]:n.body.busiformFields;var d=t.getChildDataParentId();null!==d&&void 0!==d&&t.moduleInfo.addNewUrl&&(-1===t.moduleInfo.addNewUrl.indexOf("?")?t.moduleInfo.addNewUrl+="?":t.moduleInfo.addNewUrl+="&",t.moduleInfo.addNewUrl+=(null===t.linkPropName?"parentId=":t.linkPropName+"=")+d),t.$nextTick((function(){setTimeout((function(){var e=document.querySelector(".inner-table-container").parentElement;null!==e.nextElementSibling&&e.nextElementSibling.className.indexOf("form-slicer")>-1&&document.querySelector(".inner-table-add-botton-container")&&(document.querySelector(".inner-table-add-botton-container").style.marginBottom="1px")}),0)})),t.loadListdata()}else e.$toast(n.message);t.loading=!1}))}},getChildDataParentId:function(){var e=null,t=this.$vnode.context;if(t.vo&&(e=t.vo.id),this.masterFieldFormula){var n=this.masterFieldFormula.split(".");1===n.length?e=t[n[0]]:2===n.length&&(e=t[n[0]][n[1]])}return e},loadListdata:function(){var e=this;return ss(is().mark((function t(){var n,a;return is().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.listdata.length>0)){t.next=4;break}return e.finished=!0,e.showListdata=e.listdata,t.abrupt("return");case 4:if("undefined"!==typeof e.moduleInfo.listDataUrl){t.next=6;break}return t.abrupt("return");case 6:return n=e.pageInfo.orderBy||e.moduleInfo.listDefaultOrderBy,e.pageInfo.listpageId=e.moduleInfo.listpageId,e.pageInfo.listpageViewUrl=e.moduleInfo.listpageViewUrl,e.pageInfo.orderBy=n,e.pageInfo.searchAndOr=e.searchAndOr,e.pageInfo.searchMap=e.searchMap,t.next=14,e.onListDataBeforeLoad(e,e.pageInfo);case 14:return void 0!==e.moduleInfo.listpageViewUrl&&void 0===e.pageInfo.sysCode&&e.$route.meta&&e.$route.meta.sysCode&&(e.pageInfo.sysCode=e.$route.meta.sysCode),t.next=17,e.$app.listdata(e.moduleInfo.listDataUrl,e.pageInfo);case 17:if(a=t.sent,"success"!==a.code){t.next=27;break}return e.pageInfo=a.body.pageInfo,e.pageInfo.orderBy=n,e.pageInfo.passenger=a.body.passenger,t.next=24,e.onListDataLoaded(e,e.pageInfo);case 24:e.showListdata=e.pageInfo.list,t.next=28;break;case 27:e.$toast(a.message);case 28:case"end":return t.stop()}}),t)})))()},onListDataBeforeLoad:function(e,t){var n=this.getChildDataParentId();null!==n&&void 0!==n&&(t.urlsearch=(null===this.linkPropName?"parentId:":this.linkPropName+":")+n),t.pageSize=null===this.pageSize?1e4:this.pageSize,this.curTN&&this.curTN.tnChildDataFilterType>0&&(-1===this.moduleInfo.listDataUrl.indexOf("?")?this.moduleInfo.listDataUrl+="?dataFilterType="+this.curTN.tnChildDataFilterType:this.moduleInfo.listDataUrl+="&dataFilterType="+this.curTN.tnChildDataFilterType,5===this.curTN.tnChildDataFilterType?this.moduleInfo.listDataUrl+="&staffOrgID="+this.curTN.staffOrgID:7===this.curTN.tnChildDataFilterType&&(this.moduleInfo.listDataUrl+="&tnNodeID="+this.curTN.tnNodeID)),this.$vnode.context.onInnerTableListDataBeforeLoad&&this.$vnode.context.onInnerTableListDataBeforeLoad(e,t)},onListDataLoaded:function(e,t){this.$vnode.context.innerListData=t.list,this.$vnode.context.onInnerTableListDataLoaded&&this.$vnode.context.onInnerTableListDataLoaded(e,t)},elementValueFormatter:function(e,t,n,a){if(null==n)return n;var o=n,i=t.propFormatter;if("undefined"!==typeof i&&null!==i&&""!==i||(i=t.elementFormatter),"undefined"!==typeof i&&null!==i||(i=""),"java.util.Date"===t.propType||-1!==i.toUpperCase().indexOf("MM")){var r=i.replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,"");if(0===r.indexOf("format:")&&(r=r.substring(7),null!==n&&""!==n&&-1!==n.indexOf(":"))){var s=new Date(n.replace(/-/g,"/"));isNaN(s.getTime())||(o=ps(new Date(n.replace(/-/g,"/"))).format(r.replace("yyyy","YYYY").replace("dd","DD")))}}else if(0===i.indexOf("valueSuffix:"))null!==n&&""!==n&&""!==n.trim()&&(o=n+i.split(":")[1]);else{t.formatterMap||"checkbox"!==t.listAdvSearchElement&&"radio"!==t.listAdvSearchElement&&"select"!==t.listAdvSearchElement||this.pageInfo.passenger&&"object"===os(this.pageInfo.passenger[t.field+"Options"])&&this.pageInfo.passenger[t.field+"Options"].length>0&&(t.formatterMap=this.pageInfo.passenger[t.field+"Options"],t.formatterMap={},this.pageInfo.passenger[t.field+"Options"].forEach((function(e){t.formatterMap[e.value]=e.text})));var l=t.formatterMap||{};if(!t.formatterMap){for(var d=i.replace(/\r\n/g,"<br>").replace(/\\r\\n/g,"<br>").replace(/\n/g,"<br>").replace(/\\n/g,"<br>").split("<br>"),c=0;c<d.length;c++)if(d[c].split(":").length>1){var u=d[c].split(":")[0];l[u]=d[c].split(":")[1]}t.formatterMap=l}l[n]?o=l[n]:"boolean"===t.propType&&(o=l[n?1:0])}return"Float"===t.propType&&(o=Number(o).toFixed(2)),o},cloumHeaderBtnClick:function(e){"columnHeaderBtn"===e.btnType||"column"===e.btnType?("string"===typeof e.btnClick&&(e.btnClick=this.$vnode.context[e.btnClick.split("(")[0].trim()]),null!==e.btnParams?e.btnClick.apply(this.$vnode.context,e.btnParams):e.btnClick.apply(this.$vnode.context)):this.addObject()},addObject:function(){var e=this;this.innerTableBtnDisabled=!0;var t=this;new Promise((function(n,a){t.$vnode.context.$parent.isnew?t.$bus.emit("submitBusiform",t.$vnode.context.$parent.moduleInfo,(function(t){e.$nextTick((function(){e.innerTableBtnDisabled=!1})),n(t)}),"InnerTableSave"):t.$vnode.context.wfInstance&&-1===t.$vnode.context.wfInstance.status?t.$vnode.context.$vnode.context.btnSubmitClick("AutoSave",(function(t){e.$nextTick((function(){e.innerTableBtnDisabled=!1})),n(t)}),"InnerTableSave"):(e.$nextTick((function(){e.innerTableBtnDisabled=!1})),n(!0))})).then((function(t){t&&(e.showForm=!0,e.$nextTick((function(){e.loadSubForm(),setTimeout((function(){e.$bus.emit("openBusiform",e.moduleInfo,null,e.formCanEdit,e.closeBusiform)}),0)})))}))},editObject:function(e){var t=this;this.showForm=!0,this.$nextTick((function(){t.loadSubForm(),setTimeout((function(){t.$bus.emit("openBusiform",t.moduleInfo,{id:e.id},t.formCanEdit&&t.canEdit,t.closeBusiform)}),0)}))},loadSubForm:function(){var e=this.$vnode.context,t=this.moduleInfo.formTemplate.split("url=")[1];t=t.replace(/\//g,"."),t="#/dcontent/vuebusiform/M/"+t.substring(1).replace(".html",".vue"),t+="?openMode=innerTable",e.$route.meta&&e.$route.meta.sysCode?t+="&sysCode="+e.$route.meta.sysCode:e.vo.sysCode&&null!==e.vo.sysCode&&""!==e.vo.sysCode?t+="&sysCode="+e.vo.sysCode:e.wfInstance&&(t+="&sysCode="+e.wfInstance.sysCode),this.$options.components["BusiForm"]=this.$loadComponent(t)},onBasicFormBeforeOpen:function(e,t,n){var a=this;new Promise((function(n,o){a.$vnode.context.onInnerFormBeforeOpen?(e.innerModuleInfo=a.moduleInfo,a.$vnode.context.onInnerFormBeforeOpen(e,t,{resolve:n,reject:o})):n(!0)})).then((function(o){if(o){console.log(e.moduleInfo.moduleCode+" form before open");var i=null,r=a.$vnode.context;r.vo&&(i=r.vo.id),null!==i&&void 0!==i&&(void 0===a.linkPropName||null===a.linkPropName?t.parentId=i:t[a.linkPropName]=i),a.formVo=t,n.resolve(!0)}else n.resolve(!1)})).catch((function(e){n.reject(e)}))},onBasicFormBeforeSubmit:function(e,t,n){var a=this;new Promise((function(n,o){a.$vnode.context.onInnerBasicFormBeforeSubmit?a.$vnode.context.onInnerBasicFormBeforeSubmit(e,t,{resolve:n,reject:o}):n(!0)})).then((function(e){e?n.resolve(!0):n.resolve(!1)})).catch((function(e){n.reject(e)}))},deleteIds:function(e){var t=this;this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDeleteSelected","您是否确认删除选择的数据?")}).then(ss(is().mark((function n(){var a,o,i;return is().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.id.split(","),n.next=3,t.$app.deleteByIds(t.moduleInfo.delUrl,a);case 3:if(o=n.sent,"success"!==o.code){n.next=17;break}t.$toast.success(o.message),i=0;case 7:if(!(i<t.showListdata.length)){n.next=14;break}if(t.showListdata[i].id!==e.id){n.next=11;break}return t.showListdata.splice(i,1),n.abrupt("break",14);case 11:i++,n.next=7;break;case 14:t.closeBusiform({code:"success"}),n.next=18;break;case 17:t.$dialog.alert({message:o.message});case 18:case"end":return n.stop()}}),n)})))).catch((function(){console.log("cancel delete.")}))},closeBusiform:function(e){var t=document.querySelector(".popup-content");null!==t&&(t=t.querySelectorAll(".van-field--error")),void 0!==t&&null!==t&&t.length>0&&t.forEach((function(e){S(e,"van-field--error")})),e&&"success"===e.code&&(this.showListdata=[],this.loadListdata()),this.formVo=null,this.showForm=!1}}},hs=ms,vs=(a(3268),(0,Ca.A)(hs,ns,as,!1,null,"eedaacfa",null)),gs=vs.exports;gs.install=function(e){e.component(gs.name,gs)};var ys=gs,_s=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"bodyfilebox"}},[t("div",{staticClass:"box"},[t("div",{staticClass:"box-inner"},["ofd"===e.viewBodyFileShow?[t("div",{staticStyle:{width:"17px",right:"3px",padding:"8px",top:"4px","z-index":"1000"},style:{position:"ofd"===e.viewBodyFileShow?"absolute":"fixed",top:"ofd"===e.viewBodyFileShow?"40px":"100px"},attrs:{id:"changeScreenH"},on:{click:function(t){return t.stopPropagation(),e.changeScreenHo.apply(null,arguments)}}},[t("img",{staticStyle:{width:"100%"},attrs:{src:"./images/m-imgs/app-icons/ic_change_ho.png"}})])]:[t("div",{staticStyle:{width:"17px",right:"3px",padding:"8px",top:"4px","z-index":"1000",position:"absolute"},attrs:{id:"changeScreenH"},on:{click:function(t){return t.stopPropagation(),e.changeScreenHo.apply(null,arguments)}}},[t("img",{staticStyle:{width:"100%"},attrs:{src:"./images/m-imgs/app-icons/ic_change_ho.png"}})])],t("span",{directives:[{name:"show",rawName:"v-show",value:e.showViewer,expression:"showViewer"}]},[t("ShowViewer",{attrs:{"body-url":e.bodyFileUrl,"view-body-file-show":e.viewBodyFileShow,type:1}})],1),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.showViewer,expression:"!showViewer"}]},["pdf"===e.viewBodyFileShow?t("iframe",{ref:"iframeBodyFile",attrs:{id:"pdfHtml",width:"100%",height:"100%",frameborder:"0",src:e.bodyFileUrl}}):"ofd"===e.viewBodyFileShow?t("iframe",{ref:"OfdjsView",attrs:{id:"pofdHtml",width:"100%",height:"100%",frameborder:"0",scrolling:"yes",src:e.bodyFileUrl}}):e._e()])],2)]),e.sign||e.seal?t("div",{staticClass:"bottom-bar"},[e.sign&&e.dVisiblesign?t("AddSign",{on:{addSucc:e.signAddSucc,closesign:e.closesign}}):e._e(),e.seal&&e.dVisibleseal?t("ListSeals",{attrs:{"seal-source":e.sealSource,inputpwd:e.inputpwd},on:{addSucc:e.selsAddSucc,closeseal:e.closeseal}}):e._e()],1):e._e()])},bs=[],ws=function(){var e=this,t=e._self._c;return t("div",[e.dVisible?t("PopupDialog",{attrs:{title:e.$tx("ecmapp.pdfTools.selectSignature","选择签名"),showpop:e.dVisible,"on-closed":e.canAddFun},on:{"update:showpop":function(t){e.dVisible=t}}},[null!==e.signList?[t("div",{staticStyle:{height:"calc(100vh - 106px)","overflow-y":"auto"}},[e.signList.length>0?t("van-cell-group",{staticClass:"van_signList_list"},[e._l(e.signList,(function(n,a){return[t("van-cell",{key:a,on:{click:function(t){return e.selSign(n)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"sign_img"},[t("img",{attrs:{src:"data:image/png;base64,"+e.arrayBufferToBase64(n.imgFileData)}})]),t("div",{staticClass:"signList_content"},[t("div",[e._v(e._s(n.imgFileName))])])]},proxy:!0}],null,!0)})]}))],2):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pdfTools.firstAddSgnature",expression:"'ecmapp.pdfTools.firstAddSgnature'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("暂无可用签名,请先添加签名!")])],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pdfTools.addSgnature",expression:"'ecmapp.pdfTools.addSgnature'"}],attrs:{type:"info"},on:{click:e.newsign}},[e._v("添加签名")])],1)]:[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pdfTools.loadingWait",expression:"'ecmapp.pdfTools.loadingWait'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("正在加载,请稍候...")])]],2):e._e(),e.newSigndVisible?t("PopupDialog",{attrs:{showpop:e.newSigndVisible},on:{"update:showpop":function(t){e.newSigndVisible=t}}},[[t("mPdfSign")]],2):e._e()],1)},xs=[],Ms=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main"},[t("canvas",{attrs:{id:"myCanvas",width:"280",height:"600"},on:{touchstart:e.touchstart,touchmove:e.touchmove,touchend:e.touchend}}),t("div",{attrs:{id:"operation"}},[t("van-button",{attrs:{type:"default",disabled:!e.hasContent},on:{click:e.reset}},[e._v("重置签名")]),t("van-button",{attrs:{type:"info",disabled:!e.hasContent},on:{click:e.getPic}},[e._v("生成签名")])],1)])},ks=[],Ls=a(5093),Ss={components:{},props:{},data:function(){return{hasContent:!1,mobileWidth:0,mobileHeight:0,start_x:0,start_y:0,move_x:0,move_y:0,end_x:0,end_y:0,t:0,l:0}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.canvas=document.getElementById("myCanvas"),this.ctx=this.canvas.getContext("2d"),this.mobileWidth=document.documentElement?document.documentElement.clientWidth:document.body.clientWidth,this.mobileHeight=document.documentElement?document.documentElement.clientHeight:document.body.clientHeight;var e=document.documentElement?document.documentElement:document.body;e.style.fontSize=100*this.mobileWidth/750+"px",this.canvas.setAttribute("width",this.mobileWidth-1.7*this.mobileWidth*100/750-2),this.canvas.setAttribute("height",this.mobileHeight-1.2*this.mobileWidth*100/750-2),this.t=this.canvas.offsetTop,this.l=this.canvas.offsetLeft},methods:{touchstart:function(e){this.start_x=e.touches[0].pageX-this.l,this.start_y=e.touches[0].pageY-this.t,this.ctx.beginPath(),this.ctx.moveTo(this.start_x,this.start_y)},touchmove:function(e){e.preventDefault(),this.move_x=e.touches[0].pageX-this.l,this.move_y=e.touches[0].pageY-this.t,this.ctx.lineTo(this.move_x,this.move_y),this.ctx.stroke()},touchend:function(e){this.end_x=e.changedTouches[0].pageX-this.l,this.end_y=e.changedTouches[0].pageY-this.t,this.ctx.closePath(),this.hasContent=!0},reset:function(){this.ctx.clearRect(0,0,this.mobileWidth-1.7*this.mobileWidth*100/750-2,this.mobileHeight-1.2*this.mobileWidth*100/750-2),this.hasContent=!1},getPic:function(){var e=this,t=new Image;t.src=this.canvas.toDataURL("image/png");var n=document.createElement("canvas"),a=n.getContext("2d"),o={sx:0,sy:0,ex:0,ey:0};t.onload=function(){var e=t.width,i=t.height,r=i;n.width=2*r,n.height=2*r,o.sx=r,o.sy=r-e,o.ex=r+i,o.ey=r+e,a.translate(r,r),a.rotate(Math.PI/2*3),a.drawImage(t,0,0);var s=a.getImageData(o.sx,o.sy,o.ex,o.ey);n.width=i,n.height=e,a.putImageData(s,0,0)},setTimeout((function(){var t=n.toDataURL("image/png"),a=e.$route.query.tSessionId,o={id:a,imgFileName:"我的签名"+Ls(new Date).format("YYYYMMDDHHmmss")+".png",imgFileData:t.replace("data:image/png;base64,",""),imgPercentage:1,imgXPos:0,imgYPos:0,signTime:Ls(new Date).format("YYYY-MM-DD HH:mm"),status:1};e.$http({method:"POST",url:"usersetting/signature/insert?tSessionId="+a,data:o}).then((function(t){"success"===t.code?(e.reset(),e.$route.query.tier?e.$router.back(-1):e.$router.push({path:"/mSignSuccess"})):e.$message.error(t.message)}))}))}}},Ts=Ss,Ds=(a(4400),a(4927),(0,Ca.A)(Ts,Ms,ks,!1,null,"e2b48988",null)),Ns=Ds.exports,As={components:{mPdfSign:Ns},props:{},data:function(){return{codeimg:"",tSessionId:"",signList:null,selIndex:0,timer:null,dVisible:!0,newSigndVisible:!1}},computed:{curUser:function(){return this.$store.getters.loginUser}},watch:{dVisible:function(e){e||clearInterval(this.timer)}},created:function(){this.qrCode(),this.searchOldSign()},beforeDestroy:function(){clearInterval(this.timer)},mounted:function(){},methods:{arrayBufferToBase64:function(e){for(var t="",n=new Uint8Array(e),a=n.byteLength,o=0;o<a;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)},qrCode:function(){var e=this,t=window.location.protocol+"//"+window.location.host+"/mindex.html#/mPdfSign";this.$http({method:"GET",url:"usersetting/signature/getSignatureQrCode",params:{signatureH5Url:t}}).then((function(t){"success"===t.code?(e.tSessionId=t.body.tSessionId,e.timer=setInterval((function(){e.searchNewSign()}),2e3)):e.$dialog.alert({message:t.message})}))},searchOldSign:function(){var e=this;this.$http({method:"POST",url:"usersetting/signature/querydata",params:{orderBy:"signTime desc"},data:[{compare:"=",field:"ownerAccount",merge:!0,value:this.curUser.personAccount}]}).then((function(t){"success"===t.code?e.signList=t.body.listdata:e.$dialog.alert({message:t.message})}))},selSign:function(e){this.$emit("addSucc",e),this.$bus.emit("setBtnSingSave"),clearInterval(this.timer)},canAddFun:function(){this.$emit("closesign"),clearInterval(this.timer)},searchNewSign:function(){var e=this;this.$http({method:"GET",url:"usersetting/signature/getById",params:{id:this.tSessionId}}).then((function(t){"success"===t.code&&(e.signList.splice(0,1,t.body.vo),e.qrCode())}))},newsign:function(){this.$route.query["tSessionId"]=this.tSessionId,this.newSigndVisible=!0}}},Ys=As,Cs=(a(6568),(0,Ca.A)(Ys,ws,xs,!1,null,"4baca1b9",null)),Os=Cs.exports,Is=function(){var e=this,t=e._self._c;return t("div",[e.inputpwd?t("van-dialog",{attrs:{title:e.$tx("ecmapp.pdfTools.electronicSeal","电子印章"),"show-cancel-button":"","show-confirm-button":"","close-on-popstate":!1,"before-close":e.listSeals},on:{cancel:e.canAddFun},model:{value:e.showdialog,callback:function(t){e.showdialog=t},expression:"showdialog"}},[t("div",{staticClass:"sealAccount"},[t("validation-provider",{attrs:{name:e.$tx("ecmapp.pdfTools.sealAccount","印章账号"),rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sealAccount",expression:"'sealAccount'"}],attrs:{required:!0,label:"印章账号",placeholder:"请输入印章账号",error:void 0!==a&&void 0!==a[0]||e.iserror,"input-align":"left"},model:{value:e.sealAccount,callback:function(t){e.sealAccount=t},expression:"sealAccount"}})]}}],null,!1,1865200748)})],1),t("div",{staticClass:"sealPassword"},[t("validation-provider",{attrs:{name:e.$tx("ecmapp.pdfTools.sealPassword","印章密码"),rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"sealPassword",expression:"'sealPassword'"}],attrs:{required:!0,label:"印章密码",placeholder:"请输入印章密码",type:"password",error:void 0!==a&&void 0!==a[0]||e.iserror,"input-align":"left"},model:{value:e.sealPassword,callback:function(t){e.sealPassword=t},expression:"sealPassword"}})]}}],null,!1,2431372355)})],1)]):e._e(),e.inputpwd?e._e():t("PopupDialog",{attrs:{title:e.$tx("ecmapp.pdfTools.selectSeal","选择印章"),showpop:e.dVisible,"on-closed":e.canAddFun},on:{"update:showpop":function(t){e.dVisible=t}}},[null!==e.seals?[t("div",{staticStyle:{height:"calc(100vh - 46px)","overflow-y":"auto"}},[e.seals.length>0?t("div",[t("van-radio-group",{model:{value:e.signType,callback:function(t){e.signType=t},expression:"signType"}},[t("van-cell-group",e._l(e.signTypes,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.name,clickable:""},on:{click:function(t){e.signType=n.value}},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-radio",{attrs:{name:n.value}})]},proxy:!0}],null,!0)})})),1)],1),3===e.signType?t("div",{staticStyle:{"margin-top":"10px"}},[t("van-cell",{attrs:{value:e.$tx("ecmapp.pdfTools.stampPageNumber","盖章页码")}}),t("div",{staticClass:"pageList"},e._l(e.filePaegs,(function(n){return t("div",{key:n,staticClass:"page-item",class:e.signPaegs.indexOf(n)>-1?"pageActive":"",on:{click:function(t){return e.setsignPaegs(n)}}},[e._v(e._s(n))])})),0)],1):e._e(),t("van-cell-group",{staticClass:"van_seals_list"},[e._l(e.seals,(function(n,a){return[t("van-cell",{key:a,on:{click:function(t){return e.selSign(n)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"sela_img"},[t("img",{attrs:{src:n.base64img?n.base64img:"data:image/png;base64,"+n.preview}})]),t("div",{staticClass:"seals_content"},[t("div",[e._v(e._s(n.title||n.sealName))]),t("div",[e._v(e._s(n.department||n.sealTypeName))]),n.createDate?t("div",[e._v(e._s(n.createDate.substr(0,10)))]):e._e()])]},proxy:!0}],null,!0)})]}))],2)],1):t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"firstUploadSeal",expression:"'firstUploadSeal'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("暂无印章,请先上传印章!")])])]:[t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"loadingWait",expression:"'loadingWait'"}],staticStyle:{"margin-top":"100px","font-size":"16px"}},[e._v("正在加载,请稍候...")])]],2)],1)},Es=[],$s=new window.JSEncrypt,Ps={components:{},props:{sealSource:{type:String,default:"biceng"},inputpwd:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecmapp",moduleCode:"pdfTools",sealAccount:"",sealPassword:"",seals:null,sealSessionId:"",showdialog:!1,dVisible:!1,signTypes:[{name:this.$tx("ecmapp.pdfTools.singlePage","页码签单页"),value:1},{name:this.$tx("ecmapp.pdfTools.multiplePage","页码签多页"),value:3},{name:this.$tx("ecmapp.pdfTools.pagingSeal","骑缝章"),value:2}],signType:1,filePaegs:1,signPaegs:[]}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.inputpwd&&(this.showdialog=!0)},methods:{setsignPaegs:function(e){this.signPaegs.indexOf(e)>-1?this.signPaegs.splice(this.signPaegs.indexOf(e),1):this.signPaegs.push(e),this.$forceUpdate()},listSeals:function(e,t){var n=this,a=null,o=null;"cancel"!==e?new Promise((function(e,i){n.inputpwd?n.formValidate((function(){n.$http({method:"GET",url:"login/getRsaPublicKey"}).then((function(t){"success"===t.code?($s.setPublicKey(t.body.rsaPublicKey),a=$s.encrypt(n.sealAccount),o=$s.encrypt(n.sealPassword),e(!0)):(n.$dialog.alert({message:t.message}),i(t.message))}))}),(function(){t(!1)})):e(!0)})).then((function(e){n.inputpwd=!1,n.dVisible=!0;var t="";t="eseal"===n.sealSource?"seal/esign/getSealList":"stamp/listSeals",n.$http({method:"GET",params:{sealAccount:a,sealPassword:o},url:t}).then((function(e){"success"===e.code?(n.seals=e.body.listdata,n.sealSessionId=e.body.sealSessionId,n.sealPassword=o,n.filePaegs=Number(n.$vnode.context.iframeBodyFile.document.getElementById("footerNumPages").innerText)):(n.inputpwd=!0,n.$dialog.alert({message:e.message}))}))})):t()},selSign:function(e){e.imgFileData=e.preview,e.sealSessionId=this.sealSessionId,e.sealPassword=this.sealPassword,e.signType=this.signType,e.signPaegs=this.signPaegs,this.$emit("addSucc",e),this.$bus.emit("setBtnSealSave")},canAddFun:function(){this.sealPassword="",this.$emit("closeseal")}}},js=Ps,Fs=(a(7226),(0,Ca.A)(js,Is,Es,!1,null,"1789b27e",null)),Hs=Fs.exports,Bs=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"view-container"},[t("div",{staticClass:"divNoContainer"},[t("div",{ref:"container",staticClass:"docDiv container",attrs:{id:"pdfDiv"}},["ofd"!==e.viewBodyFileShow?t("iframe",{ref:"iframeBodyFile",attrs:{id:"pdfHtml",width:"100%",height:"100%",frameborder:"0",scrolling:"yes",src:e.bodyUrl}}):e._e(),t("div",{staticClass:"tool-dv"},[e.type?t("span",{staticClass:"buttomDivD",on:{click:e.downLoadFile}},[e._v("下载")]):e._e(),t("span",{staticClass:"buttomDiv",attrs:{id:"docChange"},on:{click:e.closeShowFileDialog}},[e._v("关闭")])])])])])])},Us=[],Rs={name:"MShowViewer",components:{},props:{bodyUrl:{type:String,default:""},viewBodyFileShow:{type:String,default:""},type:{type:Boolean,default:!0}},data:function(){return{show:!1,clickAttach:{}}},computed:{},watch:{},created:function(){},beforeDestroy:function(){this.$bus.emit("closeShow")},mounted:function(){var e=this;console.log(this.bodyUrl,this.viewBodyFileShow,this.type),"ofd"===this.viewBodyFileShow&&setTimeout((function(){e.show=!0}),300)},methods:{closeShowFileDialog:function(){this.$vnode.context.showViewer=!1,this.$router.back(),this.$bus.emit("closeView"),this.$bus.emit("closeShow"),this.$wv&&"ecinc"===window.mappType&&this.$mappUtils.changeScreen(2)},downLoadFile:function(){this.clickAttach=this.$vnode.context.bodyfile;var e="/apigw/"+this.$vnode.context.wfAttachUrl+"/downloadById?attachIds="+this.$vnode.context.bodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&saveAs="+this.$vnode.context.bodyfile.fileName;"ecinc"===window.mappType?(this.clickAttach.passenger.downloadUrl=e,this.$wv.downloadAttachment(this.clickAttach)):window.open(e)}}},Ws=Rs,Vs=(a(2432),(0,Ca.A)(Ws,Bs,Us,!1,null,"1526925b",null)),zs=Vs.exports;function Js(e){return Js="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},Js(e)}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){Ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ks(e,t,n){return(t=Qs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qs(e){var t=Zs(e,"string");return"symbol"==Js(t)?t:t+""}function Zs(e,t){if("object"!=Js(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Js(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Xs={name:"PdfTools",components:{AddSign:Os,ListSeals:Hs,ShowViewer:zs},props:{sealSource:{type:String,default:"biceng"},inputpwd:{type:Boolean,default:!0},bodyFileUrl:{type:String,default:""},sign:{type:Boolean,default:!1},seal:{type:Boolean,default:!1},wfAttachUrl:{type:String,default:"wfInstance/wfBusiAttach"},bodyfile:{type:Object,default:function(){return{}}},waterMark:{type:Boolean,default:!1},viewBodyFileShow:{type:String,default:"pdf"},markContent:{type:String,default:""}},data:function(){return{pdfId:"",canAddseal:!0,canAddsign:!0,canSaveseal:!1,canSavesign:!1,dVisiblesign:!1,dVisibleseal:!1,signType:1,signPaegs:[],signObj:{},iframeBodyFile:null,loginUser:this.$store.getters.loginUser,addType:"",downloadBtn:!0,showViewer:!1}},computed:{},watch:{},created:function(){-1!==this.bodyFileUrl.indexOf("?")&&(this.pdfId=decodeURIComponent(this.bodyFileUrl.split("?")[1]).split("&")[1].split("=")[1])},beforeDestroy:function(){window.removeEventListener("message",this.iframeBtnClick,!1)},updated:function(){},mounted:function(){var e=this;-1!==this.bodyFileUrl.indexOf("?")&&"pdf"===this.viewBodyFileShow&&(this.iframeBodyFile=this.$refs.iframeBodyFile.contentWindow,setTimeout((function(){e.iframeBodyFile&&e.iframeBodyFile.loadBodyFileType&&e.iframeBodyFile.loadBodyFileType("app")}),0))},methods:{openSign:function(){this.addType="sign",this.dVisiblesign=!0,this.canAddsign=!1},openSeal:function(){this.addType="seal",this.dVisibleseal=!0,this.canAddseal=!1},getOneMmsPx:function(e,t){var n=document.createElement("div");n.id="mm",n.style.width=e+"mm",n.style.height=t+"mm",document.querySelector("body").appendChild(n);var a=document.getElementById("mm").getBoundingClientRect();return console.log(a),{w:a.width,h:a.height}},changeScreenHo:function(){this.showViewer=!0,this.$router.push({path:this.$route.fullPath,query:Gs(Gs({},this.$route.query),{},{viewer:"1"})})},selsAddSucc:function(e){if(this.signObj=e,this.dVisibleseal=!1,this.canSaveseal=!0,this.canAddseal=!1,this.canAddsign=!1,this.canSavesign=!1,"eseal"===this.sealSource){this.signType=e.signType,this.signPaegs=e.signPaegs;var t=this.getOneMmsPx(e.sealWidth,e.sealHeight);this.iframeBodyFile.addImage(e.base64img,t.w+"px",t.h+"px","seals")}else this.iframeBodyFile.addImage("data:image/"+e.previewType+";base64,"+e.imgFileData,e.width+"px",e.height+"px","seals");this.$bus.emit("setBtnSingSave")},arrayBufferToBase64:function(e){for(var t="",n=new Uint8Array(e),a=n.byteLength,o=0;o<a;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)},signAddSucc:function(e){this.signObj=e,this.dVisiblesign=!1,this.canAddsign=!1,this.canSavesign=!0,this.canSaveseal=!1,this.canAddseal=!1,this.iframeBodyFile.addImage("data:image/pngs;base64,"+this.arrayBufferToBase64(e.imgFileData),"30%","auto","sign")},closeseal:function(){this.canAddseal=!0,this.canSaveseal=!1,this.dVisibleseal=!1},closesign:function(){this.canAddsign=!0,this.canSavesign=!1,this.dVisiblesign=!1},iframeBtnClick:function(e){"lock"===e.data?"sign"===this.addType?this.canSavesign=!0:this.canSaveseal=!0:"unlock"===e.data?"sign"===this.addType?this.canSavesign=!1:this.canSaveseal=!1:"delete"===e.data&&(this.canAddsign=!0,this.canAddseal=!0,this.canSavesign=!1,this.canSaveseal=!1)},pdfSign:function(){var e=this;this.$toast.loading({className:"pdftools-savedialog",duration:0,message:this.$tx("ecmapp.pdfTools.signaturing","正在签名..."),forbidClick:!0,loadingType:"spinner"});var t=this.iframeBodyFile.getImgDis(),n={attachId:this.pdfId,pageNum:t.nowPage,percentage:t.fullSize,xPos:t.imgleft,yPos:t.imgTop};this.$http({method:"POST",url:this.wfAttachUrl+"/pdfSignature",contentType:"application/x-www-form-urlencoded",params:n,data:{image:this.arrayBufferToBase64(this.signObj.imgFileData)}}).then((function(t){"success"===t.code?(e.$toast.clear(),e.$toast({message:t.message,position:"bottom"}),e.canAddsign=!0,e.canSavesign=!1,e.$bus.emit("btnSaveSignedfile","sign")):(e.$toast.clear(),e.$dialog.alert({message:t.message}))}),(function(t){e.$toast.clear(),e.$dialog.alert({message:t})}))},pdfStamp:function(){var e=this;this.$toast.loading({className:"pdftools-savedialog",duration:0,message:this.$tx("ecmapp.pdfTools.stamping","正在盖章..."),forbidClick:!0,loadingType:"spinner"});var t=this.iframeBodyFile.getImgDis(),n={attachId:this.pdfId,pageNum:t.nowPage,xPos:t.imgleft,yPos:t.imgTop,sealId:this.signObj.sealId,sealSessionId:this.signObj.sealSessionId,sealPassword:this.signObj.sealPassword,bodyfileType:this.bodyfile.fileType},a="";if("eseal"===this.sealSource){if(n.signType=2===this.signType?2:1,n.pageNum=3===this.signType&&this.signPaegs.length>0?this.signPaegs.join(","):t.nowPage,2===this.signType){for(var o=Number(this.iframeBodyFile.document.getElementById("footerNumPages").innerText),i=[],r=1;r<=o;r++)i.push(r);n.pageNum=i.join(",")}n.module=this.$vnode.context.wfInstance.module,a="seal/esign/sealToFile"}else a="stamp/sealToFile";this.$http({method:"POST",url:a,contentType:"application/x-www-form-urlencoded",params:n}).then((function(t){e.$bus.emit("closeDoingDialog"),"success"===t.code?(e.$toast.clear(),e.$toast({message:t.message,position:"bottom"}),e.canAddseal=!0,e.canSaveseal=!1,e.$bus.emit("btnSaveSignedfile","stamp",t.body.fileKey)):(e.$toast.clear(),e.$dialog.alert({message:t.message}))}))}}},el=Xs,tl=(a(1351),a(388),(0,Ca.A)(el,_s,bs,!1,null,"a2cfb25a",null)),nl=tl.exports;nl.install=function(e){e.component(nl.name,nl)};var al=nl,ol=function(){var e=this,t=e._self._c;return t("div",{staticClass:"busi-form-container"},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):e._e(),t("div",{staticStyle:{"overflow-y":"auto"},style:{height:e.footerBtns.length>0?"calc(100% - 60px)":"100%"}},[e.loading?e._e():e._t("default",null,{vo:e.vo,canEdit:e.canEdit}),e.wfAttach&&!e.loading&&e.vo.passenger?t("Attachment",{ref:"attachments",attrs:{"cur-t-n":e.curTN,vo:e.vo,"can-edit":e.canEdit,"attach-edit":e.attachEdit,attachments:e.vo.passenger.attachments,"attachs-type":e.wfAttachsType,"batch-save-namefield":e.batchSaveNamefield,"show-attachments":!0,"component-type":"Basicform"}}):e._e()],2),e.footerBtns.length>0?t("FooterButtonGroup",[e._l(e.footerBtns,(function(n,a){return[n.actions?t("van-popover",{key:a+"p",attrs:{placement:"top",trigger:"click",actions:n.actions},on:{select:n.btnClick},model:{value:n.showPopover,callback:function(t){e.$set(n,"showPopover",t)},expression:"btn.showPopover"}},[t("template",{slot:"reference"},[t("van-button",{attrs:{disabled:e.doing,id:n.id,type:n.btnStyleType,text:n.btnName,square:""}})],1)],2):t("van-button",{key:a+"b",attrs:{id:n.id,disabled:e.doing,type:n.btnStyleType,text:n.btnName,square:""},on:{click:n.btnClick}})]}))],2):e._e(),0==e.disabledDialog?t("SelectDialog"):e._e()],1)},il=[];function rl(e){return rl="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},rl(e)}function sl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */sl=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==rl(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(rl(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function ll(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function dl(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){ll(i,a,o,r,s,"next",e)}function s(e){ll(i,a,o,r,s,"throw",e)}r(void 0)}))}}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){fl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fl(e,t,n){return(t=pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(e){var t=ml(e,"string");return"symbol"==rl(t)?t:t+""}function ml(e,t){if("object"!=rl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=rl(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var hl={name:"Basicform",components:{},props:{moduleCode:{type:String,default:null},toolbarBtns:{type:Array,default:function(){return[]}},onBasicFormBeforeOpen:{type:Function,default:function(e,t,n){n.resolve(!0)}},onBasicFormOpened:{type:Function,default:function(e,t){}},onBasicFormBeforeSubmit:{type:Function,default:function(e,t,n){n.resolve(!0)}},onBasicFormSubmitConfirm:{type:Function,default:null},onBasicFormSubmited:{type:Function,default:function(e,t){}},disabledDialog:{type:Number,default:0},wfAttach:{type:Boolean,default:!1},batchSaveNamefield:{type:String,default:""},wfAttachsType:{type:String,default:"ATTACH"},attachEdit:{type:Object,default:null}},data:function(){return{dialogFormVisible:!1,moduleInfo:{},vo:{},callback:null,isnew:!1,canEdit:1,subForm:0,loading:!1,doing:!1,uploadFiles:[],uploadingFile:null,uploading:!1,refsAttachments:[],footerBtns:[]}},computed:ul({},(0,ei.L8)(["loginUser"])),watch:{wfAttach:function(e){e&&this.vo.passenger&&!this.vo.passenger.attachments&&(this.vo.passenger.attachments=[])}},created:function(){this.$bus.on("openBusiform",this.openBusiform),this.$bus.on("addUploadFiles",this.addUploadFiles),this.$bus.on("setVanCellStyle",this.setVanCellStyle),this.$bus.on("submitBusiform",this.submitBusiform)},beforeDestroy:function(){this.$bus.off("openBusiform",this.openBusiform),this.$bus.off("addUploadFiles",this.addUploadFiles),this.$bus.off("setVanCellStyle",this.setVanCellStyle),this.$bus.off("submitBusiform",this.submitBusiform),!0===this.dialogFormVisible&&this.closeDialog()},mounted:function(){var e=this.$vnode.context;e.curTN?this.disabledDialog=1:(e=e.$vnode.context,e.curTN?this.disabledDialog=1:(e=e.$vnode.context,e&&e.curTN&&(this.disabledDialog=1)))},updated:function(){this.setVanCellStyle()},methods:{openBusiform:function(e,t,n,a){var o=this;return dl(sl().mark((function i(){var r,s;return sl().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(null==o.moduleCode||o.moduleCode===e.moduleCode){i.next=2;break}return i.abrupt("return");case 2:if(r=o,!r.loading){i.next=5;break}return i.abrupt("return");case 5:if(r.loading=!0,r.moduleInfo=e,r.canEdit=n,r.callback=a||null,r.refsAttachments=[],s=null,null!==t&&""!==t.id){i.next=18;break}return i.next=14,o.$app.addNew(e.addNewUrl);case 14:s=i.sent,r.isnew=!0,i.next=23;break;case 18:return i.next=20,o.$app.getById(e.getByIdUrl,t.id);case 20:s=i.sent,r.canEdit=n,r.isnew=!1;case 23:null!==s&&"success"===s.code?(r.vo=s.body.vo,new Promise((function(e,t){r.onBasicFormBeforeOpen(r,r.vo,{resolve:e,reject:t})})).then((function(e){e&&(r.dialogFormVisible=!0,r.$nextTick((function(){r.onBasicFormOpened(r,r.vo),r.setFooterBtns(),r.$bus.emit("basicformOpened",this)})),void 0===r.vo.passenger.attachments&&(r.vo.passenger.attachments=[])),r.loading=!1})).catch((function(e){console.log(e),r.loading=!1}))):o.$dialog.alert({message:s.message,type:"error"});case 24:case"end":return i.stop()}}),i)})))()},setVanCellStyle:function(){for(var e=(document.querySelector(".busi-form-container")||document.querySelector(".busi-form-nobtn-container")).querySelectorAll(".van-cell"),t=0;t<e.length;t++)t<e.length-1?k(e[t],"van-cell-field-title")||L(e[t],"van-cell-not-last"):(S(e[t],"van-cell-not-last"),L(e[t].parentElement.parentElement,"van-field-last")),t>0&&k(e[t-1].parentElement.parentElement,"van-field-last")&&S(e[t-1].parentElement.parentElement,"van-field-last");for(var n=(document.querySelector(".busi-form-container")||document.querySelector(".busi-form-nobtn-container")).querySelectorAll(".form-slicer"),a=0;a<n.length;a++)n[a].previousElementSibling&&(S(n[a].previousElementSibling,"van-cell-not-last"),L(n[a].previousElementSibling,"van-field-last")),n[a].nextElementSibling&&k(n[a].nextElementSibling,"form-slicer")&&(n[a].nextElementSibling.style.display="none")},editObject:function(){var e=this,t=this.activeName;this.loading=!0,this.refsAttachments=[],this.$nextTick((function(){e.canEdit=1,e.setFooterBtns(),e.loading=!1,e.activeName=t}))},submitBusiform:function(e,t,n){var a=this;return dl(sl().mark((function o(){var i;return sl().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(null==a.moduleCode||void 0===e.moduleCode||a.moduleCode===e.moduleCode){o.next=2;break}return o.abrupt("return");case 2:if(i=a,!i.doing){o.next=5;break}return o.abrupt("return");case 5:a.formValidate((function(){i.doing=!0,i.actionType=n,new Promise((function(e,t){i.onBasicFormBeforeSubmit(i,i.vo,{resolve:e,reject:t})})).then(function(){var n=dl(sl().mark((function n(o){var r;return sl().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!o){n.next=16;break}if(r=null,!i.isnew){n.next=8;break}return n.next=5,a.$app.insert(i.moduleInfo.insertUrl,i.vo);case 5:r=n.sent,n.next=11;break;case 8:return n.next=10,a.$app.update(i.moduleInfo.updateUrl,i.vo);case 10:r=n.sent;case 11:delete i.vo.passenger.confirmContinue,"success"===r.code?(i.isnew=!1,!r.body.vo||null!==i.vo.id&&""!==i.vo.id&&i.vo.id===r.body.vo.id||(i.vo.id=r.body.vo.id),new Promise(function(){var e=dl(sl().mark((function e(t,n){var o,r,s,l;return sl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=i.$attachments,void 0===o&&i.$vnode.context.$refs["busiform"]&&(o=i.$vnode.context.$refs["busiform"].$attachments),!(i.uploadFiles.length>0)){e.next=6;break}a.startUploadFile(function(){var e=dl(sl().mark((function e(n){var r,s,l;return sl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i.wfInstance={module:i.moduleCode,bodyDocId:""},!(a.refsAttachments.length>0)){e.next=15;break}r=!0,s=0;case 4:if(!(s<i.refsAttachments.length)){e.next=13;break}return e.next=7,i.refsAttachments[s].uploadWflowAttach(i);case 7:l=e.sent,"success"!==l.code&&(r=!1,s=i.refsAttachments.length-1),i.refsAttachments.length===s+1&&(r?t(!0):i.doing=!1);case 10:s++,e.next=4;break;case 13:e.next=16;break;case 15:void 0!==o?o.uploadWflowAttach(i).then((function(e){"success"===e.code&&n?t(!0):i.doing=!1})):n&&t(!0);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=22;break;case 6:if(!(a.refsAttachments.length>0)){e.next=21;break}r=!0,i.wfInstance={module:i.moduleCode,bodyDocId:""},s=0;case 10:if(!(s<i.refsAttachments.length)){e.next=19;break}return e.next=13,i.refsAttachments[s].uploadWflowAttach(i);case 13:l=e.sent,"success"!==l.code&&(r=!1),i.refsAttachments.length===s+1&&(r?t(!0):i.doing=!1);case 16:s++,e.next=10;break;case 19:e.next=22;break;case 21:void 0!==o?(i.wfInstance={module:i.moduleCode,bodyDocId:""},o.uploadWflowAttach(i).then((function(e){"success"===e.code?t(!0):i.doing=!1}))):t(!0);case 22:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()).then((function(e){i.dialogFormVisible=!1,i.isnew=!1,i.vo.isnew=!1,i.onBasicFormSubmited(i,i.vo),t?t(r,i.vo):(i.$toast.success(r.message),null!==a.callback?a.callback(r,i.vo):a.$router.back(-1))})),i.$bus.emit("refreshListData")):"confirm"===r.code?new Promise((function(e,t){null!==i.onBasicFormSubmitConfirm?i.onBasicFormSubmitConfirm(i,i.vo,{resolve:e,reject:t}):a.$dialog.confirm({message:r.message}).then(dl(sl().mark((function t(){return sl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e(!0);case 1:case"end":return t.stop()}}),t)})))).catch((function(e){t(e)}))})).then((function(n){n&&(i.vo.passenger.confirmContinue=!0,i.submitBusiform(e,t))})):i.$toast(r.message),i.doing=!1,n.next=17;break;case 16:i.doing=!1;case 17:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){i.doing=!1}))}),(function(){t&&t(!1)}));case 6:case"end":return o.stop()}}),o)})))()},closeDialog:function(){this.dialogFormVisible=!1,null!==this.callback?this.callback({code:"cancel",message:this.$tx("ecmapp.common.cancelSave","取消保存")}):this.$route.query.id&&this.$router.back(-1)},historyBack:function(){this.$router.back(-1)},setFooterBtns:function(){var e=this;return dl(sl().mark((function t(){var n,a,o,i,r,s,l,d,c;return sl().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e,a={id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:e.historyBack,btnPermission:"",btnStyleType:"default",showPopover:!1,btnI18nCode:"close"},void 0!==e.toolbarBtns&&null!==e.toolbarBtns){t.next=6;break}return e.footerBtns=[],"floatBtn"===window.wxgobakMode&&e.footerBtns.push(a),t.abrupt("return");case 6:o=JSON.parse(JSON.stringify(e.toolbarBtns)),0===e.toolbarBtns.length?("floatBtn"===window.wxgobakMode&&o.push(a),1===e.canEdit?o.push({id:"btn_save",btnName:"保 存",btnIcon:"check",btnClick:e.submitBusiform,btnPermission:"saveObject",btnStyleType:"info",showPopover:!1,btnI18nCode:"save"}):o.push({id:"btn_edit",btnName:"修 改",btnIcon:"edit",btnClick:e.editObject,btnPermission:"editObject",btnStyleType:"info",showPopover:!1,btnI18nCode:"modify"})):(o.forEach((function(t,n){if("string"===typeof e.toolbarBtns[n].btnClick){var a=t.btnClick.split("(")[0];t.btnClick=e[a],t.btnClickFunc=a}else t.btnClick=e.toolbarBtns[n].btnClick;t.showPopover=t.showPopove||!1})),"floatBtn"===window.wxgobakMode&&o.splice(0,0,a)),i=0;case 9:if(!(i<o.length)){t.next=21;break}return r=o[i],r.btnI18nCode=r.btnI18nCode||(r.btnPermission||r.btnIcon).replace("Ids","").replace("Object",""),r.btnName=e.$i18n.generateTitle(r,e),s="FOOTER_BTN$"+o[i].btnPermission,t.next=16,Hn.A.dispatch("user/hasPermission",{route:e.$route,pcode:s});case 16:l=t.sent,l||o.splice(i--,1);case 18:i++,t.next=9;break;case 21:n.footerBtns=o,d=0,c=setInterval((function(){d<50?n.$vnode.context.$refs["busiform"]&&(n.$vnode.context.$refs["busiform"].setFormBtns&&n.$vnode.context.$refs["busiform"].setFormBtns(n,o),clearInterval(c)):clearInterval(c)}),10);case 24:case"end":return t.stop()}}),t)})))()},addUploadFiles:function(e,t){for(var n=0;n<this.uploadFiles.length;n++)e.propName===this.uploadFiles[n].propName&&e.pid===this.uploadFiles[n].pid&&this.uploadFiles.splice(n--,1);e.fileList=t,this.uploadFiles.push(e)},startUploadFile:function(e){var t=this;return dl(sl().mark((function n(){var a,o,i,r,s,l,d,c,u,f,p;return sl().wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=t,a.uploading=!0,o=a.moduleInfo.updateUrl.substring(0,a.moduleInfo.updateUrl.lastIndexOf("/"))+"/upload",-1!==a.moduleInfo.updateUrl.indexOf("?")&&(o+="?"+a.moduleInfo.updateUrl.split("?")[1]),i=0;case 5:if(!(i<a.uploadFiles.length)){n.next=36;break}r=a.uploadFiles[i],s=0;case 8:if(!(s<r.fileList.length)){n.next=28;break}return l=r.fileList[s],a.uploadingFile=l,d=r.nameField,c=r.propName,s>0&&(d=r.nameField+(s+1),c=r.dataField+(s+1)),u={onUploadProgress:function(e){var t=e.loaded/e.total*100|0;a.uploadingFile.progress=t,a.$forceUpdate()}},f=o,void 0!==r.downloadUrl&&null!==r.downloadUrl&&""!==r.downloadUrl&&(f=r.downloadUrl.replace("/downloadById","/upload").replace("/download","/upload").replace("/apigw",""),f=f.replace("nameField=","dNameField=").replace("dataField=","dDataField=").replace("id=","did=")),n.next=19,t.$app.upload(f,l.raw,{id:r.pid||t.vo.id,nameField:d,dataField:c},u);case 19:if(p=n.sent,"success"!==p.code){n.next=24;break}r.fileList.splice(s--,1),n.next=25;break;case 24:return n.abrupt("break",28);case 25:s++,n.next=8;break;case 28:if(!(r.fileList.length>0)){n.next=32;break}return n.abrupt("break",36);case 32:a.uploadFiles.splice(i--,1);case 33:i++,n.next=5;break;case 36:0===a.uploadFiles.length&&setTimeout((function(){a.uploading=!1,e(!0)}),100);case 37:case"end":return n.stop()}}),n)})))()}}},vl=hl,gl=(a(7130),(0,Ca.A)(vl,ol,il,!1,null,"490ac5ca",null)),yl=gl.exports,_l=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{staticClass:"van-datetime-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{required:e.required,label:e.label,"is-link":!e.nodeFieldReadOnly,placeholder:e.nodeFieldReadOnly?"":e.placeholder,error:void 0!==a&&a.length>0,"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",readonly:e.nodeFieldReadOnly||1===e.elementReadonly},on:{click:e.selectDateTime},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}})]}}],null,!1,397611413)})],1):e._e()},bl=[],wl={name:"DatetimeField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},minDate:{type:String,default:null},placeholder:{type:String,default:"请选择"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},elementReadonly:{type:Number,default:1},type:{type:String,default:"datetime"},format:{type:String,default:""},stepNum:{type:Number,default:""}},data:function(){return{dateValue:null,fieldDom:{},isShowField:!0,nodeFieldReadOnly:!1}},computed:{},watch:{vo:{handler:function(e,t){this.setDateValue()},deep:!0}},created:function(){""!==this.format?this.format=this.format.replace("yyyy","YYYY").replace("dd","DD").replace(/\r\n/g,"").replace(/\r/g,"").replace(/\n/g,""):this.format="YYYY-MM-DD HH:mm:ss";var e=this.format.replace("年","").replace("月","").replace("日","").replace("时","").replace("分","").replace("秒","").replace(/-/g,"");if(e.split(" ").length>1?this.type="datetime":"YYYYMMDD"===e?this.type="date":"YYYYMM"===e?this.type="year-month":"MMDD"===e?this.type="month-day":e.indexOf("HH")>-1&&(this.type="time"),(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var t=this.$vnode.context.curTN.nodeFormFields,n=0;n<t.length;n++)if(t[n].propCode===this.model){this.readonly=1!==t[n].isEditable,this.required=1===t[n].isRequired;break}this.nodeFieldReadOnly=this.readonly,this.setDateValue(),this.nodeFieldReadOnly?(this.placeholder="",null!==this.dateValue&&""!==this.dateValue||(this.required=!1)):null===this.placeholder||""===this.placeholder?this.placeholder="请选择"+this.label:this.placeholder=this.placeholder.replace("请输入","请选择")},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify()},methods:{initVerify:function(){"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0},setDateValue:function(){var e=this.vo[this.model];"string"===typeof e&&(e=w(e,this.format)),this.dateValue=e},selectDateTime:function(){var e=this;if(!this.nodeFieldReadOnly){var t=this.vo[this.model];this.$bus.emit("openDatetimePicker",t,(function(t){e.$set(e.vo,e.model,t),e.setDateValue()}),this.type,this.minDate,this.stepNum)}}}},xl=wl,Ml=(a(4476),(0,Ca.A)(xl,_l,bl,!1,null,"9c6da034",null)),kl=Ml.exports,Ll=function(){var e=this,t=e._self._c;return e.forceUpdate?e._e():t("div",{staticClass:"van-file-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.nameField,expression:"nameField"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.nodeFieldReadOnly}],attrs:{required:e.required,label:e.label,"is-link":!e.readonly,placeholder:e.placeholder,error:void 0!==a&&a.length>0,"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",readonly:e.nodeFieldReadOnly},model:{value:e.vo[e.nameField],callback:function(t){e.$set(e.vo,e.nameField,t)},expression:"vo[nameField]"}},[e.formfile.fileName?t("template",{slot:"input"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.formfile.fileName,expression:"formfile.fileName"}],staticClass:"van-field__control van-field__control--right",attrs:{type:"text",readonly:"readonly",placeholder:e.placeholder},domProps:{value:e.formfile.fileName},on:{click:e.handleClick,input:function(t){t.target.composing||e.$set(e.formfile,"fileName",t.target.value)}}}),1===e.canEdit?t("div",{staticClass:"attach-delete-icon"},[t("van-icon",{attrs:{color:"#ee0a24",name:"cross"},on:{click:function(t){return t.stopPropagation(),e.removeFormfile()}}})],1):e._e()]):t("template",{slot:"input"},[1===e.canEdit?t("van-uploader",{attrs:{accept:e.field.textFormatter,"preview-image":!1,"after-read":e.selectfiled}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.vo[e.nameField],expression:"vo[nameField]"}],staticClass:"van-field__control van-field__control--right",attrs:{type:"text",readonly:"readonly",placeholder:e.placeholder},domProps:{value:e.vo[e.nameField]},on:{input:function(t){t.target.composing||e.$set(e.vo,e.nameField,t.target.value)}}})]):t("input",{directives:[{name:"model",rawName:"v-model",value:e.vo[e.nameField],expression:"vo[nameField]"}],staticClass:"van-field__control van-field__control--right",style:{color:0===e.canEdit?"#1989fa":""},attrs:{type:"text",readonly:"readonly",placeholder:e.placeholder},domProps:{value:e.vo[e.nameField]},on:{click:e.handleClick,input:function(t){t.target.composing||e.$set(e.vo,e.nameField,t.target.value)}}})],1)],2)]}}],null,!1,2900865153)})],1)},Sl=[];function Tl(e){return Tl="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},Tl(e)}function Dl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Dl=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Tl(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Tl(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function Nl(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Al(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){Nl(i,a,o,r,s,"next",e)}function s(e){Nl(i,a,o,r,s,"throw",e)}r(void 0)}))}}var Yl={name:"FileField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},onClick:{type:Function,default:null},field:{type:Object,default:null},nameField:{type:String,default:null},onFileItemClick:{type:Function,default:null}},data:function(){return{attachments:[],canEdit:1,formfile:{},forceUpdate:!1,nodeFieldReadOnly:!1}},computed:{},watch:{},created:function(){var e=this;if(this.api="/apigw",this.port=location.port,this.canEdit=this.$vnode.context.canEdit,(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var t=this.$vnode.context.curTN.nodeFormFields,n=0;n<t.length;n++)if(t[n].propCode===this.model){this.readonly=1!==t[n].isEditable,this.required=1===t[n].isRequired,this.canEdit=1===t[n].isEditable;break}this.placeholder||(this.placeholder="请选择"),0===this.field.propName.indexOf("formfile")&&this.$vnode.context.$vnode.context.attachments.forEach((function(t){t.fileType.toLowerCase()===e.field.attachmentType.toLowerCase()&&(e.formfile=t,e.readonly=!0)})),this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){},mounted:function(){this.nodeFieldReadOnly?this.placeholder="":null!==this.onClick?this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")):null!==this.field&&(this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")),this.onClick=this.openSelectDialog),this.field.onlineFile||(this.field.onlineFile=".doc,.docx,.xls,.xlsx,.ppt,.pptx")},methods:{selectfiled:function(e){if(this.field.textFormatter&&"*.*"!==this.field.textFormatter&&-1===this.field.textFormatter.indexOf("/")){var t="";if(-1!==e.file.name.indexOf(".")&&(t=e.file.name.substring(e.file.name.lastIndexOf("."))),""===t||-1===(this.field.textFormatter+",").indexOf(t+","))return void this.$toast.fail(this.$tx("ecmapp.common.unsupported","不支持的文件格式!"))}if(e.file.raw=e.file,this.field.pid=this.vo.id,0===this.field.propName.indexOf("formfile")){var n={};n.fileName=e.file.name,n.fileSize=T(e.file.size),n.fileType=this.field.attachmentType,n.uploadBy=this.$vnode.context.loginUser.personName,n.uploadTime="待上传",n.file=e,n.checked=!1,n.uploadType="formfile",e.progress=0,this.$set(this.formfile,"fileName",n.fileName),this.$set(this.vo,this.nameField,n.fileName),this.readonly=!0,this.nodeFieldReadOnly=this.readonly,this.$vnode.context.$vnode.context.attachments.push(n)}else this.attachments=[e.file],this.$set(this.vo,this.nameField,e.file.name),this.$bus.emit("addUploadFiles",this.field,this.attachments)},handleClick:function(e){if(this.onFileItemClick)this.onFileItemClick(this.field);else if(this.nodeFieldReadOnly||(null!==this.onClick?this.onClick(e,this.field):this.$emit("onClick",e,this.field)),this.formfile.fileName){if(!this.formfile.id)return;var t="/apigw/"+this.$vnode.context.$vnode.context.wfAttachUrl+"/downloadById?attachIds="+this.formfile.id;t+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken();var n=this.formfile.fileName.substring(this.formfile.fileName.lastIndexOf(".")).toLowerCase();""!==n&&".pdf"!==n&&".pdfx"!==n&&-1!==(this.field.onlineFile+",").indexOf(n+",")&&(t+="&topdf=true&inline=true"),this.$mappUtils.downLoadAndOpenFile(this,t,this.formfile.fileName,null)}else if(0===this.canEdit){if(!this.vo[this.nameField])return;var a="/apigw/"+this.field.downloadUrl+"?nameField="+this.nameField+"&dataField="+this.model+"&id="+this.vo.id;a+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),this.$mappUtils.downLoadAndOpenFile(this,a,this.vo[this.nameField],null)}},removeFormfile:function(e){var t=this;if(this.formfile.fileName&&!this.formfile.id){for(var n=0;n<this.$vnode.context.$vnode.context.attachments.length;n++)this.$vnode.context.$vnode.context.attachments[n].fileType===this.field.attachmentType&&this.$vnode.context.$vnode.context.attachments.splice(n--,1);this.formfile={},1===this.canEdit?this.readonly=!1:this.readonly=!0,this.nodeFieldReadOnly=this.readonly,this.$forceUpdate()}else this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDelete",{label:this.label},"您是否确认删除".concat(this.label,"?"))}).then(Al(Dl().mark((function e(){var n;return Dl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.$vnode.context.$vnode.context.wfAttachUrl+"/delete",t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{attachIds:t.formfile.id},url:n}).then((function(e){if("success"===e.code){for(var n=0;n<t.$vnode.context.$vnode.context.attachments.length;n++)t.$vnode.context.$vnode.context.attachments[n].id===t.formfile.id&&t.$vnode.context.$vnode.context.attachments.splice(n--,1);t.formfile={},1===t.canEdit?t.readonly=!1:t.readonly=!0,t.nodeFieldReadOnly=t.readonly,t.$forceUpdate()}else t.$dialog.alert({message:e.message})}));case 2:case"end":return e.stop()}}),e)})))).catch((function(){console.log("cancel delete.")}))}}},Cl=Yl,Ol=(a(6689),(0,Ca.A)(Cl,Ll,Sl,!1,null,"6bd6eea1",null)),Il=Ol.exports,El=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{class:"van-input-field"+(""!=e.valueSuffix?" van-field__body_suffix":"")},[e.updateField?t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required,phone:e.phone,email:e.email,integer:e.isInteger,number:e.number,min:""!==e.valueMinLength&&e.valueMinLength,identity:e.isIdentity}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[""!=e.maxLength?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{required:e.required,label:e.label,"is-link":null!==e.onClick&&!e.nodeFieldReadOnly,placeholder:e.nodeFieldReadOnly?"":e.placeholder,error:void 0!==a&&a.length>0||e.iserror,"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",maxlength:e.maxLength,readonly:e.nodeFieldReadOnly||1===e.elementReadonly,type:"password"==e.textFormatter?"password":"text"},on:{focus:e.inputFocus,blur:e.inputBlur,click:e.handleClick},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):e._e()]}}],null,!1,333806362)}):e._e()],1):e._e()},$l=[];var Pl=/(\d{3})(?=\d)/g;function jl(e,t,n){if(e=parseFloat(e),!isFinite(e)||!e&&0!==e)return"";t=null!=t?t:"¥",n=null!=n?n:2;var a=Math.abs(e).toFixed(n),o=n?a.slice(0,-1-n):a,i=o.length%3,r=i>0?o.slice(0,i)+(o.length>3?",":""):"",s=n?a.slice(-1-n):"",l=e<0?"-":"";return l+t+r+o.slice(i).replace(Pl,"$1,")+s}function Fl(e){return Fl="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},Fl(e)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){Ul(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ul(e,t,n){return(t=Rl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rl(e){var t=Wl(e,"string");return"symbol"==Fl(t)?t:t+""}function Wl(e,t){if("object"!=Fl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Fl(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Vl={name:"InputField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},defaultValue:{type:String,default:null},textFormatter:{type:String,default:""},valueSuffix:{type:String,default:""},valueMaxLength:{type:String,default:""},valueMinLength:{type:String,default:""},placeholder:{type:String,default:"请输入"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},onClick:{type:Function,default:null},field:{type:Object,default:null},elementReadonly:{type:Number,default:0}},data:function(){return{phone:!1,email:!1,number:!1,isInteger:!1,isInputFocus:!1,fieldDom:{},isShowField:!0,maxLength:null,errors:[],updateField:!0,isIdentity:!1,inputValue:"",nodeFieldReadOnly:!1}},computed:Bl({},(0,ei.L8)(["loginUser"])),watch:{maxLength:function(){""===this.maxLength&&(this.maxLength="-")},readonly:function(){this.readonly?(this.placeholder="",null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1)):null!==this.onClick?this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")):null!==this.field&&(this.placeholder&&(this.placeholder=this.placeholder.replace("请输入","请选择")),this.onClick=this.openSelectDialog,this.readonly=!1)},vo:{handler:function(e){this.formatDataValue()},deep:!0}},created:function(){if(this.maxLength=this.valueMaxLength,(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var e=this.$vnode.context.curTN.nodeFormFields,t=0;t<e.length;t++)if(e[t].propCode===this.model){this.readonly=1!==e[t].isEditable,this.required=1===e[t].isRequired;break}this.placeholder||(this.placeholder="请输入"),this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify(),this.formatDataValue()},methods:{initVerify:function(){this.fieldDom.style&&"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0,"phone"===this.textFormatter?this.phone=!0:"email"===this.textFormatter?this.email=!0:"number"===this.textFormatter?this.number=!0:"integer"===this.textFormatter?this.isInteger=!0:"card"===this.textFormatter&&(this.isIdentity=!0),"currency1"!==this.textFormatter&&"currency2"!==this.textFormatter||(this.number=!0),this.readonly?(this.placeholder="",null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1)):null!==this.field&&(this.onClick=this.openSelectDialog,this.readonly=!1)},formatDataValue:function(){var e=this;this.inputValue=this.vo[this.model],"integer"===this.textFormatter&&(""===this.vo[this.model]?this.inputValue=null:void 0!==this.defaultValue&&""!==this.defaultValue&&""!==this.defaultValue&&(this.inputValue=parseInt(this.defaultValue),this.vo[this.model]=parseInt(this.defaultValue))),"currency1"===this.textFormatter?(null!==this.vo[this.model]&&""!==this.vo[this.model]?this.inputValue=jl(this.vo[this.model],""):this.inputValue="0.00",(this.readonly||1===this.elementReadonly)&&(this.number=!1)):"currency2"===this.textFormatter&&(null!==this.vo[this.model]&&""!==this.vo[this.model]?this.readonly?this.inputValue=isNaN(Number(this.vo[this.model]))?this.vo[this.model]:"¥"+Number(this.vo[this.model]).toFixed(2):this.inputValue=isNaN(Number(this.vo[this.model]))?this.vo[this.model]:Number(this.vo[this.model]).toFixed(2):this.inputValue="0.00",(this.readonly||1===this.elementReadonly)&&(this.number=!1)),setTimeout((function(){var t=e.$el.querySelector(".van-field__body_suffix .van-field__body");null!==t&&""!==e.valueSuffix&&null!=e.inputValue&&""!=e.inputValue&&t.setAttribute("value-suffix",e.valueSuffix)}),0)},inputFocus:function(e){this.nodeFieldReadOnly||1===this.elementReadonly?(this.isInputFocus=!1,this.handleClick(e)):this.isInputFocus=!0},inputBlur:function(){var e=this;this.isInputFocus=!1,this.$set(this.vo,this.model,""===this.inputValue?null:this.inputValue),this.formatDataValue(),this.updateField=!1,this.$nextTick((function(){e.updateField=!0,e.initVerify()}))},handleClick:function(e){this.isInputFocus||this.nodeFieldReadOnly||(null!==this.onClick?this.onClick(e,this.field):this.$emit("onClick",e,this.field))},openSelectDialog:function(){var e=this,t=this,n=this.field.dialogTitle?this.field.dialogTitle:this.label;if("listitem"===this.field.dialogType)this.$http({method:this.field.optionGenerateMethod,params:{id:this.vo.id,sysCode:this.vo.sysCode||this.loginUser.sysCode},url:this.field.optionGenerateUrl}).then((function(a){"success"===a.code?e.$bus.emit("openListitemDialog",n,a.body.listdata,(function(n){if("success"===n.code){var o="onSelectListitemCompleted";if(void 0!==t.$vnode.context[o])t.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context.$vnode.context[o](a.value,{name:e.model});else{var i="";n.value.forEach((function(e){""!==i&&(i+=","),i+=e.title||e.text||e.name||e.label})),t.$set(e.vo,t.model,i)}}}),t.vo[t.model],t.field.dialogMultiple):e.$dialog.alert({message:a.message,type:"warning"})}));else if("listpage"!==this.field.dialogType){var a={selectDialog:this.field.dialogType,multiple:this.field.dialogMultiple,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded};this.field.dialogOrgLevel&&(a["org-level"]=this.field.dialogOrgLevel),this.field.dialogOrgId&&(a["org-id"]=this.field.dialogOrgId),this.field.dialogSubOrgName&&(a["sub-org-name"]=this.field.dialogSubOrgName),this.field.dialogOrgSelf&&(a["org-self"]=this.field.dialogOrgSelf),this.field.dialogOnlyCurSys&&(a["only-cur-sys"]=this.field.dialogOnlyCurSys),this.field.dialogNLevelFilter&&(a["node-level"]=this.field.dialogNLevelFilter),this.field.dialogRootOrgCode&&(a["root-org-code"]=this.field.dialogRootOrgCode),this.field.optionGenerateUrl&&(a["option-generate-url"]=this.field.optionGenerateUrl),this.field.optionGenerateMethod&&(a["option-generate-gethod"]=this.field.optionGenerateMethod);var o=this.vo[this.model];this.field.valueIdsField&&0===this.field.valueIdsField.indexOf("vo.")?o=this.vo[this.field.valueIdsField.substring(this.field.valueIdsField.indexOf(".")+1)]:this.field.valueIdsField&&this.vo[this.field.valueIdsField]&&(o=this.vo[this.field.valueIdsField]),this.$bus.emit("openTreeDialog",n,a,null,(function(n){if("success"===n.code){var a="onSelect"+e.field.dialogType.replace(e.field.dialogType[0],e.field.dialogType[0].toUpperCase())+"Completed";if("area"===e.field.dialogType[0]&&(a="onSelectTreeNodeCompleted"),void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),o)}else{var i={listviewurl:this.field.dialogListviewurl,navTabIndex:this.field.navTabIndex,context:this};this.$bus.emit("openListpageDialog",n,i,(function(n){if("success"===n.code){var a="onSelectListpageRowCompleted";if(void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),this.vo[this.model],this.field.dialogMultiple)}},onSelectTreeDataLoaded:function(e,t){return t.multiple=this.field.dialogMultiple,t.name=this.model,t.dialogTitle=this.field.dialogTitle||this.label,this.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):e}}},zl=Vl,Jl=(a(2656),(0,Ca.A)(zl,El,$l,!1,null,"03561330",null)),ql=Jl.exports,Gl=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{staticClass:"van-select-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{required:e.required,label:e.label,"is-link":!e.nodeFieldReadOnly,placeholder:e.nodeFieldReadOnly?"":e.placeholder,error:void 0!==a&&void 0!==a[0],"error-content":void 0!==a&&a.length>0?a[0]:"","input-align":"right",readonly:e.nodeFieldReadOnly||1===e.elementReadonly},on:{click:e.selectItem},model:{value:e.textValue,callback:function(t){e.textValue=t},expression:"textValue"}})]}}],null,!1,957041049)})],1):e._e()},Kl=[];function Ql(e){return Ql="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},Ql(e)}function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ed(e,t,n){return(t=td(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e){var t=nd(e,"string");return"symbol"==Ql(t)?t:t+""}function nd(e,t){if("object"!=Ql(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Ql(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ad={name:"SelectField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},defaultValue:{type:String,default:null},placeholder:{type:String,default:"请选择"},required:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},elementReadonly:{type:Number,default:1},elementFormatter:{type:String,default:""},propType:{type:String,default:"String"},options:{type:String,default:null},optionGenerateType:{type:Number,default:0},optionGenerateUrl:{type:String,default:null},optionGenerateMethod:{type:String,default:null},onClickEvent:{type:String,default:null}},data:function(){return{textValue:"",itemList:[],fieldDom:{},isShowField:!0,nodeFieldReadOnly:!1}},computed:Xl({},(0,ei.L8)(["loginUser"])),watch:{vo:{handler:function(e){this.setTextValue(),e.passenger&&e.passenger[this.model+"Options"]&&this.initVerify()},deep:!0}},created:function(){var e=this;if((1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var t=this.$vnode.context.curTN.nodeFormFields,n=0;n<t.length;n++)if(t[n].propCode===this.model){this.readonly=1!==t[n].isEditable,this.required=1===t[n].isRequired;break}this.nodeFieldReadOnly=this.readonly,2===this.optionGenerateType&&this.$http({method:this.optionGenerateMethod,params:{id:this.vo.id,sysCode:this.vo.sysCode||this.loginUser.sysCode},url:this.optionGenerateUrl}).then((function(t){if("success"===t.code){var n=null,a="onOptionsGenerateCompleted";void 0!==e.$vnode.context[a]?n=e.$vnode.context[a](t.body.listdata,{name:e.model}):void 0!==e.$vnode.context.$vnode.context[a]&&e.$vnode.context.$vnode.context[a](t.body.listdata,{name:e.model}),e.vo.passenger[e.model+"Options"]=n||t.body.listdata,e.optionGenerateType=1,e.initVerify()}else e.$dialog.alert({message:t.message,type:"warning"})}))},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify()},methods:{initVerify:function(){var e=this;"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0;var t=[];if(this.vo.passenger&&void 0!==this.vo.passenger[this.model+"Options"]&&"object"===Ql(this.vo.passenger[this.model+"Options"])&&this.vo.passenger[this.model+"Options"].length>0)t=this.vo.passenger[this.model+"Options"];else if(void 0!==this.options&&null!==this.options){var n=JSON.parse(this.options);n.forEach((function(n){"Short"!==e.propType&&"Integer"!==e.propType&&"Lang"!==e.propType||(n.value=parseInt(n.value)),t.push(n)}))}else for(var a=this.elementFormatter.replace(/\\r\\n/g,"<br>").replace(/\r\n/g,"<br>").replace(/\n/g,"<br>").split("<br>"),o=0;o<a.length;o++)if(a[o].split(":").length>1){var i=a[o].split(":")[0];"Short"!==this.propType&&"Integer"!==this.propType&&"Lang"!==this.propType||(i=parseInt(i)),t.push({text:a[o].split(":")[1],value:i})}this.itemList=t,"zhCN"!==this.$i18n.locale&&this.itemList.forEach((function(t){t.text=e.$i18n.generateTitle({field:e.model,type:"option",value:t.value},e)})),this.setTextValue()},selectItem:function(){var e=this;if(!this.nodeFieldReadOnly){var t=this;this.$bus.emit("openListitemDialog",this.label,this.itemList,(function(n){if("success"===n.code){if(!0===t.multiple){var a="";n.value.forEach((function(e){""!==a&&(a+=","),a+=e.value})),t.$set(t.vo,t.model,a)}else"Short"===e.propType||"Integer"===e.propType||"Lang"===e.propType?t.$set(t.vo,t.model,parseInt(n.value.value)):t.$set(t.vo,t.model,n.value.value);if(e.setTextValue(),e.onClickEvent&&-1!==e.onClickEvent.indexOf("@change")&&-1!==e.onClickEvent.indexOf("=")){var o=e.onClickEvent.trim().split("=")[1];'"'===o.substring(0,1)&&'"'===o.substring(o.length-1)&&(o=o.substring(1,o.length-1)),"'"===o.substring(0,1)&&"'"===o.substring(o.length-1)&&(o=o.substring(1,o.length-1)),void 0!==e.$vnode.context[o]?e.$vnode.context[o](e.textValue):e.$vnode.context.wfInstance&&void 0!==e.$vnode.context.$vnode.context[o]&&e.$vnode.context.$vnode.context[o](e.textValue)}}}),this.vo[this.model],this.multiple)}},setTextValue:function(){if(null===this.vo[this.model]&&void 0!==this.defaultValue&&""!==this.defaultValue&&""!==this.defaultValue&&(this.vo[this.model]=this.defaultValue),void 0!==this.vo[this.model]&&null!==this.vo[this.model]){var e="",t=[];t="string"===typeof this.vo[this.model]?this.vo[this.model].split(","):[this.vo[this.model]],this.itemList.forEach((function(n){t.forEach((function(t){n.value!==t&&n.value!==t+""&&n.value+""!==t||(""!==e&&(e+="、"),e+=n.text)}))})),this.textValue=e,""===e&&(this.textValue=this.vo[this.model])}this.nodeFieldReadOnly?(this.placeholder="",null!==this.textValue&&""!==this.textValue||(this.required=!1)):null===this.placeholder||""===this.placeholder?this.placeholder="请选择"+this.label:this.placeholder=this.placeholder.replace("请输入","请选择")}}},od=ad,id=(a(3561),(0,Ca.A)(od,Gl,Kl,!1,null,"565de7b0",null)),rd=id.exports,sd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"van-switch-field"},[t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required}},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],attrs:{label:e.label,required:e.required}},[t("div",{staticClass:"van-cell__value",attrs:{slot:"input"},slot:"input"},[t("van-switch",{class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{"active-value":e.activeValue,"inactive-value":e.inactiveValue,disabled:e.nodeFieldReadOnly,size:"18px"},on:{change:e.handleSwitchChange},model:{value:e.vo[e.model],callback:function(t){e.$set(e.vo,e.model,t)},expression:"vo[model]"}})],1)])]}}])})],1)},ld=[],dd={name:"SwitchField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},defaultValue:{type:String,default:null},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},activeValue:{type:Number,default:function(){return 1}},inactiveValue:{type:Number,default:function(){return 0}}},data:function(){return{nodeFieldReadOnly:!1}},computed:{},watch:{},created:function(){if((1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var e=this.$vnode.context.curTN.nodeFormFields,t=0;t<e.length;t++)if(e[t].propCode===this.model){this.readonly=1!==e[t].isEditable,this.required=1===e[t].isRequired;break}this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){},mounted:function(){null===this.vo[this.model]&&null!==this.defaultValue&&(this.defaultValue=parseInt(this.defaultValue),isNaN(this.defaultValue)||this.$set(this.vo,this.model,this.defaultValue)),this.nodeFieldReadOnly&&(null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1))},methods:{handleSwitchChange:function(){var e=this;this.$nextTick((function(){e.$bus.emit("setVanCellStyle")}))}}},cd=dd,ud=(a(6108),(0,Ca.A)(cd,sd,ld,!1,null,"316c7b70",null)),fd=ud.exports,pd=function(){var e=this,t=e._self._c;return e.isShowField?t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:e.model,expression:"model"}],staticClass:"van-textarea-field"},[t("validation-provider",[t("van-field",{staticClass:"van-cell-field-title",class:"field-"+e.model,attrs:{required:e.required,label:e.label,readonly:!0,"is-link":null!==e.onClick&&!e.nodeFieldReadOnly},on:{click:e.handleClick}})],1),t("validation-provider",{attrs:{mode:"eager",name:e.label,rules:{required:e.required,min:""!==e.valueMinLength&&e.valueMinLength}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[e.readonly||e.elementReadonly||""===e.maxLength?t("div",{staticClass:"van-cell van-field",class:"field-"+e.model},[t("div",{ref:"textFieldContent",staticClass:"richtext-content",class:{"richtext-content-hidden":"down"===e.showType},style:{"min-height":20*e.rows+"px","-webkit-line-clamp":"down"===e.showType?e.rows:""},domProps:{innerHTML:e._s(e.vo[e.model])}})]):t("van-field",{class:["field-"+e.model,{"can-edit-required":e.required&&!e.readonly}],attrs:{placeholder:e.nodeFieldReadOnly?"":e.placeholder,readonly:e.nodeFieldReadOnly||1===e.elementReadonly,error:void 0!==a&&a.length>0,"error-content":void 0!==a&&a.length>0?a[0]:"",maxlength:e.maxLength,type:"textarea",rows:e.rows,autosize:e.autosize},on:{blur:e.inputBlur},model:{value:e.vo[e.model],callback:function(t){e.$set(e.vo,e.model,t)},expression:"vo[model]"}})]}}],null,!1,2994816786)}),e.showDetailBtn?t("div",{staticClass:"vant-textarea-fold-btn",staticStyle:{color:"#1989fa","font-size":"14px","text-align":"right",padding:"0 16px 10px"}},[t("span",{on:{click:function(t){return e.showTextContent(e.showType)}}},[e._v(e._s(e.textName))])]):e._e()],1):e._e()},md=[];function hd(e){return hd="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},hd(e)}function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yd(e,t,n){return(t=_d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _d(e){var t=bd(e,"string");return"symbol"==hd(t)?t:t+""}function bd(e,t){if("object"!=hd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=hd(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var wd={name:"TextareaField",components:{},props:{vo:{type:Object,default:null},model:{type:String,default:null},label:{type:String,default:""},placeholder:{type:String,default:"请输入"},required:{type:Boolean,default:!1},valueMaxLength:{type:String,default:""},valueMinLength:{type:String,default:""},readonly:{type:Boolean,default:!1},onClick:{type:Function,default:null},field:{type:Object,default:null},elementReadonly:{type:Number,default:0},rows:{type:Number,default:3},autosize:{type:Boolean,default:!0}},data:function(){return{textName:this.$tx("ecmapp.pageBtns.open","展开"),showType:"down",showDetailBtn:!1,fieldDom:{},isShowField:!0,maxLength:null,updateField:!0,nodeFieldReadOnly:!1}},computed:gd({},(0,ei.L8)(["loginUser"])),watch:{maxLength:function(){""===this.maxLength&&(this.maxLength="-")}},created:function(){if(this.maxLength=this.valueMaxLength,(1===this.$vnode.context.canEdit||!0===this.$vnode.context.canEdit)&&this.$vnode.context.curTN&&this.$vnode.context.curTN.nodeFormFields)for(var e=this.$vnode.context.curTN.nodeFormFields,t=0;t<e.length;t++)if(e[t].propCode===this.model){this.readonly=1!==e[t].isEditable,this.required=1===e[t].isRequired;break}this.readonly||void 0===this.vo[this.model]||null===this.vo[this.model]||-1===this.vo[this.model].indexOf("<")||-1===this.vo[this.model].indexOf(">")||(this.readonly=!0),this.placeholder||(this.placeholder="请输入"),null!==this.field&&(this.onClick=this.openSelectDialog),this.nodeFieldReadOnly=this.readonly},beforeDestroy:function(){this.fieldDom.removeEventListener("change",this.initVerify)},mounted:function(){this.fieldDom=this.$el,this.fieldDom.addEventListener("change",this.initVerify),this.initVerify()},methods:{initVerify:function(){"none"===this.fieldDom.style.display?this.isShowField=!1:this.isShowField=!0,this.nodeFieldReadOnly&&(this.placeholder="",null!==this.vo[this.model]&&""!==this.vo[this.model]||(this.required=!1)),(this.nodeFieldReadOnly||""===this.maxLength)&&this.showDetailBtnFun()},showDetailBtnFun:function(){var e=this;this.detailDom=this.$refs.textFieldContent,this.$nextTick((function(){e.showDetailBtn=e.detailDom.clientHeight<e.detailDom.scrollHeight,e.autosize&&(e.textName=e.$tx("ecmapp.pageBtns.retract","收起"),e.showType="up")}))},showTextContent:function(e){"down"===e?(this.textName=this.$tx("ecmapp.pageBtns.retract","收起"),this.showType="up"):(this.textName=this.$tx("ecmapp.pageBtns.open","展开"),this.showType="down")},handleClick:function(e){this.nodeFieldReadOnly||(null!==this.onClick?this.onClick(e,this.field):this.$emit("onClick",e,this.field))},openSelectDialog:function(){var e=this,t=this,n=this.field.dialogTitle?this.field.dialogTitle:this.label;if("listitem"===this.field.dialogType)this.$http({method:this.field.optionGenerateMethod,params:{id:this.vo.id,sysCode:this.vo.sysCode||this.loginUser.sysCode},url:this.field.optionGenerateUrl}).then((function(a){"success"===a.code?e.$bus.emit("openListitemDialog",n,a.body.listdata,(function(n){if("success"===n.code){var o="onSelectListitemCompleted";if(void 0!==t.$vnode.context[o])t.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context[o](a.value,{name:t.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[o])t.$vnode.context.$vnode.context.$vnode.context[o](a.value,{name:e.model});else{var i="";n.value.forEach((function(e){""!==i&&(i+=","),i+=e.title||e.text||e.name||e.label})),t.$set(e.vo,t.model,i)}}}),t.vo[t.model],t.field.dialogMultiple):e.$dialog.alert({message:a.message,type:"warning"})}));else if("listpage"!==this.field.dialogType){var a={selectDialog:this.field.dialogType,multiple:this.field.dialogMultiple,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded};this.field.dialogOrgLevel&&(a["org-level"]=this.field.dialogOrgLevel),this.field.dialogOrgId&&(a["org-id"]=this.field.dialogOrgId),this.field.dialogSubOrgName&&(a["sub-org-name"]=this.field.dialogSubOrgName),this.field.dialogOrgSelf&&(a["org-self"]=this.field.dialogOrgSelf),this.field.dialogOnlyCurSys&&(a["only-cur-sys"]=this.field.dialogOnlyCurSys),this.field.dialogNLevelFilter&&(a["node-level"]=this.field.dialogNLevelFilter),this.field.dialogRootOrgCode&&(a["root-org-code"]=this.field.dialogRootOrgCode),this.field.optionGenerateUrl&&(a["option-generate-url"]=this.field.optionGenerateUrl),this.field.optionGenerateMethod&&(a["option-generate-gethod"]=this.field.optionGenerateMethod);var o=this.vo[this.model];this.field.valueIdsField&&0===this.field.valueIdsField.indexOf("vo.")?o=this.vo[this.field.valueIdsField.substring(this.field.valueIdsField.indexOf(".")+1)]:this.field.valueIdsField&&this.vo[this.field.valueIdsField]&&(o=this.vo[this.field.valueIdsField]),this.$bus.emit("openTreeDialog",n,a,null,(function(n){if("success"===n.code){var a="onSelect"+e.field.dialogType.replace(e.field.dialogType[0],e.field.dialogType[0].toUpperCase())+"Completed";if("area"===e.field.dialogType[0]&&(a="onSelectTreeNodeCompleted"),void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),o)}else{var i={listviewurl:this.field.dialogListviewurl,navTabIndex:this.field.navTabIndex,context:this};this.$bus.emit("openListpageDialog",n,i,(function(n){if("success"===n.code){var a="onSelectListpageRowCompleted";if(void 0!==t.$vnode.context[a])t.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context[a](n.value,{name:e.model});else if(void 0!==t.$vnode.context.$vnode.context.$vnode.context[a])t.$vnode.context.$vnode.context.$vnode.context[a](n.value,{name:e.model});else{var o="";n.value.forEach((function(e){""!==o&&(o+="、"),o+=e.title})),t.$set(e.vo,e.model,o)}}}),this.vo[this.model],this.field.dialogMultiple)}},onSelectTreeDataLoaded:function(e,t){return t.multiple=this.field.dialogMultiple,t.name=this.model,t.dialogTitle=this.field.dialogTitle||this.label,this.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded?this.$vnode.context.$vnode.context.$vnode.context.onSelectTreeDataLoaded(e,t):e},inputBlur:function(){var e=this;this.updateField=!1,this.$nextTick((function(){e.updateField=!0}))}}},xd=wd,Md=(a(8668),(0,Ca.A)(xd,pd,md,!1,null,"7c9af7ac",null)),kd=Md.exports,Ld=function(){var e=this,t=e._self._c;return e.showWfIdea?t("div",{class:"idea-field van-textarea-field"},[t("van-field",{staticClass:"van-cell-field-title",class:"field-"+e.label,attrs:{required:e.required,label:e.label,readonly:!0,"right-icon":e.canWriteIdea?"records":""},on:{click:e.onClick}}),t("div",{staticClass:"van-cell van-field",class:"wfIdea-"+e.label},[t("div",{ref:"textFieldContent",staticClass:"idea-content",style:{"min-height":"80px"},domProps:{innerHTML:e._s(e.showWfIdea.ideaContent)}})]),t("van-button",{directives:[{name:"show",rawName:"v-show",value:e.flase,expression:"flase"}],staticClass:"delete-wfidea-btn",on:{click:e.deleteWfIdea}}),t("van-dialog",{attrs:{title:e.label,"show-cancel-button":""},on:{confirm:e.ideaInputDialogSubmit,close:e.ideaInputDialogClose},model:{value:e.ideaInputDialogVisible,callback:function(t){e.ideaInputDialogVisible=t},expression:"ideaInputDialogVisible"}},[t("div",{staticClass:"input-ideas"},[t("van-field",{staticClass:"curIdea-filed",attrs:{type:"textarea",placeholder:"请填写处理意见",rows:"4",autosize:""},model:{value:e.newWriteIdea,callback:function(t){e.newWriteIdea=t},expression:"newWriteIdea"}})],1)])],1):e._e()},Sd=[],Td=a(5093),Dd={name:"IdeaField",components:{},props:{vo:{type:Object,default:null},lableTd:{type:Number,default:null},label:{type:String,default:""},required:{type:Boolean,default:!1},ideaInputboxStyle:{type:String,default:null},ideaLabelAndContentAlign:{type:String,default:""},options:{type:String,default:""}},data:function(){return{curTN:null,wfInstance:null,submitHandle:null,wfIdeaList:[],showWfIdea:null,canWriteIdea:!1,newWriteIdea:"",ideaInputDialogVisible:!1}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){this.setShowWfIdea()},methods:{setShowWfIdea:function(){var e=this,t=this.$vnode.context.$vnode.context;this.curTN=t.curTN,this.wfInstance=t.wfInstance,this.submitHandle=t.submitHandle,this.wfIdeaList=t.wfIdeaList,this.showWfIdeaList=this.wfIdeaList.filter((function(t){return t.ideaLabelName===e.label})),this.showWfIdeaList.length>0&&(this.showWfIdea=this.showWfIdeaList[0]),this.curTN.tnID&&this.options&&-1!==this.options.indexOf("writeIdea(")&&(this.canWriteIdea=!0),this.$nextTick((function(){e.$nextTick((function(){e.initDeleteIdeaBtn()}))}))},onClick:function(){var e=JSON.parse(this.options).event,t=this.$vnode.context,n={};if(-1!==e.indexOf("@click=")&&(e=e.split("@click=")[1]),e=e.replace(/\\"|'\//g,""),e=e.replace(/"/g,""),-1!==e.indexOf("(")){var a=e.substring(e.indexOf("(")+1,e.lastIndexOf(")"));""!==a&&(n.btnParams=a.split(",")),e=e.split("(")[0]}void 0!==this[e]?n.btnClick=this[e]:void 0!==t[e]&&(n.btnClick=t[e]),n.btnClick?void 0!==n.btnParams&&null!==n.btnParams?n.btnClick.apply(t,n.btnParams):n.btnClick.apply(t):console.log("方法不存在:"+e)},writeIdea:function(e){var t=this;if(this.newWriteIdea=this.submitHandle.curUserIdea,e&&"string"===typeof e){var n=this.$vnode.context.curTN||this.$vnode.context.$vnode.context.curTN,a=this.$vnode.context.wfInstance||this.$vnode.context.$vnode.context.wfInstance;n.tnIdeaLabelName!==e&&(this.newWriteIdea=""),this.oldTNIdeaPosition=n.tnIdeaPosition,n.tnIdeaPosition=2,this.$http({method:"GET",params:{processId:a.wfId,labelName:e},url:"/workflow/wfdProcessMgr/findIdeaLabelByName"}).then((function(a){"success"===a.code?(t.speicalIdeaLabel=e,t.oldTnIdeaLabelID=n.tnIdeaLabelID,t.oldTnIdeaLabelName=n.tnIdeaLabelName,t.oldTnIdeaSaveType=n.tnIdeaSaveType,t.oldTnIdeaSignType=n.tnIdeaSignType,t.oldTnIdeaIsEmphasize=n.tnIdeaIsEmphasize,t.oldTnIdeaShowScope=n.tnIdeaShowScope,n.tnIdeaLabelID=a.body.vo.id,n.tnIdeaLabelName=a.body.vo.name,n.tnIdeaSaveType=a.body.vo.ideaSaveType,n.tnIdeaSignType=a.body.vo.ideaSignType,n.tnIdeaIsEmphasize=a.body.vo.isIdeaHighlight,n.tnIdeaShowScope=a.body.vo.ideaShowScope):t.$alert({message:a.message,type:"error"})}))}this.ideaInputDialogVisible=!0},ideaInputDialogSubmit:function(){var e=this,t=this;this.$set(this.submitHandle,"curUserIdea",this.newWriteIdea);var n=this.$vnode.context.curTN||this.$vnode.context.$vnode.context.curTN;if(n&&(1===this.inputboxStyle&&(t.showIdea=this.newWriteIdea+" "+n.tnIdeaSigner+" "+Td(new Date).format("YYYY-MM-DD"),t.$forceUpdate()),2===this.$vnode.context.curTN.tnIdeaPosition)){var a=t.$vnode.context.$vnode.context;a.$wfEngine.saveWfInstance(a,"SaveIdea",a.wfParams).then((function(n){e.ideaInputDialogClose(),"success"===n.code?(a.$set(a,"wfIdeaList",n.body.wfInstance.passenger.wfIdeaList),t.$forceUpdate(),t.$nextTick((function(){t.setShowWfIdea()}))):e.$dialog.alert({message:n.message,type:"error"})}))}},ideaInputDialogClose:function(){if(this.speicalIdeaLabel){var e=this.$vnode.context.curTN||this.$vnode.context.$vnode.context.curTN;e.tnIdeaLabelID=this.oldTnIdeaLabelID,e.tnIdeaLabelName=this.oldTnIdeaLabelName,e.tnIdeaSaveType=this.oldTnIdeaSaveType,e.tnIdeaSignType=this.oldTnIdeaSignType,e.tnIdeaIsEmphasize=this.oldTnIdeaIsEmphasize,e.tnIdeaShowScope=this.oldTnIdeaShowScope,e.tnIdeaPosition=this.oldTNIdeaPosition}this.ideaInputDialogVisible=!1},initDeleteIdeaBtn:function(){if(this.curTN.tnNodeID){var e=document.querySelectorAll(".idea-field .can-delete-idea");e.forEach((function(e){e.innerHTML='<a data-v-0582fa4e="" title="删除" href="javascript:callDeleteIdeaBtnClick(\''+e.id+'\');" ><i class="van-icon van-icon-cross" /></a>'}))}},deleteWfIdea:function(){var e=this,t=document.querySelector(".delete-wfidea-btn").ideaId;this.$http({method:"PUT",url:"workflow/wfInstanceNodelog/modifyWfNodelog",params:{wfInstanceId:this.$vnode.context.wfInstance.id,selTNID:this.curTN.tnID,ideaId:t,modifyType:"deleteIdea"}}).then((function(n){"success"===n.code?e.$dialog.alert({message:n.message}).then((function(){var e=document.getElementById(t);if(e){var n=document.getElementById(t);n&&($(n).prev().remove(),n.remove())}})):e.$dialog.alert({message:n.message,type:"error"})}))}}};window.callDeleteIdeaBtnClick=function(e){var t=document.querySelector(".delete-wfidea-btn");t.ideaId=e,t.click()};var Nd=Dd,Ad=(a(5917),(0,Ca.A)(Nd,Ld,Sd,!1,null,"67219e88",null)),Yd=Ad.exports;yl.install=function(e){e.component(yl.name,yl)},kl.install=function(e){e.component(kl.name,kl)},Il.install=function(e){e.component(Il.name,Il)},ql.install=function(e){e.component(ql.name,ql)},rd.install=function(e){e.component(rd.name,rd)},fd.install=function(e){e.component(fd.name,fd)},kd.install=function(e){e.component(kd.name,kd)},Yd.install=function(e){e.component(Yd.name,Yd)};var Cd=yl,Od=kl,Id=Il,Ed=ql,$d=rd,Pd=fd,jd=kd,Fd=Yd,Hd=function(){var e=this,t=e._self._c;return t("van-tag",{attrs:{plain:"",type:e.tagType}},[e._v(e._s(e.tagText))])},Bd=[],Ud={name:"WfStatus",components:{},props:{status:{type:Number,default:null},listType:{type:String,default:""}},data:function(){return{tagType:"",tagText:""}},computed:{},watch:{},created:function(){"myAllTask"===this.listType?0===this.status?(this.tagType="warning",this.tagText=this.$tx("ecmapp.common.toBeDealt","待办")):1===this.status&&(this.tagType="primary",this.tagText=this.$tx("ecmapp.common.alreadyDone","已办")):0===this.status?(this.tagType="default",this.tagText=this.$tx("ecmapp.common.draft","草稿")):1===this.status?(this.tagType="warning",this.tagText=this.$tx("ecmapp.common.inProgress","在办")):2===this.status&&(this.tagType="primary",this.tagText=this.$tx("ecmapp.common.end","结束"))},beforeDestroy:function(){},mounted:function(){},methods:{}},Rd=Ud,Wd=(0,Ca.A)(Rd,Hd,Bd,!1,null,"04c41a28",null),Vd=Wd.exports;Vd.install=function(e){e.component(Vd.name,Vd)};var zd=Vd,Jd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"van-wform-operate-cell"},["default"===e.attachModeType?t("div",{staticClass:"form-slicer"}):e._e(),"default"===e.attachModeType?t("van-cell-group",{staticClass:"van-attachment-field",class:{"wflow-attach":e.showAttachments||e.canUpload}},[e.canUpload?t("van-cell",{staticStyle:{height:"44px"},attrs:{required:e.isRequired>0,title:(e.title?e.title:e.$tx("common.attach","附件"))+"("+e.attachList.length+")"}},[t("van-uploader",{attrs:{"preview-image":!1,multiple:e.limitCount>1,accept:e.accept,"max-count":e.limitCount,"after-read":e.handleUploadChange},on:{oversize:e.handleUploadExceed},model:{value:e.uploadAttach,callback:function(t){e.uploadAttach=t},expression:"uploadAttach"}},[e.canUpload?t("van-icon",{staticStyle:{"margin-top":"2px"},attrs:{name:"add-o",size:"20px"}}):e._e()],1)],1):t("van-cell",{staticStyle:{height:"44px"},attrs:{required:e.isRequired>0,title:(e.title?e.title:e.$tx("common.attach","附件"))+"("+e.attachList.length+")"},on:{click:function(t){e.showAttachments=!e.showAttachments}}},[e.attachList.length>0?[e._v(" "+e._s(e.showAttachments?e.$tx("ecmapp.pageBtns.fold","折叠"):e.$tx("ecmapp.pageBtns.open","展开"))+" "),t("van-icon",{class:e.showAttachments?"icon-play-up":"icon-play-down",attrs:{name:"play"}})]:[e._v(e._s(e.$tx("ecmapp.common.nothing","无")))]],2)],1):e._e(),"default"===e.attachModeType?t("van-cell-group",{directives:[{name:"show",rawName:"v-show",value:e.showAttachments||"Wflow"===e.componentType&&e.vo.status<1,expression:"showAttachments || (componentType === 'Wflow' && vo.status < 1)"}],staticClass:"wfattach-container"},[e._l(e.attachList,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.fileName},on:{click:function(t){return e.handleUploadPreview(n)}}},[t("template",{slot:"title"},[t("span",[e._v(e._s(n.fileName))]),void 0===n.id&&n.file.progress>0?t("van-progress",{attrs:{percentage:n.file.progress,"show-pivot":!1}}):e._e()],1),t("div",{staticClass:"attach-icon"},[t("span",{domProps:{innerHTML:e._s(n.fileSize)}}),e.showMoreMenu&&void 0!==n.id?[t("van-icon",{attrs:{name:"ellipsis"},on:{click:function(t){return t.stopPropagation(),e.openMoreMenuDialog(n)}}})]:[void 0!==n.id&&""!==e.onlineEditor&&1==e.curTN.tnCanEdit?t("van-icon",{attrs:{color:n.canModify?"#1989fa":"",name:"edit"},on:{click:function(t){return t.stopPropagation(),e.handleOpenEditor(n)}}}):e._e(),e.canUpload&&e.canDelete?t("van-icon",{attrs:{color:"#ee0a24",name:"cross"},on:{click:function(t){return t.stopPropagation(),e.handleUploadRemove(n)}}}):e._e()]],2)],2)})),0===e.attachList.length&&e.canUpload?t("van-cell",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.common.nothing",expression:"'ecmapp.common.nothing'"}]},[e._v("无")]):e._e()],2):e._e(),"preview"===e.attachModeType?t("div",{staticClass:"attachmants_preview"},[e.canUpload?t("div",{staticStyle:{"text-align":"right",padding:"0 16px 10px",background:"#fff",color:"#1989fa","font-size":"12px"}},[t("van-uploader",{attrs:{"preview-image":!1,multiple:e.limitCount>1,accept:e.accept,"max-count":e.limitCount,"after-read":e.handleUploadChange},on:{oversize:e.handleUploadExceed},model:{value:e.uploadAttach,callback:function(t){e.uploadAttach=t},expression:"uploadAttach"}},[t("span",[e._v(e._s(e.emptyMessage?e.$tx("pageBtns.addTo","添加"):e.$tx("pageBtns.addToAttach","添加附件")))])])],1):e._e(),e.attachList.length>0?t("div",{staticClass:"attachmants"},[t("van-cell-group",{attrs:{center:""}},e._l(e.attachList,(function(n,a){return t("van-cell",{key:a,on:{click:function(t){return e.handleUploadPreview(n)}}},[t("template",{slot:"title"},[t("div",{staticClass:"attach_photo"},[t("van-image",{attrs:{width:"44",height:"44",fit:"download"===n.previewType?"cover":"contain",src:e.initPotourl(n)}})],1),t("div",{staticClass:"attach_name"},[e._v(e._s(n.fileName))]),t("div",{staticStyle:{position:"absolute",right:"-29px",top:"11px",padding:"0 5px"}},[e.canUpload&&e.canDelete?t("van-icon",{attrs:{name:"cross"},on:{click:function(t){return t.stopPropagation(),e.handleUploadRemove(n)}}}):t("van-icon",{attrs:{name:"arrow"},on:{click:function(t){return t.stopPropagation(),e.handleUploadPreview(n)}}})],1)]),!n.id&&n.file.progress>0?t("template",{slot:"label"},[t("div",{staticClass:"upload-progress"},[t("van-progress",{attrs:{percentage:n.file.progress,"show-pivot":!1}})],1)]):t("template",{slot:"label"},[t("div",[e._v(e._s(n.fileSize))])])],2)})),1)],1):e._e()]):e._e(),e.showRenameDlg?t("van-dialog",{attrs:{title:e.$tx("ecmapp.common.rename","重命名"),"show-cancel-button":"","cancel-button-color":"black"},on:{cancel:e.onRenameCancel,confirm:e.onRenameConfirm},model:{value:e.showRenameDlg,callback:function(t){e.showRenameDlg=t},expression:"showRenameDlg"}},[t("van-field",{attrs:{autosize:"",placeholder:e.renameAttach.rename},model:{value:e.renameAttach.rename,callback:function(t){e.$set(e.renameAttach,"rename",t)},expression:"renameAttach.rename"}})],1):e._e()],1)},qd=[];function Gd(e){return Gd="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},Gd(e)}function Kd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kd=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==Gd(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Gd(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function Qd(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function Zd(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){Qd(i,a,o,r,s,"next",e)}function s(e){Qd(i,a,o,r,s,"throw",e)}r(void 0)}))}}function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xd(Object(n),!0).forEach((function(t){tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tc(e,t,n){return(t=nc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e){var t=ac(e,"string");return"symbol"==Gd(t)?t:t+""}function ac(e,t){if("object"!=Gd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Gd(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var oc={name:"Attachment",components:{},props:{vo:{type:Object,default:function(){return{}}},curTN:{type:Object,default:function(){return{}}},attachments:{type:Array,default:function(){return[]}},title:{type:String,default:""},accept:{type:String,default:"*.*"},wfAttachUrl:{type:String,default:""},emptyMessage:{type:String,default:""},onlineFile:{type:String,default:""},viewer:{type:String,default:"pdfjs"},viewerUrlParams:{type:String,default:""},showAttachments:{type:Boolean,default:function(){return!1}},batchSaveNamefield:{type:String,default:""},canEdit:{type:Number,default:null},limitCount:{type:Number,default:100},isRequired:{type:Number,default:0},componentType:{type:String,default:"Wflow"},attachsType:{type:String,default:"ATTACH"},attachEdit:{type:Object,default:null},attachModeType:{type:String,default:"default"},onlineEditor:{type:String,default:""},waterMark:{type:Boolean,default:function(){return!1}},markContent:{type:String,default:""},showMoreMenu:{type:Boolean,default:function(){return!1}},onAttachPreviewClick:{type:Function,default:null}},data:function(){return{attachList:[],uploadAttach:[],canUpload:!1,canDelete:!0,showRenameDlg:!1,renameAttach:{rename:""},licExpiredAlert:null,loginUser:this.$store.getters.loginUser,topdfFile:".doc,.docx,.xls,.xlsx,.ppt,.pptx"}},computed:ec({},(0,ei.L8)(["loginUser"])),watch:{attachments:{handler:function(e){var t=this;0===this.attachments.length&&this.vo.passenger&&void 0===this.vo.passenger.attachments&&this.$vnode.context.wfInstance&&this.$vnode.context.$vnode.context.attachments&&(this.attachments=this.$vnode.context.$vnode.context.attachments),this.attachments.length>0&&(this.attachments.forEach((function(e){var n="";-1!==e.fileName.indexOf(".")&&(n=e.fileName.substring(e.fileName.lastIndexOf(".")).toLowerCase(),(""!==n&&-1!==(t.onlineFile+",").indexOf(n+",")||".wps"===n&&"wpsh5"===t.onlineEditor)&&(e.canModify=!0))})),this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType})))},immediate:!0},canEdit:function(e){this.$set(this.curTN,"tnCanEdit",e),null!==this.attachEdit?(""!==this.attachEdit.canUpload&&null!==this.attachEdit.canUpload&&void 0!==this.attachEdit.canUpload&&(this.canUpload=this.attachEdit.canUpload),""!==this.attachEdit.canDelete&&null!==this.attachEdit.canDelete&&void 0!==this.attachEdit.canDelete&&(this.canDelete=this.attachEdit.canDelete)):this.canUpload=1===this.canEdit},attachEdit:{handler:function(e){null!==e&&(""!==e.canUpload&&null!==e.canUpload&&void 0!==e.canUpload&&(this.canUpload=e.canUpload),""!==e.canDelete&&null!==e.canDelete&&void 0!==e.canDelete&&(this.canDelete=e.canDelete))},deep:!0,immediate:!0}},created:function(){if(this.limitCount||(this.limitCount=100),void 0===this.curTN.tnCanEdit){var e=this.$vnode.context;void 0===this.$vnode.context.openBusiform&&(e=this.$vnode.context.$parent),this.curTN.tnCanEdit=e.canEdit,null==this.canEdit&&(this.canEdit=this.curTN.tnCanEdit),this.canUpload=null!==this.attachEdit?this.attachEdit.canUpload:1===this.canEdit}else(this.vo.status<1||"DONEXT"===this.attachsType)&&(this.canUpload=!0);this.setWfAttachUrl()},beforeDestroy:function(){},updated:function(){this.onlineFile||(this.onlineEditor=""),this.setWfAttachUrl()},mounted:function(){var e=this;setTimeout((function(){"ecinc"!==window.mappType&&(e.$set(e,"showMoreMenu",!1),e.$forceUpdate())}),500);var t=this.$vnode.context.refsAttachments||this.$vnode.context.$parent.refsAttachments||this.$vnode.context.$parent.$vnode.context.refsAttachments;t&&t.push(this);var n=this;setTimeout((function(){!n.licExpiredAlert&&n.loginUser.licExpiredTime&&(n.licExpiredAlert=!0,n.$dialog.alert({message:"系统授权已经于"+n.loginUser.licExpiredTime+"过期!",type:"warning"}).then((function(){n.licExpiredAlert=!1})))}),100)},methods:{setWfAttachUrl:function(){""===this.wfAttachUrl&&(this.$vnode.context.moduleInfo?this.wfAttachUrl=this.$vnode.context.moduleInfo.insertUrl.split("/insert")[0]:this.$vnode.context.$vnode.context.wfAttachUrl?this.wfAttachUrl=this.$vnode.context.$vnode.context.wfAttachUrl:this.$vnode.context.$vnode.context.$vnode.context.wfAttachUrl?this.wfAttachUrl=this.$vnode.context.$vnode.context.$vnode.context.wfAttachUrl:this.$vnode.context.wfParams?this.wfAttachUrl=this.$vnode.context.wfParams.wfEngineUrl:this.$vnode.context.$vnode.context.wfParams?this.wfAttachUrl=this.$vnode.context.$vnode.context.wfParams.wfEngineUrl:this.$vnode.context.$vnode.context.$vnode.context.wfParams&&(this.wfAttachUrl=this.$vnode.context.$vnode.context.$vnode.context.wfParams.wfEngineUrl))},openMoreMenuDialog:function(e){var t=this;e.passenger.actionList=[];var n=!1,a="";-1!==e.fileName.indexOf(".")&&(a=e.fileName.substring(e.fileName.lastIndexOf(".")).toLowerCase(),""!==a&&".pdf"!==a&&".pdfx"!==a&&-1!==(this.topdfFile+",").indexOf(a+",")&&(n=!0));var o=[".txt",".pdf",".pdfx",".jpg",".png",".jpeg",".gif",".bmp"];(n||-1!==o.indexOf(a))&&e.passenger.actionList.push("view"),e.canModify&&(""!==this.onlineEditor&&1===this.curTN.tnCanEdit&&e.passenger.actionList.push("edit"),e.passenger.actionList.push("rename")),this.canUpload&&this.canDelete&&e.passenger.actionList.push("delete");var i="/apigw";i+="/"===this.wfAttachUrl.substr(0,1)?this.wfAttachUrl:"/"+this.wfAttachUrl,i+="/downloadById?topdf=false&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),e.passenger.downloadUrl=i,this.$wv.showAttachmentMenus(e,(function(n){console.log(n),"string"===typeof n&&(n=JSON.parse(n)),"string"===typeof n.attach&&(n.attach=JSON.parse(n.attach)),"view"===n.actionType?t.handleUploadPreview(n.attach):"edit"===n.actionType?t.handleOpenEditor(n.attach):"rename"===n.actionType?(t.renameAttach=e,t.renameAttach.rename=e.fileName.substring(0,e.fileName.lastIndexOf(".")),t.showRenameDlg=!0):"delete"===n.actionType&&t.handleUploadRemove(n.attach)}))},onRenameCancel:function(){this.showRenameDlg=!1,this.renameAttach={}},onRenameConfirm:function(){var e=this,t=this.renameAttach.fileName.substring(0,this.renameAttach.fileName.lastIndexOf("."));if(t!==this.renameAttach.rename.trim()){var n="/"===this.wfAttachUrl.substr(0,1)?this.wfAttachUrl:"/"+this.wfAttachUrl;n+="/rename";var a=this.renameAttach.fileName.substring(this.renameAttach.fileName.lastIndexOf("."));this.$http({method:"POST",params:{attachId:this.renameAttach.id,attachName:this.renameAttach.rename.trim()+a},url:n}).then((function(t){"success"===t.code?e.attachList.forEach((function(t){t.id===e.renameAttach.id&&e.$set(t,"fileName",e.renameAttach.rename.trim()+a)})):e.$dialog.alert({message:t.message}),e.renameAttach={},e.showRenameDlg=!1}))}else this.renameAttach={},this.showRenameDlg=!1},handleUploadPreview:function(e){var t=this;return Zd(Kd().mark((function n(){var a,o,i,r,s,l,d,c,u,f,p,m,h,v,g,y,_,b,w;return Kd().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(void 0!==e.id){n.next=2;break}return n.abrupt("return");case 2:if(!t.onAttachPreviewClick){n.next=5;break}return t.onAttachPreviewClick(e),n.abrupt("return");case 5:if(a=ea().get("device"),o=!1,i="",-1!==e.fileName.indexOf(".")&&(i=e.fileName.substring(e.fileName.lastIndexOf(".")).toLowerCase()),"qywx"!==a&&"zwwx"!==a&&""!==i&&".pdf"!==i&&".pdfx"!==i&&-1!==(t.topdfFile+",").indexOf(i+",")&&(o=!0),0!==t.viewer.indexOf("dcs=")||!o&&".ofd"!==i){n.next=21;break}r=res.body.tSessionId,s=location.href.split("mindex.html")[0],l=s.substring(0,s.length-1)+"/apigw/"+t.wfAttachUrl+"/downloadById?attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+r,d="0",".pdf"===i?d="20":".ofd"===i&&(d="21"),l=t.viewer.split("=")[1]+"/composite/httpfile?convertType="+d+"&fileUrl="+encodeURIComponent(l+(t.waterMark?"&waterMark="+t.waterMark+"&markContent="+t.markContent:"")),""!==t.viewerUrlParams&&null!==t.viewerUrlParams&&void 0!==t.viewerUrlParams&&(l+=t.viewerUrlParams),$.post(l,{},(function(e){0===e.errorcode?window.open(e.data.viewUrl):t.$dialog.alert({message:e.message})}),"json"),n.next=64;break;case 21:if("wpsh5"!==t.viewer||!o&&".ofd"!==i&&".wps"!==i){n.next=39;break}return c=location.href.split("#")[0].split("mindex.html")[0],-1===c.indexOf("//127")&&-1===c.indexOf("//192")||(c="http://toa.ecinc.com.cn:2028/"),n.next=26,t.getSessionId();case 26:u=n.sent,f=c+"/apigw",f+="/"===t.wfAttachUrl.substring(0,1)?t.wfAttachUrl:"/"+t.wfAttachUrl,f+="/downloadById?attachIds="+e.id+"&topdf=false",f+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+u,f+="&saveAs="+encodeURI(e.fileName),p=t.$vnode.context.wfInstance.module,m=t.$vnode.context.wfInstance.bodyDocId,h=t.$vnode.context.vo.id,v={openType:"view",attachId:"",module:p,busiDataId:h,bodyDocId:m,downUrl:encodeURI(f),attachName:encodeURI(e.fileName),attachType:e.fileType},t.$http({method:"GET",params:v,url:"wpsOffice/getAppToken"}).then((function(n){if("success"===n.code){t.tSessionId=n.body.tSessionId;var a="./plugins/wpsjs/h5office/editor.html";a+="?token="+encodeURI(n.body.accessToken),a+="&signatureurl="+encodeURIComponent(n.body.url),t.$mappUtils.downLoadAndOpenFile(t,a,e.fileName,e.fileRealSize)}else t.$dialog.alert({message:n.message})})),n.next=64;break;case 39:if("fuxin"!==t.viewer||!o&&".ofd"!==i){n.next=56;break}return g=location.href.split("#")[0].split("mindex.html")[0],n.next=43,t.getSessionId();case 43:if(y=n.sent,!(imgType.indexOf(i.substring(1))>-1&&window.openImgView)){n.next=48;break}return sessionStorage.setItem("IMG_INDEX_"+t.vo.id,e.index),window.open("#/imgView?wfAttachUrl="+t.wfAttachUrl+"&busiDataId="+t.vo.id),n.abrupt("return");case 48:_=g+"/apigw",_+="/"===t.wfAttachUrl.substring(0,1)?t.wfAttachUrl:"/"+t.wfAttachUrl,_+="/downloadById?attachIds="+e.id+"&topdf="+o,_+=t.waterMark?"&waterMark="+t.waterMark+"&markContent="+t.markContent:"",_+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+y,t.fuxinBaseUrl?t.$mappUtils.downLoadAndOpenFile(t,his.fuxinBaseUrl+"?docuri="+encodeURIComponent(_),e.fileName,e.fileRealSize):t.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"base/paramConfig/findParamValueByName?orgCode=standard¶mName=fuxin.viewer.url"}).then((function(n){"success"===n.code?(t.fuxinBaseUrl=n.body.value,t.$mappUtils.downLoadAndOpenFile(t,his.fuxinBaseUrl+"?docuri="+encodeURIComponent(_),e.fileName,e.fileRealSize)):t.$dialog.alert({message:"未配置福星预览地址参数 fuxin.viewer.url"})})),n.next=64;break;case 56:b="/apigw",b+="/"===t.wfAttachUrl.substring(0,1)?t.wfAttachUrl:"/"+t.wfAttachUrl,b+="/downloadById?inline=true&attachIds="+e.id+"&topdf="+o,b+=t.waterMark?"&waterMark="+t.waterMark+"&markContent="+t.markContent:"",b+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),w=e.fileName,o&&(w.indexOf(".")>0?w=w.substring(0,w.lastIndexOf("."))+".pdf":w+=".pdf"),t.$mappUtils.downLoadAndOpenFile(t,b,w,e.fileRealSize);case 64:case"end":return n.stop()}}),n)})))()},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)}))}))},handleUploadExceed:function(e,t){this.$dialog.alert({message:this.$tx("ecmapp.wflowform.togetherUpload",{limitCount:this.limitCount,valLength:e.length,filelength:e.length+t.length},"当前限制选择 ".concat(this.limitCount," 个文件,本次选择了 ").concat(e.length," 个文件,共选择了").concat(e.length+t.length,"个文件"))})},handleUploadRemove:function(e){var t=this,n=this;if(void 0===e.id){for(var a=0;a<this.attachments.length;a++)this.attachments[a].file===e.file&&this.attachments.splice(a--,1);this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType}));for(var o=0;o<this.uploadAttach.length;o++)this.uploadAttach[o]===e.file&&this.uploadAttach.splice(o--,1);this.$forceUpdate()}else if(e.forward){for(var i=0;i<this.attachments.length;i++)this.attachments[i].id===e.id&&this.attachments.splice(i--,1);this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType})),this.$forceUpdate()}else this.$dialog.confirm({message:this.$tx("ecmapp.message.sureDeleterAttach","您是否确认删除选择的附件?")}).then(Zd(Kd().mark((function a(){var o;return Kd().wrap((function(a){while(1)switch(a.prev=a.next){case 0:o=t.wfAttachUrl+"/delete",void 0!==n.$vnode.context.wfInstance&&null!==n.$vnode.context.wfInstance&&void 0!==n.$vnode.context.wfInstance.id||(o=t.wfAttachUrl+"/deleteAttach"),t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{attachIds:e.id},url:o}).then((function(n){if("success"===n.code){for(var a=0;a<t.attachments.length;a++)t.attachments[a].id===e.id&&t.attachments.splice(a--,1);t.attachList=t.attachments.filter((function(e){return e.fileType===t.attachsType})),t.$forceUpdate()}else t.$dialog.alert({message:n.message})}));case 3:case"end":return a.stop()}}),a)})))).catch((function(){console.log("cancel delete.")}))},handleUploadChange:function(e){var t=this;if(this.accept&&"*.*"!==this.accept&&-1===this.accept.indexOf("/")){var n="";if(-1!==e.file.name.indexOf(".")&&(n=e.file.name.substring(e.file.name.lastIndexOf("."))),""===n||-1===(this.accept+",").indexOf(n+","))return void this.$toast.fail(this.$tx("ecmapp.common.unsupported","不支持的文件格式!"))}if(void 0!==e.length){for(var a="",o=0;o<e.length;o++){for(var i=!1,r="",s=0;s<this.attachments.length;s++)e[o].file.name!==this.attachments[s].fileName||this.attachments[s].fileType!==this.attachsType&&(this.sameNameBodyfile||"BODY"!==this.attachments[s].fileType)||(i=!0,a+=e[o].file.name);if(/^image\./.test(e[o].file.name)&&(i=!1,r=e[o].file.name.replace(/^(.*?)\.([^\.]*)$/,"$1".concat(window.moment()-0,".$2"))),!i){var l={};l.fileName=r||e[o].file.name,l.fileSize=T(e[o].file.size),l.fileType=this.attachsType,l.uploadBy=this.loginUser.personName,"DONEXT"===this.attachsType&&(l.uploadType="DONEXT",l.uploadBy=(this.curTN.tnIdeaSigner||this.curTN.userName)+"_"+this.curTN.tnID),l.uploadTime="待上传",l.file=e[o],l.checked=!1,e[o].progress=0,this.attachments.push(l)}}""!==a&&this.$dialog.alert({message:this.$tx("ecmapp.message.cannotBeUpload",{fileName:a},"文件“".concat(a,"”已存在,不允许上传同命名文件。"))})}else{var d="";if(/^image\./.test(e.file.name))d=e.file.name.replace(/^(.*?)\.([^\.]*)$/,"$1".concat(window.moment()-0,".$2"));else for(var c=0;c<this.attachments.length;c++)if(e.file.name===this.attachments[c].fileName&&(this.attachments[c].fileType===this.attachsType||!this.sameNameBodyfile&&"BODY"===this.attachments[c].fileType))return void this.$dialog.alert({message:this.$tx("ecmapp.message.cannotBeUpload",{fileName:e.file.name},"文件“".concat(e.file.name,"”已存在,不允许上传同命名文件。"))});var u={};u.fileName=d||e.file.name,u.fileSize=T(e.file.size),u.fileType=this.attachsType,u.uploadBy=this.loginUser.personName,"DONEXT"===this.attachsType&&(u.uploadType="DONEXT",u.uploadBy=this.curTN.userName+"_"+this.curTN.tnID),u.uploadTime="待上传",u.file=e,u.checked=!1,e.progress=0,this.attachments.push(u)}this.attachList=this.attachments.filter((function(e){return e.fileType===t.attachsType})),this.$forceUpdate()},initPotourl:function(e){var t=e.fileName.substr(e.fileName.lastIndexOf(".")+1).toLowerCase(),n=["zip","rar","arj"],a=["jpg","jpeg","png","gif"],o=["mp4","avi","wmv"];return t.indexOf("doc")>-1?"./images/m-imgs/app-icons/word@3x.png":t.indexOf("xls")>-1?"./images/m-imgs/app-icons/xls@3x.png":t.indexOf("ppt")>-1?"./images/m-imgs/app-icons/ppt文档@3x.png":t.indexOf("txt")>-1?"./images/m-imgs/app-icons/txt@3x.png":t.indexOf("pdf")>-1?"./images/m-imgs/app-icons/pdf@3x.png":n.indexOf(t)>-1?"./images/m-imgs/app-icons/zip@3x.png":o.indexOf(t)>-1?"./images/m-imgs/app-icons/video@3x.png":a.indexOf(t)>-1?(this.$set(e,"previewType","download"),e.id?"/apigw/"+this.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken():e.id?void 0:e.file.content):"./images/m-imgs/app-icons/other@3x.png"},uploadWflowAttach:function(e){var t=this;return new Promise(function(){var n=Zd(Kd().mark((function n(a){var o,i,r,s,l,d,c,u,f;return Kd().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=function(){return s=Zd(Kd().mark((function t(n,a){var o,r,s,l,d;return Kd().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=n.file,r={onUploadProgress:function(e){var t=e.loaded/e.total*100|0;i.$set(o,"progress",t),i.$set(n,"file",o),i.$forceUpdate(),"BODY"===n.fileType&&i.$bus.emit("onUploadProgress",n)}},o.name||(o.name=n.fileName||o.file.name),s=e.moduleCode||i.wfAttachUrl.split("/")[1],l={module:s,busiDataId:e.vo.id,attachsName:encodeURI(o.name),attachsType:o.fileType,attachsSize:o.file.size,clientType:"uploader",uploadIndex:n.uploadIndex||0},e.wfInstance&&(l.bodyDocId=e.wfInstance.bodyDocId,l.module=e.wfInstance.module),"DONEXT"!==n.uploadType&&"formfile"!==n.uploadType||(l.uploadBy=n.uploadBy),t.next=9,i.$wfEngine.upload(i,i.wfAttachUrl+"/upload",o.file,l,r);case 9:return d=t.sent,t.abrupt("return",d);case 11:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)},r=function(e,t){return s.apply(this,arguments)},o=[],e.doNextAttach&&void 0!==e.doNextAttach.file&&null!==e.doNextAttach.file&&0===e.doNextAttach.file.progress&&t.attachments.push(e.doNextAttach),t.attachments.forEach((function(e,n){null==e.file||e.file.complete||void 0!==e.uploadIndex||e.fileType!==t.attachsType&&"formfile"!==e.uploadType&&"DONEXT"!==e.uploadType||(e.file.message=null,e.file.fileType=e.fileType||t.attachsType,e.uploadIndex=n,o.push(e))})),i=t,!e.bodyfile||void 0===e.bodyfile.file||null===e.bodyfile.file||0!==e.bodyfile.file.progress){n.next=14;break}return l=e.bodyfile,l.file.message=null,l.file.fileType=l.fileType||t.attachsType,n.next=12,r(l,0);case 12:d=n.sent,"success"===d.code?(l.file.complete=!0,d.body.uploadAttachList.forEach((function(n){for(var a=0;a<e.attachments.length;a++){var o=e.attachments[a];if(o.fileType===n.fileType&&o.originalName===n.originalName){e.attachments.splice(a--,1);break}}t.attachments.push(n),(n.fileName.indexOf(".pdf")||n.fileName.indexOf(".ofd"))&&(i.$set(e,"bodyfile",n),"undefined"!==typeof e.vo.flBodyFilename&&(e.vo.flBodyFilename=n.fileName)),!n.fileName||".pdf"!==n.fileName.substring(n.fileName.length-4)&&".ofd"!==n.fileName.substring(n.fileName.length-4)||i.$bus.emit("onUploadProgress",n)})),c=l.file.name,u=c.substring(c.lastIndexOf(".")).toLowerCase(),f="",t.$vnode.context.wfInstance.passenger.docEditMode&&(f=t.$vnode.context.wfInstance.passenger.docEditMode),e.wfInstance.haveDoc="RedTitle"===f?2:"NoTitle"===f?".pdf"===u||".ofd"===u?2:1:2,-1===e.bodyfile.originalName.indexOf(e.wfInstance.bodyDocId)&&(e.wfInstance.bodyDocId=e.bodyfile.originalName.split(".")[0]),"undefined"===typeof e.vo.flBodyFilename||null!==e.vo.flBodyFilename&&""!==e.vo.flBodyFilename||(e.vo.flBodyFilename=l.fileName),0===o.length&&a({code:"success",message:t.$tx("ecmapp.message.fileUploadSuccess","文件正文上传成功!")}),t.$nextTick((function(){t.$bus.emit("onTabChanged",0)}))):(l.file.status="failure",l.file.message=d.message,t.$bus.emit("onUploadProgress",l),0===o.length&&a(d));case 14:0===o.length&&(1===t.isRequired&&0===t.attachList.length?(t.$dialog.alert({message:t.$tx("ecmapp.message.needUploadFile","请选择需要上传的附件!")}),a({code:"failure",message:t.$tx("ecmapp.message.noSelNeedUploadFile","没有选择需要上传的附件")})):a({code:"success",message:t.$tx("ecmapp.message.noTobeUploadFile","没有待上传附件")})),o.forEach(function(){var n=Zd(Kd().mark((function n(o,s){var l,d,c;return Kd().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,r(o,s+1);case 2:l=n.sent,d=o.file,"success"===l.code?(d.complete=!0,c=!0,i.attachments.forEach((function(n,a){if(d===n.file){var o=e.attachments||e.vo.passenger.attachments||t.attachments;2===l.body.uploadAttachList.length?o.splice(a,1,l.body.uploadAttachList[0],l.body.uploadAttachList[1]):o.splice(a,1,l.body.uploadAttachList[0])}n.fileType===t.attachsType&&n.file&&!0!==n.file.complete&&(c=!1)})),c&&a({code:"success",message:t.$tx("ecmapp.message.attchUploadFile","附件全部上传成功")})):(d.status="failure",d.message=l.message,a(l),t.$forceUpdate());case 5:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}());case 16:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())},handleOpenEditor:function(e){e.canModify?this.$bus.emit("btnEditAttachClick",e,this.onlineEditor):this.$dialog.alert({message:this.$tx("ecmapp.message.notSupportedFile","文件不支持在线编辑。")})}}},ic=oc,rc=(a(9283),(0,Ca.A)(ic,Jd,qd,!1,null,"c5c0c8a2",null)),sc=rc.exports,lc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bodyfile-container"},[e.flBodyfile&&e.flBodyfile.id&&null===e.downloadurl?t("van-loading",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"},{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.loadingFile",expression:"'ecmapp.wflowform.loadingFile'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载正文文件...")]):e.flBodyfile&&e.flBodyfile.fileName?e.uploadList.length>0?t("div",{staticClass:"upload-progress"},[t("van-circle",{attrs:{rate:100,"stroke-width":60,speed:1,"layer-color":"#ebedf0",text:e.flBodyfile.fileSize},model:{value:e.flBodyfile.file.progress,callback:function(t){e.$set(e.flBodyfile.file,"progress",t)},expression:"flBodyfile.file.progress"}}),t("div",{staticClass:"van-ellipsis"},[e._v(e._s(e.flBodyfile.fileName))])],1):e._e():t("van-empty",{attrs:{description:e.$tx("ecmapp.wflowform.noBodyFile","暂无正文")}}),""!=e.bodyFileUrl&&0==e.uploadList.length?t("PdfTools",{ref:"PdfTools",attrs:{"seal-source":e.sealSource,"wf-attach-url":e.wfAttachUrl,"body-file-url":e.bodyFileUrl,bodyfile:e.flBodyfile,sign:e.sign,seal:e.seal,"view-body-file-show":e.viewBodyFileShow}}):null!==e.downloadurl?t("div",{staticStyle:{"text-align":"center",background:"#fff",padding:"20px 20px"},on:{click:e.downLoadFile}},[t("div",{staticClass:"file-svg-icon"},[t("svg",{staticClass:"svg-icon",attrs:{width:"15px",height:"18px",viewBox:"0 0 15 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[t("g",{attrs:{id:"bodyfile",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{id:"bodyfileIcon",transform:"translate(-263.000000, -1048.000000)","fill-rule":"nonzero"}},[t("g",{attrs:{id:"word",transform:"translate(263.000000, 1048.000000)"}},[t("path",{attrs:{id:"形状结合",d:"M10.2439176,0 L14.8728814,4.53013393 L14.8728814,17.4977679 C14.8728814,17.7751406 14.6405406,18 14.3539392,18 L0.518942127,18 C0.232340769,18 -1.49213975e-13,17.7751406 -1.49213975e-13,17.4977679 L-1.49213975e-13,0.502232143 C-1.49213975e-13,0.224859375 0.232340769,0 0.518942127,0 L10.2439176,0 Z M4.12729895,6.53424658 L2.66949153,6.53424658 L2.66949153,13.970203 C2.66949153,14.6089356 3.48798792,14.91363 3.93668022,14.4419465 L7.56355932,10.6291598 L11.1904384,14.4419465 C11.6391307,14.91361 12.4576271,14.6089157 12.4576271,13.970203 L12.4576271,6.53424658 L10.9998197,6.53424658 L10.9998197,12.1663439 L8.1018443,9.11984056 C7.81280274,8.81598579 7.3143159,8.81598579 7.02527434,9.11984056 L4.12729895,12.1663439 L4.12729895,6.53424658 Z",fill:"#4A8DFF"}}),t("path",{attrs:{id:"路径",d:"M10.2966102,0 L10.2966102,4.05591835 C10.2966102,4.33522042 10.5263061,4.56164384 10.8096451,4.56164384 L14.8728814,4.56164384 L10.2966102,0 Z",fill:"#E5F0FF"}})])])])])]),t("div",{staticStyle:{color:"#1989fa","font-size":"16px"}},[e._v(e._s(e.flBodyfile.fileName))]),t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.downloadView",expression:"'ecmapp.wflowform.downloadView'"}],staticStyle:{"font-size":"14px","margin-top":"10px"}},[e._v("点击下载查看")])]):e._e(),t("van-uploader",{attrs:{"preview-image":!1,accept:e.accept,"max-count":1,"after-read":e.handleUploadChange},on:{oversize:e.handleUploadExceed},model:{value:e.uploadList,callback:function(t){e.uploadList=t},expression:"uploadList"}},[t("van-icon",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"uploadIcon",attrs:{name:"add-o"}})],1),t("PopupDialog",{attrs:{showpop:e.historyDialogVisible,title:e.$tx("ecmapp.wflowform.historicalVersion","历史版本"),"on-closed":e.reloadBodyFile},on:{"update:showpop":function(t){e.historyDialogVisible=t}}},[0===e.historyFiles.length?t("van-empty",{attrs:{description:e.$tx("ecmapp.wflowform.descriptionText","描述文字")}}):e._e(),e._l(e.historyFiles.filter((function(e){return-1===e.fileName.indexOf(".doc")||-1!==e.filePath.indexOf("/noTracks/")})),(function(n,a){return t("van-cell-group",{key:a},[t("van-cell",{staticStyle:{"line-height":"32px"},attrs:{value:n.updateTime},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(n.updateBy))]},proxy:!0},{key:"icon",fn:function(){return[t("van-image",{attrs:{round:"",width:"32px",height:"32px",src:n.avatarUrl}})]},proxy:!0}],null,!0)}),t("van-cell",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(n.fileVer)+" "+e._s(1==n.fileStatus?e.$tx("ecmapp.wflowform.currentVersion","当前版本"):e.$tx("ecmapp.wflowform.historicalVersion","历史版本")))]},proxy:!0},{key:"right-icon",fn:function(){return[t("van-icon",{staticStyle:{padding:"0 10px"},attrs:{id:n.id,name:"ellipsis"},on:{click:function(t){return e.moreBtnClick(n)}}})]},proxy:!0}],null,!0)})],1)})),e.showMoreBtn?t("van-popup",{staticClass:"more-btns",attrs:{teleport:"#"+e.teleportId,"close-on-popstate":!0},model:{value:e.showMoreBtn,callback:function(t){e.showMoreBtn=t},expression:"showMoreBtn"}},[t("div",{staticClass:"btn-item",on:{click:function(t){return e.moreMenuitemClick("view")}}},[t("van-icon",{attrs:{name:"eye-o"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"look",expression:"'look'"}],staticStyle:{"margin-left":"5px"}},[e._v("查看")])],1),t("div",{staticClass:"btn-item",on:{click:function(t){return e.moreMenuitemClick("remove")}}},[t("van-icon",{attrs:{name:"cross"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"del",expression:"'del'"}],staticStyle:{"margin-left":"5px"}},[e._v("删除")])],1),t("div",{staticClass:"btn-item",on:{click:function(t){return e.moreMenuitemClick("download")}}},[t("van-icon",{attrs:{name:"down"}}),t("span",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"download",expression:"'download'"}],staticStyle:{"margin-left":"5px"}},[e._v("下载")])],1)]):e._e()],2),t("van-action-sheet",{attrs:{title:e.$tx("common.attach","附件")+"("+e.attachments.filter((function(e){return"BODY"!==e.fileType})).length+")"},model:{value:e.showAttachmentFile,callback:function(t){e.showAttachmentFile=t},expression:"showAttachmentFile"}},[t("div",{staticClass:"attachmentContent"},[e._l(e.attachments,(function(n,a){return["BODY"!==n.fileType?t("div",{key:a,staticClass:"attachmentContent_son"},[t("div",{staticClass:"icon_left"},[t("svg",{staticClass:"svg-icon-font",staticStyle:{width:"70%",height:"70%",margin:"auto"}},[t("use",{attrs:{"xlink:href":"#icon-file_"+n.fileName.split(".")[1]}})])]),t("div",{staticClass:"content"},[t("div",{staticClass:"name"},[e._v(e._s(n.fileName))]),t("div",{staticClass:"size"},[e._v(e._s(n.fileSize))])]),n.id?t("div",{staticClass:"icon_right",staticStyle:{width:"30px"},on:{click:function(t){return e.attachmentDownloadClick(n)}}},[t("svg",{staticClass:"svg-icon-font",staticStyle:{width:"50%",height:"50%",margin:"auto"}},[t("use",{attrs:{"xlink:href":"#icon-wjzx_downcopy"}})])]):e._e()]):e._e()]}))],2)])],1)},dc=[];function cc(e){return cc="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},cc(e)}function uc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uc=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==cc(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(cc(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function fc(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function pc(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){fc(i,a,o,r,s,"next",e)}function s(e){fc(i,a,o,r,s,"throw",e)}r(void 0)}))}}var mc={name:"BodyFile",components:{},props:{vo:{type:Object,default:function(){return{}}},curTN:{type:Object,default:function(){return{}}},flBodyfile:{type:Object,default:function(){return{file:{name:""}}}},attachments:{type:Array,default:function(){return[]}},wfAttachUrl:{type:String,default:"wfInstance/wfBusiAttach"},accept:{type:String,default:".doc,.pdf,.ofd"},viewer:{type:String,default:"pdfjs"},fuxinBaseUrl:{type:String,default:""},viewerUrlParams:{type:String,default:""},officeType:{type:String,default:"yzh5"},fileNeedSign:{type:Number,default:0},waterMark:{type:Boolean,default:!1},downloadWaterMark:{type:String,default:""},markContent:{type:String,default:""},wflowNavbarList:{type:Array,default:function(){return["form","BodyFile","HandleIdea"]}}},data:function(){return{bodyFileUrl:"",sign:!1,seal:!1,loaded:!0,uploadList:[],sealSource:"biceng",loginUser:this.$store.getters.loginUser,flBodyfileBak:null,wfInstance:{},downloadurl:null,historyDialogVisible:!1,historyFiles:[],showMoreBtn:!1,teleportId:"",clickAttach:null,showAttachmentFile:!1,attachmentsNum:null,pdfSignChange:!1,pdfSealChange:!1,viewBodyFileShow:"",onlineViewer:null}},computed:{},watch:{},created:function(){this.sealSource=this.$vnode.context.wfInstance.passenger.sealType||"biceng",this.wfInstance=this.$vnode.context.wfInstance,this.$bus.on("onTabChanged",this.onTabChanged),this.$bus.on("onUploadProgress",this.onUploadProgress),this.$bus.on("reloadBodyFile",this.reloadBodyFile),this.$bus.on("setBtnSingSave",this.setBtnSingSave),this.$bus.on("setBtnSealSave",this.setBtnSealSave)},beforeDestroy:function(){this.$bus.off("onTabChanged",this.onTabChanged),this.$bus.off("onUploadProgress",this.onUploadProgress),this.$bus.off("reloadBodyFile",this.reloadBodyFile),this.$bus.off("setBtnSingSave",this.setBtnSingSave),this.$bus.off("setBtnSealSave",this.setBtnSealSave)},mounted:function(){},methods:{onTabChanged:function(e){"BodyFile"===this.wflowNavbarList[e]&&this.viewBodyFile(),this.setFooterBtns(e)},viewBodyFile:function(){var e=this;return pc(uc().mark((function t(){var n,a,o,i,r,s,l,d;return uc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.flBodyfile&&void 0!==e.flBodyfile.id){t.next=2;break}return t.abrupt("return");case 2:if(e.viewBodyFileShow="",e.downloadurl=null,e.bodyFileUrl="",e.flBodyfileBak=e.flBodyfile,n=e.flBodyfile.originalName.replace(".des","").replace(".xor","").replace(".rsm3","").replace(".sm4",""),a=n.substring(n.lastIndexOf(".")).toLowerCase(),e.seal=!1,e.$vnode.context.commandBar.forEach((function(t){"btnStampClick"===t.btnCode&&2===e.$vnode.context.wfInstance.haveDoc&&(e.seal=!0)})),1===e.fileNeedSign&&2===e.$vnode.context.wfInstance.haveDoc?e.sign=!0:e.sign=!1,o=e,".ofd"!==a||"fuxin"!==e.viewer){t.next=28;break}return i=location.href.split("#")[0],i.indexOf("/mindex.html")>-1&&(i=i.split("/mindex.html")[0]),t.next=17,e.getSessionId();case 17:return r=t.sent,s=i+"/apigw",s+="/"===e.wfAttachUrl.substring(0,1)?e.wfAttachUrl:"/"+e.wfAttachUrl,s+="/downloadById?attachIds="+e.flBodyfile.id+"&topdf=true",s+="&tSessionId="+r,e.fuxinBaseUrl?(e.fuxinBaseUrl=e.fuxinBaseUrl.replace("/pc/","/mobile/"),e.bodyFileUrl=e.fuxinBaseUrl+"?docuri="+encodeURIComponent(s)):e.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"base/paramConfig/findParamValueByName?orgCode=standard¶mName=fuxin.viewer.url"}).then((function(t){"success"===t.code?(e.fuxinBaseUrl=t.body.value,e.fuxinBaseUrl=e.fuxinBaseUrl.replace("/pc/","/mobile/"),e.bodyFileUrl=e.fuxinBaseUrl+"?docuri="+encodeURIComponent(s)):e.$toast.fail("未配置福星预览地址参数 fuxin.viewer.url")})),console.log("bodyFileUrl=====>",e.bodyFileUrl),e.viewBodyFileShow="ofd",e.$nextTick((function(){document.getElementById("changeScreenH")&&(document.getElementById("changeScreenH").style.display="none")})),o.loaded=!1,t.abrupt("return");case 28:e.viewer="pdfjs",".pdf"!==a&&".pdf.des"!==a&&".pdf.xor"!==a&&".pdf.rsm3"!==a&&".pdf.sm4"!==a||"pdfjs"!==e.viewer&&!e.sign&&!e.seal?".ofd"===a?(e.sign=!1,e.seal=!1,e.viewBodyFileShow="ofd",d="/apigw/"+e.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.flBodyfile.id+"&widthType=auto&viewType=mobile",-1!==e.flBodyfile.fileName.indexOf("{")||-1!==e.flBodyfile.fileName.indexOf("%")||-1!==e.flBodyfile.fileName.indexOf("[")?d+="&fileName="+encodeURI(e.flBodyfile.fileName):d+="&fileName="+e.flBodyfile.fileName,d+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+e.waterMark+"&markContent="+e.markContent,e.bodyFileUrl="./plugins/OfdJs/view.html?file="+encodeURIComponent(d),o.loaded=!1):0===e.viewer.indexOf("dcs=")?(e.sign=!1,e.seal=!1,e.$http({method:"GET",url:"base/user/getSessionId"}).then((function(t){if("success"===t.code){var n=t.body.tSessionId,a=location.href.split("mindex.html")[0],i=a.substring(0,a.length-1)+"/apigw/"+e.wfAttachUrl+"/downloadById?attachIds="+e.flBodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&tSessionId="+n,r="0";".ofd"===e.extName?r="21":".pdf"!==e.extName&&".pdfx"!==e.extName||(r="20"),i=e.viewer.split("=")[1]+"/composite/httpfile?convertType="+r+"&fileUrl="+encodeURIComponent(i),e.viewerUrlParams&&(i+="&"+e.viewerUrlParams),-1===i.indexOf("&acceptTracks=0")&&(i+="&acceptTracks=0"),$.post(i,{},(function(t){o.loaded=!1,0===t.errorcode?o.bodyFileUrl=t.data.viewUrl:e.$dialog.alert({message:t.message})}),"json")}}))):e.downloadurl="/apigw/"+e.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.flBodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+e.waterMark+"&markContent="+e.markContent:(e.viewBodyFileShow="pdf",(e.sign||e.seal)&&(e.waterMark=!1),l="/apigw/"+e.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.flBodyfile.id+"&widthType=auto&viewType=mobile",l+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+e.waterMark+"&markContent="+e.markContent,-1!==e.flBodyfile.fileName.indexOf("{")||-1!==e.flBodyfile.fileName.indexOf("%")||-1!==e.flBodyfile.fileName.indexOf("[")?l+="&fileName="+encodeURI(e.flBodyfile.fileName):l+="&fileName="+e.flBodyfile.fileName,e.bodyFileUrl="./plugins/PDFjs/web/viewer.html?file="+encodeURIComponent(l),e.$nextTick((function(){var e=document.getElementById("pdfHtml");null!=e&&(e.attachEvent?e.attachEvent("onload",(function(){o.loaded=!1})):e.onload=function(){o.loaded=!1})})));case 30:case"end":return t.stop()}}),t)})))()},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)}))}))},reloadBodyFile:function(){var e=this;this.downloadurl=null,this.bodyFileUrl="",this.$nextTick((function(){e.viewBodyFile()}))},setFooterBtns:function(e){var t=this;return pc(uc().mark((function n(){var a,o,i,r,s,l,d,c,u,f,p,m,h,v,g,y,_,b;return uc().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=[],"BodyFile"===t.wflowNavbarList[e]){n.next=5;break}t.$vnode.context.setFooterBtns(),n.next=22;break;case 5:if(!t.pdfSealChange){n.next=8;break}return t.setBtnSealSave(),n.abrupt("return");case 8:if(!t.pdfSignChange){n.next=11;break}return t.setBtnSingSave(),n.abrupt("return");case 11:for(o=0;o<a.length;o++)i=a[o],"btn_submit"!==i.id&&a.splice(o--,1);if(r=!1,"NoTitle"===t.$vnode.context.wfInstance.passenger.docEditMode?(console.log(t.attachments,"attachment"),s=t.attachments.filter((function(e){return"BODY"===e.fileType})),s&&s.length>0&&(1===s.length?r=!0:s.forEach((function(e){var n=e.fileName,a=e.bodyFileName?e.bodyFileName:e.fileName;(a.includes("RedTitle_")||a===t.$vnode.context.vo.flbodyfilename||n===t.$vnode.context.vo.flbodyfilename||n.includes("RedTitle_"))&&(r=!0)})))):r=!0,1===t.curTN.tnCanEdit&&(t.seal&&r&&(l={id:"btn_openDoc",btnName:"盖 章",btnIcon:"upload",btnClick:t.openSeal,btnPermission:"",btnStyleType:"default"},a.splice(0,0,l)),t.sign&&r&&(d={id:"btn_openDoc",btnName:"签 名",btnIcon:"upload",btnClick:t.pdfSign,btnPermission:"",btnStyleType:"default"},a.splice(0,0,d))),t.flBodyfile&&(c={id:"btn_download",btnName:"下 载",btnIcon:"download",btnClick:t.downLoadFile,btnPermission:"",btnStyleType:"default"},a.splice(0,0,c)),t.flBodyfile&&t.flBodyfile.fileId&&(u={id:"btn_historyFiles",btnName:"历史版本",btnIcon:"upload",btnClick:t.btnViewHistoryFilesClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,u)),"ecinc"===window.mappType&&(f={id:"btn_otherApp",btnName:"其它应用打开",btnIcon:"otherApp",btnClick:t.btnOtherAppOpenClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,f)),1===t.curTN.tnCanEdit&&(t.flBodyfile&&t.flBodyfile.id?(m={id:"btn_upload",btnName:"重新上传",btnIcon:"upload",btnClick:t.btnUploadBodyfileClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,m)):(p={id:"btn_upload",btnName:"上传正文",btnIcon:"upload",btnClick:t.btnUploadBodyfileClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,p)),h=t.$vnode.context.commandBar.filter((function(e){if(e.btnShow&&e.btnJavascript&&0===e.btnJavascript.indexOf("btnOpenWordClick"))return!0})),"NoTitle"===t.$vnode.context.wfInstance.passenger.docEditMode&&(v=t.$vnode.context.commandBar.filter((function(e){if(e.btnShow&&e.btnJavascript&&0===e.btnJavascript.indexOf("btnNoTitleModifyFlTypeClick"))return!0})),v.btnClick=t.btnNoTitleModifyFlTypeClick,2===t.$vnode.context.wfInstance.haveDoc&&h.length>0?(v.btnName="重新套红",a.splice(0,0,v)):1===t.$vnode.context.wfInstance.haveDoc&&h.length>0&&(v.btnName="套红",a.splice(0,0,v))),h.length>0&&("wpsh5"===t.officeType||"yzh5"===t.officeType||"ech5"===t.officeType)&&(g={id:"btn_openDoc",btnName:"编辑正文",btnIcon:"upload",btnClick:t.btnOpenWordClick,btnPermission:"",btnStyleType:"default"},a.splice(0,0,g)),t.attachmentsNum=t.attachments.filter((function(e){return"BODY"!==e.fileType})).length,y={id:"btn_attachment",btnName:"附 件(".concat(t.attachmentsNum,")"),btnIcon:"attachment",btnClick:t.attachmentFile,btnPermission:"",btnStyleType:"default"},a.splice(0,0,y)),a.length>3){for(_={id:"btn_upload",btnName:"更 多",btnIcon:"upload",btnPermission:"",btnStyleType:"default",children:[]},b=1;b<a.length-1;b++)a[b].text=a[b].btnName,_.children.push(a[b]),a.splice(b--,1);a.splice(1,0,_)}console.log(a,"footerBtns --- >363"),t.$vnode.context.footerBtns=a;case 22:case"end":return n.stop()}}),n)})))()},openSeal:function(){this.$refs.PdfTools.openSeal(),this.pdfSealChange=!0},setBtnSealSave:function(){this.$vnode.context.footerBtns=[{id:"btn_download",btnName:"保存印章",btnIcon:"download",btnClick:this.pdfSealSave,btnPermission:"",btnStyleType:"info"}]},pdfSealSave:function(){var e=this;return pc(uc().mark((function t(){return uc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.PdfTools.pdfStamp();case 2:e.pdfSealChange=!1,e.setFooterBtns(0);case 4:case"end":return t.stop()}}),t)})))()},pdfSign:function(){this.$refs.PdfTools.openSign(),this.pdfSignChange=!0},setBtnSingSave:function(){this.$vnode.context.footerBtns=[{id:"btn_download",btnName:"保存签名",btnIcon:"download",btnClick:this.pdfSignSave,btnPermission:"",btnStyleType:"info"}]},pdfSignSave:function(){var e=this;return pc(uc().mark((function t(){return uc().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.PdfTools.pdfSign();case 2:e.pdfSignChange=!1,e.setFooterBtns(0);case 4:case"end":return t.stop()}}),t)})))()},attachmentDownloadClick:function(e){if(e.id){var t="";t="/apigw/"+this.wfAttachUrl+"/downloadById?inline=false&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),this.$mappUtils.downLoadAndOpenFile(this,t,e.fileName,e.fileSize)}},attachmentFile:function(){this.attachmentsNum>0&&(this.showAttachmentFile=!0)},btnOtherAppOpenClick:function(){var e="/apigw";e+="/"===this.wfAttachUrl.substring(0,1)?this.wfAttachUrl:"/"+this.wfAttachUrl,e+="/downloadById?topdf=false&attachIds="+this.flBodyfile.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),this.flBodyfile.passenger.downloadUrl=e,this.$wv.showAttachmentOtherApps(this.flBodyfile)},btnUploadBodyfileClick:function(){var e=this;new Promise((function(t,n){e.$vnode.context.wfInstance.haveDoc?e.$dialog.confirm({message:e.$tx("ecmapp.wflowform.coverMainText","重新上传会覆盖现有正文,是否确认?")}).then(pc(uc().mark((function e(){return uc().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t(!0);case 1:case"end":return e.stop()}}),e)})))).catch((function(){n("cancel btnUploadBodyfileClick.")})):t(!0)})).then((function(t){e.uploadList=[],e.$vnode.context.formValidate((function(){e.$vnode.context.submitHandle.submitType="Save",new Promise((function(t,n){e.$vnode.context.formEvents.onWflowFormBeforeSubmit(e.$vnode.context,{resolve:t,reject:n})})).then((function(t){t&&(e.flBodyfile=e.flBodyfileBak,e.$nextTick((function(){var t=e.$el.querySelector(".van-uploader__input");t.click()})))}))}))})).catch((function(e){console.log(e)}))},btnOpenWordClick:function(){var e=this;"NoTitle"===this.$vnode.context.wfInstance.passenger.docEditMode&&2===this.$vnode.context.wfInstance.haveDoc?this.$dialog.confirm({message:this.$tx("ecmapp.wflowform.alreadlyRed","该公文已经套红,重新编辑正文后需要重套红!是否继续?"),title:this.$tx("common.confirm","确认操作")}).then((function(){e.$bus.emit("btnOpenWordClick",e.$vnode.context)})).catch((function(){})):this.$bus.emit("btnOpenWordClick",this.$vnode.context)},btnNoTitleModifyFlTypeClick:function(){this.$bus.emit("btnNoTitleModifyFlTypeClick",this.$vnode.context)},handleUploadExceed:function(e,t){this.$dialog.alert({message:this.$tx("ecmapp.wflowform.beyondUpload",{limitCount:this.limitCount,valLength:e.length,filelength:e.length+t.length},"当前限制选择 ".concat(this.limitCount," 个文件,本次选择了 ").concat(e.length," 个文件,共选择了 ").concat(e.length+t.length," 个文件"))})},handleUploadChange:function(e){var t=this,n=e.file.name,a=n.substring(n.lastIndexOf(".")).toLowerCase();if(-1===this.accept.indexOf(a))return this.$dialog.alert({message:this.$tx("ecmapp.wflowform.errFileFormat",{accept:this.accept.replace(/,/g,"、")},"您上传的文件格式有误,仅支持'".concat(this.accept.replace(/,/g,"、"),"'格式的文件!")),confirmButtonText:this.$tx("common.confirm","确认操作"),type:"warning"}),void(this.fileList=[]);if(this.flBodyfile&&""!==this.flBodyfile.name)for(var o=0;o<this.attachments.length;o++)this.attachments[o].name===this.flBodyfile.name&&"BODY"===this.attachments[o].fileType&&"待上传"===this.attachments[o].uploadTime&&this.attachments.splice(o--,1);var i={};i.fileName=n,i.fileSize=T(e.file.size),i.fileType="BODY",i.uploadBy=this.loginUser.personName,i.uploadTime="待上传",i.uploadStatus="待上传",i.file=e,i.checked=!1,e.progress=0,this.flBodyfile=i,this.$set(this.$vnode.context,"bodyfile",i),this.bodyFileUrl="",this.$nextTick((function(){t.$vnode.context.btnSubmitClick("Save")}))},onUploadProgress:function(e){e.id?(this.flBodyfile.fileName.split(".").length>0&&("doc"===this.flBodyfile.fileName.split(".")[1]||"docx"===this.flBodyfile.fileName.split(".")[1]?this.$vnode.context.commandBar.forEach((function(e){e.btnJavascript&&0===e.btnJavascript.indexOf("btnOpenWordClick")&&(e.btnShow=!0)})):this.$vnode.context.commandBar.forEach((function(e){e.btnJavascript&&0===e.btnJavascript.indexOf("btnOpenWordClick")&&(e.btnShow=!1)}))),this.uploadList=[],this.flBodyfile=e,this.setFooterBtns(),this.viewBodyFile()):100===e.file.process&&(this.uploadList=[]),this.$forceUpdate()},downLoadFile:function(){""===this.downloadWaterMark&&(this.downloadWaterMark=this.waterMark);var e="";null!==this.downloadurl?e=this.downloadurl:(e="/apigw/"+this.wfAttachUrl+"/downloadById?inline=false&attachIds="+this.flBodyfile.id,e+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+this.downloadWaterMark+"&markContent="+this.markContent),"ecinc"===window.mappType?(this.flBodyfile.passenger.downloadUrl=e,this.$wv.downloadAttachment(this.flBodyfile)):this.$mappUtils.downLoadAndOpenFile(this,e,this.flBodyfile.fileName,this.flBodyfile.fileRealSize)},btnViewHistoryFilesClick:function(e){var t=this;this.historyDialogVisible=!0;var n=this.wfAttachUrl+"/listAttach",a=e?e.fileId:this.flBodyfile.fileId;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{pageNum:1,pageSize:1e3,orderBy:"fileVer desc",urlsearch:"fileId:"+a},url:n}).then((function(e){"success"===e.code?t.historyFiles=e.body.pageInfo.list.filter((function(e){return t.flBodyfile.id!==e.id&&1===e.fileStatus&&e.originalName===t.flBodyfile.originalName&&(t.flBodyfile=e,t.$vnode.context.bodyfile=t.flBodyfile,t.reloadBodyFile()),e.updateTime=w(e.updateTime),e.avatarUrl="/apigw/base/user/downloadPhotoByAccount?orgCode="+e.orgCode+"&account="+e.updateBy+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),!0})):t.$dialog.alert({message:e.message,type:"error"})}))},downHistoryFile:function(e){var t="/apigw/"+this.wfAttachUrl+"/downloadById?inline=true&attachIds="+e.id+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&waterMark="+this.waterMark+"&markContent="+this.markContent;this.$mappUtils.downLoadAndOpenFile(this,t,this.flBodyfile.fileName,e.fileRealSize)},moreBtnClick:function(e){this.showMoreBtn=!0,this.teleportId=e.id,this.clickAttach=e},moreMenuitemClick:function(e){var t=this;if(-1!==e.indexOf("view"))this.downHistoryFile(this.clickAttach);else if(-1!==e.indexOf("remove"))this.removeBodyfile(this.clickAttach);else if(-1!==e.indexOf("download")){var n=this.clickAttach.id;this.historyFiles.forEach((function(e){e.fileVer&&e.fileVer===t.clickAttach.fileVer&&e.id!==t.clickAttach.id&&(n+=","+e.id)}));var a="/apigw/"+this.wfAttachUrl+"/downloadById?attachIds="+n+"&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken()+"&saveAs=文件正文_"+this.clickAttach.fileVer+".zip";"ecinc"===window.mappType?(this.clickAttach.passenger.downloadUrl=a,this.$wv.downloadAttachment(this.clickAttach)):window.open(a)}this.showMoreBtn=!1},removeBodyfile:function(e){var t=this,n=this.$tx("ecmapp.wflowform.delCurrentVersion","您是否确认删除当前版本文件?");8===e.fileStatus&&(n=this.$tx("ecmapp.wflowform.delHistoricalVersion","您是否确认删除历史版本文件?"));var a=this;this.$dialog.confirm({message:n}).then(pc(uc().mark((function n(){var o,i,r;return uc().wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(o=e.id,i=e.originalName.substring(0,e.originalName.indexOf(".")),r=0;r<a.attachments.length;r++)a.attachments[r].id&&a.attachments[r].id!==e.id&&a.attachments[r].originalName&&0===a.attachments[r].originalName.indexOf(i)&&(!e.fileVer||e.fileVer&&e.fileVer===a.attachments[r].fileVer)&&(o+=","+a.attachments[r].id);t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{attachIds:o},url:t.wfAttachUrl+"/delete"}).then((function(n){if("success"===n.code){for(var a=0;a<t.attachments.length;a++)t.attachments[a].id!==e.id&&0!==t.attachments[a].originalName.indexOf(i+".pdf")||t.attachments.splice(a--,1);t.btnViewHistoryFilesClick(t.flBodyfile),8!==e.fileStatus&&("undefined"!==typeof t.vo.flBodyFilename&&(t.vo.flBodyFilename=null),"undefined"!==typeof t.vo.signedFileName&&(t.vo.signedFileName=null),"undefined"!==typeof t.vo.sealFileName&&(t.vo.sealFileName=null),t.$vnode.context.commandBar.forEach((function(e){"btnOpenWordClick"===e.btnCode&&(e.btnShow=!0)})),n.body.restoreHistoryFile||(t.flBodyfile={file:{name:""}},t.$vnode.context.bodyfile=t.flBodyfile,t.$vnode.context.wfInstance.haveDoc=0),t.$vnode.context.btnSubmitClick("Save"))}else t.$dialog.alert({message:n.message,type:"error"})}));case 4:case"end":return n.stop()}}),n)}))))}}},hc=mc,vc=(a(4270),(0,Ca.A)(hc,lc,dc,!1,null,"4602c485",null)),gc=vc.exports,yc=function(){var e=this,t=e._self._c;return t("div",[e.showIdea>0?t("div",{staticClass:"handle-idea-container van-wform-operate-cell"},[e.separateTopShow?t("div",{staticClass:"form-slicer"}):e._e(),e.showHandleTitle?t("van-cell-group",[t("van-cell",{attrs:{title:e.$tx("ecmapp.wflowform.handlingSuggestions","处理意见")},on:{click:function(t){e.showHandleIdea=!e.showHandleIdea}}},[[e._v(" "+e._s(e.showHandleIdea?e.$tx("ecmapp.pageBtns.fold","折叠"):e.$tx("ecmapp.pageBtns.open","展开"))+" "),t("van-icon",{class:e.showHandleIdea?"icon-play-up":"icon-play-down",attrs:{name:"play"}})]],2)],1):e._e(),e.showHandleIdea?t("div",[e._l(e.wfIdeaList,(function(n,a){return[[e.showEmptyLabel||null!==n.ideaContent&&""!==n.ideaContent?t("div",{key:a,staticStyle:{background:"#fff"},attrs:{title:n.ideaLabelName}},[t("div",{directives:[{name:"wfIdea-lbl",rawName:"v-wfIdea-lbl",value:n.i18nCode,expression:"wfIdea.i18nCode"}],staticStyle:{padding:"10px 12px","font-size":"14px",color:"#303133"}},[e._v(e._s(n.ideaLabelName))]),e.handleArr[a].length>0?[e._l(e.handleArr[a],(function(n,a){return[n.show?t("div",{key:a,staticClass:"HandleIdeaContent"},[t("div",{domProps:{innerHTML:e._s(""===n.content?e.$tx("ecmapp.common.nothing","无"):n.content)}})]):e._e()]})),e.handleArr[a].length>2?[e.handleArr[a][2].show?t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookTow(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookAll(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAllOpinions",expression:"'ecmapp.wflowform.viewAllOpinions'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部意见")]),t("van-icon",{attrs:{name:"arrow-down"}})],1)]:e._e()]:t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.common.nothing",expression:"'ecmapp.common.nothing'"}],staticClass:"HandleIdeaContent"},[e._v("无")])],2):e._e(),[t("div",{key:a,staticClass:"form-slicer"})]]]}))],2):e._e()],1):t("div",{staticClass:"handle-idea-container van-wform-operate-cell"},[t("div",{staticClass:"form-slicer"}),t("van-cell-group",[t("van-cell",{attrs:{title:e.$tx("ecmapp.wflowform.handlingSuggestions","处理意见"),"is-link":""},on:{click:function(t){e.showHandleIdea=!e.showHandleIdea}}})],1),t("PopupDialog",{attrs:{showpop:e.showHandleIdea,title:e.$tx("ecmapp.wflowform.handlingSuggestions","处理意见")},on:{"update:showpop":function(t){e.showHandleIdea=t}}},[t("div",[e._l(e.wfIdeaList,(function(n,a){return[[e.showEmptyLabel||null!==n.ideaContent&&""!==n.ideaContent?t("div",{key:a,staticStyle:{background:"#fff"},attrs:{title:n.ideaLabelName}},[t("div",{directives:[{name:"wfIdea-lbl",rawName:"v-wfIdea-lbl",value:n.i18nCode,expression:"wfIdea.i18nCode"}],staticStyle:{padding:"10px 12px","font-size":"14px",color:"#303133"}},[e._v(e._s(n.ideaLabelName))]),e.handleArr[a].length>0?[e._l(e.handleArr[a],(function(n,a){return[n.show?t("div",{key:a,staticClass:"HandleIdeaContent"},[t("div",{domProps:{innerHTML:e._s(""===n.content?e.$tx("ecmapp.common.nothing","无"):n.content)}})]):e._e()]})),e.handleArr[a].length>2?[e.handleArr[a][2].show?t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookTow(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):t("div",{staticClass:"viewAllComments",on:{click:function(t){return e.clickLookAll(e.handleArr[a])}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAllOpinions",expression:"'ecmapp.wflowform.viewAllOpinions'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部意见")]),t("van-icon",{attrs:{name:"arrow-down"}})],1)]:e._e()]:t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.common.nothing",expression:"'ecmapp.common.nothing'"}],staticClass:"HandleIdeaContent"},[e._v("无")])],2):e._e(),[t("div",{key:a,staticClass:"form-slicer"})]]]}))],2)])],1),t("van-button",{directives:[{name:"show",rawName:"v-show",value:e.flse,expression:"flse"}],staticClass:"startChatBtn",on:{click:e.startChat}}),t("van-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"donext-attachBtn",on:{click:e.todownload}})],1)},_c=[];window.startChat=function(e){document.querySelector(".startChatBtn").staffId=e,document.querySelector(".startChatBtn").click()},window.todownload=function(e){console.log(e),document.querySelector(".donext-attachBtn").downUrl=e.split(",")[0],document.querySelector(".donext-attachBtn").fileName=e.split(",")[1],document.querySelector(".donext-attachBtn").fileRealSize=e.split(",")[2],document.querySelector(".donext-attachBtn").click()};var bc={name:"HandleIdea",components:{},props:{wfIdeaList:{type:Array,default:function(){return[]}},showIdea:{type:Number,default:function(){return 0}},showEmptyLabel:{type:Boolean,default:!0},showHandleTitle:{type:Boolean,default:!0},defaultCommentsNum:{type:Number,default:function(){return 3}},separateTopShow:{type:Boolean,default:!1}},data:function(){return{showHandleIdea:!1,collapseNames:[],viewCommentsNum:null,handleArr:[],anywhereChat:window.anywhereChat||!1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{showIdea:function(){this.setFormShowIdea()},showHandleIdea:function(){var e=this;setTimeout((function(){e.showDoNextAttach()}),0)}},created:function(){var e=this;this.viewCommentsNum=this.defaultCommentsNum,this.$vnode.context.wfInstance&&void 0!==this.$vnode.context.wfInstance.passenger.h5formShowIdea&&this.$set(this.$vnode.context,"showIdea",this.$vnode.context.wfInstance.passenger.h5formShowIdea),this.setFormShowIdea(),this.wfIdeaList.forEach((function(t,n){if(e.collapseNames.push(n),t.ideaContent){var a=t.ideaContent.match(/<div class="ideaDiv(.*?)<\/div>/g),o=[];a&&a.forEach((function(e,t){t<2?o.push({show:!0,content:e}):o.push({show:!1,content:e})})),e.handleArr.push(o)}else e.handleArr.push([])})),this.loginUser.webchat||(this.anywhereChat=!1)},updated:function(){var e=this,t=document.querySelectorAll(".ideaDiv");t&&this.anywhereChat&&t.forEach((function(t){if(t.innerText!==e.$tx("ecmapp.common.nothing","无")&&""!==t.innerText&&t.innerText!==e.$tx("ecmapp.common.nothing","无")&&t.attributes["staffId"]){var n=t.attributes["staffId"].nodeValue;if(n){var a=!1;e.loginUser.staffList.forEach((function(e){n===e.id&&(a=!0)})),a||(t.innerHTML+='<a href="javascript:" onclick="startChat(\''+n+'\')"><i data-v-5c359387="" class="idea-start-chat van-icon van-icon-chat-o"></i></a>')}}}))},beforeDestroy:function(){},mounted:function(){var e=this;setTimeout((function(){e.showDoNextAttach()}),0)},methods:{clickLookAll:function(e){e.forEach((function(e){e.show=!0}))},clickLookTow:function(e){e.forEach((function(e,t){t>1&&(e.show=!1)}))},setFormShowIdea:function(){var e=this;this.showIdea>0?this.showHandleIdea=!0:this.showHandleIdea=!1,this.collapseNames=[],1!==this.showIdea&&this.wfIdeaList.forEach((function(t,n){e.collapseNames.push(n)}))},onCollapseChange:function(e){this.showDoNextAttach()},showDoNextAttach:function(){var e=this,t=this.$vnode.context.attachments;t.forEach((function(t){if("DONEXT"===t.fileType){var n=t.updateBy.split("_")[1],a=document.querySelectorAll(".ideaDiv");a.forEach((function(a){if(-1!==a.innerHTML.indexOf(n)&&-1===a.querySelector(".donext-attach").innerHTML.indexOf(t.id)){var o="/apigw/"+e.$vnode.context.wfAttachUrl+"/downloadById?inline=true&attachIds="+t.id;o+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),a.querySelector(".donext-attach").innerHTML+='<a href="javascript:" onclick="todownload(\''+o+","+t.fileName+","+t.fileRealSize+'\')"><svg data-v-877131dc="" data-v-69d5d2f1="" aria-hidden="true" class="svg-icon disabled"><use data-v-877131dc="" xlink:href="#icon-attachIcon"></use></svg> </a>',a.querySelector(".donext-attach").className="donext-attach el-link el-link--primary"}}))}}))},todownload:function(){var e=document.querySelector(".donext-attachBtn").downUrl,t=document.querySelector(".donext-attachBtn").fileName,n=document.querySelector(".donext-attachBtn").fileRealSize;this.$mappUtils.downLoadAndOpenFile(this,e,t,n)},startChat:function(){var e=this,t=document.querySelector(".startChatBtn").staffId;this.$http({method:"GET",params:{staffIds:t},url:"base/organMgr/findLinkManListByStaffIds"}).then((function(t){if("success"===t.code)if(t.body.listdata[0].webchat="23234",t.body.listdata.length>0&&t.body.listdata[0].webchat){var n=encodeURIComponent(location.href.split("#")[1]),a=t.body.listdata[0].webchat;e.$router.push({path:"/chatRoom",query:{webchat:a,openType:"singleChat",from:n}})}else e.$dialog.alert({message:e.$tx("ecmapp.wflowform.notActivated","未开通即时通信功能")});else e.$dialog.alert({message:res.message})}))}}},wc=bc,xc=(a(4188),a(205),(0,Ca.A)(wc,yc,_c,!1,null,"436c37ca",null)),Mc=xc.exports,kc=function(){var e=this,t=e._self._c;return t("PopupDialog",{attrs:{showpop:e.popupDialogVisible,title:e.title,"on-cancel":e.dialogClose},on:{"update:showpop":function(t){e.popupDialogVisible=t}}},[e._l(e.outerDeputys,(function(n,a){return t("div",{key:a,staticClass:"outer-deputy-selector"},[t("van-cell-group",[t("van-field",{attrs:{label:e.$tx("ecmapp.wflowform.outwardPeople","外出人"),readonly:""},model:{value:n.travelPeople,callback:function(t){e.$set(n,"travelPeople",t)},expression:"item.travelPeople"}})],1),t("van-cell-group",[t("van-cell",{attrs:{title:e.$tx("ecmapp.wflowform.sendToMe","送本人")}},[t("van-switch",{attrs:{slot:"right-icon",size:"20px"},slot:"right-icon",model:{value:n.invalid,callback:function(t){e.$set(n,"invalid",t)},expression:"item.invalid"}})],1),n.invalid?e._e():t("van-radio-group",{model:{value:n.deputy,callback:function(t){e.$set(n,"deputy",t)},expression:"item.deputy"}},e._l(n.deputys,(function(e,n){return t("van-cell",{key:n,attrs:{title:e.deputyPeople}},[t("van-radio",{attrs:{slot:"right-icon",name:e},slot:"right-icon"})],1)})),1)],1)],1)})),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.submitSelectOuterDeputyForm}},[e._v("确 定")])],1)],2)},Lc=[],Sc={name:"SelectOuterDeputy",components:{},props:{},data:function(){return{title:this.$tx("ecmapp.wflowform.selectAgent","选择代理人"),popupDialogVisible:!1,outerDeputys:[],submitRoute:null,outerDeputyResolve:null}},computed:{},watch:{},created:function(){this.$bus.on("selectOuterDeputys",this.selectOuterDeputys)},beforeDestroy:function(){this.$bus.on("selectOuterDeputys",this.selectOuterDeputys)},mounted:function(){},methods:{selectOuterDeputys:function(e,t,n){e.forEach((function(e){e.travelPeople=e.travelFullName.replace(/\:/g,"\\"),e.deputys.forEach((function(e){e.deputyPeople=e.deputyFullName.replace(/\:/g,"\\")}))})),this.outerDeputys=e,this.submitRoute=t,this.outerDeputyResolve=n,this.popupDialogVisible=!0},submitSelectOuterDeputyForm:function(){var e=this;this.outerDeputys.forEach((function(t){if(!t.invalid){var n=e.$vnode.context.wfJsonData.routes[e.submitRoute.index].taskNodes;for(var a in e.submitRoute)if(e.submitRoute[a].users)for(var o=0;o<n.length;o++)n[o].name===a&&"3"!==n[o].type&&e.submitRoute[a].users.forEach((function(e){e.id===t.id?e.deputy=t.deputy:e.collapseNodes&&e.collapseNodes.forEach((function(e){e.id===t.id&&(e.deputy=t.deputy)}))}))}})),this.outerDeputyResolve({code:"success",message:this.$tx("ecmapp.wflowform.selectedOutAgent","已选择外出代理人。")}),this.handleDialogClose()},handleDialogClose:function(){this.popupDialogVisible=!1,this.outerDeputys=[],this.outerDeputyResolve=null},dialogClose:function(){this.$bus.emit("submitformDoing",!1),this.handleDialogClose()}}},Tc=Sc,Dc=(a(2400),(0,Ca.A)(Tc,kc,Lc,!1,null,"6850137e",null)),Nc=Dc.exports,Ac=function(){var e=this,t=e._self._c;return e.initiated?t("div",{staticClass:"submit-handle-container"},[e.isUdmNodes&&e.wfInstance.udmNodes&&0!==e.curTN.modifyUdmNode&&e.curTN.userAccount==e.wfInstance.creatorAccount?t("div",{staticClass:"form-slicer"}):e._e(),e.isUdmNodes&&e.wfInstance.udmNodes&&0!==e.curTN.modifyUdmNode&&e.curTN.userAccount==e.wfInstance.creatorAccount?t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell"},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"defineSteps",expression:"'defineSteps'"}],attrs:{title:"流程环节"}},[t("van-icon",{staticStyle:{"margin-top":"2px"},attrs:{name:"add-o",size:"20px"},on:{click:e.addUdmNode}})],1),e._l(e.wfInstance.udmNodes,(function(n,a){return t("van-cell",{key:a,attrs:{title:n.name,value:n.userNames||n.orgNames||n.workgroupNames||n.jobPositionNames},on:{click:function(t){return e.editUdmNode(n)}}},[t("template",{slot:"title"},[t("span",{directives:[{name:"wfnode-lbl",rawName:"v-wfnode-lbl",value:n.i18nCode,expression:"taskNode.i18nCode"}]},[e._v(e._s(n.name))])]),t("div",{staticClass:"delete-icon"},[t("van-icon",{attrs:{color:"#1989fa",name:"edit"},on:{click:function(t){return t.stopPropagation(),e.editUdmNode(n)}}}),e.chartData?e._e():t("van-icon",{attrs:{color:0==a?"#f3a3a3":"#ee0a24",name:"cross"},on:{click:function(t){return t.stopPropagation(),e.delUdmNode(a)}}})],1)],2)}))],2):e._e(),e.wfJsonData&&e.wfJsonData.routes&&e.wfJsonData.routes.length>0?e._t("default",(function(){return[null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID?t("div",{staticClass:"form-slicer"}):e._e(),null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID?t("div",{staticClass:"input-ideas"},[t("van-cell-group",[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"writeOpinion",expression:"'writeOpinion'"}],attrs:{title:"填写意见"}})],1),t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"curUserIdea",expression:"'curUserIdea'"}],staticClass:"curIdea-filed",attrs:{label:"处理意见",type:"textarea",placeholder:"请填写处理意见",rows:"2",autosize:""},model:{value:e.submitHandle.curUserIdea,callback:function(t){e.$set(e.submitHandle,"curUserIdea",t)},expression:"submitHandle.curUserIdea"}}),t("van-cell",{staticClass:"idea-button-container",scopedSlots:e._u([{key:"default",fn:function(){return[t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"stagingComOpinion",expression:"'stagingComOpinion'"}],attrs:{type:"default",size:"small",hairline:""},on:{click:function(t){return e.saveCurTNIdea()}}},[e._v("暂存处理意见")]),t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"saveComOpinion",expression:"'saveComOpinion'"}],attrs:{type:"default",size:"small",hairline:""},on:{click:function(t){return e.saveCommonIdea()}}},[e._v("保存常用意见")]),t("van-button",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectComOpinion",expression:"'selectComOpinion'"}],attrs:{type:"default",size:"small",hairline:""},on:{click:function(t){return e.applyCommonIdea()}}},[e._v("选择常用意见")])]},proxy:!0}],null,!1,2817145136)}),1===e.curTN.tnIdeaAttachment||9===e.curTN.tnIdeaAttachment?t("div",{staticClass:"van-area-field"},[t("Attachment",{ref:"attachments",attrs:{vo:e.busiData,"can-edit":1,"cur-t-n":e.curTN,"is-required":0,title:e.$tx("ecmapp.wflowform.opinionattach","意见附件"),accept:e.ideaAttachAccept,"empty-message":"","wf-attach-url":"","limit-count":1,"online-editor":"","online-file":"",attachments:e.attachments,"attachs-type":"DONEXT","show-attachments":!0}})],1):e._e()],1):e._e(),t("div",{staticClass:"form-slicer"}),t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[t("van-field",{directives:[{name:"show",rawName:"v-show",value:90===e.curTN.tnIdeaShowScope,expression:"curTN.tnIdeaShowScope === 90"},{name:"field-lbl",rawName:"v-field-lbl",value:"ideaShowScope",expression:"'ideaShowScope'"}],attrs:{label:"意见可见范围","is-link":!0,"input-align":"right",readonly:!0},on:{click:e.setIdeaShowScope}},[t("div",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.ideaShowScope,expression:"ideaShowScope"}],attrs:{slot:"input"},slot:"input"},[e._v(e._s(e.ideaShowScope))])])],1),t("div",{staticClass:"form-slicer"}),["radio"!==e.selectPathType?t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"submitPath",expression:"'submitPath'"}],attrs:{label:"提交路径","is-link":e.wfJsonData.routes.length>1,"input-align":"right",readonly:!0},on:{click:function(t){return e.initSubmitHandle("dialog")}}},[t("div",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.wfJsonData.routes[e.submitHandle.route.index].i18nCode,expression:"wfJsonData.routes[submitHandle.route.index].i18nCode"}],attrs:{slot:"input"},slot:"input"},[e._v(e._s(e.wfJsonData.routes[e.submitHandle.route.index].name))])])],1):[t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"submitPath",expression:"'submitPath'"}],attrs:{label:"提交路径","is-link":!1,"input-align":"right",readonly:!0}},[t("div",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.wfJsonData.routes[e.submitHandle.route.index].i18nCode,expression:"wfJsonData.routes[submitHandle.route.index].i18nCode"}],attrs:{slot:"input"},slot:"input"},[e._v(e._s(e.wfJsonData.routes[e.submitHandle.route.index].name))])])],1),t("van-radio-group",{model:{value:e.submitHandle.route.index,callback:function(t){e.$set(e.submitHandle.route,"index",t)},expression:"submitHandle.route.index"}},[t("van-cell-group",e._l(e.wfJsonData.routes,(function(n,a){return t("van-cell",{directives:[{name:"wfpath-lbl",rawName:"v-wfpath-lbl",value:e.wfJsonData.routes[e.submitHandle.route.index].i18nCode,expression:"wfJsonData.routes[submitHandle.route.index].i18nCode"}],attrs:{title:n.name,clickable:""},on:{click:function(t){return e.initSubmitHandle("radio")}},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-radio",{attrs:{name:a}})]},proxy:!0}],null,!0)})})),1)],1),t("div",{staticClass:"form-slicer"})]],t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell-path"},[e._l(e.wfJsonData.routes[e.submitHandle.route.index].taskNodes,(function(n,a){return[n.users.some((function(e){return e.orgLevel||e.olevel||e.nLevel||"asyncLoadingUsers"===e.type}))&&n.users.some((function(e){return e.orgId||e.groupId||"asyncLoadingUsers"===e.type}))&&!n.users.some((function(e){return e.collapse}))?[0!==n.showNodeUsers&&e.submitHandle.route[n.name]?t("van-field",{directives:[{name:"wfnode-lbl",rawName:"v-wfnode-lbl",value:n.i18nCode,expression:"wfnode.i18nCode"}],key:a,attrs:{label:n.name,"is-link":e.submitHandle.route[n.name].isLink&&2!==n.showNodeUsers,"input-align":"right",readonly:!0,multiple:0!==n.todoMode&&"0"!==n.todoMode},on:{click:function(t){return e.selectWfNodeUser(n.name,n)}},model:{value:e.submitHandle.route[n.name].showUsers,callback:function(t){e.$set(e.submitHandle.route[n.name],"showUsers",t)},expression:"submitHandle.route[wfnode.name].showUsers"}}):e._e()]:[t("div",{key:a,staticClass:"selectBox"},[t("div",{staticClass:"selectBox_title"},[t("div",{directives:[{name:"wfnode-lbl",rawName:"v-wfnode-lbl",value:n.i18nCode,expression:"wfnode.i18nCode"}],staticStyle:{"font-weight":"700",color:"#333333"}},[e._v(e._s(n.name))]),t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectedPeople",expression:"'selectedPeople'"}],staticStyle:{color:"#666666"},attrs:{dataType:n.users.filter((function(e){return e.changed})).length}},[e._v("当前已选:"+e._s(n.users.filter((function(e){return e.changed})).length)+"人")])]),n.users.some((function(e){return e.collapse}))?t("div",{staticClass:"selectBox_content"},[e._l(n.users.filter((function(e){return e.collapse&&e.orgLevel})),(function(a,o){return[o<e.viewCommentsNum?t("div",{key:o,staticClass:"selectBox_content_sonall",class:a.changed?"selectBox_content_son_change":"selectBox_content_son",on:{click:function(t){return e.selectBanlFn(a,n.users,n)}}},[e._v(e._s(a.name))]):e._e()]})),e.viewCommentsNum<=e.defaultNumber&&n.users.filter((function(e){return e.collapse&&e.orgLevel})).length>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=n.users.length}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAll",expression:"'ecmapp.wflowform.viewAll'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部")]),t("van-icon",{attrs:{name:"arrow-down"}})],1):e._e(),e.viewCommentsNum>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=e.defaultNumber}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):e._e()],2):t("div",{staticClass:"selectBox_content"},[e._l(n.users,(function(a,o){return[o<e.viewCommentsNum?t("div",{key:o,staticClass:"selectBox_content_sonall",class:a.changed?"selectBox_content_son_change":"selectBox_content_son",on:{click:function(t){return e.selectBanlFn(a,n.users,n)}}},[e._v(e._s(a.name))]):e._e()]})),e.viewCommentsNum<=e.defaultNumber&&n.users.length>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=n.users.length}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.wflowform.viewAll",expression:"'ecmapp.wflowform.viewAll'"}],staticStyle:{"margin-right":"4px"}},[e._v("查看全部")]),t("van-icon",{attrs:{name:"arrow-down"}})],1):e._e(),e.viewCommentsNum>e.defaultNumber?t("div",{staticClass:"viewAllComments",on:{click:function(t){e.viewCommentsNum=e.defaultNumber}}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecmapp.pageBtns.retract",expression:"'ecmapp.pageBtns.retract'"}],staticStyle:{"margin-right":"4px"}},[e._v("收起")]),t("van-icon",{attrs:{name:"arrow-up"}})],1):e._e()],2)])]]}))],2),e.showTimeLimit?t("div",{staticClass:"form-slicer"}):e._e(),e.showTimeLimit?t("van-cell-group",{staticClass:"van-wflow-operate-detail-cell tnLimit-container"},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"handleLimint",expression:"'handleLimint'"}],attrs:{title:"处理时限"}}),e._l(e.wfJsonData.routes[e.submitHandle.route.index].taskNodes,(function(n,a){return[9!=n.tmLmtType&&1==n.tmLmtCanEdit?t("van-cell",{key:a,attrs:{title:n.name+"("+(1==n.tmLmtType?e.$tx("ecmapp.wflowform.byWorkDay","按工作日"):e.$tx("ecmapp.wflowform.byNaturalDay","按自然日"))+")"}},[t("van-field",{staticClass:"timiLimitInput",attrs:{type:"digit",maxlength:"2","input-align":"right"},on:{focus:e.timeLimitInputFocus,blur:e.timeLimitInputBlur},scopedSlots:e._u([{key:"label",fn:function(){},proxy:!0}],null,!0),model:{value:n.timeLimit,callback:function(t){e.$set(n,"timeLimit",t)},expression:"wfnode.timeLimit"}}),t("van-field",{staticClass:"timiLimitHourInput",attrs:{type:"digit",maxlength:"2","input-align":"right"},on:{focus:e.timeLimitInputFocus,blur:e.timeLimitInputHourBlur},scopedSlots:e._u([{key:"label",fn:function(){},proxy:!0}],null,!0),model:{value:n.timeLimitHour,callback:function(t){e.$set(n,"timeLimitHour",t)},expression:"wfnode.timeLimitHour"}})],1):e._e()]}))],2):e._e(),t("div",{staticClass:"form-slicer"}),t("van-cell-group",{class:{"van-wform-assist":e.showAssistants}},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"assistHandling",expression:"'assistHandling'"}],attrs:{title:"辅助办文"},on:{click:e.switchAssistants}},[[e._v(" "+e._s(e.showAssistants?e.$tx("ecmapp.pageBtns.fold","折叠"):e.$tx("ecmapp.pageBtns.open","展开"))+" "),t("van-icon",{class:e.showAssistants?"icon-play-up":"icon-play-down",attrs:{name:"play"}})]],2)],1),t("van-cell-group",{directives:[{name:"show",rawName:"v-show",value:e.showAssistants,expression:"showAssistants"}],staticClass:"van-wflow-operate-detail-cell"},[null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID||e.noIdeaSubmitTemplate?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"selectTemplate",expression:"'selectTemplate'"}],attrs:{title:"选择办理模板","is-link":""},on:{click:e.applySubmitTemplate}}):e._e(),null!==e.curTN.tnIdeaLabelID&&""!==e.curTN.tnIdeaLabelID||e.noIdeaSubmitTemplate?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"saveTemplate",expression:"'saveTemplate'"}],attrs:{title:"保存办理模板","is-link":""},on:{click:e.saveSubmitTemplate}}):e._e(),null!==e.msgTypeOptions&&e.msgTypeOptions.length>0?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"selectReminderMethod",expression:"'selectReminderMethod'"}],attrs:{title:"选择提醒方式",value:e.msgType,"is-link":""},on:{click:e.selectMsgType}}):e._e(),null===e.msgTypeOptions?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"smsNotice",expression:"'smsNotice'"}],attrs:{title:"短信通知"}},[t("van-switch",{attrs:{size:"20px"},on:{change:e.assistantsChange},model:{value:e.askSMS,callback:function(t){e.askSMS=t},expression:"askSMS"}})],1):e._e(),e.disabledKeepConcern?e._e():t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stayTuned",expression:"'stayTuned'"}],attrs:{title:"保持关注"}},[t("van-switch",{attrs:{size:"20px"},on:{change:e.assistantsChange},model:{value:e.keepConcern,callback:function(t){e.keepConcern=t},expression:"keepConcern"}})],1)],1),e._t("shortcutButton")]})):e._e(),e.popupDialogVisible?t("PopupDialog",{attrs:{showpop:e.popupDialogVisible,title:e.popupTitle,"on-cancel":e.closePopupDialog},on:{"update:showpop":function(t){e.popupDialogVisible=t}}},[t("div",{staticClass:"popup-content"},[""!=e.popupTitle?t("Basicform",{attrs:{"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(n){return[t("busi-form",{attrs:{vo:n?n.vo:e.formVo,"can-edit":1,"module-info":e.submitTemplateModuleInfo}})]}}],null,!1,1637533502)}):e._e()],1)]):e._e(),e.wfNodeDialogVisible?t("PopupDialog",{attrs:{showpop:e.wfNodeDialogVisible,title:e.$tx("ecmapp.wflowform.stepSetting","环节设置"),"on-cancel":e.closePopupDialog},on:{"update:showpop":function(t){e.wfNodeDialogVisible=t}}},[t("WfTaskNode",{attrs:{"task-node":e.udmNode,"idea-lables":e.wfJsonData.ideaLables}})],1):e._e()],2):e._e()},Yc=[],Cc=function(){var e=this,t=e._self._c;return t("div",[t("van-cell-group",[t("div",{staticClass:"van-input-field"},[t("validation-provider",{staticClass:"cell_item",attrs:{name:e.$tx("ecmapp.wflowform.fields.linkName","环节名称"),rules:{required:!0}},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"linkName",expression:"'linkName'"}],attrs:{readonly:!e.canModify,label:"环节名称",placeholder:"请输入",error:void 0!==a&&void 0!==a[0]||e.iserror,"input-align":"right",maxlength:20},model:{value:e.taskNode.name,callback:function(t){e.$set(e.taskNode,"name",t)},expression:"taskNode.name"}})]}}])})],1),t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecmapp.wflowform.fields.taskType","任务类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"taskType",expression:"'taskType'"}],attrs:{disabled:!e.canModify,label:"任务类型",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("任务类型","todoMode")}},model:{value:e.todoMode,callback:function(t){e.todoMode=t},expression:"todoMode"}})]}}])})],1),t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecmapp.wflowform.fields.handleMethod","处理人选择方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"handleMethod",expression:"'handleMethod'"}],attrs:{label:"处理人选择方式",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("处理人选择方式","selectType")}},model:{value:e.selectType,callback:function(t){e.selectType=t},expression:"selectType"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.taskNode.selectType||9==e.taskNode.selectType,expression:"taskNode.selectType == 0 || taskNode.selectType == 9"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"组织机构级别",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"组织机构级别",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("组织机构级别","orgLevel")}},model:{value:e.orgLevel,callback:function(t){e.orgLevel=t},expression:"orgLevel"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:(0==e.taskNode.selectType||9==e.taskNode.selectType)&&1!=e.taskNode.orgLevel&&5!=e.taskNode.orgLevel,expression:"(taskNode.selectType == 0 || taskNode.selectType == 9) && taskNode.orgLevel != 1 && taskNode.orgLevel != 5"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"机构筛选方式",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"机构筛选方式",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("机构筛选方式","orgStaffFilterType")}},model:{value:e.orgStaffFilterType,callback:function(t){e.orgStaffFilterType=t},expression:"orgStaffFilterType"}})]}}])})],1),0==e.taskNode.selectType&&1==e.taskNode.orgStaffFilterType||1==e.taskNode.selectType||3==e.taskNode.selectType||7==e.taskNode.selectType?t("div",{staticClass:"van-input-field"},[3==e.taskNode.selectType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdPersonal",expression:"'zdPersonal'"}],attrs:{label:"处理人指定人员",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("staff","userNames")}},model:{value:e.taskNode.userNames,callback:function(t){e.$set(e.taskNode,"userNames",t)},expression:"taskNode.userNames"}}):e._e(),0==e.taskNode.selectType&&1==e.taskNode.orgStaffFilterType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdDept",expression:"'zdDept'"}],attrs:{label:"处理人指定部门",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("suborg","orgNames")}},model:{value:e.taskNode.orgNames,callback:function(t){e.$set(e.taskNode,"orgNames",t)},expression:"taskNode.orgNames"}}):e._e(),1==e.taskNode.selectType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdGroup",expression:"'zdGroup'"}],attrs:{label:"处理人指定群组",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("workgroup","workgroupNames")}},model:{value:e.taskNode.workgroupNames,callback:function(t){e.$set(e.taskNode,"workgroupNames",t)},expression:"taskNode.workgroupNames"}}):e._e(),7==e.taskNode.selectType?t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdJobPostion",expression:"'zdJobPostion'"}],attrs:{label:"处理人指定岗位",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode,readonly:e.taskNode.startNode},on:{click:function(t){return e.openSelectDialog("jobPosition","jopPositionNames")}},model:{value:e.taskNode.jopPositionNames,callback:function(t){e.$set(e.taskNode,"jopPositionNames",t)},expression:"taskNode.jopPositionNames"}}):e._e()],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.taskNode.selectType||6==e.taskNode.selectType,expression:"taskNode.selectType == 0 || taskNode.selectType == 6"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"机构参与人",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"机构参与人",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("机构参与人","orgStaffType")}},model:{value:e.orgStaffType,callback:function(t){e.orgStaffType=t},expression:"orgStaffType"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:9==e.taskNode.selectType,expression:"taskNode.selectType == 9"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"处理人职级",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"处理人职级",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("处理人职级","orgStaffType")}},model:{value:e.orgStaffType,callback:function(t){e.orgStaffType=t},expression:"orgStaffType"}})]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2==e.taskNode.selectType,expression:"taskNode.selectType == 2"}],staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"指定历史节点",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"指定历史节点",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("指定历史节点","historyNodeId")}},model:{value:e.taskNode.historyNodeId,callback:function(t){e.$set(e.taskNode,"historyNodeId",t)},expression:"taskNode.historyNodeId"}})]}}])})],1),t("div",{staticClass:"van-input-field"},[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"editPermissions",expression:"'editPermissions'"}],attrs:{center:"",title:"编辑权限"},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-switch",{attrs:{disabled:!e.canModify,"active-value":1,"inactive-value":0,size:"24"},model:{value:e.taskNode.canEdit,callback:function(t){e.$set(e.taskNode,"canEdit",t)},expression:"taskNode.canEdit"}})]},proxy:!0}])})],1),t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecmapp.wflowform.fields.opinionLabel","处理意见标签"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"opinionLabel",expression:"'opinionLabel'"}],attrs:{label:"处理意见标签",placeholder:"请选择","input-align":"right","is-link":e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("处理意见标签","ideaLable")}},model:{value:e.ideaLable,callback:function(t){e.ideaLable=t},expression:"ideaLable"}})]}}])})],1),""!=e.taskNode.ideaLable&&"无"!=e.taskNode.ideaLable?t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"是否需要意见附件",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"是否需要意见附件",placeholder:"请选择","input-align":"right","is-link":e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("是否需要意见附件","isIdeaAttachment")}},model:{value:e.isIdeaAttachment,callback:function(t){e.isIdeaAttachment=t},expression:"isIdeaAttachment"}})]}}],null,!1,2181530220)})],1):e._e(),""!=e.taskNode.ideaLable&&"无"!=e.taskNode.ideaLable?t("div",{staticClass:"van-input-field"},[t("validation-provider",{ref:"ValidationProvider",attrs:{name:"是否可以退回",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(n){n.errors;return[t("van-field",{attrs:{label:"是否可以退回",placeholder:"请选择","input-align":"right","is-link":!e.taskNode.startNode&&e.canModify,readonly:e.taskNode.startNode},on:{click:function(t){return e.selectItem("是否可以退回","returnHistoryTN")}},model:{value:e.returnHistoryTN,callback:function(t){e.returnHistoryTN=t},expression:"returnHistoryTN"}})]}}],null,!1,4264136526)})],1):e._e()]),t("FooterButtonGroup",[1==e.canModify?[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{square:""},on:{click:e.closeDialog}},[e._v("取 消")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{type:"info",square:""},on:{click:e.submitForm}},[e._v("确 定")])]:[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{type:"info",square:""},on:{click:e.closeDialog}},[e._v("取 消")])]],2)],1)},Oc=[],Ic={name:"WfTaskNode",components:{},props:{taskNode:{type:Object,default:function(){return{}}},ideaLables:{type:String,default:""}},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",forceUpdate:!1,dialogFormVisible:!0,canModify:null,todoModeOptions:[{value:0,text:this.$tx("ecmapp.wflowform.singlePerson","单人")},{value:1,text:this.$tx("ecmapp.wflowform.multiplayerParallel","多人并行")},{value:2,text:this.$tx("ecmapp.wflowform.multiPersonSignature","多人会签")},{value:3,text:this.$tx("ecmapp.wflowform.multiplayerSerial","多人串行")},{value:4,text:this.$tx("ecmapp.wflowform.multiplayerCompetition","多人竞争")},{value:5,text:this.$tx("ecmapp.wflowform.multiPersonReading","多人阅文")}],selectTypeOptions:[{value:0,text:this.$tx("ecmapp.Wflowform.byDepartment","按组织机构")},{value:7,text:this.$tx("ecmapp.Wflowform.byJobPosition","按工作岗位")},{value:1,text:this.$tx("ecmapp.Wflowform.byWorkgroup","按工作群组")},{value:9,text:this.$tx("ecmapp.Wflowform.byJobRank","按处理人职级")},{value:2,text:this.$tx("ecmapp.Wflowform.byHistoryTNUser","历史节点处理人")},{value:3,text:this.$tx("ecmapp.Wflowform.designatedPersonnel","直接指定人员")}],orgLevelOptions:[{value:1,text:"一级(公司级)"},{value:2,text:"二级(部门级)"},{value:3,text:"三级(科室级)"},{value:4,text:"四级(班组级)"}],isIdeaAttachmentOptions:[{value:0,text:"不需要"},{value:1,text:"需要1个"},{value:2,text:"可选1个"},{value:8,text:"至少1个"},{value:9,text:"可选多个"}],returnHistoryTNOptions:[{value:0,text:"不需要退回"},{value:1,text:"退回到上一节点"},{value:2,text:"退回到发起节点"}],curNodeName:"",todoMode:"单人",selectType:"直接指定人员",orgLevel:"",orgStaffFilterType:"",orgStaffType:"",ideaLable:"",isIdeaAttachment:"",returnHistoryTN:""}},computed:{ideaLableOptions:function(){var e=[];return this.ideaLables.split(",").forEach((function(t){t&&e.push({value:t,text:t})})),0==e.length&&this.taskNode.name&&e.push({value:"curNodeName",text:this.taskNode.name+"意见"}),e.push({value:"无",text:"不需要"}),e},orgStaffFilterTypeOptions:function(){var e=[{value:0,text:"不筛选"}];return 2===this.taskNode.orgLevel?(e.push({value:1,text:"指定部门"}),e.push({value:2,text:"当前用户所在部门"}),e.push({value:3,text:"拟稿用户所在部门"})):3===this.taskNode.orgLevel?(e[0].text="部门内不筛选",e.push({value:5,text:"所有不筛选"}),e.push({value:1,text:"指定科室"}),e.push({value:2,text:"当前用户所在科室"}),e.push({value:3,text:"拟稿用户所在科室"})):4===this.taskNode.orgLevel&&(e[0].text="科室内不筛选",e.push({value:1,text:"指定班组"}),e.push({value:2,text:"当前用户所在班组"}),e.push({value:3,text:"拟稿用户所在班组"})),e},orgStaffTypeOptions:function(){return 9===this.taskNode.selectType?[{value:5,text:"不大于1个职级"},{value:6,text:"不大于2个职级"},{value:7,text:"不大于3个职级"},{value:8,text:"不大于4个职级"},{value:9,text:"不大于5个职级"}]:[{value:0,text:"主负责人"},{value:1,text:"主、副负责人"},{value:2,text:"副负责人"},{value:3,text:"全体人员"},{value:4,text:"普通(非负责人)人员"}]},historyNodeIdOptions:function(){for(var e=[],t=this.$vnode.context.wfInstance.udmNodes,n=0;n<t.length;n++)t[n].uuid!=this.taskNode.uuid&&e.push({value:t[n].name,text:t[n].name});return e}},watch:{taskNode:{handler:function(e,t){var n=this;void 0===this.taskNode.nodeType&&(this.taskNode.nodeType=1),void 0!==this.taskNode.selectType&&this.selectTypeOptions.forEach((function(e){e.value===n.taskNode.selectType&&(n.selectType=e.text)})),void 0!==this.taskNode.todoMode&&(this.todoMode=this.todoModeOptions[this.taskNode.todoMode].text),void 0!==this.taskNode.orgLevel&&(this.orgLevel=this.orgLevelOptions[this.taskNode.orgLevel-1].text),void 0!==this.taskNode.orgStaffFilterType&&this.orgStaffFilterTypeOptions.forEach((function(e){e.value===n.taskNode.orgStaffFilterType&&(n.orgStaffFilterType=e.text)})),void 0!==this.taskNode.orgStaffType&&(this.taskNode.orgStaffType>=5?this.orgStaffType=this.orgStaffTypeOptions[this.taskNode.orgStaffType-5].text:this.orgStaffType=this.orgStaffTypeOptions[this.taskNode.orgStaffType].text),void 0!==this.taskNode.ideaLable&&this.ideaLableOptions.forEach((function(e){e.value===n.taskNode.ideaLable&&(n.ideaLable=e.text)})),void 0!==this.taskNode.isIdeaAttachment&&this.isIdeaAttachmentOptions.forEach((function(e){e.value===n.taskNode.isIdeaAttachment&&(n.isIdeaAttachment=e.text)})),void 0!==this.taskNode.returnHistoryTN&&(this.returnHistoryTN=this.returnHistoryTNOptions[this.taskNode.returnHistoryTN].text)},deep:!0,immediate:!0}},created:function(){void 0===this.taskNode.selectType&&(this.taskNode.selectType=3),void 0===this.taskNode.orgLevel&&(this.taskNode.orgLevel=2),void 0===this.taskNode.orgStaffFilterType&&(this.taskNode.orgStaffFilterType=2),void 0===this.taskNode.orgStaffType&&(this.taskNode.orgStaffType=3),this.taskNode.ideaLable||(this.taskNode.ideaLable="无"),void 0===this.taskNode.isIdeaAttachment&&(this.taskNode.isIdeaAttachment=0),1===this.taskNode.status&&(this.curNodeName=this.taskNode.name),this.taskNode.returnHistoryTN||(this.taskNode.returnHistoryTN=0)},beforeDestroy:function(){},mounted:function(){var e=this;this.taskNode.startNode&&this.selectTypeOptions.splice(4,1),this.$vnode.context.curTN.tnNodeID?this.canModify=1:this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.$vnode.context.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(t){if("success"===t.code){var n=t.body.listdata.filter((function(t){return t.nodeName===e.taskNode.name}));n.length>0?e.canModify=0:e.canModify=1}else e.canModify=0,e.$dialog.alert({message:t.message})}))},methods:{selectItem:function(e,t){var n=this;if(!this.taskNode.startNode){var a=this.$tx("common.plChoose","请选择")+e;this.$bus.emit("openListitemDialog",a,this[t+"Options"],(function(e){"success"===e.code&&(n.$set(n.taskNode,t,e.value.value),n.$forceUpdate())}),this.taskNode[t],!1,"bottomDialog")}},openSelectDialog:function(e,t){var n=this;if(!this.taskNode.startNode){var a={selectDialog:e,multiple:!0,"org-level":"2"},o=this.$tx("common.plChoose","请选择");this.$bus.emit("openTreeDialog",o,a,null,(function(t){if("success"===t.code){var a="onSelect"+e.replace(e[0],e[0].toUpperCase())+"Completed";n[a](t.value,{name:n.model})}}),this.taskNode[t])}},onSelectStaffCompleted:function(e,t){var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",n),this.$set(this.taskNode,"orgNames",""),this.$set(this.taskNode,"workgroupNames",""),this.$set(this.taskNode,"jobPositionNames","")},onSelectSuborgCompleted:function(e,t){e=JSON.parse(JSON.stringify(e));var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name,e.orgId=e.id,delete e.id})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",""),this.$set(this.taskNode,"orgNames",n),this.$set(this.taskNode,"workgroupNames",""),this.$set(this.taskNode,"jobPositionNames","")},onSelectWorkgroupCompleted:function(e,t){e=JSON.parse(JSON.stringify(e));var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name,e.workgroupId=e.id,delete e.id})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",""),this.$set(this.taskNode,"orgNames",""),this.$set(this.taskNode,"workgroupNames",n),this.$set(this.taskNode,"jobPositionNames","")},onSelectJobPositionCompleted:function(e,t){e=JSON.parse(JSON.stringify(e));var n="";e.forEach((function(e){""!==n&&(n+="、"),n+=e.name,e.jobPositionId=e.id,delete e.id})),this.taskNode.users=e,this.$set(this.taskNode,"userNames",""),this.$set(this.taskNode,"orgNames",""),this.$set(this.taskNode,"workgroupNames",""),this.$set(this.taskNode,"jobPositionNames",n)},submitForm:function(){var e=this;this.formValidate((function(){var t=JSON.parse(JSON.stringify(e.taskNode));if(t.tmLmtType="9",t.type=1,5===t.todoMode&&(t.type=3),0==t.selectType){var n={0:"主负责人",1:"主、副负责人",2:"副负责人",3:"全体人员",4:"普通(非负责人)人员"},a="";1==t.orgLevel?a="公司"+n[t.orgStaffType+""]:(0==t.orgStaffFilterType?a=2==curNode.orgLevel?"二级部门":3==curNode.orgLevel?"部门内科室":"科室内班组":1==t.orgStaffFilterType?a=t.orgNames:2==t.orgStaffFilterType?a="当前用户所在"+(2==t.orgLevel?"部门":3==t.orgLevel?"科室":"班组"):3==t.orgStaffFilterType?a="拟稿用户所在"+(2==t.orgLevel?"部门":3==t.orgLevel?"科室":"班组"):5==t.orgStaffFilterType&&(a="所有科室"),a+=n[t.orgStaffType+""]),t.selectRule=a}else 2==t.selectType?t.selectRule=t.historyTNName+"节点处理人":9==t.selectType&&(t.selectRule="不大于"+(t.orgStaffType-4)+"个职级");var o=e.$vnode.context.wfInstance.passenger.wfdNodeList;o&&o.forEach((function(e){e.processType===t.todoMode&&e.nodeType===t.type&&(t.id=e.id)})),1!==t.status?(t.status=1,t.uuid=e.uuid(),e.$vnode.context.wfInstance.udmNodes.push(t)):e.$vnode.context.wfInstance.udmNodes.forEach((function(n,a){n.uuid===t.uuid&&(e.$vnode.context.wfInstance.udmNodes.splice(a,1,t),e.$vnode.context.curTN.tnNodeName===e.curNodeName&&(e.$vnode.context.curTN.tnNodeName=t.name,e.$vnode.context.curTN.tnCanEdit=t.canEdit,5===t.todoMode?e.$vnode.context.curTN.tnTaskType=3:e.$vnode.context.curTN.tnTaskType=1,e.$vnode.context.curTN.tnToDoMode=t.todoMode,"无"===t.ideaLable?(e.$vnode.context.curTN.tnIdeaLabelID="",e.$vnode.context.curTN.tnIdeaLabelName=""):(e.$vnode.context.curTN.tnIdeaLabelID="udm_"+t.ideaLable,e.$vnode.context.curTN.tnIdeaLabelName=t.ideaLable,e.$vnode.context.curTN.tnIdeaIsMust=1)))}));var i={wfInstance:JSON.stringify(e.$vnode.context.wfInstance),curTN:JSON.stringify(e.$vnode.context.curTN)};e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:Wn().stringify(i),params:e.$vnode.context.wfParams,url:"workflow/wfInstance/getUdmNodeUsers"}).then((function(n){"success"===n.code?(e.$set(e.$vnode.context.wfInstance.passenger,"udmNodeUsers",n.body.udmNodeUsers),e.$vnode.context.wfInstance.udmNodes.forEach((function(n,a){n.uuid===t.uuid&&e.$vnode.context.wfInstance.udmNodes.splice(a,1,t)})),e.closeDialog()):e.$alert(n.message,"操作提示",{type:"error"})}))}))},closeDialog:function(){this.$vnode.context.wfNodeDialogVisible=!1},uuid:function(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="",e.join("")}}},Ec=Ic,$c=(0,Ca.A)(Ec,Cc,Oc,!1,null,"8e60a7d4",null),Pc=$c.exports;function jc(e){return jc="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},jc(e)}var Fc=a(5093),Hc={name:"SubmitHandle",components:{WfTaskNode:Pc},props:{curTN:{type:Object,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},wfJsonData:{type:Object,default:function(){return{}}},submitHandle:{type:Object,default:function(){return{}}},commonIdeaList:{type:Array,default:function(){return[]}},commonIdeaFillMode:{type:String,default:function(){return"replace"}},submitTemplateList:{type:Array,default:function(){return[]}},ideaAttachAccept:{type:String,default:".doc,.docx,.xls,.xlsx,.pdf,.ppt,.pptx,.jpg,.png,.zip,.rar"},noIdeaSubmitTemplate:{type:Boolean,default:!1},showOverPath:{type:Boolean,default:!0},selectPathType:{type:String,default:"dialog"},disabledKeepConcern:{type:Boolean,default:!1},shortcutButton:{type:Boolean,default:!1}},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",initiated:!1,wfNodeUser:{},submitTemplate:{},curUserIdea:"",ideaShowScope:null,ideaShowScopeList:[{text:"所有人可见",value:0},{text:"仅本人及拟稿部门可见",value:1},{text:"仅本人及分管部门可见",value:8},{text:"仅填写意见部门可见",value:3},{text:"仅填写意见部门及分管领导可见",value:9}],formVo:null,showTimeLimit:!1,showAssistants:!1,askSMS:!1,keepConcern:!1,popupDialogVisible:!1,commonIdeaModuleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/usersetting/commonSuggest/form.html",addNewUrl:"usersetting/commonSuggest/addNew",insertUrl:"usersetting/commonSuggest/insert",moduleCode:"commonSuggest"},submitTemplateModuleInfo:{formTemplate:"dcontent/busiformurl?vwtype=W&url=/usersetting/submitTemplate/form.html",addNewUrl:"usersetting/submitTemplate/addNew",insertUrl:"usersetting/submitTemplate/insert",moduleCode:"submitTemplate"},busiformBtns:[],udmNode:null,wfNodeDialogVisible:null,popupTitle:"",showOverPatnRow:!0,msgTypeOptions:null,msgType:"",timer:"",isUdmNodes:!1,attachments:[],busiData:{},selectChangeList:[],marginRight:0,defaultNumber:8,viewCommentsNum:8,selectCount:0}},computed:{chartData:function(){return this.wfInstance.passenger.chartData}},watch:{wfJsonData:{handler:function(e,t){this.commonIdeaFillMode=this.$vnode.context.commonIdeaFillMode||this.$vnode.context.$vnode.context.commonIdeaFillMode||this.commonIdeaFillMode,this.submitHandleValChange()},deep:!0,immediate:!0},wfInstance:{handler:function(e,t){var n=this;this.wfInstance.udmNodes&&"[]"!==this.wfInstance.udmNodes&&"string"===typeof this.wfInstance.udmNodes&&(this.wfInstance.udmNodes=JSON.parse(this.wfInstance.udmNodes)),this.wfInstance.udmNodes&&"object"===jc(this.wfInstance.udmNodes)&&null!==this.curTN.tnNodeID&&(this.wfJsonData.routes=n.$wfEngine.setUdmCustomRoutes(n),this.initSubmitHandle()),this.$forceUpdate(),this.submitHandleValChange()},immediate:!0,deep:!0},submitHandle:{handler:function(e,t){this.submitHandleValChange(),this.viewCommentsNum=this.defaultNumber,this.selectChangeList=[]},deep:!0,immediate:!0}},created:function(){this.$bus.on("initSubmitHandle",this.initSubmitHandle)},beforeDestroy:function(){this.$bus.off("initSubmitHandle",this.initSubmitHandle),clearInterval(this.timer)},mounted:function(){var e=this;this.msgTypeOptions=this.wfInstance.passenger.msgTypeOptions||null,this.initSubmitHandle(),this.curUserIdea=this.submitHandle.curUserIdea,this.timer=setInterval((function(){e.submitHandle.curUserIdea!==e.curUserIdea&&""!==e.submitHandle.curUserIdea&&(e.saveCurTNIdea("AutoSave"),e.curUserIdea=e.submitHandle.curUserIdea)}),3e5),this.$vnode.context.attachments?(this.attachments=this.$vnode.context.attachments,this.busiData=this.$vnode.context.vo):(this.attachments=this.$vnode.context.$vnode.context.attachments,this.busiData=this.$vnode.context.$vnode.context.vo)},methods:{setMargin:function(){var e=Math.floor((screen.width-20)/93),t=screen.width-20-93*e;this.defaultNumber=2*e,this.viewCommentsNum=2*e,this.marginRight=t/e/2},selectBanlFn:function(e,t,n){var a=this;if(e.changed){if("1"===n.autoCheckedAll&&2===n.showNodeUsers)return;t.length>1||this.wfJsonData.routes[this.submitHandle.route.index].taskNodes.length>1?e.changed=!1:e.changed=!0}else e.changed=!0;if(0===this.selectCount?e.selectedIndex=0:e.selectedIndex=this.selectChangeList[this.selectChangeList.length-1].selectedIndex+1,0!==n.todoMode&&"0"!==n.todoMode||t.forEach((function(t){t.id!==e.id&&(t.changed=!1)})),this.selectChangeList=t.filter((function(e){return e.changed})),"1"===n.type&&"3"===n.todoMode&&this.selectChangeList.sort((function(e,t){return e.selectedIndex-t.selectedIndex})),console.log("this.selectChangeList====>",this.selectChangeList),this.selectCount=this.selectChangeList.length,this.$forceUpdate(),e.collapse){this.selectChangeList.forEach((function(e){e.collapseNodes=[],t.forEach((function(t){e.id===t.groupId&&e.collapseNodes.push(t)}))}));var o=n.name,i="";1===this.selectChangeList.length?i=this.selectChangeList[0].name:2===this.selectChangeList.length?i=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name:this.selectChangeList.length>2&&(i=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name+"等"+this.selectChangeList.length+"人"),this.submitHandle.route[o]||(this.submitHandle.route[o]={}),this.submitHandle.route[o].users=this.selectChangeList,this.submitHandle.route[o].showUsers=i,this.$forceUpdate(),this.$nextTick((function(){a.submitHandleValChange()}))}else{var r=n.name,s="";1===this.selectChangeList.length?s=this.selectChangeList[0].name:2===this.selectChangeList.length?s=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name:this.selectChangeList.length>2&&(s=this.selectChangeList[0].name+"、"+this.selectChangeList[1].name+"等"+this.selectChangeList.length+"人"),this.submitHandle.route[r]||(this.submitHandle.route[r]={}),this.submitHandle.route[r].users=this.selectChangeList,this.submitHandle.route[r].showUsers=s,this.$forceUpdate(),this.$nextTick((function(){a.submitHandleValChange()}))}},submitHandleValChange:function(){this.$bus.emit("submitHandleValChange",this)},initSubmitHandle:function(e){var t=this,n=this;if(n.showTimeLimit=!1,n.isUdmNodes=n.wfInstance.passenger.isUdmNodes,this.wfJsonData.routes&&this.wfJsonData.routes.length>0){if(new Promise((function(a,o){"dialog"===e?(t.wfJsonData.routes.forEach((function(e,t){e.index=t,e.text=e.name})),t.$bus.emit("openListitemDialog",t.$tx("ecmapp.wflowform.pSubmitPath","请选择提交路径"),t.wfJsonData.routes.filter((function(e){return 16!==e.type&&"16"!==e.type})),(function(e){"success"===e.code?(n.initiated=!1,a(e.value.index)):o("cancel")}),t.submitHandle.route.index)):a("radio"===e||"QuickSubmit"===e?n.submitHandle.route.index:0)})).then((function(e){1!==t.wfJsonData.routes.length||"4"!==t.wfJsonData.routes[0].type&&"7"!==t.wfJsonData.routes[0].type||(t.showOverPath?t.showOverPatnRow=!0:t.showOverPatnRow=!1),n.submitHandle.route.index=e,n.selectCount=0,n.selectChangeList=[];for(var a=t.wfJsonData.routes[t.submitHandle.route.index],o=function(e){var n=a.taskNodes[e];if(t.submitHandle.route[n.name]={users:[],showUsers:"",isLink:!0},null===n.users&&(n.users=[]),"1"===n.autoCheckedAll&&("3"===n.type||"0"===n.todoMode||"1"===n.todoMode||"3"===n.todoMode||"4"===n.todoMode||"5"===n.todoMode||"2"===n.todoMode&&"0"===n.oneByOne))if(n.users.length>0){var o=[];"0"===n.todoMode?1===n.users.length&&o.push(n.users[0]):n.users.forEach((function(e){e.personId&&o.push(e)}));var r="";1===o.length?r=o[0].name:2===o.length?r=o[0].name+"、"+o[1].name:o.length>2&&(r=o[0].name+"、"+o[1].name+"等"+o.length+"人"),t.submitHandle.route[n.name]={users:o,showUsers:r,isLink:!0}}else a.taskNodes.splice(e--,1);else{n.autoCheckedAll="0";var s=t.Cookies.get("route-wfuser-"+t.curTN.tnID+"-"+n.id);if(void 0!==s&&null!==s){var l=[];n.users.forEach((function(e){-1!==s.indexOf(e.id)&&l.push(e)}));var d="";1===l.length?d=l[0].name:2===l.length?d=l[0].name+"、"+l[1].name:l.length>2&&(d=l[0].name+"、"+l[1].name+"等"+l.length+"人"),t.submitHandle.route[n.name]={users:l,showUsers:d,isLink:!0}}}1!==a.taskNodes.length&&-1===a.mustNextTN.indexOf(n.name)||1!==n.users.length||"asyncLoadingUsers"===n.users[0].type||(t.submitHandle.route[n.name]={users:n.users,showUsers:n.users[0].name,isLink:!1}),t.submitHandle.route[n.name].users&&t.submitHandle.route[n.name].users.forEach((function(e){e.changed=!1,t.selectBanlFn(e,n.users,n)})),9!==parseInt(n.tmLmtType)&&1===parseInt(n.tmLmtCanEdit)&&(t.showTimeLimit=!0),i=e},i=0;i<a.taskNodes.length;i++)o(i);t.initiated=!0,t.$forceUpdate(),t.$nextTick((function(){var e=t.$el.querySelectorAll(".timiLimitInput .van-field__body");e.forEach((function(e){e.setAttribute("value-suffix","天")}));var n=t.$el.querySelectorAll(".timiLimitHourInput .van-field__body");n.forEach((function(e){e.setAttribute("value-suffix","小时")}))}))})),this.submitHandle.askMsgTypes){this.msgType="";var a=this.submitHandle.askMsgTypes.split(",");this.wfInstance.passenger.msgTypeOptions.forEach((function(e){-1!==a.indexOf(e.value+"")&&(t.msgType&&(t.msgType+="、"),t.msgType+=e.text)}))}}else if(this.wfInstance.udmNodes&&"[]"!==this.wfInstance.udmNodes)"string"===typeof this.wfInstance.udmNodes&&(this.wfInstance.udmNodes=JSON.parse(this.wfInstance.udmNodes)),this.initiated=!0,this.$forceUpdate();else if(this.wfInstance.passenger.udmjysp){var o=[{id:this.curTN.staffID}],i={todoMode:0,canEdit:1,status:1,name:this.curTN.tnNodeName,userNames:this.curTN.userName,users:o,id:this.curTN.tnNodeID,uuid:this.curTN.tnNodeID,startNode:!0,ideaLable:""};this.wfInstance.udmNodes=[i]}},timeLimitInputFocus:function(e){e.srcElement.parentElement.setAttribute("value-suffix","")},timeLimitInputBlur:function(e){e.srcElement.parentElement.setAttribute("value-suffix","天")},timeLimitInputHourBlur:function(e){e.srcElement.parentElement.setAttribute("value-suffix","小时")},saveCurTNIdea:function(e){null!==this.submitHandle.curUserIdea&&""!==this.submitHandle.curUserIdea.trim()?(e||(e="Save"),this.$vnode.context.btnSubmitClick?this.$vnode.context.btnSubmitClick(e):this.$vnode.context.$vnode.context.btnSubmitClick&&this.$vnode.context.$vnode.context.btnSubmitClick(e)):this.$dialog.alert({message:this.$tx("ecmapp.common.pWriteOpinion","请填写处理意见。"),type:"warning"})},saveCommonIdea:function(){var e=this;null!==this.submitHandle.curUserIdea&&""!==this.submitHandle.curUserIdea.trim()?(this.formTitle=this.$tx("ecmapp.wflowform.personalOpinions","个人常用意见"),this.popupTitle=this.$tx("ecmapp.wflowform.saveComOpinion","保存常用意见"),this.$options.components["BusiForm"]=this.$wfEngine.loadBusiform(this,this.commonIdeaModuleInfo.formTemplate,"M"),this.popupDialogVisible=!0,setTimeout((function(){e.$bus.emit("openBusiform",e.commonIdeaModuleInfo,null,1,e.closePopupDialog)}),0)):this.$dialog.alert({message:this.$tx("ecmapp.common.pWriteOpinion","请填写处理意见。"),type:"warning"})},applyCommonIdea:function(){var e=this;if(0!==this.commonIdeaList.length){for(var t=[],n=0;n<this.commonIdeaList.length;n++)t.push({value:n,text:this.commonIdeaList[n]});this.$bus.emit("openListitemDialog",this.$tx("ecmapp.wflowform.selectComOpinion","选择常用意见"),t,(function(t){if("success"===t.code){var n=t.value.text;void 0===e.submitHandle.curUserIdea||null===e.submitHandle.curUserIdea||""===e.submitHandle.curUserIdea.trim()?(e.submitHandle.curUserIdea=n,e.$forceUpdate()):"append"===e.commonIdeaFillMode?(e.submitHandle.curUserIdea+=n,e.$forceUpdate()):e.$dialog.confirm({message:e.$tx("ecmapp.wflowform.alreadlyHave","意见已存在,是否确认使用常用意见?")}).then((function(){e.submitHandle.curUserIdea=n,e.$forceUpdate()}))}}),null,!1,"bottomDialog")}else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.noComOpinion","暂无常用意见。"),type:"warning"})},saveSubmitTemplate:function(){var e=this;if(!this.curTN.tnIdeaLabelID||1!==this.curTN.tnIdeaIsMust||null!==this.submitHandle.curUserIdea&&""!==this.submitHandle.curUserIdea.trim()){var t=this.$wfEngine.checkSubmitHandle(this,"Submit");"success"===t.code?(this.popupTitle=this.$tx("ecmapp.wflowform.fields.saveTemplate","保存办理模板"),this.$options.components["BusiForm"]=this.$wfEngine.loadBusiform(this,this.submitTemplateModuleInfo.formTemplate,"M"),this.popupDialogVisible=!0,setTimeout((function(){e.$bus.emit("openBusiform",e.submitTemplateModuleInfo,null,1,e.closePopupDialog)}),0)):this.$dialog.alert({message:t.message})}else this.$dialog.alert({message:this.$tx("ecmapp.common.pWriteOpinion","请填写处理意见。"),type:"warning"})},onBasicFormBeforeOpen:function(e,t,n){if(console.log(e.moduleInfo.moduleCode+" form before open"),"commonSuggest"===e.moduleInfo.moduleCode)e.$set(t,"commonIdea",this.submitHandle.curUserIdea),e.$set(t,"wfType",1),e.$set(t,"updateTime",Fc(new Date).format("YYYY-MM-DD HH:mm:ss"));else if("submitTemplate"===e.moduleInfo.moduleCode){e.$set(t,"ownerStaffId",this.curTN.staffID),this.curTN.tnIdeaLabelID&&e.$set(t,"submitIdea",this.submitHandle.curUserIdea);var a=JSON.parse(JSON.stringify(this.submitHandle));a.submitRoute=JSON.parse(JSON.stringify(this.wfJsonData.routes[this.submitHandle.route.index])),delete a.submitRoute.taskNodes,delete a.needCheckOuterDeputy,e.$set(t,"submitJsondata",a),e.$set(t,"submitRoute",this.wfJsonData.routes[this.submitHandle.route.index].name),e.$set(t,"templateName",this.wfJsonData.routes[this.submitHandle.route.index].name)}this.formVo=t,n.resolve(!0)},onBasicFormSubmited:function(e,t){if(console.log(e.moduleInfo.moduleCode+" form submited"),this.formTitle="",this.formVo=null,"commonSuggest"===e.moduleInfo.moduleCode)this.commonIdeaList.unshift(e.vo.commonIdea);else if("submitTemplate"===e.moduleInfo.moduleCode){var n=e.vo;delete n.passenger,n.submitJsondata=JSON.stringify(n.submitJsondata);for(var a=!1,o=0;o<this.submitTemplateList.length;o++)if(this.submitTemplateList[o].templateName===n.templateName){this.submitTemplateList[o]=n,a=!0;break}a||this.submitTemplateList.unshift(n)}},closePopupDialog:function(){this.popupDialogVisible=!1,this.wfNodeDialogVisible=!1,this.formVo=null,this.curNode=null},applySubmitTemplate:function(){var e=this;if(0!==this.submitTemplateList.length){for(var t=[],n=0;n<this.submitTemplateList.length;n++)t.push({value:n,text:this.submitTemplateList[n].templateName});var a=this;this.$bus.emit("openListitemDialog",this.$tx("ecmapp.Wflowform.fields.selectTemplate","选择办理模板"),t,(function(t){if("success"===t.code){var n=t.value.value;a.$wfEngine.applySubmitTemplate(a,JSON.parse(e.submitTemplateList[n].submitJsondata)),a.wfJsonData.routes[e.submitHandle.route.index].taskNodes&&a.wfJsonData.routes[e.submitHandle.route.index].taskNodes.forEach((function(e){if(a.submitHandle.route[e.name]){var t=a.submitHandle.route[e.name].users;if(t){var n="";1===t.length?n=t[0].name:2===t.length?n=t[0].name+"、"+t[1].name:t.length>2&&(n=t[0].name+"、"+t[1].name+"等"+t.length+"人"),a.submitHandle.route[e.name].showUsers=n}}})),a.$forceUpdate()}}))}else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.noTemplate","暂无办理模板。")})},setIdeaShowScope:function(){var e=this;this.$bus.emit("openListitemDialog",this.$tx("ecmapp.Wflowform.fields.ideaShowScope","意见可见范围"),this.ideaShowScopeList,(function(t){"success"===t.code&&(e.ideaShowScope=t.value.text,e.curTN.passenger.tnIdeaShowScope=t.value.value,e.$forceUpdate())}),this.ideaShowScope)},switchAssistants:function(){this.showAssistants=!this.showAssistants,this.$forceUpdate()},assistantsChange:function(){this.submitHandle.askSMS=this.askSMS?1:0,this.submitHandle.keepConcern=this.keepConcern?1:0,this.$forceUpdate()},selectWfNodeUser:function(e,t){var n=this;if("1"!==t.autoCheckedAll||2!==t.showNodeUsers){var a={selectDialog:"wfNodeUser",multiple:!1,oneByOne:!1,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded,required:!1};a.showSelectByTabs=t.showSelectByTabs,a.todoMode=t.todoMode,0!==t.todoMode&&"0"!==t.todoMode&&(a.multiple=!0,"1"===t.type&&"3"===t.todoMode?a.selectedOrderBy="selectedIndex":a.selectedOrderBy="orgOrderBy"),"1"===t.oneByOne&&(a.oneByOne=!0);var o="";this.submitHandle.route[e].users&&this.submitHandle.route[e].users.forEach((function(e){""!==o&&(o+=","),o+=e.id})),this.$bus.emit("openTreeDialog",this.$tx("ecmapp.wflowform.titleHandler",{title:e},"".concat(e,"处理人")),a,t.users,(function(t){if("success"===t.code){var a="";if(1===t.value.length?a=t.value[0].name:2===t.value.length?a=t.value[0].name+"、"+t.value[1].name:t.value.length>2&&(a=t.value[0].name+"、"+t.value[1].name+"等"+t.value.length+"人"),n.submitHandle.route[e]||(n.submitHandle.route[e]={}),n.submitHandle.route[e].users=t.value,n.submitHandle.route[e].showUsers=a,2==n.curTN.tnIdeaAutoFillType&&n.curTN.tnIdeaAutoFillContent){var o="";t.value.forEach((function(e){o&&(o+="、"),o+=e.name}));var i="";n.submitHandle.route[e].users&&n.submitHandle.route[e].users.forEach((function(e){i&&(i+="、"),i+=e.name}));var r=n.curTN.tnIdeaAutoFillContent,s=n.curTN.tnIdeaAutoFillContent;if(-1!==r.indexOf("${sendTo}"))r=r.replace("${sendTo}",o),s=s.replace("${sendTo}",i);else if(-1!==r.indexOf("x")){var l=new RegExp("x+","g");r=r.replace(l,o),s=s.replace(l,i)}else if(-1!==r.indexOf("X")){var d=new RegExp("X+","g");r=r.replace(d,o),s=s.replace(d,i)}n.submitHandle.curUserIdea&&n.submitHandle.curUserIdea!==s||n.$set(n.submitHandle,"curUserIdea",r)}n.$forceUpdate(),n.$nextTick((function(){n.submitHandleValChange()}))}}),o)}},onSelectTreeDataLoaded:function(e,t){var n=JSON.parse(JSON.stringify(e));function a(e){var t=[];if(!Array.isArray(e))return t;e.forEach((function(e){delete e.children}));var n={};return e.forEach((function(e){n[e.id]=e})),e.forEach((function(e){var a=e.parentId||e.parentID||e.groupId||e.orgId,o=n[a];if(o){var i=o.children||(o.children=[]);i.push(e)}else t.push(e)})),t}a(n);var o={};function i(e){for(var t=0;t<e.length;t++)e[t].personId||(void 0===e[t].children||0===e[t].children.length?e.splice(t--,1):i(e[t].children))}i(n),a(n);for(var r=0;r<n.length;r++)!n[r].personId&&!n[r].children||n[r].children&&0===n[r].children.length?n.splice(r--,1):(delete n[r].children,o[n[r].id]&&(n[r]=o[n[r].id]));return n},selectMsgType:function(){var e=this;this.$bus.emit("openListitemDialog",this.$tx("ecmapp.wflowform.reminderMethod","提醒方式"),this.msgTypeOptions,(function(t){if("success"===t.code){var n="",a="";t.value.forEach((function(e){""!==n?(n+=","+e.value,a+="、"+e.text):(n=e.value,a=e.text)})),e.submitHandle.askMsgTypes=n,e.msgType=a,e.submitHandle.askSMS=a?1:0,e.$forceUpdate()}}),this.submitHandle.askMsgTypes,!0,null,!0)},addUdmNode:function(){this.udmNode={todoMode:0,selectType:3,orgLevel:2,orgStaffFilterType:2,orgStaffType:3,canEdit:1,status:0,ideaLable:""},this.wfNodeDialogVisible=!0},editUdmNode:function(e){this.udmNode=JSON.parse(JSON.stringify(e)),this.wfNodeDialogVisible=!0},delUdmNode:function(e){var t=this;0!==e&&(this.curTN.tnNodeID?(this.wfInstance.udmNodes.splice(e,1),this.$forceUpdate()):this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(n){if("success"===n.code){var a=n.body.listdata.filter((function(n){return n.nodeName===t.wfInstance.udmNodes[e].name}));a.length>0?t.$dialog.alert({message:"不允许删除已经送审批或办理的节点!"}):(t.wfInstance.udmNodes.splice(e,1),t.$forceUpdate())}else t.$dialog.alert({message:n.message})})))}}},Bc=Hc,Uc=(a(2988),(0,Ca.A)(Bc,Ac,Yc,!1,null,"6b76414a",null)),Rc=Uc.exports,Wc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"submit-dialog-container"},[t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,title:e.title},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):e._e(),e.loading?e._e():t("SubmitHandle",{attrs:{"show-over-path":e.showOverPath,"disabled-keep-concern":e.disabledKeepConcern,"shortcut-button":e.shortcutButton,"cur-t-n":e.curTN,"wf-instance":e.wfInstance,"submit-handle":e.submitHandle,"wf-json-data":e.wfJsonData,"idea-attach-accept":e.ideaAttachAccept,"common-idea-list":e.commonIdeaList,"common-idea-fill-mode":e.commonIdeaFillMode,"submit-template-list":e.submitTemplateList,"no-idea-submit-template":e.noIdeaSubmitTemplate,"select-path-type":e.selectPathType},scopedSlots:e._u([{key:"shortcutButton",fn:function(){return[e._t("shortcutButton")]},proxy:!0}],null,!0)}),e.showSubmitBtn?t("FooterButtonGroup",[t("van-button",{directives:[{name:"wfbtn-lbl",rawName:"v-wfbtn-lbl",value:"submit",expression:"'submit'"}],attrs:{square:"",type:"info",text:"提 交"},on:{click:e.submitFile}})],1):e._e()],1),e.loading||"QuickSubmit"!==e.submitHandle.submitType?e._e():t("SubmitHandle",{attrs:{"show-over-path":e.showOverPath,"disabled-keep-concern":e.disabledKeepConcern,"shortcut-button":e.shortcutButton,"cur-t-n":e.curTN,"wf-instance":e.wfInstance,"submit-handle":e.submitHandle,"wf-json-data":e.wfJsonData,"idea-attach-accept":e.ideaAttachAccept,"common-idea-list":e.commonIdeaList,"common-idea-fill-mode":e.commonIdeaFillMode,"submit-template-list":e.submitTemplateList,"no-idea-submit-template":e.noIdeaSubmitTemplate},scopedSlots:e._u([{key:"shortcutButton",fn:function(){return[e._t("shortcutButton")]},proxy:!0}],null,!0)}),t("van-dialog",{attrs:{title:e.ideaTitle,"show-cancel-button":""},on:{confirm:e.ideaInputDialogSubmit,close:e.ideaInputDialogClose},model:{value:e.ideaInputDialogVisible,callback:function(t){e.ideaInputDialogVisible=t},expression:"ideaInputDialogVisible"}},[t("div",{staticClass:"input-ideas"},[t("van-field",{staticClass:"curIdea-filed",attrs:{type:"textarea",placeholder:"请填写处理意见",rows:"4",autosize:""},model:{value:e.submitHandle.curUserIdea,callback:function(t){e.$set(e.submitHandle,"curUserIdea",t)},expression:"submitHandle.curUserIdea"}})],1)])],1)},Vc=[],zc={name:"SubmitDialog",components:{SubmitHandle:Rc},props:{curTN:{type:Object,default:function(){return{}}},wfInstance:{type:Object,default:function(){return{}}},wfJsonData:{type:Object,default:function(){return{}}},submitHandle:{type:Object,default:function(){return{}}},commonIdeaList:{type:Array,default:function(){return{}}},commonIdeaFillMode:{type:String,default:function(){return"replace"}},submitTemplateList:{type:Array,default:function(){return{}}},ideaAttachAccept:{type:String,default:".doc,.docx,.xls,.xlsx,.pdf,.ppt,.pptx,.jpg,.png,.zip,.rar"},noIdeaSubmitTemplate:{type:Boolean,default:!1},showOverPath:{type:Boolean,default:!0},selectPathType:{type:String,default:"dialog"},disabledKeepConcern:{type:Boolean,default:!1},shortcutButton:{type:Boolean,default:!1}},data:function(){return{title:this.$tx("ecmapp.wflowform.submitHandle","提交办理"),dialogFormVisible:!1,showSubmitBtn:!0,loading:!0,ideaTitle:this.$tx("ecmapp.wflowform.fields.writeOpinion","填写意见"),ideaInputDialogVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("btnStartDoingClick",this.btnStartDoingClick),this.$bus.on("btnQuickSubmitClick",this.btnQuickSubmitClick);var e=this.$vnode.context,t=e.commandBar.filter((function(e){if(e.btnJavascriptBak)return!0}));0===t.length&&(this.showSubmitBtn=!1)},beforeDestroy:function(){this.$bus.off("btnStartDoingClick",this.btnStartDoingClick),this.$bus.off("btnQuickSubmitClick",this.btnQuickSubmitClick)},mounted:function(){},methods:{btnStartDoingClick:function(){var e=this,t=this,n=this.$vnode.context;if(t.wfJsonData&&t.wfJsonData.routes)t.dialogFormVisible=!0,t.loading=!1;else{var a=JSON.parse(JSON.stringify(t.wfInstance));a.passenger.busiData=n.vo,t.loading=!0,t.dialogFormVisible=!0,t.$nextTick((function(){e.$wfEngine.getWfJsonData(n,a,n.wfParams).then((function(e){t.loading=!1}))}))}},submitFile:function(){var e=this.$vnode.context,t=e.commandBar.filter((function(e){if(e.btnJavascriptBak)return!0}))[0],n=t.btnJavascriptBak;if(-1!==n.indexOf("(")){var a=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==a&&(a=a.replace(/'/g,"").split(","),t.btnParams=a),n=n.split("(")[0]}void 0!==e[n]&&(t.btnClick=e[n]),void 0!==t.btnParams&&null!==t.btnParams?t.btnClick.apply(this.$parent,t.btnParams):t.btnClick.apply(this.$parent)},btnQuickSubmitClick:function(e){var t=this,n=this.$vnode.context;n.formValidate((function(){var a=n.wfJsonData.routes.filter((function(e,t){if("0"===e.type||"4"===e.type||"7"===e.type||"10"===e.type||"14"===e.type)return e.index=t,!0}));t.submitHandle.route.index=a[0].index,t.submitHandle.submitType="QuickSubmit",t.loading=!1,t.$nextTick((function(){t.$bus.emit("initSubmitHandle",t.initSubmitHandle,"QuickSubmit"),new Promise((function(e,t){n.formEvents.onWflowFormBeforeSubmit(n,{resolve:e,reject:t})})).then((function(a){a&&(e?(t.$set(t.submitHandle,"curUserIdea",e),t.$dialog.confirm({message:t.$tx("ecwapp.Wflowform.submitToNet","您是否确认提交下一环节?")}).then((function(){n.btnSubmitClick("QuickSubmit")}))):t.ideaInputDialogVisible=!0)}))}))}),(function(e){console.log(e),n.tabActive=0}))},ideaInputDialogSubmit:function(){var e=this.$vnode.context;e.btnSubmitClick("QuickSubmit"),this.ideaInputDialogVisible=!1},ideaInputDialogClose:function(){this.ideaInputDialogVisible=!1}}},Jc=zc,qc=(a(1698),(0,Ca.A)(Jc,Wc,Vc,!1,null,"2e79fb7e",null)),Gc=qc.exports,Kc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wf-nodelogs-container van-wform-operate-cell"},[t("div",{staticClass:"form-slicer"}),t("van-cell-group",[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"processLog",expression:"'processLog'"}],attrs:{title:"流程日志","is-link":""},on:{click:e.viewWfNodelogs}})],1),t("PopupDialog",{class:{"call-back-file":1==e.callbackFile},attrs:{showpop:e.showpop,title:e.$tx("ecmapp.wflowform.fields.processLog","流程日志")},on:{"update:showpop":function(t){e.showpop=t}}},[t("van-steps",{attrs:{direction:"vertical","active-color":"#1989fa","inactive-icon":"checked"}},e._l(e.wfNodeLogList,(function(n){return t("van-step",{key:n.id,class:{"active-step-finish":1===n.step}},[t("div",{staticClass:"litit clearboth"},[t("span",[e._v(e._s(n.nodeName))]),t("span",{staticClass:"elapsed-time"},[e.anywhereChat&&e.loginUser.personAccount!==n.staffAccount?t("van-icon",{staticClass:"start-chat",attrs:{name:"chat-o"},on:{click:function(t){return e.startChat(n.staffId,n.staffName)}}}):e._e(),e._v(" "+e._s(n.staffName)+" ")],1)]),t("div",{staticClass:"licont"},[1===e.showProcessedTimeLength?[t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"processingTime",expression:"'processingTime'"}]},[e._v("处理时间:")]),e._v(" "+e._s(n.createTime.substr(0,16))+" - "+e._s(null==n.completeTime?e.$tx("ecmapp.wflowform.processing","处理中"):n.completeTime.substr(0,16))+" ")])])]:[t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"startTime",expression:"'startTime'"}]},[e._v("开始时间:")]),e._v(" "+e._s(n.createTime.substr(0,16))+" ")])]),t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"completionTime",expression:"'completionTime'"}]},[e._v("完成时间:")]),e._v(" "+e._s(null==n.completeTime?e.$tx("ecmapp.wflowform.processing","处理中"):n.completeTime.substr(0,16))+" ")])])],n.limitTime?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"limitTime",expression:"'limitTime'"}]},[e._v("处理时限:")]),e._v(" "+e._s(n.limitTime)+" ")])]):e._e(),n.timeoutTime?t("p",{staticStyle:{color:"red"}},[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"timeOut",expression:"'timeOut'"}]},[e._v("超时时长:")]),e._v(" "+e._s(n.timeoutTime)+" ")])]):e._e(),void 0!==n.durTime&&1===e.showProcessedTimeLength?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"todoTime",expression:"'todoTime'"}]},[e._v("办理时长:")]),e._v(" "+e._s(n.durTime)+" ")])]):e._e(),null!==n.idea?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"handlingSuggestions",expression:"'handlingSuggestions'"}]},[e._v("处理意见:")]),t("span",{domProps:{innerHTML:e._s(n.idea)}})])]):e._e(),null!==n.pathName?t("p",[t("span",{staticClass:"done-msg"},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"fields.submitPath",expression:"'fields.submitPath'"}]},[e._v("提交路径:")]),t("span",{style:{color:n.pathName.indexOf("退回")>-1?"red":""}},[e._v(e._s(n.pathName))])])]):e._e()],2)])})),1),1==e.callbackFile?t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"takBack",expression:"'takBack'"}],attrs:{square:"",type:"info"},on:{click:e.submitCallbackFile}},[e._v("收 回")])],1):e._e()],1),t("WriteToReadIdea"),t("ModifyWflogAddUser"),t("ModifyWflogForwardTodo")],1)},Qc=[],Zc=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,title:e.winTitle,"on-cancel":e.handleDialogClose},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):t("van-cell-group",[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileTitle",expression:"'fileTitle'"}],attrs:{title:"文件标题",label:e.wfInstance.title}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"prevStep",expression:"'prevStep'"}],attrs:{title:"上一处理环节",value:e.wflog.nodeName}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"prevHandler",expression:"'prevHandler'"}],attrs:{title:"上一环节处理人",value:e.wflog.staffName}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addStep",expression:"'addStep'"}],attrs:{title:"新增处理环节",value:e.wfNodeName}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addHandler",expression:"'addHandler'"}],attrs:{required:"true",title:"新增环节处理人",value:e.wflog.addNewStaffName,"is-link":"true"},on:{click:function(t){return e.selectWfNodeUser(e.wflog)}}}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addLimt",expression:"'addLimt'"}],attrs:{required:"true",title:"新增环节处理时限",value:1===e.wflog.timeLimitDay?e.$tx("ecmapp.wflowform.specifyLimit","指定时限"):e.$tx("ecmapp.wflowform.endless","无时限")}}),1===e.wflog.timeLimitDay?t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"zdLimt",expression:"'zdLimt'"}],attrs:{required:"true",title:"指定环节处理时限",value:e.wflog.newTimeLimit,"is-link":"true"},on:{click:function(t){return e.selectNewTimeLimit(e.wflog)}}}):e._e()],1),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{square:"",type:"default"},on:{click:e.handleDialogClose}},[e._v("取 消")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.handleSubmitForm}},[e._v("确 定")])],1)],1):e._e()},Xc=[],eu={name:"ModifyWflogAddUser",components:{},props:{},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",modifyType:"addUser",winTitle:this.$tx("ecmapp.wflowform.addProcessor","添加处理人"),wfNode:null,wfNodeName:"",dialogFormVisible:!1,wfInstance:{},wflog:{},wfdNodeList:[],wfEngineUrl:"",loading:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("showModifyWflogAddUser",this.showModifyWflogAddUser)},beforeDestroy:function(){this.$bus.off("showModifyWflogAddUser",this.showModifyWflogAddUser)},mounted:function(){},methods:{showModifyWflogAddUser:function(e,t,n,a,o){var i=this,r=this;if(!r.loading){a&&(this.winTitle=a),r.loading=!0;var s=r.$vnode.context.$vnode.context;if(r.wfInstance=JSON.parse(JSON.stringify(e)),r.wfInstance.passenger.busiData=s.vo,r.wflog=t,r.wfNodeName=o,t)if(this.wfEngineUrl=this.$route.query.wfEngineUrl||"",this.$set(this.wflog,"newNode",null),this.$set(this.wflog,"addNewStaffName",""),this.$set(this.wflog,"newTimeLimit",""),this.$set(this.wflog,"timeLimitDay",0),"forwardAll"===n&&(this.modifyType=n,this.winTitle=this.$tx("ecmapp.wflowform.batchTransfer","批量转派"),this.wflog.pathName=this.$tx("ecmapp.wflowform.batchTransfer","批量转派")),this.dialogFormVisible=!0,e.udmNodes&&0==e.module.indexOf("udmjysp_")){var l=e.udmNodes;"string"===typeof l&&(l=JSON.parse(l)),l.forEach((function(e){("addCooperationUser"!==r.modifyType||r.historyWflogs.filter((function(t){return t.nodeName===e.name})).length>0)&&r.wfdNodeList.push(e),e.name===i.wfNodeName&&(r.$set(r.wflog,"newNode",r.wfdNodeList.length-1),r.setTimeLimit(r.wfdNodeList.length-1),1===r.wflog.timeLimitDay&&0===e.timeLimitDay&&r.$set(r.wflog,"newTimeLimit",r.wflog.limitTime))})),r.loading=!1}else this.$http({method:"POST",params:{wfProcessId:e.wfId},url:"workflow/wfdProcessMgr/queryWfdNodeByProcessId"}).then((function(e){"success"===e.code?(e.body.listdata.forEach((function(e){"jslc"===e.name||"start"===e.name||"jslc"===e.name||"dfzjd"===e.name||"jsrw"===e.name||"zyjd"===e.name||e.dccodeType||(r.wfdNodeList.push(e),e.name===i.wfNodeName&&(r.$set(r.wflog,"newNode",r.wfdNodeList.length-1),r.setTimeLimit(r.wfdNodeList.length-1),1===r.wflog.timeLimitDay&&0===e.timeLimitDay&&r.$set(r.wflog,"newTimeLimit",r.wflog.limitTime)))})),r.loading=!1):i.$alert({message:e.message,type:"error"}).then((function(){r.handleDialogClose(),r.loading=!1}))}));else r.getCurWflog()}},getCurWflog:function(){var e=this,t=this,n=this.$vnode.context.$vnode.context;t.$nextTick((function(){t.$wfEngine.getWfJsonData(n,e.wfInstance,n.wfParams).then((function(n){n.body.wfJsonData.routes.forEach((function(n){if(("16"===n.type||16===n.type)&&n.taskNodes.length>0){var a=n.taskNodes[0];t.wfNodeName&&(a=n.taskNodes.filter((function(e){return t.wfNodeName===e.name}))[0]),t.wfNode=a,t.wfNodeName=a.name;var o=e.$vnode.context.$vnode.context.curTN;e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:e.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(a){t.loading=!1,"success"===a.code?a.body.listdata.forEach((function(t){t.id===o.tnID&&(e.wflog=t,e.wflog.pathName=n.name,e.wflog.pathType=n.type,e.showModifyWflogAddUser(e.wfInstance,t,e.modifyType,e.winTitle,e.wfNodeName))})):e.$alert({message:a.message,type:"error"})}))}}))}))}))},selectNewTimeLimit:function(){var e=this;this.$bus.emit("openDatetimePicker",this.wflog.newTimeLimit,(function(t){e.$set(e.wflog,"newTimeLimit",t)}),"datetime",this.wflog.createdTime,5)},setTimeLimit:function(e){9!==this.wfdNodeList[e].timeLimitType&&"9"!==this.wfdNodeList[e].timeLimitType?this.$set(this.wflog,"timeLimitDay",1):this.$set(this.wflog,"timeLimitDay",0)},selectWfNodeUser:function(){var e=this,t={selectDialog:"wfNodeUser",multiple:!1,oneByOne:!1,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded,required:!1};t.showSelectByTabs=this.wfNode.showSelectByTabs,t.todoMode=this.wfNode.todoMode,0!==this.wfNode.todoMode&&"0"!==this.wfNode.todoMode&&(t.multiple=!0,"1"===this.wfNode.type&&"3"===this.wfNode.todoMode?t.selectedOrderBy="selectedIndex":t.selectedOrderBy="orgOrderBy"),"1"===this.wfNode.oneByOne&&(t.oneByOne=!0);var n=this.wfNodeName,a=this.wflog.addNewStaffId;this.$bus.emit("openTreeDialog",this.$tx("ecmapp.wflowform.titleHandler",{title:n},"".concat(n,"处理人")),t,this.wfNode.users,(function(t){if("success"===t.code){var n="",a="";t.value.forEach((function(e){void 0!==e.collapseNodes?e.collapseNodes.forEach((function(e){""!==n&&(n+=";"),n+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||"")})):(""!==n&&(n+=";"),n+=e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id+"#"+(e.groupId||"")),""!==a&&(a+="、"),a+=e.name})),e.$set(e.wflog,"addNewStaffId",n),e.$set(e.wflog,"addNewStaffName",a)}}),a)},handleSubmitForm:function(){var e=this,t=this;if(!t.doing)if(this.wflog.addNewStaffId)if(1!==this.wflog.timeLimitDay||this.wflog.newTimeLimit){t.doing=!0;var n="$";1===this.wflog.timeLimitDay&&(n=this.wflog.newTimeLimit);var a=this.wfdNodeList[this.wflog.newNode].id+";"+n+";"+this.wflog.pathName;this.wflog.pathType&&(a+=";"+this.wflog.pathType);var o={wfInstanceId:this.wfInstance.id,modifyType:this.modifyType,newNodeProp:a,selTNID:this.wflog.id,newStaffId:this.wflog.addNewStaffId};""!==this.wfEngineUrl&&(o.wfEngineUrl=this.wfEngineUrl),this.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",params:o,data:Wn().stringify({wfInstance:JSON.stringify(this.wfInstance)}),url:this.$vnode.context.modifyWfNodelogUrl||this.$vnode.context.$vnode.context.modifyWfNodelogUrl}).then((function(n){"success"===n.code?e.$dialog.alert({message:e.$tx("ecmapp.wflowform.successfullyCompleted",{winTitle:e.winTitle},"".concat(e.winTitle,"已成功!"))}).then((function(){t.handleDialogClose()})):(t.doing=!1,t.$dialog.alert({message:n.message,type:"error"}))}))}else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.addStepLimit","请指定办理时限!")});else this.$dialog.alert({message:this.$tx("ecmapp.wflowform.pSelectAddHandler","请选择新增环节处理人!")})},handleDialogClose:function(){this.dialogFormVisible=!1,this.wfInstance={},this.wflog={},this.wfdNodeList=[]}}},tu=eu,nu=(a(6517),(0,Ca.A)(tu,Zc,Xc,!1,null,"897ddfa6",null)),au=nu.exports,ou=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,title:e.winTitle,"on-cancel":e.handleDialogClose},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[e.loading?t("van-loading",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"common.loading",expression:"'common.loading'"}],attrs:{size:"24px",vertical:""}},[e._v("正在加载...")]):[t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"fileTitle",expression:"'fileTitle'"}],attrs:{title:"文件标题",label:e.wfInstance.title}}),t("div",{staticClass:"form-slicer"}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"prevStep",expression:"'prevStep'"}],attrs:{title:"转办环节",value:e.forwardTN}}),e.todoWflogs.length>1?t("van-radio-group",{model:{value:e.forwardTNID,callback:function(t){e.forwardTNID=t},expression:"forwardTNID"}},[t("van-cell-group",e._l(e.todoWflogs,(function(n){return t("van-cell",{attrs:{title:n.nodeName+" "+n.staffName},on:{click:function(t){return e.selectForwardTN(n)}},scopedSlots:e._u([{key:"right-icon",fn:function(){return[t("van-radio",{attrs:{name:n.id}})]},proxy:!0}],null,!0)})})),1)],1):e._e(),t("div",{staticClass:"form-slicer"}),t("van-cell",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"addHandler",expression:"'addHandler'"}],attrs:{required:"true",title:"新处理人",value:e.forwardStaffName,"is-link":"true"},on:{click:function(t){return e.selectWfNodeUser(e.wflog)}}})],t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"cancel",expression:"'cancel'"}],attrs:{square:"",type:"default"},on:{click:e.handleDialogClose}},[e._v("取 消")]),t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"sure",expression:"'sure'"}],attrs:{square:"",type:"info"},on:{click:e.handleSubmitForm}},[e._v("确 定")])],1)],2):e._e()},iu=[],ru={name:"ModifyWflogForward",components:{},props:{},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",modifyType:"forwardTodo",winTitle:this.$tx("ecmapp.wflowform.forwardTodo","文件转办"),dialogFormVisible:!1,wfInstance:{},forwardTNID:"",forwardTN:"",forwardStaffId:"",forwardStaffName:"",todoWflogs:[],wflog:{},modifyWfNodelogUrl:"",loading:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("btnFlowForwardTodoClick",this.btnFlowForwardTodoClick)},beforeDestroy:function(){this.$bus.off("btnFlowForwardTodoClick",this.btnFlowForwardTodoClick)},mounted:function(){},methods:{btnFlowForwardTodoClick:function(e){var t=this;this.wfInstance=e.wfInstance,this.forwardTNID="",this.forwardTN="",this.forwardStaffId="",this.modifyWfNodelogUrl=e.modifyWfNodelogUrl;var n={method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"};1===this.callbackFile&&(n.params.modifyType="callback"),this.$http(n).then((function(e){if("success"===e.code){if(t.todoWflogs=e.body.listdata.filter((function(e){return e.status<6&&1===e.taskType})),0===t.todoWflogs.length)return void t.$dialog.alert({message:"当前文件没有在办节点,不需要转办"});1===t.todoWflogs.length&&(t.forwardTNID=t.todoWflogs[0].id,t.forwardTN=t.todoWflogs[0].nodeName+" "+t.todoWflogs[0].staffName),t.dialogFormVisible=!0}}))},selectForwardTN:function(e){this.forwardTNID=e.id,this.forwardTN=e.nodeName+" "+e.staffName},selectWfNodeUser:function(){var e=this;if(this.forwardTNID){var t={selectDialog:"staff",multiple:!1,oneByOne:!1,onSelectTreeDataLoaded:this.onSelectTreeDataLoaded,required:!1,showSelectByTabs:!0,todoMode:0};this.wflog=this.todoWflogs.filter((function(t){return t.id===e.forwardTNID}))[0];var n=this.wflog.nodeName;this.$bus.emit("openTreeDialog",this.$tx("ecmapp.wflowform.titleHandler",{title:n},"".concat(n,"处理人")),t,null,(function(t){"success"===t.code&&(e.forwardStaffId=t.value[0].id,e.forwardStaffName=t.value[0].orgFullName.split("-")[1]+" "+t.value[0].name)}))}else this.$dialog.alert({message:"请选择需要转办的节点"})},handleSubmitForm:function(){var e=this;this.forwardStaffId?this.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id,modifyType:"forward",selTNID:this.forwardTNID,newStaffId:this.forwardStaffId},data:Wn().stringify({wfInstance:JSON.stringify(this.wfInstance)}),url:this.modifyWfNodelogUrl}).then((function(t){"success"===t.code?e.$dialog.alert({message:e.$tx("ecwapp.Wflowform.ModifyWfNodelog.transferredHandle",{selectedNodes:e.forwardStaffName},"已经成功将文件转给".concat(e.forwardStaffName,"办理"))}).then((function(){e.handleDialogClose()})):e.$dialog.alert({message:t.message,type:"error"})})):this.$dialog.alert({message:"请选择转办新处理人"})},handleDialogClose:function(){this.dialogFormVisible=!1,this.wfInstance={},this.wflog={}}}},su=ru,lu=(a(9735),(0,Ca.A)(su,ou,iu,!1,null,"301979cb",null)),du=lu.exports;function cu(e){return cu="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},cu(e)}function uu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */uu=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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,a){var i=t&&t.prototype instanceof g?t:g,r=Object.create(i.prototype),s=new A(a||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}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 f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function g(){}function y(){}function _(){}var b={};d(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(Y([])));x&&x!==n&&a.call(x,r)&&(b=x);var M=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,r,s){var l=u(e[o],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==cu(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(c).then((function(e){d.value=e,r(d)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,o){n(e,a,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,a){var o=f;return function(i,r){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw r;return{value:e,done:!0}}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var l=T(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===f)throw o=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=m;var d=u(t,n,a);if("normal"===d.type){if(o=a.done?h:p,d.arg===v)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(o=h,a.method="throw",a.arg=d.arg)}}}function T(t,n){var a=n.method,o=t.iterator[a];if(o===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=u(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var r=i.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(cu(t)+" is not iterable")}return y.prototype=_,o(M,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:y,configurable:!0}),y.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},k(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,a,o,i){void 0===i&&(i=Promise);var r=new L(c(e,n,a,o),i);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(M),d(M,l,"Generator"),d(M,r,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=Y,A.prototype={constructor:A,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(N),!t)for(var n in this)"t"===n.charAt(0)&&a.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 o(a,o){return s.type="throw",s.arg=t,n.next=a,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=a.call(r,"catchLoc"),d=a.call(r,"finallyLoc");if(l&&d){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(r)},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),v},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),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var o=a.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:Y(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}function fu(e,t,n,a,o,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(a,o)}function pu(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function r(e){fu(i,a,o,r,s,"next",e)}function s(e){fu(i,a,o,r,s,"throw",e)}r(void 0)}))}}var mu=a(5093),hu={name:"WfNodelogList",components:{ModifyWflogAddUser:au,ModifyWflogForwardTodo:du},props:{wfInstance:{type:Object,default:function(){return{}}},showProcessedTimeLength:{type:Number,default:1}},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",callbackFile:0,callTNID:"",callbackMode:"beforeopen",callbackSendsms:null,selTNID:[],wfNodeLogList:{},msgTypeOptions:null,totalDurTime:"",showpop:!1,anywhereChat:window.anywhereChat||!1,loginUser:this.$store.getters.loginUser}},computed:{},watch:{},created:function(){var e=this.$vnode.context.curTN;e.passenger&&e.passenger.callbackFile&&(this.callbackFile=e.passenger.callbackFile,this.callTNID=e.tnID),this.loginUser.webchat||(this.anywhereChat=!1),this.$bus.on("btnAddReader",this.btnAddReaderClick),this.$bus.on("btnReadedClick",this.btnReadedClick),this.$bus.on("btnReturnHistoryClick",this.btnReturnHistoryClick)},beforeDestroy:function(){this.$bus.off("btnAddReader",this.btnAddReaderClick),this.$bus.off("btnReadedClick",this.btnReadedClick),this.$bus.off("btnReturnHistoryClick",this.btnReturnHistoryClick)},mounted:function(){},methods:{viewWfNodelogs:function(){var e=this,t={method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:this.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"};1===this.callbackFile&&(t.params.modifyType="callback"),this.$http(t).then((function(t){if("success"===t.code){var n=e.$vnode.context.curTN;2===e.wfInstance.busiHaveExt&&n.passenger&&n.passenger.returnParentWflog&&res.body.listdata.push(n.passenger.returnParentWflog),e.wfNodeLogList=t.body.listdata.filter((function(e){return e.taskType>0&&9!==e.taskType})),e.callbackMode=t.body.callbackMode,e.msgTypeOptions=t.body.msgTypeOptions||null,null!==t.body.callbackSendsms&&(e.callbackSendsms=t.body.callbackSendsms);var a,o=e.wfNodeLogList[0].createTime;a=9===e.wfNodeLogList[e.wfNodeLogList.length-1].status&&null!=e.wfNodeLogList[e.wfNodeLogList.length-1].completeTime?e.wfNodeLogList[e.wfNodeLogList.length-1].completeTime:mu(new Date).format("YYYY-MM-DD HH:mm:ss"),e.totalDurTime=e.computeDurTime(o,a),e.wfNodeLogList.forEach((function(t){t.createTime=t.createTime.replace(/\-/g,"/"),9===t.status&&null!=t.completeTime?(a=t.completeTime,t.step=1):(a=mu(new Date).format("YYYY-MM-DD HH:mm:ss"),t.step=-1),t.durTime=e.computeDurTime(t.createTime,a),9===t.status&&null!==t.completeTime&&(t.completeTime=t.completeTime.replace(/\-/g,"/")),t.limitTime&&(t.limitTime<a&&(t.timeoutTime=e.computeDurTime(t.limitTime,a)),t.limitTime=t.limitTime.replace(/\-/g,"/")),t.idea&&0===t.idea.indexOf("{handwriting:1,")&&(t.idea='<img name="handwritingidea" class="handwritingIdea" src="./apigw/workflow/wfInstanceNodelog/viewHandwritingIdea?wfNodelogId='+t.id+'"></img>')})),e.showpop=!0}else console.log(t.message)}),(function(e){console.log(e)}))},computeDurTime:function(e,t){var n;e=e.replace(/\-/g,"/"),t=t.replace(/\-/g,"/");var a=(Date.parse(t)-Date.parse(e))/6e4,o=parseInt(a%60),i=parseInt(a%1440/60),r=parseInt(a/1440),s=(Date.parse(t)-Date.parse(e))/1e3%60;return n=r>=1?r+"天"+i+"时"+o+"分":i>=1?i+"时"+o+"分":o+"分"+s+"秒",n},submitCallbackFile:function(){var e=this;this.wfNodeLogList.forEach((function(t){"beforeend"===callbackMode?t.status<6&&e.selTNID.push(t.id):t.parentId!==e.callTNID||null!==t.openTime&&"beforesubmit"!==e.callbackMode||e.selTNID.push(t.id)})),this.$dialog.confirm({message:this.$tx("ecmapp.wflowform.wantToRetrieve","您是否确认要收回文件?"),type:"warning"}).then((function(){e.showpop=!1;var t={wfInstanceId:e.wfInstance.id,modifyType:"callback",callTNID:e.callTNID,selTNID:e.selTNID.join(","),callbackMode:e.callbackMode};null!==e.msgTypeOptions?t.sendMsg=e.callbackSendsms:t.sendSms=e.callbackSendsms,e.$http({method:"PUT",contentType:"application/x-www-form-urlencoded",params:t,data:Wn().stringify({wfInstance:JSON.stringify(e.wfInstance)}),url:e.$vnode.context.modifyWfNodelogUrl}).then((function(t){if("success"===t.code){var n=location.href;-1!==n.indexOf("&wfNodelogId=")&&(n=n.substring(0,n.indexOf("&wfNodelogId="))+n.substring(n.indexOf("&wfNodelogId=")+32+13),location.href=n),e.$bus.emit("loadWfInstance")}else e.$dialog.alert({message:t.message})}))}))},btnAddReaderClick:function(e,t,n,a){var o=this;a=a||"staff";var i={selectDialog:a,multiple:!0};this.$bus.emit("openTreeDialog",n||this.$tx("ecmapp.wflowform.addReaders","添加阅文人"),i,null,(function(n){if("success"===n.code){var a=n.value;if(a.length>0){var i=JSON.parse(JSON.stringify(e.wfInstance));i.passenger.busiData=e.vo;var r={wfInstance:JSON.stringify(i)};r.openUrl=e.submitHandle.openUrl,r.nodeName=t||e.curTN.passenger.toReadedNodeName||"阅知",r.sender=e.curTN.userName,r.senderDept=e.curTN.staffOrgName,r.senderStaffId=e.curTN.senderStaffId,r.sendToOther=0,r.disabledViewIdea=0,r.leaders=[],a.forEach((function(e){r.leaders.push(e.orgFullName+":"+e.name+"/"+e.account+"@"+e.id)})),r.leaders=r.leaders.join(","),o.$bus.emit("showDoingDialog"),o.$http({method:"POST",contentType:"application/x-www-form-urlencoded;charset=UTF-8",data:Wn().stringify(r),url:"workflow/wfInstance/createToReadItem"}).then((function(e){o.$bus.emit("closeDoingDialog"),"success"===e.code?o.$dialog.alert({message:"已成功添加阅文人!"}):o.$dialog.alert({message:e.message})}))}}}))},btnReadedClick:function(e){var t=this;this.$dialog.confirm({message:this.$tx("ecmapp.wflowform.sureReaded","您是否确认已阅?")}).then((function(){e.doing=!0,e.$wfEngine.saveWfInstance(e,"ManulReaded",e.wfParams).then((function(n){"success"===n.code?(t.$toast.success(n.message),setTimeout((function(){e.btnCloseClick()}),100)):(e.doing=!1,t.$dialog.alert({message:n.message}))}))}))},startChat:function(e,t){var n=this;this.$http({method:"GET",params:{staffIds:e},url:"base/organMgr/findLinkManListByStaffIds"}).then((function(e){"success"===e.code?e.body.listdata.length>0&&e.body.listdata[0].webchat?(n.$router.back(-1),setTimeout((function(){var t=encodeURIComponent(location.href.split("#")[1]),a=e.body.listdata[0].webchat;n.$router.push({path:"/chat/chatRoom",query:{webchat:a,openType:"singleChat",from:t}})}),100)):n.$dialog.alert({message:n.$tx("ecmapp.wflowform.notActivated1",{staffName:t},"".concat(t,"未开通即时通信功能"))}):n.$dialog.alert({message:e.message})}))},btnReturnHistoryClick:function(e){var t=this,n=this.$vnode.context.wfInstance,a=this.$vnode.context.curTN,o="workflow/wfInstanceNodelog/queryHistoryNode";e&&(o="workflow/wfInstanceNodelog/queryHistoryNodeByWflogId"),this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:n.id,curTnCreateTime:a.tnStartTime,curNodeId:a.tnNodeID,returnMode:a.tnReturnMode,wflogId:e},url:o}).then((function(e){if("success"===e.code)if(e.body.listdata&&e.body.listdata.length>0){var n=[];e.body.listdata.forEach((function(e){n.push({text:e.nodeName+" "+e.staffName,value:JSON.stringify(e)})})),n.length>1?t.$bus.emit("openListitemDialog","驳回",n,(function(e){if("success"===e.code){var n=JSON.parse(e.value.value);t.returnHistoryNodeSubmit(n)}}),null,null,"请选择驳回节点"):1===n.length&&t.$dialog.confirm({message:t.$tx("ecwapp.Wflowform.returnHistory","您是否确认驳回到上一环节?")}).then((function(){var e=JSON.parse(n[0].value);t.returnHistoryNodeSubmit(e)}))}else t.$dialog.alert({message:e.message})}))},returnHistoryNodeSubmit:function(e){var t=this.$vnode.context,n={id:e.staffId,name:e.staffName,account:e.staffAccount,orgFullName:e.staffOrgName};t.submitHandle.needCheckOuterDeputy=[{wfnodeId:e.nodeId,wfnodeName:e.nodeName,users:[n],todoType:e.todoType}],t.$wfEngine.checkOuterDeputy(t,t.wfParams).then(function(){var a=pu(uu().mark((function a(o){var i,r,s,l,d,c;return uu().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("success"===o.code){a.next=4;break}t.$dialog.alert({message:o.message}),a.next=19;break;case 4:t.doing=!0,i=!0,r=0;case 7:if(!(r<t.refsAttachments.length)){a.next=17;break}return a.next=10,t.refsAttachments[r].uploadWflowAttach(t);case 10:if(s=a.sent,"success"===s.code){a.next=14;break}return i=!1,a.abrupt("break",17);case 14:r++,a.next=7;break;case 17:t.submitHandle.curUserIdea&&2!==t.curTN.tnIdeaSaveType||(t.curTN.tnIdeaLabelID=null,t.curTN.tnIdeaLabelName=null,t.submitHandle.curUserIdea=""),i?(l="ReturnHistTNSubmit",d="退回"+e.nodeName,c={id:e.nodeId,name:e.nodeName,type:e.nodeType,todoMode:e.todoMode,todoType:e.todoType,timeLimit:e.timeLimit,tmLmtBeforeNotice:e.tmLmtBeforeNotice,tmLmtType:e.tmLmtType,pathType:3},t.submitHandle.route[e.nodeName]={users:[n]},t.submitHandle.submitRoute={name:d,type:3,taskNodes:[c]},t.$wfEngine.saveWfInstance(t,l,t.wfParams).then((function(e){"success"===e.code?(t.$toast.success(e.message),setTimeout((function(){t.btnCloseClick()}),1e3)):t.$dialog.alert({message:e.message}),t.doing=!1}))):(t.$dialog.alert({message:t.$tx("ecwapp.Wflowform.IdeaInputBox.uploadFileFail","上传文件失败")}),t.doing=!1);case 19:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}())}}},vu=hu,gu=(a(3806),(0,Ca.A)(vu,Kc,Qc,!1,null,"785b60a7",null)),yu=gu.exports,_u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"write_toread_idea"},[e.dialogVisible?t("van-dialog",{attrs:{title:e.$tx("ecmapp.wflowform.fields.reviewComments","批阅意见"),"show-cancel-button":"","confirm-button-text":"确定","before-close":e.dialogBeforeClose},on:{cancel:e.handleDialogClose,confirm:e.handleSubmitForm},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[t("van-field",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"reviewComments",expression:"'reviewComments'"}],staticClass:"idea_content",attrs:{placeholder:"请填写批阅意见",readonly:!1,type:"textarea",rows:8,autosize:!1},model:{value:e.wflog.idea,callback:function(t){e.$set(e.wflog,"idea",t)},expression:"wflog.idea"}})],1):e._e()],1)},bu=[],wu={name:"WriteToReadIdea",components:{},props:{},data:function(){return{i18npkg:"ecmapp",moduleCode:"wflowform",dialogVisible:!1,$scope:null,wflog:{},fail:!1}},computed:{},watch:{},created:function(){this.$bus.on("writeToReadIdea",this.writeToReadIdea)},beforeDestroy:function(){this.$bus.on("writeToReadIdea",this.writeToReadIdea)},mounted:function(){},methods:{writeToReadIdea:function(e){var t=this;this.$scope=e;var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{wfInstanceId:e.wfInstance.id},url:"workflow/wfInstanceNodelog/listWfNodelog"}).then((function(a){if("success"===a.code){var o=e.curTN.passenger.toReadedNodeName,i=a.body.listdata.filter((function(t){if(t.staffAccount===e.curTN.userAccount&&(0===t.taskType||9===t.taskType)&&(t.nodeName===o||null===o||""===o))return!0}));i.length>0?(n.wflog=i[0],n.dialogVisible=!0):t.$toast.fail(t.$tx("ecmapp.wflowform.noWritReview","您的阅文记录不存在,不能填写批阅意见"))}}))},handleSubmitForm:function(){var e=this;if(!this.wflog.idea)return this.fail=!0,void this.$toast.fail(this.$tx("ecmapp.wflowform.writReviewComments","请填写批阅意见"));this.fail=!1;var t=this.$scope.curTN;this.$http({method:"PUT",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},params:{wfInstanceId:this.wflog.wfInstanceId,modifyType:"modifyIdea",selTNID:this.wflog.id},data:Wn().stringify({wfInstance:JSON.stringify(this.$scope.wfInstance),modifiedIdea:this.wflog.idea,tnIdeaLabelID:t.tnIdeaLabelID,tnIdeaLabelName:t.tnIdeaLabelName}),url:this.$scope.modifyWfNodelogUrl}).then((function(t){"success"===t.code?(e.$toast.success(t.message),e.$scope.loadWfInstance()):(e.fail=!0,e.$toast.fail(t.message))}))},dialogBeforeClose:function(e,t){"confirm"===e&&this.fail?t(!1):t()},handleDialogClose:function(){this.fail=!1,this.wflog={},this.dialogVisible=!1}}},xu=wu,Mu=(a(5357),(0,Ca.A)(xu,_u,bu,!1,null,"a814ebae",null)),ku=Mu.exports,Lu=function(){var e=this,t=e._self._c;return t("div",[t("PopupDialog",{attrs:{showpop:e.dialogFormVisible,"on-closed":e.onClosed,title:e.title},on:{"update:showpop":function(t){e.dialogFormVisible=t}}},[null!=e.wfItem?t("van-cell-group",[t("div",{staticClass:"van-textarea-field"},[t("van-field",{staticClass:"van-cell-field-title",attrs:{label:e.$tx("ecmapp.wflowform.fileTitle","文件标题"),readonly:!0}}),t("div",{staticClass:"van-cell van-field"},[t("div",{staticClass:"richtext-content",domProps:{innerHTML:e._s(e.wfItem.flSubject)}})])],1),t("van-field",{attrs:{label:e.$tx("ecmapp.wflowform.fileType","文件类型"),readonly:!0,"input-align":"right"},model:{value:e.wfItem.flType,callback:function(t){e.$set(e.wfItem,"flType",t)},expression:"wfItem.flType"}})],1):e._e(),void 0!=e.wfJsonData&&null!=e.submitHandle?t("SubmitHandle",{attrs:{"cur-t-n":e.curTN,"wf-instance":e.wfInstance,"submit-handle":e.submitHandle,"wf-json-data":e.wfJsonData,"common-idea-list":e.commonIdeaList,"submit-template-list":e.submitTemplateList}}):e._e(),t("FooterButtonGroup",[t("van-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"submit",expression:"'submit'"}],attrs:{square:"",type:"info"},on:{click:e.submitFile}},[e._v("提 交")])],1)],1),t("SelectDialog"),t("SelectOuterDeputy")],1)},Su=[],Tu={name:"ShortcutProcessing",components:{},props:{},data:function(){return{title:this.$tx("ecmapp.wflowform.submitHandle","提交办理"),wfItem:null,curTN:null,wfInstance:null,wfJsonData:null,submitHandle:null,commonIdeaList:null,submitTemplateList:null,dialogFormVisible:!1}},computed:{},watch:{},created:function(){this.$bus.on("startBatchProcessFiles",this.startBatchProcessFiles)},beforeDestroy:function(){this.$bus.off("startBatchProcessFiles",this.startBatchProcessFiles)},mounted:function(){},methods:{startBatchProcessFiles:function(e,t,n){var a=this;this.title=t,this.wfItem=n.wfItem;var o=x(this.wfItem.itemUrl);o.openType="BatchSubmit",this.dialogFormVisible=!0,this.$wfEngine.loadWfInstance(this,o).then((function(e){"success"!==e.code&&a.$dialog.alert({message:e.message})}))},submitFile:function(){var e=this,t="BatchSubmit",n=this.$wfEngine.checkSubmitHandle(this,t);if("success"===n.code){var a=x(this.wfItem.itemUrl);this.$wfEngine.checkOuterDeputy(this,a).then((function(n){"success"!==n.code?e.$dialog.alert({message:n.message}):e.$wfEngine.saveWfInstance(e,t,a).then((function(t){"success"===t.code?(e.$bus.emit("refreshListData"),e.dialogFormVisible=!1):e.$dialog.alert({message:t.message})}))}))}else this.$dialog.alert({message:n.message})},onClosed:function(){this.wfItem=null,this.curTN=null,this.wfInstance=null,this.wfJsonData=null,this.submitHandle=null,this.commonIdeaList=null,this.submitTemplateList=null}}},Du=Tu,Nu=(0,Ca.A)(Du,Lu,Su,!1,null,"4c6e246c",null),Au=Nu.exports;sc.install=function(e){e.component(sc.name,sc)},gc.install=function(e){e.component(gc.name,gc)},Mc.install=function(e){e.component(Mc.name,Mc)},Nc.install=function(e){e.component(Nc.name,Nc)},Rc.install=function(e){e.component(Rc.name,Rc)},Gc.install=function(e){e.component(Gc.name,Gc)},yu.install=function(e){e.component(yu.name,yu)},ku.install=function(e){e.component(ku.name,ku)},Au.install=function(e){e.component(Au.name,Au)};var Yu=sc,Cu=gc,Ou=Mc,Iu=Nc,Eu=Rc,$u=Gc,Pu=yu,ju=ku,Fu=Au,Hu=function(){var e=this,t=e._self._c;return t("div",{staticClass:"richtext-container"},[t("div",{style:"height:"+e.height,attrs:{id:"richtext"}})])},Bu=[],Uu={name:"RichtextEditor",components:{},props:{value:{type:String,default:""},height:{type:String,default:"calc(100vh - 44px - 60px)"},toolbar:{type:String,default:"standard"},startupMode:{type:String,default:"wysiwyg"},imageUploadUrl:{type:String,default:null},autoFocus:{type:Boolean,default:!0},placeholder:{type:String,default:""}},data:function(){return{editor:null}},computed:{},watch:{value:function(){this.value!==this.editor.txt.html()&&this.editor.txt.html(this.value)}},created:function(){},beforeDestroy:function(){this.editor.destroy()},mounted:function(){this.placeholder=this.$tx("ecmapp.common.enterMainText","请输入正文");var e=this,t=window.wangEditor;this.editor=new t("#richtext"),this.editor.config.menus=["head","bold","fontSize","fontName","italic","underline","lineHeight","foreColor","backColor","justify","image","table","undo","redo"],this.editor.config.zIndex=5,this.editor.config.height=this.height,this.editor.config.focus=this.autoFocus,this.editor.config.showFullScreen=!1,this.editor.config.placeholder=this.placeholder;var n=this.imageUploadUrl;null==n&&this.$vnode.context.wfInstance&&(n=this.$vnode.context.wfEngineUrl?"/apigw/"+this.$vnode.context.wfEngineUrl+"/uploadBodyPicture?module="+this.$vnode.context.wfInstance.module+"&busiDataId="+this.$vnode.context.wfInstance.busiDataId+"&attachsType=BODY&apigw=/apigw":"/apigw/workflow/wfBusiAttach/uploadBodyPicture?module="+this.$vnode.context.wfInstance.module+"&busiDataId="+this.$vnode.context.wfInstance.busiDataId+"&attachsType=BODY&apigw=/apigw"),-1!==n.indexOf("?")?n+="&httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken():n+="?httpPort="+location.port+"&csrfToken="+window.$auth.getCsrfToken(),0===n.indexOf("/apigw")&&(n=n.replace("/apigw","")),this.editor.config.uploadImgServer=n,this.editor.config.uploadImgShowBase64=!1,this.editor.config.showLinkImg=!1,this.editor.config.uploadImgMaxLength=1,this.editor.config.uploadImgAccept=["jpg","jpeg","png","gif"],this.editor.config.customUploadImg=function(t,a){var o=new FormData;o.append("file",t[0]),e.$http({url:n,method:"POST",data:o}).then((function(e){e.url&&a(e.url)}))},this.editor.config.uploadVideoServer=n,this.editor.config.uploadVideoMaxSize=52428800,this.editor.config.uploadVideoAccept=["mp4"],this.editor.config.showLinkVideo=!1,this.editor.config.customUploadVideo=function(t,a){var o=new FormData;o.append("file",t[0]),e.$http({url:n,method:"POST",data:o}).then((function(e){e.url&&a(e.url)}))},this.editor.txt.eventHooks.keydownEvents.push(this.keydownEvents),this.editor.config.onchange=function(t){e.$emit("input",t)},this.editor.create(),this.editor.txt.html(this.value);var a=this.$vnode.context.canEdit;this.$vnode.context.curTN&&(a=this.$vnode.context.curTN.tnCanEdit),0!==a&&"0"!==a||(this.editor.config.placeholder="",this.editor.disable())},methods:{keydownEvents:function(e){if("source"!==this.startupMode){if(32===e.keyCode)return e.cancel&&e.cancel(),e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.editor.cmd.do("insertHTML"," "),!1;if(9===e.keyCode)return e.cancel&&e.cancel(),e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.editor.cmd.do("insertHTML","    "),!1}},tabDownEvents:function(e){return e.cancel&&e.cancel(),e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.editor.cmd.do("insertHTML","    "),!1}}},Ru=Uu,Wu=(a(1582),(0,Ca.A)(Ru,Hu,Bu,!1,null,"1c8100d7",null)),Vu=Wu.exports;Vu.install=function(e){e.component(Vu.name,Vu)};var zu=Vu,Ju=a(9274),qu=a.n(Ju);function Gu(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({field:t.value},n.context,o.moduleCode,o.i18npkg,o);if(i){var r=e.querySelector(".van-field__label")||e.querySelector(".van-cell__title");if(r){if(r.querySelector("span").innerHTML=i,!r.classList.contains("van-field__label"))return;n.context.label&&n.context.$set(n.context,"label",i);var s=n.context.$vnode.tag;-1!==s.indexOf("-")&&(s=s.substring(s.lastIndexOf("-")+1));var l=null;l="TextareaField"===s?e.childNodes[1].querySelector(".van-field__control"):e.querySelector(".van-field__control"),l&&l&&l.placeholder&&("SelectField"===s||"DatetimeField"===s||"InputField"===s&&null!==n.context.onClick&&!n.context.nodeFieldReadOnly?l.placeholder=n.context.$tx("common.plChooseContent",{content:i})||l.placeholder:l.placeholder=n.context.$tx("common.plInputContent",{content:i})||l.placeholder)}else e.innerHTML=i}}}function Ku(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=e["__vue__"].label,r=n.context.$i18n.generateTitle({field:t.value,type:"option",value:i},n.context,o.moduleCode,o.i18npkg,o);if(r){n.context.formItem.formatterMap&&n.context.formItem.formatterMap.forEach((function(e){e.value==i&&(e.text=r)}));var s=e.querySelector(".el-checkbox__label")||e.querySelector(".el-radio__label")||e.querySelector("span");s&&(s.innerHTML=r)}}}function Qu(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({formTitle:t.value,code:t.value},n.context,o.moduleCode,o.i18npkg,o);i&&(e.querySelector(".content")?e.querySelector(".content").innerHTML=i:e.innerHTML=i)}}function Zu(e,t,n){var a=t.value;if(a&&("zhCN"!==n.context.$i18n.locale||-1!==a.indexOf("Wflowform")||-1!==a.indexOf("ModifyWfNodelog")||-1!==a.indexOf("SubmitHandle")||-1!==a.indexOf("WfdProcess"))){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({i18nCode:t.value},n.context,o.moduleCode,o.i18npkg,o);if(i){var r=e.querySelector(".van-field__label")||e.querySelector(".van-cell__title"),s=e.querySelector(".el-checkbox__label")||e.querySelector(".el-radio__label")||e.querySelector(".el-radio-button__inner");r?r.querySelector("span").innerHTML=i:s?s.innerHTML=i:e.innerHTML=i}}}function Xu(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$i18n.generateTitle({btnI18nCode:t.value},n.context,o.moduleCode,o.i18npkg,o);i&&(e.innerHTML=i)}}function ef(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({btnI18nCode:t.value,type:"commandBarBtn"},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function tf(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({wfNodeName:t.value},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function nf(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({wfPathName:t.value},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function af(e,t,n){var a=t.value;if(a&&"zhCN"!==n.context.$i18n.locale){var o=n.data.attrs||{},i=n.context.$route.query.wfEngineUrl;if(i&&i.split("/").length>1&&(o.i18npkg=i.split("/")[0],o.moduleCode=i.split("/")[1]),"workflow"===o.i18npkg||!o.i18npkg){var r=n.context.$vnode.context.wfInstance.workForm;-1!==r.indexOf("/dcontent/")?(r=r.split("/dcontent/")[1].split("."),o.i18npkg=r[0],o.moduleCode=r[1]):-1!==r.indexOf("@/")&&(r=r.split("/"),o.i18npkg=r[2],o.moduleCode=r[3])}var s=n.context.$i18n.generateTitle({wfIdeaLabel:t.value},n.context,o.moduleCode,o.i18npkg,o);s&&(e.innerHTML=s)}}function of(e){return of="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},of(e)}qu().directive("field-lbl",{inserted:function(e,t,n){Gu(e,t,n)},update:function(e,t,n){Gu(e,t,n)}}),qu().directive("option-lbl",{inserted:function(e,t,n){Ku(e,t,n)},update:function(e,t,n){Ku(e,t,n)}}),qu().directive("form-title",{inserted:function(e,t,n){Qu(e,t,n)},update:function(e,t,n){Qu(e,t,n)}}),qu().directive("text-lbl",{inserted:function(e,t,n){Zu(e,t,n)},update:function(e,t,n){Zu(e,t,n)}}),qu().directive("pageBtn-lbl",{inserted:function(e,t,n){Xu(e,t,n)},update:function(e,t,n){Xu(e,t,n)}}),qu().directive("wfbtn-lbl",{inserted:function(e,t,n){ef(e,t,n)},update:function(e,t,n){ef(e,t,n)}}),qu().directive("wfnode-lbl",{inserted:function(e,t,n){tf(e,t,n)},update:function(e,t,n){tf(e,t,n)}}),qu().directive("wfpath-lbl",{inserted:function(e,t,n){nf(e,t,n)},update:function(e,t,n){nf(e,t,n)}}),qu().directive("wfidea-lbl",{inserted:function(e,t,n){af(e,t,n)},update:function(e,t,n){af(e,t,n)}});var rf=a(5093);qu().directive("format-value",{inserted:function(e,t,n){var a=t.value;void 0!==n.context.tbColumns&&n.context.tbColumns.forEach((function(t){if(t.field===a)if(n.context.pageInfo.passenger&&"object"===of(n.context.pageInfo.passenger[t.field+"Options"])&&n.context.pageInfo.passenger[t.field+"Options"].length>0)of(n.context.pageInfo.passenger[t.field+"Options"].forEach((function(t){t.value+""===e.textContent&&(e.innerHTML=t.text)})));else{var o=t.elementFormatter||"";if(o=o.replace(/\r\n/g,"<br>").replace(/\\r\\n/g,"<br>").replace(/\n/g,"<br>").split("<br>"),0===o[0].indexOf("format:")){var i=o[0].substring(7),r=e.textContent;if(null!==r&&""!==r&&-1!==r.indexOf(":")){var s=new Date(r.replace(/-/g,"/"));isNaN(s.getTime())||(e.innerHTML=rf(new Date(r.replace(/-/g,"/"))).format(i.replace("yyyy","YYYY").replace("dd","DD")))}}else if(0===o[0].indexOf("valueSuffix:")){var l=e.textContent;null!==l&&""!==l&&""!==l.trim()&&(e.innerHTML=l+o[0].split(":")[1])}else if(o.length>2||2===o.length&&""!==o[1])for(var d=0;d<o.length;d++)if(o[d].split(":").length>1){var c=o[d].split(":")[0];if(e.textContent===c){e.innerHTML=o[d].split(":")[1];break}}}}))}});var sf={inserted:function(e,t,n){var a=t.value;if(void 0!==a){var o=null;o="FOOTER"===e.parentElement.tagName||"FOOTER"===e.parentElement.parentElement.tagName?"FOOTER_BTN$":k(e.parentElement,"el-table-toolbar-right")||k(e.parentElement.parentElement,"el-table-toolbar-right")?"TOOLBAR_BTN$":k(e,"el-link")&&e.parentElement.parentElement.tagName("TD")?"COLUMN_BTN$":"OTHER$";var i=o+a;n.context.$store.dispatch("user/hasPermission",{href:n.context.$route.meta.href,pcode:i}).then((function(t){t||e.parentNode&&e.parentNode.removeChild(e)}))}}},lf=function(e){e.directive("permission",sf)};window.Vue&&(window["permission"]=sf,Vue.use(lf)),sf.install=lf;var df=sf;qu().use(df);var cf=a(4466);function uf(e){return uf="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},uf(e)}function ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ff(Object(n),!0).forEach((function(t){mf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mf(e,t,n){return(t=hf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hf(e){var t=vf(e,"string");return"symbol"==uf(t)?t:t+""}function vf(e,t){if("object"!=uf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=uf(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var gf=[Zn,sa,da,pa,Ea,Cd,Od,Id,Ed,$d,Pd,jd,Fd,ts,ys,Ua,Ga,Eo,ur,zd,Ta,Yu,Cu,Ou,Iu,Eu,$u,Fu,Pu,ju,lo,al,zu],yf=function e(t){e.installed||(e.installed=!0,gf.map((function(e){t.use(e)})))};"undefined"!==typeof window&&window.Vue&&(yf(window.Vue),setTimeout((function(){window.$alert=window.Vue.prototype.$dialog.alert,Vue.prototype.$tx=_f.$tx,window.$tx=g.$tx}),0));var _f=g,bf=Un,wf=Hn.A,xf=cf.A,Mf=pf({install:yf},gf),kf=Mf}(),o}()}));
|