@nikoyo-spa/app-viewer 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +39 -0
- package/dist/assets/CollapseItemsForm-VDLL2LQ1.js +1 -0
- package/dist/assets/CollapseItemsForm-VDLL2LQ1.js.br +0 -0
- package/dist/assets/CollapseItemsForm-VDLL2LQ1.js.gz +0 -0
- package/dist/assets/CustomUploadDialog-Cfo4u27r.js +1 -0
- package/dist/assets/CustomUploadDialog-Cfo4u27r.js.br +0 -0
- package/dist/assets/CustomUploadDialog-Cfo4u27r.js.gz +0 -0
- package/dist/assets/CustomUploadDialog.vue_vue_type_script_setup_true_lang-t5kHD9r0.js +1 -0
- package/dist/assets/CustomUploadDialog.vue_vue_type_script_setup_true_lang-t5kHD9r0.js.br +0 -0
- package/dist/assets/CustomUploadDialog.vue_vue_type_script_setup_true_lang-t5kHD9r0.js.gz +0 -0
- package/dist/assets/DynamicElFormItem.vue_vue_type_style_index_0_lang-vV5itYwG.js +393 -0
- package/dist/assets/DynamicElFormItem.vue_vue_type_style_index_0_lang-vV5itYwG.js.br +0 -0
- package/dist/assets/DynamicElFormItem.vue_vue_type_style_index_0_lang-vV5itYwG.js.gz +0 -0
- package/dist/assets/EasyTable.vue_vue_type_script_setup_true_lang-CoFB-oEN.js +1 -0
- package/dist/assets/EasyTable.vue_vue_type_script_setup_true_lang-CoFB-oEN.js.br +0 -0
- package/dist/assets/EasyTable.vue_vue_type_script_setup_true_lang-CoFB-oEN.js.gz +0 -0
- package/dist/assets/FileAnnotationList-8RdcCzb4.js +1 -0
- package/dist/assets/FileAnnotationList-8RdcCzb4.js.br +0 -0
- package/dist/assets/FileAnnotationList-8RdcCzb4.js.gz +0 -0
- package/dist/assets/FileAnnotationList-CROVQGmR.js +1 -0
- package/dist/assets/FileAnnotationList-CROVQGmR.js.br +0 -0
- package/dist/assets/FileAnnotationList-CROVQGmR.js.gz +0 -0
- package/dist/assets/FilePropertyList-D6-YR4tw.js +1 -0
- package/dist/assets/FilePropertyList-D6-YR4tw.js.br +0 -0
- package/dist/assets/FilePropertyList-D6-YR4tw.js.gz +0 -0
- package/dist/assets/FilePropertyList-DLEnqnJj.js +1 -0
- package/dist/assets/FilePropertyList-DLEnqnJj.js.br +0 -0
- package/dist/assets/FilePropertyList-DLEnqnJj.js.gz +0 -0
- package/dist/assets/History-CHzsdkoU.js +1 -0
- package/dist/assets/History-CHzsdkoU.js.br +2 -0
- package/dist/assets/History-CHzsdkoU.js.gz +0 -0
- package/dist/assets/History-Dir0mXUC.js +1 -0
- package/dist/assets/History-Dir0mXUC.js.br +2 -0
- package/dist/assets/History-Dir0mXUC.js.gz +0 -0
- package/dist/assets/HistoryItem-BqbjIW7u.js +1 -0
- package/dist/assets/HistoryItem-BqbjIW7u.js.br +0 -0
- package/dist/assets/HistoryItem-BqbjIW7u.js.gz +0 -0
- package/dist/assets/HistoryItem-BtBpM0gu.js +1 -0
- package/dist/assets/HistoryItem-BtBpM0gu.js.br +0 -0
- package/dist/assets/HistoryItem-BtBpM0gu.js.gz +0 -0
- package/dist/assets/HistoryItem.vue_vue_type_script_setup_true_lang-vpdsaEuH.js +1 -0
- package/dist/assets/HistoryItem.vue_vue_type_script_setup_true_lang-vpdsaEuH.js.br +0 -0
- package/dist/assets/HistoryItem.vue_vue_type_script_setup_true_lang-vpdsaEuH.js.gz +0 -0
- package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/dist/assets/action-DIX3nF4W.js +1 -0
- package/dist/assets/action-DIX3nF4W.js.br +0 -0
- package/dist/assets/action-DIX3nF4W.js.gz +0 -0
- package/dist/assets/common-BKVAcTOe.js +1 -0
- package/dist/assets/common-BKVAcTOe.js.br +0 -0
- package/dist/assets/common-BKVAcTOe.js.gz +0 -0
- package/dist/assets/common-Cpd53P9r.js +1 -0
- package/dist/assets/common-Cpd53P9r.js.br +0 -0
- package/dist/assets/common-Cpd53P9r.js.gz +0 -0
- package/dist/assets/common-DBxmkCLD.js +1 -0
- package/dist/assets/common-DBxmkCLD.js.br +0 -0
- package/dist/assets/common-DBxmkCLD.js.gz +0 -0
- package/dist/assets/documents-ClTOfMnZ.js +1 -0
- package/dist/assets/documents-ClTOfMnZ.js.br +0 -0
- package/dist/assets/documents-ClTOfMnZ.js.gz +0 -0
- package/dist/assets/download-BZ4lW7oQ.js +1 -0
- package/dist/assets/download-BZ4lW7oQ.js.br +0 -0
- package/dist/assets/download-BZ4lW7oQ.js.gz +0 -0
- package/dist/assets/edit-C1MwNQ0C.js +1 -0
- package/dist/assets/edit-C1MwNQ0C.js.br +0 -0
- package/dist/assets/edit-C1MwNQ0C.js.gz +0 -0
- package/dist/assets/en-C3QaaSJq.js +3 -0
- package/dist/assets/en-C3QaaSJq.js.br +0 -0
- package/dist/assets/en-C3QaaSJq.js.gz +0 -0
- package/dist/assets/feedback-CC33ITwT.js +1 -0
- package/dist/assets/feedback-CC33ITwT.js.br +0 -0
- package/dist/assets/feedback-CC33ITwT.js.gz +0 -0
- package/dist/assets/file-bg-Ifs-Bj6E.png +0 -0
- package/dist/assets/fileViewer-Bd6Qt7PP.js +1 -0
- package/dist/assets/fileViewer-Bd6Qt7PP.js.br +0 -0
- package/dist/assets/fileViewer-Bd6Qt7PP.js.gz +0 -0
- package/dist/assets/fileViewer-Cax4f8OZ.js +1 -0
- package/dist/assets/fileViewer-Cax4f8OZ.js.br +0 -0
- package/dist/assets/fileViewer-Cax4f8OZ.js.gz +0 -0
- package/dist/assets/finance-BuAH3cbB.js +1 -0
- package/dist/assets/finance-BuAH3cbB.js.br +0 -0
- package/dist/assets/finance-BuAH3cbB.js.gz +0 -0
- package/dist/assets/formart-B31BJFe6.js +1 -0
- package/dist/assets/formart-B31BJFe6.js.br +0 -0
- package/dist/assets/formart-B31BJFe6.js.gz +0 -0
- package/dist/assets/index-2OTSceCO.js +1 -0
- package/dist/assets/index-2OTSceCO.js.br +0 -0
- package/dist/assets/index-2OTSceCO.js.gz +0 -0
- package/dist/assets/index-BKC7qnTH.js +1 -0
- package/dist/assets/index-BKC7qnTH.js.br +0 -0
- package/dist/assets/index-BKC7qnTH.js.gz +0 -0
- package/dist/assets/index-Bt4Nu_p2.js +1 -0
- package/dist/assets/index-Bt4Nu_p2.js.br +0 -0
- package/dist/assets/index-Bt4Nu_p2.js.gz +0 -0
- package/dist/assets/index-CIr1r4rH.js +1 -0
- package/dist/assets/index-CIr1r4rH.js.br +0 -0
- package/dist/assets/index-CIr1r4rH.js.gz +0 -0
- package/dist/assets/index-CQuIPoUT.js +1 -0
- package/dist/assets/index-CQuIPoUT.js.br +0 -0
- package/dist/assets/index-CQuIPoUT.js.gz +0 -0
- package/dist/assets/index-CkF9ripp.js +1 -0
- package/dist/assets/index-CkF9ripp.js.br +0 -0
- package/dist/assets/index-CkF9ripp.js.gz +0 -0
- package/dist/assets/index-ClQW2Brt.js +1 -0
- package/dist/assets/index-ClQW2Brt.js.br +0 -0
- package/dist/assets/index-ClQW2Brt.js.gz +0 -0
- package/dist/assets/index-DNfytKww.js +1 -0
- package/dist/assets/index-DNfytKww.js.br +0 -0
- package/dist/assets/index-DNfytKww.js.gz +0 -0
- package/dist/assets/index-DuQFwd_F.js +1 -0
- package/dist/assets/index-DuQFwd_F.js.br +0 -0
- package/dist/assets/index-DuQFwd_F.js.gz +0 -0
- package/dist/assets/index-b9D1QdGt.js +1 -0
- package/dist/assets/index-b9D1QdGt.js.br +0 -0
- package/dist/assets/index-b9D1QdGt.js.gz +0 -0
- package/dist/assets/index-pZeuezqz.js +1 -0
- package/dist/assets/index-pZeuezqz.js.br +0 -0
- package/dist/assets/index-pZeuezqz.js.gz +0 -0
- package/dist/assets/index-pkKt5JsM.js +1 -0
- package/dist/assets/index-pkKt5JsM.js.br +0 -0
- package/dist/assets/index-pkKt5JsM.js.gz +0 -0
- package/dist/assets/index.vue_vue_type_script_setup_true_lang-CtfyWtlI.js +1 -0
- package/dist/assets/index.vue_vue_type_script_setup_true_lang-CtfyWtlI.js.br +0 -0
- package/dist/assets/index.vue_vue_type_script_setup_true_lang-CtfyWtlI.js.gz +0 -0
- package/dist/assets/index.vue_vue_type_script_setup_true_lang-DQOtyPZG.js +1 -0
- package/dist/assets/index.vue_vue_type_script_setup_true_lang-DQOtyPZG.js.br +0 -0
- package/dist/assets/index.vue_vue_type_script_setup_true_lang-DQOtyPZG.js.gz +0 -0
- package/dist/assets/info-filled-aLiVUjkY.js +1 -0
- package/dist/assets/info-filled-aLiVUjkY.js.br +1 -0
- package/dist/assets/info-filled-aLiVUjkY.js.gz +0 -0
- package/dist/assets/main-DrqZSaj0.js +7 -0
- package/dist/assets/main-DrqZSaj0.js.br +0 -0
- package/dist/assets/main-DrqZSaj0.js.gz +0 -0
- package/dist/assets/parametersKey-DHZEv2wC.js +1 -0
- package/dist/assets/print-DZRc2VH8.js +48 -0
- package/dist/assets/print-DZRc2VH8.js.br +0 -0
- package/dist/assets/print-DZRc2VH8.js.gz +0 -0
- package/dist/assets/profile-CmvWOQ43.js +1 -0
- package/dist/assets/profile-CmvWOQ43.js.br +0 -0
- package/dist/assets/profile-DmVZXaLc.js +1 -0
- package/dist/assets/profile-DmVZXaLc.js.br +0 -0
- package/dist/assets/profile-DmVZXaLc.js.gz +0 -0
- package/dist/assets/route-block-B_A1xBdJ.js +1 -0
- package/dist/assets/search-CAeHBdaV.js +1 -0
- package/dist/assets/search-CAeHBdaV.js.br +0 -0
- package/dist/assets/search-CAeHBdaV.js.gz +0 -0
- package/dist/assets/select-C5rnQwT8.js +1 -0
- package/dist/assets/select-C5rnQwT8.js.br +0 -0
- package/dist/assets/select-C5rnQwT8.js.gz +0 -0
- package/dist/assets/streams-D4lxz1Q0.js +1 -0
- package/dist/assets/streams-D4lxz1Q0.js.br +0 -0
- package/dist/assets/streams-D4lxz1Q0.js.gz +0 -0
- package/dist/assets/thumbnail-BaTLvdSx.svg +1 -0
- package/dist/assets/thumbnail-BaTLvdSx.svg.br +0 -0
- package/dist/assets/thumbnail-BaTLvdSx.svg.gz +0 -0
- package/dist/assets/types-CQ4Q5CJj.js +1 -0
- package/dist/assets/types-CQ4Q5CJj.js.br +0 -0
- package/dist/assets/types-CQ4Q5CJj.js.gz +0 -0
- package/dist/assets/updateDocumentData-CeAbA-Qr.js +1 -0
- package/dist/assets/updateDocumentData-CeAbA-Qr.js.br +0 -0
- package/dist/assets/updateDocumentData-CeAbA-Qr.js.gz +0 -0
- package/dist/assets/uploadDialog.vue_vue_type_script_setup_true_lang-BnhkZqcI.js +1 -0
- package/dist/assets/uploadDialog.vue_vue_type_script_setup_true_lang-BnhkZqcI.js.br +0 -0
- package/dist/assets/uploadDialog.vue_vue_type_script_setup_true_lang-BnhkZqcI.js.gz +0 -0
- package/dist/assets/useWatermark-BzF0y1A9.js +1 -0
- package/dist/assets/useWatermark-BzF0y1A9.js.br +0 -0
- package/dist/assets/useWatermark-BzF0y1A9.js.gz +0 -0
- package/dist/assets/valid-263xpzJj.js +1 -0
- package/dist/assets/valid-263xpzJj.js.br +0 -0
- package/dist/assets/valid-263xpzJj.js.gz +0 -0
- package/dist/assets/view-CUJgawjS.js +1 -0
- package/dist/assets/view-CUJgawjS.js.br +0 -0
- package/dist/assets/view-CUJgawjS.js.gz +0 -0
- package/dist/assets/viewer-CWuXsy7c.js +1 -0
- package/dist/assets/viewer-CWuXsy7c.js.br +0 -0
- package/dist/assets/viewer-CWuXsy7c.js.gz +0 -0
- package/dist/assets/vpss(viewer)CollapseItemsForm-Bj5o_fxJ.css +1 -0
- package/dist/assets/vpss(viewer)CollapseItemsForm-Bj5o_fxJ.css.br +0 -0
- package/dist/assets/vpss(viewer)CollapseItemsForm-Bj5o_fxJ.css.gz +0 -0
- package/dist/assets/vpss(viewer)DynamicElFormItem-BB1YK7YA.css +1 -0
- package/dist/assets/vpss(viewer)DynamicElFormItem-BB1YK7YA.css.br +0 -0
- package/dist/assets/vpss(viewer)DynamicElFormItem-BB1YK7YA.css.gz +0 -0
- package/dist/assets/vpss(viewer)HistoryItem-CbZUnhpy.css +1 -0
- package/dist/assets/vpss(viewer)HistoryItem-CbZUnhpy.css.br +0 -0
- package/dist/assets/vpss(viewer)HistoryItem-CbZUnhpy.css.gz +0 -0
- package/dist/assets/vpss(viewer)index-3zm21Wbp.css +1 -0
- package/dist/assets/vpss(viewer)index-3zm21Wbp.css.br +0 -0
- package/dist/assets/vpss(viewer)index-3zm21Wbp.css.gz +0 -0
- package/dist/assets/vpss(viewer)index-B53EZGqt.css +1 -0
- package/dist/assets/vpss(viewer)index-B53EZGqt.css.br +0 -0
- package/dist/assets/vpss(viewer)index-B53EZGqt.css.gz +0 -0
- package/dist/assets/vpss(viewer)index-DDauo43a.css +1 -0
- package/dist/assets/vpss(viewer)index-DDauo43a.css.br +2 -0
- package/dist/assets/vpss(viewer)index-DDauo43a.css.gz +0 -0
- package/dist/assets/vpss(viewer)main-ZkKzwH4o.css +1 -0
- package/dist/assets/vpss(viewer)main-ZkKzwH4o.css.br +0 -0
- package/dist/assets/vpss(viewer)main-ZkKzwH4o.css.gz +0 -0
- package/dist/assets/vpss(viewer)print-Dp7LOFi_.css +1 -0
- package/dist/assets/vpss(viewer)print-Dp7LOFi_.css.br +0 -0
- package/dist/assets/vpss(viewer)print-Dp7LOFi_.css.gz +0 -0
- package/dist/assets/vpss(viewer)search-BkUU0prj.css +1 -0
- package/dist/assets/vpss(viewer)search-BkUU0prj.css.br +0 -0
- package/dist/assets/vpss(viewer)search-BkUU0prj.css.gz +0 -0
- package/dist/assets/watermark-DMx8Eoaf.js +1 -0
- package/dist/assets/watermark-DMx8Eoaf.js.br +0 -0
- package/dist/assets/watermark-DMx8Eoaf.js.gz +0 -0
- package/dist/assets/zh-CN-OBgXvqZI.js +1 -0
- package/dist/assets/zh-CN-OBgXvqZI.js.br +0 -0
- package/dist/assets/zh-CN-OBgXvqZI.js.gz +0 -0
- package/dist/assets/zh-TW-C1OQCHbk.js +4 -0
- package/dist/assets/zh-TW-C1OQCHbk.js.br +0 -0
- package/dist/assets/zh-TW-C1OQCHbk.js.gz +0 -0
- package/dist/main.js +1 -0
- package/dist/main.js.br +0 -0
- package/dist/main.js.gz +0 -0
- package/package.json +51 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as u,createElementBlock as d,openBlock as a,normalizeClass as n,unref as s,createCommentVNode as c,createElementVNode as $,renderSlot as r,createTextVNode as p,toDisplayString as y,normalizeStyle as w,useSlots as E,createBlock as b,withCtx as h,Fragment as k,renderList as T,mergeProps as _,createSlots as N}from"vue";import{e as P,f as B,_ as V,c2 as z,D,w as I}from"./main-DrqZSaj0.js";import{useI18n as j}from"vue-i18n";import{a as A,E as F}from"./index-BKC7qnTH.js";const G=P({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:B([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),L=u({name:"ElCard"}),O=u({...L,props:G,setup(m){const f=z("card"),o=D("card");return(e,l)=>{var i;return a(),d("div",{class:n([s(o).b(),s(o).is(`${e.shadow||((i=s(f))==null?void 0:i.shadow)||"always"}-shadow`)])},[e.$slots.header||e.header?(a(),d("div",{key:0,class:n([s(o).e("header"),e.headerClass])},[r(e.$slots,"header",{},()=>[p(y(e.header),1)])],2)):c("v-if",!0),$("div",{class:n([s(o).e("body"),e.bodyClass]),style:w(e.bodyStyle)},[r(e.$slots,"default")],6),e.$slots.footer||e.footer?(a(),d("div",{key:1,class:n([s(o).e("footer"),e.footerClass])},[r(e.$slots,"footer",{},()=>[p(y(e.footer),1)])],2)):c("v-if",!0)],2)}}});var q=V(O,[["__file","card.vue"]]);const Q=I(q),R=u({__name:"EasyTable",props:{items:{}},setup(m){const f=m,{t:o}=j(),e=E();return(l,i)=>{const C=F,v=A;return a(),b(v,null,{default:h(()=>[r(l.$slots,"before"),(a(!0),d(k,null,T(f.items,(S,t)=>(a(),b(C,_({key:t,prop:t,label:s(o)(`label.${t}`)},{ref_for:!0},S),N({_:2},[s(e)[t]?{name:"default",fn:h(g=>[r(l.$slots,t,_({ref_for:!0},g))]),key:"0"}:void 0]),1040,["prop","label"]))),128)),r(l.$slots,"after")]),_:3})}}});export{Q as E,R as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,createElementBlock as t,openBlock as n}from"vue";const a=e({__name:"FileAnnotationList",setup(o){return(r,c)=>(n(),t("div"))}});export{a as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,createElementBlock as t,openBlock as n}from"vue";const a=e({__name:"FileAnnotationList",setup(o){return(r,c)=>(n(),t("div"))}});export{a as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,createElementBlock as t,openBlock as o}from"vue";const _=e({__name:"FilePropertyList",setup(r){return(n,c)=>(o(),t("div"))}});export{_ as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,createElementBlock as t,openBlock as o}from"vue";const _=e({__name:"FilePropertyList",setup(r){return(n,c)=>(o(),t("div"))}});export{_ as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as p,createBlock as o,openBlock as t,withCtx as u,renderSlot as i,createElementBlock as _,Fragment as f,renderList as b,mergeProps as d,unref as k}from"vue";import{useI18n as E}from"vue-i18n";import{a as B,E as C}from"./index-BKC7qnTH.js";import"./main-DrqZSaj0.js";import"dayjs";import"vue-router";import"single-spa-vue";const H=p({__name:"History",props:{items:{}},setup(r){const l=r,{t:n}=E();return(m,g)=>{const s=C,a=B;return t(),o(a,null,{default:u(()=>[i(m.$slots,"before"),(t(!0),_(f,null,b(l.items,(c,e)=>(t(),o(s,d({key:e,prop:e,label:k(n)(`label.${e}`)},{ref_for:!0},c),null,16,["prop","label"]))),128))]),_:3})}}});export{H as default};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as p,createBlock as o,openBlock as t,withCtx as u,renderSlot as i,createElementBlock as _,Fragment as f,renderList as b,mergeProps as d,unref as k}from"vue";import{useI18n as E}from"vue-i18n";import{a as B,E as C}from"./index-BKC7qnTH.js";import"./main-DrqZSaj0.js";import"dayjs";import"vue-router";import"single-spa-vue";const H=p({__name:"History",props:{items:{}},setup(r){const l=r,{t:n}=E();return(m,g)=>{const s=C,a=B;return t(),o(a,null,{default:u(()=>[i(m.$slots,"before"),(t(!0),_(f,null,b(l.items,(c,e)=>(t(),o(s,d({key:e,prop:e,label:k(n)(`label.${e}`)},{ref_for:!0},c),null,16,["prop","label"]))),128))]),_:3})}}});export{H as default};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as V,_ as F}from"./EasyTable.vue_vue_type_script_setup_true_lang-CoFB-oEN.js";import{t as O,v as S,A as z,x as H,y as L}from"./main-DrqZSaj0.js";import{I as R}from"./download-BZ4lW7oQ.js";import{_ as U}from"./view-CUJgawjS.js";import{defineComponent as W,inject as j,resolveDirective as M,createElementBlock as e,openBlock as t,createVNode as d,withCtx as l,createElementVNode as _,createCommentVNode as p,createBlock as u,Fragment as k,renderList as D,toDisplayString as f,unref as x,withDirectives as q,createTextVNode as G}from"vue";import{a as J}from"./streams-D4lxz1Q0.js";import{A as K}from"./action-DIX3nF4W.js";import{useI18n as Q}from"vue-i18n";import{f as X,F as Y}from"./formart-B31BJFe6.js";import{_ as Z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-BKC7qnTH.js";import"dayjs";import"vue-router";import"single-spa-vue";const tt={class:"size-full overflow-hidden"},et={class:"flex flex-col gap-2"},ot={key:0},at={class:"flex-shrink-0"},st={key:0,class:"md:grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 md:gap-1 lg:gap-2 xl:gap-3 flex-1"},nt={class:"flex items-center"},lt={class:"flex-1 truncate"},rt={class:"flex-shrink-0 flex"},it={key:1,class:"text-info text-xs"},ct={key:2,class:"text-info text-xs"},dt=W({__name:"HistoryItem",props:{data:{}},setup(b){const r=b,w=j("appProps"),{t:m}=Q();function h(s){const{docType:o,docId:n,streamId:a}=s;return{type:o,id:n,streamId:a}}function I(s){const{streamName:o}=s,{type:n,id:a,streamId:i}=h(s);return H({url:J({type:n,id:a,streamId:i,isDownload:!0}),fileName:o})}const C={time:{label:m("label.time"),formatter:X(Y.datetime),width:"160px"},message:{label:m("label.content")}};function $(s){const{type:o,id:n,streamId:a}=h(s),i=`${`${w?.basePath||""}/`}documents/${o}/${n}/${a}`;L(i)}return(s,o)=>{const n=U,a=S,i=O,E=R,N=z,y=V,A=F,B=M("tooltip");return t(),e("div",tt,[d(y,{class:"size-full",shadow:"never","body-style":"padding:10px 10px 20px 10px;"},{default:l(()=>[_("div",et,[r.data.operationDetail.streams?(t(),e("div",ot,[(t(!0),e(k,null,D(r.data.operationDetail.streams,(g,v)=>(t(),e("div",{key:v,class:"flex overflow-hidden"},[_("div",at,f(x(m)(`button.${v}`))+": ",1),g?.length?(t(),e("div",st,[(t(!0),e(k,null,D(g,(c,T)=>(t(),u(y,{key:c.id+T},{default:l(()=>[_("div",nt,[q((t(),e("div",lt,[G(f(c.streamName||c.name),1)])),[[B]]),_("div",rt,[v!=="delete"?(t(),u(i,{key:0,text:"",onClick:P=>$(c)},{default:l(()=>[d(a,null,{default:l(()=>[d(n)]),_:1})]),_:1},8,["onClick"])):p("",!0),d(N,{permission:x(K).DOWNLOAD},{default:l(()=>["id"in c?(t(),u(i,{key:0,text:"",onClick:P=>I(c)},{default:l(()=>[d(a,null,{default:l(()=>[d(E)]),_:1})]),_:1},8,["onClick"])):p("",!0)]),_:2},1032,["permission"])])])]),_:2},1024))),128))])):(t(),e("div",it,f(x(m)("label.noData")),1)),o[0]||(o[0]=_("div",null,null,-1))]))),128))])):p("",!0),r.data.operationDetail.traces?(t(),u(A,{key:1,class:"mx-2",items:C,data:r.data.operationDetail.traces},null,8,["data"])):p("",!0),!r.data.operationDetail.streams&&!r.data.operationDetail.traces?(t(),e("div",ct,f(x(m)("label.noData")),1)):p("",!0)])]),_:1})])}}}),It=Z(dt,[["__scopeId","data-v-b60705f8"]]);export{It as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./HistoryItem.vue_vue_type_script_setup_true_lang-vpdsaEuH.js";import"./EasyTable.vue_vue_type_script_setup_true_lang-CoFB-oEN.js";import"vue";import"./main-DrqZSaj0.js";import"vue-i18n";import"dayjs";import"vue-router";import"single-spa-vue";import"./index-BKC7qnTH.js";import"./download-BZ4lW7oQ.js";import"./view-CUJgawjS.js";import"./select-C5rnQwT8.js";import"./streams-D4lxz1Q0.js";import"./action-DIX3nF4W.js";import"./viewer-CWuXsy7c.js";export{o as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as K,_ as M}from"./EasyTable.vue_vue_type_script_setup_true_lang-CoFB-oEN.js";import{t as U,v as q,A as H,q as G,a as h,y as J,x as Q}from"./main-DrqZSaj0.js";import{I as X}from"./download-BZ4lW7oQ.js";import{_ as Y}from"./view-CUJgawjS.js";import{c as Z,f as ee}from"./select-C5rnQwT8.js";import{defineComponent as te,inject as se,computed as k,unref as p,resolveDirective as ne,createElementBlock as x,openBlock as d,createVNode as c,withCtx as a,createElementVNode as y,createBlock as g,createCommentVNode as b,Fragment as oe,renderList as re,withDirectives as ae,createTextVNode as w,toDisplayString as S}from"vue";import{a as T}from"./streams-D4lxz1Q0.js";import{A as ie}from"./action-DIX3nF4W.js";import{useI18n as le}from"vue-i18n";import{u as N,f as de,h as ce}from"./viewer-CWuXsy7c.js";const I="/modules/viewer/assets/thumbnail-BaTLvdSx.svg",ue={class:"size-full overflow-hidden"},pe={class:"flex flex-col gap-2"},me={class:"md:grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 md:gap-1 lg:gap-2 xl:gap-3"},fe={class:"flex items-center"},_e={class:"flex-1 truncate"},ye={class:"flex-shrink-0 flex"},Ne=te({__name:"HistoryItem",props:{data:{}},setup(A){const u=A,{t:f}=le(),C=se("appProps"),B=Z("ocrStatus",5,0,!0),v=k(()=>{const e=u.data?.businessDetails?.streams;if(e){if("upload"in e)return"stream_upload";if("delete"in e)return"stream_delete"}const t=u.data?.extendedInfo;if(typeof t!="object")return"unknown";if("invoices"in t)return"ocr_ticket";if("files"in t){const n=t.files;if(Array.isArray(n))return"ocr_bill";if("upload"in n)return"upload";if("delete"in n)return"delete"}return"unknown"});function _(e){const{streamId:t,label:n}=e,s=de(n),o=ce(s);return{src:s==="image"?T({...e,streamId:t}):o,fileIcon:o}}const E={stream_upload:({businessDetails:{streams:{upload:e}},businessType:t,businessKey:n})=>{const s=N();return e.map(({streamId:o,id:r,streamName:m})=>{const i={type:s.type,id:s.id,streamId:r,label:m};return{...i,..._(i)}})},stream_delete:({businessDetails:e,businessType:t,businessKey:n})=>{const s=N();return e.streams.delete.map(({streamId:o,id:r,streamName:m})=>{const i={type:s.type,id:s.id,streamId:r,label:m};return{...i,..._(i)}})},upload:({extendedInfo:e,bisCategory:t,id:n})=>e.files.upload.map(({streamId:s,streamName:o})=>{const r={type:t,id:n,streamId:s,label:o};return{...r,..._(r)}}),delete:({extendedInfo:e,bisCategory:t,id:n})=>e.files.delete.map(({streamId:s,streamName:o})=>{const r={type:t,id:n,streamId:s,label:o};return{...r,..._(r)}}),ocr_ticket:({extendedInfo:e})=>e.invoices.map(t=>({type:t.type,id:t.id,label:t.name,fileIcon:I,src:I})),ocr_bill:({extendedInfo:e})=>e.files.map(t=>({type:t.type,id:t.id,label:t.name,fileIcon:I,src:I})),unknown:e=>[]},D=k(()=>{const e=E[p(v)],t=u.data;return e(t)});function F(e){const{type:t,id:n,streamId:s=""}=e;if(!s)return h.error(f("message.missing",["streamId"]));const o=`${`${C?.basePath||""}/`}documents/${t}/${n}/${s}`;J(o)}function $(e){return e.streamId?Q({url:T({...e,isDownload:!0}),fileName:e.label}):h.error(f("message.missing",["streamId"]))}const P={id:{},result:{label:f("label.ocrStatus")},message:{label:f("label.content")}},V=["info","primary","success","danger"];function O(e){return V[e]||"info"}return(e,t)=>{const n=Y,s=q,o=U,r=X,m=H,i=K,L=G,R=M,W=ne("tooltip");return d(),x("div",ue,[c(i,{class:"size-full",shadow:"never","body-style":"padding:10px 10px 20px 10px;"},{default:a(()=>[y("div",pe,[y("div",me,[(d(!0),x(oe,null,re(p(D),(l,j)=>(d(),g(i,{key:l.id+j},{default:a(()=>[y("div",fe,[ae((d(),x("div",_e,[w(S(l.label),1)])),[[W]]),y("div",ye,[p(v).endsWith("delete")?b("",!0):(d(),g(o,{key:0,text:"",onClick:z=>F(l)},{default:a(()=>[c(s,null,{default:a(()=>[c(n)]),_:1})]),_:1},8,["onClick"])),"streamId"in l?(d(),g(m,{key:1,permission:p(ie).DOWNLOAD},{default:a(()=>[c(o,{text:"",onClick:z=>$(l)},{default:a(()=>[c(s,null,{default:a(()=>[c(r)]),_:1})]),_:1},8,["onClick"])]),_:2},1032,["permission"])):b("",!0)])])]),_:2},1024))),128))]),u.data?.extendedInfo&&"originalResults"in u.data?.extendedInfo?(d(),g(R,{key:0,class:"mx-2",items:P,data:u.data.extendedInfo.originalResults},{result:a(({row:l})=>[c(L,{type:O(l.result)},{default:a(()=>[w(S(("findByProperty"in e?e.findByProperty:p(ee))(p(B),{value:`${l.result}`})),1)]),_:2},1032,["type"])]),_:1},8,["data"])):b("",!0)])]),_:1})])}}});export{Ne as _};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var E=(e=>(e.VIEW="view",e.UPDATE="update",e.UPLOAD="upload",e.PRINT="print",e.DOWNLOAD="download",e.HISTORY="history",e.DELETE="delete",e.REJECT="reject",e.SUBMIT="submit",e.CHECKED="approve",e.DISCERN="ocr",e.COMPARE="compare",e.REFRESH="refresh",e.VERIFICATION="verify",e.AUDIT="check",e.MOVE="move",e))(E||{});export{E as A};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={create:"新建",update:"更新",delete:"删除",edit:"编辑",view:"查看",upload:"上传",history:"历史",refresh:"刷新",print:"打印",download:"下载",move:"移动",confirm:"确认",cancel:"取消",rename:"重命名",close:"关闭",visit:"访问",selectAll:"全选",jump:"跳转",scan:"扫描",reset:"重置",submit:"提交"},n={tip:"提示",amount:"金额",remark:"备注",all:"全部",danger:"异常",success:"成功",warning:"警告",operation:"操作",content:"内容",id:"编号",property:"属性",permission:"权限",attachment:"附件",type:"类型",name:"名称",read:"读取",write:"写入",notFound:"不存在",noData:"暂无数据",noChange:"无更新"},t={success:"{0}成功",fail:"{0}失败,请稍后重试",error:"{0}出错,请联系管理员",pass:"{0}通过",noPass:"{0}未通过",confirm:"确认执行{0}操作吗?",unknown:"未知{0}",missing:"缺少{0}",required:"{0}不能为空",valid:"请输入有效的{0}",enter:"请输入{0}",select:"请选择{0}",permission:"没有{0}权限",info:"{0}信息","size-limit":"{0}大小不能超过{1}","num-limit":"{0}数量不能超过{1}","selected-num":"已选中{0}项{1}","least-num":"至少需要{0}条{1}","formal-error":"{0}格式错误"},s={button:e,label:n,message:t};export{e as button,s as default,n as label,t as message};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={cancel:"取消",close:"關閉",confirm:"確認",create:"新建",delete:"刪除",download:"下載",edit:"編輯",history:"歷史",jump:"跳轉",move:"移動",print:"列印",refresh:"重新整理",rename:"重命名",reset:"重置",scan:"掃描",selectAll:"全選",submit:"提交",update:"更新",upload:"上傳",view:"查看",visit:"訪問"},n={all:"全部",amount:"金額",attachment:"附件",content:"內容",danger:"異常",id:"編號",name:"名稱",noChange:"無更新",noData:"暫無數據",notFound:"不存在",operation:"操作",permission:"權限",property:"屬性",read:"讀取",remark:"備註",success:"成功",tip:"提示",type:"類型",warning:"警告",write:"寫入"},t={confirm:"確認執行{0}操作嗎?",enter:"請輸入{0}",error:"{0}出錯,請聯繫管理員",fail:"{0}失敗,請稍後重試","formal-error":"{0}格式錯誤",info:"{0}信息","least-num":"至少需要{0}條{1}",missing:"缺少{0}",noPass:"{0}未通過","num-limit":"{0}數量不能超過{1}",pass:"{0}通過",permission:"沒有{0}權限",required:"{0}不能為空",select:"請選擇{0}","selected-num":"已選中{0}項{1}","size-limit":"{0}大小不能超過{1}",success:"{0}成功",unknown:"未知{0}",valid:"請輸入有效的{0}"},s={button:e,label:n,message:t};export{e as button,s as default,n as label,t as message};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={download:"Download",edit:"Edit",history:"History",jump:"Jump",move:"Move",selectAll:"Select all",submit:"Submit",update:"Renew",upload:"Upload",view:"Check"},t={danger:"Abnormal",id:"Serial number",name:"Name",noChange:"No updates",noData:"No data yet",notFound:"Does not exist",operation:"Operate",permission:"Permissions",property:"Property",read:"Read",remark:"Remark",success:"Success",tip:"Hint",type:"Type",warning:"Warn",write:"Write"},o={confirm:"Are you sure to perform the {0} operation?",enter:"Please enter {0}",error:"{0} Error, please contact the administrator",fail:"{0} failed, please try again later","formal-error":"{0} format error",info:"{0} information","least-num":"At least {0}{1} required",missing:"Missing {0}",noPass:"{0} failed","num-limit":"The quantity of {0} cannot exceed {1}",pass:"{0}passed",permission:"No {0} permission",required:"{0} cannot be empty",select:"Please select {0}","selected-num":"{0} items {1} selected","size-limit":"{0} cannot exceed {1} in size",success:"{0} success",unknown:"Unknown {0}",valid:"Please enter a valid {0}"},s={button:e,label:t,message:o};export{e as button,s as default,t as label,o as message};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as v,_ as y,g}from"./useWatermark-BzF0y1A9.js";import{defineComponent as h,computed as r,unref as e,watchEffect as W,watch as C,resolveComponent as N,createBlock as x,createCommentVNode as T,openBlock as V,normalizeProps as B,mergeProps as D,withCtx as F,createVNode as P}from"vue";import{g as R}from"./types-CQ4Q5CJj.js";import{useRoute as z}from"vue-router";import{s as E}from"./main-DrqZSaj0.js";import{u as O}from"./viewer-CWuXsy7c.js";import"./watermark-DMx8Eoaf.js";import"vue-i18n";import"dayjs";import"single-spa-vue";import"./streams-D4lxz1Q0.js";const M=h({__name:"documents",setup(S){const c=z("/documents/[type]/"),n=r(()=>c.params.type),{typeData:a}=E(O()),{data:u,error:p,isFinished:i,updateWatermark:f}=v(k,!1),_=r(()=>!p.value&&i.value),o=r(()=>a?.value?.watermark),d=r(()=>a.value&&!e(o));async function k(){return g(e(o))}async function l(t){const{success:m,data:s}=await R(t);m&&(a.value=s)}return W(()=>{e(n)&&l(e(n))}),C(()=>o.value,t=>{t&&f()}),(t,m)=>{const s=N("router-view"),w=y;return e(d)||e(_)?(V(),x(w,B(D({key:0},e(u))),{default:F(()=>[P(s)]),_:1},16)):T("",!0)}}});export{M as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{markRaw as o,createElementBlock as t,openBlock as l,createElementVNode as n}from"vue";const r={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function a(m,e){return l(),t("svg",r,[...e[0]||(e[0]=[n("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696l236.288-236.352l45.248 45.248L508.8 704L192 387.2l45.248-45.248L480 584.704V128h64z"},null,-1)])])}const c=o({name:"ep-download",render:a});export{c as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{markRaw as t,createElementBlock as a,openBlock as n,createElementVNode as l}from"vue";const o={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function r(m,e){return n(),a("svg",o,[...e[0]||(e[0]=[l("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"},null,-1),l("path",{fill:"currentColor",d:"m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)])])}const c=t({name:"ep-edit",render:r});export{c as _};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e={add:"New",cancel:"Cancel",checked:"Review",clear:"Clear",close:"Closure",discern:"Verification",download:"Download",downloadPDF:"Download PDF",edit:"Edit",history:"History",jump:"Jump",manualAudit:"OCR",move:"Move",next:"Next",pre:"Previous",print:"Print",refresh:"Refresh",reject:"Turn down",rejectAdd:"AdditionMark",rejectAll:"Reject",rejectRefresh:"ReplacementMark",rejectRemove:"DeletionMark",rename:"Rename",reset:"Reset",rotateLeft:"Turn left",rotateRight:"Turn right",scan:"Scanning",selectAll:"Select all",selectScanSource:"Select scanning device",showScanConfig:"Configure scan parameters",submit:"Submit",update:"Renew",upload:"Upload",verification:"Check",view:"Check",visit:"Access",zoomIn:"Enlarge",zoomOut:"Zoom out",compare:"Compare",confirm:"Confirm",create:"New",delete:"Delete",detail:"Details",enable:"Turn on",openTicketFolder:"Open wallet",search:"Query",unable:"Closure",remove:"Remove"},i={all:"All",amount:"Amount",attachment:"Appendix",audio:"Audio",autoAudit:"Intelligent review",billAmount:"Document amount",business:"Document",businessName:"Document classification",businessProperty:"Document properties",code:"Coding",content:"Content",createDocument:"Create document",createdByDisplayName:"Creator",createdOn:"Creation time",danger:"Abnormal",deductibleTax:"Deductible tax amount",dept:"Organization code",deptName:"Organization name",detail:"Details",document:"Document",documentProperty:"Document properties",errorCode:"Error code",fileAnnotationList:"File annotations",fileList:"File list",filePropertyList:"File properties",fileSize:"File size",fileType:"Attachment type",group:"Group",id:"Serial number",image:"Picture",invoiceAmount:"Invoice amount",invoiceSummary:"Invoice summary",ipAddress:"IP address",lastUpdatedByDisplayName:"Updater",lastUpdatedOn:"Update time",level:"Grade",local:"Local",logDate:"Operation date",name:"Name",newStreamName:"New attachment name",ocrStatus:"Identification status",openingTime:"Valid time",operation:"Operate",operationDisplayName:"Operation content",operator:"Operator",operatorName:"Creator",other:"Other",permission:"Permissions",property:"Property",read:"Read",remark:"Remark",scan:"Scanning",scanDevice:"Scanning device",source:"Source",status:"State",streamName:"Attachment name",submitUser:"SubmitterId",submitUserName:"Submitter's name",success:"Success",tax:"Tax",tax_rate:"Tax rate",ticketProperty:"Ticket properties",tip:"Hint",title:"Title",type:"Type",uploadFile:"Upload files",uploadService:"Upload service",uploadTicket:"Upload ticket",urlQuery:"Url parameters",user:"User",userName:"Username",video:"Video",viewing:"Viewing",warning:"Warn",write:"Write",checkStatus:"Order review status",noOcrTicket:"Invoice not recognized",ticketFolder:"Wallet",ticketFolderList:"Ticket folder list",businessDataType:"Business type",time:"Time",invoice:"Invoice",currentPage:"Current page",error:"Abnormal"},n={checkInfo1:"Necessary files are missing, and the * node attachment cannot be empty!",checkInfo2:`There is a rejection status that has not been processed!
|
|
2
|
+
Try again after processing!`,checkInfo3:`There is a resweeping node that has not been processed!
|
|
3
|
+
Try again after processing!`,"checked-num":"{num} files selected",checkedNode:"Please check the node","confirm-action":"Are you sure to execute {action}?","create-name":"New {name}","enter-name":"Please enter {name}","error-action":"{action} error, please contact the administrator",errorAndTry:"An error occurred, please check for errors and try again!","failure-action":"{action} failed, please try again later","filesize-limit":"File size cannot exceed {limit}","info-name":"{0} information",loadError:"Loading error, please refresh and try again","max-num":"The quantity cannot exceed {num}","message-errorFiles-action":"{action} succeeded {successNum} files, {action} failed {errorNum} files: {errorFiles}","missing-name":"Missing {name}","no-name":"None {name}",noChange:"No updates",noData:"No data yet","noPass-action":"{action} does not pass","not-pass-action":"{action} does not pass","not-permission":"No {permission}",notFound:"Not found",notScanDevice:"There is no scanning device available, please check the device connection or driver installation","pass-action":"{action}passed","required-name":"{name} cannot be empty","select-name":"Please select {name}","success-action":"{action} succeeded","unknown-name":"Unknown {name}","upload-name":"Upload {name}",uploadClick:"Click to upload",uploadDragTip:"Drag files here, or",uploadServiceTip:"Note: After uploading, please click Submit to upload to the server!","valid-name":"Please enter a valid {name}",requiredProfile:"Missing user information",selectClick:"Click to select",ticketUploadSummary:"{0} invoices have been selected, total amount: ¥{1}",uploadFormTicketFolderList:"Select a file from the folder",repeat:"Repeat",tikcetErrorDetailInvoicePrefix:"The invoice corresponding to the current ticket and the ticket folder",approvalIsLock:"Pending review status does not allow modification"},t={search:"Enter keywords"},a=JSON.parse(`{"accommodationRoomLevel":{"0":"Single room","1":"Standard room"},"auditFailLevel":{"0":"Neglect","1":"Warn","2":"Mistake"},"boolean":{"false":"No","true":"Yes"},"check":{"CHK-0000":"Invoice verification failed","CHK-0001":"The invoice does not support the current inspection rules","CHK-0101":"The invoice number ({0} {1}) code ({2} {3}) is inconsistent with the primary and secondary","CHK-0201":"Verification failed between the name of the invoice purchaser ({0}) and tax ID ({1}) and the name of the organization ({3}) and tax ID ({4}) of the document submitter ({2}).","CHK-0202":"The invoice buyer name and tax number are empty","CHK-0203":"The document submitter is empty","CHK-0204":"The organization to which the document submitter ({0}) belongs is empty.","CHK-0301":"The legal verification of the account number ({0}) and address and telephone number ({1}) of the invoice purchaser's opening bank failed.","CHK-0302":"The account number, address and phone number of the invoice buyer’s opening bank are empty.","CHK-0401":"Invoice copy ({0}) failed to verify","CHK-0402":"Invoice copy is empty","CHK-0501":"The special invoice stamp information ({0}) does not include the seller’s name ({1}) or tax ID ({2})","CHK-0502":"The invoice special stamp information is empty","CHK-0601":"Invoice details contain sensitive words ({0})","CHK-0701":"The verification of the invoice seller name ({0}) and tax number ({1}) with the document seller name ({2}) and tax number ({3}) failed","CHK-0702":"The invoice seller name and tax number are empty","CHK-0801":"The legal verification of the account number ({0}) and address and phone number ({1}) of the invoice seller's opening bank failed.","CHK-0802":"The account number, address and phone number of the invoice seller’s opening bank are empty.","CHK-0901":"The name of the invoice seller contains sensitive words ({0})","CHK-1000":"Invoice verification failed, unknown exception","CHK-1001":"Invoice type cannot be empty","CHK-1002":"The untaxed amount of the special ticket cannot be empty/the total vehicle price cannot be empty","CHK-1003":"The last six digits of the check code cannot be empty","CHK-1004":"The last six digits of the general vote check code ({0}) are in an incorrect format.","CHK-1005":"Invoice code ({0}) format is wrong","CHK-1006":"Invoice number ({0}) format error","CHK-1007":"Invoice date ({0}) format is wrong","CHK-1008":"Invoices issued one year ago cannot be queried","CHK-1009":"Invoice date ({0}) format verification exception","CHK-1010":"The format of the untaxed amount of the special ticket is wrong/the total price of the special ticket is wrong in the format","CHK-1011":"This invoice exceeds the number of inspections for the day (internal interface)","CHK-1012":"Network abnormality","CHK-1013":"Network timeout","CHK-1014":"Invoice verification requests are too frequent, please try again later.","CHK-1015":"Exceeded the maximum number of server requests, please visit later","CHK-1016":"The request is illegal","CHK-1017":"Invoice data is inconsistent","CHK-1018":"No ticket found","CHK-1019":"The server network is abnormal and the invoice information is not obtained.","CHK-1020":"The server received requests too frequently, please try again later.","CHK-1021":"No such area code exists","CHK-1022":"The invoice code ({0}) is illegal","CHK-1023":"The invoice number ({0}) is illegal","CHK-1024":"The billing date ({0}) is illegal","CHK-1025":"The invoice amount ({0}) or check code ({1}) is illegal","CHK-1026":"Invoices issued on the same day can be inspected the next day","CHK-1027":"Unknown exception, please contact the administrator","CHK-1028":"Other exceptions","CHK-1029":"Internal exception, please contact the administrator","CHK-1030":"This ticket exceeds the number of inspections on the day (tax bureau)","CHK-1031":"Verification failed, please try again later","CHK-1032":"Query is not standardized","CHK-1033":"For other error messages, please refer to the value of msg.","CHK-1034":"Check channel error","CHK-1035":"System abnormality, please try again later! \\n(Taxation Bureau)","CHK-1036":"Request exception","CHK-1037":"Tax bureau channel returns exception","CHK-1060":"Signature verification error","CHK-1061":"Content parsing exception","CHK-1062":"Service node call failed","CHK-1063":"The service available balance is 0","CHK-1070":"DeletionMark","CHK-1071":"Red flush","CHK-1072":"Partial red flush","CHK-1073":"Full red rush","CHK-1074":"Red letter invoice to be confirmed","CHK-1080":"Blockchain invoices do not support inspection","CHK-1081":"Invoice code is empty","CHK-1082":"Invoice number is empty","CHK-1083":"Invoice date is empty","CHK-1084":"Invoice verification code is empty","CHK-1085":"Invoice amount is empty","CHK-1099":"Check exception","CHK-1101":"The invoice number ({0}) is duplicated with the invoice number ({1})","CHK-1201":"Invoice number ({0}) and ({1}) are consecutive","CHK-1301":"Supplier name and tax number are empty","CHK-1302":"The supplier ({0}) and tax ID ({1}) appear in the supplier warning list"},"checkStatus":{"0":"Not reviewed","1":"Intelligent review passed","2":"Smart review failed","3":"Manual review passed"},"compareBillStatus":{"0":"Reject","1":"Created","2":"Approved","3":"Reviewed","4":"Archived"},"compareSource":{"kingdee":"Kingdee","ucpf":"UCPF"},"distributionCategory":{"0":"Project","1":"Second-rate","2":"Long time","3":"Sky"},"fileOcrStatus":{"0":"Not recognized","1":"Recognizing","2":"Recognized","3":"OCR anomalies","4":"No identification"},"filter":{"all":"All","danger":"Abnormal","success":"Success","warning":"Warn"},"imageStatus":{"0":"Not uploaded","1":"Uploading","2":"Uploaded","3":"Scanning","4":"Scanned","5":"Matching","6":"Match successful","7":"Match failed","8":"Manual matching successful"},"invoiceType":{"invoice_qdptfp":"All-electric ordinary invoice","invoice_qdzzszyfp":"Special all-electric VAT invoice","invoice_qklfp":"All-electric ordinary invoice","invoice_txffp":"Electronic general invoice for toll VAT","invoice_zzsdzfp":"VAT electronic general invoice","invoice_zzsdzzyfp":"Value-added tax electronic special invoice","invoice_zzsptfp":"General VAT invoice","invoice_zzszyfp":"Special value-added tax invoice"},"matchFailCode":{"0":"Kingdee data anomaly","1":"Paper data abnormality","2":"Kingdee is short of tickets","3":"Paper shortage","4":"Other"},"matchStatus":{"0":"No match","1":"Match passed"},"matchStatusReversed":{"0":"Match","1":"No match"},"ocrStatus":{"0":"Not recognized","1":"Recognizing","2":"Recognized","3":"OCR anomalies","4":"No identification"},"ocrType":{"0":"Universal","1":"Special value-added tax invoice","2":"General VAT invoice"},"operation":{"audit":"Financial review","Reject":"Reject","check":"Intelligent review","create":"Create","delete":"Delete","manualaudit":"Manual review","match":"Document comparison","matchpass":"Manual comparison passed","ocr":"OCR","push":"Push","pushfile":"Image push","recheck":"Paper and electronic review","reject":"Turn down","update":"Renew","upload":"Upload"},"receiveStatus":{"0":"Not received","1":"Received"},"receivingMealType":{"0":"Canteen buffet","1":"Hotel buffet","2":"Work dinner","3":"Give souvenirs"},"receivingPositionLevel":{"0":"Company leader or above","1":"The person in charge of the company is at the same level or below","2":"No limit"},"receivingType":{"0":"Business reception","1":"Other business reception","2":"Foreign affairs reception"},"ruleTipLevel":{"0":"Neglect","1":"Warn","2":"Mistake"},"sensitiveWordName":{"1":"Item sensitive words","2":"Seller’s sensitive words"},"status":{"0":"DeletionMark","1":"Document has been uploaded","2":"Scanned","3":"ReplacementMark","4":"AdditionMark","5":"turn down","6":"Review","7":"Archive","8":"Scanning","9":"Re-scanning in progress","10":"Reject"},"trafficAircraftLevel":{"0":"Business class","1":"Economy class"},"trafficShipLevel":{"0":"First class","1":"Second class","2":"Third class"},"trafficTrainLevel":{"0":"Soft seats","1":"Hard seat","2":"Moving or lying down","3":"First class seat","4":"Second class"},"vehicle":{"0":"Airplane","1":"Train","2":"High speed rail","3":"Ship","4":"Car","5":"Other","6":"Self drive"},"ocrCode":{"OCR-0001":"Unknown recognition exception, please check the log","OCR-0002":"Requesting external identification service returns abnormal status code","OCR-0003":"Requesting external identification service returns failure","OCR-0004":"Unsupported identification type","OCR-0005":"File stream does not exist","OCR-10000":"Server internal error","OCR-10002":"Authorization error","OCR-10003":"Invalid parameter","OCR-10004":"Unsupported invoice type","OCR-10005":"Wrong invoice type","OCR-10006":"Invalid image","OCR-10007":"No traffic package available","OCR-10008":"Image caching is not enabled","OCR-10025":"Invalid App Key","OCR-10026":"token expires","OCR-10300":"PDF file processing exception","OCR-10400":"Image download fails when using image_url parameter","OCR-10500":"The interface is called too frequently","OCR-10600":"Unsupported ticket type","OCR-10700":"The interface has no access rights","OCR-0006":"Ticket file download failed","OCR-0007":"Unsupported recognition engine: '%s'","OCR-0008":"Multiple document information found: '%s:%s'","OCR-0009":"File stream is empty","OCR-1000":"Server internal error","OCR-1002":"Authorization error","OCR-1003":"Invalid parameter","OCR-1004":"Unsupported invoice type","OCR-1005":"Wrong invoice type","OCR-1006":"Invalid image","OCR-1007":"No traffic package available","OCR-1008":"Image caching is not enabled","OCR-1025":"Invalid App Key","OCR-1026":"Token expires","OCR-1101":"PDF file processing exception","OCR-1102":"Image download fails when using image_url parameter","OCR-1103":"The interface is called too frequently","OCR-1104":"Unsupported ticket type","OCR-1105":"The interface has no access rights"},"operationStatus":{"0":"Initial state","1":"Invoice information has been backfilled","2":"Modify invoice information"},"verifyStatus":{"0":"Not checked","1":"Inspection passed","2":"Inspection failed","3":"Passed mandatory inspection"}}`),o={rmb:"Yuan"},r={unknown:"Unknown"},c={button:e,label:i,message:n,placeholder:t,select:a,unit:o,value:r};export{e as button,c as default,i as label,n as message,t as placeholder,a as select,o as unit,r as value};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t}from"./select-C5rnQwT8.js";import{E as r}from"./DynamicElFormItem.vue_vue_type_style_index_0_lang-vV5itYwG.js";async function s(n,e=t("button.this"),o=t("label.tip")){const a=t("message.confirm-action",{action:e});return await r.confirm(a,o,{type:"warning",cancelButtonText:t("button.cancel"),confirmButtonText:t("button.confirm")}).then(async()=>await n()).catch(()=>!0)}export{s as e};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as r,e as H,c as p,i as T,g as Y,T as y}from"./viewer-CWuXsy7c.js";import{i as q,f as $,s as G,a as J,j as Q,k as W,E as X}from"./DynamicElFormItem.vue_vue_type_style_index_0_lang-vV5itYwG.js";import{p as Z,c as ee,d as te,a as se,e as ae,f as ne}from"./streams-D4lxz1Q0.js";import{ref as l,computed as f,nextTick as oe,shallowReactive as re,unref as L,reactive as F}from"vue";import{e as O}from"./feedback-CC33ITwT.js";import{t as o}from"./select-C5rnQwT8.js";import{c as A}from"./index-CQuIPoUT.js";import{a as d,x as ie,E as ce,s as K}from"./main-DrqZSaj0.js";import{p as le,d as ue}from"./print-DZRc2VH8.js";async function h(e,t){const{success:s,data:a}=await q(e,t);s&&(r().treeData=[a],r().documentData=a)}async function de(e,t,s){const a=()=>{if(t.data.fileType){if(s==="after")return t.data.streamId;{const c=t.parent.data[H]||[],u=c.findIndex(i=>i.streamId===e.data.streamId);return u?c[+u-1].streamId:"no"}}else return"no"},n={streamId:e.data.streamId,lastStreamId:a(),fileType:t.data.fileType,fileTypeName:t.data.fileTypeName};await _(n)}async function fe(e){const{newIndex:t,oldIndex:s,data:a}=e;if(t===s)return;const n=P.fileList[t],{fileType:c,fileTypeName:u=""}=n,N=P.fileList[s+1]?.streamId||"no",v={streamId:a.streamId,lastStreamId:N,fileType:c,fileTypeName:u};await _(v)}async function _(e){const{id:t,type:s}=r(),{success:a}=await Z(s,t,e);a&&(d.success(o("message.success-action",{action:o("button.move")})),await h(s,t))}function M(e,t){const{filterTreeNodeKeys:s}=r();return s&&!s.includes(t[p])||!t[T.label]?!1:new RegExp(e,"gi").test(t[T.label])}const D=l(),E=l({fileType:"",fileList:[]}),b=l(A(E.value)),I=f(()=>{const{typeData:e}=r();if(!e)return[];const{fileTypes:t}=e;return t&&t.length?J(t,"fileTypeName","fileTypeId"):[]}),Le=l({fileType:{componentName:"el-select",options:I,disabled:!0},fileList:{componentName:"el-upload",listType:"picture-card",multiple:!0,onChange:ge}}),me=f(()=>{const t=b.value.fileType;let s="";if(t&&I.value?.length){const a=I.value.find(n=>n.value===t);a&&(s=a.label)}return{deg:0,fileType:t,fileTypeName:s}}),Fe=l(),V=l(!1),Oe={reset(){D.value?.resetFields()},submit(){D.value&&D.value.validate((e,t)=>{if(e){const s=$(b.value),{type:a,id:n}=r();G({type:a,id:n,data:s,originalFileList:b.value.fileList},pe)}else{if(!t)return;oe(()=>{D.value.scrollToField(Object.keys(t)[0])})}})}};function Ae(e){b.value.fileList.length>0?O(e,o("button.close")):e()}function pe({success:e}){if(!e)return;V.value=!1;const t=o("button.upload"),s=o("message.success-action",{action:t}),{type:a,id:n}=r();h(a,n),d.success({message:s})}function ge(e,t){const{fileMaxSize:s,fileMaxSizeStr:a}=r().uploadConfig;if(s&&e.size&&e.size>s)return d.warning({message:o("message.file-size-limit",{limit:a})}),t.splice(t.length-1);Object.assign(e,{type:e.raw?.type,dataSource:"0",...me.value})}const w={upload(e){V.value=!0;const{fileTypeId:t=""}=e;return E.value.fileType=t,b.value=A(E.value),!0},async print(e){const{type:t,id:s,watermarkConfig:a,canToPDFSuffixArray:n}=r(),c=ce.service({fullscreen:!0}),u=[],i=[];for(const g of e){const{src:S,componentName:B}=Y(g,{type:t,id:s},n),z=new Promise(C=>{B!=="d-viewer"?C(S):Q(S).then(k=>{if(!k){const U=g.label||g.name;i.push(U)}C(k)})});u.push(z)}const N=await Promise.all(u);if(i.length){const g=o("message.print-error-message",{length:i.length,files:i.join(","),successLength:e.length-i.length});d.error({message:g,duration:3e4,showClose:!0,grouping:!0})}const v=N.flat(1).filter(Boolean);return v.length&&await le({watermarkConfig:a,url:v}),c.close(),!0},async download(e){const{type:t,id:s}=r();let a;if(e.length===1){const{streamId:n=""}=e[0];a=se({type:t,id:s,streamId:n,isDownload:!0})}else{const n=e.map(c=>c.streamId);a=W(t,s,n)}return ie({url:a})},async delete(e){return await O(async()=>{const{type:t,id:s}=r(),a=e.map(c=>c.streamId),{success:n}=await te(t,s,a);return n?(d.success(o("message.success-action",{action:o("button.delete")})),h(t,s),!0):!1},o("button.delete"))},async rename(e,t){const{type:s,id:a}=r(),{success:n}=await ee(s,a,e.streamId,t);return n?(d.success(o("message.success-action",{action:o("button.rename")})),h(s,a),!0):!1}};function j(e,t){return r().treePropsDisabled(e,t)}const m=l(),ye=f(()=>L(m)?.getCheckedNodes()||[]);f(()=>L(ye).map(e=>e[p]));const Ke=re({data:[],defaultExpandAll:!0,filterNodeMethod:M,nodeKey:p,highlightCurrent:!0,expandOnClickNode:!1,defaultExpandedKeys:[],showCheckbox:!0,defaultCheckedKeys:[],checkStrictly:!1,props:{...T,disabled:j},draggable:!0,allowDrop:he,allowDrag:be}),_e={currentChange:ve,checkChange:De,nodeDrop:de};function he(e,t,s){const a=e.data;return y.isDocNode(a)?s!=="inner":y.canEdit(a)?s==="inner":!1}function be(e){const t=e.data;return y.isDocNode(t)}function ve(e,t){const{currentNode:s}=K(r());s.value=t}function De(){if(!m.value)return;const e=m.value.getCheckedNodes(),{currentCheckedNodesData:t,checkStrictly:s}=K(r());s.value?t.value=e.filter(a=>y.isFolderNode(a)):t.value=e.filter(a=>y.isDocNode(a))}const Me=l(),P=F({fileList:[],fileKey:p,showCheckbox:!0,defaultCheckedKeys:[],filterNodeMethod:M,checkNodeMethod:Ne,treePropsDisabled:j,draggable:!0,enableRename:!0}),Ve={view(e){m.value?.setCurrentKey(e[p])},delete(e){w.delete([e])},download(e){w.download([e])},rename(e){const{label:t}=e;X.prompt(o("message.required",[o("label.newStreamName")]),t,{confirmButtonText:o("button.confirm"),cancelButtonText:o("button.cancel"),inputPattern:/^(?!.*\s).+$/,inputErrorMessage:o("message.valid",[o("label.streamName")]),inputValue:t}).then(({value:s})=>{w.rename(e,s)}).catch(()=>{})},end:fe};function Ne(e,t){m.value?.setChecked(e,t,!0)}const je=l(),Be=F({vProps:{componentName:"d-viewer",src:"",isHasAnnotation:!1,async getAnnotations(){try{const{type:e,id:t,currentNodeData:s}=r(),{success:a,data:n}=await ae(e,t,s.streamId);return a?ue(n):[]}catch{return[]}}},tProps:{allowPre:f(()=>!!x("previousSibling")),allowNext:f(()=>!!x("nextSibling"))}});function we(e,t){const{nodesMap:s}=e.store,a=Array.from(Object.entries(s)).filter(([,i])=>i?.visible&&i.data._attribute==="doc"),n=a.findIndex(([i])=>i===e.key);return a.map(([,i])=>i)[n+(t==="previousSibling"?-1:1)]||null}function x(e){const{currentNode:t}=r();if(t)return we(t,e)}function R(e){const t=x(e);if(!t)return;const s=t.data[p];m.value?.setCurrentKey(s)}const ze={pre(){R("previousSibling")},next(){R("nextSibling")},async saveAnnotation(e){const{type:t,id:s,currentNodeData:a}=r(),{success:n}=await ne(t,s,a.streamId,e);n&&(d.success(o("message.success-action",{action:o("button.update")})),h(t,s))}};export{w as H,P as a,Ke as b,_e as c,Me as d,Ve as e,Be as f,je as g,ze as h,Fe as i,b as j,Ae as k,me as l,V as m,Oe as n,D as o,Le as p,m as t,h as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as d,c as m,i as R,g as O,T as h,v as se}from"./viewer-CWuXsy7c.js";import{u as C}from"./updateDocumentData-CeAbA-Qr.js";import{b as M,c as oe,d as ne,e as ae,f as ce,h as re,i as ie}from"./profile-DmVZXaLc.js";import{j as ue,a as f,H as I,af as j,x as de,E as le,ag as fe,ah as pe,s as P}from"./main-DrqZSaj0.js";import{E as A,j as me,y as ge,z as ye,A as L,o as _}from"./DynamicElFormItem.vue_vue_type_style_index_0_lang-vV5itYwG.js";import{a as he,e as be,f as De}from"./streams-D4lxz1Q0.js";import{v as Ne}from"./valid-263xpzJj.js";import{ref as k,reactive as F,readonly as G,computed as N,h as H,nextTick as we,shallowReactive as ke,unref as Y}from"vue";import{t as i}from"./select-C5rnQwT8.js";import{p as ve,d as Ce}from"./print-DZRc2VH8.js";import{e as Z}from"./feedback-CC33ITwT.js";import{d as Te}from"./index-BKC7qnTH.js";function J(t,e){const{filterTreeNodeKeys:s}=d();return s&&!s.includes(e[m])||!e[R.label]?!1:new RegExp(t,"gi").test(e[R.label])}const Pe=k(!1),xe=k({data:[]}),Se=k(!1),U=F({propertyArray:[],propertyValues:{}});function Ie(t,e,s,o){return ue.post(`/svc/finance/ticket/${t}/${e}`,{status:s,remark:o})}function E(t){return t.map(e=>{const{documentType:s,id:o,streamId:a}=e;return{type:s,id:o,streamId:a}})}function $(){const t=d(),e=t.addTicketPaths,s=["2","3"],o=c=>{for(const n of c){if(!n.streamId&&e.includes(n.ticketPath)&&(!n.children||n.children?.findIndex(u=>u.status==="4")===-1))return{node:n,errCode:"3"};if(n.isRequired&&!n.children?.length)return{node:n,errCode:"1"};if(s.includes(n.status))return{node:n,errCode:"2"};if(n.children?.length){for(const u of n.children)if(s.includes(u.status))return{node:u,errCode:"2"}}}},a=c=>{for(const n of c){if(!n.streamId&&n.documentType&&n.ticketTypeName&&!n.ticketTypeCode)continue;const u=n.children;if(u?.length){const l=o(u);if(l)return l;a(u)}}},r=t.documentData;return a([r])}const z={upload(t){const{documentData:e,documentTypes:s}=d();if(!e)return!1;const{billProperties:o=[]}=e,{financeType:a,documentType:r,ticketTypeCode:c}=t,n=s[a]?.properties||s[r]?.properties||s[c]?.properties||[];return U.propertyArray=[...o,...n],U.propertyValues=t,Se.value=!0,!0},async print(t){const{watermarkConfig:e,canToPDFSuffixArray:s}=d(),o=le.service({fullscreen:!0}),a=[],r=[];for(const u of t){const{documentType:l,id:b}=u;if(!l||!b)continue;const{src:g,componentName:D}=O(u,{type:l,id:b},s),x=new Promise(y=>{D!=="d-viewer"?y(g):me(g).then(T=>{if(!T){const S=u.label||u.name;r.push(S)}y(T)})});a.push(x)}const c=await Promise.all(a);if(r.length){const u=i("message.print-error-message",{length:r.length,files:r.join(","),successLength:t.length-r.length});f.error({message:u,duration:3e4,showClose:!0,grouping:!0})}const n=c.flat(1).filter(Boolean);return n.length&&await ve({watermarkConfig:e,url:n}),o.close(),!0},async download(t){const{bisCategory:e,id:s}=d(),o=E(t);if(o.length===1){const a=he({...o[0],isDownload:!0});de({url:a})}else{const a=await re(e,s,E(t)),r=".zip",c="application/zip",n=Date.now()+r;j(a,n,c)}return!0},async downloadPDF(t){const{bisCategory:e,id:s}=d(),o=E(t),a=await ce(e,s,o),r=".pdf",c="application/pdf",n=Date.now()+r;return j(a,n,c),!0},async delete(t){return await Ne()?!1:await Z(async()=>{const{bisCategory:s,id:o}=d(),a=t.map(c=>{const{documentType:n,id:u,streamId:l}=c;return{type:n,id:u,streamId:l}}),{success:r}=await ae(s,o,a);return r?(f.success(i("message.success-action",{action:i("button.delete")})),C(s,o),!0):!1},i("button.delete"))},async manualAudit(){const{bisCategory:t,id:e}=d(),{success:s}=await ne(t,e);s&&f.success(i("message.success-action",{action:i("button.manualAudit")}))},async compare(t){const{canToPDFSuffixArray:e}=d();return xe.value.data=t.map(s=>({src:O(s,{type:s.documentType,id:s.id},e).src,label:s.label})),Pe.value=!0,!0},async reject(t,e){const o={1:"",2:i("confirm-action",{action:i("button.rejectRemove")}),3:i("confirm-action",{action:i("button.rejectRefresh")})}[e],a=t.map(c=>{const n=o;if(c){const{ticketTypeCode:u,id:l,label:b}=c;return new Promise(g=>{Ie(u,l,e,n).then(({success:D})=>{D?(c.status=e,g("")):g(b)}).catch(()=>{g(b)})})}return null}),r=(await Promise.all(a)).filter(Boolean);return r.length?(f.error(i("message.failure-action",{action:r})),!1):(f.success(i("message.success-action",{action:i("button.reject")})),!0)},async submit(t){const{bisCategory:e,businessKey:s}=d(),o=$();if(o){const r=o.node[m];return t.setCurrentKey(r),f.info(i(`message.checkInfo${o.errCode}`))}const{success:a}=await oe(e,s,{status:"6",remark:""});a&&f.success({message:i("message.success-action",{action:i("button.submit")}),onClose:()=>{I(!0)}})},checked(){const{documentData:t,bisCategory:e,businessKey:s,addTicketPaths:o}=d(),a=o.join(","),r=$();let c=1,n="";const u=i("button.checked"),l=G([i("message.not-pass-action",{action:u}),i("message.pass-action",{action:u})]),b=i("button.confirm"),g=i("button.cancel"),D=i("label.tip");if(r)return c=0,n=i(`message.checkInfo${r.errCode}`),A.prompt(D,l[c],{customClass:"messageBox-review",type:c?"success":"error",closeOnClickModal:!1,closeOnPressEscape:!1,confirmButtonText:b,cancelButtonText:g,inputValue:n,inputPlaceholder:""}).then(({value:p})=>{M(e,s,{status:c?"7":"5",remark:p,addTicketPaths:a}).then(({success:v})=>{v&&f.success({message:i("message.success-action",{action:u}),onClose:()=>{I(!0)}})})});const x=G([n,""]),y=k(c),T=N(()=>y.value?"success":"error"),S=N(()=>{const p=y.value;return x[p]}),K=()=>{A({title:l[y.value],customClass:"messageBox-review",closeOnClickModal:!1,closeOnPressEscape:!1,confirmButtonText:b,cancelButtonText:g,inputValue:S.value,inputPlaceholder:D,type:T.value,showInput:!0,message:()=>H(fe,{modelValue:y.value,style:"width:100%;min-width:120px","onUpdate:modelValue":p=>{y.value=p,A.close(),we(()=>K())}},()=>l.map((p,v)=>H(pe,{key:p,label:p,value:v})))}).then(({value:p})=>{M(e,s,{status:y.value?"7":"5",remark:p,addTicketPaths:a}).then(({success:v})=>{v&&f.success({message:i("message.success-action",{action:u}),onClose:()=>{I(!0)}})})}).catch(()=>{})};K()}};function Q(t,e){return d().treePropsDisabled(t,e)}const Xe=k(),q=F({fileList:[],fileKey:m,showCheckbox:!0,defaultCheckedKeys:[],filterNodeMethod:J,checkNodeMethod:Ae,treePropsDisabled:Q}),et={view(t){w.value?.setCurrentKey(t[m])},delete(t){z.delete([t])},download(t){z.download([t])},end:Be};function Ae(t,e){w.value?.setChecked(t,e,!0)}function Ee(t,e,s){if(s!=="inner")return!1;const o=t.data,a=e.data,r=h.isInvoiceDoc(o),c=h.isTicketDoc(o),{documentData:n={}}=d(),u=n[m]===a[m];return!se(o,a)||!r&&!c||!h.isFolderNode(a)||u?!1:r?!0:!!(c&&o.documentType===a.documentType)}function Re(t){const e=t.data;return h.isDocNode(e)}async function Ve(t,e,s){const o=t.data,a=e.data,r=h.isGroupDocNode(a),c={target:{ticketTypeCode:a.ticketTypeCode,ticketPath:a.ticketPath,groupDocId:a.groupDocId,id:r?a.id:""},sourceTicket:{type:o.documentType,id:o.id,fileType:h.isTicketDoc(o)?"ticket":"invoice"}};await X(c)}async function Be(t){const{newIndex:e,oldIndex:s,data:o}=t;if(e===s)return;const a=q.fileList[e],{fileType:r,fileTypeName:c=""}=a,u=q.fileList[s+1]?.streamId||"no",l={streamId:o.streamId,lastStreamId:u,fileType:r,fileTypeName:c};await X(l)}async function X(t){const{id:e,bisCategory:s}=d(),{success:o}=await ie(s,e,t);o&&(f.success(i("message.success-action",{action:i("button.move")})),await C(s,e))}const w=P(d()).treeRef,Fe=N(()=>Y(w)?.getCheckedNodes()||[]);N(()=>Y(Fe).map(t=>t[m]));const tt=ke({data:[],defaultExpandAll:!0,filterNodeMethod:J,nodeKey:m,highlightCurrent:!0,expandOnClickNode:!1,defaultExpandedKeys:[],showCheckbox:!0,defaultCheckedKeys:[],checkStrictly:!0,props:{...R,disabled:Q},draggable:!0,allowDrop:Ee,allowDrag:Re}),st={currentChange:Ke,check:je,checkChange:Me,nodeDrop:Ve};function Ke(t,e){const{currentNode:s}=P(d());s.value=e}const Oe=Te((t,e,s)=>{e.value?s.value=t.filter(o=>h.isFolderNode(o)):s.value=t.filter(o=>h.isDocNode(o)||h.isGroupDocNode(o))},300);function Me(){if(!w.value)return;const t=w.value.getCheckedNodes(),{currentCheckedNodesData:e,checkStrictly:s}=P(d());Oe(t,s,e)}function je(t,e){const{treeRef:s,checkStrictly:o,currentCheckedNodesData:a}=P(d());if(!s.value)return;const r=t[m],c=s.value.getNode(r),{checked:n}=c;o.value||(ee(c,n,s.value.setChecked),te(c,n,s.value.setChecked))}function ee(t,e,s){const{key:o,childNodes:a,disabled:r}=t;if(!r&&s(o,e,!1),a?.length)for(const c of a)ee(c,e,s)}function te(t,e,s){const{nextSibling:o,previousSibling:a,parent:r}=t;if(!r)return;if(!e){let u=r;for(;u;)!u.disabled&&s(u.key,e,!1),u=u.parent;return}let c=o;for(;c;){if(!c.disabled&&c.checked!==e||c.childNodes?.length&&V(c.childNodes,e))return;c=c.nextSibling}let n=a;for(;n;){if(!n.disabled&&n.checked!==e||n.childNodes?.length&&V(n.childNodes,e))return;n=n.previousSibling}!r.disabled&&s(r.key,e,!1),te(r,e,s)}function V(t,e){for(const s of t){if(!s.disabled&&s.checked!==e)return!0;if(s.childNodes?.length)return V(s.childNodes,e)}return!1}const ot=k(),nt=F({vProps:{componentName:"d-viewer",src:"",isHasAnnotation:!1,async getAnnotations(){try{const{currentNodeData:t}=d(),{documentType:e,id:s,streamId:o}=t,{success:a,data:r}=await be(e,s,o);return a?Ce(r):[]}catch{return[]}}},tProps:{allowPre:N(()=>!!B("previousSibling")),allowNext:N(()=>!!B("nextSibling"))},gProps:null,pProps:null,aProps:null});function Le(t,e){const{nodesMap:s}=t.store,o=Array.from(Object.entries(s)).filter(([,n])=>n?.visible&&n.data._attribute==="doc"),a=o.findIndex(([n])=>n===t.key);return o.map(([,n])=>n)[a+(e==="previousSibling"?-1:1)]||null}function B(t){const{currentNode:e}=d();if(e)return Le(e,t)}function W(t){const e=B(t);if(!e)return;const s=e.data[m];w.value?.setCurrentKey(s)}const at={pre(){W("previousSibling")},next(){W("nextSibling")},async saveAnnotation(t){const{currentNodeData:e,bisCategory:s,id:o}=d(),{documentType:a,id:r,streamId:c}=e,{success:n}=await De(a,r,c,t);n&&(f.success(i("message.success-action",{action:i("button.update")})),C(s,o))},async saveGoodsItems(t,e){const{bisCategory:s,id:o,currentNodeData:a}=d(),{documentType:r,id:c}=a,{success:n}=await L(r,c,_({goodsItems:t}));n&&(f.success(i("message.success-action",{action:i("button.update")})),C(s,o),e())},async saveProperty(t,e){const{bisCategory:s,id:o,currentNodeData:a}=d(),{documentType:r,id:c}=a,{success:n}=await L(r,c,_(t));n&&(f.success(i("message.success-action",{action:i("button.update")})),C(s,o),e())},async audit(){const{currentNodeData:t}=d(),{documentType:e,id:s}=t,{success:o}=await ye(e,s);o&&f.success(i("message.success-action",{action:i("label.autoAudit")}))},async verification(){return await Z(async()=>{const{currentNodeData:t}=d(),{documentType:e,id:s}=t,{success:o}=await ge(e,s);return o?(f.success(i("message.success-action",{action:i("button.verification")})),!0):!1},i("button.verification"))}};export{z as H,q as a,tt as b,st as c,at as d,Xe as e,nt as f,et as g,ot as h,Se as i,Pe as j,xe as k,w as t,U as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as G,_ as H,g as X}from"./useWatermark-BzF0y1A9.js";import{s as R,C as Z,E as ee,a as c,b as re,d as te,c as K,l as ae}from"./main-DrqZSaj0.js";import{defineComponent as oe,computed as P,ref as u,provide as se,onMounted as ne,resolveComponent as ie,createBlock as T,createCommentVNode as ue,unref as f,openBlock as h,normalizeProps as me,mergeProps as le,withCtx as d,createVNode as A,resolveDynamicComponent as ce}from"vue";import{u as fe,g as de}from"./profile-DmVZXaLc.js";import{g as pe}from"./profile-CmvWOQ43.js";import{P as ge}from"./parametersKey-DHZEv2wC.js";import{useI18n as ye}from"vue-i18n";import{useRoute as ve}from"vue-router";import{u as _e}from"./viewer-CWuXsy7c.js";import"./watermark-DMx8Eoaf.js";import"dayjs";import"single-spa-vue";import"./streams-D4lxz1Q0.js";const Fe=oe({__name:"finance",setup(ke){const{t:o}=ye(),E=ve(),S=P(()=>E.query.parameters),m=u({dataCategory:"0",openingTime:"",operatorId:"",operatorName:"",watermarkText:"",token:"",uniqueKey:"",typeCode:""}),p=u([]);se(ge,m);const I=["dataCategory","operatorId","operatorName"],{highlightTreeNodeKeys:N,uploadConfig:we,watermarkConfig:q,parameters:x,bisCategory:B,businessKey:Ce,id:W}=R(_e()),{profile:b}=R(fe()),{data:D,error:g,isFinished:y,isImmediate:M}=G(F,!1),l=u(""),O=u(!1),V=P(()=>!g.value&&y.value);function F(){return new Promise(e=>{e({success:!0,data:l.value})})}function L(e,r=[]){const{uniqueKey:t,typeCode:s,token:n,streamId:a}=e;if(!t&&!s&&!a)return!t&&!s?"uniqueKey or typeCode":"streamId";if(!n&&!K.get("digest"))return"token";for(const i of r)if(!e[i])return i;return""}async function Y(e){const{data:r}=await de({openingTime:e});return!!r?.result}function v(e){return Array.isArray(e)?e:e.split(",").filter(Boolean)}async function Q(){const{success:e,data:r}=await pe();return e?(b.value=r,!0):!1}async function U(e){if(!e){c.error(o("message.missing",[o("label.urlQuery")]));return}const r=JSON.parse(re(te(e))),{token:t,dataCategory:s,uniqueKey:n,openingTime:a,watermarkText:i,operatorId:Re,operatorName:Ke,sourceSys:Pe,typeCode:J,actions:_,openRelatedBills:Te="0",relatedData:he,locale:k,streamId:Ae,highlightTreeNodeKeys:w}=r,C=L(r,I);if(C){c.error(o("message.missing",[C]));return}if(t&&K.set("digest",t),!!await Q()){if(a&&!await Y(a)){c.error(o("message.noPass",[o("label.openingTime")]));return}if(m.value=r,x.value=r,B.value=J,W.value=n,p.value=_?v(_):[],k&&ae(k),N.value=w?v(w):[],i===""){O.value=!0,q.value=void 0,g.value=null,y.value=!0;return}if("watermarkText"in m.value)l.value=i;else{const{success:$,data:j}=await X("SystemWatermark");if(!$)return;l.value=j}M.value=!0}}async function z(){const e=ee.service({lock:!0});await U(S.value),e.close()}return ne(()=>{z()}),(e,r)=>{const t=Z,s=ie("RouterView"),n=H;return f(V)?(h(),T(n,me(le({key:0},f(D))),{default:d(()=>[A(s,null,{default:d(({Component:a})=>[A(t,{permission:f(p)},{default:d(()=>[(h(),T(ce(a)))]),_:2},1032,["permission"])]),_:1})]),_:1},16)):ue("",!0)}}});export{Fe as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"dayjs";const e={datetime(r){return n(r).format("YYYY-MM-DD HH:mm:ss")}};function s(r){return(o,m,t)=>(t||=o[m.property],r(t))}export{e as F,s as f};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as Y,computed as pe,createElementBlock as d,openBlock as r,normalizeClass as ie,unref as o,renderSlot as ke,createCommentVNode as N,createElementVNode as a,createTextVNode as xe,toDisplayString as I,normalizeStyle as Je,shallowRef as It,watch as fe,toValue as A,ref as O,watchEffect as ht,Fragment as Z,renderList as Ce,createBlock as x,withCtx as p,KeepAlive as Ft,createVNode as u,resolveDirective as _t,mergeProps as V,isRef as ye,withDirectives as me,withModifiers as ge,markRaw as E,readonly as Rt,shallowReactive as Ge,reactive as Ke,nextTick as we,onMounted as Mt,toHandlers as ue,normalizeProps as Ot,resolveDynamicComponent as Ye,vShow as Bt}from"vue";import{l as Ht,t as zt,m as Lt,n as jt,F as Kt,D as Ut,q as Jt,I as vt,c as Gt,d as bt,r as Wt,g as Xe,e as qt,S as Zt,u as Qe}from"./DynamicElFormItem.vue_vue_type_style_index_0_lang-vV5itYwG.js";import{useI18n as Ae}from"vue-i18n";import{z as et,e as yt,B as gt,_ as wt,D as kt,w as xt,f as tt,F as Yt,G as Xt,a as Ne,k as Ct,A as Pt,t as Dt,v as We,j as Qt,s as Vt,H as eo,q as to,r as oo}from"./main-DrqZSaj0.js";import{I as no,_ as ot,S as nt,a as st,T as so,E as ro,b as io,c as lo}from"./search-CAeHBdaV.js";import{_ as ao}from"./EasyTable.vue_vue_type_script_setup_true_lang-CoFB-oEN.js";import{_ as co}from"./edit-C1MwNQ0C.js";import{_ as uo}from"./info-filled-aLiVUjkY.js";import{a as mo,b as fo,c as po,e as ho,_ as _o,F as rt}from"./print-DZRc2VH8.js";import{A as w}from"./action-DIX3nF4W.js";import{c as vo,E as bo,a as yo,b as go}from"./index-CQuIPoUT.js";import{_ as Tt}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{t as S,f as wo}from"./select-C5rnQwT8.js";import{g as ko,a as xo,b as Co}from"./streams-D4lxz1Q0.js";import{u as y,T,a as Po,b as it,g as Do,c as Be,d as Vo,e as To,f as Eo,h as $o}from"./viewer-CWuXsy7c.js";import{_ as So}from"./CustomUploadDialog.vue_vue_type_script_setup_true_lang-t5kHD9r0.js";import Ao from"./index-DNfytKww.js";import No from"./HistoryItem-BqbjIW7u.js";import{H as $,t as q,f as re,a as z,b as He,c as Io,d as lt,e as at,g as Fo,h as Ro,u as Mo,i as ze,j as Le,k as Oo}from"./fileViewer-Cax4f8OZ.js";import{f as Bo,F as Ho}from"./formart-B31BJFe6.js";import{I as zo}from"./download-BZ4lW7oQ.js";import{u as Et}from"./updateDocumentData-CeAbA-Qr.js";import{p as Lo}from"./profile-DmVZXaLc.js";import{e as je}from"./feedback-CC33ITwT.js";import{useRoute as jo}from"vue-router";import{E as Ko}from"./index-BKC7qnTH.js";import{b as ct}from"./route-block-B_A1xBdJ.js";import"dayjs";import"./view-CUJgawjS.js";import"single-spa-vue";import"./watermark-DMx8Eoaf.js";import"./uploadDialog.vue_vue_type_script_setup_true_lang-BnhkZqcI.js";import"./CollapseItemsForm-VDLL2LQ1.js";import"./valid-263xpzJj.js";import"./index.vue_vue_type_script_setup_true_lang-CtfyWtlI.js";import"./index.vue_vue_type_script_setup_true_lang-DQOtyPZG.js";const Uo=yt({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Jo={"update:checked":t=>et(t),[gt]:t=>et(t)},Go=Y({name:"ElCheckTag"}),Wo=Y({...Go,props:Uo,emits:Jo,setup(t,{emit:e}){const s=t,n=kt("check-tag"),i=pe(()=>[n.b(),n.is("checked",s.checked),n.is("disabled",s.disabled),n.m(s.type||"primary")]),l=()=>{if(s.disabled)return;const m=!s.checked;e(gt,m),e("update:checked",m)};return(m,_)=>(r(),d("span",{class:ie(o(i)),onClick:l},[ke(m.$slots,"default")],2))}});var qo=wt(Wo,[["__file","check-tag.vue"]]);const Zo=xt(qo),Yo=yt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:tt([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:tt([String,Object,Array])}}),Xo=Y({name:"ElStatistic"}),Qo=Y({...Xo,props:Yo,setup(t,{expose:e}){const s=t,n=kt("statistic"),i=pe(()=>{const{value:l,formatter:m,precision:_,decimalSeparator:C,groupSeparator:v}=s;if(Yt(m))return m(l);if(!Xt(l)||Number.isNaN(l))return l;let[f,c=""]=String(l).split(".");return c=c.padEnd(_,"0").slice(0,_>0?_:0),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,v),[f,c].join(c?C:"")});return e({displayValue:i}),(l,m)=>(r(),d("div",{class:ie(o(n).b())},[l.$slots.title||l.title?(r(),d("div",{key:0,class:ie(o(n).e("head"))},[ke(l.$slots,"title",{},()=>[xe(I(l.title),1)])],2)):N("v-if",!0),a("div",{class:ie(o(n).e("content"))},[l.$slots.prefix||l.prefix?(r(),d("div",{key:0,class:ie(o(n).e("prefix"))},[ke(l.$slots,"prefix",{},()=>[a("span",null,I(l.prefix),1)])],2)):N("v-if",!0),a("span",{class:ie(o(n).e("number")),style:Je(l.valueStyle)},I(o(i)),7),l.$slots.suffix||l.suffix?(r(),d("div",{key:1,class:ie(o(n).e("suffix"))},[ke(l.$slots,"suffix",{},()=>[a("span",null,I(l.suffix),1)])],2)):N("v-if",!0)],2)],2))}});var en=wt(Qo,[["__file","statistic.vue"]]);const tn=xt(en),on=Lt?window:void 0;function nn([t,e,s,n]){const i=(f,c)=>1-3*c+3*f,l=(f,c)=>3*c-6*f,m=f=>3*f,_=(f,c,P)=>((i(c,P)*f+l(c,P))*f+m(c))*f,C=(f,c,P)=>3*i(c,P)*f*f+2*l(c,P)*f+m(c),v=f=>{let c=f;for(let P=0;P<4;++P){const F=C(c,t,s);if(F===0)return c;const k=_(c,t,s)-f;c-=k/F}return c};return f=>t===e&&s===n?f:_(v(f),e,n)}function dt(t,e,s){return t+s*(e-t)}function sn(t,e,s){const n=A(t),i=A(e);if(typeof n=="number"&&typeof i=="number")return dt(n,i,s);if(Array.isArray(n)&&Array.isArray(i))return n.map((l,m)=>dt(l,A(i[m]),s));throw new TypeError("Unknown transition type, specify an interpolation function.")}function ut(t){var e;return typeof t=="function"?t:(e=A(t))!==null&&e!==void 0?e:jt}function rn(t,e,s,n={}){var i;const{window:l=on}=n,m=A(e),_=A(s),C=(i=A(n.duration))!==null&&i!==void 0?i:1e3,v=Date.now(),f=Date.now()+C,c=typeof n.interpolation=="function"?n.interpolation:sn,P=typeof n.easing<"u"?ut(n.easing):ut(n.transition),F=typeof P=="function"?P:nn(P);return new Promise(k=>{t.value=m;const D=()=>{var X;if(!((X=n.abort)===null||X===void 0)&&X.call(n)){k();return}const he=Date.now();t.value=c(m,_,F((he-v)/C)),he<f?l?.requestAnimationFrame(D):(t.value=_,k())};D()})}function mt(t,e={}){let s=0;const n=()=>{const l=A(t);return typeof e.interpolation>"u"&&Array.isArray(l)?l.map(A):l},i=It(n());return fe(n,async l=>{var m,_;if(A(e.disabled))return;const C=++s;e.delay&&await Ht(A(e.delay)),C===s&&((m=e.onStarted)===null||m===void 0||m.call(e),await rn(i,i.value,l,{...e,abort:()=>{var v;return C!==s||((v=e.abort)===null||v===void 0?void 0:v.call(e))}}),(_=e.onFinished)===null||_===void 0||_.call(e))},{deep:!0}),fe(()=>A(e.disabled),l=>{l&&(s++,i.value=n())}),zt(()=>{s++}),pe(()=>A(e.disabled)?n():i.value)}const ln={class:"flex flex-col gap-2 overflow-hidden"},an={class:"flex-shrink-0 flex gap-2 flex-wrap"},cn={class:"flex-1 flex gap-2 flex-nowrap overflow-hidden"},dn={key:0,class:"size-full flex flex-col overflow-hidden"},un={class:"flex-shrink-0 text-center truncate text-xs bg-slate-200"},mn=Y({__name:"Compare",props:{data:{default:()=>[]}},setup(t){const e=t,{t:s}=Ae(),n=O(2),i=O([]);function l(m){const _=i.value.indexOf(m);if(_>-1)i.value.splice(_,1);else{if(i.value.length>=n.value)return Ne.warning(s("message.max-num",{num:n.value}));i.value.push(m)}}return ht(()=>{i.value=e.data.slice(0,2)}),(m,_)=>{const C=Zo;return r(),d("div",ln,[a("div",an,[(r(!0),d(Z,null,Ce(e.data,v=>(r(),x(C,{key:v.src,checked:o(i).includes(v),type:"primary",onClick:f=>l(v)},{default:p(()=>[xe(I(v.label),1)]),_:2},1032,["checked","onClick"]))),128))]),a("div",cn,[(r(!0),d(Z,null,Ce(o(n),v=>(r(),d("div",{key:v,class:"flex-1 bg-cover! overflow-hidden",style:Je(`background:url(${o(Kt)}); border:1px solid var(--el-border-color-light)`)},[(r(),x(Ft,null,[o(i)[v-1]?(r(),d("div",dn,[u(o(Ut),{class:"flex-1",src:o(i)[v-1].src},null,8,["src"]),a("div",un,I(o(i)[v-1].label),1)])):N("",!0)],1024))],4))),128))])])}}}),fn={class:"flex size-full overflow-hidden FileViewer2"},pn={class:"flex-1 h-full flex flex-col overflow-hidden FileViewer-Image"},hn={class:"flex items-center gap-2 justify-between"},_n={class:"flex items-center gap-2"},vn=Y({__name:"FileLayout",props:{pProps:{},gProps:{},aProps:{},data:{}},emits:["saveGoodsItems","saveProperty","audit","verification"],setup(t,{emit:e}){const s=t,n=e,{t:i}=Ae(),l=O(300),m=O(["ticketProperty","autoAudit"]),_=O(),C=O({}),v=O(),f=O(),c=O(!0);function P(){const k=Jt(C.value,s.pProps.modelValue);if(c.value||Object.keys(k).length===0){c.value=!c.value;return}n("saveProperty",k,()=>c.value=!0)}function F(k,D){n("saveGoodsItems",k,()=>D)}return fe(()=>s.pProps,k=>{C.value=vo(k?.modelValue||{})},{immediate:!0,deep:!0}),(k,D)=>{const X=mo,he=po,Q=We,j=Dt,_e=Pt,Pe=ho,Ie=uo,De=yo,le=co,ae=bo,Fe=Ct,ce=_t("tooltip");return r(),d("div",fn,[a("div",pn,[ke(k.$slots,"default",{class:"flex-1"},void 0,!0),s.gProps?(r(),x(X,V({key:0,ref_key:"tableFormRef",ref:v},s.gProps,{data:s.data,onSaveGoodsItems:F}),null,16,["data"])):N("",!0)]),a("div",{class:"flex-shrink-0 h-full FileViewer-Image-TnfoAll",style:Je({width:`${s.pProps?o(l):0}px`})},[u(Fe,{style:{height:"100%"}},{default:p(()=>[u(ae,{modelValue:o(m),"onUpdate:modelValue":D[3]||(D[3]=de=>ye(m)?m.value=de:null),class:"size-full overflow-hidden border-0 FileViewer-Image-Tnfo",style:{"--el-collapse-header-bg-color":"#f5f7fa","--el-collapse-header-height":"36px"}},{default:p(()=>[s.aProps?(r(),x(De,{key:0,name:"autoAudit"},{title:p(()=>[a("div",hn,[a("div",null,[xe(I(o(i)("label.autoAudit"))+" ",1),u(_e,{permission:("Actions"in k?k.Actions:o(w)).AUDIT},{default:p(()=>[me((r(),x(j,{type:"primary",circle:"",link:"",onClick:D[0]||(D[0]=ge(de=>n("audit"),["stop"]))},{default:p(()=>[u(Q,null,{default:p(()=>[u(he)]),_:1})]),_:1})),[[ce,o(i)("label.autoAudit")]])]),_:1},8,["permission"]),u(_e,{permission:("Actions"in k?k.Actions:o(w)).VERIFICATION},{default:p(()=>[me((r(),x(j,{type:"primary",circle:"",link:"",onClick:D[1]||(D[1]=ge(de=>n("verification"),["stop"]))},{default:p(()=>[u(Q,null,{default:p(()=>[u(Pe)]),_:1})]),_:1})),[[ce,o(i)("button.verification")]])]),_:1},8,["permission"])]),a("div",null,[me((r(),x(j,{type:"primary",link:"",onClick:D[2]||(D[2]=ge(de=>o(f)?.showDialog(),["stop"]))},{default:p(()=>[u(Q,null,{default:p(()=>[u(Ie)]),_:1})]),_:1})),[[ce,o(i)("button.detail")]])])])]),default:p(()=>[u(fo,V(s.aProps,{ref_key:"autoAuditRef",ref:f}),null,16)]),_:1})):N("",!0),s.pProps?(r(),x(De,{key:1,name:"ticketProperty"},{title:p(()=>[a("div",_n,[a("div",null,I(o(i)("label.ticketProperty")),1),u(_e,{permission:("Actions"in k?k.Actions:o(w)).UPDATE},{default:p(()=>[me((r(),x(j,{type:"primary",circle:"",link:"",onClick:ge(P,["stop"])},{default:p(()=>[u(Q,null,{default:p(()=>[u(le)]),_:1})]),_:1})),[[ce,o(i)("button.edit")]])]),_:1},8,["permission"])])]),default:p(()=>[u(_o,{ref_key:"formRef",ref:_,"show-message":!1,"label-position":"left",class:"border-bottom-Form","label-width":"120",size:"small",items:s.pProps.items,model:o(C),disabled:o(c)},null,8,["items","model","disabled"])]),_:1})):N("",!0)]),_:1},8,["modelValue"])]),_:1})],4)])}}}),bn=Tt(vn,[["__scopeId","data-v-daab3ed6"]]),yn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function gn(t,e){return r(),d("svg",yn,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"},null,-1)])])}const wn=E({name:"ep-arrow-right-bold",render:gn}),kn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function xn(t,e){return r(),d("svg",kn,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"},null,-1)])])}const Cn=E({name:"ep-arrow-left-bold",render:xn}),Pn={class:"flex gap-6"},Dn={key:0,class:"flex flex-col items-center justify-center gap-1"},Vn={key:2},Tn={key:0,class:"el-statistic__footer text-[10px]"},ft="¥",En=2,$n=Y({__name:"AmountStatistic",props:{billAmount:{default:0},invoiceAmount:{default:0}},setup(t){const e=t,{t:s}=Ae(),n=s("unit.rmb"),i=mt(()=>e.billAmount,{duration:1500}),l=mt(()=>e.invoiceAmount,{duration:1500}),m=Rt([{name:"invoice",title:s("label.invoiceAmount"),value:l},{name:"bill",title:s("label.billAmount"),value:i}]),_=pe(()=>e.invoiceAmount-e.billAmount);return(C,v)=>{const f=tn,c=Cn,P=wn,F=We;return r(),d("div",Pn,[(r(!0),d(Z,null,Ce(o(m),(k,D)=>(r(),d(Z,{key:k.name},[u(f,V({ref_for:!0},k,{prefix:ft,precision:En,suffix:o(n),style:{"--el-statistic-content-font-size":"13px"}}),null,16,["suffix"]),D%2===0&&D<o(m).length-1?(r(),d("div",Dn,[u(F,{class:"font-black"},{default:p(()=>[o(_)<0?(r(),x(c,{key:0,class:"text-[var(--el-color-danger)]"})):o(_)>0?(r(),x(P,{key:1,class:"text-[var(--el-color-success)]"})):(r(),d("span",Vn,"="))]),_:1}),o(_)!==0?(r(),d("div",Tn,I(ft+o(_).toFixed(2)+o(n)),1)):N("",!0)])):N("",!0)],64))),128))])}}}),pt=Ge({preText:S("label.viewing"),separator:":",text:""});function Sn(t,e,s){const n={...s,businessTypeCode:t,businessKey:e};return Qt.get("/svc/finance/business-logs",{params:n})}const Se=O(!1),$t=Ge({data:[],items:{createdOn:{label:S("label.logDate"),formatter:Bo(Ho.datetime),width:"160px"},operationSourceName:{label:S("label.source")},businessDataTypeName:{label:S("label.businessDataType")},operatorName:{label:S("label.operator")},operationTypeName:{label:S("label.operationDisplayName")},remark:{}}}),L=Ke({currentPage:1,pageSize:10,total:0}),Ue={refresh:An};async function An(t,e){const s=t||L.currentPage,n=e||L.pageSize,m={start:s*n-n,limit:n,sort:JSON.stringify([{property:"createdOn",direction:"DESC"}])},{bisCategory:_,businessKey:C}=y(),{success:v,data:f}=await Sn(_,C,m);v&&($t.data=f.logs,L.total=f.total)}const W=O(""),Nn={size:"default",prefixIcon:no,clearable:!0},In=Ge({data:{}}),Fn={change(t){const{filterTreeNodeKeys:e}=Vt(y());e.value=t?t.nodeKeys:null}},Rn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Mn(t,e){return r(),d("svg",Rn,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M19 3h-5v2h5v13l-5-6v9h5a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 15H5l5-6m0-9H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h5v2h2V1h-2z"},null,-1)])])}const On=E({name:"mdi-compare",render:Mn}),Bn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Hn(t,e){return r(),d("svg",Bn,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M23 18h-8v2h8M6 2a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h7.81c-.36-.62-.61-1.3-.73-2H6V4h7v5h5v4.08c.33-.05.67-.08 1-.08c.34 0 .67.03 1 .08V8l-6-6M8 12v2h8v-2m-8 4v2h5v-2Z"},null,-1)])])}const zn=E({name:"mdi-file-document-minus-outline",render:Hn}),Ln={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function jn(t,e){return r(),d("svg",Ln,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M23 18h-3v-3h-2v3h-3v2h3v3h2v-3h3M6 2a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h7.81c-.36-.62-.61-1.3-.73-2H6V4h7v5h5v4.08c.33-.05.67-.08 1-.08c.34 0 .67.03 1 .08V8l-6-6M8 12v2h8v-2m-8 4v2h5v-2Z"},null,-1)])])}const Kn=E({name:"mdi-file-document-plus-outline",render:jn}),Un={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Jn(t,e){return r(),d("svg",Un,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M6 2c-.53 0-1.04.21-1.41.59C4.21 2.96 4 3.47 4 4v16c0 .53.21 1.04.59 1.41c.37.38.88.59 1.41.59h7c-.37-.6-.66-1.28-.83-2H6V4h7v5h5v3h.5c.5 0 1 .06 1.5.17V8l-6-6zm6 16c.07-.7.24-1.38.5-2H8v2zm1.81-4c.62-.64 1.36-1.15 2.19-1.5V12H8v2zm4.19.5c1.11 0 2.11.45 2.83 1.17L22 14.5v4h-4l1.77-1.77A2.5 2.5 0 1 0 20 20h1.71A3.99 3.99 0 0 1 18 22.5c-2.21 0-4-1.79-4-4s1.79-4 4-4"},null,-1)])])}const Gn=E({name:"mdi-file-document-refresh-outline",render:Jn}),Wn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function qn(t,e){return r(),d("svg",Wn,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M22.54 21.12L20.41 19l2.13-2.12l-1.42-1.42L19 17.59l-2.12-2.13l-1.42 1.42L17.59 19l-2.13 2.12l1.42 1.42L19 20.41l2.12 2.13M6 2a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h7.81c-.36-.62-.61-1.3-.73-2H6V4h7v5h5v4.08c.33-.05.67-.08 1-.08c.34 0 .67.03 1 .08V8l-6-6M8 12v2h8v-2m-8 4v2h5v-2Z"},null,-1)])])}const Zn=E({name:"mdi-file-document-remove-outline",render:qn}),Yn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Xn(t,e){return r(),d("svg",Yn,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-9.5 8.5c0 .8-.7 1.5-1.5 1.5H7v2H5.5V9H8c.8 0 1.5.7 1.5 1.5zm5 2c0 .8-.7 1.5-1.5 1.5h-2.5V9H13c.8 0 1.5.7 1.5 1.5zm4-3H17v1h1.5V13H17v2h-1.5V9h3zm-6.5 0h1v3h-1zm-5 0h1v1H7z"},null,-1)])])}const Qn=E({name:"mdi-file-pdf-box",render:Xn}),es={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function ts(t,e){return r(),d("svg",es,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M21 11.1V8c0-1.1-.9-2-2-2h-8L9 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7.2c1.2 1.8 3.4 3 5.8 3c3.9 0 7-3.1 7-7c0-1.9-.8-3.6-2-4.9M9.3 18H3V8h16v1.7c-.9-.5-1.9-.7-3-.7c-3.9 0-7 3.1-7 7c0 .7.1 1.4.3 2m6.7 3c-2.8 0-5-2.2-5-5s2.2-5 5-5s5 2.2 5 5s-2.2 5-5 5m1-7h-2v-2h2zm0 6h-2v-5h2z"},null,-1)])])}const os=E({name:"mdi-folder-information-outline",render:ts}),ns={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function ss(t,e){return r(),d("svg",ns,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M20 18H4V8h16m0-2h-8l-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2m-4 11h-2v-4h-3l4-4l4 4h-3Z"},null,-1)])])}const rs=E({name:"mdi-folder-upload-outline",render:ss}),is={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function ls(t,e){return r(),d("svg",is,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M13.5 8H12v5l4.28 2.54l.72-1.21l-3.5-2.08zM13 3a9 9 0 0 0-9 9H1l3.96 4.03L9 12H6a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.9 8.9 0 0 0 13 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9"},null,-1)])])}const as=E({name:"mdi-history",render:ls}),cs={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function ds(t,e){return r(),d("svg",cs,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M2 5v14h12v-2h-2c-1.11 0-2-.89-2-2V9c0-1.11.89-2 2-2h2V5m0 2v2h2V7m-2 2h-2v6h2m0 0v2h2v-2M5 7h2c1.11 0 2 .89 2 2v6c0 1.11-.89 2-2 2H5c-1.11 0-2-.89-2-2V9c0-1.11.89-2 2-2m12 0v10h2v-4h1v1h1v3h2v-3h-1v-2h1V8h-1V7M5 9v6h2V9m12 0h2v2h-2Z"},null,-1)])])}const us=E({name:"mdi-ocr",render:ds}),ms={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function fs(t,e){return r(),d("svg",ms,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M17.65 6.35A7.96 7.96 0 0 0 12 4a8 8 0 0 0-8 8a8 8 0 0 0 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18a6 6 0 0 1-6-6a6 6 0 0 1 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},null,-1)])])}const ps=E({name:"mdi-refresh",render:fs}),hs={upload:{icon:bt,permission:w.UPLOAD,disabled:t=>{const{showCheckbox:e}=y();return e||!t?!0:!T.isCanUpload(t)},handler(){$.upload(y().currentNodeData)}},print:{icon:Gt,permission:w.PRINT,disabled:$e("print",T.isCanPrint),handler:Ee("print",T.isCanPrint,$.print)},download:{icon:zo,permission:w.DOWNLOAD,disabled:$e("download",T.isCanDownload),handler:Ee("download",T.isCanDownload,$.download)},downloadPDF:{icon:Qn,permission:w.DOWNLOAD,disabled:$e("print",T.isCanPrint),handler:Ee("print",T.isCanPrint,$.downloadPDF)},delete:{icon:vt,permission:w.DELETE,disabled:$e("delete",T.isCanDelete),handler:Ee("delete",T.isCanDelete,$.delete)},manualAudit:{icon:us,permission:w.DISCERN,disabled:()=>{const{showCheckbox:t}=y();return t},handler(){$.manualAudit()}},compare:{icon:On,permission:w.COMPARE,disabled:()=>{const{showCheckbox:t,treePropsDisabledFnKey:e}=y();return t?e!=="compare":!1},handler:async()=>{const t=y(),{showCheckbox:e,currentCheckedNodesData:s}=t;e&&s.length&&!await $.compare(s)||(t.treePropsDisabledFnKey=e?"default":"compare",t.showCheckbox=!t.showCheckbox)}},history:{icon:as,permission:w.HISTORY,disabled:()=>{const{showCheckbox:t}=y();return t},async handler(){L.currentPage=1,Ue.refresh(),Se.value=!0}},rejectAdd:{permission:w.REJECT,icon:Kn,disabled:()=>{const{showCheckbox:t,treePropsDisabledFnKey:e}=y();return t?e!=="rejectAdd":!1},handler:async()=>{const t=y(),{showCheckbox:e,currentCheckedNodesData:s}=t;if(e&&s.length){const n=s.map(i=>i.ticketPath);t.addTicketPaths.push(...n)}t.treePropsDisabledFnKey=e?"default":"rejectAdd",t.showCheckbox=!t.showCheckbox,t.checkStrictly=!t.checkStrictly}},rejectRefresh:{permission:w.REJECT,icon:Gn,disabled:()=>{const{showCheckbox:t,treePropsDisabledFnKey:e}=y();return t?e!=="rejectRefresh":!1},handler:async()=>{const t=y(),{showCheckbox:e,currentCheckedNodesData:s}=t;e&&s.length&&!await $.reject(s,"3")||(t.treePropsDisabledFnKey=e?"default":"rejectRefresh",t.showCheckbox=!t.showCheckbox)}},rejectRemove:{permission:w.REJECT,icon:zn,disabled:()=>{const{showCheckbox:t,treePropsDisabledFnKey:e}=y();return t?e!=="rejectRemove":!1},handler:async()=>{const t=y(),{showCheckbox:e,currentCheckedNodesData:s}=t;e&&s.length&&!await $.reject(s,"2")||(t.treePropsDisabledFnKey=e?"default":"rejectRemove",t.showCheckbox=!t.showCheckbox)}},rejectAll:{permission:w.REJECT,icon:Zn,disabled:()=>{const{showCheckbox:t}=y();return t},handler:async()=>{const{bisCategory:t,id:e}=y(),{success:s}=await Lo(t,e);s&&Ne.success({message:S("message.success-action",{action:S("button.rejectAll")}),onClose:()=>{eo(!0)}})}},refresh:{icon:ps,disabled:()=>{const{showCheckbox:t}=y();return t},handler(){const{id:t,bisCategory:e}=y();Et(e,t)}}},_s={submit:{icon:rs,permission:w.SUBMIT,disabled:()=>{const{showCheckbox:t}=y();return t},type:"primary",handler(){$.submit(q.value)}},checked:{icon:os,permission:w.CHECKED,disabled:()=>{const{showCheckbox:t}=y();return t},type:"primary",handler(){$.checked()}}},vs={data:hs,extraData:_s};function Ee(t,e,s){return async()=>{const n=bs(e);if(n){const i=Array.isArray(n);if(!await s(i?n:[n])||!i)return;q.value?.setCheckedKeys([],!0)}ys(t)}}function bs(t){const e=y(),{showCheckbox:s,currentCheckedNodesData:n,currentNodeData:i}=e;if(s&&n.length)return n;if(!s&&i&&t(i))return i}function $e(t,e){return()=>{const{treePropsDisabledFnKey:s,showCheckbox:n,currentNodeData:i}=y();return n?s!==t:i?T.isDocNode(i)?!e(i):!1:!0}}function ys(t){const e=y();e.treePropsDisabledFnKey=e.showCheckbox?"default":t,we(()=>{e.showCheckbox=!e.showCheckbox,e.showCheckbox&&Ne.info(S("message.checkedNode"))})}const gs={upload:{icon:bt,permission:w.UPLOAD,disabled(t){return!T.isCanUpload(t)},handler(t){$.upload(t)}},delete:{icon:vt,permission:w.DELETE,disabled(t){return!T.isCanDelete(t)},handler(t){$.delete([t])}}},ws={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function ks(t,e){return r(),d("svg",ws,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M13.81 22H6c-1.11 0-2-.89-2-2V4a2 2 0 0 1 2-2h8l6 6v5.09c-.33-.05-.66-.09-1-.09s-.67.04-1 .09V9h-5V4H6v16h7.09c.12.72.37 1.39.72 2M23 18h-8v2h8z"},null,-1)])])}const xs=E({name:"mdi-file-minus-outline",render:ks}),Cs={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Ps(t,e){return r(),d("svg",Cs,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M13.81 22H6c-1.11 0-2-.89-2-2V4a2 2 0 0 1 2-2h8l6 6v5.09c-.33-.05-.66-.09-1-.09s-.67.04-1 .09V9h-5V4H6v16h7.09c.12.72.37 1.39.72 2M23 18h-3v-3h-2v3h-3v2h3v3h2v-3h3z"},null,-1)])])}const Ds=E({name:"mdi-file-plus-outline",render:Ps}),Vs={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Ts(t,e){return r(),d("svg",Vs,[...e[0]||(e[0]=[a("path",{fill:"currentColor",d:"M12.8 22H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h8l6 6v3.5c-.6-.3-1.3-.4-2-.5V9h-5V4H6v16h5.5c.3.7.8 1.4 1.3 2M17 12l-2.2 2.2l2.2 2.2V15c1.4 0 2.5 1.1 2.5 2.5c0 .4-.1.8-.3 1.1l1.1 1.1c.4-.6.7-1.4.7-2.2c0-2.2-1.8-4-4-4zm2.2 8.8L17 18.5V20c-1.4 0-2.5-1.1-2.5-2.5c0-.4.1-.8.3-1.1l-1.1-1.1c-.4.6-.7 1.4-.7 2.2c0 2.2 1.8 4 4 4V23z"},null,-1)])])}const Es=E({name:"mdi-file-sync-outline",render:Ts}),$s={rejectAdd:{icon:Ds,permission:w.REJECT,disabled(t){const{addTicketPaths:e}=y();return!e.includes(t.ticketPath)||T.isDocNode(t)},handler(t){const e=S("button.remove")+S("button.rejectAdd");je(()=>{const n=y(),i=n.addTicketPaths.findIndex(l=>l===t.ticketPath);n.addTicketPaths.splice(i,1)},e)}},rejectRefresh:{icon:Es,permission:w.REJECT,disabled(t){return t.status!=="3"||T.isFolderNode(t)},handler(t){const e=S("button.remove")+S("button.rejectRefresh");je(()=>{$.reject([t],"1")},e)}},rejectRemove:{icon:xs,permission:w.REJECT,disabled(t){return t.status!=="2"||T.isFolderNode(t)},handler(t){const e=S("button.remove")+S("button.rejectRemove");je(()=>{$.reject([t],"1")},e)}}},Ss={class:"flex flex-col size-full overflow-hidden OnlineBrowsing"},As={class:"flex-shrink-0 w-full h-10 overflow-hidden flex items-center justify-between relative OnlineBrowsing-TitleAll"},Ns={class:"flex-shrink-0 text-lg pl-2 font-medium OnlineBrowsing-Title"},Is={class:"absolute h-full -translate-x-1/2 left-1/2 overflow-hidden flex justify-center OnlineBrowsing-Prompt"},Fs={class:"flex-shrink-0 flex justify-center pr-2 OnlineBrowsing-Money"},Rs={class:"flex-1 w-full overflow-hidden relative flex OnlineBrowsing-Main"},Ms={class:"flex-1 h-full overflow-hidden flex flex-col OnlineBrowsing-Center"},Os={class:"flex flex-1 w-full overflow-hidden"},Bs={class:"bg-white w-[260px] flex-shrink-0 pl-2 flex flex-col overflow-hidden"},Hs={class:"rounded-tr-sm w-full p-2 flex-1 overflow-hidden"},zs={style:{height:"calc(70vh - 120px)"},class:"gap-2 overflow-hidden flex flex-col"},Ls={key:1,class:"text-xs text-info"},St=Y({components:{CustomText:st,Stat:nt,FileViewer:rt,FileList:ot},__name:"index",props:{bisCategory:{},id:{}},setup(t){const e=t,s=jo("/finance/[bisCategory]/[id]/"),n=pe(()=>e.bisCategory||s.params.bisCategory),i=pe(()=>e.id||s.params.id),{t:l}=Ae(),{canToPDFSuffixArray:m,currentNode:_,currentNodeData:C,currentNodeKey:v,filterTreeNodeKeys:f,documentData:c,id:P,bisCategory:F,businessKey:k,showCheckbox:D,currentCheckedNodeKeys:X,checkStrictly:he,associationTreeNodeKeys:Q,treeData:j,invoiceAmount:_e,statData:Pe,documentTypes:Ie}=Vt(y()),{addRecord:De}=Po(),le=Ke({componentName:"Stat"}),ae=Ke({componentName:"FileList"});async function Fe(){const{success:h,data:g}=await Co();h&&(m.value=g)}async function ce(h){we(()=>{const g=v.value;let R=h[0][Be];g&&q.value?.getNode(g)&&(R=g),q.value?.setCurrentKey(R),we(()=>{_.value=q.value?.getNode(R)})})}function de(h){return h.map(g=>{const R=g[it],{contentType:ee,streamLength:ve=0,streamId:te="",thumbnailId:K,documentType:U,id:oe}=g,J={type:U||F.value,id:oe||P.value},ne=Eo(R,ee),B=$o(ne),M=K?ko({...J,streamId:te,thumbnailId:K}):ne==="image"?xo({...J,streamId:te}):B;return{...g,label:R,src:M,fileIcon:B,size:ve}})}function qe(){q.value?.filter(W.value),at.value?.filter(W.value)}async function At(){if(!n.value||!i.value)return Ne.error(l("message.not-found"));await Et(n.value,i.value),Fe()}return Mt(()=>{At()}),ht(()=>{j.value?.length&&ce(j.value)}),fe(C,async h=>{if(!h||!c.value)return;const{financeType:g,ticketTypeCode:R,documentType:ee,id:ve,_attribute:te}=h;let K=null,U=null,oe=null;const J=g||R||ee,ne=T.isDocNode(h);if(J&&ee!=="finance_original_image"&&(ne||te==="groupDoc")){const{success:B,data:M}=await Wt(J,ve),se=(Ie.value||{})[J]?.properties;if(B&&se){se.findIndex(b=>b.name==="id")>-1||se.push({displayed:!0,inherited:!0,length:50,name:"id",propDisplayName:"ID",required:!1,type:"keyword"});const{formProps:Me,formModelValues:Te}=Xe(se,M,b=>!!b.displayed,b=>!!b.inherited&&b.name!=="remark");if(K={items:Me,modelValue:Te},M.goodsItems){const b=se.filter(H=>H.name.startsWith("goodsItems.")).map(H=>({...H,name:H.name.replace("goodsItems.","")})),{formProps:Oe}=Xe(b,{},()=>!0);U={modelValue:M.goodsItems,items:Oe}}M.checkRules?.length&&(oe={data:M.checkRules})}}if(ne){pt.text=h[it];const{documentType:B,id:M}=h,Ve=Do(h,{id:M||P.value,type:B||F.value},m.value);re.vProps={...re.vProps,...Ve},re.pProps=K,re.gProps=U,re.aProps=oe,re.data=h,Q.value=[h[Be],h.id,h.invoiceNo,h.ticketDocId].filter(Boolean),De(h[Be]),le.componentName="CustomText",ae.componentName="FileViewer"}else{const B=Vo(h[To]||[]);z.fileList=de(B),z.pProps=K,z.gProps=U,z.aProps=oe,z.data=h,Q.value=[],le.componentName="Stat",ae.componentName="FileList",we(()=>{qe()})}},{immediate:!0,deep:!0}),fe(D,h=>{He.showCheckbox=h,z.showCheckbox=h,h||q.value?.setCheckedKeys([])},{immediate:!0}),fe(X,h=>{we(()=>{He.defaultCheckedKeys=h,z.defaultCheckedKeys=h})},{immediate:!0,deep:!0}),qt([W,f,c],()=>{qe()}),(h,g)=>{const R=to,ee=$n,ve=oo,te=We,K=Dt,U=Pt,oe=io,J=ro,ne=Ct,B=bn,M=Ko,Ve=ao,se=lo,Re=go,Me=mn,Te=_t("tooltip");return r(),d("div",Ss,[a("div",As,[a("div",Ns,[o(c)?(r(),d(Z,{key:0},[xe(I(o(c).label)+" ",1),u(R,{size:"small"},{default:p(()=>[xe(I(("findByProperty"in h?h.findByProperty:o(wo))(("SELECT_OPTIONS"in h?h.SELECT_OPTIONS:o(Zt)).status,{value:o(c).status})),1)]),_:1})],64)):N("",!0)]),a("div",Is,[o(le).componentName==="Stat"&&o(Pe)?(r(),x(nt,V({key:0},o(In),{data:o(Pe)},ue(o(Fn))),null,16,["data"])):o(le).componentName==="CustomText"?(r(),x(st,Ot(V({key:1},o(pt))),null,16)):N("",!0)]),a("div",Fs,[u(ee,{"bill-amount":o(c)?.amount||0,"invoice-amount":o(_e)},null,8,["bill-amount","invoice-amount"])])]),a("div",Rs,[a("div",Ms,[u(so,V(o(vs),{class:"flex-shrink-0 p-2 overflow-hidden bg-white"}),null,16),a("div",Os,[a("div",Bs,[u(ve,V({modelValue:o(W),"onUpdate:modelValue":g[0]||(g[0]=b=>ye(W)?W.value=b:null),class:"flex-shrink-0 w-full pb-2 pr-2"},o(Nn),{placeholder:o(l)("placeholder.search")}),null,16,["modelValue","placeholder"]),u(ne,{class:"flex-1 w-full overflow-hidden"},{default:p(()=>[u(U,null,{default:p(({permission:b})=>[u(J,V({ref_key:"treeRef",ref:q,class:"size-full"},o(He),{data:o(j),draggable:b.includes(o(w).MOVE)},ue(o(Io))),{default:p(Oe=>[u(oe,V(Oe,{search:o(W)}),{"tree-node-button-group":p(({data:H,node:Ze})=>[(r(!0),d(Z,null,Ce(o($s),(G,be)=>me((r(),x(R,{key:be,closable:b.includes(o(w).REJECT),size:"small",density:"comfortable",type:"warning",onClose:Nt=>G.handler(H,Ze)},{default:p(()=>[u(te,{size:"16"},{default:p(()=>[(r(),x(Ye(G.icon)))]),_:2},1024)]),_:2},1032,["closable","onClose"])),[[Bt,!o(Qe)(G.disabled||!1,H)],[Te,o(l)(`button.${be}`)]])),128)),(r(!0),d(Z,null,Ce(o(gs),(G,be)=>(r(),d(Z,{key:be},[o(Qe)(G.disabled||!1,H)?N("",!0):(r(),x(U,{key:0,permission:G.permission},{default:p(()=>[me((r(),x(K,{link:"",size:"small",style:{"margin-right":"10px"},onClick:ge(Nt=>G.handler(H,Ze),["stop"])},{default:p(()=>[u(te,null,{default:p(()=>[(r(),x(Ye(G.icon)))]),_:2},1024)]),_:2},1032,["onClick"])),[[Te,o(l)(`button.${be}`)]])]),_:2},1032,["permission"]))],64))),128))]),_:2},1040,["search"])]),_:2},1040,["data","draggable"])]),_:1})]),_:1})]),a("div",Hs,[o(ae).componentName==="FileList"?(r(),x(B,V({key:0},o(z),ue(o(lt))),{default:p(()=>[u(ot,V({ref_key:"fileListRef",ref:at,class:"size-full"},o(z),{search:o(W)},ue(o(Fo))),null,16,["search"])]),_:1},16)):o(ae).componentName==="FileViewer"?(r(),x(rt,V({key:1,ref_key:"fileViewerRef",ref:Ro,class:"size-full"},o(re),ue(o(lt))),null,16)):N("",!0)])])]),u(o(Ao),{class:"flex-shrink-0 flex-col w-[260px] h-full"})]),u(Re,{modelValue:o(Se),"onUpdate:modelValue":g[3]||(g[3]=b=>ye(Se)?Se.value=b:null),title:o(l)("button.history"),"append-to-body":""},{default:p(()=>[a("div",zs,[u(Ve,V({class:"flex-1"},o($t),{height:"100%","show-overflow-tooltip":""}),{before:p(()=>[u(M,{type:"expand"},{default:p(b=>[b.row.operationDetail?(r(),x(No,{key:0,data:b.row},null,8,["data"])):(r(),d("span",Ls,I(o(l)("message.noData")),1))]),_:1})]),_:1},16),u(se,V({"current-page":o(L).currentPage,"onUpdate:currentPage":g[1]||(g[1]=b=>o(L).currentPage=b),"page-size":o(L).pageSize,"onUpdate:pageSize":g[2]||(g[2]=b=>o(L).pageSize=b),total:o(L).total,class:"flex-shrink-0"},ue(o(Ue)),{onChange:o(Ue).refresh}),null,16,["current-page","page-size","total","onChange"])])]),_:1},8,["modelValue","title"]),u(So,V(o(Mo),{modelValue:o(ze),"onUpdate:modelValue":g[4]||(g[4]=b=>ye(ze)?ze.value=b:null)}),null,16,["modelValue"]),u(Re,{modelValue:o(Le),"onUpdate:modelValue":g[5]||(g[5]=b=>ye(Le)?Le.value=b:null),title:o(l)("button.compare"),"append-to-body":""},{default:p(()=>[u(Me,V({style:{height:"calc(70vh - 120px)"}},o(Oo)),null,16)]),_:1},8,["modelValue","title"])])}}});typeof ct=="function"&&ct(St);const Pr=Tt(St,[["__scopeId","data-v-976219f5"]]);export{Pr as default};
|
|
Binary file
|
|
Binary file
|