cnhis-design-vue 3.1.47-beta.2 → 3.1.47-beta.21

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 (165) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  7. package/es/components/button-print/src/utils/print.d.ts +10 -8
  8. package/es/components/button-print/src/utils/print.js +1 -1
  9. package/es/components/fabric-chart/index.d.ts +3 -20
  10. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -20
  11. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +2 -1
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +2 -18
  15. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +2 -0
  18. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +2 -1
  20. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +4 -0
  22. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -0
  23. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -0
  24. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -0
  25. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +2 -18
  26. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +2 -1
  28. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +2 -4
  30. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -3
  32. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +2 -18
  34. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +4 -1
  36. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  38. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +12 -0
  39. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  40. package/es/components/fabric-chart/src/interface.d.ts +13 -1
  41. package/es/components/fabric-chart/src/utils/index.d.ts +7 -0
  42. package/es/components/fabric-chart/src/utils/index.js +1 -1
  43. package/es/components/form-config/index.d.ts +9 -9
  44. package/es/components/form-config/src/FormConfig.vue.d.ts +9 -9
  45. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
  46. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
  47. package/es/components/form-render/index.d.ts +1 -1
  48. package/es/components/form-render/src/FormRender.vue.d.ts +2 -1
  49. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  50. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
  51. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +2 -2
  52. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  53. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +4 -4
  54. package/es/components/form-render/src/components/renderer/select.d.ts +2 -2
  55. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  56. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  57. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +1 -0
  58. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  59. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  60. package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
  61. package/es/components/form-render/src/types/index.d.ts +59 -2
  62. package/es/components/form-render/src/utils/index.js +1 -1
  63. package/es/components/iho-table/src/constants/index.d.ts +1 -0
  64. package/es/components/iho-table/src/constants/index.js +1 -1
  65. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  66. package/es/components/iho-table/src/plugins/index.js +1 -1
  67. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -0
  68. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -0
  69. package/es/components/iho-table/src/utils/index.js +1 -1
  70. package/es/components/iho-table/style/index.css +1 -1
  71. package/es/components/index.css +1 -1
  72. package/es/components/index.d.ts +2 -1
  73. package/es/components/index.js +1 -1
  74. package/es/components/info-header/index.d.ts +2 -2
  75. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -2
  76. package/es/components/info-header/src/InfoHeader.vue2.js +1 -1
  77. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -1
  78. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
  79. package/es/components/info-header/style/index.css +1 -1
  80. package/es/components/insurance-sdk/index.d.ts +2 -1
  81. package/es/components/insurance-sdk/index.js +1 -1
  82. package/es/components/insurance-sdk/src/constants/index.d.ts +158 -154
  83. package/es/components/insurance-sdk/src/constants/index.js +1 -1
  84. package/es/components/insurance-sdk/src/insurance.d.ts +29 -0
  85. package/es/components/insurance-sdk/src/insurance.js +1 -0
  86. package/es/components/insurance-sdk/src/types/index.d.ts +27 -0
  87. package/es/components/insurance-sdk/src/types/index.js +1 -0
  88. package/es/components/insurance-sdk/src/utils/index.d.ts +9 -1
  89. package/es/components/insurance-sdk/src/utils/index.js +1 -1
  90. package/es/components/multi-chat/index.d.ts +1023 -0
  91. package/es/components/multi-chat/index.js +1 -0
  92. package/es/components/multi-chat/src/MultiChat.vue.d.ts +1005 -0
  93. package/es/components/multi-chat/src/MultiChat.vue.js +1 -0
  94. package/es/components/multi-chat/src/MultiChat.vue2.js +1 -0
  95. package/es/components/multi-chat/src/api/index.d.ts +8 -0
  96. package/es/components/multi-chat/src/api/index.js +1 -0
  97. package/es/components/multi-chat/src/components/ChatFooter.vue.d.ts +17 -0
  98. package/es/components/multi-chat/src/components/ChatFooter.vue.js +1 -0
  99. package/es/components/multi-chat/src/components/ChatFooter.vue2.js +1 -0
  100. package/es/components/multi-chat/src/components/ChatHeader.vue.d.ts +7 -0
  101. package/es/components/multi-chat/src/components/ChatHeader.vue.js +1 -0
  102. package/es/components/multi-chat/src/components/ChatHeader.vue2.js +1 -0
  103. package/es/components/multi-chat/src/components/ChatMain.vue.d.ts +13 -0
  104. package/es/components/multi-chat/src/components/ChatMain.vue.js +1 -0
  105. package/es/components/multi-chat/src/components/ChatMain.vue2.js +1 -0
  106. package/es/components/multi-chat/src/components/SiderList.vue.d.ts +41 -0
  107. package/es/components/multi-chat/src/components/SiderList.vue.js +1 -0
  108. package/es/components/multi-chat/src/components/SiderList.vue2.js +1 -0
  109. package/es/components/multi-chat/src/utils/chatSock.d.ts +28 -0
  110. package/es/components/multi-chat/src/utils/chatSock.js +1 -0
  111. package/es/components/multi-chat/style/index.css +1 -0
  112. package/es/components/scale-view/index.d.ts +29 -0
  113. package/es/components/scale-view/src/ScaleView.vue.d.ts +29 -0
  114. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  115. package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -1
  116. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
  117. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  118. package/es/components/scale-view/style/index.css +1 -1
  119. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  120. package/es/components/select-person/index.d.ts +4 -0
  121. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  122. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -0
  123. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  124. package/es/components/select-person/src/utils/index.d.ts +1 -1
  125. package/es/components/select-person/src/utils/index.js +1 -1
  126. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  127. package/es/components/shortcut-provider/src/types/index.d.ts +2 -1
  128. package/es/components/shortcut-setter/index.d.ts +2 -2
  129. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -2
  130. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -1
  131. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +12 -0
  132. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -1
  133. package/es/components/steps-wheel/index.d.ts +27 -0
  134. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +27 -0
  135. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  136. package/es/components/steps-wheel/src/constants/index.js +1 -1
  137. package/es/components/steps-wheel/style/index.css +1 -1
  138. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  139. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
  140. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  141. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +5 -2
  142. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  143. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -2
  144. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +5 -2
  145. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  146. package/es/env.d.ts +25 -25
  147. package/es/shared/assets/img/failure.png.js +1 -1
  148. package/es/shared/assets/img/no-permission.png.js +1 -1
  149. package/es/shared/assets/img/nodata.png.js +1 -1
  150. package/es/shared/assets/img/notfound.png.js +1 -1
  151. package/es/shared/assets/img/qr.png.js +1 -1
  152. package/es/shared/assets/img/success.png.js +1 -1
  153. package/es/shared/assets/img/video.png.js +1 -1
  154. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  155. package/es/shared/assets/img/xb_big.png.js +1 -1
  156. package/es/shared/assets/img/xb_small.png.js +1 -1
  157. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  158. package/es/shared/package.json.js +1 -1
  159. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  160. package/es/shared/utils/tapable/index.d.ts +139 -0
  161. package/es/shared/utils/tapableLess.d.ts +28 -0
  162. package/es/shared/utils/tapableLess.js +1 -0
  163. package/package.json +4 -2
  164. package/es/components/insurance-sdk/src/utils/insurance.d.ts +0 -260
  165. package/es/components/insurance-sdk/src/utils/insurance.js +0 -1
@@ -31,6 +31,7 @@ import CTimePicker from './time-picker';
31
31
  import CConfigProvider from './config-provider';
32
32
  import CPictureClipper from './picture-clipper';
33
33
  import CTableExportField from './table-export-field';
34
+ import CMultiChat from './multi-chat';
34
35
  export * from './form-render';
35
36
  export * from './shortcut-provider';
36
37
  export * from './shortcut-setter';
@@ -46,7 +47,7 @@ export * from '../../es/shared/types';
46
47
  export * from './guide';
47
48
  export * from './iho-select-label';
48
49
  declare function install(app: App): void;
49
- export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CIhoSelectLabel, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField };
50
+ export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CIhoSelectLabel, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CMultiChat };
50
51
  declare const _default: {
51
52
  install: typeof install;
52
53
  };
@@ -1 +1 @@
1
- import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import t from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import s from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import n from"./iho-select-label/index.js";export{CIhoLabelFormContent,default as CIhoSelectLabel}from"./iho-select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import m from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as f,CRadio as p,CCheckbox as l,CSelect as c,CDatetime as u}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import x from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import C from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import j from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import h from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import b from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import g from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import F from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import P from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import y from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import I from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import B from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import A from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import L from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import T from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import w from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import D from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import R from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import V from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import E from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";export{Insurance}from"./insurance-sdk/src/utils/insurance.js";export{useGuide}from"./guide/src/useGuide.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFormRequest}from"./form-render/src/hooks/useFormRequest.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormAsyncQueue}from"./form-render/src/hooks/useFormAsyncQueue.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{searchContentMatcher,useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{combineExtendKey,createInputSlot,createSlot,createUrlConfigParams,formRenderLog,injectOrProvide,isNestedFieldType,isNestedType,keywordMatcher,mergeDeepProperties,parseNumberFromMaybeString,presetRequestHandler,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export*from"@formily/core";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";const H={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:t,CSelectPerson:s,CSelectLabel:i,CLabelFormContent:a,CIhoSelectLabel:n,CScaleView:f,CMap:d,CVodChunkUpload:m,CRadio:p,CCheckbox:l,CSelect:c,CDatetime:u,CInfoHeader:x,CTimeLine:C,CBaseSearch:j,CQuickSearch:h,CClassification:b,CBpmnWorkflow:k,CStepsWheel:g,CEditor:S,CFormRender:F,CFabricChart:P,CShortcutProvider:y,CShortcutSetter:v,CFormConfig:I,CIhoTable:B,CKeyboard:A,CSearchCascader:L,CRecommendSearch:T,CDatePicker:w,CTimePicker:D,CConfigProvider:R,CPictureClipper:V,CTableExportField:E};var M={install:function(e){Object.values(H).forEach((r=>{r.install(e)}))},...H};export{M as default};
1
+ import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import t from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import s from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import d from"./iho-select-label/index.js";export{CIhoLabelFormContent,default as CIhoSelectLabel}from"./iho-select-label/index.js";import m from"./map/index.js";export{default as CMap}from"./map/index.js";import n from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as f,CRadio as p,CCheckbox as l,CSelect as c,CDatetime as u}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import x from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import C from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import h from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import j from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import b from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import g from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import F from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import P from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import y from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import B from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import I from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import A from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import L from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import T from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import w from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import D from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import R from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import V from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import E from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";import M from"./multi-chat/index.js";export{default as CMultiChat}from"./multi-chat/index.js";import"../shared/utils/index.js";import"lodash-es";import"axios";export{useGuide}from"./guide/src/useGuide.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFormRequest}from"./form-render/src/hooks/useFormRequest.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormAsyncQueue}from"./form-render/src/hooks/useFormAsyncQueue.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{searchContentMatcher,useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{combineExtendKey,createInputSlot,createSlot,createUrlConfigParams,formRenderLog,injectOrProvide,isNestedFieldType,isNestedType,keywordMatcher,mergeDeepProperties,parseNumberFromMaybeString,presetRequestHandler,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export*from"@formily/core";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";const H={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:t,CSelectPerson:s,CSelectLabel:i,CLabelFormContent:a,CIhoSelectLabel:d,CScaleView:f,CMap:m,CVodChunkUpload:n,CRadio:p,CCheckbox:l,CSelect:c,CDatetime:u,CInfoHeader:x,CTimeLine:C,CBaseSearch:h,CQuickSearch:j,CClassification:b,CBpmnWorkflow:k,CStepsWheel:g,CEditor:S,CFormRender:F,CFabricChart:P,CShortcutProvider:y,CShortcutSetter:v,CFormConfig:B,CIhoTable:I,CKeyboard:A,CSearchCascader:L,CRecommendSearch:T,CDatePicker:w,CTimePicker:D,CConfigProvider:R,CPictureClipper:V,CTableExportField:E,CMultiChat:M};var q={install:function(e){Object.values(H).forEach((r=>{r.install(e)}))},...H};export{q as default};
@@ -2924,7 +2924,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2924
2924
  validate(path?: string): Promise<void>;
2925
2925
  getFormValues(needCombineExtendKey?: boolean): any;
2926
2926
  setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2927
- setFieldState(path: string, handler: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
2927
+ setFieldState(path: string, setter: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
2928
2928
  match: (pattern: import("@formily/path").Pattern) => boolean;
2929
2929
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
2930
2930
  data: any;
@@ -3812,7 +3812,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3812
3812
  validate(path?: string): Promise<void>;
3813
3813
  getFormValues(needCombineExtendKey?: boolean): any;
3814
3814
  setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
3815
- setFieldState(path: string, handler: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
3815
+ setFieldState(path: string, setter: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
3816
3816
  match: (pattern: import("@formily/path").Pattern) => boolean;
3817
3817
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
3818
3818
  data: any;
@@ -2918,7 +2918,7 @@ declare const _default: import("vue").DefineComponent<{
2918
2918
  validate(path?: string): Promise<void>;
2919
2919
  getFormValues(needCombineExtendKey?: boolean): any;
2920
2920
  setFormValues(values: AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2921
- setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
2921
+ setFieldState(path: string, setter: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
2922
2922
  match: (pattern: import("@formily/path").Pattern) => boolean;
2923
2923
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
2924
2924
  data: any;
@@ -3806,7 +3806,7 @@ declare const _default: import("vue").DefineComponent<{
3806
3806
  validate(path?: string): Promise<void>;
3807
3807
  getFormValues(needCombineExtendKey?: boolean): any;
3808
3808
  setFormValues(values: AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
3809
- setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
3809
+ setFieldState(path: string, setter: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
3810
3810
  match: (pattern: import("@formily/path").Pattern) => boolean;
3811
3811
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
3812
3812
  data: any;
@@ -1 +1 @@
1
- import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as i,createElementBlock as a,normalizeClass as s,normalizeStyle as r,unref as c,createElementVNode as p,createCommentVNode as f,renderSlot as l,createVNode as d,withCtx as u,mergeProps as m,Fragment as h,renderList as g,createBlock as v,resolveDynamicComponent as y,h as b,nextTick as I}from"vue";import{isString as _}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";const z={class:"c-info-header__operation"},w={key:0,class:"c-info-header__divider"},k={class:"c-info-header__setting"},C=["onClick"];var H=e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:38},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:H,emit:P}){const A=e;t(S,P);const B=n();function D(){var e;return null==(e=B.value)?void 0:e.updateColumn()}const E=o((()=>({"--row-height":A.rowHeight,"--row-num":A.compact?1:2,"--padding-tb":A.compact?9:4}))),F={patientInfo:{event:function(){P("openPatientInfo")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){P("fieldSet")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){P("update:compact",!A.compact),await I(),await D()},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},N=o((()=>A.settingIcons.map((e=>(_(e)?F[e]:e)||{})))),O=n();return t(j,O),H({update:D,$formRender:O}),(t,n)=>(i(),a("div",{class:s(["c-info-header",{"is-compact":e.compact}]),style:r(c(E))},[p("section",z,[f(" 操作区插槽 "),l(t.$slots,"operation")]),t.$slots.operation?(i(),a("div",w)):f("v-if",!0),f(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),l(t.$slots,"patientModule",{},(()=>[d(c(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:u((()=>[f(" 头像区补充内容插槽 (会插入头像下方) "),l(t.$slots,"avatarInfo")])),avatar:u((()=>[f(" 头像插槽 "),l(t.$slots,"avatar")])),tags:u((()=>[f(" 标签插槽 "),l(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(c($),m({ref_key:"infoDescriptionRef",ref:B,"root-slot":t.$slots},t.$props),{info:u((()=>[f(" 信息描述区插槽 "),l(t.$slots,"info")])),_:3},16,["root-slot"]),p("section",k,[f(" 设置区插槽 "),l(t.$slots,"setting",{},(()=>[(i(!0),a(h,null,g(c(N),(e=>(i(),a("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(i(),v(y(e.render)))],8,C)))),128))]))])],6))}});export{H as default};
1
+ import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as a,createElementBlock as i,createCommentVNode as s,renderSlot as r,createElementVNode as c,normalizeClass as f,normalizeStyle as p,unref as l,createVNode as d,withCtx as u,mergeProps as m,Fragment as h,renderList as g,createBlock as v,resolveDynamicComponent as y,h as b,nextTick as _}from"vue";import{isString as I}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";const z={class:"c-info-header"},w={class:"c-info-header__operation"},k={key:0,class:"c-info-header__divider"},C={class:"c-info-header__setting"},H=["onClick"];var P=e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:38},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:P,emit:A}){const B=e;t(S,A);const D=n();function E(){var e;return null==(e=D.value)?void 0:e.updateColumn()}const F=o((()=>({"--row-height":B.rowHeight,"--row-num":B.compact?1:2,"--padding-tb":B.compact?9:4}))),N={patientInfo:{event:function(){A("openPatientInfo")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){A("fieldSet")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){A("update:compact",!B.compact),await _(),await E()},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},O=o((()=>B.settingIcons.map((e=>(I(e)?N[e]:e)||{})))),R=n();return t(j,R),P({update:E,$formRender:R}),(t,n)=>(a(),i("header",z,[s(" 顶部插槽 "),r(t.$slots,"header"),c("div",{class:f(["c-info-header__content",{"is-compact":e.compact}]),style:p(l(F))},[c("section",w,[s(" 操作区插槽 "),r(t.$slots,"operation")]),t.$slots.operation?(a(),i("div",k)):s("v-if",!0),s(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),r(t.$slots,"patientModule",{},(()=>[d(l(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:u((()=>[s(" 头像区补充内容插槽 (会插入头像下方) "),r(t.$slots,"avatarInfo")])),avatar:u((()=>[s(" 头像插槽 "),r(t.$slots,"avatar")])),tags:u((()=>[s(" 标签插槽 "),r(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(l($),m({ref_key:"infoDescriptionRef",ref:D,"root-slot":t.$slots},t.$props),{info:u((()=>[s(" 信息描述区插槽 "),r(t.$slots,"info")])),_:3},16,["root-slot"]),c("section",C,[s(" 设置区插槽 "),r(t.$slots,"setting",{},(()=>[(a(!0),i(h,null,g(l(O),(e=>(a(),i("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(a(),v(y(e.render)))],8,H)))),128))]))])],6),s(" 底部插槽 "),r(t.$slots,"footer")]))}});export{P as default};
@@ -2491,7 +2491,7 @@ declare const _default: import("vue").DefineComponent<{
2491
2491
  validate(path?: string): Promise<void>;
2492
2492
  getFormValues(needCombineExtendKey?: boolean): any;
2493
2493
  setFormValues(values: import("../../../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2494
- setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../../../es/components/form-render").NonFunctionPropertyNames<{
2494
+ setFieldState(path: string, setter: (field: Partial<Pick<import("../../../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../../../es/components/form-render").NonFunctionPropertyNames<{
2495
2495
  match: (pattern: import("@formily/path").Pattern) => boolean;
2496
2496
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
2497
2497
  data: any;
@@ -503,7 +503,7 @@ declare const _default: import("vue").DefineComponent<{
503
503
  validate(path?: string): Promise<void>;
504
504
  getFormValues(needCombineExtendKey?: boolean): any;
505
505
  setFormValues(values: import("../../../..").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
506
- setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../../../es/components/form-render").NonFunctionPropertyNames<{
506
+ setFieldState(path: string, setter: (field: Partial<Pick<import("../../../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../../../es/components/form-render").NonFunctionPropertyNames<{
507
507
  match: (pattern: import("@formily/path").Pattern) => boolean;
508
508
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
509
509
  data: any;
@@ -1 +1 @@
1
- .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px;transition:height .2s linear,padding .2s linear}@font-face{font-family:info-header-iconfont;src:url(info-header-font.ttf) format("truetype")}.c-info-header .info-header--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:info-header-iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px);transition:height .2s linear,max-height .2s linear}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .info-header--iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s linear}.c-info-header [compact-hidden]{max-height:160px;transition:max-height .2s ease-in-out,opacity .2s linear}.c-info-header.is-compact [compact-hidden]{max-height:0!important;opacity:0!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
1
+ .c-info-header{background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);padding:0 16px}@font-face{font-family:info-header-iconfont;src:url(info-header-font.ttf) format("truetype")}.c-info-header .info-header--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:info-header-iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__content{align-items:center;display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 0;transition:height .2s linear,padding .2s linear}.c-info-header__content [compact-hidden]{max-height:160px;transition:max-height .2s ease-in-out,opacity .2s linear}.c-info-header__content.is-compact [compact-hidden]{max-height:0!important;opacity:0!important}.c-info-header__content.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px);transition:height .2s linear,max-height .2s linear}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .info-header--iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s linear}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
@@ -1 +1,2 @@
1
- export * from './src/utils';
1
+ import Insurance from './src/insurance';
2
+ export default Insurance;
@@ -1 +1 @@
1
- export{Insurance}from"./src/utils/insurance.js";
1
+ import r from"./src/insurance.js";export{default}from"./src/insurance.js";
@@ -1,161 +1,165 @@
1
1
  /**
2
2
  * 交易命令映射
3
3
  */
4
- export declare const transcmdMapping: {
5
- readonly sk: 100210;
6
- readonly ghdj: 100401;
7
- readonly ghqx: 100403;
8
- readonly mzjs: 100407;
9
- readonly beforemzjs: 100406;
10
- readonly mztf: 100408;
11
- readonly zyjs: 100613;
12
- readonly qxzyjs: 100614;
13
- readonly zydj: 100601;
14
- readonly qxzydj: 100603;
15
- readonly zydjzzf: 100605;
16
- readonly mzghconfirm: 100415;
17
- readonly ghdjcg: 100411;
18
- readonly ghdjsb: 100412;
19
- readonly mzjscg: 100409;
20
- readonly mzjssb: 100410;
21
- readonly mztfcg: 100413;
22
- readonly mztfsb: 100414;
23
- readonly newdhyk: 110021;
24
- readonly newdsfz: 110041;
25
- readonly fastReport: 100000;
26
- readonly pos: 100000;
27
- readonly yjjrefund: 100622;
28
- readonly ybxxcx: 100212;
29
- readonly ybdz: 100209;
30
- };
31
- export declare const HIS_INSURANCE_PARAMS: {
32
- readonly msgindex: "";
33
- readonly checkoutinfo: "";
34
- readonly parmsJson: {
35
- readonly transtime: "";
36
- readonly transtype: "YB0000";
37
- readonly interfaceid: "0";
38
- readonly serialnumber: "";
39
- readonly operatorcode: "10086";
40
- readonly operatorname: "赵";
41
- readonly transcmd: "";
42
- readonly transdata: {
43
- readonly iar1: {
44
- readonly acf01: "0";
45
- readonly iar01: "";
46
- readonly vaa01: "";
47
- readonly vaa07: "";
48
- readonly iaa01: "";
49
- readonly iab02: "";
50
- readonly iak04: "";
51
- readonly iak05: "";
52
- readonly iak06: "";
53
- readonly iar10: "";
54
- readonly iar11: "";
55
- readonly iar12: "";
56
- readonly iar13: "";
57
- readonly iar14: "";
58
- readonly iar15: "";
59
- readonly iar16: "";
60
- readonly iar17: "";
61
- readonly iar18: "";
62
- readonly iar19: "";
63
- readonly iar20: "";
64
- readonly iar21: "";
65
- readonly iar22: "";
66
- readonly iai03: "";
67
- readonly iar24: "";
68
- readonly iar25: "";
69
- readonly iar26: "";
70
- readonly iar27: "";
71
- readonly iar28: "";
72
- readonly iar29: "";
73
- readonly iar30: "";
74
- readonly iar31: "";
75
- readonly iar32: "";
76
- readonly iar33: "";
77
- readonly iar34: "";
78
- readonly iar35: "";
79
- readonly iac02: "";
80
- readonly iac03: "";
81
- readonly iad03: "";
82
- readonly iad04: "";
83
- readonly iar40: "";
84
- readonly iar41: "";
85
- readonly iak22: "0";
86
- readonly iar43: "";
87
- readonly iar44: "";
88
- readonly iar45: "";
89
- readonly cli_iai03: "";
90
- readonly iar46: "";
91
- readonly iar47: "";
92
- readonly iar48: "";
93
- readonly iar49: "";
94
- readonly iar50: "";
95
- readonly iar51: "";
96
- readonly iar52: "";
97
- readonly iar53: "";
98
- readonly iar54: "";
99
- readonly iar55: "";
100
- readonly iar56: "";
101
- readonly iar57: "";
102
- readonly iar58: "";
103
- readonly iar59: "";
104
- readonly iar60: "";
105
- readonly iar61: "";
106
- readonly iar62: "";
107
- readonly iar63: "";
108
- readonly iar64: "";
109
- readonly iar65: "";
110
- readonly iar66: "";
111
- readonly iar67: "";
112
- readonly iar68: "";
113
- readonly iar69: "";
114
- readonly iar70: "";
115
- readonly iar71: "";
116
- readonly iar72: "";
117
- readonly iar73: "";
118
- readonly iar74: "";
119
- readonly iar75: "";
4
+ export declare const transcmdMapping: Readonly<{
5
+ sk: 100210;
6
+ ghdj: 100401;
7
+ ghqx: 100403;
8
+ mzjs: 100407;
9
+ beforemzjs: 100406;
10
+ mztf: 100408;
11
+ zyjs: 100613;
12
+ qxzyjs: 100614;
13
+ zydj: 100601;
14
+ qxzydj: 100603;
15
+ zydjzzf: 100605;
16
+ mzghconfirm: 100415;
17
+ ghdjcg: 100411;
18
+ ghdjsb: 100412;
19
+ mzjscg: 100409;
20
+ mzjssb: 100410;
21
+ mztfcg: 100413;
22
+ mztfsb: 100414;
23
+ newdhyk: 110021;
24
+ newdsfz: 110041;
25
+ fastReport: 100000;
26
+ pos: 100000;
27
+ yjjrefund: 100622;
28
+ ybxxcx: 100212;
29
+ ybdz: 100209;
30
+ }>;
31
+ export declare const HIS_INSURANCE_PARAMS: Readonly<{
32
+ msgindex: "";
33
+ checkoutinfo: "";
34
+ parmsJson: {
35
+ transtime: string;
36
+ transtype: string;
37
+ interfaceid: string;
38
+ serialnumber: string;
39
+ operatorcode: string;
40
+ operatorname: string;
41
+ transcmd: string;
42
+ transdata: {
43
+ iar1: {
44
+ acf01: string;
45
+ iar01: string;
46
+ vaa01: string;
47
+ vaa07: string;
48
+ iaa01: string;
49
+ iab02: string;
50
+ iak04: string;
51
+ iak05: string;
52
+ iak06: string;
53
+ iar10: string;
54
+ iar11: string;
55
+ iar12: string;
56
+ iar13: string;
57
+ iar14: string;
58
+ iar15: string;
59
+ iar16: string;
60
+ iar17: string;
61
+ iar18: string;
62
+ iar19: string;
63
+ iar20: string;
64
+ iar21: string;
65
+ iar22: string;
66
+ iai03: string;
67
+ iar24: string;
68
+ iar25: string;
69
+ iar26: string;
70
+ iar27: string;
71
+ iar28: string;
72
+ iar29: string;
73
+ iar30: string;
74
+ iar31: string;
75
+ iar32: string;
76
+ iar33: string;
77
+ iar34: string;
78
+ iar35: string;
79
+ iac02: string;
80
+ iac03: string;
81
+ iad03: string;
82
+ iad04: string;
83
+ iar40: string;
84
+ iar41: string;
85
+ iak22: string;
86
+ iar43: string;
87
+ iar44: string;
88
+ iar45: string;
89
+ cli_iai03: string;
90
+ iar46: string;
91
+ iar47: string;
92
+ iar48: string;
93
+ iar49: string;
94
+ iar50: string;
95
+ iar51: string;
96
+ iar52: string;
97
+ iar53: string;
98
+ iar54: string;
99
+ iar55: string;
100
+ iar56: string;
101
+ iar57: string;
102
+ iar58: string;
103
+ iar59: string;
104
+ iar60: string;
105
+ iar61: string;
106
+ iar62: string;
107
+ iar63: string;
108
+ iar64: string;
109
+ iar65: string;
110
+ iar66: string;
111
+ iar67: string;
112
+ iar68: string;
113
+ iar69: string;
114
+ iar70: string;
115
+ iar71: string;
116
+ iar72: string;
117
+ iar73: string;
118
+ iar74: string;
119
+ iar75: string;
120
120
  };
121
- readonly personinfo: {
122
- readonly location: 0;
123
- readonly ptname: "";
124
- readonly sex: "";
125
- readonly birthday: "";
126
- readonly age: "";
127
- readonly idnumber: "";
128
- readonly folk: "";
129
- readonly address: "";
130
- readonly pttype: "";
131
- readonly ownpay: "0";
121
+ personinfo: {
122
+ location: number;
123
+ ptname: string;
124
+ sex: string;
125
+ birthday: string;
126
+ age: string;
127
+ idnumber: string;
128
+ folk: string;
129
+ address: string;
130
+ pttype: string;
131
+ ownpay: string;
132
132
  };
133
133
  };
134
- readonly transsystem: "12";
135
- readonly transchannel: "100";
136
- readonly verifycode: "";
134
+ transsystem: string;
135
+ transchannel: string;
136
+ verifycode: string;
137
137
  };
138
- readonly error: true;
139
- readonly catch: true;
140
- readonly loading: false;
141
- };
142
- export declare const CONFIG_MAP: {
143
- readonly type: "sk";
144
- readonly location: null;
145
- readonly vaa01: "";
146
- readonly vaa07: "";
147
- readonly iar1Json: {};
148
- readonly personinfo: {};
149
- readonly parmsKey: "VAC01";
150
- readonly money: "";
151
- readonly interfaceid: "0";
152
- readonly operatorname: "";
153
- readonly operatorcode: "";
154
- readonly newhoinsurance: "";
155
- readonly message: "";
156
- readonly data: {};
157
- readonly transtype: null;
158
- readonly transchannel: null;
159
- readonly loginCode: "7777";
160
- readonly needLogin: false;
161
- };
138
+ error: true;
139
+ catch: true;
140
+ loading: false;
141
+ }>;
142
+ export declare const CONFIG_MAP: Readonly<{
143
+ type: "sk";
144
+ location: null;
145
+ vaa01: "";
146
+ vaa07: "";
147
+ iaa01: null;
148
+ iar1Json: {};
149
+ personinfo: {};
150
+ parmsKey: "VAC01";
151
+ money: "";
152
+ interfaceid: "0";
153
+ operatorname: "";
154
+ operatorcode: "";
155
+ newhoinsurance: "";
156
+ message: "";
157
+ data: {};
158
+ transtype: null;
159
+ transchannel: null;
160
+ transsystem: null;
161
+ loginCode: "7777";
162
+ needLogin: false;
163
+ returncodes: string[];
164
+ }>;
165
+ export declare const INSURANCE_URL: string;
@@ -1 +1 @@
1
- const a={sk:100210,ghdj:100401,ghqx:100403,mzjs:100407,beforemzjs:100406,mztf:100408,zyjs:100613,qxzyjs:100614,zydj:100601,qxzydj:100603,zydjzzf:100605,mzghconfirm:100415,ghdjcg:100411,ghdjsb:100412,mzjscg:100409,mzjssb:100410,mztfcg:100413,mztfsb:100414,newdhyk:110021,newdsfz:110041,fastReport:1e5,pos:1e5,yjjrefund:100622,ybxxcx:100212,ybdz:100209},r={msgindex:"",checkoutinfo:"",parmsJson:{transtime:"",transtype:"YB0000",interfaceid:"0",serialnumber:"",operatorcode:"10086",operatorname:"赵",transcmd:"",transdata:{iar1:{acf01:"0",iar01:"",vaa01:"",vaa07:"",iaa01:"",iab02:"",iak04:"",iak05:"",iak06:"",iar10:"",iar11:"",iar12:"",iar13:"",iar14:"",iar15:"",iar16:"",iar17:"",iar18:"",iar19:"",iar20:"",iar21:"",iar22:"",iai03:"",iar24:"",iar25:"",iar26:"",iar27:"",iar28:"",iar29:"",iar30:"",iar31:"",iar32:"",iar33:"",iar34:"",iar35:"",iac02:"",iac03:"",iad03:"",iad04:"",iar40:"",iar41:"",iak22:"0",iar43:"",iar44:"",iar45:"",cli_iai03:"",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:""},personinfo:{location:0,ptname:"",sex:"",birthday:"",age:"",idnumber:"",folk:"",address:"",pttype:"",ownpay:"0"}},transsystem:"12",transchannel:"100",verifycode:""},error:!0,catch:!0,loading:!1},i={type:"sk",location:null,vaa01:"",vaa07:"",iar1Json:{},personinfo:{},parmsKey:"VAC01",money:"",interfaceid:"0",operatorname:"",operatorcode:"",newhoinsurance:"",message:"",data:{},transtype:null,transchannel:null,loginCode:"7777",needLogin:!1};export{i as CONFIG_MAP,r as HIS_INSURANCE_PARAMS,a as transcmdMapping};
1
+ const a=Object.freeze({sk:100210,ghdj:100401,ghqx:100403,mzjs:100407,beforemzjs:100406,mztf:100408,zyjs:100613,qxzyjs:100614,zydj:100601,qxzydj:100603,zydjzzf:100605,mzghconfirm:100415,ghdjcg:100411,ghdjsb:100412,mzjscg:100409,mzjssb:100410,mztfcg:100413,mztfsb:100414,newdhyk:110021,newdsfz:110041,fastReport:1e5,pos:1e5,yjjrefund:100622,ybxxcx:100212,ybdz:100209}),r=Object.freeze({msgindex:"",checkoutinfo:"",parmsJson:{transtime:"",transtype:"YB0000",interfaceid:"0",serialnumber:"",operatorcode:"10086",operatorname:"赵",transcmd:"",transdata:{iar1:{acf01:"0",iar01:"",vaa01:"",vaa07:"",iaa01:"",iab02:"",iak04:"",iak05:"",iak06:"",iar10:"",iar11:"",iar12:"",iar13:"",iar14:"",iar15:"",iar16:"",iar17:"",iar18:"",iar19:"",iar20:"",iar21:"",iar22:"",iai03:"",iar24:"",iar25:"",iar26:"",iar27:"",iar28:"",iar29:"",iar30:"",iar31:"",iar32:"",iar33:"",iar34:"",iar35:"",iac02:"",iac03:"",iad03:"",iad04:"",iar40:"",iar41:"",iak22:"0",iar43:"",iar44:"",iar45:"",cli_iai03:"",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:""},personinfo:{location:0,ptname:"",sex:"",birthday:"",age:"",idnumber:"",folk:"",address:"",pttype:"",ownpay:"0"}},transsystem:"12",transchannel:"100",verifycode:""},error:!0,catch:!0,loading:!1}),i=Object.freeze({type:"sk",location:null,vaa01:"",vaa07:"",iaa01:null,iar1Json:{},personinfo:{},parmsKey:"VAC01",money:"",interfaceid:"0",operatorname:"",operatorcode:"",newhoinsurance:"",message:"",data:{},transtype:null,transchannel:null,transsystem:null,loginCode:"7777",needLogin:!1,returncodes:["0","1"]}),e="http://127.0.0.1:8031/HOInterfaceSvr";export{i as CONFIG_MAP,r as HIS_INSURANCE_PARAMS,e as INSURANCE_URL,a as transcmdMapping};
@@ -0,0 +1,29 @@
1
+ import { AnyObject } from '../../../../es/shared/types';
2
+ import { InsuranceType } from './types';
3
+ export default class Insurance {
4
+ private readonly webview;
5
+ private configMap;
6
+ private initParamsMap;
7
+ private currentMessageHandler;
8
+ constructor(params?: {
9
+ selfWindow?: any;
10
+ });
11
+ private readonly messageHandlerQueue;
12
+ private messageHandler;
13
+ postMessage<T extends InsuranceType.ExecType>(data: {
14
+ exec: T;
15
+ data: string;
16
+ }): Promise<InsuranceType.PostMessageResult<T>>;
17
+ destroy(): void;
18
+ private login;
19
+ private HOInterfaceSvr;
20
+ private initConfig;
21
+ private initParams;
22
+ getInsuranceInfoPromise(config: AnyObject): Promise<any>;
23
+ getInsuranceInfo(config: AnyObject, successFn?: (payload: any) => void, failureFn?: (error: any) => void): void;
24
+ private getDhykParams;
25
+ private getSkParams;
26
+ get operatorCode(): "" | null;
27
+ get operatorName(): "" | null;
28
+ private getHisInsuranceParams;
29
+ }
@@ -0,0 +1 @@
1
+ import{jsonParse as s}from"../../../shared/utils/index.js";import{isString as e}from"lodash-es";import{insuranceLog as t,getDataMessageByData as a,getErrorMessageByType as n,getTranstime as r,getSerialNumber as i}from"./utils/index.js";import{INSURANCE_URL as o,CONFIG_MAP as c,transcmdMapping as d,HIS_INSURANCE_PARAMS as h}from"./constants/index.js";import m from"axios";var p;class g{constructor(s){var e,t;this.webview=null==(p=window.chrome)?void 0:p.webview,this.configMap=null,this.initParamsMap=new Map([[["newdhyk","newdsfz"],s=>this.getDhykParams(s)],[["sk"],s=>this.getSkParams(s)]]),this.currentMessageHandler=null,this.messageHandlerQueue=[],(null==s?void 0:s.selfWindow)&&(this.webview=null==(t=null==(e=null==s?void 0:s.selfWindow)?void 0:e.chrome)?void 0:t.webview),this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler))}messageHandler(a){const n=e(a.data)?s(a.data)||{}:a.data;if(!n||["hisyb","login"].includes(n.exec))return t("当前回执不是hisyb消息");const r=this.messageHandlerQueue[0];if(!r)return t("当前回执",a,"没有可用的handler");const{resolve:i,reject:o,transcmd:c}=r,{transcmd:d}=n.res||{};if(c&&d&&c!==d)return t("交易命令不相等,当前transcmd",c,"返回transcmd",d);try{this.messageHandlerQueue.shift(),i(n)}catch(s){o(s)}}async postMessage(e){return this.webview&&e?new Promise(((t,a)=>{var n;this.messageHandlerQueue.push({resolve:t,reject:a,transcmd:null==(n=s(e.data))?void 0:n.transcmd}),this.webview.postMessage(e)})).then((s=>s&&s.result&&s.exec===e.exec?s:Promise.reject())):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=null)}login(){const{loginCode:s=""}=this.configMap||{};return this.postMessage({exec:"login",data:s})}async HOInterfaceSvr(s){const{type:e,needLogin:t}=this.configMap||{};try{if(this.webview){t&&await this.login();return(await this.postMessage({exec:"hisyb",data:JSON.stringify(s.parmsJson)})).res}const e=await m.post(o,JSON.stringify(s.parmsJson));return a(e.data)}catch(s){return Promise.reject(n(e))}}initConfig(s){this.configMap=Object.assign({},c,s)}initParams(){const{type:s,transtype:e,interfaceid:t,iaa01:a}=this.configMap||{},n=this.getHisInsuranceParams();Object.assign(n.parmsJson,{transcmd:s&&d[s]||s,interfaceid:t||a,transtype:e||"SYSTEM"});const r=[...this.initParamsMap].find((([e])=>e.includes(s)));if(r){const[,s]=r;s(n)}else Object.assign(n.parmsJson,{transdata:this.configMap&&this.configMap.data});return n}getInsuranceInfoPromise(s){return this.initConfig(s),this.HOInterfaceSvr(this.initParams())}getInsuranceInfo(s,e,t){this.getInsuranceInfoPromise(s).then((s=>e&&e(s)),(s=>t&&t(s)))}getDhykParams(s){const{type:e}=this.configMap||{};s.parmsJson={...s.parmsJson,transtype:"IDCARD",interfaceid:"0",transdata:{...s.parmsJson.transdata,readtype:"newdhyk"===e?"1":"2"}}}getSkParams(s){const{iar1Json:e,personinfo:t}=this.configMap||{};s.parmsJson={...s.parmsJson,transdata:{...s.parmsJson.transdata,iar1:{...s.parmsJson.transdata.iar1,...e},personinfo:{...s.parmsJson.transdata.personinfo,...t}}}}get operatorCode(){return this.configMap&&this.configMap.operatorcode}get operatorName(){return this.configMap&&this.configMap.operatorname}getHisInsuranceParams(){const{operatorcode:s,operatorname:e,location:t,transchannel:a,transsystem:n}=this.configMap||{};return{...h,parmsJson:{...h.parmsJson,transtime:r(),serialnumber:i(),operatorcode:s,operatorname:e,location:t,transchannel:a||h.parmsJson.transchannel,transsystem:n||"12"}}}}export{g as default};
@@ -0,0 +1,27 @@
1
+ import { Func } from '../../../../../es/shared/types';
2
+ export declare namespace InsuranceType {
3
+ type ExecType = 'hisyb' | 'login';
4
+ type IHOWindow = Window & {
5
+ chrome: {
6
+ webview: {
7
+ addEventListener: (type: string, handler: Func) => void;
8
+ removeEventListener: (type: string, handler: Func) => void;
9
+ postMessage: (payload: any) => void;
10
+ };
11
+ };
12
+ };
13
+ type MessageDataType = {
14
+ exec: ExecType;
15
+ res: {
16
+ transcmd: string;
17
+ };
18
+ };
19
+ type MessageType = {
20
+ data: string | MessageDataType;
21
+ };
22
+ type PostMessageResult<T extends ExecType> = {
23
+ result: any;
24
+ exec: T;
25
+ res: any;
26
+ };
27
+ }
@@ -1 +1,9 @@
1
- export * from './insurance';
1
+ import { AnyObject } from '../../../../../es/shared/types';
2
+ import { CONFIG_MAP } from '../constants';
3
+ export declare function getSerialNumber(): string;
4
+ export declare function getTranstime(): string;
5
+ export declare function pad2(n: number): string | number;
6
+ export declare function generateTimeRequestNumber(): string;
7
+ export declare function insuranceLog(...messages: any[]): void;
8
+ export declare function getErrorMessageByType(type?: string): string;
9
+ export declare function getDataMessageByData(_data: string | AnyObject, configMap?: typeof CONFIG_MAP): any;
@@ -1 +1 @@
1
- export{Insurance}from"./insurance.js";
1
+ import{isString as e}from"lodash-es";function n(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function t(){return o()+parseInt(1e3*Math.random()+"")}function r(e){return e<10?"0"+e:e}function o(){const e=new Date;return e.getFullYear().toString()+r(e.getMonth()+1)+r(e.getDate())+r(e.getHours())+r(e.getMinutes())+r(e.getSeconds())}function a(...e){return console.log("[INSURANCE-SDK]: ",...e)}const d={fastReport:"打印服务异常",newdsfz:"身份证读卡接口服务异常",newdhyk:"会员读卡接口服务异常",pos:"pos接口服务异常"};function u(e){return e&&d[e]||"请检查医保服务是否正常"}function s(n,t){var r;e(n)&&(n=JSON.parse(n));const o=n,{type:a="",returncodes:d=[]}=t||{};if(d.includes(null!=(r=o.returncode)?r:"")){if("newdhyk"===a)return o.returndata.cardinfo&&o.returndata.cardinfo.cardno?o.returndata.cardinfo:Promise.reject("未获取到卡号");if("newdsfz"===a){let n=null,t=null;return e(o.returndata)?(n=JSON.parse(o.returndata),t=n.cardinfo):t=o.returndata.cardinfo,t={...t,Sex:t.sex,Sex_Code:t.sex_code,Name:t.name,Age:t.age,Age_Code:t.age_code,Age_Name:t.age_name,BirthDate:t.birthdate,Nation_Name:t.nation_name,Nation_Code:t.nation_code,Address:t.address,CardNo:t.cardno,HasPhoto:t.hasphoto},t}return o}return Promise.reject(a+"--"+o.returnmsg)}export{o as generateTimeRequestNumber,s as getDataMessageByData,u as getErrorMessageByType,n as getSerialNumber,t as getTranstime,a as insuranceLog,r as pad2};