!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){return t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var o=n(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},t.apply(this,arguments)}function n(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:F(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function l(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n0?this.selectedItems.map((function(t){return S("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):S("span",{class:this.ns.e("text")},[n])])}}),te=function(e){p(r,e);var t,n=m(r);function r(){var e;u(this,r);for(var t=arguments.length,o=new Array(t),i=0;i0&&t.map((function(t){var n="驳回"==t.sequenceFlowName||"取消"==t.sequenceFlowName;return S("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),n?e.ns.em("item","reject"):""]},[S("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(n){return e.handleClick(t,n)}}},[t.sequenceFlowName||""])])}))])}}),oe="function"==typeof btoa,ie="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder;var ae,se="function"==typeof TextEncoder?new TextEncoder:void 0,le=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");ae={},le.forEach((function(e,t){return ae[e]=t}));var ce=String.fromCharCode.bind(String);"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);var ue=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},de=oe?function(e){return btoa(e)}:ie?function(e){return Buffer.from(e,"binary").toString("base64")}:function(e){for(var t,n,r,o,i="",a=e.length%3,s=0;s255||(r=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=le[(t=n<<16|r<<8|o)>>18&63]+le[t>>12&63]+le[t>>6&63]+le[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},fe=ie?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n>>6)+ce(128|63&t):ce(224|t>>>12&15)+ce(128|t>>>6&63)+ce(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return ce(240|t>>>18&7)+ce(128|t>>>12&63)+ce(128|t>>>6&63)+ce(128|63&t)},he=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,me=ie?function(e){return Buffer.from(e,"utf8").toString("base64")}:se?function(e){return fe(se.encode(e))}:function(e){return de(e.replace(he,pe))},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?ue(me(e)):me(e)};var ye=x({name:"SyFileUpload",props:j(),emits:I(),setup:function(e,t){var n=t.emit,r=L("sy-file-upload"),o=e.controller,a=function(e,t,n){var r,o=C([]),a=C({Authorization:"Bearer ".concat(H("access_token"))}),s=C(""),l=C(""),c={count:0,cacheFiles:[]},u=null===(r=n.editorParams)||void 0===r?void 0:r.blackList,d=[];u&&"string"==typeof u&&(d=u.split(",")),U((function(){return e.value}),(function(e){o.value=e?JSON.parse(e):[]}),{immediate:!0}),U((function(){return e.data}),(function(e){if(e){var t=n.calcBaseUrl(e);s.value=t.uploadUrl,l.value=t.downloadUrl}}),{immediate:!0,deep:!0}),U(o,(function(e){null!=e&&e.length&&l.value&&e.forEach((function(e){e.url=e.url||l.value.replace("%fileId%",e.id)}))}),{immediate:!0}),U(l,(function(e){e&&o.value.length&&o.value.forEach((function(e){e.url=l.value.replace("%fileId%",e.id)}))}),{immediate:!0});var f=function(){var e=[].concat(i(o.value),i(c.cacheFiles)),n=e.length>0?JSON.stringify(e.map((function(e){return{name:e.name,id:e.id}}))):null;c.cacheFiles=[],t(n)},p=C(!1),h=C(""),m=C("");return{uploadUrl:s,downloadUrl:l,headers:a,files:o,onDownload:function(e){var t=e.url||l.value.replace("%fileId%",e.id);n.fileDownload({url:t,name:e.name})},onError:function(e,t){throw c.count-=1,new W({response:{data:t,status:e.status}})},onRemove:function(t){if(!e.disabled){var n=o.value.findIndex((function(e){return e.id===t.id}));-1!==n&&o.value.splice(n,1),f()}},onSuccess:function(e){e&&(c.cacheFiles.push({name:e.filename,id:e.fileid}),c.count-=1,0===c.count&&f())},beforeUpload:function(e){var t=e.name.trim().toLowerCase();if(d.some((function(e){return t.endsWith(".".concat(e))})))return ibiz.message.error("不可上传 ".concat(d.join("、"),"类型的文件!")),!1;c.count+=1},showModal:p,modalTitle:h,iframeUrl:m,onModalCancel:function(){p.value=!1,h.value="",m.value=""},previewFile:function(e){p.value=!0,h.value=e.name;var t=window.Environment.previewFileUrl;if(t){var n=encodeURIComponent(ve("".concat(window.location.origin).concat(e.url,"?fullfilename=").concat(e.name)));m.value="".concat(t,"/onlinePreview?url=").concat(n)}}}}(e,(function(e){n("change",e)}),o);return{ns:r,c:o,uploadUrl:a.uploadUrl,headers:a.headers,files:a.files,onDownload:a.onDownload,onError:a.onError,onRemove:a.onRemove,onSuccess:a.onSuccess,beforeUpload:a.beforeUpload,showModal:a.showModal,modalTitle:a.modalTitle,iframeUrl:a.iframeUrl,onModalCancel:a.onModalCancel,previewFile:a.previewFile}},render:function(e){var t=this;return e("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[e("IUpload",{ref:"fileUpload",props:{action:this.uploadUrl,headers:this.headers,disabled:this.disabled,"default-file-list":this.files,multiple:this.c.model.multiple,type:this.c.model.isDrag?"drag":"select",accept:this.c.model.accept,"before-upload":this.beforeUpload,"on-success":this.onSuccess,"on-error":this.onError,"on-remove":this.onRemove,"on-preview":this.onDownload,"show-upload-list":!1}},[this.c.model.isDrag?e("div",{class:this.ns.bm("box","drag")},[e("i-icon",{attrs:{type:"md-cloud-upload"}}),e("div",{class:this.ns.be("box","title")},[e("span",["将文件拖到此处,或"]),e("span",["点击上传"])])]):e("i-button",{attrs:{icon:"ios-cloud-upload-outline"},class:this.ns.bm("box","select")},["上传文件"])]),e("div",{class:this.ns.b("file-list")},[this.files.map((function(n){return e("div",{class:t.ns.b("file-item"),key:n.id},[e("div",{class:t.ns.b("file-item-right")},[e("div",{class:t.ns.b("file-item-right-title"),on:{click:function(){return t.previewFile(n)}}},[n.name]),e("div",{class:t.ns.b("file-item-right-action")},[e("i-icon",{attrs:{type:"md-download"},on:{click:function(){return t.onDownload(n)}}}),e("i-icon",{attrs:{type:"md-eye"},on:{click:function(){return t.previewFile(n)}}}),t.disabled||t.readonly?null:e("i-icon",{attrs:{type:"md-close"},on:{click:function(){return t.onRemove(n)}}})])])])}))]),e("i-modal",{attrs:{value:this.showModal,title:this.modalTitle,"class-name":this.ns.b("modal"),width:"70%",transfer:!1,"footer-hide":!0},on:{"on-cancel":this.onModalCancel}},[e("iframe",{class:this.ns.b("iframe"),attrs:{src:this.iframeUrl}})])])}});function be(e,t){if(e.url=t.replace("%fileId%",e.id),e.status||(e.status="finished"),!e.fileName){var n=e.name.lastIndexOf(".");e.fileName=e.name.substring(0,n),e.fileExt=e.name.substring(n),e.isImage=q(e.name)}return e}function ge(e){var t=C(""),n=C(""),r=C([]);return U(e.data,(function(r){if(r){var o=e.controller.value.calcBaseUrl(r);t.value=o.uploadUrl,n.value=o.downloadUrl}}),{immediate:!0,deep:!0}),U(e.value,(function(e){r.value=e?JSON.parse(e):[],r.value.length&&n.value&&r.value.forEach((function(e){be(e,n.value)}))}),{immediate:!0}),U(n,(function(e){e&&r.value.length&&r.value.forEach((function(t){be(t,e)}))}),{immediate:!0}),{downloadUrl:n,uploadUrl:t,valueList:r}}function we(e){var t,n,r=C("undo"),o=C([]),i=e.downloadUrl,a=e.value,s=e.uploadUrl,l=e.controller,c=null==l||null===(t=l.value)||void 0===t||null===(n=t.editorParams)||void 0===n?void 0:n.blackList,u=[];c&&"string"==typeof c&&(u=c.split(",")),U(a,(function(e){e.length>0&&(o.value=[],e.forEach((function(e){o.value.push(be(e,i.value))})))}),{immediate:!0,deep:!0});var d=function(e,t){var n=[];return t.forEach((function(e,t){var r=e.name.trim().toLowerCase();u.some((function(e){return r.endsWith(".".concat(e))}))?n.push(t):o.value.push({name:e.name,status:e.status,percentage:e.percentage,id:e.uid,url:""})})),n.length===t.length?(ibiz.message.error("不可上传 ".concat(u.join("、"),"类型的文件!")),!1):(n.length&&(n.forEach((function(n){e.splice(n,1),t.splice(n,1)})),ibiz.message.error("不可上传 ".concat(u.join("、"),"类型的文件!"))),!0)},f=function(e){e.forEach((function(e){o.value.find((function(t){return t.id===e.uid&&(t.percentage=e.percentage,!0)}))}))},p=function(e,t){e.forEach((function(e){o.value.find((function(n){return n.id===e.uid&&(n.status=e.status,n.id=t.data.fileid,n.name=t.data.filename,be(n,i.value),!0)}))}))},h=function(e,t){var n;e.forEach((function(e){o.value.find((function(t){return t.id===e.uid&&(t.status=e.status,!0)}))}));var r=new W(t);ibiz.notification.error({title:null===(n=r.status)||void 0===n?void 0:n.toString(),desc:r.message,duration:10})},m=function(e){o.value=o.value.filter((function(e){return"finished"===e.status})),r.value="done"},v=C(!1),y=C(""),b=C("");return{selectFile:function(){$({multiple:e.multiple,accept:e.accept,uploadUrl:s.value,beforeUpload:d,progress:f,success:p,error:h,finish:m})},fileList:o,uploadState:r,showModal:v,modalTitle:y,iframeUrl:b,onModalCancel:function(){v.value=!1,y.value="",b.value=""},previewFile:function(e){v.value=!0,y.value=e.name;var t=window.Environment.previewFileUrl;if(t){var n=encodeURIComponent(ve("".concat(window.location.origin).concat(e.url,"?fullfilename=").concat(e.name)));b.value="".concat(t,"/onlinePreview?url=").concat(n)}}}}var ke=x({name:"SyGridFileUpload",props:N(),setup:function(e){var t=L("sy-grid-file-upload"),n=F(e),r=ge({value:n.value,data:n.data,controller:n.controller}),o=we({downloadUrl:r.downloadUrl,uploadUrl:r.uploadUrl,value:r.valueList});return{ns:t,fileList:o.fileList,showModal:o.showModal,modalTitle:o.modalTitle,iframeUrl:o.iframeUrl,downloadFile:function(t){e.controller.fileDownload(t)},previewFile:o.previewFile,onModalCancel:o.onModalCancel}},render:function(){var e=this;return S("grid-editor",{attrs:{disabled:this.disabled,readonly:this.readonly},class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[S("div",{class:this.ns.b("file-list")},[this.fileList.map((function(t){return S("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title"),on:{click:function(){return e.previewFile(t)}}},[t.name]),S("div",{class:e.ns.b("file-item-action")},[S("i-icon",{attrs:{type:"md-download"},on:{click:function(){return e.downloadFile(t)}}}),S("i-icon",{attrs:{type:"md-eye"},on:{click:function(){return e.previewFile(t)}}})])])}))]),S("i-modal",{attrs:{value:this.showModal,title:this.modalTitle,"class-name":this.ns.b("modal"),width:"70%",transfer:!1,"footer-hide":!0},on:{"on-cancel":this.onModalCancel}},[S("iframe",{class:this.ns.b("iframe"),attrs:{src:this.iframeUrl}})])])}}),xe=x({name:"SyGridFileUploadContainer",props:N(),emits:D(),render:function(e){var t=this;return this.disabled||this.readonly?e("SyGridFileUpload",{props:o({},this.$props)}):e("SyEditGridFileUpload",{props:o({},this.$props),on:{change:function(e,n){t.$emit("change",e,n)},rowSave:function(){t.$emit("rowSave")}}})}}),Ee=x({name:"SyEditGridFileUploadPopover",props:{uploadUrl:{type:String,required:!0},downloadUrl:{type:String,required:!0},value:{type:Array,required:!0},controller:{type:w,required:!0}},emits:{close:function(e){return!0}},setup:function(e,t){var n=t.emit,r=L("sy-edit-grid-file-upload-popover"),o=F(e),i=we({downloadUrl:o.downloadUrl,value:o.value,uploadUrl:o.uploadUrl,controller:o.controller}),a=i.fileList,l=i.uploadState,u=i.selectFile,d=C(),f=C(!1),p=A(d,function(){var e=c(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n("close",{isModified:f.value,resultFiles:a.value});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());U(l,(function(e){"done"===e?(f.value=!0,p.proceed()):"loading"===e&&p.pause()}));return{ns:r,componentRef:d,fileList:a,deleteFile:function(e){var t=a.value.findIndex((function(t){return t.id===e.id}));a.value.splice(t,1),f.value=!0},selectFile:u,downloadFile:function(t){e.controller.fileDownload(t)}}},render:function(){var e=this;return S("div",{ref:"componentRef",style:"width:300px",class:this.ns.b()},[S("div",{class:this.ns.b("file-list")},[this.fileList.map((function(t){return S("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title"),on:{click:function(){return e.downloadFile(t)}}},[t.name]),S("div",{class:e.ns.b("file-item-action")},[S("i-icon",{attrs:{type:"md-close"},on:{click:function(){return e.deleteFile(t)}}})])])}))]),S("div",{on:{click:function(){return e.selectFile()}},class:this.ns.e("button")},[S("i-icon",{attrs:{type:"md-add"}}),"添加文件"])])}}),Se=x({name:"SyEditGridFileUpload",props:N(),emits:D(),setup:function(e,t){var n=t.emit,r=L("sy-edit-grid-file-upload"),o=F(e),i=o.value,a=o.data,l=o.controller,u=ge({value:i,data:a,controller:l}),d=u.downloadUrl,f=u.uploadUrl,p=u.valueList,h=C(),m=function(){var e=c(s().mark((function e(){var t,r,o,i,a,c,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.value){e.next=2;break}throw new X("容器元素不存在");case 2:return t=h.value.$el,r=t.offsetHeight,o=ibiz.overlay.createPopover((function(e){return e(Ee,{props:{value:p.value,uploadUrl:f.value,downloadUrl:d.value,controller:l.value},on:{close:function(e){o.dismiss(e)}}})}),void 0,{noArrow:!0,placement:"bottom-start",offsetOpts:{mainAxis:-r,crossAxis:0}}),e.next=7,o.present(t);case 7:return e.next=9,o.onWillDismiss();case 9:i=e.sent,a=i.isModified,c=i.resultFiles,a&&(u=c.length>0?JSON.stringify(c.map((function(e){return{name:e.name,id:e.id}}))):null,n("change",u),n("rowSave"));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return R(h,"click",(function(t){e.disabled||m()})),{ns:r,valueList:p,componentRef:h}},render:function(){var e=this;return S("grid-editor",{attrs:{disabled:this.disabled,readonly:this.readonly},ref:"componentRef",class:this.ns.b()},[S("div",{class:this.ns.b("file-list")},[this.valueList.map((function(t){return S("div",{class:e.ns.b("file-item"),key:t.id},[S("div",{class:e.ns.b("file-item-title")},[t.name])])}))])])}});x({name:"SyInput",props:_(),emits:I(),setup:function(e,t){var n=t.emit,r=L("input"),o=e.controller.model,i=C(),a=C(2);"TEXTAREA_10"===o.editorType&&(a.value=10);var s=E((function(){switch(o.editorType){case"TEXTBOX":return"text";case"PASSWORD":return"password";case"TEXTAREA":case"TEXTAREA_10":return"textarea";default:return"string"}})),l=C("");U((function(){return e.value}),(function(e,t){e!==t&&(l.value=e||"")}),{immediate:!0});var c,u,d=!1,f=Q((function(e){u!==e.target.value&&n("change",e.target.value),u=void 0,d=!1,c&&c()}),300,{leading:!0});return e.autoFocus&&U(i,(function(e){e&&e.$el.getElementsByTagName("input")[0].focus()})),{ns:r,rows:a,type:s,currentVal:l,handleChange:function(e){d=!0,f(e)},handleKeyUp:function(e){e&&"Enter"===e.code&&d&&(c=function(){i.value.$el.dispatchEvent(e)})},handleBlur:function(){u=i.value.currentValue,n("change",u)},inputRef:i}},render:function(){return S("div",{class:[this.ns.b(),this.ns.b("sy-input"),this.ns.is("textarea",Object.is(this.type,"textarea")),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly?this.currentVal:S("i-input",{ref:"inputRef",attrs:{value:this.currentVal,placeholder:this.controller.placeHolder,type:this.type,rows:this.rows,disabled:this.disabled,autosize:Object.is(this.type,"textarea")},on:{"on-change":this.handleChange,"on-blur":this.handleBlur},nativeOn:{keyup:this.handleKeyUp},class:this.ns.b("input")},[this.controller.model.unitName&&S("i",{class:this.ns.e("unit"),slot:"suffix"},[this.controller.model.unitName])])])}}),x({name:"SyGridInput",props:M(),emits:D(),setup:function(e,t){var n=t.emit,r=L("grid-input"),o=z(e,{emit:n});return{ns:r,isInfoMode:o.isInfoMode,autoFocus:o.autoFocus,componentRef:o.componentRef,onOperateChange:o.onOperateChange,onChange:o.onChange}},render:function(e){return e("grid-editor",{attrs:{disabled:this.disabled,readonly:this.readonly},ref:"componentRef",class:"".concat(this.ns.b())},[e("SyInput",{props:o(o({},this.$props),{},{readonly:this.isInfoMode,disabled:this.disabled,autoFocus:this.autoFocus}),on:{change:this.onChange,operate:this.onOperateChange}})])}});function Oe(e,t){return S("div",{class:e.e("logo")},[t.appIconPath?S("img",{class:e.e("logo-img"),attrs:{src:t.appIconPath}}):null,S("div",{class:e.e("logo-caption")},[t.caption])])}var Ce=x({name:"UserAppLayout",props:{model:{type:r,required:!0},isComplete:{type:Boolean,default:!1},isShowTabPageExp:{type:Boolean,default:!1}},setup:function(e,t){var n=t.emit,r=L("layout"),o=C(!1),i=E((function(){return!0===e.model.source.blankMode})),a=E((function(){return!(!window.Environment.manualdownloadurl&&!ibiz.env.manualdownloadurl)}));return{ns:r,collapseChange:o,isBlank:i,collapseMenus:function(){o.value=!o.value,n("onCollapseChange",o.value)},isShowDownload:a,downloadUserBook:function(){var e=window.Environment.manualdownloadurl||ibiz.env.manualdownloadurl;e?window.open(e):console.log("环境变量里没有manualdownloadurl")}}},render:function(){var e=this;return this.isComplete?S("i-layout",{class:[this.ns.b(),this.isBlank?this.ns.m("blank"):"",this.ns.is("collapse",this.collapseChange),this.ns.is("tab",this.isShowTabPageExp),"user-layout"]},[S("i-sider",{attrs:{"hide-trigger":!0,value:this.collapseChange},class:[this.ns.b("nav"),this.ns.is("collapse",this.collapseChange)]},[Oe(this.ns,this.model),this.$slots.menu]),S("i-layout",{class:[this.ns.b("content")]},[S("i-header",{class:this.ns.b("header")},[S("div",{class:this.ns.be("header","left")},[Oe(this.ns,this.model),S("div",{class:this.ns.be("header","collapse-icon")},[this.collapseChange?S("ion-icon",{attrs:{src:"./assets/img/menu-unfold.svg"},on:{click:function(){return e.collapseMenus()}}}):S("ion-icon",{attrs:{src:"./assets/img/menu-fold.svg"},on:{click:function(){return e.collapseMenus()}}})]),"TOP"===this.model.source.mainMenuAlign?S("i-menu",{class:this.ns.be("header","menu"),attrs:{mode:"horizontal","active-name":"1"}}):null]),S("div",{class:this.ns.be("header","right")},[this.isShowDownload&&S("div",{class:"user-download",on:{click:function(){return e.downloadUserBook()}}},["用户手册下载"]),S("app-user")])]),S("i-content",{class:this.ns.be("content","main")},[this.$slots.tabPageExp,this.$slots.default])])]):null}}),Ue=f((function e(){u(this,e),g(this,"component",ne)})),Fe=function(){function e(){u(this,e),g(this,"component",ee)}var t;return f(e,[{key:"createController",value:(t=c(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new d(t,n),e.next=3,r.init();case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),Le=f((function e(){u(this,e),g(this,"component","IndexView")})),Pe=x({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){var t=O().proxy,n=B(t,e.modelPath);T(t,"deName",n.setDeName.bind(n));var r=L("wf-step-trace-grid"),o=C([]),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.identitylinks.length>0||e.comments.length>0&&e.comments.forEach((function(r){n&&"启动流程"===r.type||t.push({id:J(),nodeName:e.userTaskName,personName:r.authorName,time:r.time,content:r.type,comment:r.fullMessage})}))};n.nerve.self.evt.on("mounted",(function(){var e;n.data&&(null===(e=n.data.usertasks)||void 0===e||e.forEach((function(e){if(e.usertasks&&e.usertasks.length>0){var t=[];e.usertasks.forEach((function(e){i(e,t,!0)})),o.value.push({id:J(),nodeName:"".concat(e.userTaskName),personName:"",time:"",content:"",comment:"",children:t,_showChildren:!0})}else i(e,o.value)})),o.value.sort((function(e,t){return Date.parse(e.time)-Date.parse(t.time)})),console.log(1,o.value),console.log(2,n.data))}));var a=C([{title:"处理环节",key:"nodeName",width:180,resizable:!0,tree:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:n,ns:r,gridData:o,columns:a}},render:function(){return S("div",{class:this.ns.b()},[S("div",{class:this.ns.e("title")},["审批信息"]),S("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData,"row-key":"id"},class:this.ns.e("grid")})])}}),Te=function(e){p(i,e);var n,r,o=m(i);function i(){return u(this,i),o.apply(this,arguments)}return f(i,[{key:"calcWfToolbar",value:(r=c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(b(i.prototype),"calcWfToolbar",this).call(this);case 2:this.isEditable&&this.wfLinks.unshift({sequenceFlowName:"保存",type:"FORM_SAVE"});case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onLinkClick",value:(n=c(s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("FORM_SAVE"!==n.type){e.next=5;break}return e.next=3,this.save();case 3:e.next=6;break;case 5:t(b(i.prototype),"onLinkClick",this).call(this,n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]),i}(k);x({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=O().proxy,n=P(t,(function(t,n){return new Te(e.modelPath,t,n)})),r=L("view-".concat(a.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=C(["mainForm"]);return{c:n,ns:r,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){var t=this,n=[];if(this.c.complete){var r=this.c.activeForm;r&&this.c.providers[r.name]&&n.push(e(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){var o=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];n.push(e(Pe,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}return e("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){return t.c.complete?[t.c.wfLinks.length>0&&e("wf-toolbar",{attrs:{wfLinks:t.c.wfLinks},on:{"wf-link-click":function(e){t.c.onLinkClick(e)}}})]:null}}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[n]),this.c.model.drTab.pages.map((function(n){var r=t.c.drPages[n.source.name];return e("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:n.source.caption,name:n.source.name}},[!t.c.isNewData&&t.lazyList.includes(n.source.name)&&e("ViewShell",{attrs:{context:r.context,params:r.params,modal:{mode:Y.EMBED},modelPath:n.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(n.source.name)},key:r.key})])}))])])}}),x({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=O().proxy,n=V(t,e.modelPath),r=L("view-deeditview3"),o=C(["mainForm"]);return{c:n,ns:r,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){var t=this;return e("view-base",{attrs:{controller:this.c}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[e("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),e(Pe,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}})]),this.c.model.drTab.pages.map((function(n){var r=t.c.drPages[n.source.name];if(r)return e("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:n.source.caption,name:n.source.name}},[!t.c.isNewData&&t.lazyList.includes(n.source.name)&&e("ViewShell",{attrs:{context:r.context,params:r.params,modal:{mode:Y.EMBED},modelPath:n.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(n.source.name)},key:r.key})])}))])])}});var je=function(){function e(){u(this,e),g(this,"formEditor","SyFileUpload"),g(this,"gridEditor","SyGridFileUploadContainer")}var t;return f(e,[{key:"createController",value:(t=c(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new w(t,n),e.next=3,r.init();case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),Ie=function(e){p(r,e);var t,n=m(r);function r(){return u(this,r),n.apply(this,arguments)}return f(r,[{key:"execAction",value:(t=c(s().mark((function e(t,n,r,o,i){var a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&r.length>0)){e.next=6;break}return e.next=3,ibiz.entityService.getService("XQFBXQPS",n);case 3:a=e.sent,l=a.local.getList(n),r.forEach((function(e){var t=l.find((function(t){return t.srfkey===e.srfkey}));t&&(t.psjg="10",e.psjg="10")}));case 6:return e.abrupt("return",{refresh:!1,closeView:!1});case 7:case"end":return e.stop()}}),e)}))),function(e,n,r,o,i){return t.apply(this,arguments)})}]),r}(K),Ne=function(){function e(){u(this,e),g(this,"handler",void 0)}var t;return f(e,[{key:"getHandler",value:(t=c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.handler||(this.handler=new Ie),e.abrupt("return",this.handler);case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),De=function(e){p(r,e);var t,n=m(r);function r(){return u(this,r),n.apply(this,arguments)}return f(r,[{key:"execAction",value:(t=c(s().mark((function e(t,n,r,o,i){var a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&r.length>0)){e.next=6;break}return e.next=3,ibiz.entityService.getService("XQFBXQPS",n);case 3:a=e.sent,l=a.local.getList(n),r.forEach((function(e){var t=l.find((function(t){return t.srfkey===e.srfkey}));t&&(t.psjg="20",e.psjg="20")}));case 6:return e.abrupt("return",{refresh:!1,closeView:!1});case 7:case"end":return e.stop()}}),e)}))),function(e,n,r,o,i){return t.apply(this,arguments)})}]),r}(K),Ae=function(){function e(){u(this,e),g(this,"handler",void 0)}var t;return f(e,[{key:"getHandler",value:(t=c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.handler||(this.handler=new De),e.abrupt("return",this.handler);case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),Re=new Z(n.meta.url);e("default",{mateUrl:n.meta.url,install:function(e){l.getModelService().then((function(e){var t;"true"===(null===(t=e.app.userParams)||void 0===t?void 0:t.autoWidth)&&document.getElementsByClassName("app")[0].classList.add("auto-width")})),Re.loadStyle(["/style.css"]),ibiz.config.enableDataInfoBar=!1,ibiz.config.gridEditShowMode="all",e.component("WfToolbar",re),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",new Le),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new Ue),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",new Fe),e.component("SyFileUpload",ye),e.component("SyGridFileUpload",ke),e.component("SyEditGridFileUpload",Se),e.component("SyGridFileUploadContainer",xe),ibiz.register.editor.register("EDITOR_CUSTOMSTYLE_SyFileUpload",new je),e.component("AppLayout",Ce),ibiz.register.uiAction.register("DEUIACTION_BatchApprovalOrdersId",new Ne),ibiz.register.uiAction.register("DEUIACTION_BatchNoApprovalOrdersId",new Ae)}})}}}))}();