cnhis-design-vue 3.3.3-release.12 → 3.3.3-release.14

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 (128) hide show
  1. package/README.md +87 -87
  2. package/es/components/button-print/index.d.ts +60 -0
  3. package/es/components/button-print/src/ButtonPrint.vue.d.ts +60 -0
  4. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
  5. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +18 -0
  6. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +33 -4
  7. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
  8. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +30 -4
  9. package/es/components/button-print/src/utils/print.d.ts +6 -4
  10. package/es/components/button-print/src/utils/print.js +176 -4
  11. package/es/components/calendar/src/Calendar.vue2.js +15 -5
  12. package/es/components/classification/index.d.ts +500 -5
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +500 -5
  14. package/es/components/classification/src/components/set-classification/index.vue.d.ts +500 -5
  15. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  16. package/es/components/classification/src/index.vue.d.ts +500 -5
  17. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
  18. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  19. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
  20. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
  21. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  22. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
  23. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  24. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  25. package/es/components/field-set/src/types/index.d.ts +1 -1
  26. package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
  27. package/es/components/form-render/src/components/renderer/date.js +12 -10
  28. package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
  29. package/es/components/form-render/style/index.css +1 -1
  30. package/es/components/iho-chat/index.d.ts +41 -50
  31. package/es/components/iho-chat/src/Index.vue.d.ts +41 -50
  32. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +6 -2
  33. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  34. package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +1 -1
  35. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +29 -28
  36. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +239 -94
  37. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  38. package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -24
  39. package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
  40. package/es/components/iho-chat/src/hooks/useVideo.d.ts +54 -10
  41. package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
  42. package/es/components/iho-chat/src/utils/index.d.ts +1 -0
  43. package/es/components/iho-chat/src/utils/index.js +7 -1
  44. package/es/components/iho-chat/style/index.css +1 -1
  45. package/es/components/index.css +1 -1
  46. package/es/components/index.d.ts +2 -0
  47. package/es/components/index.js +2 -1
  48. package/es/components/keyboard/index.d.ts +9 -0
  49. package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
  50. package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
  51. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
  52. package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
  53. package/es/components/keyboard/src/types.d.ts +17 -0
  54. package/es/components/keyboard/src/types.js +1 -0
  55. package/es/components/scale-view/index.d.ts +13 -0
  56. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  57. package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
  58. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  59. package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
  60. package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
  61. package/es/components/table-filter/index.js +1 -1
  62. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +490 -1
  63. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
  64. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
  65. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
  66. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
  67. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +238 -0
  68. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
  69. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +239 -1
  70. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +51 -8
  71. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +477 -1
  72. package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
  73. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
  74. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +500 -5
  75. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +13 -6
  76. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  77. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  78. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  79. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
  80. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
  81. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
  82. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
  83. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
  84. package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
  85. package/es/components/table-filter/src/tool/baseOptions.js +8 -1
  86. package/es/components/table-filter/src/types/enums.d.ts +4 -0
  87. package/es/components/table-filter/src/types/enums.js +5 -1
  88. package/es/components/vertify/index.d.ts +1 -0
  89. package/es/components/vertify/index.js +1 -0
  90. package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
  91. package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
  92. package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
  93. package/es/components/vertify/src/utils/dialog.d.ts +7 -0
  94. package/es/components/vertify/src/utils/dialog.js +73 -0
  95. package/es/components/vertify/src/utils/index.d.ts +11 -0
  96. package/es/components/vertify/src/utils/index.js +24 -0
  97. package/es/components/vod-chunk-upload/index.d.ts +13 -0
  98. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
  99. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
  100. package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
  101. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
  102. package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
  103. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
  104. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
  105. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
  106. package/es/components/vod-chunk-upload/style/index.css +1 -1
  107. package/es/env.d.ts +25 -25
  108. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  109. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  110. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  111. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  112. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  113. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  114. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  115. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  116. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  117. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  118. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  119. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  120. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  121. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  122. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  123. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  124. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  125. package/es/shared/hooks/useDateTime.js +1 -1
  126. package/es/shared/package.json.js +2 -2
  127. package/es/shared/utils/fabricjs/index.js +1 -1
  128. package/package.json +4 -4
@@ -156,6 +156,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
156
156
  svrUpdateIp: {
157
157
  type: String
158
158
  },
159
+ apptype: {
160
+ type: String
161
+ },
162
+ uuid: {
163
+ type: String
164
+ },
159
165
  hidePreviewBtns: {
160
166
  type: String
161
167
  }
@@ -268,14 +274,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
268
274
  };
269
275
  const callLocalServicesErrorCb = (res) => {
270
276
  state.spinning = false;
271
- emit("error", res);
277
+ let info = {
278
+ formatId: state.currentFormatId,
279
+ templateId: getTemplateIdByFormatId.value
280
+ };
281
+ emit("error", res, info);
272
282
  if (isObject(res) && res.type === "notInstalledApp") {
273
283
  $message.error(res.message);
274
284
  }
275
285
  };
276
286
  const callLocalServicesCancelCb = (res) => {
277
287
  state.spinning = false;
278
- emit("cancel", res);
288
+ let info = {
289
+ formatId: state.currentFormatId,
290
+ templateId: getTemplateIdByFormatId.value
291
+ };
292
+ emit("cancel", res, info);
279
293
  };
280
294
  const prevFnError = (type) => {
281
295
  const error = {
@@ -290,7 +304,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
290
304
  type,
291
305
  preExecution: true
292
306
  };
293
- emit("error", error);
307
+ let info = {
308
+ formatId: state.currentFormatId,
309
+ templateId: getTemplateIdByFormatId.value
310
+ };
311
+ emit("error", error, info);
294
312
  };
295
313
  const getPrintParams = (index = 0) => {
296
314
  var _a2;
@@ -358,6 +376,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
358
376
  signature: props.signature,
359
377
  copies: props.printCopies,
360
378
  svrUpdateIp: props.svrUpdateIp,
379
+ apptype: props.apptype,
380
+ uuid: props.uuid,
361
381
  formatItem: curFormatIdObj
362
382
  };
363
383
  if (props.strategy === "MULTI") {
@@ -426,7 +446,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
426
446
  formatId: state.currentFormatId,
427
447
  templateId: getTemplateIdByFormatId.value
428
448
  }).then(() => {
449
+ var _a2;
429
450
  const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
451
+ const curFormatIdObj = (_a2 = state == null ? void 0 : state.formatList) == null ? void 0 : _a2.find((item) => item.id == state.currentFormatId);
430
452
  const queryParams = {
431
453
  formatId: state.currentFormatId,
432
454
  iReportExecuteMode: state.iReportExecuteMode,
@@ -439,7 +461,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
439
461
  resolution: props == null ? void 0 : props.resolution
440
462
  },
441
463
  params,
442
- signature: props.signature
464
+ signature: props.signature,
465
+ formatItem: curFormatIdObj
443
466
  };
444
467
  printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "download"), callLocalServicesErrorCb);
445
468
  }).catch(() => {
@@ -703,13 +726,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
703
726
  state.printParams = formatParams(state.templateParams, props.params);
704
727
  };
705
728
  const verifiySuccess = (token) => {
729
+ var _a2;
706
730
  state.identityVerification.visible = false;
707
731
  if (isIReport(state.currentFormatId))
708
732
  return callLocalServicesSuccessCb(null, "edit");
733
+ const curFormatIdObj = (_a2 = state == null ? void 0 : state.formatList) == null ? void 0 : _a2.find((item) => item.id == state.currentFormatId);
709
734
  const queryParams = {
710
735
  formatId: state.currentFormatId,
711
736
  number: state.number,
712
737
  templateId: getTemplateIdByFormatId.value,
738
+ formatItem: curFormatIdObj,
713
739
  params: getPrintParams(),
714
740
  token
715
741
  };
@@ -20,10 +20,12 @@ export declare class Print {
20
20
  private _successCallbackFn;
21
21
  private _errorCallbackFn;
22
22
  private _cancelCallbackFn;
23
+ private _notifyPrintQueueMap;
23
24
  constructor();
24
25
  private readonly messageHandlerQueue;
25
26
  private messageHandler;
26
27
  private _initDomesticSystem;
28
+ private renderQueueProgressNotifyContent;
27
29
  getPicAndUpload(obj: any): Promise<void>;
28
30
  private postMessage;
29
31
  messageCollect(id: string, data: AnyObject): Promise<unknown>;
@@ -55,8 +57,8 @@ export declare class Print {
55
57
  pageCount: any;
56
58
  formatId: string;
57
59
  };
58
- _handleEventDirect({ templateId, formatId, number, svrUpdateIp, hideButtons, params, paramsArr, cmdid, print, signature, copies, printdlgshow, nobillnode, btnprint, messageTimeout }: AnyObject): Promise<any>;
59
- _handleEventEditFormat({ templateId, formatId, number, params, token, messageTimeout }: AnyObject): Promise<any>;
60
+ _handleEventDirect({ templateId, formatId, number, svrUpdateIp, apptype, printname, uuid, priority, hideButtons, params, paramsArr, cmdid, print, signature, copies, printdlgshow, watermark, nobillnode, btnprint, messageTimeout }: AnyObject): Promise<any>;
61
+ _handleEventEditFormat({ templateId, formatId, number, watermark, params, token, messageTimeout }: AnyObject): Promise<any>;
60
62
  _queryProxyOrigin(): Promise<void>;
61
63
  _queryPrintFile(formatId: string, params?: string): Promise<any>;
62
64
  paramsSerializer(params: AnyObject): AnyObject;
@@ -68,7 +70,7 @@ export declare class Print {
68
70
  _base64ToBlob(fileBase64: string, fileType: string): Blob;
69
71
  preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
70
72
  printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
71
- printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
73
+ printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, apptype, uuid, printname, priority, isShowQueueProgressNotify, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, printQueueCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
72
74
  printToHiPrint({ templateId, formatId, params, authorizationKey }: any, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn): Promise<any>;
73
75
  private _downloadPDF;
74
76
  /**
@@ -83,6 +85,6 @@ export declare class Print {
83
85
  formatId: string;
84
86
  }>;
85
87
  printFileData({ formatId, file, printerName }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | AnyObject>;
86
- editPrintFormat({ templateId, formatId, number, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
88
+ editPrintFormat({ templateId, formatId, number, formatItem, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
87
89
  addPrintFormat({ templateId, params, token }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
88
90
  }
@@ -2,7 +2,9 @@ import axios from 'axios';
2
2
  import { cloneDeep, isArray } from 'lodash-es';
3
3
  import { IdentityVerificationDialog, PreviewDialog } from './dialog.js';
4
4
  import { isIReport, getFileUrl, useBrowserPrint } from './browserPrint.js';
5
- import { getCurrentInstance } from 'vue';
5
+ import { h, getCurrentInstance } from 'vue';
6
+ import { createDiscreteApi, NIcon, NProgress, NDivider } from 'naive-ui';
7
+ import { PrintOutline } from '@vicons/ionicons5';
6
8
  import { uuidGenerator } from '../../../../shared/utils/index.js';
7
9
  import { format } from 'date-fns';
8
10
  import { io } from 'socket.io-client';
@@ -30,6 +32,13 @@ const PREVIEWIREPOR = `${REMOTEPRINTORIGIN}/bi-api/reprot/print/open/client/prev
30
32
  const ERRORMSG = "\u83B7\u53D6\u6587\u4EF6\u5931\u8D25\uFF01";
31
33
  const QUERYPRINTORIGIN = `${REMOTEPRINTORIGIN}/bi-api/reprot/print/open/client/getRemote`;
32
34
  const FILEURL = `${REMOTEPRINTORIGIN}/printService/file`;
35
+ const {
36
+ notification
37
+ } = createDiscreteApi(["notification"], {
38
+ notificationProviderProps: {
39
+ placement: "bottom-right"
40
+ }
41
+ });
33
42
  let printInstance = null;
34
43
  class Print {
35
44
  constructor() {
@@ -51,6 +60,7 @@ class Print {
51
60
  this._successCallbackFn = null;
52
61
  this._errorCallbackFn = null;
53
62
  this._cancelCallbackFn = null;
63
+ this._notifyPrintQueueMap = null;
54
64
  this.messageHandlerQueue = [];
55
65
  this.getIReportFormatId = (isIReport2, formatId) => {
56
66
  return isIReport2 ? formatId.split("_")[1] : formatId;
@@ -61,6 +71,11 @@ class Print {
61
71
  printInstance = this;
62
72
  const _window = window;
63
73
  this.CMonitor = _window.$CMonitor;
74
+ this._notifyPrintQueueMap = {
75
+ data: /* @__PURE__ */ new Map(),
76
+ callback: /* @__PURE__ */ new Map(),
77
+ dom: null
78
+ };
64
79
  try {
65
80
  this.webview = _window.top ? (_a = _window.top.chrome) == null ? void 0 : _a.webview : (_b = _window.chrome) == null ? void 0 : _b.webview;
66
81
  } catch (error) {
@@ -110,8 +125,32 @@ class Print {
110
125
  console.log("\u89E3\u6790e.data\u5931\u8D25\uFF0C" + _e);
111
126
  this._handleMonitorNotify("\u89E3\u6790e.data\u5931\u8D25\uFF0C" + e);
112
127
  }
113
- if (["print", "pdf", "resetprint"].includes(data == null ? void 0 : data.cmd)) {
114
- console.log("\u6253\u5370\u547D\u4EE4\u6267\u884C\u4E86", data);
128
+ if (["print", "pdf", "resetprint", "printback"].includes(data == null ? void 0 : data.cmd)) {
129
+ if ((data == null ? void 0 : data.cmd) === "printback") {
130
+ const {
131
+ ext = {}
132
+ } = (data == null ? void 0 : data.data) || {};
133
+ const curUidDom = this._notifyPrintQueueMap.data.get(ext == null ? void 0 : ext.uuid);
134
+ const curUidCallback = this._notifyPrintQueueMap.callback.get(ext == null ? void 0 : ext.uuid);
135
+ const currentV = (ext == null ? void 0 : ext.currentcount) || 0;
136
+ const totalV = (ext == null ? void 0 : ext.totalcount) || 0;
137
+ if (curUidDom) {
138
+ curUidDom.currentV = currentV;
139
+ curUidDom.totalV = totalV;
140
+ curUidDom.progressValue = totalV ? parseInt((100 * currentV / totalV).toString()) : 0;
141
+ this.renderQueueProgressNotifyContent();
142
+ if (curUidDom.progressValue >= 100) {
143
+ this._notifyPrintQueueMap.data.delete(ext == null ? void 0 : ext.uuid);
144
+ setTimeout(() => {
145
+ this.renderQueueProgressNotifyContent();
146
+ }, 800);
147
+ }
148
+ }
149
+ if (curUidCallback) {
150
+ curUidCallback((data == null ? void 0 : data.data) || {});
151
+ currentV >= totalV && this._notifyPrintQueueMap.callback.delete(ext == null ? void 0 : ext.uuid);
152
+ }
153
+ }
115
154
  const handler = this.messageHandlerQueue.shift();
116
155
  if (!handler)
117
156
  return console.log("\u5F53\u524D\u56DE\u6267", e, "\u6CA1\u6709\u53EF\u7528\u7684handler");
@@ -190,6 +229,96 @@ class Print {
190
229
  cb && cb(false);
191
230
  }
192
231
  }
232
+ renderQueueProgressNotifyContent() {
233
+ const clearNotifyDom = () => {
234
+ this._notifyPrintQueueMap.dom.destroy();
235
+ this._notifyPrintQueueMap.data.clear();
236
+ this._notifyPrintQueueMap.dom = null;
237
+ };
238
+ if (!this._notifyPrintQueueMap.dom) {
239
+ this._notifyPrintQueueMap.dom = notification.create({
240
+ title: "\u6253\u5370\u5217\u8868",
241
+ onClose: () => {
242
+ clearNotifyDom();
243
+ }
244
+ });
245
+ }
246
+ if (this._notifyPrintQueueMap.data.size > 0) {
247
+ const childrens = [];
248
+ const keys = Array.from(this._notifyPrintQueueMap.data.keys());
249
+ const lastKey = keys[keys.length - 1];
250
+ for (const [key, value] of this._notifyPrintQueueMap.data) {
251
+ const dom = h("div", {
252
+ style: {
253
+ boxSizing: "border-box",
254
+ marginBottom: lastKey === key ? 0 : "12px",
255
+ display: "flex",
256
+ flexDirection: "column"
257
+ }
258
+ }, [h("div", {
259
+ style: {
260
+ display: "flex",
261
+ alignItems: "center",
262
+ justifyContent: "between-space",
263
+ overflow: "hidden",
264
+ marginBottom: "4px"
265
+ }
266
+ }, [h(NIcon, {
267
+ size: 16,
268
+ component: PrintOutline,
269
+ style: {
270
+ marginRight: "4px"
271
+ }
272
+ }), h("span", {
273
+ style: {
274
+ flex: 1,
275
+ fontSize: "14px",
276
+ fontWeight: 700,
277
+ marginRight: "6px",
278
+ overflow: "hidden",
279
+ whiteSpace: "noWrap",
280
+ textOverflow: "ellipsis"
281
+ }
282
+ }, value.printname), h("span", {
283
+ style: {
284
+ fontSize: "12px",
285
+ color: "rgba(30, 30, 30, 0.60)"
286
+ }
287
+ }, `${value.progressValue}%`)]), h(NProgress, {
288
+ type: "line",
289
+ strokeWidth: 2,
290
+ percentage: value.progressValue,
291
+ showIndicator: false,
292
+ processing: true
293
+ }), h("div", {
294
+ style: {
295
+ marginTop: "6px",
296
+ display: "flex",
297
+ alignItems: "center",
298
+ fontSize: "12px",
299
+ color: "rgba(30, 30, 30, 0.60)"
300
+ }
301
+ }, [h("span", {}, "\u7B2C"), h("span", {
302
+ style: {
303
+ color: "#FF0000"
304
+ }
305
+ }, value.currentV), h("span", {}, "\u4EFD/\u5171"), h("span", {
306
+ style: {
307
+ color: "#FF0000"
308
+ }
309
+ }, value.totalV), h("span", {}, "\u4EFD")]), lastKey === key ? null : h(NDivider, {
310
+ style: {
311
+ marginTop: "12px",
312
+ marginBottom: 0
313
+ }
314
+ })]);
315
+ childrens.push(dom);
316
+ }
317
+ this._notifyPrintQueueMap.dom.content = () => childrens;
318
+ return;
319
+ }
320
+ clearNotifyDom();
321
+ }
193
322
  async getPicAndUpload(obj) {
194
323
  try {
195
324
  const isObject = (o) => Object.prototype.toString.call(o) === "[object Object]";
@@ -558,6 +687,10 @@ class Print {
558
687
  formatId,
559
688
  number,
560
689
  svrUpdateIp,
690
+ apptype,
691
+ printname,
692
+ uuid,
693
+ priority,
561
694
  hideButtons,
562
695
  params,
563
696
  paramsArr,
@@ -566,6 +699,7 @@ class Print {
566
699
  signature,
567
700
  copies,
568
701
  printdlgshow = "0",
702
+ watermark,
569
703
  nobillnode = "1",
570
704
  btnprint = "1",
571
705
  messageTimeout = 0
@@ -575,11 +709,16 @@ class Print {
575
709
  formatId,
576
710
  number,
577
711
  svrUpdateIp,
712
+ apptype,
713
+ printname,
714
+ uuid,
715
+ priority,
578
716
  hideButtons,
579
717
  params,
580
718
  cmdid,
581
719
  nobillnode,
582
720
  printdlgshow,
721
+ watermark,
583
722
  btnprint,
584
723
  copies,
585
724
  messageTimeout,
@@ -611,6 +750,7 @@ class Print {
611
750
  templateId,
612
751
  formatId = "",
613
752
  number,
753
+ watermark,
614
754
  params = "",
615
755
  token,
616
756
  messageTimeout = 0
@@ -626,6 +766,7 @@ class Print {
626
766
  templateId,
627
767
  formatId,
628
768
  number,
769
+ watermark,
629
770
  cmdid: "9",
630
771
  token,
631
772
  params: JSON.stringify(formatParams),
@@ -788,6 +929,7 @@ class Print {
788
929
  try {
789
930
  const hideButtonsValue = hideButtons ? hideButtons : (formatItem == null ? void 0 : formatItem.previewCanExport) === void 0 || (formatItem == null ? void 0 : formatItem.previewCanExport) ? void 0 : "Export";
790
931
  const btnprintValue = btnprint != "1" ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
932
+ const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
791
933
  const result = await this._handleEventDirect({
792
934
  templateId,
793
935
  number,
@@ -795,6 +937,7 @@ class Print {
795
937
  params,
796
938
  paramsArr,
797
939
  cmdid: this.isRemote ? PRINT_CMD_ID : PREVIEW_CMD_ID,
940
+ watermark,
798
941
  signature,
799
942
  btnprint: btnprintValue,
800
943
  hideButtons: hideButtonsValue,
@@ -918,9 +1061,14 @@ class Print {
918
1061
  nobillnode,
919
1062
  copies,
920
1063
  svrUpdateIp,
1064
+ apptype,
1065
+ uuid,
1066
+ printname,
1067
+ priority,
1068
+ isShowQueueProgressNotify = false,
921
1069
  isDownloadFile = true,
922
1070
  messageTimeout = 0
923
- }, successCallbackFn, errorCallbackFn, cancelCallbackFn, mode = "printDirect") {
1071
+ }, successCallbackFn, errorCallbackFn, cancelCallbackFn, printQueueCallbackFn, mode = "printDirect") {
924
1072
  const isObject = (o) => Object.prototype.toString.call(o) === "[object Object]";
925
1073
  const iReportStatus = isIReport(originFormatId);
926
1074
  const formatId = this.getIReportFormatId(iReportStatus, originFormatId);
@@ -986,7 +1134,21 @@ class Print {
986
1134
  }];
987
1135
  params = "";
988
1136
  }
1137
+ if (uuid && printname) {
1138
+ if (isShowQueueProgressNotify) {
1139
+ this._notifyPrintQueueMap.data.set(uuid, {
1140
+ printname,
1141
+ uuid,
1142
+ currentV: 0,
1143
+ totalV: paramsArr.length,
1144
+ progressValue: 0
1145
+ });
1146
+ this.renderQueueProgressNotifyContent();
1147
+ }
1148
+ this._notifyPrintQueueMap.callback.set(uuid, printQueueCallbackFn);
1149
+ }
989
1150
  const printdlgshowValue = printdlgshow != "0" ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
1151
+ const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
990
1152
  const result = await this._handleEventDirect({
991
1153
  templateId,
992
1154
  number,
@@ -997,9 +1159,14 @@ class Print {
997
1159
  print,
998
1160
  signature,
999
1161
  printdlgshow: printdlgshowValue,
1162
+ watermark,
1000
1163
  nobillnode,
1001
1164
  copies,
1002
1165
  svrUpdateIp,
1166
+ apptype,
1167
+ printname,
1168
+ priority,
1169
+ uuid,
1003
1170
  messageTimeout
1004
1171
  });
1005
1172
  const handledResult = this._handleResult(result, errorCallbackFn, cancelCallbackFn);
@@ -1137,6 +1304,8 @@ class Print {
1137
1304
  }
1138
1305
  }, (err) => onReject(err), (err) => {
1139
1306
  console.log(err);
1307
+ }, (result) => {
1308
+ console.log(result);
1140
1309
  }, "downloadPDF");
1141
1310
  }
1142
1311
  async print({
@@ -1203,6 +1372,7 @@ class Print {
1203
1372
  templateId,
1204
1373
  formatId,
1205
1374
  number,
1375
+ formatItem,
1206
1376
  params,
1207
1377
  token,
1208
1378
  messageTimeout = 0
@@ -1210,9 +1380,11 @@ class Print {
1210
1380
  const testResult = await this._testConnection();
1211
1381
  if (!this._handleResultTest(testResult, errorCallbackFn))
1212
1382
  return false;
1383
+ const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
1213
1384
  const result = await this._handleEventEditFormat({
1214
1385
  templateId,
1215
1386
  formatId,
1387
+ watermark,
1216
1388
  number,
1217
1389
  params,
1218
1390
  token,
@@ -114,7 +114,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
114
114
  eventContent: eventContentRender,
115
115
  resourceLabelContent: resourceLabelContentRender,
116
116
  select: (...args) => emit("select", ...args),
117
- eventDrop: (...args) => emit("eventDrag", ...args),
117
+ eventDrop: (...args) => {
118
+ var _a, _b;
119
+ const [info] = args;
120
+ const eventId = info.event.id;
121
+ const targetEvent = props.events.find((event) => event.id === eventId);
122
+ if (targetEvent && targetEvent.resourceEditable === false) {
123
+ const oldResourceId = (_a = info.oldResource) == null ? void 0 : _a.id;
124
+ const newResourceId = (_b = info.newResource) == null ? void 0 : _b.id;
125
+ if (oldResourceId !== newResourceId) {
126
+ return;
127
+ }
128
+ }
129
+ emit("eventDrag", ...args);
130
+ },
118
131
  eventResize: (...args) => emit("eventResize", ...args),
119
132
  eventClick: (...args) => emit("eventClick", ...args)
120
133
  });
@@ -200,10 +213,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
200
213
  immediate: true
201
214
  });
202
215
  watch(() => props.events, (events) => {
203
- calendarOptions.events = cloneDeep(events).map((event) => ({
204
- ...event,
205
- resourceEditable: false
206
- }));
216
+ calendarOptions.events = cloneDeep(events);
207
217
  }, {
208
218
  deep: true,
209
219
  immediate: true