cnhis-design-vue 3.2.1-release.2 → 3.2.2-beta.2

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.
Files changed (130) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/button-print/src/utils/print.d.ts +1 -1
  7. package/es/components/button-print/src/utils/print.js +1 -1
  8. package/es/components/callback/src/components/render/popupMaps.d.ts +72 -70
  9. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  10. package/es/components/classification/src/index.vue.d.ts +3 -3
  11. package/es/components/default-page/index.d.ts +71 -0
  12. package/es/components/default-page/index.js +1 -0
  13. package/es/components/default-page/src/constants/index.d.ts +19 -0
  14. package/es/components/default-page/src/constants/index.js +1 -0
  15. package/es/components/default-page/src/index.vue.d.ts +72 -0
  16. package/es/components/default-page/src/index.vue.js +1 -0
  17. package/es/components/default-page/src/index.vue2.js +1 -0
  18. package/es/components/default-page/style/index.css +1 -0
  19. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  21. package/es/components/field-set/src/FieldColor.vue.d.ts +2 -2
  22. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  23. package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
  24. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
  25. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  26. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  27. package/es/components/iho-table/index.d.ts +72 -70
  28. package/es/components/iho-table/src/IhoTable.vue.d.ts +72 -70
  29. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  30. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +3 -1
  31. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  32. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
  33. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -1
  34. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
  35. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  36. package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +1 -1
  37. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.d.ts +112 -0
  38. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -0
  39. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useColumn2Data.d.ts +2 -0
  40. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useColumn2Data.js +1 -0
  41. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useCurrentColumn.d.ts +2 -0
  42. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useCurrentColumn.js +1 -0
  43. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useData2Column.d.ts +2 -0
  44. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useData2Column.js +1 -0
  45. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEditCell.d.ts +2 -0
  46. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEditCell.js +1 -0
  47. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEventConvert.d.ts +2 -0
  48. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEventConvert.js +1 -0
  49. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useExpose.d.ts +2 -0
  50. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useExpose.js +1 -0
  51. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHeaderCSS.d.ts +2 -0
  52. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHeaderCSS.js +1 -0
  53. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHoverColumn.d.ts +2 -0
  54. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHoverColumn.js +1 -0
  55. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useTriggerRow.d.ts +2 -0
  56. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useTriggerRow.js +1 -0
  57. package/es/components/iho-table/src/plugins/verticalTablePlugin/{renderer.d.ts → src/renderer.d.ts} +2 -1
  58. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/renderer.js +1 -0
  59. package/es/components/iho-table/src/plugins/verticalTablePlugin/{types.d.ts → src/types.d.ts} +3 -3
  60. package/es/components/iho-table/src/plugins/verticalTablePlugin/{utils.d.ts → src/utils.d.ts} +7 -6
  61. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -0
  62. package/es/components/iho-table/src/types/index.d.ts +33 -4
  63. package/es/components/iho-table/src/types/pluginType.d.ts +1 -0
  64. package/es/components/index.css +1 -1
  65. package/es/components/index.d.ts +4 -1
  66. package/es/components/index.js +1 -1
  67. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  68. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  69. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  70. package/es/components/step-notice/index.d.ts +309 -0
  71. package/es/components/step-notice/index.js +1 -0
  72. package/es/components/step-notice/src/StepNotice.vue.d.ts +286 -0
  73. package/es/components/step-notice/src/StepNotice.vue.js +1 -0
  74. package/es/components/step-notice/src/StepNotice.vue2.js +1 -0
  75. package/es/components/step-notice/src/components/NoticeConnection.vue.d.ts +39 -0
  76. package/es/components/step-notice/src/components/NoticeConnection.vue.js +1 -0
  77. package/es/components/step-notice/src/components/NoticeConnection.vue2.js +1 -0
  78. package/es/components/step-notice/src/components/NoticeItem.vue.d.ts +151 -0
  79. package/es/components/step-notice/src/components/NoticeItem.vue.js +1 -0
  80. package/es/components/step-notice/src/components/NoticeItem.vue2.js +1 -0
  81. package/es/components/step-notice/src/components/NoticeItemAside.vue.d.ts +35 -0
  82. package/es/components/step-notice/src/components/NoticeItemAside.vue.js +1 -0
  83. package/es/components/step-notice/src/components/NoticeItemAside.vue2.js +1 -0
  84. package/es/components/step-notice/src/components/NoticeOperationList.vue.d.ts +49 -0
  85. package/es/components/step-notice/src/components/NoticeOperationList.vue.js +1 -0
  86. package/es/components/step-notice/src/components/NoticeOperationList.vue2.js +1 -0
  87. package/es/components/step-notice/src/hooks/useTheme.d.ts +1 -0
  88. package/es/components/step-notice/src/hooks/useTheme.js +1 -0
  89. package/es/components/step-notice/src/types.d.ts +33 -0
  90. package/es/components/step-notice/src/types.js +1 -0
  91. package/es/components/step-notice/src/utils.d.ts +3 -0
  92. package/es/components/step-notice/src/utils.js +1 -0
  93. package/es/components/step-notice/style/index.css +1 -0
  94. package/es/env.d.ts +25 -25
  95. package/es/shared/assets/img/defaultCover/10reload.jpg.js +1 -0
  96. package/es/shared/assets/img/defaultCover/1tab.jpg.js +1 -0
  97. package/es/shared/assets/img/defaultCover/2menu.jpg.js +1 -0
  98. package/es/shared/assets/img/defaultCover/3view.jpg.js +1 -0
  99. package/es/shared/assets/img/defaultCover/4system.jpg.js +1 -0
  100. package/es/shared/assets/img/defaultCover/5location.jpg.js +1 -0
  101. package/es/shared/assets/img/defaultCover/6notfound.jpg.js +1 -0
  102. package/es/shared/assets/img/defaultCover/7loading.jpg.js +1 -0
  103. package/es/shared/assets/img/defaultCover/8nopermission.jpg.js +1 -0
  104. package/es/shared/assets/img/defaultCover/9nodata.jpg.js +1 -0
  105. package/es/shared/assets/img/failure.png.js +1 -1
  106. package/es/shared/assets/img/no-permission.png.js +1 -1
  107. package/es/shared/assets/img/nodata.png.js +1 -1
  108. package/es/shared/assets/img/notfound.png.js +1 -1
  109. package/es/shared/assets/img/qr.png.js +1 -1
  110. package/es/shared/assets/img/success.png.js +1 -1
  111. package/es/shared/assets/img/table_style_2.png.js +1 -1
  112. package/es/shared/assets/img/video.png.js +1 -1
  113. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  114. package/es/shared/assets/img/xb_big.png.js +1 -1
  115. package/es/shared/assets/img/xb_small.png.js +1 -1
  116. package/es/shared/components/JSONTree/JSONTree.vue.d.ts +26 -0
  117. package/es/shared/components/JSONTree/JSONTree.vue.js +1 -0
  118. package/es/shared/components/JSONTree/JSONTree.vue2.js +1 -0
  119. package/es/shared/components/JSONTree/index.d.ts +2 -0
  120. package/es/shared/components/JSONTree/index.js +1 -0
  121. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  122. package/es/shared/package.json.js +1 -1
  123. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  124. package/es/shared/utils/tapable/index.d.ts +139 -0
  125. package/package.json +2 -2
  126. package/es/components/iho-table/src/plugins/verticalTablePlugin/renderer.js +0 -1
  127. package/es/components/iho-table/src/plugins/verticalTablePlugin/utils.js +0 -1
  128. /package/es/components/iho-table/src/plugins/verticalTablePlugin/{constants.d.ts → src/constants.d.ts} +0 -0
  129. /package/es/components/iho-table/src/plugins/verticalTablePlugin/{constants.js → src/constants.js} +0 -0
  130. /package/es/components/iho-table/src/plugins/verticalTablePlugin/{types.js → src/types.js} +0 -0
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -0,0 +1 @@
1
+ declare module 'bpmn-js/lib/Viewer';
@@ -0,0 +1 @@
1
+ declare module 'bpmn-js/lib/features/modeling';
@@ -0,0 +1 @@
1
+ declare module 'diagram-js/lib/navigation/movecanvas';
@@ -23,7 +23,6 @@ export declare class Print {
23
23
  private messageHandler;
24
24
  private _initDomesticSystem;
25
25
  getPicAndUpload(obj: any): Promise<void>;
26
- _uploadImageServices(uploadParams: AnyObject): Promise<any>;
27
26
  private postMessage;
28
27
  messageCollect(id: string, data: AnyObject): Promise<unknown>;
29
28
  messageCollectAndNotifyFail(id: string, data: AnyObject, messageTimeout: number): Promise<unknown>;
@@ -35,6 +34,7 @@ export declare class Print {
35
34
  showPreview(...args: Parameters<PreviewDialog['show']>): Promise<string>;
36
35
  _testConnection(): Promise<unknown>;
37
36
  _queryServicesPrint(params: AnyObject): Promise<any>;
37
+ _queryBase64ServicesPrint(params: AnyObject): Promise<any>;
38
38
  _callPrintWithFile(queryParams: AnyObject): Promise<any>;
39
39
  _handleMonitorNotify(message: string | unknown): void;
40
40
  _handleResult(data: AnyObject, errorCallbackFn?: AnyFn): false | AnyObject;
@@ -1 +1 @@
1
- import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{getFileUrl as r,useBrowserPrint as a,isIReport as n}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as c}from"date-fns";import{io as h}from"socket.io-client";const d=t.create({timeout:6e4,withCredentials:!1}),m=`${window.location.protocol}//${window.location.host}`,p=`${m}/fdp-api/print/assembly/printIReport`,u=`${m}/bi-api/reprot/print/open/client/printIReportForBase64`,f=`${m}/bi-api/reprot/print/open/client/previewIReport`,w=`${m}/bi-api/reprot/print/open/client/getRemote`,y=`${m}/bi-api/reprot/print/open/client/uploadTemplate`,g=`${m}/printService/file`;let P=null;class v{constructor(){var t,e,r;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.queryServicesParams=null,this.isConnectHiPrint=!1,this.clientInfo=null,this.printerList=[],this.hiPrintSocket=null,this.base64Fragment="",this._successCallbackFn=null,this._errorCallbackFn=null,this.messageHandlerQueue=[],P)return P;P=this,this._initDomesticSystem();const a=window;this.CMonitor=a.$CMonitor;try{this.webview=a.top?null==(t=a.top.chrome)?void 0:t.webview:null==(e=a.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(r=a.chrome)?void 0:r.webview}if(this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:r}=e;try{s(i.res||"")}catch(t){r(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}_initDomesticSystem(){try{this.hiPrintSocket=h("http://127.0.0.1:17521",{transports:["websocket"],auth:{token:"no-use-vue-plugin-hiprint"}}),this.hiPrintSocket&&(this.hiPrintSocket.on("connect",(()=>{this.isConnectHiPrint=!0})),this.hiPrintSocket.on("disconnect",(()=>{this.isConnectHiPrint=!1})),this.hiPrintSocket.on("clientInfo",(t=>{console.log("获取到客户端信息>>>>>",t),t.clientUrl&&(this.clientInfo=t)})),this.hiPrintSocket.on("printerList",(t=>{this.printerList=t,console.log("获取到打印机列表信息>>>>>",t)})),this.hiPrintSocket.on("success",(t=>{console.log("打印成功>>>>>",t),this.base64Fragment="",this._successCallbackFn&&this._successCallbackFn(t)})),this.hiPrintSocket.on("replayPrinterTemplate",(t=>{console.log("获取到数据的回复>>>>>",t),t&&this.hiPrintSocket.emit("news",t)})),this.hiPrintSocket.on("error",(t=>{console.log("打印失败>>>>>",t),this.base64Fragment="",this._errorCallbackFn&&this._errorCallbackFn(t)})))}catch(t){console.log("hiprint系统连接失败",t)}}async getPicAndUpload(t){try{const e=t=>"[object Object]"===Object.prototype.toString.call(t);if("success"===(null==t?void 0:t.result)&&"Y"==(null==t?void 0:t.uploadTemplateFlag)&&!(null==t?void 0:t.filebase64)&&this.queryServicesParams){const t=e(this.queryServicesParams.params)?this.queryServicesParams.params:JSON.parse(this.queryServicesParams.params);t.uploadTemplateFlag="Y",this.queryServicesParams.params=JSON.stringify(t),this.queryServicesParams.cmdid="7",this.queryServicesParams.print={print:1,type:2,callback:1};const i=await this._queryServicesPrint(this.queryServicesParams);if(i&&i.filebase64&&i.key){const t={templateId:this.queryServicesParams.templateId,formatId:this.queryServicesParams.formatId,fileBase64:i.filebase64,authorizationKey:i.key,params:this.queryServicesParams.params},e=await this._uploadImageServices(t);"success"===(null==e?void 0:e.result)&&console.log("图片上传成功")}}}catch(t){console.log(t)}finally{this.queryServicesParams=null}}async _uploadImageServices(t){const e=new FormData;Object.keys(t).forEach((i=>{e.append(i,t[i])}));const{data:i}=await d({method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},url:y,data:e})||{};return i}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:s(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const s={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(s),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,s,r){const a={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},n=await this._queryServicesPrint(a);return this._handleQueryPrintDataResult(n,e,r)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,paramsArr:s,cmdid:r,print:a,signature:n,printdlgshow:o="0",nobillnode:l="1",btnprint:h="1",messageTimeout:d=0}){const m={templateId:t,formatId:e,params:i,cmdid:r,nobillnode:l,printdlgshow:o,btnprint:h,messageTimeout:d,...n?{signature:n}:{}};if(s&&(m.paramsArr=s),a){try{a=JSON.parse(a)}catch(t){}m.print=a}else if(this.isRemote){const t=c(new Date,"yyyyMMddHHmmss");m.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return this.queryServicesParams=m,await this._queryServicesPrint(m)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:r=0}){const a={};let n={};try{n=Object.assign({},a,JSON.parse(i))}catch(t){n=a}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(n),messageTimeout:r};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:w})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=m+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:p,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}paramsSerializer(t){return Object.keys(t).forEach((e=>{const i=t[e];t[e]=i,"biParams"==e&&(t[e]=encodeURIComponent(i))})),t}async _queryPrintForBase64(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:a}=await d({method:"post",url:u,params:{id:t,formatId:e.split("_")[1],params:this.paramsSerializer(r),authorizationKey:s}})||{};return a}async _queryPrintForPdf(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:a}=await d({method:"post",url:f,responseType:"blob",params:{id:t,formatId:e.split("_")[1],params:this.paramsSerializer(r),authorizationKey:s}})||{};return a}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),n=s[s.length-2],o=s[s.length-1],l=await r(`${g}/${n}/${o}`),c=a(null,e,l);if("preview"===e)return c}}_base64ToBlob(t,e){const i=window.atob(t);let s=i.length;const r=new Uint8Array(s);for(;s--;)r[s]=i.charCodeAt(s);return new Blob([r],{type:e})}async preview({templateId:t,formatId:e,params:i="",paramsArr:s,authorizationKey:r,signature:l,btnprint:c,messageTimeout:h=0},d,m){if(n(e)){const s=await this._queryPrintForPdf(t,e,i,r);if(!s)return null==m?void 0:m("获取文件失败!");const n=a(s,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),null==d?void 0:d({file:s})}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,m))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,paramsArr:s,cmdid:this.isRemote?"7":"8",signature:l,btnprint:c,messageTimeout:h}),a=this._handleResult(r,m);if(!a)return!1;if(this.isRemote){const t=await this._browserPrint(a,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}await this.getPicAndUpload(a),null==d||d(a)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==m||m(i),this._handleMonitorNotify(i)}}async printSync(t,e,i){const s=t.map((t=>{const e={params:"",printdlgshow:"0",nobillnode:"1",btnprint:"1",...t,cmdid:"7",...t.signature?{signature:t.signature}:{}};if(e.print)try{e.print=JSON.parse(e.print)}catch(t){}return{inputData:e}}));try{const t=l(),r=await this.messageCollect(t,{exec:"printA",data:s});if(r&&Array.isArray(r)){r.some((t=>"success"===t.res.result))?null==e||e(r):(null==i||i(r),this._handleMonitorNotify(r))}else{const t="打印命令返回无效数据";this._handleMonitorNotify(r||""),null==i||i({type:"printError",message:t,result:!1,errinfo:t})}}catch(t){const e={error:t,message:"打印失败"};null==i||i(e),this._handleMonitorNotify(e)}}async printDirect({templateId:t,formatId:e,params:i="",paramsArr:s,authorizationKey:r,print:a,signature:o,printdlgshow:l,nobillnode:c,isDownloadFile:h=!0,messageTimeout:d=0},m,p,u="printDirect"){if(n(e)){if(!this.isConnectHiPrint)return void p({message:"请连接hiPrint客户端"});const s=await this._queryPrintForBase64(t,e,i,r);if(!s.success)return p({message:s.resultMsg});const{base64:a,formatId:n}=s.map;return this.base64Fragment=a,this._successCallbackFn=m,this._errorCallbackFn=p,void this.hiPrintSocket.emit("news",{printerList:this.printerList,type:"askPrinterTemplate",markTemplateId:n,pdf_stream:this.base64Fragment})}await this._queryProxyOrigin();const f=await this._testConnection();if(!this._handleResultTest(f,p))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,paramsArr:s,cmdid:"7",print:a,signature:o,printdlgshow:l,nobillnode:c,messageTimeout:d}),n=this._handleResult(r,p);if(!n)return!1;h&&["downloadPDF"].includes(u)&&await this._browserPrint(n,u),null==m||m(n)}catch(t){const e="printDirect"===u?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==p||p(i),this._handleMonitorNotify(i)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}async downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=c(new Date,"yyyy-MM-dd"),i=l(),s=c(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}if(n(t.formatId)){const e=await this._queryPrintForPdf(t.templateId||"",t.formatId,t.params,t.authorizationKey);return e?(a(e,"downloadPDF"),i({file:e})):null==s?void 0:s("获取文件失败!")}this.printDirect(t,(async t=>{t||s(null);const r=this,a=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(t.filedir);i(a,t)}),(t=>s(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,a){const n=await this._testConnection();if(!this._handleResultTest(n,a))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,a);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,a);if(!l)return!1;r&&r(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,a){const n=await this._testConnection();if(!this._handleResultTest(n,a))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,a);return!!o&&(r&&r(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const n=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(n,r);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r=0},a,n){const o=await this._testConnection();if(!this._handleResultTest(o,n))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r}),c=this._handleResult(l,n);if(!c)return!1;a&&a(c)}async addPrintFormat({templateId:t,params:e,token:i},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const n=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(n,r);if(!o)return!1;s&&s(o)}}export{v as Print};
1
+ import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{getFileUrl as r,useBrowserPrint as n,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as c}from"date-fns";import{io as h}from"socket.io-client";const m=t.create({timeout:6e4,withCredentials:!1}),d=`${window.location.protocol}//${window.location.host}`,u=`${d}/fdp-api/print/assembly/printIReport`,p=`${d}/bi-api/reprot/print/open/client/printIReportForBase64`,f=`${d}/bi-api/reprot/print/open/client/previewIReport`,g=`${d}/bi-api/reprot/print/open/client/getRemote`,w=`${d}/printService/file`;let y=null;class P{constructor(){var t,e,r;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.queryServicesParams=null,this.isConnectHiPrint=!1,this.clientInfo=null,this.printerList=[],this.hiPrintSocket=null,this.base64Fragment="",this._successCallbackFn=null,this._errorCallbackFn=null,this.messageHandlerQueue=[],y)return y;y=this,this._initDomesticSystem();const n=window;this.CMonitor=n.$CMonitor;try{this.webview=n.top?null==(t=n.top.chrome)?void 0:t.webview:null==(e=n.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(r=n.chrome)?void 0:r.webview}if(this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:r}=e;try{s(i.res||"")}catch(t){r(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}_initDomesticSystem(){try{this.hiPrintSocket=h("http://127.0.0.1:17521",{transports:["websocket"],auth:{token:"no-use-vue-plugin-hiprint"}}),this.hiPrintSocket&&(this.hiPrintSocket.on("connect",(()=>{this.isConnectHiPrint=!0})),this.hiPrintSocket.on("disconnect",(()=>{this.isConnectHiPrint=!1})),this.hiPrintSocket.on("clientInfo",(t=>{console.log("获取到客户端信息>>>>>",t),t.clientUrl&&(this.clientInfo=t)})),this.hiPrintSocket.on("printerList",(t=>{this.printerList=t,console.log("获取到打印机列表信息>>>>>",t)})),this.hiPrintSocket.on("success",(t=>{console.log("打印成功>>>>>",t),this.base64Fragment="",this._successCallbackFn&&this._successCallbackFn(t)})),this.hiPrintSocket.on("replayPrinterTemplate",(t=>{console.log("获取到数据的回复>>>>>",t),t&&this.hiPrintSocket.emit("news",t)})),this.hiPrintSocket.on("error",(t=>{console.log("打印失败>>>>>",t),this.base64Fragment="",this._errorCallbackFn&&this._errorCallbackFn(t)})))}catch(t){console.log("hiprint系统连接失败",t)}}async getPicAndUpload(t){try{const e=t=>"[object Object]"===Object.prototype.toString.call(t);if("success"===(null==t?void 0:t.result)&&"Y"==(null==t?void 0:t.uploadTemplateFlag)&&!(null==t?void 0:t.filebase64)&&this.queryServicesParams){const t=e(this.queryServicesParams.params)?this.queryServicesParams.params:JSON.parse(this.queryServicesParams.params);t.uploadTemplateFlag="Y",this.queryServicesParams.params=JSON.stringify(t),this.queryServicesParams.cmdid="7",this.queryServicesParams.print={print:1,type:6,zip:0},this.queryServicesParams.paramsArr=[{params:JSON.stringify(t)}];await this._queryBase64ServicesPrint(this.queryServicesParams)}}catch(t){console.log(t)}finally{this.queryServicesParams=null}}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{m({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_queryBase64ServicesPrint(t){return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):m({url:"/services/Printqueue",method:"get",params:{inputData:JSON.stringify(t)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:s(i)}):m({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const s={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(s),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,s,r){const n={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},a=await this._queryServicesPrint(n);return this._handleQueryPrintDataResult(a,e,r)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,paramsArr:s,cmdid:r,print:n,signature:a,printdlgshow:o="0",nobillnode:l="1",btnprint:h="1",messageTimeout:m=0}){const d={templateId:t,formatId:e,params:i,cmdid:r,nobillnode:l,printdlgshow:o,btnprint:h,messageTimeout:m,...a?{signature:a}:{}};if(s&&(d.paramsArr=s),n){try{n=JSON.parse(n)}catch(t){}d.print=n}else if(this.isRemote){const t=c(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return this.queryServicesParams=d,await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:r=0}){const n={};let a={};try{a=Object.assign({},n,JSON.parse(i))}catch(t){a=n}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(a),messageTimeout:r};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await m({method:"get",url:g})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=d+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await m({method:"post",url:u,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}paramsSerializer(t){return Object.keys(t).forEach((e=>{const i=t[e];t[e]=i,"biParams"==e&&(t[e]=encodeURIComponent(i))})),t}async _queryPrintForBase64(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:n}=await m({method:"post",url:p,params:{id:t,formatId:e.split("_")[1],params:this.paramsSerializer(r),authorizationKey:s}})||{};return n}async _queryPrintForPdf(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:n}=await m({method:"post",url:f,responseType:"blob",params:{id:t,formatId:e.split("_")[1],params:this.paramsSerializer(r),authorizationKey:s}})||{};return n}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=s[s.length-2],o=s[s.length-1],l=await r(`${w}/${a}/${o}`),c=n(null,e,l);if("preview"===e)return c}}_base64ToBlob(t,e){const i=window.atob(t);let s=i.length;const r=new Uint8Array(s);for(;s--;)r[s]=i.charCodeAt(s);return new Blob([r],{type:e})}async preview({templateId:t,formatId:e,params:i="",paramsArr:s,authorizationKey:r,signature:l,btnprint:c,messageTimeout:h=0},m,d){if(a(e)){const s=await this._queryPrintForPdf(t,e,i,r);if(!s)return null==d?void 0:d("获取文件失败!");const a=n(s,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,a),null==m?void 0:m({file:s})}await this._queryProxyOrigin();const u=await this._testConnection();if(!this._handleResultTest(u,d))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,paramsArr:s,cmdid:this.isRemote?"7":"8",signature:l,btnprint:c,messageTimeout:h}),n=this._handleResult(r,d);if(!n)return!1;if(this.isRemote){const t=await this._browserPrint(n,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}await this.getPicAndUpload(n),null==m||m(n)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==d||d(i),this._handleMonitorNotify(i)}}async printSync(t,e,i){const s=t.map((t=>{const e={params:"",printdlgshow:"0",nobillnode:"1",btnprint:"1",...t,cmdid:"7",...t.signature?{signature:t.signature}:{}};if(e.print)try{e.print=JSON.parse(e.print)}catch(t){}return{inputData:e}}));try{const t=l(),r=await this.messageCollect(t,{exec:"printA",data:s});if(r&&Array.isArray(r)){r.some((t=>"success"===t.res.result))?null==e||e(r):(null==i||i(r),this._handleMonitorNotify(r))}else{const t="打印命令返回无效数据";this._handleMonitorNotify(r||""),null==i||i({type:"printError",message:t,result:!1,errinfo:t})}}catch(t){const e={error:t,message:"打印失败"};null==i||i(e),this._handleMonitorNotify(e)}}async printDirect({templateId:t,formatId:e,params:i="",paramsArr:s,authorizationKey:r,print:n,signature:o,printdlgshow:l,nobillnode:c,isDownloadFile:h=!0,messageTimeout:m=0},d,u,p="printDirect"){if(a(e)){if(!this.isConnectHiPrint)return void u({message:"请连接hiPrint客户端"});const s=await this._queryPrintForBase64(t,e,i,r);if(!s.success)return u({message:s.resultMsg});const{base64:n,formatId:a}=s.map;return this.base64Fragment=n,this._successCallbackFn=d,this._errorCallbackFn=u,void this.hiPrintSocket.emit("news",{printerList:this.printerList,type:"askPrinterTemplate",markTemplateId:a,pdf_stream:this.base64Fragment})}await this._queryProxyOrigin();const f=await this._testConnection();if(!this._handleResultTest(f,u))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,paramsArr:s,cmdid:"7",print:n,signature:o,printdlgshow:l,nobillnode:c,messageTimeout:m}),a=this._handleResult(r,u);if(!a)return!1;h&&["downloadPDF"].includes(p)&&await this._browserPrint(a,p),null==d||d(a)}catch(t){const e="printDirect"===p?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==u||u(i),this._handleMonitorNotify(i)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):m.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}async downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=c(new Date,"yyyy-MM-dd"),i=l(),s=c(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}if(a(t.formatId)){const e=await this._queryPrintForPdf(t.templateId||"",t.formatId,t.params||"",t.authorizationKey);return e?(n(e,"downloadPDF"),i({file:e})):null==s?void 0:s("获取文件失败!")}this.printDirect(t,(async t=>{t||s(null);const r=this,n=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(t.filedir);i(n,t)}),(t=>s(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,n){const a=await this._testConnection();if(!this._handleResultTest(a,n))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,n);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,n);if(!l)return!1;r&&r(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,n){const a=await this._testConnection();if(!this._handleResultTest(a,n))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,n);return!!o&&(r&&r(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,r);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r=0},n,a){const o=await this._testConnection();if(!this._handleResultTest(o,a))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r}),c=this._handleResult(l,a);if(!c)return!1;n&&n(c)}async addPrintFormat({templateId:t,params:e,token:i},s,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,r);if(!o)return!1;s&&s(o)}}export{P as Print};
@@ -2726,6 +2726,7 @@ export declare const CallbackMaps: Map<string, {
2726
2726
  maxCheckSize?: number | undefined;
2727
2727
  disableHeader?: boolean | undefined;
2728
2728
  useNCheckbox?: boolean | undefined;
2729
+ indeterminateField?: string | undefined;
2729
2730
  } | undefined;
2730
2731
  tooltipConfig?: {
2731
2732
  showAll?: boolean | undefined;
@@ -3864,71 +3865,6 @@ export declare const CallbackMaps: Map<string, {
3864
3865
  adaptive?: boolean | undefined;
3865
3866
  } | undefined;
3866
3867
  params?: any;
3867
- onFormChange?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
3868
- onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
3869
- onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
3870
- onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
3871
- onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
3872
- onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
3873
- onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
3874
- onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
3875
- onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
3876
- onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
3877
- onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
3878
- onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
3879
- onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
3880
- onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
3881
- onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
3882
- onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
3883
- onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
3884
- onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
3885
- onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
3886
- onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
3887
- onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
3888
- onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
3889
- onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
3890
- onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
3891
- onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
3892
- onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
3893
- onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
3894
- onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
3895
- onFilterVisible?: (() => void) | undefined;
3896
- onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
3897
- onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
3898
- onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
3899
- onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
3900
- onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
3901
- onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
3902
- onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
3903
- onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
3904
- onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
3905
- onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
3906
- onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
3907
- onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
3908
- onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
3909
- onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
3910
- onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
3911
- onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
3912
- onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
3913
- onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
3914
- onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
3915
- onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
3916
- onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
3917
- onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
3918
- onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
3919
- onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
3920
- onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
3921
- onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
3922
- onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
3923
- onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
3924
- onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
3925
- onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
3926
- onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
3927
- onPageChange?: (() => void) | undefined;
3928
- onSettingClick?: (() => void) | undefined;
3929
- onFormClick?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
3930
- onKeyboard?: ((payload_0: import("../../../../../components/iho-table").IHoTableKeyboardPayload) => void) | undefined;
3931
- onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
3932
3868
  uuid?: string | undefined;
3933
3869
  isTree?: import("../../../..").MaybeString<0 | 2 | 1 | 3> | undefined;
3934
3870
  isBatchSelect?: import("../../../..").MaybeString<0 | 1> | undefined;
@@ -4157,6 +4093,71 @@ export declare const CallbackMaps: Map<string, {
4157
4093
  enable?: boolean | undefined;
4158
4094
  headerWidth?: number | "auto" | ((level: number) => number) | undefined;
4159
4095
  } | undefined;
4096
+ onFormChange?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
4097
+ onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
4098
+ onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
4099
+ onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
4100
+ onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
4101
+ onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
4102
+ onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
4103
+ onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
4104
+ onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
4105
+ onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
4106
+ onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
4107
+ onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
4108
+ onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
4109
+ onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
4110
+ onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
4111
+ onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
4112
+ onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
4113
+ onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
4114
+ onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
4115
+ onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
4116
+ onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
4117
+ onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
4118
+ onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
4119
+ onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
4120
+ onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
4121
+ onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
4122
+ onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
4123
+ onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
4124
+ onFilterVisible?: (() => void) | undefined;
4125
+ onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
4126
+ onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
4127
+ onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
4128
+ onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
4129
+ onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
4130
+ onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
4131
+ onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
4132
+ onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
4133
+ onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
4134
+ onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
4135
+ onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
4136
+ onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
4137
+ onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
4138
+ onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
4139
+ onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
4140
+ onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
4141
+ onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
4142
+ onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
4143
+ onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
4144
+ onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
4145
+ onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
4146
+ onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
4147
+ onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
4148
+ onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
4149
+ onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
4150
+ onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
4151
+ onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
4152
+ onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
4153
+ onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
4154
+ onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
4155
+ onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
4156
+ onPageChange?: (() => void) | undefined;
4157
+ onSettingClick?: (() => void) | undefined;
4158
+ onFormClick?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
4159
+ onKeyboard?: ((payload_0: import("../../../../../components/iho-table").IHoTableKeyboardPayload) => void) | undefined;
4160
+ onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
4160
4161
  }>;
4161
4162
  updateConfigRefDebounced: () => void;
4162
4163
  updateConfigRef: () => void;
@@ -6288,6 +6289,7 @@ export declare const CallbackMaps: Map<string, {
6288
6289
  maxCheckSize?: number | undefined;
6289
6290
  disableHeader?: boolean | undefined;
6290
6291
  useNCheckbox?: boolean | undefined;
6292
+ indeterminateField?: string | undefined;
6291
6293
  } | undefined;
6292
6294
  tooltipConfig?: {
6293
6295
  showAll?: boolean | undefined;
@@ -7426,11 +7428,6 @@ export declare const CallbackMaps: Map<string, {
7426
7428
  adaptive?: boolean | undefined;
7427
7429
  } | undefined;
7428
7430
  params?: any;
7429
- onFormChange?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
7430
- onSettingClick?: (() => void) | undefined;
7431
- onFormClick?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
7432
- onKeyboard?: ((payload_0: import("../../../../../components/iho-table").IHoTableKeyboardPayload) => void) | undefined;
7433
- onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
7434
7431
  uuid?: string | undefined;
7435
7432
  isTree?: import("../../../..").MaybeString<0 | 2 | 1 | 3> | undefined;
7436
7433
  isBatchSelect?: import("../../../..").MaybeString<0 | 1> | undefined;
@@ -7659,6 +7656,11 @@ export declare const CallbackMaps: Map<string, {
7659
7656
  enable?: boolean | undefined;
7660
7657
  headerWidth?: number | "auto" | ((level: number) => number) | undefined;
7661
7658
  } | undefined;
7659
+ onFormChange?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
7660
+ onSettingClick?: (() => void) | undefined;
7661
+ onFormClick?: ((payload_0: import("../../../../../components/iho-table").IhoTableFormChangePayload) => void) | undefined;
7662
+ onKeyboard?: ((payload_0: import("../../../../../components/iho-table").IHoTableKeyboardPayload) => void) | undefined;
7663
+ onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
7662
7664
  }>;
7663
7665
  configChanged: boolean;
7664
7666
  fieldChanged: boolean;
@@ -175,9 +175,6 @@ declare const _default: import("vue").DefineComponent<{
175
175
  modelValue: unknown[];
176
176
  componentData: Record<string, any>;
177
177
  } & {
178
- /**
179
- * 改变弹窗大小
180
- */
181
178
  itemKey?: string | Function | undefined;
182
179
  }>, {
183
180
  move: Function;
@@ -699,9 +699,6 @@ declare const _default: import("vue").DefineComponent<{
699
699
  handleInitConditions: () => Promise<void>;
700
700
  validate: () => Promise<unknown>;
701
701
  saveAdd: () => void;
702
- /**
703
- * 改变展示方式
704
- */
705
702
  cancelSaveAdd: () => void;
706
703
  checkActionList: () => boolean;
707
704
  NSpin: any;
@@ -1450,6 +1447,9 @@ declare const _default: import("vue").DefineComponent<{
1450
1447
  isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
1451
1448
  };
1452
1449
  NSelect: any;
1450
+ /**
1451
+ * 改变展示方式
1452
+ */
1453
1453
  NPopover: any;
1454
1454
  CDatePicker: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
1455
1455
  updateUnchangedValue: {
@@ -0,0 +1,71 @@
1
+ import { SFCWithInstall } from '../../shared/types';
2
+ declare const DefaultPage: SFCWithInstall<import("vue").DefineComponent<{
3
+ type: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ config: {
8
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
9
+ default: () => {
10
+ title: string;
11
+ content: string;
12
+ };
13
+ };
14
+ }, {
15
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
16
+ type: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ config: {
21
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
22
+ default: () => {
23
+ title: string;
24
+ content: string;
25
+ };
26
+ };
27
+ }>> & {
28
+ onReload?: ((...args: any[]) => any) | undefined;
29
+ }>>;
30
+ configResult: import("vue").ComputedRef<{
31
+ title: string;
32
+ content: string;
33
+ img: string;
34
+ }>;
35
+ emit: (event: "reload", ...args: any[]) => void;
36
+ reloadPage: () => void;
37
+ NEmpty: any;
38
+ NButton: any;
39
+ NIcon: any;
40
+ Reload: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
41
+ defaultPageTypeConfig: {
42
+ TAB: string;
43
+ MENU: string;
44
+ VIEW: string;
45
+ SYSTEM: string;
46
+ LOCATION: string;
47
+ NOTFOUND: string;
48
+ LOADING: string;
49
+ NOPERMISSION: string;
50
+ NODATA: string;
51
+ RELOAD: string;
52
+ };
53
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reload"[], "reload", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
+ type: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ config: {
59
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
60
+ default: () => {
61
+ title: string;
62
+ content: string;
63
+ };
64
+ };
65
+ }>> & {
66
+ onReload?: ((...args: any[]) => any) | undefined;
67
+ }, {
68
+ type: string;
69
+ config: import("../../shared/types").AnyObject;
70
+ }>>;
71
+ export default DefaultPage;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as a}from"../../shared/utils/index.js";import e from"./src/index.vue.js";const o=e;o.install=function(e){a(e,o,r+"DefaultPage")};export{o as default};
@@ -0,0 +1,19 @@
1
+ export declare const defaultPageTypeConfig: {
2
+ TAB: string;
3
+ MENU: string;
4
+ VIEW: string;
5
+ SYSTEM: string;
6
+ LOCATION: string;
7
+ NOTFOUND: string;
8
+ LOADING: string;
9
+ NOPERMISSION: string;
10
+ NODATA: string;
11
+ RELOAD: string;
12
+ };
13
+ export declare const descriptionConfig: {
14
+ [x: string]: {
15
+ title: string;
16
+ content: string;
17
+ img: string;
18
+ };
19
+ };
@@ -0,0 +1 @@
1
+ import t from"../../../../shared/assets/img/defaultCover/1tab.jpg.js";import e from"../../../../shared/assets/img/defaultCover/2menu.jpg.js";import s from"../../../../shared/assets/img/defaultCover/3view.jpg.js";import o from"../../../../shared/assets/img/defaultCover/4system.jpg.js";import i from"../../../../shared/assets/img/defaultCover/5location.jpg.js";import m from"../../../../shared/assets/img/defaultCover/6notfound.jpg.js";import r from"../../../../shared/assets/img/defaultCover/7loading.jpg.js";import a from"../../../../shared/assets/img/defaultCover/8nopermission.jpg.js";import g from"../../../../shared/assets/img/defaultCover/9nodata.jpg.js";import n from"../../../../shared/assets/img/defaultCover/10reload.jpg.js";const d={TAB:"1",MENU:"2",VIEW:"3",SYSTEM:"4",LOCATION:"5",NOTFOUND:"6",LOADING:"7",NOPERMISSION:"8",NODATA:"9",RELOAD:"10"},l={[d.TAB]:{title:"无可选标签",content:"请联系管理员进行标签管理",img:t},[d.MENU]:{title:"你还没有进行菜单设置哟",content:"设置后可自定义调整菜单的顺序/结构,不设置使用系统默认菜单",img:e},[d.VIEW]:{title:"视图未配置",content:"请联系开发人员",img:s},[d.SYSTEM]:{title:"系统错误",content:"请联系管理员",img:o},[d.LOCATION]:{title:"位置访问失败 ",content:"",img:i},[d.NOTFOUND]:{title:"找不到页面",content:"",img:m},[d.LOADING]:{title:"正在拼命加载中...",content:"请稍后",img:r},[d.NOPERMISSION]:{title:"你没有访问权限",content:"请联系管理员",img:a},[d.NODATA]:{title:"暂无数据",content:"",img:g},[d.RELOAD]:{title:"更新提示",content:"系统有新的内容更新,请点击下面的按钮重载页面,以确保系统功能正常",img:n}};export{d as defaultPageTypeConfig,l as descriptionConfig};