index.legacy.js 42.2 KB
Newer Older
lxm1993's avatar
lxm1993 committed
1
!function(){function e(t){return e="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},e(t)}function t(){return t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var o=n(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},t.apply(this,arguments)}function n(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=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(P){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new U(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}t.wrap=d;var p={};function h(){}function m(){}function v(){}var y={};u(y,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(F([])));g&&g!==n&&r.call(g,a)&&(y=g);var w=v.prototype=h.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(t,n){function i(o,a,s,l){var c=f(t[o],t,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==e(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):n.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return i("throw",e,s,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){i(e,t,n,r)}))}return a=a?a.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function F(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},k(x.prototype),u(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),u(w,c,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=F,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.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&&r.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 a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},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),p},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),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:F(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function l(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function g(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}System.register(["@ibiz-template/model","@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","qx-util","lodash-es","@ibiz-template/runtime"],(function(e,n){"use strict";var r,a,l,d,h,v,w,k,x,E,S,O,C,U,F,L,P,T,j,I,N,D,A,R,_,M,z,B,V,G,W,q,$,X,H,J,Q,Y,K,Z;return{setters:[function(e){r=e.IndexViewModel,a=e.ViewType,l=e.ModelUtil},function(e){d=e.GridFieldColumnController,h=e.GridRowController,v=e.WFStepTraceViewController,w=e.UploadEditorController,k=e.WFDynaEditView3Controller},function(e){x=e.defineComponent,E=e.computed,S=e.h,O=e.getCurrentInstance,C=e.ref,U=e.watch,F=e.toRefs},function(e){L=e.useNamespace,P=e.useViewController,T=e.usePropsWatch,j=e.getUploadProps,I=e.getEditorEmits,N=e.getGridUploadProps,D=e.getGridEditorEmits,A=e.useClickOutside,R=e.useEventListener,_=e.getInputProps,M=e.getGridInputProps,z=e.useGridCellEditor,B=e.useWFStepTraceViewController,V=e.useEditView3Controller},function(e){G=e.colorBlend,W=e.HttpError,q=e.isImage,$=e.uploadFile,X=e.RuntimeError},function(e){H=e.getCookie,J=e.createUUID},function(e){Q=e.debounce},function(e){Y=e.ViewMode,K=e.UIActionHandler,Z=e.PluginStaticResource}],execute:function(){var ee=x({name:"CodeListGridColumn",props:{controller:{type:d,required:!0},row:{type:h,required:!0}},setup:function(e){var t=L("grid-field-column"),n=E((function(){var n;if("FRONT"!==e.controller.model.source.cLConvertMode)return[];var r=e.row.data[e.controller.model.codeName];return null!==(n=e.controller.codeListItems)&&void 0!==n&&n.length&&r?r.split(",").map((function(n){var r=e.controller.codeListItems.find((function(e){return e.value===n}));if(r){var o=r.color||"#515a6e";return{text:r.text,colorStyle:t.cssVarBlock({color:o,"border-color":o,"bg-color":G(o,"#fff")})}}})).filter(Boolean):[]})),r=E((function(){var n="";switch(e.controller.model.align){case"LEFT":n="flex-start";break;case"RIGHT":n="flex-end";break;default:n="center"}return t.cssVarBlock({"justify-content":n})}));return{ns:t,alignStyle:r,selectedItems:n,onCellClick:function(t){e.controller.isLinkColumn&&e.controller.openLinkView(e.row,t)}}},render:function(){var e=this,t=this.controller,n=this.row.data[t.model.codeName];return S("div",{class:[this.ns.b(),t.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(t){return S("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):S("span",{class:this.ns.e("text")},[n])])}}),te=function(e){p(r,e);var t,n=m(r);function r(){var e;u(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return g(y(e=n.call.apply(n,[this].concat(o))),"imgSrc",void 0),e}return f(r,[{key:"getUIData",value:(t=c(s().mark((function e(){var t,n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object.assign(this.context.clone(),this.params),e.next=3,this.entityService.wf.getWFProcessDiagram(t);case 3:n=e.sent,r=new Blob([n.data]),this.imgSrc=URL.createObjectURL(r);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(v),ne=x({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){var t=L("preset-wf-chart-view"),n=O().proxy,r=P(n,(function(t,n){return new te(e.modelPath,t,n)}));return T(n,"deName",r.setDeName.bind(r)),{c:r,ns:t}},render:function(){return S("div",{class:this.ns.b()},[S("img",{attrs:{src:this.c.imgSrc}})])}}),re=x({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,t){var n=t.emit,r=L("wf-toolbar"),o=function(){var e=c(s().mark((function e(t,r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n("wf-link-click",t,r);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return{ns:r,handleClick:o}},render:function(){var e=this,t=this.wfLinks||[];return S("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){var n="驳回"==t.sequenceFlowName||"取消"==t.sequenceFlowName;return S("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),n?e.ns.em("item","reject"):""]},[S("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(n){return e.handleClick(t,n)}}},[t.sequenceFlowName||""])])}))])}}),oe="function"==typeof btoa,ie="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder;var ae,se="function"==typeof TextEncoder?new TextEncoder:void 0,le=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");ae={},le.forEach((function(e,t){return ae[e]=t}));var ce=String.fromCharCode.bind(String);"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);var ue=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},de=oe?function(e){return btoa(e)}:ie?function(e){return Buffer.from(e,"binary").toString("base64")}:function(e){for(var t,n,r,o,i="",a=e.length%3,s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=le[(t=n<<16|r<<8|o)>>18&63]+le[t>>12&63]+le[t>>6&63]+le[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},fe=ie?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n<r;n+=4096)t.push(ce.apply(null,e.subarray(n,n+4096)));return de(t.join(""))},pe=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?ce(192|t>>>6)+ce(128|63&t):ce(224|t>>>12&15)+ce(128|t>>>6&63)+ce(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return ce(240|t>>>18&7)+ce(128|t>>>12&63)+ce(128|t>>>6&63)+ce(128|63&t)},he=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,me=ie?function(e){return Buffer.from(e,"utf8").toString("base64")}:se?function(e){return fe(se.encode(e))}:function(e){return de(e.replace(he,pe))},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?ue(me(e)):me(e)};var ye=x({name:"SyFileUpload",props:j(),emits:I(),setup:function(e,t){var n=t.emit,r=L("sy-file-upload"),o=e.controller,a=function(e,t,n){var r,o=C([]),a=C({Authorization:"Bearer ".concat(H("access_token"))}),s=C(""),l=C(""),c={count:0,cacheFiles:[]},u=null===(r=n.editorParams)||void 0===r?void 0:r.blackList,d=[];u&&"string"==typeof u&&(d=u.split(",")),U((function(){return e.value}),(function(e){o.value=e?JSON.parse(e):[]}),{immediate:!0}),U((function(){return e.data}),(function(e){if(e){var t=n.calcBaseUrl(e);s.value=t.uploadUrl,l.value=t.downloadUrl}}),{immediate:!0,deep:!0}),U(o,(function(e){null!=e&&e.length&&l.value&&e.forEach((function(e){e.url=e.url||l.value.replace("%fileId%",e.id)}))}),{immediate:!0}),U(l,(function(e){e&&o.value.length&&o.value.forEach((function(e){e.url=l.value.replace("%fileId%",e.id)}))}),{immediate:!0});var f=function(){var e=[].concat(i(o.value),i(c.cacheFiles)),n=e.length>0?JSON.stringify(e.map((function(e){return{name:e.name,id:e.id}}))):null;c.cacheFiles=[],t(n)},p=C(!1),h=C(""),m=C("");return{uploadUrl:s,downloadUrl:l,headers:a,files:o,onDownload:function(e){var t=e.url||l.value.replace("%fileId%",e.id);n.fileDownload({url:t,name:e.name})},onError:function(e,t){throw c.count-=1,new W({response:{data:t,status:e.status}})},onRemove:function(t){if(!e.disabled){var n=o.value.findIndex((function(e){return e.id===t.id}));-1!==n&&o.value.splice(n,1),f()}},onSuccess:function(e){e&&(c.cacheFiles.push({name:e.filename,id:e.fileid}),c.count-=1,0===c.count&&f())},beforeUpload:function(e){var t=e.name.trim().toLowerCase();if(d.some((function(e){return t.endsWith(".".concat(e))})))return ibiz.message.error("不可上传 ".concat(d.join("、"),"类型的文件!")),!1;c.count+=1},showModal:p,modalTitle:h,iframeUrl:m,onModalCancel:function(){p.value=!1,h.value="",m.value=""},previewFile:function(e){p.value=!0,h.value=e.name;var t=window.Environment.previewFileUrl;if(t){var n=encodeURIComponent(ve("".concat(window.location.origin).concat(e.url,"?fullfilename=").concat(e.name)));m.value="".concat(t,"/onlinePreview?url=").concat(n)}}}}(e,(function(e){n("change",e)}),o);return{ns:r,c:o,uploadUrl:a.uploadUrl,headers:a.headers,files:a.files,onDownload:a.onDownload,onError:a.onError,onRemove:a.onRemove,onSuccess:a.onSuccess,beforeUpload:a.beforeUpload,showModal:a.showModal,modalTitle:a.modalTitle,iframeUrl:a.iframeUrl,onModalCancel:a.onModalCancel,previewFile:a.previewFile}},render:function(e){var t=this;return e("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[e("IUpload",{ref:"fileUpload",props:{action:this.uploadUrl,headers:this.headers,disabled:this.disabled,"default-file-list":this.files,multiple:this.c.model.multiple,type:this.c.model.isDrag?"drag":"select",accept:this.c.model.accept,"before-upload":this.beforeUpload,"on-success":this.onSuccess,"on-error":this.onError,"on-remove":this.onRemove,"on-preview":this.onDownload,"show-upload-list":!1}},[this.c.model.isDrag?e("div",{class:this.ns.bm("box","drag")},[e("i-icon",{attrs:{type:"md-cloud-upload"}}),e("div",{class:this.ns.be("box","title")},[e("span",["将文件拖到此处,或"]),e("span",["点击上传"])])]):e("i-button",{attrs:{icon:"ios-cloud-upload-outline"},class:this.ns.bm("box","select")},["上传文件"])]),e("div",{class:this.ns.b("file-list")},[this.files.map((function(n){return e("div",{class:t.ns.b("file-item"),key:n.id},[e("div",{class:t.ns.b("file-item-right")},[e("div",{class:t.ns.b("file-item-right-title"),on:{click:function(){return t.previewFile(n)}}},[n.name]),e("div",{class:t.ns.b("file-item-right-action")},[e("i-icon",{attrs:{type:"md-download"},on:{click:function(){return t.onDownload(n)}}}),e("i-icon",{attrs:{type:"md-eye"},on:{click:function(){return t.previewFile(n)}}}),t.disabled||t.readonly?null:e("i-icon",{attrs:{type:"md-close"},on:{click:function(){return t.onRemove(n)}}})])])])}))]),e("i-modal",{attrs:{value:this.showModal,title:this.modalTitle,"class-name":this.ns.b("modal"),width:"70%",transfer:!1,"footer-hide":!0},on:{"on-cancel":this.onModalCancel}},[e("iframe",{class:this.ns.b("iframe"),attrs:{src:this.iframeUrl}})])])}});function be(e,t){if(e.url=t.replace("%fileId%",e.id),e.status||(e.status="finished"),!e.fileName){var n=e.name.lastIndexOf(".");e.fileName=e.name.substring(0,n),e.fileExt=e.name.substring(n),e.isImage=q(e.name)}return e}function ge(e){var t=C(""),n=C(""),r=C([]);return U(e.data,(function(r){if(r){var o=e.controller.value.calcBaseUrl(r);t.value=o.uploadUrl,n.value=o.downloadUrl}}),{immediate:!0,deep:!0}),U(e.value,(function(e){r.value=e?JSON.parse(e):[],r.value.length&&n.value&&r.value.forEach((function(e){be(e,n.value)}))}),{immediate:!0}),U(n,(function(e){e&&r.value.length&&r.value.forEach((function(t){be(t,e)}))}),{immediate:!0}),{downloadUrl:n,uploadUrl:t,valueList:r}}function we(e){var t,n,r=C("undo"),o=C([]),i=e.downloadUrl,a=e.value,s=e.uploadUrl,l=e.controller,c=null==l||null===(t=l.value)||void 0===t||null===(n=t.editorParams)||void 0===n?void 0:n.blackList,u=[];c&&"string"==typeof c&&(u=c.split(",")),U(a,(function(e){e.length>0&&(o.value=[],e.forEach((function(e){o.value.push(be(e,i.value))})))}),{immediate:!0,deep:!0});var d=function(e,t){var n=[];return t.forEach((function(e,t){var r=e.name.trim().toLowerCase();u.some((function(e){return r.endsWith(".".concat(e))}))?n.push(t):o.value.push({name:e.name,status:e.status,percentage:e.percentage,id:e.uid,url:""})})),n.length===t.length?(ibiz.message.error("不可上传 ".concat(u.join("、"),"类型的文件!")),!1):(n.length&&(n.forEach((function(n){e.splice(n,1),t.splice(n,1)})),ibiz.message.error("不可上传 ".concat(u.join("、"),"类型的文件!"))),!0)},f=function(e){e.forEach((function(e){o.value.find((function(t){return t.id===e.uid&&(t.percentage=e.percentage,!0)}))}))},p=function(e,t){e.forEach((function(e){o.value.find((function(n){return n.id===e.uid&&(n.status=e.status,n.id=t.data.fileid,n.name=t.data.filename,be(n,i.value),!0)}))}))},h=function(e,t){var n;e.forEach((function(e){o.value.find((function(t){return t.id===e.uid&&(t.status=e.status,!0)}))}));var r=new W(t);ibiz.notification.error({title:null===(n=r.status)||void 0===n?void 0:n.toString(),desc:r.message,duration:10})},m=function(e){o.value=o.value.filter((function(e){return"finished"===e.status})),r.value="done"},v=C(!1),y=C(""),b=C("");return{selectFile:function(){$({multiple:e.multiple,accept:e.accept,uploadUrl:s.value,beforeUpload:d,progress:f,success:p,error:h,finish:m})},fileList:o,uploadState:r,showModal:v,modalTitle:y,iframeUrl:b,onModalCancel:function(){v.value=!1,y.value="",b.value=""},previewFile:function(e){v.value=!0,y.value=e.name;var t=window.Environment.previewFileUrl;if(t){var n=encodeURIComponent(ve("".concat(window.location.origin).concat(e.url,"?fullfilename=").concat(e.name)));b.value="".concat(t,"/onlinePreview?url=").concat(n)}}}}var ke=x({name:"SyGridFileUpload",props:N(),setup:function(e){var t=L("sy-grid-file-upload"),n=F(e),r=ge({value:n.value,data:n.data,controller:n.controller}),o=we({downloadUrl:r.downloadUrl,uploadUrl:r.uploadUrl,value:r.valueList});return{ns:t,fileList:o.fileList,showModal:o.showModal,modalTitle:o.modalTitle,iframeUrl:o.iframeUrl,downloadFile:function(t){e.controller.fileDownload(t)},previewFile:o.previewFile,onModalCancel:o.onModalCancel}},render:function(){var e=this;return S("grid-editor",{attrs:{disabled:this.disabled,readonly:this.readonly},class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[S("div",{class:this.ns.b("file-list")},[this.fileList.map((function(t){return S("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title"),on:{click:function(){return e.previewFile(t)}}},[t.name]),S("div",{class:e.ns.b("file-item-action")},[S("i-icon",{attrs:{type:"md-download"},on:{click:function(){return e.downloadFile(t)}}}),S("i-icon",{attrs:{type:"md-eye"},on:{click:function(){return e.previewFile(t)}}})])])}))]),S("i-modal",{attrs:{value:this.showModal,title:this.modalTitle,"class-name":this.ns.b("modal"),width:"70%",transfer:!1,"footer-hide":!0},on:{"on-cancel":this.onModalCancel}},[S("iframe",{class:this.ns.b("iframe"),attrs:{src:this.iframeUrl}})])])}}),xe=x({name:"SyGridFileUploadContainer",props:N(),emits:D(),render:function(e){var t=this;return this.disabled||this.readonly?e("SyGridFileUpload",{props:o({},this.$props)}):e("SyEditGridFileUpload",{props:o({},this.$props),on:{change:function(e,n){t.$emit("change",e,n)},rowSave:function(){t.$emit("rowSave")}}})}}),Ee=x({name:"SyEditGridFileUploadPopover",props:{uploadUrl:{type:String,required:!0},downloadUrl:{type:String,required:!0},value:{type:Array,required:!0},controller:{type:w,required:!0}},emits:{close:function(e){return!0}},setup:function(e,t){var n=t.emit,r=L("sy-edit-grid-file-upload-popover"),o=F(e),i=we({downloadUrl:o.downloadUrl,value:o.value,uploadUrl:o.uploadUrl,controller:o.controller}),a=i.fileList,l=i.uploadState,u=i.selectFile,d=C(),f=C(!1),p=A(d,function(){var e=c(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n("close",{isModified:f.value,resultFiles:a.value});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());U(l,(function(e){"done"===e?(f.value=!0,p.proceed()):"loading"===e&&p.pause()}));return{ns:r,componentRef:d,fileList:a,deleteFile:function(e){var t=a.value.findIndex((function(t){return t.id===e.id}));a.value.splice(t,1),f.value=!0},selectFile:u,downloadFile:function(t){e.controller.fileDownload(t)}}},render:function(){var e=this;return S("div",{ref:"componentRef",style:"width:300px",class:this.ns.b()},[S("div",{class:this.ns.b("file-list")},[this.fileList.map((function(t){return S("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title"),on:{click:function(){return e.downloadFile(t)}}},[t.name]),S("div",{class:e.ns.b("file-item-action")},[S("i-icon",{attrs:{type:"md-close"},on:{click:function(){return e.deleteFile(t)}}})])])}))]),S("div",{on:{click:function(){return e.selectFile()}},class:this.ns.e("button")},[S("i-icon",{attrs:{type:"md-add"}}),"添加文件"])])}}),Se=x({name:"SyEditGridFileUpload",props:N(),emits:D(),setup:function(e,t){var n=t.emit,r=L("sy-edit-grid-file-upload"),o=F(e),i=o.value,a=o.data,l=o.controller,u=ge({value:i,data:a,controller:l}),d=u.downloadUrl,f=u.uploadUrl,p=u.valueList,h=C(),m=function(){var e=c(s().mark((function e(){var t,r,o,i,a,c,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.value){e.next=2;break}throw new X("容器元素不存在");case 2:return t=h.value.$el,r=t.offsetHeight,o=ibiz.overlay.createPopover((function(e){return e(Ee,{props:{value:p.value,uploadUrl:f.value,downloadUrl:d.value,controller:l.value},on:{close:function(e){o.dismiss(e)}}})}),void 0,{noArrow:!0,placement:"bottom-start",offsetOpts:{mainAxis:-r,crossAxis:0}}),e.next=7,o.present(t);case 7:return e.next=9,o.onWillDismiss();case 9:i=e.sent,a=i.isModified,c=i.resultFiles,a&&(u=c.length>0?JSON.stringify(c.map((function(e){return{name:e.name,id:e.id}}))):null,n("change",u),n("rowSave"));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return R(h,"click",(function(t){e.disabled||m()})),{ns:r,valueList:p,componentRef:h}},render:function(){var e=this;return S("grid-editor",{attrs:{disabled:this.disabled,readonly:this.readonly},ref:"componentRef",class:this.ns.b()},[S("div",{class:this.ns.b("file-list")},[this.valueList.map((function(t){return S("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title")},[t.name])])}))])])}});x({name:"SyInput",props:_(),emits:I(),setup:function(e,t){var n=t.emit,r=L("input"),o=e.controller.model,i=C(),a=C(2);"TEXTAREA_10"===o.editorType&&(a.value=10);var s=E((function(){switch(o.editorType){case"TEXTBOX":return"text";case"PASSWORD":return"password";case"TEXTAREA":case"TEXTAREA_10":return"textarea";default:return"string"}})),l=C("");U((function(){return e.value}),(function(e,t){e!==t&&(l.value=e||"")}),{immediate:!0});var c,u,d=!1,f=Q((function(e){u!==e.target.value&&n("change",e.target.value),u=void 0,d=!1,c&&c()}),300,{leading:!0});return e.autoFocus&&U(i,(function(e){e&&e.$el.getElementsByTagName("input")[0].focus()})),{ns:r,rows:a,type:s,currentVal:l,handleChange:function(e){d=!0,f(e)},handleKeyUp:function(e){e&&"Enter"===e.code&&d&&(c=function(){i.value.$el.dispatchEvent(e)})},handleBlur:function(){u=i.value.currentValue,n("change",u)},inputRef:i}},render:function(){return S("div",{class:[this.ns.b(),this.ns.b("sy-input"),this.ns.is("textarea",Object.is(this.type,"textarea")),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly?this.currentVal:S("i-input",{ref:"inputRef",attrs:{value:this.currentVal,placeholder:this.controller.placeHolder,type:this.type,rows:this.rows,disabled:this.disabled,autosize:Object.is(this.type,"textarea")},on:{"on-change":this.handleChange,"on-blur":this.handleBlur},nativeOn:{keyup:this.handleKeyUp},class:this.ns.b("input")},[this.controller.model.unitName&&S("i",{class:this.ns.e("unit"),slot:"suffix"},[this.controller.model.unitName])])])}}),x({name:"SyGridInput",props:M(),emits:D(),setup:function(e,t){var n=t.emit,r=L("grid-input"),o=z(e,{emit:n});return{ns:r,isInfoMode:o.isInfoMode,autoFocus:o.autoFocus,componentRef:o.componentRef,onOperateChange:o.onOperateChange,onChange:o.onChange}},render:function(e){return e("grid-editor",{attrs:{disabled:this.disabled,readonly:this.readonly},ref:"componentRef",class:"".concat(this.ns.b())},[e("SyInput",{props:o(o({},this.$props),{},{readonly:this.isInfoMode,disabled:this.disabled,autoFocus:this.autoFocus}),on:{change:this.onChange,operate:this.onOperateChange}})])}});function Oe(e,t){return S("div",{class:e.e("logo")},[t.appIconPath?S("img",{class:e.e("logo-img"),attrs:{src:t.appIconPath}}):null,S("div",{class:e.e("logo-caption")},[t.caption])])}var Ce=x({name:"UserAppLayout",props:{model:{type:r,required:!0},isComplete:{type:Boolean,default:!1},isShowTabPageExp:{type:Boolean,default:!1}},setup:function(e,t){var n=t.emit,r=L("layout"),o=C(!1),i=E((function(){return!0===e.model.source.blankMode})),a=E((function(){return!(!window.Environment.manualdownloadurl&&!ibiz.env.manualdownloadurl)}));return{ns:r,collapseChange:o,isBlank:i,collapseMenus:function(){o.value=!o.value,n("onCollapseChange",o.value)},isShowDownload:a,downloadUserBook:function(){var e=window.Environment.manualdownloadurl||ibiz.env.manualdownloadurl;e?window.open(e):console.log("环境变量里没有manualdownloadurl")}}},render:function(){var e=this;return this.isComplete?S("i-layout",{class:[this.ns.b(),this.isBlank?this.ns.m("blank"):"",this.ns.is("collapse",this.collapseChange),this.ns.is("tab",this.isShowTabPageExp),"user-layout"]},[S("i-sider",{attrs:{"hide-trigger":!0,value:this.collapseChange},class:[this.ns.b("nav"),this.ns.is("collapse",this.collapseChange)]},[Oe(this.ns,this.model),this.$slots.menu]),S("i-layout",{class:[this.ns.b("content")]},[S("i-header",{class:this.ns.b("header")},[S("div",{class:this.ns.be("header","left")},[Oe(this.ns,this.model),S("div",{class:this.ns.be("header","collapse-icon")},[this.collapseChange?S("ion-icon",{attrs:{src:"./assets/img/menu-unfold.svg"},on:{click:function(){return e.collapseMenus()}}}):S("ion-icon",{attrs:{src:"./assets/img/menu-fold.svg"},on:{click:function(){return e.collapseMenus()}}})]),"TOP"===this.model.source.mainMenuAlign?S("i-menu",{class:this.ns.be("header","menu"),attrs:{mode:"horizontal","active-name":"1"}}):null]),S("div",{class:this.ns.be("header","right")},[this.isShowDownload&&S("div",{class:"user-download",on:{click:function(){return e.downloadUserBook()}}},["用户手册下载"]),S("app-user")])]),S("i-content",{class:this.ns.be("content","main")},[this.$slots.tabPageExp,this.$slots.default])])]):null}}),Ue=f((function e(){u(this,e),g(this,"component",ne)})),Fe=function(){function e(){u(this,e),g(this,"component",ee)}var t;return f(e,[{key:"createController",value:(t=c(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new d(t,n),e.next=3,r.init();case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),Le=f((function e(){u(this,e),g(this,"component","IndexView")})),Pe=x({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){var t=O().proxy,n=B(t,e.modelPath);T(t,"deName",n.setDeName.bind(n));var r=L("wf-step-trace-grid"),o=C([]),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.identitylinks.length>0||e.comments.length>0&&e.comments.forEach((function(r){n&&"启动流程"===r.type||t.push({id:J(),nodeName:e.userTaskName,personName:r.authorName,time:r.time,content:r.type,comment:r.fullMessage})}))};n.nerve.self.evt.on("mounted",(function(){var e;n.data&&(null===(e=n.data.usertasks)||void 0===e||e.forEach((function(e){if(e.usertasks&&e.usertasks.length>0){var t=[];e.usertasks.forEach((function(e){i(e,t,!0)})),o.value.push({id:J(),nodeName:"".concat(e.userTaskName),personName:"",time:"",content:"",comment:"",children:t,_showChildren:!0})}else i(e,o.value)})),o.value.sort((function(e,t){return Date.parse(e.time)-Date.parse(t.time)})),console.log(1,o.value),console.log(2,n.data))}));var a=C([{title:"处理环节",key:"nodeName",width:180,resizable:!0,tree:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:n,ns:r,gridData:o,columns:a}},render:function(){return S("div",{class:this.ns.b()},[S("div",{class:this.ns.e("title")},["审批信息"]),S("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData,"row-key":"id"},class:this.ns.e("grid")})])}}),Te=function(e){p(i,e);var n,r,o=m(i);function i(){return u(this,i),o.apply(this,arguments)}return f(i,[{key:"calcWfToolbar",value:(r=c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(b(i.prototype),"calcWfToolbar",this).call(this);case 2:this.isEditable&&this.wfLinks.unshift({sequenceFlowName:"保存",type:"FORM_SAVE"});case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onLinkClick",value:(n=c(s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("FORM_SAVE"!==n.type){e.next=5;break}return e.next=3,this.save();case 3:e.next=6;break;case 5:t(b(i.prototype),"onLinkClick",this).call(this,n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]),i}(k);x({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=O().proxy,n=P(t,(function(t,n){return new Te(e.modelPath,t,n)})),r=L("view-".concat(a.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=C(["mainForm"]);return{c:n,ns:r,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){var t=this,n=[];if(this.c.complete){var r=this.c.activeForm;r&&this.c.providers[r.name]&&n.push(e(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){var o=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];n.push(e(Pe,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}return e("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){return t.c.complete?[t.c.wfLinks.length>0&&e("wf-toolbar",{attrs:{wfLinks:t.c.wfLinks},on:{"wf-link-click":function(e){t.c.onLinkClick(e)}}})]:null}}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[n]),this.c.model.drTab.pages.map((function(n){var r=t.c.drPages[n.source.name];return e("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:n.source.caption,name:n.source.name}},[!t.c.isNewData&&t.lazyList.includes(n.source.name)&&e("ViewShell",{attrs:{context:r.context,params:r.params,modal:{mode:Y.EMBED},modelPath:n.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(n.source.name)},key:r.key})])}))])])}}),x({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=O().proxy,n=V(t,e.modelPath),r=L("view-deeditview3"),o=C(["mainForm"]);return{c:n,ns:r,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){var t=this;return e("view-base",{attrs:{controller:this.c}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[e("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),e(Pe,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}})]),this.c.model.drTab.pages.map((function(n){var r=t.c.drPages[n.source.name];if(r)return e("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:n.source.caption,name:n.source.name}},[!t.c.isNewData&&t.lazyList.includes(n.source.name)&&e("ViewShell",{attrs:{context:r.context,params:r.params,modal:{mode:Y.EMBED},modelPath:n.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(n.source.name)},key:r.key})])}))])])}});var je=function(){function e(){u(this,e),g(this,"formEditor","SyFileUpload"),g(this,"gridEditor","SyGridFileUploadContainer")}var t;return f(e,[{key:"createController",value:(t=c(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new w(t,n),e.next=3,r.init();case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),Ie=function(e){p(r,e);var t,n=m(r);function r(){return u(this,r),n.apply(this,arguments)}return f(r,[{key:"execAction",value:(t=c(s().mark((function e(t,n,r,o,i){var a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&r.length>0)){e.next=6;break}return e.next=3,ibiz.entityService.getService("XQFBXQPS",n);case 3:a=e.sent,l=a.local.getList(n),r.forEach((function(e){var t=l.find((function(t){return t.srfkey===e.srfkey}));t&&(t.psjg="10",e.psjg="10")}));case 6:return e.abrupt("return",{refresh:!1,closeView:!1});case 7:case"end":return e.stop()}}),e)}))),function(e,n,r,o,i){return t.apply(this,arguments)})}]),r}(K),Ne=function(){function e(){u(this,e),g(this,"handler",void 0)}var t;return f(e,[{key:"getHandler",value:(t=c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.handler||(this.handler=new Ie),e.abrupt("return",this.handler);case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),De=function(e){p(r,e);var t,n=m(r);function r(){return u(this,r),n.apply(this,arguments)}return f(r,[{key:"execAction",value:(t=c(s().mark((function e(t,n,r,o,i){var a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&r.length>0)){e.next=6;break}return e.next=3,ibiz.entityService.getService("XQFBXQPS",n);case 3:a=e.sent,l=a.local.getList(n),r.forEach((function(e){var t=l.find((function(t){return t.srfkey===e.srfkey}));t&&(t.psjg="20",e.psjg="20")}));case 6:return e.abrupt("return",{refresh:!1,closeView:!1});case 7:case"end":return e.stop()}}),e)}))),function(e,n,r,o,i){return t.apply(this,arguments)})}]),r}(K),Ae=function(){function e(){u(this,e),g(this,"handler",void 0)}var t;return f(e,[{key:"getHandler",value:(t=c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.handler||(this.handler=new De),e.abrupt("return",this.handler);case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),Re=new Z(n.meta.url);e("default",{mateUrl:n.meta.url,install:function(e){l.getModelService().then((function(e){var t;"true"===(null===(t=e.app.userParams)||void 0===t?void 0:t.autoWidth)&&document.getElementsByClassName("app")[0].classList.add("auto-width")})),Re.loadStyle(["/style.css"]),ibiz.config.enableDataInfoBar=!1,ibiz.config.gridEditShowMode="all",e.component("WfToolbar",re),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",new Le),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new Ue),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",new Fe),e.component("SyFileUpload",ye),e.component("SyGridFileUpload",ke),e.component("SyEditGridFileUpload",Se),e.component("SyGridFileUploadContainer",xe),ibiz.register.editor.register("EDITOR_CUSTOMSTYLE_SyFileUpload",new je),e.component("AppLayout",Ce),ibiz.register.uiAction.register("DEUIACTION_BatchApprovalOrdersId",new Ne),ibiz.register.uiAction.register("DEUIACTION_BatchNoApprovalOrdersId",new Ae)}})}}}))}();