!function(){functione(t){returne="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},e(t)}functiont(){returnt="undefined"!=typeofReflect&&Reflect.get?Reflect.get.bind():function(e,t,r){varo=n(e,t);if(o){vari=Object.getOwnPropertyDescriptor(o,t);returni.get?i.get.call(arguments.length<3?e:r):i.value}},t.apply(this,arguments)}functionn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););returne}functionr(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functiono(e){for(vart=1;t<arguments.length;t++){varn=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))}))}returne}functioni(e){returnfunction(e){if(Array.isArray(e))returna(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeofe)returna(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returna(e,t)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functiona(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functions(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){returnt};vart={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeofSymbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";functionu(e,t,n){returnObject.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){returne[t]=n}}functiond(e,t,n,r){vari=t&&t.prototypeinstanceofh?t:h,a=Object.create(i.prototype),s=newU(r||[]);returno(a,"_invoke",{value:E(e,n,s)}),a}functionf(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}t.wrap=d;varp={};functionh(){}functionm(){}functionv(){}vary={};u(y,a,(function(){returnthis}));varb=Object.getPrototypeOf,g=b&&b(b(F([])));g&&g!==n&&r.call(g,a)&&(y=g);varw=v.prototype=h.prototype=Object.create(y);functionk(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionx(t,n){functioni(o,a,s,l){varc=f(t[o],t,a);if("throw"!==c.type){varu=c.arg,d=u.value;returnd&&"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){returni("throw",e,s,l)}))}l(c.arg)}vara;o(this,"_invoke",{value:function(e,t){functionr(){returnnewn((function(n,r){i(e,t,n,r)}))}returna=a?a.then(r,r):r()}})}functionE(e,t,n){varr="suspendedStart";returnfunction(o,i){if("executing"===r)thrownewError("Generator is already running");if("completed"===r){if("throw"===o)throwi;returnL()}for(n.method=o,n.arg=i;;){vara=n.delegate;if(a){vars=S(a,n);if(s){if(s===p)continue;returns}}if("next"===n.method)n.sent=n._sent=n.arg;elseif("throw"===n.method){if("suspendedStart"===r)throwr="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";varl=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)}}}functionS(e,t){varn=t.method,r=e.iterator[n];if(void0===r)returnt.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+n+"' method")),p;varo=f(r,e.iterator,t.arg);if("throw"===o.type)returnt.method="throw",t.arg=o.arg,t.delegate=null,p;vari=o.arg;returni?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,p):i:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,p)}functionO(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionC(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionU(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}functionF(e){if(e){vart=e[a];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varn=-1,o=functiont(){for(;++n<e.length;)if(r.call(e,n))returnt.value=e[n],t.done=!1,t;returnt.value=void0,t.done=!0,t};returno.next=o}}return{next:L}}functionL(){return{value:void0,done:!0}}returnm.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){vart="function"==typeofe&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){returnObject.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(){returnthis})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void0===i&&(i=Promise);vara=newx(d(e,n,r,o),i);returnt.isGeneratorFunction(n)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},k(w),u(w,c,"Generator"),u(w,a,(function(){returnthis})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){vart=Object(e),n=[];for(varrint)n.push(r);returnn.reverse(),functione(){for(;n.length;){varr=n.pop();if(rint)returne.value=r,e.done=!1,e}returne.done=!0,e}},t.values=F,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void0,this.done=!1,this.delegate=null,this.method="next",this.arg=void0,this.tryEntries.forEach(C),!e)for(vartinthis)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void0)},stop:function(){this.done=!0;vare=this.tryEntries[0].completion;if("throw"===e.type)throwe.arg;returnthis.rval},dispatchException:function(e){if(this.done)throwe;vart=this;functionn(n,r){returna.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void0),!!r}for(varo=this.tryEntries.length-1;o>=0;--o){vari=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)returnn("end");if(i.tryLoc<=this.prev){vars=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)returnn(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnn(i.finallyLoc)}elseif(s){if(this.prev<i.catchLoc)returnn(i.catchLoc,!0)}else{if(!l)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnn(i.finallyLoc)}}}},abrupt:function(e,t){for(varn=this.tryEntries.length-1;n>=0;--n){varo=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){vari=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.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)throwe.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(vart=this.tryEntries.length-1;t>=0;--t){varn=this.tryEntries[t];if(n.finallyLoc===e)returnthis.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varn=this.tryEntries[t];if(n.tryLoc===e){varr=n.completion;if("throw"===r.type){varo=r.arg;C(n)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,n){returnthis.delegate={iterator:F(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void0),p}},t}functionl(e,t,n,r,o,i,a){try{vars=e[i](a),l=s.value}catch(c){returnvoidn(c)}s.done?t(l):Promise.resolve(l).then(r,o)}functionc(e){returnfunction(){vart=this,n=arguments;returnnewPromise((function(r,o){vari=e.apply(t,n);functiona(e){l(i,r,o,a,s,"next",e)}functions(e){l(i,r,o,a,s,"throw",e)}a(void0)}))}}functionu(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiond(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}functionf(e,t,n){returnt&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}functionp(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("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)}functionh(e,t){returnh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},h(e,t)}functionm(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varn,r=b(e);if(t){varo=b(this).constructor;n=Reflect.construct(r,arguments,o)}elsen=r.apply(this,arguments);returnv(this,n)}}functionv(t,n){if(n&&("object"===e(n)||"function"==typeofn))returnn;if(void0!==n)thrownewTypeError("Derived constructors may only return object or undefined");returny(t)}functiony(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionb(e){returnb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},b(e)}functiong(e,t,n){return(t=w(t))ine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionw(t){varn=function(t,n){if("object"!==e(t)||null===t)returnt;varr=t[Symbol.toPrimitive];if(void0!==r){varo=r.call(t,n||"default");if("object"!==e(o))returno;thrownewTypeError("@@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";varr,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(){varee=x({name:"CodeListGridColumn",props:{controller:{type:d,required:!0},row:{type:h,required:!0}},setup:function(e){vart=L("grid-field-column"),n=E((function(){varn;if("FRONT"!==e.controller.model.source.cLConvertMode)return[];varr=e.row.data[e.controller.model.codeName];returnnull!==(n=e.controller.codeListItems)&&void0!==n&&n.length&&r?r.split(",").map((function(n){varr=e.controller.codeListItems.find((function(e){returne.value===n}));if(r){varo=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(){varn="";switch(e.controller.model.align){case"LEFT":n="flex-start";break;case"RIGHT":n="flex-end";break;default:n="center"}returnt.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(){vare=this,t=this.controller,n=this.row.data[t.model.codeName];returnS("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){returnS("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);vart,n=m(r);functionr(){vare;u(this,r);for(vart=arguments.length,o=newArray(t),i=0;i<t;i++)o[i]=arguments[i];returng(y(e=n.call.apply(n,[this].concat(o))),"imgSrc",void0),e}returnf(r,[{key:"getUIData",value:(t=c(s().mark((functione(){vart,n,r;returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnt=Object.assign(this.context.clone(),this.params),e.next=3,this.entityService.wf.getWFProcessDiagram(t);case3:n=e.sent,r=newBlob([n.data]),this.imgSrc=URL.createObjectURL(r);case6:case"end":returne.stop()}}),e,this)}))),function(){returnt.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){vart=L("preset-wf-chart-view"),n=O().proxy,r=P(n,(function(t,n){returnnewte(e.modelPath,t,n)}));returnT(n,"deName",r.setDeName.bind(r)),{c:r,ns:t}},render:function(){returnS("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){varn=t.emit,r=L("wf-toolbar"),o=function(){vare=c(s().mark((functione(t,r){returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:n("wf-link-click",t,r);case1:case"end":returne.stop()}}),e)})));returnfunction(t,n){returne.apply(this,arguments)}}();return{ns:r,handleClick:o}},render:function(){vare=this,t=this.wfLinks||[];returnS("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varn="驳回"==t.sequenceFlowName||"取消"==t.sequenceFlowName;returnS("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){returne.handleClick(t,n)}}},[t.sequenceFlowName||""])])}))])}}),oe="function"==typeofbtoa,ie="function"==typeofBuffer;"function"==typeofTextDecoder&&newTextDecoder;varae,se="function"==typeofTextEncoder?newTextEncoder:void0,le=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");ae={},le.forEach((function(e,t){returnae[e]=t}));varce=String.fromCharCode.bind(String);"function"==typeofUint8Array.from&&Uint8Array.from.bind(Uint8Array);varue=function(e){returne.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},de=oe?function(e){returnbtoa(e)}:ie?function(e){returnBuffer.from(e,"binary").toString("base64")}:function(e){for(vart,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)thrownewTypeError("invalid character found");i+=le[(t=n<<16|r<<8|o)>>18&63]+le[t>>12&63]+le[t>>6&63]+le[63&t]}returna?i.slice(0,a-3)+"===".substring(a):i},fe=ie?function(e){returnBuffer.from(e).toString("base64")}:function(e){for(vart=[],n=0,r=e.length;n<r;n+=4096)t.push(ce.apply(null,e.subarray(n,n+4096)));returnde(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);vart=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);returnce(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){returnBuffer.from(e,"utf8").toString("base64")}:se?function(e){returnfe(se.encode(e))}:function(e){returnde(e.replace(he,pe))},ve=function(e){vart=arguments.length>1&&void0!==arguments[1]&&arguments[1];returnt?ue(me(e)):me(e)};varye=x({name:"SyFileUpload",props:j(),emits:I(),setup:function(e,t){varn=t.emit,r=L("sy-file-upload"),o=e.controller,a=function(e,t,n){varr,o=C([]),a=C({Authorization:"Bearer ".concat(H("access_token"))}),s=C(""),l=C(""),c={count:0,cacheFiles:[]},u=null===(r=n.editorParams)||void0===r?void0:r.blackList,d=[];u&&"string"==typeofu&&(d=u.split(",")),U((function(){returne.value}),(function(e){o.value=e?JSON.parse(e):[]}),{immediate:!0}),U((function(){returne.data}),(function(e){if(e){vart=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});varf=function(){vare=[].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){vart=e.url||l.value.replace("%fileId%",e.id);n.fileDownload({url:t,name:e.name})},onError:function(e,t){throwc.count-=1,newW({response:{data:t,status:e.status}})},onRemove:function(t){if(!e.disabled){varn=o.value.findIndex((function(e){returne.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){vart=e.name.trim().toLowerCase();if(d.some((function(e){returnt.endsWith(".".concat(e))})))returnibiz.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;vart=window.Environment.previewFileUrl;if(t){varn=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){vart=this;returne("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){returne("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(){returnt.previewFile(n)}}},[n.name]),e("div",{class:t.ns.b("file-item-right-action")},[e("i-icon",{attrs:{type:"md-download"},on:{click:function(){returnt.onDownload(n)}}}),e("i-icon",{attrs:{type:"md-eye"},on:{click:function(){returnt.previewFile(n)}}}),t.disabled||t.readonly?null:e("i-icon",{attrs:{type:"md-close"},on:{click:function(){returnt.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}})])])}});functionbe(e,t){if(e.url=t.replace("%fileId%",e.id),e.status||(e.status="finished"),!e.fileName){varn=e.name.lastIndexOf(".");e.fileName=e.name.substring(0,n),e.fileExt=e.name.substring(n),e.isImage=q(e.name)}returne}functionge(e){vart=C(""),n=C(""),r=C([]);returnU(e.data,(function(r){if(r){varo=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}}functionwe(e){vart,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)||void0===t||null===(n=t.editorParams)||void0===n?void0:n.blackList,u=[];c&&"string"==typeofc&&(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});vard=function(e,t){varn=[];returnt.forEach((function(e,t){varr=e.name.trim().toLowerCase();u.some((function(e){returnr.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){returnt.id===e.uid&&(t.percentage=e.percentage,!0)}))}))},p=function(e,t){e.forEach((function(e){o.value.find((function(n){returnn.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){varn;e.forEach((function(e){o.value.find((function(t){returnt.id===e.uid&&(t.status=e.status,!0)}))}));varr=newW(t);ibiz.notification.error({title:null===(n=r.status)||void0===n?void0: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;vart=window.Environment.previewFileUrl;if(t){varn=encodeURIComponent(ve("".concat(window.location.origin).concat(e.url,"?fullfilename=").concat(e.name)));b.value="".concat(t,"/onlinePreview?url=").concat(n)}}}}varke=x({name:"SyGridFileUpload",props:N(),setup:function(e){vart=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(){vare=this;returnS("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){returnS("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title"),on:{click:function(){returne.previewFile(t)}}},[t.name]),S("div",{class:e.ns.b("file-item-action")},[S("i-icon",{attrs:{type:"md-download"},on:{click:function(){returne.downloadFile(t)}}}),S("i-icon",{attrs:{type:"md-eye"},on:{click:function(){returne.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){vart=this;returnthis.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){varn=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(){vare=c(s().mark((functione(t){returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:n("close",{isModified:f.value,resultFiles:a.value});case1:case"end":returne.stop()}}),e)})));returnfunction(t){returne.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){vart=a.value.findIndex((function(t){returnt.id===e.id}));a.value.splice(t,1),f.value=!0},selectFile:u,downloadFile:function(t){e.controller.fileDownload(t)}}},render:function(){vare=this;returnS("div",{ref:"componentRef",style:"width:300px",class:this.ns.b()},[S("div",{class:this.ns.b("file-list")},[this.fileList.map((function(t){returnS("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title"),on:{click:function(){returne.downloadFile(t)}}},[t.name]),S("div",{class:e.ns.b("file-item-action")},[S("i-icon",{attrs:{type:"md-close"},on:{click:function(){returne.deleteFile(t)}}})])])}))]),S("div",{on:{click:function(){returne.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){varn=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(){vare=c(s().mark((functione(){vart,r,o,i,a,c,u;returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(h.value){e.next=2;break}thrownewX("容器元素不存在");case2:returnt=h.value.$el,r=t.offsetHeight,o=ibiz.overlay.createPopover((function(e){returne(Ee,{props:{value:p.value,uploadUrl:f.value,downloadUrl:d.value,controller:l.value},on:{close:function(e){o.dismiss(e)}}})}),void0,{noArrow:!0,placement:"bottom-start",offsetOpts:{mainAxis:-r,crossAxis:0}}),e.next=7,o.present(t);case7:returne.next=9,o.onWillDismiss();case9: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"));case13:case"end":returne.stop()}}),e)})));returnfunction(){returne.apply(this,arguments)}}();returnR(h,"click",(function(t){e.disabled||m()})),{ns:r,valueList:p,componentRef:h}},render:function(){vare=this;returnS("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){returnS("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){varn=t.emit,r=L("input"),o=e.controller.model,i=C(),a=C(2);"TEXTAREA_10"===o.editorType&&(a.value=10);vars=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(){returne.value}),(function(e,t){e!==t&&(l.value=e||"")}),{immediate:!0});varc,u,d=!1,f=Q((function(e){u!==e.target.value&&n("change",e.target.value),u=void0,d=!1,c&&c()}),300,{leading:!0});returne.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(){returnS("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){varn=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){returne("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}})])}});functionOe(e,t){returnS("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])])}varCe=x({name:"UserAppLayout",props:{model:{type:r,required:!0},isComplete:{type:Boolean,default:!1},isShowTabPageExp:{type:Boolean,default:!1}},setup:function(e,t){varn=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(){vare=window.Environment.manualdownloadurl||ibiz.env.manualdownloadurl;e?window.open(e):console.log("环境变量里没有manualdownloadurl")}}},render:function(){vare=this;returnthis.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(){returne.collapseMenus()}}}):S("ion-icon",{attrs:{src:"./assets/img/menu-fold.svg"},on:{click:function(){returne.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(){returne.downloadUserBook()}}},["用户手册下载"]),S("app-user")])]),S("i-content",{class:this.ns.be("content","main")},[this.$slots.tabPageExp,this.$slots.default])])]):null}}),Ue=f((functione(){u(this,e),g(this,"component",ne)})),Fe=function(){functione(){u(this,e),g(this,"component",ee)}vart;returnf(e,[{key:"createController",value:(t=c(s().mark((functione(t,n){varr;returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnr=newd(t,n),e.next=3,r.init();case3:returne.abrupt("return",r);case4:case"end":returne.stop()}}),e)}))),function(e,n){returnt.apply(this,arguments)})}]),e}(),Le=f((functione(){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){vart=O().proxy,n=B(t,e.modelPath);T(t,"deName",n.setDeName.bind(n));varr=L("wf-step-trace-grid"),o=C([]),i=function(e,t){varn=arguments.length>2&&void0!==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(){vare;n.data&&(null===(e=n.data.usertasks)||void0===e||e.forEach((function(e){if(e.usertasks&&e.usertasks.length>0){vart=[];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})}elsei(e,o.value)})),o.value.sort((function(e,t){returnDate.parse(e.time)-Date.parse(t.time)})),console.log(1,o.value),console.log(2,n.data))}));vara=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(){returnS("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);varn,r,o=m(i);functioni(){returnu(this,i),o.apply(this,arguments)}returnf(i,[{key:"calcWfToolbar",value:(r=c(s().mark((functione(){returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,t(b(i.prototype),"calcWfToolbar",this).call(this);case2:this.isEditable&&this.wfLinks.unshift({sequenceFlowName:"保存",type:"FORM_SAVE"});case3:case"end":returne.stop()}}),e,this)}))),function(){returnr.apply(this,arguments)})},{key:"onLinkClick",value:(n=c(s().mark((functione(n){returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if("FORM_SAVE"!==n.type){e.next=5;break}returne.next=3,this.save();case3:e.next=6;break;case5:t(b(i.prototype),"onLinkClick",this).call(this,n);case6:case"end":returne.stop()}}),e,this)}))),function(e){returnn.apply(this,arguments)})}]),i}(k);x({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=O().proxy,n=P(t,(function(t,n){returnnewTe(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){vart=this,n=[];if(this.c.complete){varr=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]){varo=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}}))}returne("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){returnt.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){varr=t.c.drPages[n.source.name];returne("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){vart=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){vart=this;returne("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){varr=t.c.drPages[n.source.name];if(r)returne("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})])}))])])}});varje=function(){functione(){u(this,e),g(this,"formEditor","SyFileUpload"),g(this,"gridEditor","SyGridFileUploadContainer")}vart;returnf(e,[{key:"createController",value:(t=c(s().mark((functione(t,n){varr;returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnr=neww(t,n),e.next=3,r.init();case3:returne.abrupt("return",r);case4:case"end":returne.stop()}}),e)}))),function(e,n){returnt.apply(this,arguments)})}]),e}(),Ie=function(e){p(r,e);vart,n=m(r);functionr(){returnu(this,r),n.apply(this,arguments)}returnf(r,[{key:"execAction",value:(t=c(s().mark((functione(t,n,r,o,i){vara,l;returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(!(r&&r.length>0)){e.next=6;break}returne.next=3,ibiz.entityService.getService("XQFBXQPS",n);case3:a=e.sent,l=a.local.getList(n),r.forEach((function(e){vart=l.find((function(t){returnt.srfkey===e.srfkey}));t&&(t.psjg="10",e.psjg="10")}));case6:returne.abrupt("return",{refresh:!1,closeView:!1});case7:case"end":returne.stop()}}),e)}))),function(e,n,r,o,i){returnt.apply(this,arguments)})}]),r}(K),Ne=function(){functione(){u(this,e),g(this,"handler",void0)}vart;returnf(e,[{key:"getHandler",value:(t=c(s().mark((functione(){returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newIe),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),e}(),De=function(e){p(r,e);vart,n=m(r);functionr(){returnu(this,r),n.apply(this,arguments)}returnf(r,[{key:"execAction",value:(t=c(s().mark((functione(t,n,r,o,i){vara,l;returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(!(r&&r.length>0)){e.next=6;break}returne.next=3,ibiz.entityService.getService("XQFBXQPS",n);case3:a=e.sent,l=a.local.getList(n),r.forEach((function(e){vart=l.find((function(t){returnt.srfkey===e.srfkey}));t&&(t.psjg="20",e.psjg="20")}));case6:returne.abrupt("return",{refresh:!1,closeView:!1});case7:case"end":returne.stop()}}),e)}))),function(e,n,r,o,i){returnt.apply(this,arguments)})}]),r}(K),Ae=function(){functione(){u(this,e),g(this,"handler",void0)}vart;returnf(e,[{key:"getHandler",value:(t=c(s().mark((functione(){returns().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newDe),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),e}(),Re=newZ(n.meta.url);e("default",{mateUrl:n.meta.url,install:function(e){l.getModelService().then((function(e){vart;"true"===(null===(t=e.app.userParams)||void0===t?void0: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",newLe),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",newUe),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",newFe),e.component("SyFileUpload",ye),e.component("SyGridFileUpload",ke),e.component("SyEditGridFileUpload",Se),e.component("SyGridFileUploadContainer",xe),ibiz.register.editor.register("EDITOR_CUSTOMSTYLE_SyFileUpload",newje),e.component("AppLayout",Ce),ibiz.register.uiAction.register("DEUIACTION_BatchApprovalOrdersId",newNe),ibiz.register.uiAction.register("DEUIACTION_BatchNoApprovalOrdersId",newAe)}})}}}))}();