!function(){functione(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functiont(t){for(varr=1;r<arguments.length;r++){varn=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}returnt}functionr(e){returnfunction(e){if(Array.isArray(e))returnn(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)returnn(e,t);varr=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)returnArray.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))returnn(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.")}()}functionn(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functiona(e){returna="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},a(e)}functiono(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){returne};vare={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeofSymbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(j){l=function(e,t,r){returne[t]=r}}functiond(e,t,r,a){varo=t&&t.prototypeinstanceofh?t:h,i=Object.create(o.prototype),s=newA(a||[]);returnn(i,"_invoke",{value:O(e,r,s)}),i}functionp(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(j){return{type:"throw",arg:j}}}e.wrap=d;varf={};functionh(){}functionm(){}functionv(){}vary={};l(y,s,(function(){returnthis}));varg=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==t&&r.call(b,s)&&(y=b);varw=v.prototype=h.prototype=Object.create(y);functionE(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionx(e,t){functiono(n,i,s,c){varu=p(e[n],e,i);if("throw"!==u.type){varl=u.arg,d=l.value;returnd&&"object"==a(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){returno("throw",e,s,c)}))}c(u.arg)}vari;n(this,"_invoke",{value:function(e,r){functionn(){returnnewt((function(t,n){o(e,r,t,n)}))}returni=i?i.then(n,n):n()}})}functionO(e,t,r){varn="suspendedStart";returnfunction(a,o){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===a)throwo;returnT()}for(r.method=a,r.arg=o;;){vari=r.delegate;if(i){vars=P(i,r);if(s){if(s===f)continue;returns}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";varc=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}functionP(e,t){varr=t.method,n=e.iterator[r];if(void0===n)returnt.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+r+"' method")),f;vara=p(n,e.iterator,t.arg);if("throw"===a.type)returnt.method="throw",t.arg=a.arg,t.delegate=null,f;varo=a.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,f):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,f)}functionk(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionD(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionA(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}functionC(e){if(e){vart=e[s];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varn=-1,a=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};returna.next=a}}return{next:T}}functionT(){return{value:void0,done:!0}}returnm.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),l(x.prototype,c,(function(){returnthis})),e.AsyncIterator=x,e.async=function(t,r,n,a,o){void0===o&&(o=Promise);vari=newx(d(t,r,n,a),o);returne.isGeneratorFunction(r)?i:i.next().then((function(e){returne.done?e.value:i.next()}))},E(w),l(w,u,"Generator"),l(w,s,(function(){returnthis})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){vart=Object(e),r=[];for(varnint)r.push(n);returnr.reverse(),functione(){for(;r.length;){varn=r.pop();if(nint)returne.value=n,e.done=!1,e}returne.done=!0,e}},e.values=C,A.prototype={constructor:A,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(D),!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(r,n){returni.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(vara=this.tryEntries.length-1;a>=0;--a){varo=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)returnn("end");if(o.tryLoc<=this.prev){vars=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)returnn(o.catchLoc,!0);if(this.prev<o.finallyLoc)returnn(o.finallyLoc)}elseif(s){if(this.prev<o.catchLoc)returnn(o.catchLoc,!0)}else{if(!c)thrownewError("try statement without catch or finally");if(this.prev<o.finallyLoc)returnn(o.finallyLoc)}}}},abrupt:function(e,t){for(varn=this.tryEntries.length-1;n>=0;--n){vara=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){varo=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);vari=o?o.completion:{};returni.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},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),f},finish:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.finallyLoc===e)returnthis.complete(r.completion,r.afterLoc),D(r),f}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.tryLoc===e){varn=r.completion;if("throw"===n.type){vara=n.arg;D(r)}returna}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),f}},e}functioni(e,t,r,n,a,o,i){try{vars=e[o](i),c=s.value}catch(u){returnvoidr(u)}s.done?t(c):Promise.resolve(c).then(n,a)}functions(e){returnfunction(){vart=this,r=arguments;returnnewPromise((function(n,a){varo=e.apply(t,r);functions(e){i(o,n,a,s,c,"next",e)}functionc(e){i(o,n,a,s,c,"throw",e)}s(void0)}))}}functionc(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionu(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}functionl(e,t,r){returnt&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}functiond(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&&p(e,t)}functionp(e,t){returnp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},p(e,t)}functionf(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(){varr,n=v(e);if(t){vara=v(this).constructor;r=Reflect.construct(n,arguments,a)}elser=n.apply(this,arguments);returnh(this,r)}}functionh(e,t){if(t&&("object"===a(t)||"function"==typeoft))returnt;if(void0!==t)thrownewTypeError("Derived constructors may only return object or undefined");returnm(e)}functionm(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionv(e){returnv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},v(e)}functiony(e,t,r){return(t=g(t))ine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functiong(e){vart=function(e,t){if("object"!==a(e)||null===e)returne;varr=e[Symbol.toPrimitive];if(void0!==r){varn=r.call(e,t||"default");if("object"!==a(n))returnn;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}System.register(["@ibiz-template/model","@ibiz-template/vue-util","vue","qx-util","@ibiz-template/runtime","@ibiz-template/controller","@ibiz-template/service","dayjs","@ibiz-template/core"],(function(e,n){"use strict";vari,u,p,h,v,g,b,w,E,x,O,P,k,D,A,C,T,j,S,_,L,N,I,F,M,R;return{setters:[function(e){i=e.EditFormModel,u=e.AppEntityModel},function(e){p=e.useNamespace,h=e.useControlController,v=e.usePropsWatch,g=e.getDatePickerProps,b=e.getEditorEmits},function(e){w=e.defineComponent,E=e.getCurrentInstance,x=e.ref,O=e.watch,P=e.h,k=e.onMounted},function(e){D=e.createUUID},function(e){A=e.ViewMode,C=e.PluginStaticResource,T=e.UIActionHandler,j=e.FrontUIActionHandler,S=e.OpenAppViewCommand},function(e){_=e.EditFormController,L=e.DatePickerEditorController,N=e.UploadEditorController},function(e){I=e.ControlVO,F=e.calcResPath},function(e){M=e.default},function(e){R=e.StringUtil}],execute:function(){varY=function(e){d(n,e);vart,r=f(n);functionn(){vare;c(this,n);for(vart=arguments.length,a=newArray(t),o=0;o<t;o++)a[o]=arguments[o];returny(m(e=r.call.apply(r,[this].concat(a))),"baseResData",[]),y(m(e),"compareResData",[]),y(m(e),"oldData",newI),y(m(e),"versionData",[]),y(m(e),"comparisonArr",{}),y(m(e),"gridData",[]),y(m(e),"AllGridData",[]),y(m(e),"removeSameGridData",[]),y(m(e),"AlldruipartData",newMap),y(m(e),"druipartDataSize",0),y(m(e),"newDruipartData",{}),e}returnl(n,[{key:"loadGridData",value:(t=s(o().mark((functione(){vart,r,n,a,i,s,c,u,l;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,this.startLoading();case2:returnt=this.model.source.M.getPSControlParam.ctrlParams,r=t.BASEENTITY,n=t.COMPAREENTITY,e.next=6,ibiz.entityService.getService(r);case6:returna=e.sent,e.next=9,ibiz.entityService.getService(n);case9:returni=e.sent,s=Object.assign({},this.context.clone(),y({},r.toLowerCase(),this.params.base_version)),c=Object.assign({},this.context.clone(),y({},n.toLowerCase(),this.params.compare_version)),e.next=14,a.exec("Get",s,this.params);case14:returnu=e.sent,e.next=17,i.exec("Get",c,this.params);case17:returnl=e.sent,this.isLoaded=!0,e.abrupt("return",{baseData:u.data.data,compareData:l.data.data});case20:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})},{key:"isFalseyButNotEmpty",value:function(e){returnnull==e||"string"==typeofe&&""===e||Array.isArray(e)&&0===e.length||"object"===a(e)&&0===Object.keys(e).length}},{key:"compareObjectValues",value:function(e,t){returnJSON.stringify(e)!==JSON.stringify(t)}}]),n}(_),U=w({name:"IBizFormDataComparison",props:{modelData:{type:i,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},enableAutoSave:{type:Boolean,required:!1}},setup:function(e){varn=p("form-data-comparison"),a=E().proxy,i=h(a,(function(){vart=newY(e.modelData,e.context,e.params);returnv(a,"enableAutoSave",t.setEnableAutoSave.bind(t)),t})),c=x(!0),u=x(!1),l=x({}),d=x({}),f=x([]),m=[],y=x([]),g=x([]),b=x([]),w=newMap,k=x(0),C=functione(t){varn=[];if(n.push(t),t&&t.children){vara=[];t.children.forEach((function(t){varn=e(t);a.push.apply(a,r(n))})),n.push.apply(n,a)}returnn}(e.modelData);m.push.apply(m,r(C));varT=function(e){vart=i.details[e.source.name],r=P("not-supported-editor",{attrs:{modelData:e.editor}});returnP("div",{class:[n.e("form-grid-item"),n.is("add",y.value.includes(e.source.name)),n.is("update",b.value.includes(e.source.name)),n.is("delete",g.value.includes(e.source.name))]},[P("div",{class:n.em("form-grid-item","name")},[e.source.caption]),P("div",{class:n.em("form-grid-item","left")},[t.editorProvider?P(t.editorProvider.formEditor,{props:{value:d.value[e.source.name],data:t.data,controller:t.editor,disabled:t.disabled,readonly:!0}}):r]),P("div",{class:n.em("form-grid-item","right")},[t.editorProvider?P(t.editorProvider.formEditor,{props:{value:l.value[e.source.name],data:t.data,controller:t.editor,disabled:t.disabled,readonly:!0}}):r])])},j=function(e,t){w.set(e.source.id,t),t.evt.on("mounted",(function(){c.value&&i.startLoading(),k.value+=1,t.call.refresh()})),t.evt.on("refreshed",(function(){k.value-=1,setTimeout((function(){c.value&&i.endLoading()}),500)}))},S=function(e){c.value=!1;vart=f.value.findIndex((function(t){returnt===e.source.name}));t>-1?f.value.splice(t,1):f.value.push(e.source.name)},_=function(e,t){varr=[],n=[],a=[];returnObject.keys(t).forEach((function(a){varo=e[a],s=t[a];i.isFalseyButNotEmpty(o)&&!i.isFalseyButNotEmpty(s)&&r.push(a),i.isFalseyButNotEmpty(o)||i.isFalseyButNotEmpty(s)||!i.compareObjectValues(o,s)||n.push(a)})),Object.keys(e).forEach((function(r){if(!Object.prototype.hasOwnProperty.call(t,r)||i.isFalseyButNotEmpty(t[r])){varn=e[r];i.isFalseyButNotEmpty(n)||a.push(r)}})),{added:r,modified:n,deleted:a}};returnO((function(){returne.params}),s(o().mark((functione(){vart,r,n,a,s;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,i.loadGridData();case2:t=e.sent,l.value=t.baseData,d.value=t.compareData,r=_(d.value,l.value),n=r.added,a=r.modified,s=r.deleted,y.value=n,b.value=a,g.value=s;case9:case"end":returne.stop()}}),e)}))),{immediate:!0}),{ns:n,c:i,switchValue:u,druipartNum:k,renderEditor:T,renderByDetailType:functionr(a){if(!a.source.hidden){if("FORMPAGE"===a.source.detailType)returnP("div",{class:n.e("form-page")},[a.children.map((function(e){returnr(e)}))]);if("FORMITEM"===a.source.detailType){varo=y.value.includes(a.source.name),s=g.value.includes(a.source.name),c=b.value.includes(a.source.name);return!u.value||o||s||c?T(a):null}if("GROUPPANEL"===a.source.detailType){varp=f.value.includes(a.source.name);returnP("div",{class:n.b("group")},[P("div",{class:[n.be("group","header"),n.is("hide-caption",!a.source.showCaption)]},[P("div",{class:n.bem("group","header","name")},[P("i-icon",p?{class:n.bem("group","header","icon"),attrs:{type:"ios-arrow-forward",title:"展开"},on:{click:function(){returnS(a)}}}:{class:n.bem("group","header","icon"),attrs:{type:"ios-arrow-down",title:"收缩"},on:{click:function(){returnS(a)}}}),P("span",{class:n.bem("group","header","name-text")},[a.source.caption||a.source.title])]),P("div",["---"]),P("div",["---"])]),P("div",{class:[n.be("group","content"),n.is("collapse",p)]},[a.children.map((function(e){returnr(e)}))])])}return"DRUIPART"!==a.source.detailType||a.source.name.endsWith("_srfcopy")?"MDCTRL"===a.source.detailType?(v={modelData:h=a,controller:i.details[h.source.name]},w=i.providers[h.source.name],E=P(w.component,{props:t({},v),key:h.id}),x=P(w.component,{props:t({},v),key:"compare_".concat(h.id)}),P("div",{class:n.e("mdctrl")},[P("div",{class:n.em("mdctrl","caption")},[h.source.caption]),P("div",{class:n.em("mdctrl","left")},[E]),P("div",{class:n.em("mdctrl","right")},[x])])):null:function(t){varr=m.find((function(e){returne.id==="".concat(t.source.id,"_srfcopy")})),a=t.embedView.source.modelPath,o=null==r?void0:r.embedView.source.modelPath,s=i.context.clone(),c={base_version:e.params.base_version},u=i.context.clone();Object.assign(u,{gysrlzy_info:e.params.compare_version,compare_version:e.params.compare_version});varp={compare_version:e.params.compare_version},f=l.value[t.source.userTag],h=d.value[null==r?void0:r.source.userTag],v=!1,y=!1,g=!1;if(t.source.userTag2){varb=JSON.parse(t.source.userTag2),w=b.comparekey,E=b.comparelist;f&&h&&Array.isArray(f)&&Array.isArray(h)&&(0===f.length&&0!==h.length?g=!0:0!==f.length&&0===h.length?v=!0:0!==f.length&&0!==h.length&&(f.length!==h.length?y=!0:f.some((function(e){vart=h.find((function(t){returne[w]===t[w]}));returnt?E.some((function(r){returne[r]!==t[r]&&(y=!0,!0)})):(y=!0,!0)}))))}returnP("div",{class:[n.e("druipart"),n.is("add",v),n.is("update",y),n.is("delete",g)]},[P("div",{class:n.em("druipart","caption")},[t.source.caption]),P("div",{class:n.em("druipart","left")},[o&&P("ViewShell",{attrs:{context:u,params:p,modal:{mode:A.EMBED},modelPath:o,noLoadDefault:!0,name:null==r?void0:r.source.id},key:D(),on:{neuronInit:function(e){returnj(r,e)}}})]),P("div",{class:n.em("druipart","right")},[a&&P("ViewShell",{attrs:{context:s,params:c,modal:{mode:A.EMBED},modelPath:a,noLoadDefault:!0,name:t.source.id},key:D(),on:{neuronInit:function(e){returnj(t,e)}}})])])}(a);varh,v,w,E,x}}}},render:function(){vare=this;returnthis.c.complete?P("control-layout",{attrs:{modelData:this.c.model}},[P("div",{class:this.ns.b()},[P("div",{class:this.ns.e("top")},[P("div",{class:this.ns.e("top-hidesame-content")},[P("div",{class:this.ns.e("top-hidesame-content-left")},["隐藏相同项 ",P("i-switch",{model:{value:this.switchValue,callback:function(t){e.switchValue=t}}})]),P("div",{class:this.ns.e("top-hidesame-content-right")},[P("div",{class:this.ns.e("top-hidesame-content-right-item")},["新增",P("div",{class:this.ns.e("top-hidesame-content-right-item-add")})]),P("div",{class:this.ns.e("top-hidesame-content-right-item")},["修改",P("div",{class:this.ns.e("top-hidesame-content-right-item-change")})]),P("div",{class:this.ns.e("top-hidesame-content-right-item")},["删除",P("div",{class:this.ns.e("top-hidesame-content-right-item-delete")})])])]),P("div",{class:this.ns.e("top-content")},[P("div",{class:this.ns.em("top-content","attr")},["信息项"]),P("div",{class:[this.ns.em("top-content","left")]},["更新前内容"]),P("div",{class:[this.ns.em("top-content","right")]},["更新后内容"])])]),P("div",{class:this.ns.e("content")},[this.modelData.children.map((function(t){returne.renderByDetailType(t)}))])])]):null}}),z=w({name:"CustomDataImport",props:{templateUrl:{type:String,required:!0},importUrl:{type:String,required:!0},dismiss:{type:Function}},setup:function(e,t){varr=t.emit,n=p("data-import"),a=x(),i=x({state:"ready",message:"",rowError:[]}),c=x(""),u=function(){vart=s(o().mark((functiont(r){varn,a,s,u,l,d,p,f,h,m;returno().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnn=newFormData,a=M(c.value).format("YYYY-MM"),n.append("file",r),n.append("ny",a),t.prev=4,t.next=7,ibiz.net.request(e.importUrl,{method:"post",data:n,headers:{"Content-Type":"multipart/form-data"}});case7:s=t.sent,i.value.state="success",i.value.message="导入成功",u=s.data,l=u.errorinfo,d=u.success,p=u.total,f=p?Number(p):0,h=d?Number(d):0,m=p-d,i.value.message="共计导入数据 ".concat(f," 条,错误[").concat(m,"],成功[").concat(h,"]"),l&&Object.keys(l).length>0&&(i.value.rowError=[],Object.keys(l).forEach((function(e){i.value.rowError.push({index:Number(e)+1,info:l[e].errorInfo})}))),t.next=22;break;case18:t.prev=18,t.t0=t.catch(4),i.value.state="fail",i.value.message="导入失败!".concat(t.t0.message);case22:case"end":returnt.stop()}}),t,null,[[4,18]])})));returnfunction(e){returnt.apply(this,arguments)}}(),l=function(){vart=s(o().mark((functiont(){varr,n,a,i,s;returno().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,ibiz.net.request(e.templateUrl,{responseType:"blob"});case2:200===(r=t.sent).status&&(a=(null===(n=r.headers["content-disposition"].split(";").find((function(e){return-1!==e.indexOf("filename=")})))||void0===n?void0:n.slice(9))||"",a=decodeURIComponent(a),i=newBlob([r.data],{type:"application/vnd.ms-excel"}),(s=document.createElement("a")).download=a,s.style.display="none",s.href=URL.createObjectURL(i),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s));case4:case"end":returnt.stop()}}),t)})));returnfunction(){returnt.apply(this,arguments)}}();returnk((function(){c.value=M().format("YYYY年MM月")})),{ns:n,curDate:c,onLinkClick:l,selectFile:function(){a.value.click()},onCancelButtonClick:function(){vart;r("close",{ok:!1,data:{}}),null===(t=e.dismiss)||void0===t||t.call(e,{ok:!1,data:{}})},onFileChange:function(e){vart=e.target;if(t.files){varr=t.files[0];t.value=null,u(r)}},inputUpLoad:a,message:i}},render:function(){vare=this;returnP("div",{class:[this.ns.b(),this.ns.is("custom",!0)]},[P("input",{ref:"inputUpLoad",attrs:{type:"file",accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},style:"display: none",on:{change:this.onFileChange}}),P("div",{class:this.ns.e("caption")},["导入数据"]),P("div",{class:this.ns.e("date")},[P("span",["导入数据所属月份"]),P("i-datePicker",{attrs:{format:"yyyy年MM月",type:"month",clearable:!1},model:{value:this.curDate,callback:function(t){e.curDate=t}}})]),"ready"===this.message.state?P("div",{class:this.ns.b("upload"),on:{click:this.selectFile}},[P("img",{class:this.ns.be("upload","img"),attrs:{src:"./assets/img/icon-import.svg"}}),P("span",{class:this.ns.be("upload","text")},["单击此区域进行上传"])]):P("div",{class:this.ns.b("message")},[P("div",{class:this.ns.be("message","title")},["导入结果"]),P("div",{class:this.ns.be("message","content")},[this.message.message]),this.message.rowError.length>0&&[P("div",{class:this.ns.be("message","title")},["错误信息"]),P("div",{class:this.ns.be("message","content")},[this.message.rowError.map((function(e){returnP("div",["第 ".concat(e.index," 行:").concat(e.info)])}))])]]),P("div",{class:this.ns.e("template-container")},[P("div",{class:this.ns.e("template-description")},["下载导入模版,并按要求填写:"]),P("div",{class:this.ns.e("template-link"),on:{click:this.onLinkClick}},[P("i-icon",{attrs:{type:"ios-link"}}),"数据导入模板文件"])]),P("div",{class:this.ns.e("button-bar")},["ready"!==this.message.state&&P("i-button",{on:{click:this.selectFile}},["重新上传"])])])}}),B=w({name:"YearMonthPicker",props:g(),emits:b(),setup:function(e,t){varr=t.emit,n=p("date-picker"),a=e.controller,o=a.model,i=x("date"),s=x("yyyy-MM-dd"),c=x(!1);switch(o.editorType){case"DATEPICKEREX":case"DATEPICKEREX_NOTIME":i.value="date";break;case"DATEPICKEREX_NODAY":case"DATEPICKEREX_NODAY_NOSECOND":c.value=!0,i.value="time";break;default:i.value="datetime"}varu=a.valueFormat;if(u){"YYYY-MM"===u?i.value="month":"YYYY"===u&&(i.value="year");varl=u.replace("YYYY","yyyy").replace("DD","dd");s.value=l}o.editorParams.formatText&&(s.value=o.editorParams.formatText.replace("YYYY","yyyy").replace("DD","dd"));vard=x();O((function(){returne.value}),(function(e,t){e&&e!==t&&(d.value=M(e).format(u))}),{immediate:!0});varf=x();returne.autoFocus&&O(f,(function(e){e&&e.$el.getElementsByTagName("input")[0].click()})),{ns:n,c:a,editorModel:o,type:i,format:s,formatValue:d,handleChange:function(e,t){if(e){varn=M(e.replace(/[年月]/g,"-")).format(u);r("change",n)}elser("change",e)},onOpenChange:function(e){r("operate",e)},inputRef:f,isTimePicker:c}},render:function(e){returne("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[[this.readonly&&this.formatValue,!this.readonly&&this.isTimePicker&&e("ITimePicker",{ref:"inputRef",props:t(t({},this.c.customProps),{},{value:this.value,type:this.type,format:this.format,placeholder:this.c.placeHolder,disabled:this.disabled,transfer:!0}),on:{"on-change":this.handleChange,"on-open-change":this.onOpenChange}}),!this.readonly&&!this.isTimePicker&&e("ICalendarPicker",{ref:"inputRef",props:t(t({},this.c.customProps),{},{value:this.value,type:this.type,format:this.format,placeholder:this.c.placeHolder,disabled:this.disabled,transfer:!0}),on:{"on-change":this.handleChange,"on-open-change":this.onOpenChange}})]])}}),G=newC(n.meta.url),V=w({name:"DownLoadSafeFile",props:{},setup:function(){return{ns:p("download-safe-file"),url:G.dir("/assets/doc/safe-file.doc")}},render:function(){returnP("div",{class:this.ns.b()},[P("a",{attrs:{download:"网络信息安全承诺书-个人.doc",href:this.url}},["网络信息安全承诺书-个人.doc"])])}}),q=l((functione(){c(this,e),y(this,"component","IBizFormDataComparison")})),H=function(e){d(n,e);vart,r=f(n);functionn(){returnc(this,n),r.apply(this,arguments)}returnl(n,[{key:"execAction",value:(t=s(o().mark((functione(t,r,n,a){vari,s,c,l,d,p,f,h,m,v,y;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(i={},!(s=t.getPSAppDataEntity())){e.next=24;break}if(!1!==s.isFill){e.next=6;break}returne.next=6,s.fill(!0);case6:returnc=newu(s),e.next=9,c.init();case9:returne.next=11,this.handleParams(t,r,n,a);case11:returnl=e.sent,d=l.resultContext,p=ibiz.resourcePathUtil.calcPaths(d,c.codeName),f=F(d,p),h="".concat(f,"/").concat(c.deNamePlural,"/importtemplate"),m="".concat(f,"/").concat(c.deNamePlural,"/importdata2"),(v=t.getPSAppDEDataImport())&&(h+="?srfimporttag=".concat(v.codeName),m+="?srfimporttag=".concat(v.codeName)),(y=ibiz.overlay.createModal("CustomDataImport",{templateUrl:h,importUrl:m,dismiss:function(e){y.dismiss(e)}},{width:"auto",placement:"center"})).present(),e.next=23,y.onWillDismiss();case23:returne.abrupt("return",{refresh:!0});case24:returne.abrupt("return",i);case25:case"end":returne.stop()}}),e,this)}))),function(e,r,n,a){returnt.apply(this,arguments)})}]),n}(T),K=function(){functione(){c(this,e),y(this,"handler",void0)}vart;returnl(e,[{key:"getHandler",value:(t=s(o().mark((functione(){returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newH),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),e}(),W=function(){functione(){c(this,e),y(this,"gridEditor","YearMonthPicker"),y(this,"formEditor","YearMonthPicker")}vart;returnl(e,[{key:"createController",value:(t=s(o().mark((functione(t,r){varn;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnn=newL(t,r),e.next=3,n.init();case3:returne.abrupt("return",n);case4:case"end":returne.stop()}}),e)}))),function(e,r){returnt.apply(this,arguments)})}]),e}(),X=function(){functione(){c(this,e),y(this,"formEditor","DownLoadSafeFile"),y(this,"gridEditor","DownLoadSafeFile")}vart;returnl(e,[{key:"createController",value:(t=s(o().mark((functione(t,r){varn;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnn=newN(t,r),e.next=3,n.init();case3:returne.abrupt("return",n);case4:case"end":returne.stop()}}),e)}))),function(e,r){returnt.apply(this,arguments)})}]),e}(),J=function(e){d(n,e);vart,r=f(n);functionn(){returnc(this,n),r.apply(this,arguments)}returnl(n,[{key:"execAction",value:(t=s(o().mark((functione(t,r,n,a,i){vars,c,l,d,p,f,h,m,v,y,g,b,w,E,x,O,P,k,D,A,C,T,j,_,L;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(s={},"OPENHTMLPAGE"===(c=t.frontProcessType)&&(l=R.fill(t.htmlPageUrl,r,null==n?void0:n[0]),window.open(l,"_blank")),"DATAIMP"!==c){e.next=27;break}if(!(d=t.getPSAppDataEntity())){e.next=27;break}if(!1!==d.isFill){e.next=9;break}returne.next=9,d.fill(!0);case9:returnp=newu(d),e.next=12,p.init();case12:returne.next=14,this.handleParams(t,r,n,a);case14:returnf=e.sent,h=f.resultContext,m=ibiz.resourcePathUtil.calcPaths(h,p.codeName),v=F(h,m),y="".concat(v,"/").concat(p.deNamePlural,"/importtemplate"),g="".concat(v,"/").concat(p.deNamePlural,"/importdata2"),(b=t.getPSAppDEDataImport())&&(y+="?srfimporttag=".concat(b.codeName),g+="?srfimporttag=".concat(b.codeName)),(w=ibiz.overlay.createModal("DataImport",{templateUrl:y,importUrl:g,dismiss:function(e){w.dismiss(e)}},{width:"auto",placement:"center"})).present(),e.next=26,w.onWillDismiss();case26:returne.abrupt("return",{refresh:!0});case27:if(!["TOP","WIZARD"].includes(c)){e.next=45;break}if(E=t.getFrontPSAppView()){e.next=31;break}thrownewError("未配置打开视图");case31:returne.next=33,E.fill(!0);case33:returne.next=35,this.handleParams(t,r,n,a);case35:returnx=e.sent,O=x.resultContext,P=x.resultParams,e.next=40,ibiz.commands.execute(S.TAG,E,O,P,i);case40:!1===(null==(k=e.sent)?void0:k.ok)&&(s.closeView=!1,s.refresh=!1,s.cancel=!0),null!=k&&k.ok&&k.data&&(s.data=k.data),e.next=55;break;case45:if(!i){e.next=55;break}if(D=i.neuron,A=D.call.getFormController(),C=A.call.getFormController(),T=C.details,j=T.druipart1,_=T.druipart2,L=T.druipart3,[{message:"服务履历为空",neuron:j},{message:"教育经验为空",neuron:_},{message:"项目经验为空",neuron:L}].some((function(e){vart=e.neuron.neuron.call.getGridController();if(t){varr=t.call.getGridController();if(r&&r.items&&r.items.length>0)return!1}returnibiz.message.error("".concat(e.message),1.5,!0),!0}))){e.next=55;break}returne.next=55,D.call.wfStart();case55:returne.abrupt("return",s);case56:case"end":returne.stop()}}),e,this)}))),function(e,r,n,a,o){returnt.apply(this,arguments)})}]),n}(j),$=function(){functione(){c(this,e),y(this,"handler",void0)}vart;returnl(e,[{key:"getHandler",value:(t=s(o().mark((functione(){returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newJ),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),e}();e("default",{mateUrl:n.meta.url,install:function(e){G.loadStyle(["/style.css"]),e.component("IBizFormDataComparison",U),e.component("CustomDataImport",z),e.component("YearMonthPicker",B),e.component("DownLoadSafeFile",V),ibiz.register.control.register("EDITFORM_RENDER_FORM_DATA_COMPARISON",newq),ibiz.register.uiAction.register("DEUIACTION_CUSTOM_IMPORT",newK),ibiz.register.editor.register("DATEPICKEREX_NOTIME_YEAR_MONTH_PICKER",newW),ibiz.register.editor.register("FILEUPLOADER_ONE_DOWNLOAD_FILE",newX),ibiz.register.uiAction.register("DEUIACTION_JUDEG_ENABLE_UPDATE",new$)}})}}}))}();
!function(){functione(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functiont(t){for(varr=1;r<arguments.length;r++){varn=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}returnt}functionr(e){returnfunction(e){if(Array.isArray(e))returnn(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)returnn(e,t);varr=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)returnArray.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))returnn(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.")}()}functionn(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functiona(e){returna="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},a(e)}functiono(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){returne};vare={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeofSymbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(j){l=function(e,t,r){returne[t]=r}}functiond(e,t,r,a){varo=t&&t.prototypeinstanceofh?t:h,i=Object.create(o.prototype),s=newA(a||[]);returnn(i,"_invoke",{value:O(e,r,s)}),i}functionp(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(j){return{type:"throw",arg:j}}}e.wrap=d;varf={};functionh(){}functionm(){}functionv(){}vary={};l(y,s,(function(){returnthis}));varg=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==t&&r.call(b,s)&&(y=b);varw=v.prototype=h.prototype=Object.create(y);functionE(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionx(e,t){functiono(n,i,s,c){varu=p(e[n],e,i);if("throw"!==u.type){varl=u.arg,d=l.value;returnd&&"object"==a(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){returno("throw",e,s,c)}))}c(u.arg)}vari;n(this,"_invoke",{value:function(e,r){functionn(){returnnewt((function(t,n){o(e,r,t,n)}))}returni=i?i.then(n,n):n()}})}functionO(e,t,r){varn="suspendedStart";returnfunction(a,o){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===a)throwo;returnT()}for(r.method=a,r.arg=o;;){vari=r.delegate;if(i){vars=P(i,r);if(s){if(s===f)continue;returns}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";varc=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}functionP(e,t){varr=t.method,n=e.iterator[r];if(void0===n)returnt.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+r+"' method")),f;vara=p(n,e.iterator,t.arg);if("throw"===a.type)returnt.method="throw",t.arg=a.arg,t.delegate=null,f;varo=a.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,f):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,f)}functionk(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionD(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionA(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}functionC(e){if(e){vart=e[s];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varn=-1,a=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};returna.next=a}}return{next:T}}functionT(){return{value:void0,done:!0}}returnm.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),l(x.prototype,c,(function(){returnthis})),e.AsyncIterator=x,e.async=function(t,r,n,a,o){void0===o&&(o=Promise);vari=newx(d(t,r,n,a),o);returne.isGeneratorFunction(r)?i:i.next().then((function(e){returne.done?e.value:i.next()}))},E(w),l(w,u,"Generator"),l(w,s,(function(){returnthis})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){vart=Object(e),r=[];for(varnint)r.push(n);returnr.reverse(),functione(){for(;r.length;){varn=r.pop();if(nint)returne.value=n,e.done=!1,e}returne.done=!0,e}},e.values=C,A.prototype={constructor:A,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(D),!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(r,n){returni.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(vara=this.tryEntries.length-1;a>=0;--a){varo=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)returnn("end");if(o.tryLoc<=this.prev){vars=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)returnn(o.catchLoc,!0);if(this.prev<o.finallyLoc)returnn(o.finallyLoc)}elseif(s){if(this.prev<o.catchLoc)returnn(o.catchLoc,!0)}else{if(!c)thrownewError("try statement without catch or finally");if(this.prev<o.finallyLoc)returnn(o.finallyLoc)}}}},abrupt:function(e,t){for(varn=this.tryEntries.length-1;n>=0;--n){vara=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){varo=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);vari=o?o.completion:{};returni.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},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),f},finish:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.finallyLoc===e)returnthis.complete(r.completion,r.afterLoc),D(r),f}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.tryLoc===e){varn=r.completion;if("throw"===n.type){vara=n.arg;D(r)}returna}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),f}},e}functioni(e,t,r,n,a,o,i){try{vars=e[o](i),c=s.value}catch(u){returnvoidr(u)}s.done?t(c):Promise.resolve(c).then(n,a)}functions(e){returnfunction(){vart=this,r=arguments;returnnewPromise((function(n,a){varo=e.apply(t,r);functions(e){i(o,n,a,s,c,"next",e)}functionc(e){i(o,n,a,s,c,"throw",e)}s(void0)}))}}functionc(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionu(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}functionl(e,t,r){returnt&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}functiond(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&&p(e,t)}functionp(e,t){returnp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},p(e,t)}functionf(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(){varr,n=v(e);if(t){vara=v(this).constructor;r=Reflect.construct(n,arguments,a)}elser=n.apply(this,arguments);returnh(this,r)}}functionh(e,t){if(t&&("object"===a(t)||"function"==typeoft))returnt;if(void0!==t)thrownewTypeError("Derived constructors may only return object or undefined");returnm(e)}functionm(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionv(e){returnv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},v(e)}functiony(e,t,r){return(t=g(t))ine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functiong(e){vart=function(e,t){if("object"!==a(e)||null===e)returne;varr=e[Symbol.toPrimitive];if(void0!==r){varn=r.call(e,t||"default");if("object"!==a(n))returnn;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}System.register(["@ibiz-template/model","@ibiz-template/vue-util","vue","qx-util","@ibiz-template/runtime","@ibiz-template/controller","@ibiz-template/service","dayjs","@ibiz-template/core"],(function(e,n){"use strict";vari,u,p,h,v,g,b,w,E,x,O,P,k,D,A,C,T,j,S,_,L,N,I,F,M,R;return{setters:[function(e){i=e.EditFormModel,u=e.AppEntityModel},function(e){p=e.useNamespace,h=e.useControlController,v=e.usePropsWatch,g=e.getDatePickerProps,b=e.getEditorEmits},function(e){w=e.defineComponent,E=e.getCurrentInstance,x=e.ref,O=e.watch,P=e.h,k=e.onMounted},function(e){D=e.createUUID},function(e){A=e.ViewMode,C=e.PluginStaticResource,T=e.UIActionHandler,j=e.FrontUIActionHandler,S=e.OpenAppViewCommand},function(e){_=e.EditFormController,L=e.DatePickerEditorController,N=e.UploadEditorController},function(e){I=e.ControlVO,F=e.calcResPath},function(e){M=e.default},function(e){R=e.StringUtil}],execute:function(){varY=function(e){d(n,e);vart,r=f(n);functionn(){vare;c(this,n);for(vart=arguments.length,a=newArray(t),o=0;o<t;o++)a[o]=arguments[o];returny(m(e=r.call.apply(r,[this].concat(a))),"baseResData",[]),y(m(e),"compareResData",[]),y(m(e),"oldData",newI),y(m(e),"versionData",[]),y(m(e),"comparisonArr",{}),y(m(e),"gridData",[]),y(m(e),"AllGridData",[]),y(m(e),"removeSameGridData",[]),y(m(e),"AlldruipartData",newMap),y(m(e),"druipartDataSize",0),y(m(e),"newDruipartData",{}),e}returnl(n,[{key:"loadGridData",value:(t=s(o().mark((functione(){vart,r,n,a,i,s,c,u,l;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,this.startLoading();case2:returnt=this.model.source.M.getPSControlParam.ctrlParams,r=t.BASEENTITY,n=t.COMPAREENTITY,e.next=6,ibiz.entityService.getService(r);case6:returna=e.sent,e.next=9,ibiz.entityService.getService(n);case9:returni=e.sent,s=Object.assign({},this.context.clone(),y({},r.toLowerCase(),this.params.base_version)),c=Object.assign({},this.context.clone(),y({},n.toLowerCase(),this.params.compare_version)),e.next=14,a.exec("Get",s,this.params);case14:returnu=e.sent,e.next=17,i.exec("Get",c,this.params);case17:returnl=e.sent,this.isLoaded=!0,e.abrupt("return",{baseData:u.data.data,compareData:l.data.data});case20:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})},{key:"isFalseyButNotEmpty",value:function(e){returnnull==e||"string"==typeofe&&""===e||Array.isArray(e)&&0===e.length||"object"===a(e)&&0===Object.keys(e).length}},{key:"compareObjectValues",value:function(e,t){returnJSON.stringify(e)!==JSON.stringify(t)}}]),n}(_),U=w({name:"IBizFormDataComparison",props:{modelData:{type:i,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},enableAutoSave:{type:Boolean,required:!1}},setup:function(e){varn=p("form-data-comparison"),a=E().proxy,i=h(a,(function(){vart=newY(e.modelData,e.context,e.params);returnv(a,"enableAutoSave",t.setEnableAutoSave.bind(t)),t})),c=x(!0),u=x(!1),l=x({}),d=x({}),f=x([]),m=[],y=x([]),g=x([]),b=x([]),w=newMap,k=x(0),C=functione(t){varn=[];if(n.push(t),t&&t.children){vara=[];t.children.forEach((function(t){varn=e(t);a.push.apply(a,r(n))})),n.push.apply(n,a)}returnn}(e.modelData);m.push.apply(m,r(C));varT=function(e){vart=i.details[e.source.name],r=P("not-supported-editor",{attrs:{modelData:e.editor}});returnP("div",{class:[n.e("form-grid-item"),n.is("add",y.value.includes(e.source.name)),n.is("update",b.value.includes(e.source.name)),n.is("delete",g.value.includes(e.source.name))]},[P("div",{class:n.em("form-grid-item","name")},[e.source.caption]),P("div",{class:n.em("form-grid-item","left")},[t.editorProvider?P(t.editorProvider.formEditor,{props:{value:d.value[e.source.name],data:t.data,controller:t.editor,disabled:t.disabled,readonly:!0}}):r]),P("div",{class:n.em("form-grid-item","right")},[t.editorProvider?P(t.editorProvider.formEditor,{props:{value:l.value[e.source.name],data:t.data,controller:t.editor,disabled:t.disabled,readonly:!0}}):r])])},j=function(e,t){w.set(e.source.id,t),t.evt.on("mounted",(function(){c.value&&i.startLoading(),k.value+=1,t.call.refresh()})),t.evt.on("refreshed",(function(){k.value-=1,setTimeout((function(){c.value&&i.endLoading()}),500)}))},S=function(e){c.value=!1;vart=f.value.findIndex((function(t){returnt===e.source.name}));t>-1?f.value.splice(t,1):f.value.push(e.source.name)},_=function(e,t){varr=[],n=[],a=[];returnObject.keys(t).forEach((function(a){varo=e[a],s=t[a];i.isFalseyButNotEmpty(o)&&!i.isFalseyButNotEmpty(s)&&r.push(a),i.isFalseyButNotEmpty(o)||i.isFalseyButNotEmpty(s)||!i.compareObjectValues(o,s)||n.push(a)})),Object.keys(e).forEach((function(r){if(!Object.prototype.hasOwnProperty.call(t,r)||i.isFalseyButNotEmpty(t[r])){varn=e[r];i.isFalseyButNotEmpty(n)||a.push(r)}})),{added:r,modified:n,deleted:a}};returnO((function(){returne.params}),s(o().mark((functione(){vart,r,n,a,s;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,i.loadGridData();case2:t=e.sent,l.value=t.baseData,d.value=t.compareData,r=_(d.value,l.value),n=r.added,a=r.modified,s=r.deleted,y.value=n,b.value=a,g.value=s;case9:case"end":returne.stop()}}),e)}))),{immediate:!0}),{ns:n,c:i,switchValue:u,druipartNum:k,renderEditor:T,renderByDetailType:functionr(a){if(!a.source.hidden){if("FORMPAGE"===a.source.detailType)returnP("div",{class:n.e("form-page")},[a.children.map((function(e){returnr(e)}))]);if("FORMITEM"===a.source.detailType){varo=y.value.includes(a.source.name),s=g.value.includes(a.source.name),c=b.value.includes(a.source.name);return!u.value||o||s||c?T(a):null}if("GROUPPANEL"===a.source.detailType){varp=f.value.includes(a.source.name);returnP("div",{class:n.b("group")},[P("div",{class:[n.be("group","header"),n.is("hide-caption",!a.source.showCaption)]},[P("div",{class:n.bem("group","header","name")},[P("i-icon",p?{class:n.bem("group","header","icon"),attrs:{type:"ios-arrow-forward",title:"展开"},on:{click:function(){returnS(a)}}}:{class:n.bem("group","header","icon"),attrs:{type:"ios-arrow-down",title:"收缩"},on:{click:function(){returnS(a)}}}),P("span",{class:n.bem("group","header","name-text")},[a.source.caption||a.source.title])]),P("div",["---"]),P("div",["---"])]),P("div",{class:[n.be("group","content"),n.is("collapse",p)]},[a.children.map((function(e){returnr(e)}))])])}return"DRUIPART"!==a.source.detailType||a.source.name.endsWith("_srfcopy")?"MDCTRL"===a.source.detailType?(v={modelData:h=a,controller:i.details[h.source.name]},w=i.providers[h.source.name],E=P(w.component,{props:t({},v),key:h.id}),x=P(w.component,{props:t({},v),key:"compare_".concat(h.id)}),P("div",{class:n.e("mdctrl")},[P("div",{class:n.em("mdctrl","caption")},[h.source.caption]),P("div",{class:n.em("mdctrl","left")},[E]),P("div",{class:n.em("mdctrl","right")},[x])])):null:function(t){varr=m.find((function(e){returne.id==="".concat(t.source.id,"_srfcopy")})),a=t.embedView.source.modelPath,o=null==r?void0:r.embedView.source.modelPath,s=i.context.clone(),c={base_version:e.params.base_version},u=i.context.clone();Object.assign(u,{gysrlzy_info:e.params.compare_version,compare_version:e.params.compare_version});varp={compare_version:e.params.compare_version},f=l.value[t.source.userTag],h=d.value[null==r?void0:r.source.userTag],v=!1,y=!1,g=!1;if(t.source.userTag2){varb=JSON.parse(t.source.userTag2),w=b.comparekey,E=b.comparelist;f&&h&&Array.isArray(f)&&Array.isArray(h)&&(0===f.length&&0!==h.length?g=!0:0!==f.length&&0===h.length?v=!0:0!==f.length&&0!==h.length&&(f.length!==h.length?y=!0:f.some((function(e){vart=h.find((function(t){returne[w]===t[w]}));returnt?E.some((function(r){returne[r]!==t[r]&&(y=!0,!0)})):(y=!0,!0)}))))}returnP("div",{class:[n.e("druipart"),n.is("add",v),n.is("update",y),n.is("delete",g)]},[P("div",{class:n.em("druipart","caption")},[t.source.caption]),P("div",{class:n.em("druipart","left")},[o&&P("ViewShell",{attrs:{context:u,params:p,modal:{mode:A.EMBED},modelPath:o,noLoadDefault:!0,name:null==r?void0:r.source.id},key:D(),on:{neuronInit:function(e){returnj(r,e)}}})]),P("div",{class:n.em("druipart","right")},[a&&P("ViewShell",{attrs:{context:s,params:c,modal:{mode:A.EMBED},modelPath:a,noLoadDefault:!0,name:t.source.id},key:D(),on:{neuronInit:function(e){returnj(t,e)}}})])])}(a);varh,v,w,E,x}}}},render:function(){vare=this;returnthis.c.complete?P("control-layout",{attrs:{modelData:this.c.model}},[P("div",{class:this.ns.b()},[P("div",{class:this.ns.e("top")},[P("div",{class:this.ns.e("top-hidesame-content")},[P("div",{class:this.ns.e("top-hidesame-content-left")},["隐藏相同项 ",P("i-switch",{model:{value:this.switchValue,callback:function(t){e.switchValue=t}}})]),P("div",{class:this.ns.e("top-hidesame-content-right")},[P("div",{class:this.ns.e("top-hidesame-content-right-item")},["新增",P("div",{class:this.ns.e("top-hidesame-content-right-item-add")})]),P("div",{class:this.ns.e("top-hidesame-content-right-item")},["修改",P("div",{class:this.ns.e("top-hidesame-content-right-item-change")})]),P("div",{class:this.ns.e("top-hidesame-content-right-item")},["删除",P("div",{class:this.ns.e("top-hidesame-content-right-item-delete")})])])]),P("div",{class:this.ns.e("top-content")},[P("div",{class:this.ns.em("top-content","attr")},["信息项"]),P("div",{class:[this.ns.em("top-content","left")]},["更新前内容"]),P("div",{class:[this.ns.em("top-content","right")]},["更新后内容"])])]),P("div",{class:this.ns.e("content")},[this.modelData.children.map((function(t){returne.renderByDetailType(t)}))])])]):null}}),z=w({name:"CustomDataImport",props:{templateUrl:{type:String,required:!0},importUrl:{type:String,required:!0},dismiss:{type:Function}},setup:function(e,t){varr=t.emit,n=p("data-import"),a=x(),i=x({state:"ready",message:"",rowError:[]}),c=x(""),u=function(){vart=s(o().mark((functiont(r){varn,a,s,u,l,d,p,f,h,m;returno().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnn=newFormData,a=M(c.value).format("YYYY-MM"),n.append("file",r),n.append("ny",a),t.prev=4,t.next=7,ibiz.net.request(e.importUrl,{method:"post",data:n,headers:{"Content-Type":"multipart/form-data"}});case7:s=t.sent,i.value.state="success",i.value.message="导入成功",u=s.data,l=u.errorinfo,d=u.success,p=u.total,f=p?Number(p):0,h=d?Number(d):0,m=p-d,i.value.message="共计导入数据 ".concat(f," 条,错误[").concat(m,"],成功[").concat(h,"]"),l&&Object.keys(l).length>0&&(i.value.rowError=[],Object.keys(l).forEach((function(e){i.value.rowError.push({index:Number(e)+1,info:l[e].errorInfo})}))),t.next=22;break;case18:t.prev=18,t.t0=t.catch(4),i.value.state="fail",i.value.message="导入失败!".concat(t.t0.message);case22:case"end":returnt.stop()}}),t,null,[[4,18]])})));returnfunction(e){returnt.apply(this,arguments)}}(),l=function(){vart=s(o().mark((functiont(){varr,n,a,i,s;returno().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,ibiz.net.request(e.templateUrl,{responseType:"blob"});case2:200===(r=t.sent).status&&(a=(null===(n=r.headers["content-disposition"].split(";").find((function(e){return-1!==e.indexOf("filename=")})))||void0===n?void0:n.slice(9))||"",a=decodeURIComponent(a),i=newBlob([r.data],{type:"application/vnd.ms-excel"}),(s=document.createElement("a")).download=a,s.style.display="none",s.href=URL.createObjectURL(i),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s));case4:case"end":returnt.stop()}}),t)})));returnfunction(){returnt.apply(this,arguments)}}();returnk((function(){c.value=M().format("YYYY年MM月")})),{ns:n,curDate:c,onLinkClick:l,selectFile:function(){a.value.click()},onCancelButtonClick:function(){vart;r("close",{ok:!1,data:{}}),null===(t=e.dismiss)||void0===t||t.call(e,{ok:!1,data:{}})},onFileChange:function(e){vart=e.target;if(t.files){varr=t.files[0];t.value=null,u(r)}},inputUpLoad:a,message:i}},render:function(){vare=this;returnP("div",{class:[this.ns.b(),this.ns.is("custom",!0)]},[P("input",{ref:"inputUpLoad",attrs:{type:"file",accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},style:"display: none",on:{change:this.onFileChange}}),P("div",{class:this.ns.e("caption")},["导入数据"]),P("div",{class:this.ns.e("date")},[P("span",["导入数据所属月份"]),P("i-datePicker",{attrs:{format:"yyyy年MM月",type:"month",clearable:!1},model:{value:this.curDate,callback:function(t){e.curDate=t}}})]),"ready"===this.message.state?P("div",{class:this.ns.b("upload"),on:{click:this.selectFile}},[P("img",{class:this.ns.be("upload","img"),attrs:{src:"./assets/img/icon-import.svg"}}),P("span",{class:this.ns.be("upload","text")},["单击此区域进行上传"])]):P("div",{class:this.ns.b("message")},[P("div",{class:this.ns.be("message","title")},["导入结果"]),P("div",{class:this.ns.be("message","content")},[this.message.message]),this.message.rowError.length>0&&[P("div",{class:this.ns.be("message","title")},["错误信息"]),P("div",{class:this.ns.be("message","content")},[this.message.rowError.map((function(e){returnP("div",["第 ".concat(e.index," 行:").concat(e.info)])}))])]]),P("div",{class:this.ns.e("template-container")},[P("div",{class:this.ns.e("template-description")},["下载导入模版,并按要求填写:"]),P("div",{class:this.ns.e("template-link"),on:{click:this.onLinkClick}},[P("i-icon",{attrs:{type:"ios-link"}}),"数据导入模板文件"])]),P("div",{class:this.ns.e("button-bar")},["ready"!==this.message.state&&P("i-button",{on:{click:this.selectFile}},["重新上传"])])])}}),B=w({name:"YearMonthPicker",props:g(),emits:b(),setup:function(e,t){varr=t.emit,n=p("date-picker"),a=e.controller,o=a.model,i=x("date"),s=x("yyyy-MM-dd"),c=x(!1);switch(o.editorType){case"DATEPICKEREX":case"DATEPICKEREX_NOTIME":i.value="date";break;case"DATEPICKEREX_NODAY":case"DATEPICKEREX_NODAY_NOSECOND":c.value=!0,i.value="time";break;default:i.value="datetime"}varu=a.valueFormat;if(u){"YYYY-MM"===u?i.value="month":"YYYY"===u&&(i.value="year");varl=u.replace("YYYY","yyyy").replace("DD","dd");s.value=l}o.editorParams.formatText&&(s.value=o.editorParams.formatText.replace("YYYY","yyyy").replace("DD","dd"));vard=x();O((function(){returne.value}),(function(e,t){e&&e!==t&&(d.value=M(e).format(u))}),{immediate:!0});varf=x();returne.autoFocus&&O(f,(function(e){e&&e.$el.getElementsByTagName("input")[0].click()})),{ns:n,c:a,editorModel:o,type:i,format:s,formatValue:d,handleChange:function(e,t){if(e){varn=M(e.replace(/[年月]/g,"-")).format(u);r("change",n)}elser("change",e)},onOpenChange:function(e){r("operate",e)},inputRef:f,isTimePicker:c}},render:function(e){returne("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[[this.readonly&&this.formatValue,!this.readonly&&this.isTimePicker&&e("ITimePicker",{ref:"inputRef",props:t(t({},this.c.customProps),{},{value:this.value,type:this.type,format:this.format,placeholder:this.c.placeHolder,disabled:this.disabled,transfer:!0}),on:{"on-change":this.handleChange,"on-open-change":this.onOpenChange}}),!this.readonly&&!this.isTimePicker&&e("ICalendarPicker",{ref:"inputRef",props:t(t({},this.c.customProps),{},{value:this.value,type:this.type,format:this.format,placeholder:this.c.placeHolder,disabled:this.disabled,transfer:!0}),on:{"on-change":this.handleChange,"on-open-change":this.onOpenChange}})]])}}),G=newC(n.meta.url),V=w({name:"DownLoadSafeFile",props:{},setup:function(){return{ns:p("download-safe-file"),url:G.dir("/assets/doc/safe-file.doc")}},render:function(){returnP("div",{class:this.ns.b()},[P("a",{attrs:{download:"网络信息安全承诺书.doc",href:this.url}},["网络信息安全承诺书.doc"])])}}),q=l((functione(){c(this,e),y(this,"component","IBizFormDataComparison")})),H=function(e){d(n,e);vart,r=f(n);functionn(){returnc(this,n),r.apply(this,arguments)}returnl(n,[{key:"execAction",value:(t=s(o().mark((functione(t,r,n,a){vari,s,c,l,d,p,f,h,m,v,y;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(i={},!(s=t.getPSAppDataEntity())){e.next=24;break}if(!1!==s.isFill){e.next=6;break}returne.next=6,s.fill(!0);case6:returnc=newu(s),e.next=9,c.init();case9:returne.next=11,this.handleParams(t,r,n,a);case11:returnl=e.sent,d=l.resultContext,p=ibiz.resourcePathUtil.calcPaths(d,c.codeName),f=F(d,p),h="".concat(f,"/").concat(c.deNamePlural,"/importtemplate"),m="".concat(f,"/").concat(c.deNamePlural,"/importdata2"),(v=t.getPSAppDEDataImport())&&(h+="?srfimporttag=".concat(v.codeName),m+="?srfimporttag=".concat(v.codeName)),(y=ibiz.overlay.createModal("CustomDataImport",{templateUrl:h,importUrl:m,dismiss:function(e){y.dismiss(e)}},{width:"auto",placement:"center"})).present(),e.next=23,y.onWillDismiss();case23:returne.abrupt("return",{refresh:!0});case24:returne.abrupt("return",i);case25:case"end":returne.stop()}}),e,this)}))),function(e,r,n,a){returnt.apply(this,arguments)})}]),n}(T),K=function(){functione(){c(this,e),y(this,"handler",void0)}vart;returnl(e,[{key:"getHandler",value:(t=s(o().mark((functione(){returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newH),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),e}(),W=function(){functione(){c(this,e),y(this,"gridEditor","YearMonthPicker"),y(this,"formEditor","YearMonthPicker")}vart;returnl(e,[{key:"createController",value:(t=s(o().mark((functione(t,r){varn;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnn=newL(t,r),e.next=3,n.init();case3:returne.abrupt("return",n);case4:case"end":returne.stop()}}),e)}))),function(e,r){returnt.apply(this,arguments)})}]),e}(),X=function(){functione(){c(this,e),y(this,"formEditor","DownLoadSafeFile"),y(this,"gridEditor","DownLoadSafeFile")}vart;returnl(e,[{key:"createController",value:(t=s(o().mark((functione(t,r){varn;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnn=newN(t,r),e.next=3,n.init();case3:returne.abrupt("return",n);case4:case"end":returne.stop()}}),e)}))),function(e,r){returnt.apply(this,arguments)})}]),e}(),J=function(e){d(n,e);vart,r=f(n);functionn(){returnc(this,n),r.apply(this,arguments)}returnl(n,[{key:"execAction",value:(t=s(o().mark((functione(t,r,n,a,i){vars,c,l,d,p,f,h,m,v,y,g,b,w,E,x,O,P,k,D,A,C,T,j,_,L;returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(s={},"OPENHTMLPAGE"===(c=t.frontProcessType)&&(l=R.fill(t.htmlPageUrl,r,null==n?void0:n[0]),window.open(l,"_blank")),"DATAIMP"!==c){e.next=27;break}if(!(d=t.getPSAppDataEntity())){e.next=27;break}if(!1!==d.isFill){e.next=9;break}returne.next=9,d.fill(!0);case9:returnp=newu(d),e.next=12,p.init();case12:returne.next=14,this.handleParams(t,r,n,a);case14:returnf=e.sent,h=f.resultContext,m=ibiz.resourcePathUtil.calcPaths(h,p.codeName),v=F(h,m),y="".concat(v,"/").concat(p.deNamePlural,"/importtemplate"),g="".concat(v,"/").concat(p.deNamePlural,"/importdata2"),(b=t.getPSAppDEDataImport())&&(y+="?srfimporttag=".concat(b.codeName),g+="?srfimporttag=".concat(b.codeName)),(w=ibiz.overlay.createModal("DataImport",{templateUrl:y,importUrl:g,dismiss:function(e){w.dismiss(e)}},{width:"auto",placement:"center"})).present(),e.next=26,w.onWillDismiss();case26:returne.abrupt("return",{refresh:!0});case27:if(!["TOP","WIZARD"].includes(c)){e.next=45;break}if(E=t.getFrontPSAppView()){e.next=31;break}thrownewError("未配置打开视图");case31:returne.next=33,E.fill(!0);case33:returne.next=35,this.handleParams(t,r,n,a);case35:returnx=e.sent,O=x.resultContext,P=x.resultParams,e.next=40,ibiz.commands.execute(S.TAG,E,O,P,i);case40:!1===(null==(k=e.sent)?void0:k.ok)&&(s.closeView=!1,s.refresh=!1,s.cancel=!0),null!=k&&k.ok&&k.data&&(s.data=k.data),e.next=55;break;case45:if(!i){e.next=55;break}if(D=i.neuron,A=D.call.getFormController(),C=A.call.getFormController(),T=C.details,j=T.druipart1,_=T.druipart2,L=T.druipart3,[{message:"服务履历为空",neuron:j},{message:"教育经验为空",neuron:_},{message:"项目经验为空",neuron:L}].some((function(e){vart=e.neuron.neuron.call.getGridController();if(t){varr=t.call.getGridController();if(r&&r.items&&r.items.length>0)return!1}returnibiz.message.error("".concat(e.message),1.5,!0),!0}))){e.next=55;break}returne.next=55,D.call.wfStart();case55:returne.abrupt("return",s);case56:case"end":returne.stop()}}),e,this)}))),function(e,r,n,a,o){returnt.apply(this,arguments)})}]),n}(j),$=function(){functione(){c(this,e),y(this,"handler",void0)}vart;returnl(e,[{key:"getHandler",value:(t=s(o().mark((functione(){returno().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newJ),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),e}();e("default",{mateUrl:n.meta.url,install:function(e){G.loadStyle(["/style.css"]),e.component("IBizFormDataComparison",U),e.component("CustomDataImport",z),e.component("YearMonthPicker",B),e.component("DownLoadSafeFile",V),ibiz.register.control.register("EDITFORM_RENDER_FORM_DATA_COMPARISON",newq),ibiz.register.uiAction.register("DEUIACTION_CUSTOM_IMPORT",newK),ibiz.register.editor.register("DATEPICKEREX_NOTIME_YEAR_MONTH_PICKER",newW),ibiz.register.editor.register("FILEUPLOADER_ONE_DOWNLOAD_FILE",newX),ibiz.register.uiAction.register("DEUIACTION_JUDEG_ENABLE_UPDATE",new$)}})}}}))}();