!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(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,u(n.key),n)}}functionr(e,r,n){returnr&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiono(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varr=null==e?null:"undefined"!=typeofSymbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){varn,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}elsefor(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throwo}}returnc}}(e,t)||s(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functioni(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}functiona(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionc(e,t,r){return(t=u(t))ine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionu(t){varr=function(t,r){if("object"!==e(t)||null===t)returnt;varn=t[Symbol.toPrimitive];if(void0!==n){varo=n.call(t,r||"default");if("object"!==e(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}functionl(e){returnfunction(e){if(Array.isArray(e))returnf(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||s(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functions(e,t){if(e){if("string"==typeofe)returnf(e,t);varr=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void0}}functionf(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functionh(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){returnt};vart={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeofSymbol?Symbol:{},a=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(R){l=function(e,t,r){returne[t]=r}}functions(e,t,r,n){vari=t&&t.prototypeinstanceofp?t:p,a=Object.create(i.prototype),c=newx(n||[]);returno(a,"_invoke",{value:C(e,r,c)}),a}functionf(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(R){return{type:"throw",arg:R}}}t.wrap=s;vard={};functionp(){}functionv(){}functiong(){}vary={};l(y,a,(function(){returnthis}));varm=Object.getPrototypeOf,b=m&&m(m(E([])));b&&b!==r&&n.call(b,a)&&(y=b);varw=g.prototype=p.prototype=Object.create(y);functionS(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionP(t,r){functioni(o,a,c,u){varl=f(t[o],t,a);if("throw"!==l.type){vars=l.arg,h=s.value;returnh&&"object"==e(h)&&n.call(h,"__await")?r.resolve(h.__await).then((function(e){i("next",e,c,u)}),(function(e){i("throw",e,c,u)})):r.resolve(h).then((function(e){s.value=e,c(s)}),(function(e){returni("throw",e,c,u)}))}u(l.arg)}vara;o(this,"_invoke",{value:function(e,t){functionn(){returnnewr((function(r,n){i(e,t,r,n)}))}returna=a?a.then(n,n):n()}})}functionC(e,t,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnL()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=O(a,r);if(c){if(c===d)continue;returnc}}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";varu=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}functionO(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,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+r+"' method")),d;varo=f(n,e.iterator,t.arg);if("throw"===o.type)returnt.method="throw",t.arg=o.arg,t.delegate=null,d;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,d):i:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,d)}functionk(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionj(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionx(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}functionE(e){if(e){vart=e[a];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varr=-1,o=functiont(){for(;++r<e.length;)if(n.call(e,r))returnt.value=e[r],t.done=!1,t;returnt.value=void0,t.done=!0,t};returno.next=o}}return{next:L}}functionL(){return{value:void0,done:!0}}returnv.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(P.prototype),l(P.prototype,c,(function(){returnthis})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void0===i&&(i=Promise);vara=newP(s(e,r,n,o),i);returnt.isGeneratorFunction(r)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},S(w),l(w,u,"Generator"),l(w,a,(function(){returnthis})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,x.prototype={constructor:x,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(j),!e)for(vartinthis)"t"===t.charAt(0)&&n.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;functionr(r,n){returna.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(varo=this.tryEntries.length-1;o>=0;--o){vari=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!u)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(e,t){for(varr=this.tryEntries.length-1;r>=0;--r){varo=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,d):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),d},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),j(r),d}},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){varo=n.arg;j(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),d}},t}functiond(e,t,r,n,o,i,a){try{varc=e[i](a),u=c.value}catch(l){returnvoidr(l)}c.done?t(u):Promise.resolve(u).then(n,o)}functionp(e){returnfunction(){vart=this,r=arguments;returnnewPromise((function(n,o){vari=e.apply(t,r);functiona(e){d(i,n,o,a,c,"next",e)}functionc(e){d(i,n,o,a,c,"throw",e)}a(void0)}))}}System.register(["@ibiz-template/model","vue","@ibiz-template/vue-util","@ibiz-template/runtime"],(function(e,t){"use strict";vari,u,s,f,d,v,g,y,m,b,w,S;return{setters:[function(e){i=e.GridModel,u=e.ModelUtil},function(e){s=e.defineComponent,f=e.h,d=e.ref,v=e.computed,g=e.getCurrentInstance,y=e.watch,m=e.onUnmounted},function(e){b=e.useNamespace,w=e.useGridController},function(e){S=e.PluginStaticResource}],execute:function(){varP=s({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,t){varr=t.emit,n=b("wf-toolbar"),o=function(){vare=p(h().mark((functione(t,n){returnh().wrap((function(e){for(;;)switch(e.prev=e.next){case0:r("wf-link-click",t,n);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}(),i=function(){vare=p(h().mark((functione(t,r){returnh().wrap((function(e){for(;;)switch(e.prev=e.next){case0:setTimeout((function(){o(t,r)}),30);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}();return{ns:n,handleClick:i}},render:function(){vare=this,t=this.wfLinks||[];returnf("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varr=t.sequenceFlowName.startsWith("驳回")||t.sequenceFlowName.startsWith("取消");returnf("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[f("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){returne.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}});functionC(e,t){varr,n,o=[];"GROUPGRIDCOLUMN"===e.source.columnType&&e.children.forEach((function(e){o.push(C(e,t))}));vari={title:e.title,width:"STAR"===e.source.widthUnit?void0:e.width,minWidth:e.width,align:(null===(r=e.source.align)||void0===r?void0:r.toLowerCase())||"center",slot:e.codeName,key:e.codeName,fieldName:e.deFieldName,ellipsis:!0,tooltip:!1,resizable:!0,sortable:!(t.noSort||!e.source.enableSort)&&"custom",columnType:e.source.columnType,userParams:e.source.userParams,className:null===(n=e.source.getCellPSSysCss())||void0===n?void0:n.cssName};returno.length>0&&Object.assign(i,{children:o}),i}functionO(e){vart=e.model,r=[],n=t.columns.map((function(t){returnC(t,e)}));returnt.children.forEach((function(e){vart=n.find((function(t){returnt.key===e.codeName}));t&&r.push(t)})),e.singleSelect||r.splice(0,0,{type:"selection",width:60}),r}vark=s({props:{modelData:i,context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},gridRowActiveMode:{type:Number,default:2},modal:{type:Object}},setup:function(e){vart=g().proxy,r=b("grid"),n=w(t,e.modelData,e.context,e.params),i=function(e){vart=d([]);returne.nerve.self.evt.on("created",(function(){t.value=O(e)})),[v((function(){vare=l(t.value);if(!e.find((function(e){return!e.width}))){varr=e.length-1;"rowEdit"===e[r].key&&(r-=1),e[r]=a(a({},e[r]),{},{width:void0})}varn=e.find((function(e){return"UAGRIDCOLUMN"===e.columnType}));if(n){varo=n.userParams;o&&"true"===o.fixed&&(n.fixed="right")}returne})),t]}(n),c=o(i,1)[0],u=function(e){vart=function(t){returne.items.find((function(e){returne.srfkey===t.srfkey}))};return{onRowClick:function(r){varn=t(r);if(e.singleSelect){varo=e.selectedData.find((function(e){returne.srfkey===r.srfkey}));e.onSelectionChange(o?[]:[n])}e.onRowClick(n)},onDbRowClick:function(r){e.onDbRowClick(t(r))},onSelectionChange:function(r){if(!e.singleSelect){varn=[];r.forEach((function(e){varr=t(e);r&&n.push(r)})),e.onSelectionChange(n)}},onSortChange:function(t){varr=t.column,n=t.order,o="asc"===n||"desc"===n?n:void0;e.setSort(r.fieldName,o),e.load()}}}(n),s=u.onRowClick,h=u.onDbRowClick,p=u.onSelectionChange,S=u.onSortChange,P=function(e){return{onPageChange:function(t){t&&t!==e.curPage&&(e.curPage=t,e.load())},onPageSizeChange:function(t){t&&t!==e.size&&(e.size=t,1===e.curPage&&e.load())},onPageReset:function(){e.curPage=1,e.load()}}}(n),C=P.onPageChange,k=P.onPageReset,j=P.onPageSizeChange,x=v((function(){vart,r,n=null===(t=e.modelData)||void0===t||null===(r=t.source.getPSControlParam())||void0===r?void0:r.ctrlParams;return"false"!==(null==n?void0:n.HIGHLIGHT)})),E=null,L=d(0),R=d(null),N=d(null),T=null,D=0,I=function(){vart;if(R.value&&"EMBED"!==(null===(t=e.modal)||void0===t?void0:t.mode))if(n.model.source.enablePagingBar&&N.value){varr=N.value.$el,o=r.offsetHeight+parseFloat(window.getComputedStyle(r).paddingTop);L.value=R.value.offsetHeight-o}elseL.value=R.value.offsetHeight;n.model.source.height>0&&(L.value=n.model.source.height)};y(R,(function(e,t){e&&e!==t&&(I(),window.ResizeObserver&&R.value&&(T=newResizeObserver((function(e){vart=e[0].contentRect.height;t!==D&&(I(),D=t)}))).observe(R.value))})),m((function(){T&&T.disconnect()}));varz=v((function(){return[{hiddenRow:!0}].concat(l(n.items))})),G=b("grid-field-column"),A=b("collaborative-satisfaction-grid"),_=d([]),U=v((function(){vare=l(c.value);returne.splice.apply(e,[1,0].concat(l(_.value))),e})),F=d([]);returny((function(){returnn.items}),(function(){_.value=[],F.value=[],Array.isArray(n.items)&&(_.value=n.items.map((function(e){vart=e.bpjbm,r=e.type;return{title:t,width:120,minWidth:120,align:"right",key:r,ellipsis:!0,tooltip:!1,resizable:!0,render:function(e,t){varn=t.index,o=F.value[n-1];returnf("div",{class:[G.b()],style:G.cssVarBlock({"justify-content":"flex-end"})},[f("span",{class:G.e("text")},[(null==o?void0:o[r])||""])])}}})),F.value=n.items.map((function(e){try{vart=JSON.parse(e.pjdbs||"[]");if(Array.isArray(t)&&t.length){varr={};returnt.forEach((function(e){r[e.type]=e.value||""})),r}}catch(n){ibiz.log.error("".concat(e.pjdbs," 解析错误"))}return{}})))})),{c:n,ns:r,columns:c,tableData:z,onDbRowClick:h,onUIRowClick:function(e,r){null!=E&&window.clearTimeout(E),E=window.setTimeout((function(){varo=t.$refs.grid;o&&(n.selectedData.find((function(t){returnt.srfkey===e.srfkey}))&&o.clearCurrentRow(),o.toggleSelect&&o.toggleSelect(r));s(e)}),300)},onUIDbRowClick:function(e){null!=E&&window.clearTimeout(E);varr=t.$refs.grid;r&&(n.selectedData.find((function(t){returnt.srfkey===e.srfkey}))||r.clearCurrentRow());h(e)},onSelectionChange:p,onSortChange:S,onPageChange:C,onPageSizeChange:j,onPageReset:k,tableHeight:L,gridRef:R,girdPaginationRef:N,highlight:x,ns2:G,ns3:A,tableColumns:U}},render:function(){vare=this;if(this.c.complete){vart={};returnthis.c.model.columns.forEach((function(r){if("GROUPGRIDCOLUMN"!==r.source.columnType){varn=r.codeName;t[n]=function(t){varr=t.row,o=t.index,i=e.c.rows[o-1];returnr.hiddenRow?f("span",{style:"word-break: break-word;white-space: pre-wrap;"},["隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列"]):i?f(e.c.providers[n].component,{props:{controller:e.c.columns[n],row:i},key:r.srfkey+n}):void0}}})),f("control-layout",{attrs:{modelData:this.c.model}},[f("div",{ref:"gridRef",class:[this.ns.b(),this.ns.is("show-header",!this.c.model.source.hideHeader),this.ns.is("enable-page",this.c.model.source.enablePagingBar),this.ns3.b()]},[f("i-table",{ref:"grid",attrs:{height:this.tableHeight,"show-header":!this.c.model.source.hideHeader,"highlight-row":this.c.singleSelect&&this.highlight,data:this.tableData,columns:this.tableColumns,"row-class-name":function(e){returne.hiddenRow?"hidden-row":""}},class:this.ns.b("content"),on:{"on-row-click":this.onUIRowClick,"on-row-dblclick":this.onUIDbRowClick,"on-selection-change":this.onSelectionChange,"on-sort-change":this.onSortChange},scopedSlots:t}),this.c.model.source.enablePagingBar&&f("app-grid-pagination",{ref:"girdPaginationRef",attrs:{total:this.c.total,curPage:this.c.curPage,size:this.c.size},on:{change:this.onPageChange,"page-size-change":this.onPageSizeChange,"page-reset":this.onPageReset}})])])}}}),j=r((functione(){n(this,e),c(this,"component","IndexView")})),x=newS(t.meta.url),E=r((functione(){n(this,e),c(this,"component","CollaborativeSatisfactionGrid")}));e("default",{mateUrl:t.meta.url,install:function(e){u.getModelService().then((function(e){"true"===e.app.userParams.autoWidth&&document.getElementsByClassName("app")[0].classList.add("auto-width")})),x.loadStyle(["/style.css"]),e.component("WfToolbar",P),ibiz.config.enableDataInfoBar=!1,ibiz.config.gridEditShowMode="all",ibiz.register.view.register("VIEW_CUSTOM_GsIndexCSS",newj),e.component("CollaborativeSatisfactionGrid",k),ibiz.register.control.register("CUSTOM_CollaborativeSatisfactionGrid",newE)}})}}}))}();
!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(e,r){returnt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},t(e,r)}functionr(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,i=o(e);if(t){vara=o(this).constructor;r=Reflect.construct(i,arguments,a)}elser=i.apply(this,arguments);returnn(this,r)}}functionn(t,r){if(r&&("object"===e(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnfunction(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}(t)}functiono(e){returno=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},o(e)}functioni(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,h(n.key),n)}}functiona(e,t,r){returnt&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}functionc(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionu(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varr=null==e?null:"undefined"!=typeofSymbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){varn,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}elsefor(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throwo}}returnc}}(e,t)||p(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionl(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}functions(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionf(e,t,r){return(t=h(t))ine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionh(t){varr=function(t,r){if("object"!==e(t)||null===t)returnt;varn=t[Symbol.toPrimitive];if(void0!==n){varo=n.call(t,r||"default");if("object"!==e(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}functiond(e){returnfunction(e){if(Array.isArray(e))returnv(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||p(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionp(e,t){if(e){if("string"==typeofe)returnv(e,t);varr=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void0}}functionv(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functiony(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){returnt};vart={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeofSymbol?Symbol:{},a=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(L){l=function(e,t,r){returne[t]=r}}functions(e,t,r,n){vari=t&&t.prototypeinstanceofd?t:d,a=Object.create(i.prototype),c=newx(n||[]);returno(a,"_invoke",{value:P(e,r,c)}),a}functionf(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=s;varh={};functiond(){}functionp(){}functionv(){}varm={};l(m,a,(function(){returnthis}));varg=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==r&&n.call(b,a)&&(m=b);varw=v.prototype=d.prototype=Object.create(m);functionS(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionO(t,r){functioni(o,a,c,u){varl=f(t[o],t,a);if("throw"!==l.type){vars=l.arg,h=s.value;returnh&&"object"==e(h)&&n.call(h,"__await")?r.resolve(h.__await).then((function(e){i("next",e,c,u)}),(function(e){i("throw",e,c,u)})):r.resolve(h).then((function(e){s.value=e,c(s)}),(function(e){returni("throw",e,c,u)}))}u(l.arg)}vara;o(this,"_invoke",{value:function(e,t){functionn(){returnnewr((function(r,n){i(e,t,r,n)}))}returna=a?a.then(n,n):n()}})}functionP(e,t,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnR()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=C(a,r);if(c){if(c===h)continue;returnc}}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";varu=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}functionC(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,C(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+r+"' method")),h;varo=f(n,e.iterator,t.arg);if("throw"===o.type)returnt.method="throw",t.arg=o.arg,t.delegate=null,h;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,h):i:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,h)}functionk(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionj(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionx(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}functionE(e){if(e){vart=e[a];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varr=-1,o=functiont(){for(;++r<e.length;)if(n.call(e,r))returnt.value=e[r],t.done=!1,t;returnt.value=void0,t.done=!0,t};returno.next=o}}return{next:R}}functionR(){return{value:void0,done:!0}}returnp.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(O.prototype),l(O.prototype,c,(function(){returnthis})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void0===i&&(i=Promise);vara=newO(s(e,r,n,o),i);returnt.isGeneratorFunction(r)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},S(w),l(w,u,"Generator"),l(w,a,(function(){returnthis})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=E,x.prototype={constructor:x,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(j),!e)for(vartinthis)"t"===t.charAt(0)&&n.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;functionr(r,n){returna.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(varo=this.tryEntries.length-1;o>=0;--o){vari=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!u)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(e,t){for(varr=this.tryEntries.length-1;r>=0;--r){varo=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,h):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),h},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),j(r),h}},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){varo=n.arg;j(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),h}},t}functionm(e,t,r,n,o,i,a){try{varc=e[i](a),u=c.value}catch(l){returnvoidr(l)}c.done?t(u):Promise.resolve(u).then(n,o)}functiong(e){returnfunction(){vart=this,r=arguments;returnnewPromise((function(n,o){vari=e.apply(t,r);functiona(e){m(i,n,o,a,c,"next",e)}functionc(e){m(i,n,o,a,c,"throw",e)}a(void0)}))}}System.register(["@ibiz-template/model","vue","@ibiz-template/vue-util","@ibiz-template/runtime","@ibiz-template/core"],(function(e,n){"use strict";varo,i,l,h,p,v,m,b,w,S,O,P,C,k,j;return{setters:[function(e){o=e.GridModel,i=e.ModelUtil},function(e){l=e.defineComponent,h=e.h,p=e.ref,v=e.computed,m=e.getCurrentInstance,b=e.watch,w=e.onUnmounted},function(e){S=e.useNamespace,O=e.useGridController},function(e){P=e.PluginStaticResource,C=e.UIActionHandler},function(e){k=e.RuntimeError,j=e.downloadFileFromBlob}],execute:function(){varx=l({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,t){varr=t.emit,n=S("wf-toolbar"),o=function(){vare=g(y().mark((functione(t,n){returny().wrap((function(e){for(;;)switch(e.prev=e.next){case0:r("wf-link-click",t,n);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}(),i=function(){vare=g(y().mark((functione(t,r){returny().wrap((function(e){for(;;)switch(e.prev=e.next){case0:setTimeout((function(){o(t,r)}),30);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}();return{ns:n,handleClick:i}},render:function(){vare=this,t=this.wfLinks||[];returnh("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varr=t.sequenceFlowName.startsWith("驳回")||t.sequenceFlowName.startsWith("取消");returnh("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[h("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){returne.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}});functionE(e,t){varr,n,o=[];"GROUPGRIDCOLUMN"===e.source.columnType&&e.children.forEach((function(e){o.push(E(e,t))}));vari={title:e.title,width:"STAR"===e.source.widthUnit?void0:e.width,minWidth:e.width,align:(null===(r=e.source.align)||void0===r?void0:r.toLowerCase())||"center",slot:e.codeName,key:e.codeName,fieldName:e.deFieldName,ellipsis:!0,tooltip:!1,resizable:!0,sortable:!(t.noSort||!e.source.enableSort)&&"custom",columnType:e.source.columnType,userParams:e.source.userParams,className:null===(n=e.source.getCellPSSysCss())||void0===n?void0:n.cssName};returno.length>0&&Object.assign(i,{children:o}),i}functionR(e){vart=e.model,r=[],n=t.columns.map((function(t){returnE(t,e)}));returnt.children.forEach((function(e){vart=n.find((function(t){returnt.key===e.codeName}));t&&r.push(t)})),e.singleSelect||r.splice(0,0,{type:"selection",width:60}),r}varL=l({props:{modelData:o,context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},gridRowActiveMode:{type:Number,default:2},modal:{type:Object}},setup:function(e){vart=m().proxy,r=S("grid"),n=O(t,e.modelData,e.context,e.params),o=function(e){vart=p([]);returne.nerve.self.evt.on("created",(function(){t.value=R(e)})),[v((function(){vare=d(t.value);if(!e.find((function(e){return!e.width}))){varr=e.length-1;"rowEdit"===e[r].key&&(r-=1),e[r]=s(s({},e[r]),{},{width:void0})}varn=e.find((function(e){return"UAGRIDCOLUMN"===e.columnType}));if(n){varo=n.userParams;o&&"true"===o.fixed&&(n.fixed="right")}returne})),t]}(n),i=u(o,1)[0],a=function(e){vart=function(t){returne.items.find((function(e){returne.srfkey===t.srfkey}))};return{onRowClick:function(r){varn=t(r);if(e.singleSelect){varo=e.selectedData.find((function(e){returne.srfkey===r.srfkey}));e.onSelectionChange(o?[]:[n])}e.onRowClick(n)},onDbRowClick:function(r){e.onDbRowClick(t(r))},onSelectionChange:function(r){if(!e.singleSelect){varn=[];r.forEach((function(e){varr=t(e);r&&n.push(r)})),e.onSelectionChange(n)}},onSortChange:function(t){varr=t.column,n=t.order,o="asc"===n||"desc"===n?n:void0;e.setSort(r.fieldName,o),e.load()}}}(n),c=a.onRowClick,l=a.onDbRowClick,f=a.onSelectionChange,y=a.onSortChange,g=function(e){return{onPageChange:function(t){t&&t!==e.curPage&&(e.curPage=t,e.load())},onPageSizeChange:function(t){t&&t!==e.size&&(e.size=t,1===e.curPage&&e.load())},onPageReset:function(){e.curPage=1,e.load()}}}(n),P=g.onPageChange,C=g.onPageReset,k=g.onPageSizeChange,j=v((function(){vart,r,n=null===(t=e.modelData)||void0===t||null===(r=t.source.getPSControlParam())||void0===r?void0:r.ctrlParams;return"false"!==(null==n?void0:n.HIGHLIGHT)})),x=null,E=p(0),L=p(null),N=p(null),T=null,z=0,I=function(){vart;if(L.value&&"EMBED"!==(null===(t=e.modal)||void0===t?void0:t.mode))if(n.model.source.enablePagingBar&&N.value){varr=N.value.$el,o=r.offsetHeight+parseFloat(window.getComputedStyle(r).paddingTop);E.value=L.value.offsetHeight-o}elseE.value=L.value.offsetHeight;n.model.source.height>0&&(E.value=n.model.source.height)};b(L,(function(e,t){e&&e!==t&&(I(),window.ResizeObserver&&L.value&&(T=newResizeObserver((function(e){vart=e[0].contentRect.height;t!==z&&(I(),z=t)}))).observe(L.value))})),w((function(){T&&T.disconnect()}));var_=v((function(){return[{hiddenRow:!0}].concat(d(n.items))})),D=S("grid-field-column"),A=S("collaborative-satisfaction-grid"),U=p([]),G=v((function(){vare=d(i.value);returne.splice.apply(e,[1,0].concat(d(U.value))),e})),F=p([]);returnb((function(){returnn.items}),(function(){U.value=[],F.value=[],Array.isArray(n.items)&&(U.value=n.items.map((function(e){vart=e.bpjbm,r=e.type;return{title:t,width:120,minWidth:120,align:"right",key:r,ellipsis:!0,tooltip:!1,resizable:!0,render:function(e,t){varn=t.index,o=F.value[n-1];returnh("div",{class:[D.b()],style:D.cssVarBlock({"justify-content":"flex-end"})},[h("span",{class:D.e("text")},[(null==o?void0:o[r])||""])])}}})),F.value=n.items.map((function(e){try{vart=JSON.parse(e.pjdbs||"[]");if(Array.isArray(t)&&t.length){varr={};returnt.forEach((function(e){r[e.type]=e.value||""})),r}}catch(n){ibiz.log.error("".concat(e.pjdbs," 解析错误"))}return{}})))})),{c:n,ns:r,columns:i,tableData:_,onDbRowClick:l,onUIRowClick:function(e,r){null!=x&&window.clearTimeout(x),x=window.setTimeout((function(){varo=t.$refs.grid;o&&(n.selectedData.find((function(t){returnt.srfkey===e.srfkey}))&&o.clearCurrentRow(),o.toggleSelect&&o.toggleSelect(r));c(e)}),300)},onUIDbRowClick:function(e){null!=x&&window.clearTimeout(x);varr=t.$refs.grid;r&&(n.selectedData.find((function(t){returnt.srfkey===e.srfkey}))||r.clearCurrentRow());l(e)},onSelectionChange:f,onSortChange:y,onPageChange:P,onPageSizeChange:k,onPageReset:C,tableHeight:E,gridRef:L,girdPaginationRef:N,highlight:j,ns2:D,ns3:A,tableColumns:G}},render:function(){vare=this;if(this.c.complete){vart={};returnthis.c.model.columns.forEach((function(r){if("GROUPGRIDCOLUMN"!==r.source.columnType){varn=r.codeName;t[n]=function(t){varr=t.row,o=t.index,i=e.c.rows[o-1];returnr.hiddenRow?h("span",{style:"word-break: break-word;white-space: pre-wrap;"},["隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列"]):i?h(e.c.providers[n].component,{props:{controller:e.c.columns[n],row:i},key:r.srfkey+n}):void0}}})),h("control-layout",{attrs:{modelData:this.c.model}},[h("div",{ref:"gridRef",class:[this.ns.b(),this.ns.is("show-header",!this.c.model.source.hideHeader),this.ns.is("enable-page",this.c.model.source.enablePagingBar),this.ns3.b()]},[h("i-table",{ref:"grid",attrs:{height:this.tableHeight,"show-header":!this.c.model.source.hideHeader,"highlight-row":this.c.singleSelect&&this.highlight,data:this.tableData,columns:this.tableColumns,"row-class-name":function(e){returne.hiddenRow?"hidden-row":""}},class:this.ns.b("content"),on:{"on-row-click":this.onUIRowClick,"on-row-dblclick":this.onUIDbRowClick,"on-selection-change":this.onSelectionChange,"on-sort-change":this.onSortChange},scopedSlots:t}),this.c.model.source.enablePagingBar&&h("app-grid-pagination",{ref:"girdPaginationRef",attrs:{total:this.c.total,curPage:this.c.curPage,size:this.c.size},on:{change:this.onPageChange,"page-size-change":this.onPageSizeChange,"page-reset":this.onPageReset}})])])}}}),N=a((functione(){c(this,e),f(this,"component","IndexView")})),T=newP(n.meta.url),z=function(e){!function(e,r){if("function"!=typeofr&&null!==r)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&t(e,r)}(i,e);varn,o=r(i);functioni(){returnc(this,i),o.apply(this,arguments)}returna(i,[{key:"execAction",value:(n=g(y().mark((functione(t,r,n,o,i){returny().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnibiz.net.request("/ibzsy/xtmydcphzdc",{method:"post",data:o,responseType:"blob",baseURL:ibiz.env.baseUrl}).then((function(e){if(200!==e.status)thrownewk("下载文件失败");if(!e.data)thrownewk("文件流数据不存在");vart=e.headers.filename,r=decodeURIComponent(t);j(e.data,r)})),e.abrupt("return",{refresh:!1});case3:case"end":returne.stop()}}),e)}))),function(e,t,r,o,i){returnn.apply(this,arguments)})}]),i}(C),I=function(){functione(){c(this,e),f(this,"handler",void0)}vart;returna(e,[{key:"getHandler",value:(t=g(y().mark((functione(){returny().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newz),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),e}(),_=a((functione(){c(this,e),f(this,"component","CollaborativeSatisfactionGrid")}));e("default",{mateUrl:n.meta.url,install:function(e){i.getModelService().then((function(e){"true"===e.app.userParams.autoWidth&&document.getElementsByClassName("app")[0].classList.add("auto-width")})),T.loadStyle(["/style.css"]),e.component("WfToolbar",x),ibiz.config.enableDataInfoBar=!1,ibiz.config.gridEditShowMode="all",ibiz.register.view.register("VIEW_CUSTOM_GsIndexCSS",newN),e.component("CollaborativeSatisfactionGrid",L),ibiz.register.control.register("CUSTOM_CollaborativeSatisfactionGrid",new_),ibiz.register.uiAction.register("DEUIACTION_CollaborativeSatisfactionPort",newI)}})}}}))}();