cnhis-design-vue 3.1.53-beta.1 → 3.1.53-beta.11

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 (158) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +4 -4
  3. package/es/components/big-table/src/hooks/useEdit.d.ts +4 -4
  4. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +4 -4
  5. package/es/components/body-select/index.d.ts +9 -4
  6. package/es/components/body-select/src/config/index.js +1 -1
  7. package/es/components/body-select/src/hooks/renderCanvas.d.ts +1 -1
  8. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  9. package/es/components/body-select/src/index.vue.d.ts +9 -4
  10. package/es/components/body-select/src/index.vue2.js +1 -1
  11. package/es/components/button-print/index.d.ts +9 -0
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -1
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  14. package/es/components/button-print/src/utils/dialog.d.ts +2 -2
  15. package/es/components/button-print/src/utils/print.d.ts +14 -13
  16. package/es/components/button-print/src/utils/print.js +1 -1
  17. package/es/components/callback/src/components/render/popupMaps.d.ts +69 -6
  18. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +5 -0
  19. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  20. package/es/components/card-reader-sdk/src/constants/index.d.ts +2 -1
  21. package/es/components/card-reader-sdk/src/constants/index.js +1 -1
  22. package/es/components/card-reader-sdk/src/types/index.d.ts +3 -3
  23. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  24. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  25. package/es/components/form-config/index.d.ts +105 -26
  26. package/es/components/form-config/src/FormConfig.vue.d.ts +106 -27
  27. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  28. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +30 -6
  29. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +51 -12
  30. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  31. package/es/components/form-render/index.d.ts +30 -6
  32. package/es/components/form-render/index.js +1 -1
  33. package/es/components/form-render/src/FormRender.vue.d.ts +31 -7
  34. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  35. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +31 -7
  36. package/es/components/form-render/src/components/renderer/{combination.d.ts → combination/combination.d.ts} +1 -1
  37. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -0
  38. package/es/components/form-render/src/components/renderer/combination/hooks/index.d.ts +2 -0
  39. package/es/components/form-render/src/components/renderer/combination/hooks/index.js +1 -0
  40. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +8 -0
  41. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -0
  42. package/es/components/form-render/src/components/renderer/combination/index.d.ts +3 -0
  43. package/es/components/form-render/src/components/renderer/combination/index.js +1 -0
  44. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
  45. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +61 -0
  46. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -0
  47. package/es/components/form-render/src/components/renderer/index.js +1 -1
  48. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +5 -5
  49. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +2 -4
  50. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
  51. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +3 -3
  52. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  53. package/es/components/form-render/src/components/renderer/select.d.ts +5 -5
  54. package/es/components/form-render/src/components/renderer/select.js +1 -1
  55. package/es/components/form-render/src/constants/index.d.ts +3 -2
  56. package/es/components/form-render/src/hooks/index.d.ts +0 -2
  57. package/es/components/form-render/src/hooks/index.js +1 -1
  58. package/es/components/form-render/src/hooks/useAnchor.d.ts +3 -3
  59. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +2 -2
  60. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -2
  61. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  62. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +10 -2
  63. package/es/components/form-render/src/hooks/useFormContext.d.ts +3 -3
  64. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  65. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
  66. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +9 -1
  67. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +5 -5
  68. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  69. package/es/components/form-render/src/types/fieldItem.d.ts +4 -2
  70. package/es/components/form-render/src/types/index.d.ts +7 -14
  71. package/es/components/form-render/src/utils/index.d.ts +1 -2
  72. package/es/components/form-render/src/utils/index.js +1 -1
  73. package/es/components/form-render/src/utils/schema.d.ts +2 -2
  74. package/es/components/form-render/src/utils/schema.js +1 -1
  75. package/es/components/guide/src/renderer.js +1 -1
  76. package/es/components/iho-table/index.d.ts +39 -0
  77. package/es/components/iho-table/src/IhoTable.vue.d.ts +40 -0
  78. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  79. package/es/components/iho-table/src/constants/index.d.ts +4 -1
  80. package/es/components/iho-table/src/constants/index.js +1 -1
  81. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -2
  82. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +2 -2
  83. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  84. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  85. package/es/components/iho-table/src/plugins/index.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  87. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  88. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -0
  89. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -0
  90. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +552 -0
  91. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.js +1 -0
  92. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -0
  93. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +5 -2
  94. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  95. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  96. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
  97. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  98. package/es/components/iho-table/src/types/index.d.ts +5 -2
  99. package/es/components/iho-table/src/types/pluginType.d.ts +3 -3
  100. package/es/components/iho-table/src/utils/index.d.ts +1 -1
  101. package/es/components/iho-table/src/utils/index.js +1 -1
  102. package/es/components/index.d.ts +1 -0
  103. package/es/components/index.js +1 -1
  104. package/es/components/info-header/index.d.ts +97 -29
  105. package/es/components/info-header/src/InfoHeader.vue.d.ts +98 -30
  106. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +9 -5
  107. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +10 -6
  108. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +41 -13
  109. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +30 -6
  110. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  111. package/es/components/search-cascader/index.d.ts +23 -3
  112. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +24 -4
  113. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  114. package/es/components/search-cascader/src/components/ClearIcon.vue.js +1 -0
  115. package/es/components/shortcut-setter/index.d.ts +34 -9
  116. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +35 -10
  117. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  118. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  119. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +4 -4
  120. package/es/shared/components/SlotRender/SlotRender.d.ts +5 -5
  121. package/es/shared/hooks/index.d.ts +3 -0
  122. package/es/shared/hooks/index.js +1 -1
  123. package/es/shared/hooks/selectHooks/index.d.ts +4 -0
  124. package/es/shared/hooks/selectHooks/index.js +1 -0
  125. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +10 -0
  126. package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -0
  127. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +6 -0
  128. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -0
  129. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +23 -0
  130. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +1 -0
  131. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +21 -0
  132. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -0
  133. package/es/shared/hooks/{useAsyncQueue.d.ts → useAsyncQueue/index.d.ts} +7 -15
  134. package/es/shared/hooks/useAsyncQueue/index.js +1 -0
  135. package/es/shared/hooks/useAsyncQueue/types.d.ts +20 -0
  136. package/es/shared/hooks/useAsyncQueue/types.js +1 -0
  137. package/es/shared/hooks/useDateTime.d.ts +2 -2
  138. package/es/shared/hooks/useFormRequest/index.d.ts +24 -0
  139. package/es/shared/hooks/useFormRequest/index.js +1 -0
  140. package/es/shared/hooks/useFormRequest/types.d.ts +39 -0
  141. package/es/shared/hooks/useFormRequest/types.js +1 -0
  142. package/es/shared/hooks/useLevelSearchCascader.d.ts +31 -0
  143. package/es/shared/hooks/useLevelSearchCascader.js +1 -0
  144. package/es/shared/package.json.js +1 -1
  145. package/es/shared/types/index.d.ts +1 -1
  146. package/package.json +2 -2
  147. package/es/components/form-render/src/components/renderer/combination.js +0 -1
  148. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +0 -1
  149. package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.d.ts +0 -23
  150. package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.js +0 -1
  151. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +0 -16
  152. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +0 -1
  153. package/es/components/form-render/src/hooks/useFormRequest.d.ts +0 -26
  154. package/es/components/form-render/src/hooks/useFormRequest.js +0 -1
  155. package/es/shared/hooks/useAsyncQueue.js +0 -1
  156. /package/es/components/form-render/src/components/renderer/{jsonCombination → combination}/hooks/useDeepValidate.d.ts +0 -0
  157. /package/es/components/form-render/src/components/renderer/{jsonCombination → combination}/hooks/useDeepValidate.js +0 -0
  158. /package/es/components/form-render/src/components/renderer/{jsonCombination/index.d.ts → combination/jsonCombination.d.ts} +0 -0
@@ -115,13 +115,17 @@ export declare const CallbackMaps: Map<string, {
115
115
  lifeCycle: {
116
116
  type: import("vue").PropType<Partial<{
117
117
  onSetup(): void;
118
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
119
+ field: import("@formily/core").GeneralField;
120
+ oldValue: unknown;
121
+ }): any;
118
122
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
119
123
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
120
124
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
121
125
  }>>;
122
126
  };
123
127
  requestInstance: {
124
- type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
128
+ type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
125
129
  };
126
130
  enterToNextWidget: {
127
131
  type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
@@ -260,13 +264,17 @@ export declare const CallbackMaps: Map<string, {
260
264
  lifeCycle: {
261
265
  type: import("vue").PropType<Partial<{
262
266
  onSetup(): void;
267
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
268
+ field: import("@formily/core").GeneralField;
269
+ oldValue: unknown;
270
+ }): any;
263
271
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
264
272
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
265
273
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
266
274
  }>>;
267
275
  };
268
276
  requestInstance: {
269
- type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
277
+ type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
270
278
  };
271
279
  enterToNextWidget: {
272
280
  type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
@@ -320,7 +328,7 @@ export declare const CallbackMaps: Map<string, {
320
328
  changeContextCollector: import("../../../../../../es/components/form-render").ContextCollector;
321
329
  formUUID: string;
322
330
  anchorBarRef: import("vue").Ref<{
323
- syncBarPosition: import("../../../..").Func<any[], any>;
331
+ syncBarPosition: import("../../../..").AnyFn<any[], any>;
324
332
  } | undefined>;
325
333
  currentAnchor: import("vue").WritableComputedRef<string>;
326
334
  updateAnchorList: (field: import("@formily/core").GeneralField) => void;
@@ -329,13 +337,21 @@ export declare const CallbackMaps: Map<string, {
329
337
  title: string;
330
338
  }[]>;
331
339
  onScroll: (scrollEvent: Event) => void;
332
- callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
340
+ callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
333
341
  onSetup(): void;
342
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
343
+ field: import("@formily/core").GeneralField;
344
+ oldValue: unknown;
345
+ }): any;
334
346
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
335
347
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
336
348
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
337
349
  }>>[T]> | undefined) => import("../../../..").UndefinedAble<ReturnType<Required<Partial<{
338
350
  onSetup(): void;
351
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
352
+ field: import("@formily/core").GeneralField;
353
+ oldValue: unknown;
354
+ }): any;
339
355
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
340
356
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
341
357
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
@@ -428,12 +444,16 @@ export declare const CallbackMaps: Map<string, {
428
444
  uuid: string;
429
445
  lifeCycle: Partial<{
430
446
  onSetup(): void;
447
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
448
+ field: import("@formily/core").GeneralField;
449
+ oldValue: unknown;
450
+ }): any;
431
451
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
432
452
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
433
453
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
434
454
  }>;
435
455
  businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
436
- requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
456
+ requestInstance: import("../../../..").FormRequestDefine.RequestInstance;
437
457
  enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
438
458
  lowCodeReactions: import("../../../..").FormLowCodeReactions.Config[];
439
459
  linebarAutoHidden: boolean;
@@ -835,13 +855,17 @@ export declare const CallbackMaps: Map<string, {
835
855
  lifeCycle: {
836
856
  type: import("vue").PropType<Partial<{
837
857
  onSetup(): void;
858
+ beforeSetValue(fieldKey: string, value: unknown, payload: {
859
+ field: import("@formily/core").GeneralField;
860
+ oldValue: unknown;
861
+ }): any;
838
862
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined, payload?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
839
863
  afterRequest(fieldKey: string, res?: any, payload?: import("../../../..").AnyObject | undefined): import("../../../..").AnyObject[];
840
864
  afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
841
865
  }>>;
842
866
  };
843
867
  requestInstance: {
844
- type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
868
+ type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
845
869
  };
846
870
  enterToNextWidget: {
847
871
  type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
@@ -915,6 +939,17 @@ export declare const CallbackMaps: Map<string, {
915
939
  annotation: {
916
940
  type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
917
941
  };
942
+ requestInstance: {
943
+ type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
944
+ };
945
+ uniqueCacheData: {
946
+ type: BooleanConstructor;
947
+ default: boolean;
948
+ };
949
+ parallelism: {
950
+ type: NumberConstructor;
951
+ default: number;
952
+ };
918
953
  }, {
919
954
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
920
955
  tableConfig: {
@@ -932,6 +967,17 @@ export declare const CallbackMaps: Map<string, {
932
967
  annotation: {
933
968
  type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
934
969
  };
970
+ requestInstance: {
971
+ type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
972
+ };
973
+ uniqueCacheData: {
974
+ type: BooleanConstructor;
975
+ default: boolean;
976
+ };
977
+ parallelism: {
978
+ type: NumberConstructor;
979
+ default: number;
980
+ };
935
981
  }>> & {
936
982
  onFormChange?: ((...args: any[]) => any) | undefined;
937
983
  onCopy?: ((...args: any[]) => any) | undefined;
@@ -1006,6 +1052,10 @@ export declare const CallbackMaps: Map<string, {
1006
1052
  }>;
1007
1053
  eventListener: import("../../../../iho-table/src/hooks/tapHooks/useEventHooks").IhoTableEventListener;
1008
1054
  emits: (event: "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd" | "pageChange", ...args: any[]) => void;
1055
+ asyncQueue: import("../../../..").AsyncQueue<import("../../../..").FormRequestDefine.AsyncQueueItem, any, {
1056
+ label: string;
1057
+ value: unknown;
1058
+ }[]>;
1009
1059
  hooks: Readonly<{
1010
1060
  configHooks: import("../../../../../../es/components/iho-table").AbstractConfigHooks;
1011
1061
  fieldHooks: import("../../../../../../es/components/iho-table").AbstractFieldHooks;
@@ -5557,6 +5607,17 @@ export declare const CallbackMaps: Map<string, {
5557
5607
  annotation: {
5558
5608
  type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
5559
5609
  };
5610
+ requestInstance: {
5611
+ type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
5612
+ };
5613
+ uniqueCacheData: {
5614
+ type: BooleanConstructor;
5615
+ default: boolean;
5616
+ };
5617
+ parallelism: {
5618
+ type: NumberConstructor;
5619
+ default: number;
5620
+ };
5560
5621
  }>> & {
5561
5622
  onFormChange?: ((...args: any[]) => any) | undefined;
5562
5623
  onCopy?: ((...args: any[]) => any) | undefined;
@@ -5625,6 +5686,8 @@ export declare const CallbackMaps: Map<string, {
5625
5686
  onRowDrag?: ((...args: any[]) => any) | undefined;
5626
5687
  }, {
5627
5688
  fieldList: import("../../../../../../es/components/iho-table").LowCodeTableFieldItem[];
5689
+ parallelism: number;
5690
+ uniqueCacheData: boolean;
5628
5691
  tableConfig: import("../../../../../../es/components/iho-table").IhoTableConfig;
5629
5692
  tableData: import("../../../..").AnyObject[];
5630
5693
  }>>;
@@ -45,6 +45,11 @@ export default class CardReaderSDK {
45
45
  cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
46
46
  iar1: Record<"acf01" | "iaa01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
47
47
  }> | undefined>;
48
+ getCardType(): Promise<Partial<{
49
+ personinfo: Record<"sex" | "age" | "address" | "birthday" | "location" | "cardnum" | "cardpwd" | "folk" | "idnumber" | "ownpay" | "ptname" | "pttype" | "recordid" | "updateflag", string>;
50
+ cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
51
+ iar1: Record<"acf01" | "iaa01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
52
+ }> | undefined>;
48
53
  generalRequest(params?: InsuranceType.CardReadParams): Promise<Partial<{
49
54
  personinfo: Record<"sex" | "age" | "address" | "birthday" | "location" | "cardnum" | "cardpwd" | "folk" | "idnumber" | "ownpay" | "ptname" | "pttype" | "recordid" | "updateflag", string>;
50
55
  cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
@@ -1 +1 @@
1
- import{isFunction as a}from"lodash-es";import{TRANS_CMD as t}from"./constants/index.js";import e from"./insuranceSDK.js";import{ReadHealthCard as s}from"./utils/readHealthCard.js";let r=null;const n=class{constructor(a){if(this.options=a,this.loading=!1,this.readHealthCardDialog=new s,r)return r;r=this,this.insurance=new e}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}static destroy(){null==r||r.destroy(),r=null}destroy(){this.insurance.destroy()}createParams(a,t){return{transcmd:a,...this.basicParamsRes,...t}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const t=await a;return 3===t.returncode||"3"===t.returncode?Promise.reject(`${t.returnmsg||"操作失败"}`):t.returndata}finally{this.loading=!1}}async readHealthCard(a,t){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...t})}async readIdCard(a={}){await this.checkLoading();const e=this.createParams(t.ID_CARD_READ,{transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"2",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_READ,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async writeMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_WRITE,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readInsuranceCard(a={}){var e,s;await this.checkLoading();const r=this.createParams(t.NS_GETPERSONALINFO,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{acf01:"0",iak22:"0",...null==(e=a.transdata)?void 0:e.iar1},personinfo:{location:0,ownpay:"0",...null==(s=a.transdata)?void 0:s.iar1}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(r))}async generalRequest(a={}){await this.checkLoading();const e=this.createParams(t.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}};let i=n;i.version=1,i.TRANS_CMD=t;export{i as default};
1
+ import{isFunction as a}from"lodash-es";import{TRANS_CMD as t}from"./constants/index.js";import e from"./insuranceSDK.js";import{ReadHealthCard as s}from"./utils/readHealthCard.js";let n=null;const r=class{constructor(a){if(this.options=a,this.loading=!1,this.readHealthCardDialog=new s,n)return n;n=this,this.insurance=new e}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new r(a)}static destroy(){null==n||n.destroy(),n=null}destroy(){this.insurance.destroy()}createParams(a,t){return{transcmd:a,...this.basicParamsRes,...t}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const t=await a;return 3===t.returncode||"3"===t.returncode?Promise.reject(`${t.returnmsg||"操作失败"}`):t.returndata}finally{this.loading=!1}}async readHealthCard(a,t){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...t})}async readIdCard(a={}){await this.checkLoading();const e=this.createParams(t.ID_CARD_READ,{transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"2",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_READ,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async writeMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_WRITE,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readInsuranceCard(a={}){var e,s;await this.checkLoading();const n=this.createParams(t.NS_GETPERSONALINFO,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{acf01:"0",iak22:"0",...null==(e=a.transdata)?void 0:e.iar1},personinfo:{location:0,ownpay:"0",...null==(s=a.transdata)?void 0:s.personinfo}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(n))}async getCardType(){await this.checkLoading();const a=this.createParams(t.CARD_TYPE_READ,{transsystem:"10",transtype:"IDCARD",interfaceid:"0"});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(a))}async generalRequest(a={}){await this.checkLoading();const e=this.createParams(t.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}};let i=r;i.version=1,i.TRANS_CMD=t;export{i as default};
@@ -57,7 +57,8 @@ export declare enum TRANS_CMD {
57
57
  MEMBER_CARD_READER_RESET = 110023,
58
58
  ID_CARD_READ = 110041,
59
59
  ID_CARD_READER_RESET = 110042,
60
- FAST_REPORT_OR_POS = 100000
60
+ FAST_REPORT_OR_POS = 100000,
61
+ CARD_TYPE_READ = 110034
61
62
  }
62
63
  export declare const CONFIG_MAP: InsuranceType.CardReadParams;
63
64
  export declare const INSURANCE_URL: string;
@@ -1 +1 @@
1
- var _=(_=>(_[_.NS_OUT_CHECKOUT_MODE=100003]="NS_OUT_CHECKOUT_MODE",_[_.NS_TEST_TIME=100005]="NS_TEST_TIME",_[_.NS_DOWNLOAD_CATELOG=100203]="NS_DOWNLOAD_CATELOG",_[_.NS_UPLOAD_MATCH_INFO=100204]="NS_UPLOAD_MATCH_INFO",_[_.NS_UPLOAD_MATCH_INFO_UNDO=100205]="NS_UPLOAD_MATCH_INFO_UNDO",_[_.NS_DOWNLOAD_MATCH_INFO=100206]="NS_DOWNLOAD_MATCH_INFO",_[_.NS_DOWNLOAD_DIS=100207]="NS_DOWNLOAD_DIS",_[_.NS_DOWNLOAD_DICT=100208]="NS_DOWNLOAD_DICT",_[_.NS_VERIFICATION_OF_ACCOUNT=100209]="NS_VERIFICATION_OF_ACCOUNT",_[_.NS_UPLOAD_HOSITEM=100201]="NS_UPLOAD_HOSITEM",_[_.NS_UPLOAD_HOSITEM_UNDO=100202]="NS_UPLOAD_HOSITEM_UNDO",_[_.NS_GETPERSONALINFO=100210]="NS_GETPERSONALINFO",_[_.NS_CUSTOMSEARCH_CENTERINFO=100211]="NS_CUSTOMSEARCH_CENTERINFO",_[_.NS_YBINFOQIERUMGR=100212]="NS_YBINFOQIERUMGR",_[_.NS_OUTPT_REGISTER=100401]="NS_OUTPT_REGISTER",_[_.NS_OUTPT_REGISTER_UNDO=100403]="NS_OUTPT_REGISTER_UNDO",_[_.NS_OUTPT_REGISTER_SUCCESS=100411]="NS_OUTPT_REGISTER_SUCCESS",_[_.NS_OUTPT_REGISTER_ERROR=100412]="NS_OUTPT_REGISTER_ERROR",_[_.NS_OUTPT_CHECKOUT_BEFORE=100406]="NS_OUTPT_CHECKOUT_BEFORE",_[_.NS_OUTPT_CHECKOUT=100407]="NS_OUTPT_CHECKOUT",_[_.NS_OUTPT_REFUND=100408]="NS_OUTPT_REFUND",_[_.NS_OUTPT_CHECKOUT_SUCCESS=100409]="NS_OUTPT_CHECKOUT_SUCCESS",_[_.NS_OUTPT_CHECKOUT_ERROR=100410]="NS_OUTPT_CHECKOUT_ERROR",_[_.NS_OUTPT_REFUND_SUCCESS=100413]="NS_OUTPT_REFUND_SUCCESS",_[_.NS_OUTPT_REFUND_ERROR=100414]="NS_OUTPT_REFUND_ERROR",_[_.NS_OUTPT_CHECKOUT_PAY_CONFIRM=100415]="NS_OUTPT_CHECKOUT_PAY_CONFIRM",_[_.NS_OUT_UNPOST_CHECKOUT_REC_HANDLE=100416]="NS_OUT_UNPOST_CHECKOUT_REC_HANDLE",_[_.NS_INPT_REGISTER=100601]="NS_INPT_REGISTER",_[_.NS_INPT_REGISTER_UNDO=100603]="NS_INPT_REGISTER_UNDO",_[_.NS_INPT_UPLOAD_FEEITEM=100604]="NS_INPT_UPLOAD_FEEITEM",_[_.NS_INPT_TO_OWNPAY=100605]="NS_INPT_TO_OWNPAY",_[_.NS_INPT_PRECHECKOUT=100606]="NS_INPT_PRECHECKOUT",_[_.NS_INPT_REUPLOAD_FEEITEM=100607]="NS_INPT_REUPLOAD_FEEITEM",_[_.NS_INPT_DOWNLOAD_FEEITEM=100608]="NS_INPT_DOWNLOAD_FEEITEM",_[_.NS_INPT_DELETE_FEEITEM=100609]="NS_INPT_DELETE_FEEITEM",_[_.NS_INPT_CLEAR_FEEITEM=100610]="NS_INPT_CLEAR_FEEITEM",_[_.NS_INPT_CHECKOUT=100613]="NS_INPT_CHECKOUT",_[_.NS_INPT_CHECKOUT_CANCEL=100614]="NS_INPT_CHECKOUT_CANCEL",_[_.NS_INPT_UPLOAD_ORDERS=100611]="NS_INPT_UPLOAD_ORDERS",_[_.NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD=100612]="NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD",_[_.NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST=100616]="NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST",_[_.NS_INPT_MANAGE_EXTEND_METHOD=100617]="NS_INPT_MANAGE_EXTEND_METHOD",_[_.NS_INPT_UPLOAD_MEDICALRECORD_UNDO=100618]="NS_INPT_UPLOAD_MEDICALRECORD_UNDO",_[_.NS_INPT_PREPAYMEN=100619]="NS_INPT_PREPAYMEN",_[_.NS_INPT_PREPAYMEN_SUCCESS=100620]="NS_INPT_PREPAYMEN_SUCCESS",_[_.NS_INPT_PREPAYMEN_ERROR=100621]="NS_INPT_PREPAYMEN_ERROR",_[_.NS_INPT_PREPAYMEN_REFUND=100622]="NS_INPT_PREPAYMEN_REFUND",_[_.NS_INPT_PREPAYMEN_REFUND_SUCCESS=100623]="NS_INPT_PREPAYMEN_REFUND_SUCCESS",_[_.NS_INPT_PREPAYMEN_REFUND_ERROR=100624]="NS_INPT_PREPAYMEN_REFUND_ERROR",_[_.MEMBER_CARD_READ=110021]="MEMBER_CARD_READ",_[_.MEMBER_CARD_WRITE=110022]="MEMBER_CARD_WRITE",_[_.MEMBER_CARD_READER_RESET=110023]="MEMBER_CARD_READER_RESET",_[_.ID_CARD_READ=110041]="ID_CARD_READ",_[_.ID_CARD_READER_RESET=110042]="ID_CARD_READER_RESET",_[_.FAST_REPORT_OR_POS=1e5]="FAST_REPORT_OR_POS",_))(_||{});const E=Object.freeze({interfaceid:"0",transcmd:100210,transtype:"YB0000",transchannel:"101",transsystem:"10"}),N="http://127.0.0.1:8031/HOInterfaceSvr";export{E as CONFIG_MAP,N as INSURANCE_URL,_ as TRANS_CMD};
1
+ var _=(_=>(_[_.NS_OUT_CHECKOUT_MODE=100003]="NS_OUT_CHECKOUT_MODE",_[_.NS_TEST_TIME=100005]="NS_TEST_TIME",_[_.NS_DOWNLOAD_CATELOG=100203]="NS_DOWNLOAD_CATELOG",_[_.NS_UPLOAD_MATCH_INFO=100204]="NS_UPLOAD_MATCH_INFO",_[_.NS_UPLOAD_MATCH_INFO_UNDO=100205]="NS_UPLOAD_MATCH_INFO_UNDO",_[_.NS_DOWNLOAD_MATCH_INFO=100206]="NS_DOWNLOAD_MATCH_INFO",_[_.NS_DOWNLOAD_DIS=100207]="NS_DOWNLOAD_DIS",_[_.NS_DOWNLOAD_DICT=100208]="NS_DOWNLOAD_DICT",_[_.NS_VERIFICATION_OF_ACCOUNT=100209]="NS_VERIFICATION_OF_ACCOUNT",_[_.NS_UPLOAD_HOSITEM=100201]="NS_UPLOAD_HOSITEM",_[_.NS_UPLOAD_HOSITEM_UNDO=100202]="NS_UPLOAD_HOSITEM_UNDO",_[_.NS_GETPERSONALINFO=100210]="NS_GETPERSONALINFO",_[_.NS_CUSTOMSEARCH_CENTERINFO=100211]="NS_CUSTOMSEARCH_CENTERINFO",_[_.NS_YBINFOQIERUMGR=100212]="NS_YBINFOQIERUMGR",_[_.NS_OUTPT_REGISTER=100401]="NS_OUTPT_REGISTER",_[_.NS_OUTPT_REGISTER_UNDO=100403]="NS_OUTPT_REGISTER_UNDO",_[_.NS_OUTPT_REGISTER_SUCCESS=100411]="NS_OUTPT_REGISTER_SUCCESS",_[_.NS_OUTPT_REGISTER_ERROR=100412]="NS_OUTPT_REGISTER_ERROR",_[_.NS_OUTPT_CHECKOUT_BEFORE=100406]="NS_OUTPT_CHECKOUT_BEFORE",_[_.NS_OUTPT_CHECKOUT=100407]="NS_OUTPT_CHECKOUT",_[_.NS_OUTPT_REFUND=100408]="NS_OUTPT_REFUND",_[_.NS_OUTPT_CHECKOUT_SUCCESS=100409]="NS_OUTPT_CHECKOUT_SUCCESS",_[_.NS_OUTPT_CHECKOUT_ERROR=100410]="NS_OUTPT_CHECKOUT_ERROR",_[_.NS_OUTPT_REFUND_SUCCESS=100413]="NS_OUTPT_REFUND_SUCCESS",_[_.NS_OUTPT_REFUND_ERROR=100414]="NS_OUTPT_REFUND_ERROR",_[_.NS_OUTPT_CHECKOUT_PAY_CONFIRM=100415]="NS_OUTPT_CHECKOUT_PAY_CONFIRM",_[_.NS_OUT_UNPOST_CHECKOUT_REC_HANDLE=100416]="NS_OUT_UNPOST_CHECKOUT_REC_HANDLE",_[_.NS_INPT_REGISTER=100601]="NS_INPT_REGISTER",_[_.NS_INPT_REGISTER_UNDO=100603]="NS_INPT_REGISTER_UNDO",_[_.NS_INPT_UPLOAD_FEEITEM=100604]="NS_INPT_UPLOAD_FEEITEM",_[_.NS_INPT_TO_OWNPAY=100605]="NS_INPT_TO_OWNPAY",_[_.NS_INPT_PRECHECKOUT=100606]="NS_INPT_PRECHECKOUT",_[_.NS_INPT_REUPLOAD_FEEITEM=100607]="NS_INPT_REUPLOAD_FEEITEM",_[_.NS_INPT_DOWNLOAD_FEEITEM=100608]="NS_INPT_DOWNLOAD_FEEITEM",_[_.NS_INPT_DELETE_FEEITEM=100609]="NS_INPT_DELETE_FEEITEM",_[_.NS_INPT_CLEAR_FEEITEM=100610]="NS_INPT_CLEAR_FEEITEM",_[_.NS_INPT_CHECKOUT=100613]="NS_INPT_CHECKOUT",_[_.NS_INPT_CHECKOUT_CANCEL=100614]="NS_INPT_CHECKOUT_CANCEL",_[_.NS_INPT_UPLOAD_ORDERS=100611]="NS_INPT_UPLOAD_ORDERS",_[_.NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD=100612]="NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD",_[_.NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST=100616]="NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST",_[_.NS_INPT_MANAGE_EXTEND_METHOD=100617]="NS_INPT_MANAGE_EXTEND_METHOD",_[_.NS_INPT_UPLOAD_MEDICALRECORD_UNDO=100618]="NS_INPT_UPLOAD_MEDICALRECORD_UNDO",_[_.NS_INPT_PREPAYMEN=100619]="NS_INPT_PREPAYMEN",_[_.NS_INPT_PREPAYMEN_SUCCESS=100620]="NS_INPT_PREPAYMEN_SUCCESS",_[_.NS_INPT_PREPAYMEN_ERROR=100621]="NS_INPT_PREPAYMEN_ERROR",_[_.NS_INPT_PREPAYMEN_REFUND=100622]="NS_INPT_PREPAYMEN_REFUND",_[_.NS_INPT_PREPAYMEN_REFUND_SUCCESS=100623]="NS_INPT_PREPAYMEN_REFUND_SUCCESS",_[_.NS_INPT_PREPAYMEN_REFUND_ERROR=100624]="NS_INPT_PREPAYMEN_REFUND_ERROR",_[_.MEMBER_CARD_READ=110021]="MEMBER_CARD_READ",_[_.MEMBER_CARD_WRITE=110022]="MEMBER_CARD_WRITE",_[_.MEMBER_CARD_READER_RESET=110023]="MEMBER_CARD_READER_RESET",_[_.ID_CARD_READ=110041]="ID_CARD_READ",_[_.ID_CARD_READER_RESET=110042]="ID_CARD_READER_RESET",_[_.FAST_REPORT_OR_POS=1e5]="FAST_REPORT_OR_POS",_[_.CARD_TYPE_READ=110034]="CARD_TYPE_READ",_))(_||{});const E=Object.freeze({interfaceid:"0",transcmd:100210,transtype:"YB0000",transchannel:"101",transsystem:"10"}),N="http://127.0.0.1:8031/HOInterfaceSvr";export{E as CONFIG_MAP,N as INSURANCE_URL,_ as TRANS_CMD};
@@ -1,12 +1,12 @@
1
- import { AnyObject, Func, NumberRange } from '../../../../../es/shared/types';
1
+ import { AnyObject, AnyFn, NumberRange } from '../../../../../es/shared/types';
2
2
  import { TRANS_CMD } from '../../../../../es/components/card-reader-sdk/src/constants';
3
3
  export declare namespace InsuranceType {
4
4
  export type ExecType = 'hisyb' | 'login';
5
5
  export type IHOWindow = Window & {
6
6
  chrome: {
7
7
  webview: {
8
- addEventListener: (type: string, handler: Func) => void;
9
- removeEventListener: (type: string, handler: Func) => void;
8
+ addEventListener: (type: string, handler: AnyFn) => void;
9
+ removeEventListener: (type: string, handler: AnyFn) => void;
10
10
  postMessage: (payload: any) => void;
11
11
  };
12
12
  };
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as t,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,isRef as d,createSlots as i,renderList as s,withCtx as f,renderSlot as p,nextTick as m}from"vue";import{NDatePicker as v}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import{format as g}from"date-fns";var V=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:V,emit:w}){const I=e,R=a(),D=t(null),M=t(null),k=t(),C=l({get:()=>j(I.formattedValue)?null:I.formattedValue,set(e){w("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),E=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),P=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return E.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),S=l((()=>E.value?P.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(D,{formatRef:P,attrs:R,emit:w,allowedInvalidValue:I.allowedInvalidValue});function b(e){e&&E.value&&m((()=>{var e;M.value=null==(e=D.value)?void 0:e.panelInstRef,h(M,{formatRef:S,attrs:R,isPanel:!0})}))}async function x(...e){var a,t,l,n,u,r;const o=Reflect.get(R,"type")||"",d=null==(n=null==(l=null==(t=null==(a=D.value)?void 0:a.inputInstRef)?void 0:t.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(o.includes("range")?null==(u=I.onConfirm)||u.call(I,...e):(await m(),d.focus(),_(d),d.blur(),null==(r=I.onConfirm)||r.call(I,Date.parse(d.value),d.value)),!(null==d?void 0:d.value)||!I.updateUnchangedValue||o.includes("range"))return;const i=d.value;d.value=g(new Date,P.value),d.dispatchEvent(new InputEvent("input")),d.value=i,d.dispatchEvent(new InputEvent("input"))}function j(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{k.value=j(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),V({$datePicker:D,focus:U,blur:$}),(e,a)=>(u(),r(o(v),{ref_key:"datePickerRef",ref:D,"onUpdate:show":b,onConfirm:x,placeholder:k.value,"formatted-value":o(C),"onUpdate:formatted-value":a[0]||(a[0]=e=>d(C)?C.value=e:null)},i({_:2},[s(e.$slots,((a,t)=>({name:t,fn:f((()=>[p(e.$slots,t)]))})))]),1032,["placeholder","formatted-value"]))}});export{V as default};
1
+ import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as n,openBlock as o,createBlock as r,unref as u,isRef as i,createSlots as d,renderList as s,withCtx as p,renderSlot as m,nextTick as v}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{format as g}from"date-fns";var V=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:V,emit:w}){const I=e,R=t(),k=a(null),D=a(null),C=a(),M=l({get:()=>x(I.formattedValue)?null:I.formattedValue,set(e){w("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),S=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),E=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return S.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),P=l((()=>S.value?E.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(k,{formatRef:E,attrs:R,emit:w,allowedInvalidValue:I.allowedInvalidValue});function b(e){e&&S.value&&v((()=>{var e;D.value=null==(e=k.value)?void 0:e.panelInstRef,h(D,{formatRef:P,attrs:R,isPanel:!0})}))}async function j(...e){var t,a,l,n,o,r;const u=Reflect.get(R,"type")||"",i=null==(n=null==(l=null==(a=null==(t=k.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(u.includes("range")?null==(o=I.onConfirm)||o.call(I,...e):(await v(),i.focus(),_(i),i.blur(),null==(r=I.onConfirm)||r.call(I,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!I.updateUnchangedValue||u.includes("range"))return;const d=i.value;i.value=g(new Date,E.value),i.dispatchEvent(new InputEvent("input")),i.value=d,i.dispatchEvent(new InputEvent("input"))}function x(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{C.value=x(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),V({$datePicker:k,focus:U,blur:$}),(e,t)=>(o(),r(u(f),{ref_key:"datePickerRef",ref:k,"onUpdate:show":b,onConfirm:j,placeholder:C.value,"formatted-value":u(M),"onUpdate:formatted-value":t[0]||(t[0]=e=>i(M)?M.value=e:null)},d({_:2},[s(e.$slots,((t,a)=>({name:a,fn:p((()=>[m(e.$slots,a)]))})))]),1032,["placeholder","formatted-value"]))}});export{V as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,reactive as r,computed as s,onMounted as o,onBeforeUnmount as a,openBlock as i,createElementBlock as n,normalizeStyle as p,unref as u,createElementVNode as l,Fragment as c,createVNode as h,mergeProps as m,createCommentVNode as d}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import w from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import{useBirthProcessChart as g}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as k}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as j}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";var y=e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select","add:prevent"],setup(e,{expose:y,emit:C}){const x=e,b=t(null),P=t(),I=r({show:!1,point:{x:0,y:0},list:[]}),M=r({show:!1,point:{x:0,y:0},list:[],target:null}),A=s((()=>{var e;return null==(e=P.value)?void 0:e.wrapperEl})),R=s((()=>({width:`${x.data.width||800}px`,height:`${x.data.height||500}px`}))),{propItems:S,redrawPoints:T,select:_,clickMenu:E}=function(){const e=[P,x,C,b,I,M];switch(x.type){case"birthProcess":return g(...e);case"surgicalAnesthesia":return j(...e);default:return k(...e)}}();return o((()=>{P.value=new f.Canvas(b.value,{width:S.canvasWidth,height:S.canvasHeight,backgroundColor:"#fff",selection:!1,stopContextMenu:!0,fireRightClick:!0,allowTouchScrolling:!0})})),a((()=>{P.value.off(),P.value.clear()})),y({redrawPoints:T,select:_,canvas:P}),(e,t)=>(i(),n("div",{class:"c-fabric-chart",style:p(u(R))},[l("canvas",{ref_key:"canvasRef",ref:b},null,512),u(A)?(i(),n(c,{key:0},[h(v,m({propItems:u(S)},I),null,16,["propItems"]),h(u(w),m({propItems:u(S)},M,{show:M.show,"onUpdate:show":t[0]||(t[0]=e=>M.show=e),onClickMenu:u(E)}),null,16,["propItems","show","onClickMenu"])],64)):d("v-if",!0)],4))}});export{y as default};
1
+ import{defineComponent as e,ref as t,reactive as r,computed as s,onMounted as o,onBeforeUnmount as a,openBlock as i,createElementBlock as n,normalizeStyle as l,unref as p,createElementVNode as u,Fragment as c,createVNode as h,mergeProps as m,createCommentVNode as d}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import w from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import{useBirthProcessChart as g}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as k}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as j}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";var y=e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select","add:prevent"],setup(e,{expose:y,emit:C}){const x=e,b=t(null),P=t(),I=r({show:!1,point:{x:0,y:0},list:[]}),M=r({show:!1,point:{x:0,y:0},list:[],target:null}),A=s((()=>{var e;return null==(e=P.value)?void 0:e.wrapperEl})),R=s((()=>({width:`${x.data.width||800}px`,height:`${x.data.height||500}px`}))),{propItems:S,redrawPoints:T,select:_,clickMenu:E}=function(){const e=[P,x,C,b,I,M];switch(x.type){case"birthProcess":return g(...e);case"surgicalAnesthesia":return j(...e);default:return k(...e)}}();return o((()=>{P.value=new f.Canvas(b.value,{width:S.canvasWidth,height:S.canvasHeight,backgroundColor:"#fff",selection:!1,stopContextMenu:!0,fireRightClick:!0,allowTouchScrolling:!0})})),a((()=>{var e,t,r,s;null==(t=null==(e=P.value)?void 0:e.off)||t.call(e),null==(s=null==(r=P.value)?void 0:r.clear)||s.call(r)})),y({redrawPoints:T,select:_,canvas:P}),(e,t)=>(i(),n("div",{class:"c-fabric-chart",style:l(p(R))},[u("canvas",{ref_key:"canvasRef",ref:b},null,512),p(A)?(i(),n(c,{key:0},[h(v,m({propItems:p(S)},I),null,16,["propItems"]),h(p(w),m({propItems:p(S)},M,{show:M.show,"onUpdate:show":t[0]||(t[0]=e=>M.show=e),onClickMenu:p(E)}),null,16,["propItems","show","onClickMenu"])],64)):d("v-if",!0)],4))}});export{y as default};