cnhis-design-vue 3.2.16-beta.8 → 3.2.17-release.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/es/components/base-search/style/index.css +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/card-reader-sdk-cn/index.d.ts +18 -0
- package/es/components/card-reader-sdk-cn/index.js +1 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.d.ts +17 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +1 -0
- package/es/components/classification/index.d.ts +9 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +9 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -0
- package/es/components/classification/src/index.vue.d.ts +9 -0
- package/es/components/expand-field/index.d.ts +28 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +28 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +28 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +28 -1
- package/es/components/expand-field/src/index.vue.d.ts +28 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- package/es/components/form-config/index.d.ts +147 -24
- package/es/components/form-config/src/FormConfig.vue.d.ts +147 -24
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +210 -95
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
- package/es/components/iho-chat/index.d.ts +321 -365
- package/es/components/iho-chat/src/Index.vue.d.ts +321 -365
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +9 -0
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +18 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +18 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +65 -182
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +94 -182
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +9 -0
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +37 -20
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +19 -91
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +10 -91
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +18 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +12 -46
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +54 -0
- package/es/components/iho-chat/src/components/SelectLabel.vue.js +1 -0
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +1 -0
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +9 -0
- package/es/components/iho-chat/src/components/Video.vue.d.ts +9 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +30 -0
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +9 -0
- package/es/components/iho-chat/src/types/index.d.ts +9 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/index.css +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +7 -7
- package/es/components/select-label/index.d.ts +7 -7
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +5 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +7 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +5 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
- package/es/components/select-label/src/index.vue.d.ts +7 -7
- package/es/components/select-label/src/types/index.d.ts +4 -1
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +28 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/index.vue.d.ts +28 -1
- package/es/components/select-person/src/index.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +2 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +9 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +8 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +9 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +9 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -7
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +8 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +11 -7
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +11 -7
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
@font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;flex-wrap:nowrap}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px;white-space:nowrap}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.classify-fieldkey-popover{width:200px}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .base-row{align-items:center;display:flex}.base-search-block .base-container .bease-left .base-ul .baseli .base-row .title{padding-left:4px;white-space:nowrap}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
|
1
|
+
@font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;flex-wrap:nowrap}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px;white-space:nowrap}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .edit-f-content .label-f-content .label-img{border:1px solid #e0e0e6;box-sizing:border-box;cursor:pointer;display:block;margin:0 8px 8px 0;max-height:32px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.classify-fieldkey-popover{width:200px}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .base-row{align-items:center;display:flex}.base-search-block .base-container .bease-left .base-ul .baseli .base-row .title{padding-left:4px;white-space:nowrap}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
|
@@ -1 +1 @@
|
|
1
|
-
import{createElementVNode as e,defineComponent as t,inject as n,ref as i,reactive as a,computed as r,onMounted as l,onBeforeUnmount as o,watch as s,openBlock as u,createElementBlock as d,Fragment as c,createCommentVNode as p,createVNode as m,unref as v,withCtx as g,renderList as y,createBlock as f,mergeProps as w,createTextVNode as h,toDisplayString as k,normalizeStyle as b,isRef as P,renderSlot as C,withModifiers as S,normalizeClass as I}from"vue";import{isObject as L}from"@vue/shared";import{useMessage as O,NButtonGroup as x,NDropdown as T,NButton as j,NIcon as M,NPopover as E,NCheckbox as F,NDivider as B}from"naive-ui";import{PrintOutline as N,SettingsOutline as _,ChevronDownSharp as D,ArrowForwardOutline as R}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as J}from"../constants/index.js";import{Print as U}from"../utils/print.js";import{isIReport as z}from"../utils/browserPrint.js";import A from"./IdentityVerification.vue.js";import{format as K}from"date-fns";import"../api.js";import"../../../shortcut-provider/index.js";import{encapBrowserLog as V}from"../../../../shared/utils/index.js";import{useShortcuts as H}from"../../../shortcut-provider/src/hooks/useShortcuts.js";var $,G,Y,q,Q,W,X;const Z={class:"newprint-button-outer"},ee={key:0,class:"newprint-button-outer__shortcut"},te=e("span",{class:"label bold"},(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.473"))||"外显设置",-1),ne={class:"print-lite"},ie={class:"label bold"},ae={class:"print-li"},re={class:"print-lite"},le={key:0,class:"newprint-button-outer__shortcut"},oe=["onMouseenter","onClick"],se={class:"label bold"},ue={class:"print-lite"},de={class:"label bold"},ce={class:"print-li"},pe={class:"print-lite"},me=["onClick"],ve={key:0,class:"newprint-button-outer__shortcut"},ge={class:"newprint-button-poperOver"},ye=["onMouseenter"],fe={class:"print-lite"},we=["onClick"];var he=t({__name:"NewPrintComponent",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.478"))||"打印",type:String},printText:{default:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.479"))||"直接打印",type:String},previewText:{default:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.480"))||"打印预览",type:String},pdfLoadText:{default:(null==(Q=window.getLanguageByCode)?void 0:Q.call(window,"10010.1.481"))||"下载pdf",type:String},formatEditText:{default:(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.482"))||"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:(null==(X=window.getLanguageByCode)?void 0:X.call(window,"10010.1.483"))||"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number},resolution:{type:Number},newPrintSetting:{type:Object,default:()=>({isShowPrintAll:!0,printAllType:1,isShowOutSetting:!0,customProps:{},outerPrintKeys:[],defaultFormatId:"",shortcut:{},buttonProps:{},showMaxHeight:null})},svrUpdateIp:{type:String}},setup(t,{expose:$}){var G,Y,q;const Q=t;String(navigator.platform).toLowerCase().includes("linux");const W=[{label:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.476"))||"分割线",key:"divider"},{label:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.473"))||"外显设置",key:"outSetting"}],X=O();let he;const ke=n(J),be=i(""),Pe=a({spinning:!1,visible:!1,formatList:[],templateParams:[],printParams:[],originParams:{},currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,isClickOuterPrint:!1,curPrintParamList:[],iReportExecuteMode:1}),Ce=i({});let Se=i([]),Ie=i([{label:Q.previewText,key:"previewText"},{label:Q.pdfLoadText,key:"downloadPdf"},{label:Q.formatEditText,key:"formatEditText"},{label:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.484"))||"重置打印机",key:"resetPrinter"}]);const Le=a({oneMouseType:"",oneClickType:"",twoMouseType:""}),Oe=a({oneShow:!1,isOperation:!1,isOutSetting:!1}),xe=i([]),Te=i([]),je=r((()=>{if(!Pe.currentFormatId)return{};let e=Pe.currentFormatId;return Pe.formatList.find((t=>t.id===e))}));r((()=>{var e,t;return(null==(e=je.value)?void 0:e.name)||(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.485"))||"格式选择"}));const Me=r((()=>{let e=Pe.formatList.find((e=>e.id===Pe.currentFormatId));return null==e?void 0:e.templateId})),Ee=r((()=>{let e=Pe.formatList.find((e=>e.id===Pe.currentFormatId));return null==e?void 0:e.number})),Fe=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.isShowPrintAll})),Be=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.isShowOutSetting})),Ne=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.customProps)||{}})),_e=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.defaultFormatId)||""})),De=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.printAllType)||1})),Re=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.shortcut)||{}})),Je=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.buttonProps)||{}})),Ue=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.showMaxHeight)||{}})),ze=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.printAllFormatIds)||[]})),Ae=r((()=>{var e,t;return void 0===(null==(e=Q.newPrintSetting)?void 0:e.positionElement)?"body":null==(t=Q.newPrintSetting)?void 0:t.positionElement})),Ke=r((()=>{var e,t;const n=Object.keys(Re.value);if(n.length>0){if(_e.value&&n.includes(_e.value))return(null==(e=Re.value[_e.value])?void 0:e.shortcutLabel)||"";if(n.includes("all"))return(null==(t=Re.value.all)?void 0:t.shortcutLabel)||""}return""})),Ve=r((()=>{const e=W.map((e=>e.key));return Se.value.filter((t=>!e.includes(t.key)))})),He=r({get:()=>Ve.value.every((e=>e.selected)),set(e){Ve.value.forEach((t=>{t.selected=e}))}}),$e=async()=>{var e,t;(null==(t=null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)||await kt(),Oe.oneShow=!0},Ge=async e=>{if(Q.directPrint){if(Pe.spinning)return;return"button"===e?void(Fe.value?await Ct():_e.value?async function(e){await kt(!1);const t=xe.value.find((t=>t.key==e));t&&ot(t.templateCode,t.templateId,t.key,!1)}(_e.value):$e()):$e()}return $e()},Ye=(e,t)=>Pe.printParams[t.templateCode]?z(t.key)?e.filter((e=>"formatEditText"!=e.key)):e:[],qe=(e,t)=>{Le[e]=t},Qe=()=>{xe.value=Se.value.filter((e=>!e.selected)),Te.value=Ve.value.filter((e=>e.selected)),Xe("oneShow"),Xe("isOutSetting"),ke("saveOuterPrint",Te.value)},We=e=>{Oe[e]=!0},Xe=e=>{Le.oneClickType="",Oe[e]=!1,"isOutSetting"==e&&(Oe.isOutSetting=!1)},Ze=(e,t)=>{rt(!1);let n={type:t,formatId:Pe.currentFormatId,templateId:(null==e?void 0:e.templateId)||Me.value,templateCode:(null==e?void 0:e.templateCode)||Ee.value};V({type:"进入成功的回调",info:n},"PRINT-SDK"),ke("success",e,n)},et=e=>{rt(!1),V({type:"进入失败的回调",res:e},"PRINT-SDK"),ke("error",e),L(e)&&"notInstalledApp"===e.type&&X.error(e.message)},tt=e=>{rt(!1),ke("cancel",e)},nt=e=>{var t;const n={message:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.486"))||"前置条件执行错误",type:e,preExecution:!0};ke("error",n)},it=()=>JSON.stringify({...Q.token?{token:Q.token}:{}}),at=(e=[],t)=>{var n,i;let a={},r={};if((null==(n=Pe.templateParams[t].customizeDataset)?void 0:n.length)>0){const t=(null==(i=Object.keys(e[0].datasetData||{}))?void 0:i[0])||"",n=JSON.stringify(e.map((e=>JSON.parse(e.datasetData[t]))));r={datasetData:{}},r.datasetData[t]=n}else Object.keys(e[0]).forEach((t=>{r[t]=[],e.forEach((e=>{r[t].includes(e[t])||r[t].push(e[t])})),r[t]=r[t].join(",")}));return a=Object.assign({},JSON.parse(it()),r,Ne.value),JSON.stringify(a)},rt=(e,t)=>{if(Pe.isClickOuterPrint){if(e&&t){const n=Te.value.find((e=>e.key==t));return void(n&&(n.isLoading=e))}Te.value.forEach((e=>{e.isLoading=!1}))}else Pe.spinning=e},lt=()=>Pe.isClickOuterPrint?Te.value.some((e=>e.isLoading)):Pe.spinning,ot=(e,t,n,i)=>{const a=Pe.printParams[e];if(!a)return;Pe.isClickOuterPrint=i,Pe.currentFormatId=n;const r=Pe.originParams[e]||[];st(a,e,t,n,r)},st=async(e=[],t,n,i,a=[],r)=>{let l=e.length;const o=async e=>{try{--l<=0&&Ze(e,"print")}catch(e){console.log("error",e)}};Q.showLoading&<()&&!r||(rt(!0,i),Q.prevFn("print",{formatId:i,templateId:n,params:e}).then((()=>{var r;Pe.curPrintParamList=e;const l=(null==(r=Ne.value)?void 0:r.printdlgshow)||Q.printdlgshow,s={formatId:i,iReportExecuteMode:Pe.iReportExecuteMode,templateId:n,authorizationKey:be.value,printdlgshow:l,signature:Q.signature,copies:Q.printCopies,svrUpdateIp:Q.svrUpdateIp};if("MULTI"===Q.strategy)for(let t=0;t<e.length;t++){t>0&&(s.printdlgshow="0");const n=JSON.stringify(Object.assign({},JSON.parse(it()),e[t],Ne.value));he.printDirect({...s,params:n},o,et,tt)}else he.printDirect({...s,params:at(e,t)},(e=>{e.params=a,e.templateCode=t,e.templateId=n,Ze(e,"print")}),et,tt)})).catch((()=>{nt("print"),rt(!1)})).finally((()=>{Pe.visible=!1})))},ut=async(e,{templateCode:t,templateId:n,key:i},a)=>{const r=Pe.printParams[t];if(r)switch(Pe.isClickOuterPrint=a,Pe.currentFormatId=i,e){case"previewText":(async(e=[],t,n,i)=>{Q.showLoading&<()||(rt(!0,i),Q.prevFn("preview",{formatId:i,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e;const a=JSON.stringify(Object.assign({},JSON.parse(it()),e[0],Ne.value)),r="MULTI"===Q.strategy?a:at(e,t),l={formatId:i,templateId:n,iReportExecuteMode:Pe.iReportExecuteMode,authorizationKey:be.value,params:r,btnprint:Q.btnprint,signature:Q.signature};he.preview(l,(e=>{Ze(e,"preview")}),et)})).catch((()=>{nt("preview"),rt(!1)})).finally((()=>{Pe.visible=!1})))})(r,t,n,i);break;case"formatEditText":((e=[],t,n,i)=>{Q.showLoading&<()||(rt(!0,i),Q.prevFn("edit",{formatId:i,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e,Pe.currentFormatId=i,Pe.identityVerification.visible=!0})).catch((()=>{nt("edit")})).finally((()=>{rt(!1)})))})(r,0,n,i);break;case"downloadPdf":(async(e=[],t,n,i)=>{Q.showLoading&<()||(rt(!0,i),Q.prevFn("download",{formatId:i,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e;const a=JSON.stringify(Object.assign({},JSON.parse(it()),e[0],Ne.value)),r="MULTI"===Q.strategy?a:at(e,t),l={formatId:i,templateId:n,iReportExecuteMode:Pe.iReportExecuteMode,authorizationKey:be.value,print:{print:"1",type:"1",resolution:null==Q?void 0:Q.resolution},params:r,signature:Q.signature};he.downloadPDF(l,(e=>Ze(e,"preview")),et)})).catch((()=>{nt("download"),rt(!1)})).finally((()=>{Pe.visible=!1})))})(r,t,n,i);break;case"resetPrinter":(async(e=[],t,n,i)=>{var a,r,l;if(!Q.showLoading||!lt()){rt(!0,i);try{const e=await he.resetPrinter(i,Pe.iReportExecuteMode);if(rt(!1),"success"==(null==e?void 0:e.result))return void X.success((null==e?void 0:e.message)||(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.487"))||"重置打印机成功");X.warning((null==e?void 0:e.message)||(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.488"))||"重置打印机失败")}catch(e){rt(!1),X.warning((null==e?void 0:e.message)||(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.488"))||"重置打印机失败")}}})(r,0,0,i)}},dt=()=>{},ct=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},gt(n,t,e))})),n},pt=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},yt(n,t,e))})),n},mt=(e,t,n)=>{const i={};return t.forEach((t=>{let a=((e,t)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let i=t;return Object.keys(n).includes(e.type)&&t&&t instanceof Date&&(i=K(t,n[e.type])),(null==e?void 0:e.defaultValue)||i})(t,e[t[n]]);e[t[n]]&&a&&(i[t[n]]=a)})),i},vt=({customizeDataset:e=[],param:t=[]},n={})=>{let i={};return e.forEach((e=>{const t=e.dataSetting[0].selectFieldList;i.datasetData||(i.datasetData={}),i.datasetData[e.name]=JSON.stringify(mt(n,t,"fieldName"))})),i=Object.assign({},i,mt(n,t,"key")),i},gt=(e,t,n)=>{if(t.templateNumbers){for(let i=0;i<t.templateNumbers.length;i++){const a=t.templateNumbers[i],r=n[a];if(!r)return e;e[a]||(e[a]=[]),e[a].push(vt(r,t))}return e}const i=Object.keys(n);for(let a=0;a<i.length;a++){const r=i[a],l=n[r];if(!l)return e;e[r]||(e[r]=[]),e[r].push(vt(l,t))}return e},yt=(e,t,n)=>{if(t.templateNumbers){for(let i=0;i<t.templateNumbers.length;i++){const a=t.templateNumbers[i];if(!n[a])return e;e[a]||(e[a]=[]),e[a].push(t)}return e}const i=Object.keys(n);for(let a=0;a<i.length;a++){const r=i[a];if(!n[r])return e;e[r]||(e[r]=[]),e[r].push(t)}return e},ft=async e=>{var t;Pe.formatList=e?(e=>{let t=[];return e&&e.forEach((e=>{if(!e.format)return!1;t.push(...e.format.map((t=>Object.assign({},t,{templateName:e.name}))))})),t})(e.obj):[],Pe.iReportExecuteMode=(null==(t=null==e?void 0:e.obj)?void 0:t.length)>0&&e.obj[0].iReportExecuteMode||1,(()=>{var e,t,n;const i=Object.keys(Re.value),a=Pe.formatList.map((e=>{const t={templateCode:e.number,templateId:e.templateId,label:e.name,key:e.id,selected:!1,isLoading:!1};if(i.includes(e.id)){const n=Re.value[e.id];n&&(t.shortcutLabel=n.shortcutLabel)}return t}));Se.value.unshift(...a),Be.value&&Se.value.push(...W),(null==(t=null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)>0&&(Se.value.forEach((e=>{var t;(null==(t=Q.newPrintSetting)?void 0:t.outerPrintKeys.includes(e.key))&&(e.selected=!0)})),Te.value=Se.value.filter((e=>e.selected))),xe.value=Se.value.filter((e=>!e.selected)),Q.hideButtons.length>0&&(Ie.value=Ie.value.filter((e=>!Q.hideButtons.includes(e.key))));const r=sessionStorage.getItem("portal");if(r){const e=JSON.parse(r),t=(null==(n=null==e?void 0:e.user)?void 0:n.currentRoleResourceObj)||{},i=Object.keys(t);i.includes("RY7.2.21.1.M2.G94181E")||(Ie.value=Ie.value.filter((e=>"downloadPdf"!=e.key))),i.includes("RY7.2.21.1.M2.G33633A")||(Ie.value=Ie.value.filter((e=>"formatEditText"!=e.key))),i.includes("RY7.2.21.1.M2.G99314S")||(Ie.value=Ie.value.filter((e=>"resetPrinter"!=e.key)))}})(),Pe.templateParams=(e=>{let t={};return e&&e.forEach((e=>{if(!e.templateConfig)return!1;t[e.number]=e.templateConfig})),t})(e.obj),Pe.printParams=ct(Pe.templateParams,Q.params),Pe.originParams=pt(Pe.templateParams,Q.params),ht()},wt=async()=>{var e;if(Pe.isInited)return!0;Pe.isInited=!0,Pe.spinning=!0,(()=>{if(he)return!1;he=new U})();const t=await Q.queryPrintFormatByNumber();return await ft(t),(null==(e=t.obj)?void 0:e.length)>0&&(be.value=t.obj[0].authorizationKey||""),Pe.spinning=!1,!0},ht=async()=>{const e=Object.keys(Re.value);if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t],i=Re.value[n],{stop:a,signature:r}=H().register({label:i.code,shortcutSignature:i.shortcutKey,operation:["state","reset"],callback(){"all"==n&&Ge("button");const e=Ve.value.map((e=>e.key)),t=Pe.originParams;if(e.includes(n)){const e=Ve.value.find((e=>e.key==n));if(e){const n=Pe.printParams[null==e?void 0:e.templateCode],i=t[null==e?void 0:e.templateCode]||[];st(n,e.templateCode,e.templateId,e.key,i)}}}});Ce.value[n]=a}},kt=async(e=!0)=>{if(await Q.clickPrevFn()){if(!Pe.visible){if(!await wt())return!1}e&&(Pe.visible=!Pe.visible)}},bt=e=>{if(Pe.identityVerification.visible=!1,z(Pe.currentFormatId))return Ze({result:"success",message:""},"edit");const t=JSON.stringify(Object.assign({},JSON.parse(it()),Pe.curPrintParamList[0],Ne.value)),n="MULTI"===Q.strategy?t:at(Pe.curPrintParamList,Ee.value),i={formatId:Pe.currentFormatId,templateId:Me.value,params:n,token:e};he.editPrintFormat(i,(e=>{Ze(e,"edit")}),et)},Pt=(e,t)=>{const n=Te.value[t+1];return t<Te.value.length-1&&!Pe.printParams[e.templateCode]&&Pe.printParams[n.templateCode]};async function Ct(){await kt(!1),(()=>{var e;const t=Object.keys(Pe.printParams);Pe.isClickOuterPrint=!1;const n=Pe.originParams;if((null==(e=Object.keys(ze.value))?void 0:e.length)>0)Se.value.forEach((e=>{if(ze.value.includes(e.key)){const t=Pe.printParams[e.templateCode],i=n[e.templateCode]||[];Pe.currentFormatId=e.key,st(t,e.templateCode,e.templateId,e.key,i,!0)}}));else{if(1==De.value)for(let e=0;e<t.length;e++){const i=t[e],a=Pe.printParams[i],r=n[i]||[],l=Pe.formatList.filter((e=>e.number==i));l&&l.length>0&&l.forEach((e=>{Pe.currentFormatId=e.id,st(a,e.number,e.templateId,e.id,r,!0)}))}2==De.value&&Te.value.forEach((e=>{const t=Pe.printParams[e.templateCode],i=n[e.templateCode]||[];Pe.currentFormatId=e.key,st(t,e.templateCode,e.templateId,e.key,i,!0)}))}})()}return l((()=>{Pe.isInited=!1})),o((()=>{const e=Object.keys(Ce.value);e.length>0&&e.forEach((e=>{Ce.value[e]&&Ce.value[e]()}))})),s((()=>Q.params),(e=>{Object.keys(Pe.templateParams).length>0&&(Pe.printParams=ct(Pe.templateParams,Q.params),Pe.originParams=pt(Pe.templateParams,Q.params))}),{deep:!0}),s((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys}),(async e=>{(null==e?void 0:e.length)>0&&await kt(!1)}),{deep:!0,immediate:!0}),$({directPrint:Ct}),(n,i)=>(u(),d(c,null,[e("div",Z,[p(" 外显按钮集合 "),m(v(x),{class:"outButtonGroup"},{default:g((()=>[(u(!0),d(c,null,y(Te.value,((e,n)=>(u(),f(v(T),{key:e.key,class:"c-dropdown",placement:"bottom-start",trigger:"hover",onClickoutside:dt,options:Ye(v(Ie),e),onSelect:t=>ut(t,e,!0)},{default:g((()=>[m(v(j),w(v(Je),{disabled:!Pe.printParams[e.templateCode],loading:t.showLoading&&e.isLoading,onClick:t=>ot(e.templateCode,e.templateId,e.key,!0),class:n==Te.value.length-1?"outerLastButton":Pt(e,n)?"isPrintDisabled":""}),{icon:g((()=>[m(v(M),{component:v(N),size:"18"},null,8,["component"])])),default:g((()=>[h(" "+k(e.label)+" ",1),e.shortcutLabel?(u(),d("span",ee,k(e.shortcutLabel),1)):p("v-if",!0)])),_:2},1040,["disabled","loading","onClick","class"])])),_:2},1032,["options","onSelect"])))),128))])),_:1}),p(" 外显设置按钮 "),Te.value.length>0&&Te.value.length==v(Ve).length&&v(Be)&&2!=v(De)?(u(),f(v(E),{key:0,trigger:"click",to:v(Ae),"show-arrow":!1,show:Oe.isOutSetting,onClickoutside:i[2]||(i[2]=e=>Xe("isOutSetting"))},{trigger:g((()=>[m(v(j),w(v(Je),{class:Te.value.length>0?"printAllLeftCls":"",onClick:i[0]||(i[0]=e=>We("isOutSetting"))}),{default:g((()=>[te,m(v(M),{style:{"margin-left":"8px"},component:v(_),size:"18"},null,8,["component"])])),_:1},16,["class"])])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ne,[e("span",ie,k(t.label),1),m(v(F),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ae,[m(v(B)),e("div",re,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(F),{key:0,checked:v(He),"onUpdate:checked":i[1]||(i[1]=e=>P(He)?He.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])],4)])),_:1},8,["to","show"])):(u(),d(c,{key:1},[p(" 打印全部按钮 "),m(v(E),{trigger:"click","show-arrow":!1,to:v(Ae),show:Oe.oneShow,onClickoutside:i[10]||(i[10]=e=>Xe("oneShow"))},{trigger:g((()=>[C(n.$slots,"button",{handleClickPrintBtn:$e,handlePrintBySetting:()=>Ge("button"),printSpinning:Pe.spinning,printbtnText:t.btnText,printVisible:Pe.visible},(()=>[m(v(x),{class:"newprint-button-component",onClick:i[4]||(i[4]=S((()=>Ge("icon")),["stop"]))},{default:g((()=>[m(v(j),w({loading:t.showLoading&&Pe.spinning},v(Je),{onClick:i[3]||(i[3]=S((()=>Ge("button")),["stop"])),class:Te.value.length>0?"printAllLeftCls":""}),{icon:g((()=>[m(v(M),{component:v(N),size:"18"},null,8,["component"])])),default:g((()=>{var e;return[h(" "+k(v(Fe)?(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.475"))||"打印全部":t.btnText)+" ",1),v(Ke)?(u(),d("span",le,k(v(Ke)),1)):p("v-if",!0)]})),_:1},16,["loading","class"]),m(v(j),w({class:"icon-select"},v(Je)),{icon:g((()=>[m(v(M),{component:v(D),size:"18"},null,8,["component"])])),_:1},16)])),_:1})]))])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(xe.value,(t=>(u(),d("div",{class:I(["print-li",Le.oneMouseType==t.key||Le.oneClickType==t.key?"active":""]),key:t.key,onMouseenter:e=>qe("oneMouseType",t.key),onMouseleave:i[9]||(i[9]=e=>qe("oneMouseType","")),onClick:e=>((e,t,n)=>{if(!Pe.printParams[n.templateCode])return[];qe(e,t)})("oneClickType",t.key,t)},["divider"==t.key?(u(),f(v(B),{key:0})):"outSetting"==t.key?(u(),d(c,{key:1},[p(" 第二层外显设置 "),m(v(E),{trigger:"click","show-arrow":!1,to:v(Ae),placement:"right-start",show:Oe.isOutSetting,onClickoutside:i[7]||(i[7]=e=>Xe("isOutSetting"))},{trigger:g((()=>[e("div",{class:"print-lite",onClick:i[5]||(i[5]=e=>We("isOutSetting"))},[e("span",se,k(t.label),1),m(v(M),{color:Te.value.length>0?"#2563F4":"",component:v(_),size:"18"},null,8,["color","component"])])])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ue,[e("span",de,k(t.label),1),m(v(F),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ce,[m(v(B)),e("div",pe,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(F),{key:0,checked:v(He),"onUpdate:checked":i[6]||(i[6]=e=>P(He)?He.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])],4)])),_:2},1032,["to","show"])],2112)):(u(),d(c,{key:2},[p(" 第二层功能操作 "),e("div",{class:I(["print-lite",Pe.printParams[t.templateCode]?"":"isDisabled"])},[e("span",{class:"label bold",onClick:e=>ot(t.templateCode,t.templateId,t.key,!1)},[h(k(t.label)+" ",1),t.shortcutLabel?(u(),d("span",ve,k(t.shortcutLabel),1)):p("v-if",!0)],8,me),Pe.printParams[t.templateCode]?(u(),f(v(E),{key:0,trigger:"click","show-arrow":!1,to:v(Ae),placement:"right-start",show:Oe[t.key],onClickoutside:e=>Xe(t.key)},{trigger:g((()=>[m(v(M),{component:v(R),size:"18",onClick:e=>We(t.key)},null,8,["component","onClick"])])),default:g((()=>[e("div",ge,[(u(!0),d(c,null,y(Ye(v(Ie),t),(n=>(u(),d("div",{class:I(["print-li",Le.twoMouseType==n.key?"active":""]),key:n.key,onMouseenter:e=>qe("twoMouseType",n.key),onMouseleave:i[8]||(i[8]=e=>qe("twoMouseType",""))},[e("div",fe,[e("span",{class:"label",onClick:e=>ut(n.key,t,!1)},k(n.label),9,we)])],42,ye)))),128))])])),_:2},1032,["to","show","onClickoutside"])):p("v-if",!0)],2)],2112))],42,oe)))),128))],4)])),_:3},8,["to","show"])],2112))]),m(A,w(n.$attrs,{modelValue:Pe.identityVerification.visible,"onUpdate:modelValue":i[11]||(i[11]=e=>Pe.identityVerification.visible=e),formatId:Pe.currentFormatId,templateId:v(Me),onSuccess:bt}),null,16,["modelValue","formatId","templateId"])],64))}});export{he as default};
|
1
|
+
import{createElementVNode as e,defineComponent as t,inject as n,ref as a,reactive as i,computed as r,onMounted as l,onBeforeUnmount as o,watch as s,openBlock as u,createElementBlock as d,Fragment as c,createCommentVNode as p,createVNode as m,unref as v,withCtx as g,renderList as y,createBlock as f,mergeProps as w,createTextVNode as h,toDisplayString as k,normalizeStyle as b,isRef as P,renderSlot as C,withModifiers as S,normalizeClass as I}from"vue";import{isObject as L}from"@vue/shared";import{useMessage as O,NButtonGroup as x,NDropdown as T,NButton as j,NIcon as M,NPopover as E,NCheckbox as F,NDivider as B}from"naive-ui";import{PrintOutline as N,SettingsOutline as _,ChevronDownSharp as D,ArrowForwardOutline as R}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as J}from"../constants/index.js";import{Print as U}from"../utils/print.js";import{isIReport as z}from"../utils/browserPrint.js";import A from"./IdentityVerification.vue.js";import{format as K}from"date-fns";import"../api.js";import"../../../shortcut-provider/index.js";import{encapBrowserLog as V}from"../../../../shared/utils/index.js";import{useShortcuts as H}from"../../../shortcut-provider/src/hooks/useShortcuts.js";var $,G,Y,q,Q,W,X;const Z={class:"newprint-button-outer"},ee={key:0,class:"newprint-button-outer__shortcut"},te=e("span",{class:"label bold"},(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.473"))||"外显设置",-1),ne={class:"print-lite"},ae={class:"label bold"},ie={class:"print-li"},re={class:"print-lite"},le={key:0,class:"newprint-button-outer__shortcut"},oe=["onMouseenter","onClick"],se={class:"label bold"},ue={class:"print-lite",style:{background:"transparent"}},de={class:"label bold"},ce={class:"print-li"},pe={class:"print-lite",style:{background:"transparent"}},me=["onClick"],ve={key:0,class:"newprint-button-outer__shortcut"},ge={class:"newprint-button-poperOver"},ye=["onMouseenter"],fe={class:"print-lite",style:{background:"transparent"}},we=["onClick"];var he=t({__name:"NewPrintComponent",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.478"))||"打印",type:String},printText:{default:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.479"))||"直接打印",type:String},previewText:{default:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.480"))||"打印预览",type:String},pdfLoadText:{default:(null==(Q=window.getLanguageByCode)?void 0:Q.call(window,"10010.1.481"))||"下载pdf",type:String},formatEditText:{default:(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.482"))||"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:(null==(X=window.getLanguageByCode)?void 0:X.call(window,"10010.1.483"))||"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number},resolution:{type:Number},newPrintSetting:{type:Object,default:()=>({isShowPrintAll:!0,printAllType:1,isShowOutSetting:!0,customProps:{},outerPrintKeys:[],defaultFormatId:"",shortcut:{},buttonProps:{},showMaxHeight:null})},svrUpdateIp:{type:String}},setup(t,{expose:$}){var G,Y,q;const Q=t;String(navigator.platform).toLowerCase().includes("linux");const W=[{label:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.476"))||"分割线",key:"divider"},{label:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.473"))||"外显设置",key:"outSetting"}],X=O();let he;const ke=n(J),be=a(""),Pe=i({spinning:!1,visible:!1,formatList:[],templateParams:[],printParams:[],originParams:{},currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,isClickOuterPrint:!1,curPrintParamList:[],iReportExecuteMode:1}),Ce=a({});let Se=a([]),Ie=a([{label:Q.previewText,key:"previewText"},{label:Q.pdfLoadText,key:"downloadPdf"},{label:Q.formatEditText,key:"formatEditText"},{label:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.484"))||"重置打印机",key:"resetPrinter"}]);const Le=i({oneMouseType:"",oneClickType:"",twoMouseType:""}),Oe=i({oneShow:!1,isOperation:!1,isOutSetting:!1}),xe=a([]),Te=a([]),je=r((()=>{if(!Pe.currentFormatId)return{};let e=Pe.currentFormatId;return Pe.formatList.find((t=>t.id===e))}));r((()=>{var e,t;return(null==(e=je.value)?void 0:e.name)||(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.485"))||"格式选择"}));const Me=r((()=>{let e=Pe.formatList.find((e=>e.id===Pe.currentFormatId));return null==e?void 0:e.templateId})),Ee=r((()=>{let e=Pe.formatList.find((e=>e.id===Pe.currentFormatId));return null==e?void 0:e.number})),Fe=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.isShowPrintAll})),Be=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.isShowOutSetting})),Ne=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.customProps)||{}})),_e=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.defaultFormatId)||""})),De=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.printAllType)||1})),Re=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.shortcut)||{}})),Je=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.buttonProps)||{}})),Ue=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.showMaxHeight)||{}})),ze=r((()=>{var e;return(null==(e=Q.newPrintSetting)?void 0:e.printAllFormatIds)||[]})),Ae=r((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.positionElement})),Ke=r((()=>{var e,t;const n=Object.keys(Re.value);if(n.length>0){if(_e.value&&n.includes(_e.value))return(null==(e=Re.value[_e.value])?void 0:e.shortcutLabel)||"";if(n.includes("all"))return(null==(t=Re.value.all)?void 0:t.shortcutLabel)||""}return""})),Ve=r((()=>{const e=W.map((e=>e.key));return Se.value.filter((t=>!e.includes(t.key)))})),He=r({get:()=>Ve.value.every((e=>e.selected)),set(e){Ve.value.forEach((t=>{t.selected=e}))}}),$e=async()=>{var e,t;(null==(t=null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)||await kt(),Oe.oneShow=!0},Ge=async e=>{if(Q.directPrint){if(Pe.spinning)return;return"button"===e?void(Fe.value?await Ct():_e.value?async function(e){await kt(!1);const t=xe.value.find((t=>t.key==e));t&&ot(t.templateCode,t.templateId,t.key,!1)}(_e.value):$e()):$e()}return $e()},Ye=(e,t)=>Pe.printParams[t.templateCode]?z(t.key)?e.filter((e=>"formatEditText"!=e.key)):e:[],qe=(e,t)=>{Le[e]=t},Qe=()=>{xe.value=Se.value.filter((e=>!e.selected)),Te.value=Ve.value.filter((e=>e.selected)),Xe("oneShow"),Xe("isOutSetting"),ke("saveOuterPrint",Te.value)},We=e=>{Oe[e]=!0},Xe=e=>{Le.oneClickType="",Oe[e]=!1,"isOutSetting"==e&&(Oe.isOutSetting=!1)},Ze=(e,t)=>{rt(!1);let n={type:t,formatId:Pe.currentFormatId,templateId:(null==e?void 0:e.templateId)||Me.value,templateCode:(null==e?void 0:e.templateCode)||Ee.value};V({type:"进入成功的回调",info:n},"PRINT-SDK"),ke("success",e,n)},et=e=>{rt(!1),V({type:"进入失败的回调",res:e},"PRINT-SDK"),ke("error",e),L(e)&&"notInstalledApp"===e.type&&X.error(e.message)},tt=e=>{rt(!1),ke("cancel",e)},nt=e=>{var t;const n={message:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.486"))||"前置条件执行错误",type:e,preExecution:!0};ke("error",n)},at=()=>JSON.stringify({...Q.token?{token:Q.token}:{}}),it=(e=[],t)=>{var n,a;let i={},r={};if((null==(n=Pe.templateParams[t].customizeDataset)?void 0:n.length)>0){const t=(null==(a=Object.keys(e[0].datasetData||{}))?void 0:a[0])||"",n=JSON.stringify(e.map((e=>JSON.parse(e.datasetData[t]))));r={datasetData:{}},r.datasetData[t]=n}else Object.keys(e[0]).forEach((t=>{r[t]=[],e.forEach((e=>{r[t].includes(e[t])||r[t].push(e[t])})),r[t]=r[t].join(",")}));return i=Object.assign({},JSON.parse(at()),r,Ne.value),JSON.stringify(i)},rt=(e,t)=>{if(Pe.isClickOuterPrint){if(e&&t){const n=Te.value.find((e=>e.key==t));return void(n&&(n.isLoading=e))}Te.value.forEach((e=>{e.isLoading=!1}))}else Pe.spinning=e},lt=()=>Pe.isClickOuterPrint?Te.value.some((e=>e.isLoading)):Pe.spinning,ot=(e,t,n,a)=>{const i=Pe.printParams[e];if(!i)return;Pe.isClickOuterPrint=a,Pe.currentFormatId=n;const r=Pe.originParams[e]||[];st(i,e,t,n,r)},st=async(e=[],t,n,a,i=[],r)=>{let l=e.length;const o=async e=>{try{--l<=0&&Ze(e,"print")}catch(e){console.log("error",e)}};Q.showLoading&<()&&!r||(rt(!0,a),Q.prevFn("print",{formatId:a,templateId:n,params:e}).then((()=>{var r;Pe.curPrintParamList=e;const l=(null==(r=Ne.value)?void 0:r.printdlgshow)||Q.printdlgshow,s={formatId:a,iReportExecuteMode:Pe.iReportExecuteMode,templateId:n,authorizationKey:be.value,printdlgshow:l,signature:Q.signature,copies:Q.printCopies,svrUpdateIp:Q.svrUpdateIp};if("MULTI"===Q.strategy)for(let t=0;t<e.length;t++){t>0&&(s.printdlgshow="0");const n=JSON.stringify(Object.assign({},JSON.parse(at()),e[t],Ne.value));he.printDirect({...s,params:n},o,et,tt)}else he.printDirect({...s,params:it(e,t)},(e=>{e.params=i,e.templateCode=t,e.templateId=n,Ze(e,"print")}),et,tt)})).catch((()=>{nt("print"),rt(!1)})).finally((()=>{Pe.visible=!1})))},ut=async(e,{templateCode:t,templateId:n,key:a},i)=>{const r=Pe.printParams[t];if(r)switch(Pe.isClickOuterPrint=i,Pe.currentFormatId=a,e){case"previewText":(async(e=[],t,n,a)=>{Q.showLoading&<()||(rt(!0,a),Q.prevFn("preview",{formatId:a,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e;const i=JSON.stringify(Object.assign({},JSON.parse(at()),e[0],Ne.value)),r="MULTI"===Q.strategy?i:it(e,t),l={formatId:a,templateId:n,iReportExecuteMode:Pe.iReportExecuteMode,authorizationKey:be.value,params:r,btnprint:Q.btnprint,signature:Q.signature};he.preview(l,(e=>{Ze(e,"preview")}),et)})).catch((()=>{nt("preview"),rt(!1)})).finally((()=>{Pe.visible=!1})))})(r,t,n,a);break;case"formatEditText":((e=[],t,n,a)=>{Q.showLoading&<()||(rt(!0,a),Q.prevFn("edit",{formatId:a,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e,Pe.currentFormatId=a,Pe.identityVerification.visible=!0})).catch((()=>{nt("edit")})).finally((()=>{rt(!1)})))})(r,0,n,a);break;case"downloadPdf":(async(e=[],t,n,a)=>{Q.showLoading&<()||(rt(!0,a),Q.prevFn("download",{formatId:a,templateId:n,params:e}).then((()=>{Pe.curPrintParamList=e;const i=JSON.stringify(Object.assign({},JSON.parse(at()),e[0],Ne.value)),r="MULTI"===Q.strategy?i:it(e,t),l={formatId:a,templateId:n,iReportExecuteMode:Pe.iReportExecuteMode,authorizationKey:be.value,print:{print:"1",type:"1",resolution:null==Q?void 0:Q.resolution},params:r,signature:Q.signature};he.downloadPDF(l,(e=>Ze(e,"preview")),et)})).catch((()=>{nt("download"),rt(!1)})).finally((()=>{Pe.visible=!1})))})(r,t,n,a);break;case"resetPrinter":(async(e=[],t,n,a)=>{var i,r,l;if(!Q.showLoading||!lt()){rt(!0,a);try{const e=await he.resetPrinter(a,Pe.iReportExecuteMode);if(rt(!1),"success"==(null==e?void 0:e.result))return void X.success((null==e?void 0:e.message)||(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.487"))||"重置打印机成功");X.warning((null==e?void 0:e.message)||(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.488"))||"重置打印机失败")}catch(e){rt(!1),X.warning((null==e?void 0:e.message)||(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.488"))||"重置打印机失败")}}})(r,0,0,a)}},dt=()=>{},ct=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},gt(n,t,e))})),n},pt=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},yt(n,t,e))})),n},mt=(e,t,n)=>{const a={};return t.forEach((t=>{let i=((e,t)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let a=t;return Object.keys(n).includes(e.type)&&t&&t instanceof Date&&(a=K(t,n[e.type])),(null==e?void 0:e.defaultValue)||a})(t,e[t[n]]);e[t[n]]&&i&&(a[t[n]]=i)})),a},vt=({customizeDataset:e=[],param:t=[]},n={})=>{let a={};return e.forEach((e=>{const t=e.dataSetting[0].selectFieldList;a.datasetData||(a.datasetData={}),a.datasetData[e.name]=JSON.stringify(mt(n,t,"fieldName"))})),a=Object.assign({},a,mt(n,t,"key")),a},gt=(e,t,n)=>{if(t.templateNumbers){for(let a=0;a<t.templateNumbers.length;a++){const i=t.templateNumbers[a],r=n[i];if(!r)return e;e[i]||(e[i]=[]),e[i].push(vt(r,t))}return e}const a=Object.keys(n);for(let i=0;i<a.length;i++){const r=a[i],l=n[r];if(!l)return e;e[r]||(e[r]=[]),e[r].push(vt(l,t))}return e},yt=(e,t,n)=>{if(t.templateNumbers){for(let a=0;a<t.templateNumbers.length;a++){const i=t.templateNumbers[a];if(!n[i])return e;e[i]||(e[i]=[]),e[i].push(t)}return e}const a=Object.keys(n);for(let i=0;i<a.length;i++){const r=a[i];if(!n[r])return e;e[r]||(e[r]=[]),e[r].push(t)}return e},ft=async e=>{var t;Pe.formatList=e?(e=>{let t=[];return e&&e.forEach((e=>{if(!e.format)return!1;t.push(...e.format.map((t=>Object.assign({},t,{templateName:e.name}))))})),t})(e.obj):[],Pe.iReportExecuteMode=(null==(t=null==e?void 0:e.obj)?void 0:t.length)>0&&e.obj[0].iReportExecuteMode||1,(()=>{var e,t,n;const a=Object.keys(Re.value),i=Pe.formatList.map((e=>{const t={templateCode:e.number,templateId:e.templateId,label:e.name,key:e.id,selected:!1,isLoading:!1};if(a.includes(e.id)){const n=Re.value[e.id];n&&(t.shortcutLabel=n.shortcutLabel)}return t}));Se.value.unshift(...i),Be.value&&Se.value.push(...W),(null==(t=null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)>0&&(Se.value.forEach((e=>{var t;(null==(t=Q.newPrintSetting)?void 0:t.outerPrintKeys.includes(e.key))&&(e.selected=!0)})),Te.value=Se.value.filter((e=>e.selected))),xe.value=Se.value.filter((e=>!e.selected)),Q.hideButtons.length>0&&(Ie.value=Ie.value.filter((e=>!Q.hideButtons.includes(e.key))));const r=sessionStorage.getItem("portal");if(r){const e=JSON.parse(r),t=(null==(n=null==e?void 0:e.user)?void 0:n.currentRoleResourceObj)||{},a=Object.keys(t);a.includes("RY7.2.21.1.M2.G94181E")||(Ie.value=Ie.value.filter((e=>"downloadPdf"!=e.key))),a.includes("RY7.2.21.1.M2.G33633A")||(Ie.value=Ie.value.filter((e=>"formatEditText"!=e.key))),a.includes("RY7.2.21.1.M2.G99314S")||(Ie.value=Ie.value.filter((e=>"resetPrinter"!=e.key)))}})(),Pe.templateParams=(e=>{let t={};return e&&e.forEach((e=>{if(!e.templateConfig)return!1;t[e.number]=e.templateConfig})),t})(e.obj),Pe.printParams=ct(Pe.templateParams,Q.params),Pe.originParams=pt(Pe.templateParams,Q.params),ht()},wt=async()=>{var e;if(Pe.isInited)return!0;Pe.isInited=!0,Pe.spinning=!0,(()=>{if(he)return!1;he=new U})();const t=await Q.queryPrintFormatByNumber();return await ft(t),(null==(e=t.obj)?void 0:e.length)>0&&(be.value=t.obj[0].authorizationKey||""),Pe.spinning=!1,!0},ht=async()=>{const e=Object.keys(Re.value);if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t],a=Re.value[n],{stop:i,signature:r}=H().register({label:a.code,shortcutSignature:a.shortcutKey,operation:["state","reset"],callback(){"all"==n&&Ge("button");const e=Ve.value.map((e=>e.key)),t=Pe.originParams;if(e.includes(n)){const e=Ve.value.find((e=>e.key==n));if(e){const n=Pe.printParams[null==e?void 0:e.templateCode],a=t[null==e?void 0:e.templateCode]||[];st(n,e.templateCode,e.templateId,e.key,a)}}}});Ce.value[n]=i}},kt=async(e=!0)=>{if(await Q.clickPrevFn()){if(!Pe.visible){if(!await wt())return!1}e&&(Pe.visible=!Pe.visible)}},bt=e=>{if(Pe.identityVerification.visible=!1,z(Pe.currentFormatId))return Ze({result:"success",message:""},"edit");const t=JSON.stringify(Object.assign({},JSON.parse(at()),Pe.curPrintParamList[0],Ne.value)),n="MULTI"===Q.strategy?t:it(Pe.curPrintParamList,Ee.value),a={formatId:Pe.currentFormatId,templateId:Me.value,params:n,token:e};he.editPrintFormat(a,(e=>{Ze(e,"edit")}),et)},Pt=(e,t)=>{const n=Te.value[t+1];return t<Te.value.length-1&&!Pe.printParams[e.templateCode]&&Pe.printParams[n.templateCode]};async function Ct(){await kt(!1),(()=>{var e;const t=Object.keys(Pe.printParams);Pe.isClickOuterPrint=!1;const n=Pe.originParams;if((null==(e=Object.keys(ze.value))?void 0:e.length)>0)Se.value.forEach((e=>{if(ze.value.includes(e.key)){const t=Pe.printParams[e.templateCode],a=n[e.templateCode]||[];Pe.currentFormatId=e.key,st(t,e.templateCode,e.templateId,e.key,a,!0)}}));else{if(1==De.value)for(let e=0;e<t.length;e++){const a=t[e],i=Pe.printParams[a],r=n[a]||[],l=Pe.formatList.filter((e=>e.number==a));l&&l.length>0&&l.forEach((e=>{Pe.currentFormatId=e.id,st(i,e.number,e.templateId,e.id,r,!0)}))}2==De.value&&Te.value.forEach((e=>{const t=Pe.printParams[e.templateCode],a=n[e.templateCode]||[];Pe.currentFormatId=e.key,st(t,e.templateCode,e.templateId,e.key,a,!0)}))}})()}return l((()=>{Pe.isInited=!1})),o((()=>{const e=Object.keys(Ce.value);e.length>0&&e.forEach((e=>{Ce.value[e]&&Ce.value[e]()}))})),s((()=>Q.params),(e=>{Object.keys(Pe.templateParams).length>0&&(Pe.printParams=ct(Pe.templateParams,Q.params),Pe.originParams=pt(Pe.templateParams,Q.params))}),{deep:!0}),s((()=>{var e;return null==(e=Q.newPrintSetting)?void 0:e.outerPrintKeys}),(async e=>{(null==e?void 0:e.length)>0&&await kt(!1)}),{deep:!0,immediate:!0}),$({directPrint:Ct}),(n,a)=>(u(),d(c,null,[e("div",Z,[p(" 外显按钮集合 "),m(v(x),{class:"outButtonGroup"},{default:g((()=>[(u(!0),d(c,null,y(Te.value,((e,n)=>(u(),f(v(T),{key:e.key,class:"c-dropdown",placement:"bottom-start",trigger:"hover",onClickoutside:dt,options:Ye(v(Ie),e),onSelect:t=>ut(t,e,!0)},{default:g((()=>[m(v(j),w(v(Je),{disabled:!Pe.printParams[e.templateCode],loading:t.showLoading&&e.isLoading,onClick:t=>ot(e.templateCode,e.templateId,e.key,!0),class:n==Te.value.length-1?"outerLastButton":Pt(e,n)?"isPrintDisabled":""}),{icon:g((()=>[m(v(M),{component:v(N),size:"18"},null,8,["component"])])),default:g((()=>[h(" "+k(e.label)+" ",1),e.shortcutLabel?(u(),d("span",ee,k(e.shortcutLabel),1)):p("v-if",!0)])),_:2},1040,["disabled","loading","onClick","class"])])),_:2},1032,["options","onSelect"])))),128))])),_:1}),p(" 外显设置按钮 "),Te.value.length>0&&Te.value.length==v(Ve).length&&v(Be)&&2!=v(De)?(u(),f(v(E),{key:0,trigger:"click",to:v(Ae),"show-arrow":!1,show:Oe.isOutSetting,onClickoutside:a[2]||(a[2]=e=>Xe("isOutSetting"))},{trigger:g((()=>[m(v(j),w(v(Je),{class:Te.value.length>0?"printAllLeftCls":"",onClick:a[0]||(a[0]=e=>We("isOutSetting"))}),{default:g((()=>[te,m(v(M),{style:{"margin-left":"8px"},component:v(_),size:"18"},null,8,["component"])])),_:1},16,["class"])])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ne,[e("span",ae,k(t.label),1),m(v(F),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ie,[m(v(B)),e("div",re,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(F),{key:0,checked:v(He),"onUpdate:checked":a[1]||(a[1]=e=>P(He)?He.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])],4)])),_:1},8,["to","show"])):(u(),d(c,{key:1},[p(" 打印全部按钮 "),m(v(E),{trigger:"click","show-arrow":!1,to:v(Ae),show:Oe.oneShow,onClickoutside:a[10]||(a[10]=e=>Xe("oneShow"))},{trigger:g((()=>[C(n.$slots,"button",{handleClickPrintBtn:$e,handlePrintBySetting:()=>Ge("button"),printSpinning:Pe.spinning,printbtnText:t.btnText,printVisible:Pe.visible},(()=>[m(v(x),{class:"newprint-button-component",onClick:a[4]||(a[4]=S((()=>Ge("icon")),["stop"]))},{default:g((()=>[m(v(j),w({loading:t.showLoading&&Pe.spinning},v(Je),{onClick:a[3]||(a[3]=S((()=>Ge("button")),["stop"])),class:Te.value.length>0?"printAllLeftCls":""}),{icon:g((()=>[m(v(M),{component:v(N),size:"18"},null,8,["component"])])),default:g((()=>{var e;return[h(" "+k(v(Fe)?(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.475"))||"打印全部":t.btnText)+" ",1),v(Ke)?(u(),d("span",le,k(v(Ke)),1)):p("v-if",!0)]})),_:1},16,["loading","class"]),m(v(j),w({class:"icon-select"},v(Je)),{icon:g((()=>[m(v(M),{component:v(D),size:"18"},null,8,["component"])])),_:1},16)])),_:1})]))])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(xe.value,(t=>(u(),d("div",{class:I(["print-li",Le.oneMouseType==t.key||Le.oneClickType==t.key?"active":""]),key:t.key,onMouseenter:e=>qe("oneMouseType",t.key),onMouseleave:a[9]||(a[9]=e=>qe("oneMouseType","")),onClick:e=>((e,t,n)=>{if(!Pe.printParams[n.templateCode])return[];qe(e,t)})("oneClickType",t.key,t)},["divider"==t.key?(u(),f(v(B),{key:0})):"outSetting"==t.key?(u(),d(c,{key:1},[p(" 第二层外显设置 "),m(v(E),{trigger:"click","show-arrow":!1,to:!1,placement:"right-start",show:Oe.isOutSetting,onClickoutside:a[7]||(a[7]=e=>Xe("isOutSetting"))},{trigger:g((()=>[e("div",{class:"print-lite",onClick:a[5]||(a[5]=e=>We("isOutSetting"))},[e("span",se,k(t.label),1),m(v(M),{color:Te.value.length>0?"#2563F4":"",component:v(_),size:"18"},null,8,["color","component"])])])),default:g((()=>[e("div",{class:"newprint-button-poperOver",style:b({maxHeight:v(Ue)?`${v(Ue)}px`:void 0})},[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ue,[e("span",de,k(t.label),1),m(v(F),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ce,[m(v(B)),e("div",pe,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(F),{key:0,checked:v(He),"onUpdate:checked":a[6]||(a[6]=e=>P(He)?He.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])],4)])),_:2},1032,["show"])],2112)):(u(),d(c,{key:2},[p(" 第二层功能操作 "),e("div",{class:I(["print-lite",Pe.printParams[t.templateCode]?"":"isDisabled"]),style:{background:"transparent"}},[e("span",{class:"label bold",onClick:e=>ot(t.templateCode,t.templateId,t.key,!1)},[h(k(t.label)+" ",1),t.shortcutLabel?(u(),d("span",ve,k(t.shortcutLabel),1)):p("v-if",!0)],8,me),Pe.printParams[t.templateCode]?(u(),f(v(E),{key:0,trigger:"click","show-arrow":!1,to:!1,placement:"right-start",show:Oe[t.key],onClickoutside:e=>Xe(t.key)},{trigger:g((()=>[m(v(M),{component:v(R),size:"18",onClick:e=>We(t.key)},null,8,["component","onClick"])])),default:g((()=>[e("div",ge,[(u(!0),d(c,null,y(Ye(v(Ie),t),(n=>(u(),d("div",{class:I(["print-li",Le.twoMouseType==n.key?"active":""]),key:n.key,onMouseenter:e=>qe("twoMouseType",n.key),onMouseleave:a[8]||(a[8]=e=>qe("twoMouseType",""))},[e("div",fe,[e("span",{class:"label",onClick:e=>ut(n.key,t,!1)},k(n.label),9,we)])],42,ye)))),128))])])),_:2},1032,["show","onClickoutside"])):p("v-if",!0)],2)],2112))],42,oe)))),128))],4)])),_:3},8,["to","show"])],2112))]),m(A,w(n.$attrs,{modelValue:Pe.identityVerification.visible,"onUpdate:modelValue":a[11]||(a[11]=e=>Pe.identityVerification.visible=e),formatId:Pe.currentFormatId,templateId:v(Me),onSuccess:bt}),null,16,["modelValue","formatId","templateId"])],64))}});export{he as default};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare const CCardReaderCN: Readonly<{
|
2
|
+
readonly henan: Readonly<{
|
3
|
+
readonly duration: 5000;
|
4
|
+
readonly iType: "1";
|
5
|
+
readonly checkEnv: () => boolean;
|
6
|
+
readonly connect: () => Promise<unknown>;
|
7
|
+
readonly disconnect: () => void;
|
8
|
+
readonly sendMessage: (data: import("../../shared/types").AnyObject) => Promise<unknown>;
|
9
|
+
readonly iGetDevUID: () => Promise<unknown>;
|
10
|
+
readonly iReadCardBas: () => Promise<unknown>;
|
11
|
+
readonly iReadCard: () => Promise<unknown>;
|
12
|
+
readonly iVerifyPIN: () => Promise<unknown>;
|
13
|
+
readonly iChangePIN: () => Promise<unknown>;
|
14
|
+
readonly iReloadPIN: () => Promise<unknown>;
|
15
|
+
readonly iUnblockPIN: () => Promise<unknown>;
|
16
|
+
readonly iReadCertInfo: () => Promise<unknown>;
|
17
|
+
}>;
|
18
|
+
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{CardReaderCN_henan as e}from"./src/henan/index.js";const n=Object.freeze({henan:e});export{n as CCardReaderCN};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { AnyObject } from '../../../../shared/types';
|
2
|
+
export declare const CardReaderCN_henan: Readonly<{
|
3
|
+
readonly duration: 5000;
|
4
|
+
readonly iType: "1";
|
5
|
+
readonly checkEnv: () => boolean;
|
6
|
+
readonly connect: () => Promise<unknown>;
|
7
|
+
readonly disconnect: () => void;
|
8
|
+
readonly sendMessage: (data: AnyObject) => Promise<unknown>;
|
9
|
+
readonly iGetDevUID: () => Promise<unknown>;
|
10
|
+
readonly iReadCardBas: () => Promise<unknown>;
|
11
|
+
readonly iReadCard: () => Promise<unknown>;
|
12
|
+
readonly iVerifyPIN: () => Promise<unknown>;
|
13
|
+
readonly iChangePIN: () => Promise<unknown>;
|
14
|
+
readonly iReloadPIN: () => Promise<unknown>;
|
15
|
+
readonly iUnblockPIN: () => Promise<unknown>;
|
16
|
+
readonly iReadCertInfo: () => Promise<unknown>;
|
17
|
+
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
let e=null,t=null;const i=Object.freeze({duration:5e3,iType:"1",checkEnv:()=>window.navigator.userAgent.toLowerCase().includes("linux"),async connect(){if(e){if(e.readyState===WebSocket.OPEN)return Promise.resolve();if(e.readyState===WebSocket.CONNECTING)return new Promise(((t,i)=>{e.addEventListener("open",t),e.addEventListener("close",i)}));if(e.readyState===WebSocket.CLOSING)return Promise.reject("websocket正在关闭中");e.readyState===WebSocket.CLOSED&&(e=null)}try{e=await new Promise(((e,i)=>{const s=new WebSocket("ws://localhost:18880");s.onopen=()=>{e(s)},s.onclose=()=>{i()},s.onmessage=e=>{var i;t&&(null==t||t(JSON.parse(null!=(i=e.data)?i:"")),t=null)},s.onerror=()=>{i("websocket服务器连接失败")}}))}catch(e){return Promise.reject(e)}},disconnect(){e&&(e.close(),e=null)},async sendMessage(i){return await this.connect(),new Promise(((s,n)=>{var o;return e?t?n("请等待上一个请求完成"):(t=s,setTimeout((()=>{n("请求超时"),t=null}),null!=(o=this.duration)?o:3e3),void e.send(JSON.stringify(i))):n("websocket连接失败")}))},iGetDevUID(){return this.sendMessage({bizcode:"1001",body:""})},iReadCardBas(){return this.sendMessage({bizcode:"1002",body:{iType:this.iType,pDevInfo:""}})},iReadCard(){return this.sendMessage({bizcode:"1003",body:{iType:this.iType,iAuthType:this.iType,pCardInfo:"",pFileAddr:""}})},iVerifyPIN(){return this.sendMessage({bizcode:"1005",body:{iType:this.iType}})},iChangePIN(){return this.sendMessage({bizcode:"1006",body:{iType:this.iType}})},iReloadPIN(){return this.sendMessage({bizcode:"1007",body:{iType:this.iType,pCardInfo:""}})},iUnblockPIN(){return this.sendMessage({bizcode:"1008",body:{iType:this.iType,pCardInfo:""}})},iReadCertInfo(){return this.sendMessage({bizcode:"1201",body:{iType:this.iType,pPhotoPath:""}})}});export{i as CardReaderCN_henan};
|
@@ -1726,6 +1726,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1726
1726
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1727
1727
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1728
1728
|
initTagList: () => Promise<void>;
|
1729
|
+
renderOption: ({ node, option }: {
|
1730
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1731
|
+
[key: string]: any;
|
1732
|
+
}>;
|
1733
|
+
option: import("naive-ui").SelectOption;
|
1734
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1735
|
+
[key: string]: any;
|
1736
|
+
}>;
|
1737
|
+
renderLabel: (option: any) => any;
|
1729
1738
|
NSelect: any;
|
1730
1739
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1731
1740
|
paramCfg: {
|
@@ -1189,6 +1189,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1189
1189
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1190
1190
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1191
1191
|
initTagList: () => Promise<void>;
|
1192
|
+
renderOption: ({ node, option }: {
|
1193
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1194
|
+
[key: string]: any;
|
1195
|
+
}>;
|
1196
|
+
option: import("naive-ui").SelectOption;
|
1197
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1198
|
+
[key: string]: any;
|
1199
|
+
}>;
|
1200
|
+
renderLabel: (option: any) => any;
|
1192
1201
|
NSelect: any;
|
1193
1202
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1194
1203
|
paramCfg: {
|
@@ -1483,6 +1483,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1483
1483
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1484
1484
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1485
1485
|
initTagList: () => Promise<void>;
|
1486
|
+
renderOption: ({ node, option }: {
|
1487
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1488
|
+
[key: string]: any;
|
1489
|
+
}>;
|
1490
|
+
option: import("naive-ui").SelectOption;
|
1491
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1492
|
+
[key: string]: any;
|
1493
|
+
}>;
|
1494
|
+
renderLabel: (option: any) => any;
|
1486
1495
|
NSelect: any;
|
1487
1496
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1488
1497
|
paramCfg: {
|
@@ -1728,6 +1728,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1728
1728
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1729
1729
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1730
1730
|
initTagList: () => Promise<void>;
|
1731
|
+
renderOption: ({ node, option }: {
|
1732
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1733
|
+
[key: string]: any;
|
1734
|
+
}>;
|
1735
|
+
option: import("naive-ui").SelectOption;
|
1736
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1737
|
+
[key: string]: any;
|
1738
|
+
}>;
|
1739
|
+
renderLabel: (option: any) => any;
|
1731
1740
|
NSelect: any;
|
1732
1741
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1733
1742
|
paramCfg: {
|
@@ -524,6 +524,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
524
524
|
uncheckableField: {
|
525
525
|
type: StringConstructor;
|
526
526
|
};
|
527
|
+
onlyForwardCascade: {
|
528
|
+
type: BooleanConstructor;
|
529
|
+
};
|
527
530
|
}, {
|
528
531
|
$attrs: {
|
529
532
|
[x: string]: unknown;
|
@@ -632,6 +635,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
632
635
|
uncheckableField: {
|
633
636
|
type: StringConstructor;
|
634
637
|
};
|
638
|
+
onlyForwardCascade: {
|
639
|
+
type: BooleanConstructor;
|
640
|
+
};
|
635
641
|
}>> & {
|
636
642
|
onCheck?: ((...args: any[]) => any) | undefined;
|
637
643
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1086,6 +1092,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1086
1092
|
uncheckableField: {
|
1087
1093
|
type: StringConstructor;
|
1088
1094
|
};
|
1095
|
+
onlyForwardCascade: {
|
1096
|
+
type: BooleanConstructor;
|
1097
|
+
};
|
1089
1098
|
}, {
|
1090
1099
|
searchFilterBase: {
|
1091
1100
|
isOpen: boolean;
|
@@ -1190,6 +1199,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1190
1199
|
uncheckableField: {
|
1191
1200
|
type: StringConstructor;
|
1192
1201
|
};
|
1202
|
+
onlyForwardCascade: {
|
1203
|
+
type: BooleanConstructor;
|
1204
|
+
};
|
1193
1205
|
}>> & {}>>;
|
1194
1206
|
emit: any;
|
1195
1207
|
keyword: import("vue").Ref<string>;
|
@@ -1274,7 +1286,11 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1274
1286
|
key: string | number;
|
1275
1287
|
}[];
|
1276
1288
|
setTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
1277
|
-
|
1289
|
+
getFlattenKeys: (tree: import("naive-ui").TreeOption[]) => any[];
|
1290
|
+
updateTreeChecked: (keys: (string | number)[], _: any, meta: {
|
1291
|
+
node: import("naive-ui").TreeOption | null;
|
1292
|
+
action: "check" | "uncheck";
|
1293
|
+
}) => void;
|
1278
1294
|
setCheckedAll: () => void;
|
1279
1295
|
clearAll: () => void;
|
1280
1296
|
closeTag: (tag: {
|
@@ -1616,6 +1632,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1616
1632
|
uncheckableField: {
|
1617
1633
|
type: StringConstructor;
|
1618
1634
|
};
|
1635
|
+
onlyForwardCascade: {
|
1636
|
+
type: BooleanConstructor;
|
1637
|
+
};
|
1619
1638
|
}>>, {
|
1620
1639
|
data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject)[];
|
1621
1640
|
defaultList: ((string | number) | {
|
@@ -1648,6 +1667,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1648
1667
|
roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject)[];
|
1649
1668
|
roleFields: Record<string, any>;
|
1650
1669
|
forceShowSelectAll: boolean;
|
1670
|
+
onlyForwardCascade: boolean;
|
1651
1671
|
}>>;
|
1652
1672
|
getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1653
1673
|
defaultList: {
|
@@ -1753,6 +1773,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1753
1773
|
uncheckableField: {
|
1754
1774
|
type: StringConstructor;
|
1755
1775
|
};
|
1776
|
+
onlyForwardCascade: {
|
1777
|
+
type: BooleanConstructor;
|
1778
|
+
};
|
1756
1779
|
}>> & {
|
1757
1780
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1758
1781
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1865,6 +1888,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1865
1888
|
uncheckableField: {
|
1866
1889
|
type: StringConstructor;
|
1867
1890
|
};
|
1891
|
+
onlyForwardCascade: {
|
1892
|
+
type: BooleanConstructor;
|
1893
|
+
};
|
1868
1894
|
}>> & {
|
1869
1895
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1870
1896
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1903,6 +1929,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
1903
1929
|
switchTypeData: import("../../shared/types").AnyObject;
|
1904
1930
|
tagProps: import("../../shared/types").AnyObject;
|
1905
1931
|
forceShowSelectAll: boolean;
|
1932
|
+
onlyForwardCascade: boolean;
|
1906
1933
|
}>>;
|
1907
1934
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1908
1935
|
visible: {
|
@@ -198,6 +198,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
198
198
|
uncheckableField: {
|
199
199
|
type: StringConstructor;
|
200
200
|
};
|
201
|
+
onlyForwardCascade: {
|
202
|
+
type: BooleanConstructor;
|
203
|
+
};
|
201
204
|
}, {
|
202
205
|
$attrs: {
|
203
206
|
[x: string]: unknown;
|
@@ -306,6 +309,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
306
309
|
uncheckableField: {
|
307
310
|
type: StringConstructor;
|
308
311
|
};
|
312
|
+
onlyForwardCascade: {
|
313
|
+
type: BooleanConstructor;
|
314
|
+
};
|
309
315
|
}>> & {
|
310
316
|
onCheck?: ((...args: any[]) => any) | undefined;
|
311
317
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -760,6 +766,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
760
766
|
uncheckableField: {
|
761
767
|
type: StringConstructor;
|
762
768
|
};
|
769
|
+
onlyForwardCascade: {
|
770
|
+
type: BooleanConstructor;
|
771
|
+
};
|
763
772
|
}, {
|
764
773
|
searchFilterBase: {
|
765
774
|
isOpen: boolean;
|
@@ -864,6 +873,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
864
873
|
uncheckableField: {
|
865
874
|
type: StringConstructor;
|
866
875
|
};
|
876
|
+
onlyForwardCascade: {
|
877
|
+
type: BooleanConstructor;
|
878
|
+
};
|
867
879
|
}>> & {}>>;
|
868
880
|
emit: any;
|
869
881
|
keyword: import("vue").Ref<string>;
|
@@ -948,7 +960,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
948
960
|
key: string | number;
|
949
961
|
}[];
|
950
962
|
setTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
951
|
-
|
963
|
+
getFlattenKeys: (tree: import("naive-ui").TreeOption[]) => any[];
|
964
|
+
updateTreeChecked: (keys: (string | number)[], _: any, meta: {
|
965
|
+
node: import("naive-ui").TreeOption | null;
|
966
|
+
action: "check" | "uncheck";
|
967
|
+
}) => void;
|
952
968
|
setCheckedAll: () => void;
|
953
969
|
clearAll: () => void;
|
954
970
|
closeTag: (tag: {
|
@@ -1290,6 +1306,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1290
1306
|
uncheckableField: {
|
1291
1307
|
type: StringConstructor;
|
1292
1308
|
};
|
1309
|
+
onlyForwardCascade: {
|
1310
|
+
type: BooleanConstructor;
|
1311
|
+
};
|
1293
1312
|
}>>, {
|
1294
1313
|
data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject)[];
|
1295
1314
|
defaultList: ((string | number) | {
|
@@ -1322,6 +1341,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1322
1341
|
roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../../../shared/types").AnyObject)[];
|
1323
1342
|
roleFields: Record<string, any>;
|
1324
1343
|
forceShowSelectAll: boolean;
|
1344
|
+
onlyForwardCascade: boolean;
|
1325
1345
|
}>>;
|
1326
1346
|
getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1327
1347
|
defaultList: {
|
@@ -1427,6 +1447,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1427
1447
|
uncheckableField: {
|
1428
1448
|
type: StringConstructor;
|
1429
1449
|
};
|
1450
|
+
onlyForwardCascade: {
|
1451
|
+
type: BooleanConstructor;
|
1452
|
+
};
|
1430
1453
|
}>> & {
|
1431
1454
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1432
1455
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1539,6 +1562,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1539
1562
|
uncheckableField: {
|
1540
1563
|
type: StringConstructor;
|
1541
1564
|
};
|
1565
|
+
onlyForwardCascade: {
|
1566
|
+
type: BooleanConstructor;
|
1567
|
+
};
|
1542
1568
|
}>> & {
|
1543
1569
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1544
1570
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1577,6 +1603,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1577
1603
|
switchTypeData: import("../../../../shared/types").AnyObject;
|
1578
1604
|
tagProps: import("../../../../shared/types").AnyObject;
|
1579
1605
|
forceShowSelectAll: boolean;
|
1606
|
+
onlyForwardCascade: boolean;
|
1580
1607
|
}>>;
|
1581
1608
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1582
1609
|
visible: {
|
@@ -157,6 +157,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
157
|
uncheckableField: {
|
158
158
|
type: StringConstructor;
|
159
159
|
};
|
160
|
+
onlyForwardCascade: {
|
161
|
+
type: BooleanConstructor;
|
162
|
+
};
|
160
163
|
}, {
|
161
164
|
$attrs: {
|
162
165
|
[x: string]: unknown;
|
@@ -265,6 +268,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
265
268
|
uncheckableField: {
|
266
269
|
type: StringConstructor;
|
267
270
|
};
|
271
|
+
onlyForwardCascade: {
|
272
|
+
type: BooleanConstructor;
|
273
|
+
};
|
268
274
|
}>> & {
|
269
275
|
onCheck?: ((...args: any[]) => any) | undefined;
|
270
276
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -719,6 +725,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
719
725
|
uncheckableField: {
|
720
726
|
type: StringConstructor;
|
721
727
|
};
|
728
|
+
onlyForwardCascade: {
|
729
|
+
type: BooleanConstructor;
|
730
|
+
};
|
722
731
|
}, {
|
723
732
|
searchFilterBase: {
|
724
733
|
isOpen: boolean;
|
@@ -823,6 +832,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
823
832
|
uncheckableField: {
|
824
833
|
type: StringConstructor;
|
825
834
|
};
|
835
|
+
onlyForwardCascade: {
|
836
|
+
type: BooleanConstructor;
|
837
|
+
};
|
826
838
|
}>> & {}>>;
|
827
839
|
emit: any;
|
828
840
|
keyword: import("vue").Ref<string>;
|
@@ -907,7 +919,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
907
919
|
key: string | number;
|
908
920
|
}[];
|
909
921
|
setTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
910
|
-
|
922
|
+
getFlattenKeys: (tree: import("naive-ui").TreeOption[]) => any[];
|
923
|
+
updateTreeChecked: (keys: (string | number)[], _: any, meta: {
|
924
|
+
node: import("naive-ui").TreeOption | null;
|
925
|
+
action: "check" | "uncheck";
|
926
|
+
}) => void;
|
911
927
|
setCheckedAll: () => void;
|
912
928
|
clearAll: () => void;
|
913
929
|
closeTag: (tag: {
|
@@ -1249,6 +1265,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1249
1265
|
uncheckableField: {
|
1250
1266
|
type: StringConstructor;
|
1251
1267
|
};
|
1268
|
+
onlyForwardCascade: {
|
1269
|
+
type: BooleanConstructor;
|
1270
|
+
};
|
1252
1271
|
}>>, {
|
1253
1272
|
data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[];
|
1254
1273
|
defaultList: ((string | number) | {
|
@@ -1281,6 +1300,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1281
1300
|
roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[];
|
1282
1301
|
roleFields: Record<string, any>;
|
1283
1302
|
forceShowSelectAll: boolean;
|
1303
|
+
onlyForwardCascade: boolean;
|
1284
1304
|
}>>;
|
1285
1305
|
getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1286
1306
|
defaultList: {
|
@@ -1386,6 +1406,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1386
1406
|
uncheckableField: {
|
1387
1407
|
type: StringConstructor;
|
1388
1408
|
};
|
1409
|
+
onlyForwardCascade: {
|
1410
|
+
type: BooleanConstructor;
|
1411
|
+
};
|
1389
1412
|
}>> & {
|
1390
1413
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1391
1414
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1498,6 +1521,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1498
1521
|
uncheckableField: {
|
1499
1522
|
type: StringConstructor;
|
1500
1523
|
};
|
1524
|
+
onlyForwardCascade: {
|
1525
|
+
type: BooleanConstructor;
|
1526
|
+
};
|
1501
1527
|
}>> & {
|
1502
1528
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1503
1529
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1536,6 +1562,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1536
1562
|
switchTypeData: AnyObject;
|
1537
1563
|
tagProps: AnyObject;
|
1538
1564
|
forceShowSelectAll: boolean;
|
1565
|
+
onlyForwardCascade: boolean;
|
1539
1566
|
}>>;
|
1540
1567
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1541
1568
|
visible: {
|