cnhis-design-vue 3.3.3-beta.1 → 3.3.3-beta.7

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 (37) hide show
  1. package/es/components/audio-sdk/src/Index.vue2.js +7 -7
  2. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  3. package/es/components/button-print/index.d.ts +2 -1
  4. package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -1
  5. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  6. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -1
  7. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +8 -5
  8. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +4 -1
  9. package/es/components/button-print/src/utils/print.d.ts +2 -2
  10. package/es/components/button-print/src/utils/print.js +29 -20
  11. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  12. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
  13. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  14. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  15. package/es/components/iho-chat/style/index.css +1 -1
  16. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  17. package/es/components/index.css +1 -1
  18. package/es/components/scale-view/index.d.ts +14 -14
  19. package/es/components/scale-view/src/ScaleView.vue.d.ts +14 -14
  20. package/es/components/scale-view/src/ScaleView.vue2.js +5 -6
  21. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +7 -7
  22. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +4 -4
  23. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +7 -7
  24. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +2 -2
  25. package/es/components/scale-view/src/components/ScaleScore.js +2 -1
  26. package/es/components/scale-view/src/components/formitem/r-checkbox.js +4 -0
  27. package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
  28. package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -2
  29. package/es/components/scale-view/style/index.css +1 -1
  30. package/es/components/select-person/src/SelectPerson.vue.d.ts +5 -72
  31. package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
  32. package/es/components/select-person/src/{SelectPerson.vue.js → SelectPersonRole.vue.js} +2 -2
  33. package/es/components/select-person/src/{SelectPerson.vue2.js → SelectPersonRole.vue2.js} +1 -1
  34. package/es/components/select-person/src/index.vue2.js +3 -3
  35. package/es/components/select-person/src/utils/index.js +4 -6
  36. package/es/shared/package.json.js +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { defineComponent, useAttrs, ref, computed, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode } from 'vue';
1
+ import { defineComponent, useAttrs, ref, computed, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createBlock, mergeProps, createCommentVNode } from 'vue';
2
2
  import axios from 'axios';
3
3
  import { isString, isObject } from 'lodash-es';
4
4
  import CRecording from './components/recording.vue.js';
@@ -127,6 +127,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
127
127
  const audioText = isString(content.value) ? content.value : isObject(content.value) ? (_b = content.value) == null ? void 0 : _b.data : "";
128
128
  if (!audioText)
129
129
  return;
130
+ if (!isGenerateMedicalRecord.value)
131
+ return;
130
132
  const {
131
133
  data
132
134
  } = await axios.post(consultationRecordUrl, {
@@ -163,10 +165,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
163
165
  ...attrs
164
166
  });
165
167
  const {
166
- result,
167
- data
168
+ data,
169
+ success
168
170
  } = res || {};
169
- if (result !== "success") {
171
+ if (!success) {
170
172
  onFail(res);
171
173
  return;
172
174
  }
@@ -198,8 +200,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
198
200
  return openBlock(), createElementBlock("div", {
199
201
  style: normalizeStyle(unref(cssVars)),
200
202
  class: normalizeClass(["c-recording-sdk-wrapper", ["c-recording-sdk-wrapper-" + props.useSource]])
201
- }, [unref(isGenerateMedicalRecord) ? (openBlock(), createElementBlock(Fragment, {
202
- key: 0
203
203
  }, [isRecording.value ? (openBlock(), createBlock(CRecording, mergeProps({
204
204
  key: 0,
205
205
  ref_key: "recordingRef",
@@ -215,7 +215,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
215
215
  onResume,
216
216
  onToAnalyzing: handleToAnalyzing,
217
217
  onHeightChange: handleHeightChange
218
- }), null, 16, ["loading"])) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true)], 6);
218
+ }), null, 16, ["loading"])) : createCommentVNode("v-if", true)], 6);
219
219
  };
220
220
  }
221
221
  });
@@ -100,7 +100,7 @@ const _AudioSDK2 = class {
100
100
  }
101
101
  async startWaveView(options) {
102
102
  this._audioSDK.clearWaveView();
103
- this._audioSDK.createWaveView(options.waveSelector, options.waveProps);
103
+ this._audioSDK.createWaveView(options.waveSelector(), options.waveProps);
104
104
  }
105
105
  async pause() {
106
106
  return this._audioSDK.pause();
@@ -540,7 +540,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
540
540
  mergeTemplateList: (list: any[]) => any;
541
541
  initCRM: (formatListResult: any) => Promise<void>;
542
542
  init: () => Promise<boolean>;
543
- registerShort: () => Promise<void>;
543
+ registerShort: (obj?: any) => Promise<void>;
544
544
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
545
545
  reformatPrintParams: () => void;
546
546
  verifiySuccess: (token: string) => void;
@@ -1592,6 +1592,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1592
1592
  emits: (event: "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", ...args: any[]) => void;
1593
1593
  directPrint: () => Promise<void>;
1594
1594
  handleShortcutStartAndStop: (status: "start" | "stop") => void;
1595
+ registerShort: (obj: any) => void;
1595
1596
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint")[], "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1596
1597
  printParams: {
1597
1598
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
@@ -546,7 +546,7 @@ declare const _default: import("vue").DefineComponent<{
546
546
  mergeTemplateList: (list: any[]) => any;
547
547
  initCRM: (formatListResult: any) => Promise<void>;
548
548
  init: () => Promise<boolean>;
549
- registerShort: () => Promise<void>;
549
+ registerShort: (obj?: any) => Promise<void>;
550
550
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
551
551
  reformatPrintParams: () => void;
552
552
  verifiySuccess: (token: string) => void;
@@ -1601,6 +1601,7 @@ declare const _default: import("vue").DefineComponent<{
1601
1601
  emits: (event: "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", ...args: any[]) => void;
1602
1602
  directPrint: () => Promise<void>;
1603
1603
  handleShortcutStartAndStop: (status: 'start' | 'stop') => void;
1604
+ registerShort: (obj: any) => void;
1604
1605
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint")[], "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1605
1606
  printParams: {
1606
1607
  type: PropType<AnyObject[]>;
@@ -191,9 +191,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
191
191
  var _a;
192
192
  (_a = printComponentRef.value) == null ? void 0 : _a.handleShortcutStartAndStop(status);
193
193
  };
194
+ const registerShort = (obj) => {
195
+ var _a;
196
+ (_a = printComponentRef.value) == null ? void 0 : _a.registerShort(obj);
197
+ };
194
198
  expose({
195
199
  directPrint,
196
- handleShortcutStartAndStop
200
+ handleShortcutStartAndStop,
201
+ registerShort
197
202
  });
198
203
  return (_ctx, _cache) => {
199
204
  return openBlock(), createBlock(resolveDynamicComponent(unref(isComponent)), mergeProps({
@@ -308,7 +308,7 @@ declare const _default: import("vue").DefineComponent<{
308
308
  mergeTemplateList: (list: any[]) => any;
309
309
  initCRM: (formatListResult: any) => Promise<void>;
310
310
  init: () => Promise<boolean>;
311
- registerShort: () => Promise<void>;
311
+ registerShort: (obj?: any) => Promise<void>;
312
312
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
313
313
  reformatPrintParams: () => void;
314
314
  verifiySuccess: (token: string) => void;
@@ -634,9 +634,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
634
634
  templateId,
635
635
  params: curPrintParamList
636
636
  }).then(() => {
637
- var _a;
637
+ var _a, _b;
638
638
  state.curPrintParamList = curPrintParamList;
639
639
  const curPrintdlgshow = ((_a = printCustomProps.value) == null ? void 0 : _a.printdlgshow) || props.printdlgshow;
640
+ const curFormatIdObj = (_b = state == null ? void 0 : state.formatList) == null ? void 0 : _b.find((item) => item.id == formatId);
640
641
  const queryParams = {
641
642
  formatId,
642
643
  iReportExecuteMode: state.iReportExecuteMode,
@@ -646,7 +647,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
646
647
  printdlgshow: curPrintdlgshow,
647
648
  signature: props.signature,
648
649
  copies: props.printCopies,
649
- svrUpdateIp: props.svrUpdateIp
650
+ svrUpdateIp: props.svrUpdateIp,
651
+ formatItem: curFormatIdObj
650
652
  };
651
653
  if (props.strategy === "MULTI") {
652
654
  for (let i = 0; i < curPrintParamList.length; i++) {
@@ -1039,8 +1041,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1039
1041
  state.spinning = false;
1040
1042
  return true;
1041
1043
  };
1042
- const registerShort = async () => {
1043
- const keys = Object.keys(shortcutSettings.value);
1044
+ const registerShort = async (obj) => {
1045
+ const keys = Object.keys(obj || shortcutSettings.value);
1044
1046
  if (keys.length > 0) {
1045
1047
  for (let i = 0; i < keys.length; i++) {
1046
1048
  const key = keys[i];
@@ -1181,7 +1183,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1181
1183
  }
1182
1184
  expose({
1183
1185
  directPrint,
1184
- handleShortcutStartAndStop
1186
+ handleShortcutStartAndStop,
1187
+ registerShort
1185
1188
  });
1186
1189
  return (_ctx, _cache) => {
1187
1190
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [createCommentVNode(" \u5916\u663E\u6309\u94AE\u96C6\u5408 "), createVNode(unref(NButtonGroup), {
@@ -346,6 +346,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
346
346
  formatId: state.currentFormatId,
347
347
  templateId: getTemplateIdByFormatId.value
348
348
  }).then(() => {
349
+ var _a2;
350
+ const curFormatIdObj = (_a2 = state == null ? void 0 : state.formatList) == null ? void 0 : _a2.find((item) => item.id == state.currentFormatId);
349
351
  const queryParams = {
350
352
  iReportExecuteMode: state.iReportExecuteMode,
351
353
  number: state.number,
@@ -355,7 +357,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
355
357
  printdlgshow: props.printdlgshow,
356
358
  signature: props.signature,
357
359
  copies: props.printCopies,
358
- svrUpdateIp: props.svrUpdateIp
360
+ svrUpdateIp: props.svrUpdateIp,
361
+ formatItem: curFormatIdObj
359
362
  };
360
363
  if (props.strategy === "MULTI") {
361
364
  for (let i = 0; i < state.printParams.length; i++) {
@@ -41,7 +41,7 @@ export declare class Print {
41
41
  _queryBase64ServicesPrint(params: AnyObject): Promise<any>;
42
42
  _callPrintWithFile(queryParams: AnyObject): Promise<any>;
43
43
  _handleMonitorNotify(message: string | unknown): void;
44
- _handleResult(data: AnyObject, errorCallbackFn?: AnyFn, cancelCallbackFn?: AnyFn): false | AnyObject;
44
+ _handleResult(data: AnyObject, errorCallbackFn?: AnyFn, cancelCallbackFn?: AnyFn): false | AnyObject | undefined;
45
45
  _handleResultTest(result: unknown, errorCallbackFn?: AnyFn): boolean;
46
46
  _handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, messageTimeout: number, errorCallbackFn?: AnyFn): Promise<false | {
47
47
  file: any;
@@ -68,7 +68,7 @@ export declare class Print {
68
68
  _base64ToBlob(fileBase64: string, fileType: string): Blob;
69
69
  preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
70
70
  printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
71
- printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
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>;
72
72
  printToHiPrint({ templateId, formatId, params, authorizationKey }: any, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn): Promise<any>;
73
73
  private _downloadPDF;
74
74
  /**
@@ -461,7 +461,7 @@ class Print {
461
461
  }
462
462
  _handleResult(data, errorCallbackFn, cancelCallbackFn) {
463
463
  if (!data) {
464
- const message = function() {
464
+ const message2 = function() {
465
465
  var _a, _b, _c;
466
466
  try {
467
467
  return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.497")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.497")) || "\u6253\u5370\u547D\u4EE4\u8FD4\u56DE\u7A7A\u6570\u636E";
@@ -472,34 +472,34 @@ class Print {
472
472
  this._handleMonitorNotify("");
473
473
  errorCallbackFn == null ? void 0 : errorCallbackFn({
474
474
  type: "printError",
475
- message,
475
+ message: message2,
476
476
  result: "error",
477
- errinfo: message
477
+ errinfo: message2
478
478
  });
479
479
  return false;
480
480
  }
481
- if (data.result !== "success") {
482
- const message = data.message || data.Message;
483
- this._handleMonitorNotify(message);
484
- const errorMsgObj = {
485
- type: "printError",
481
+ if (data.result === "success" || data.returncode === "1") {
482
+ data.message = data.message || data.returnmsg;
483
+ return data;
484
+ }
485
+ const message = data.message || data.Message;
486
+ this._handleMonitorNotify(message);
487
+ const errorMsgObj = {
488
+ type: "printError",
489
+ message,
490
+ result: data.result,
491
+ errinfo: data.errinfo
492
+ };
493
+ if (data.result == "cancel") {
494
+ cancelCallbackFn && cancelCallbackFn({
495
+ type: "printCancel",
486
496
  message,
487
497
  result: data.result,
488
498
  errinfo: data.errinfo
489
- };
490
- if (data.result == "cancel") {
491
- cancelCallbackFn && cancelCallbackFn({
492
- type: "printCancel",
493
- message,
494
- result: data.result,
495
- errinfo: data.errinfo
496
- });
497
- return false;
498
- }
499
- errorCallbackFn == null ? void 0 : errorCallbackFn(errorMsgObj);
499
+ });
500
500
  return false;
501
501
  }
502
- return data;
502
+ errorCallbackFn == null ? void 0 : errorCallbackFn(errorMsgObj);
503
503
  }
504
504
  _handleResultTest(result, errorCallbackFn) {
505
505
  if (!result) {
@@ -905,6 +905,7 @@ class Print {
905
905
  templateId,
906
906
  number,
907
907
  formatId: originFormatId,
908
+ formatItem,
908
909
  params = "",
909
910
  paramsArr,
910
911
  authorizationKey,
@@ -917,6 +918,7 @@ class Print {
917
918
  isDownloadFile = true,
918
919
  messageTimeout = 0
919
920
  }, successCallbackFn, errorCallbackFn, cancelCallbackFn, mode = "printDirect") {
921
+ const isObject = (o) => Object.prototype.toString.call(o) === "[object Object]";
920
922
  const iReportStatus = isIReport(originFormatId);
921
923
  const formatId = this.getIReportFormatId(iReportStatus, originFormatId);
922
924
  if (iReportStatus && (isDomestic || iReportExecuteMode == 2)) {
@@ -974,6 +976,13 @@ class Print {
974
976
  if (!this._handleResultTest(testResult, errorCallbackFn))
975
977
  return false;
976
978
  try {
979
+ if (formatItem == null ? void 0 : formatItem.queuePrint) {
980
+ const printParams = isObject(params) ? cloneDeep(params) : params;
981
+ paramsArr = [{
982
+ params: printParams
983
+ }];
984
+ params = "";
985
+ }
977
986
  const result = await this._handleEventDirect({
978
987
  templateId,
979
988
  number,
@@ -534,12 +534,12 @@ declare const _default: import("vue").DefineComponent<{
534
534
  }>;
535
535
  developMode: boolean;
536
536
  draggable: boolean;
537
- isHighlightRow: boolean;
538
- idx: number;
539
- isHighlight: boolean;
540
- isFieldSet: boolean;
541
537
  fieldDescribeMode: "column" | "tooltip";
538
+ isFieldSet: boolean;
542
539
  hideExpressionOption: AnyObject[];
540
+ idx: number;
541
+ isHighlight: boolean;
542
+ isHighlightRow: boolean;
543
543
  }>;
544
544
  EditDialog: import("vue").DefineComponent<{
545
545
  visible: {
@@ -563,12 +563,12 @@ declare const _default: import("vue").DefineComponent<{
563
563
  }>;
564
564
  developMode: boolean;
565
565
  draggable: boolean;
566
- isHighlightRow: boolean;
567
- idx: number;
568
- isHighlight: boolean;
569
- isFieldSet: boolean;
570
566
  fieldDescribeMode: "column" | "tooltip";
567
+ isFieldSet: boolean;
571
568
  hideExpressionOption: AnyObject[];
569
+ idx: number;
570
+ isHighlight: boolean;
571
+ isHighlightRow: boolean;
572
572
  }>;
573
573
  setStyle: typeof setStyle;
574
574
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -729,12 +729,12 @@ declare const _default: import("vue").DefineComponent<{
729
729
  }>;
730
730
  developMode: boolean;
731
731
  draggable: boolean;
732
- isHighlightRow: boolean;
733
- idx: number;
734
- isHighlight: boolean;
735
- isFieldSet: boolean;
736
732
  fieldDescribeMode: "column" | "tooltip";
733
+ isFieldSet: boolean;
737
734
  hideExpressionOption: AnyObject[];
735
+ idx: number;
736
+ isHighlight: boolean;
737
+ isHighlightRow: boolean;
738
738
  }>;
739
739
  isArray: {
740
740
  (value?: any): value is any[];
@@ -867,9 +867,9 @@ declare const _default: import("vue").DefineComponent<{
867
867
  showSeq: boolean;
868
868
  developMode: boolean;
869
869
  footerFlag: boolean;
870
- fieldDescribeMode: "column" | "tooltip";
871
870
  customColumns: FieldSetColumnItem[];
872
871
  showSortPriority: boolean;
873
872
  showHeadFilter: boolean;
873
+ fieldDescribeMode: "column" | "tooltip";
874
874
  }>;
875
875
  export default _default;
@@ -383,11 +383,11 @@ declare const _default: import("vue").DefineComponent<{
383
383
  }>;
384
384
  developMode: boolean;
385
385
  draggable: boolean;
386
- isHighlightRow: boolean;
387
- idx: number;
388
- isHighlight: boolean;
389
- isFieldSet: boolean;
390
386
  fieldDescribeMode: "column" | "tooltip";
387
+ isFieldSet: boolean;
391
388
  hideExpressionOption: AnyObject[];
389
+ idx: number;
390
+ isHighlight: boolean;
391
+ isHighlightRow: boolean;
392
392
  }>;
393
393
  export default _default;