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.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +10 -8
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/fabric-chart/index.d.ts +3 -20
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -20
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +2 -18
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +2 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +2 -18
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +2 -4
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -3
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +2 -18
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +4 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +12 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +13 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +7 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +9 -9
- package/es/components/form-config/src/FormConfig.vue.d.ts +9 -9
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/select.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +1 -0
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/src/types/index.d.ts +59 -2
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +1 -0
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +2 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -2
- package/es/components/info-header/src/InfoHeader.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/insurance-sdk/index.d.ts +2 -1
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.d.ts +158 -154
- package/es/components/insurance-sdk/src/constants/index.js +1 -1
- package/es/components/insurance-sdk/src/insurance.d.ts +29 -0
- package/es/components/insurance-sdk/src/insurance.js +1 -0
- package/es/components/insurance-sdk/src/types/index.d.ts +27 -0
- package/es/components/insurance-sdk/src/types/index.js +1 -0
- package/es/components/insurance-sdk/src/utils/index.d.ts +9 -1
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/multi-chat/index.d.ts +1023 -0
- package/es/components/multi-chat/index.js +1 -0
- package/es/components/multi-chat/src/MultiChat.vue.d.ts +1005 -0
- package/es/components/multi-chat/src/MultiChat.vue.js +1 -0
- package/es/components/multi-chat/src/MultiChat.vue2.js +1 -0
- package/es/components/multi-chat/src/api/index.d.ts +8 -0
- package/es/components/multi-chat/src/api/index.js +1 -0
- package/es/components/multi-chat/src/components/ChatFooter.vue.d.ts +17 -0
- package/es/components/multi-chat/src/components/ChatFooter.vue.js +1 -0
- package/es/components/multi-chat/src/components/ChatFooter.vue2.js +1 -0
- package/es/components/multi-chat/src/components/ChatHeader.vue.d.ts +7 -0
- package/es/components/multi-chat/src/components/ChatHeader.vue.js +1 -0
- package/es/components/multi-chat/src/components/ChatHeader.vue2.js +1 -0
- package/es/components/multi-chat/src/components/ChatMain.vue.d.ts +13 -0
- package/es/components/multi-chat/src/components/ChatMain.vue.js +1 -0
- package/es/components/multi-chat/src/components/ChatMain.vue2.js +1 -0
- package/es/components/multi-chat/src/components/SiderList.vue.d.ts +41 -0
- package/es/components/multi-chat/src/components/SiderList.vue.js +1 -0
- package/es/components/multi-chat/src/components/SiderList.vue2.js +1 -0
- package/es/components/multi-chat/src/utils/chatSock.d.ts +28 -0
- package/es/components/multi-chat/src/utils/chatSock.js +1 -0
- package/es/components/multi-chat/style/index.css +1 -0
- package/es/components/scale-view/index.d.ts +29 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +29 -0
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +4 -0
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +2 -1
- package/es/components/shortcut-setter/index.d.ts +2 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +12 -0
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -1
- package/es/components/steps-wheel/index.d.ts +27 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +27 -0
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/steps-wheel/src/constants/index.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +5 -2
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +5 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +4 -2
- package/es/components/insurance-sdk/src/utils/insurance.d.ts +0 -260
- package/es/components/insurance-sdk/src/utils/insurance.js +0 -1
package/es/components/index.d.ts
CHANGED
|
@@ -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
|
};
|
package/es/components/index.js
CHANGED
|
@@ -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
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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{
|
|
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
|
-
|
|
1
|
+
import Insurance from './src/insurance';
|
|
2
|
+
export default Insurance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
export declare const HIS_INSURANCE_PARAMS: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
transsystem: string;
|
|
135
|
+
transchannel: string;
|
|
136
|
+
verifycode: string;
|
|
137
137
|
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
export declare const CONFIG_MAP: {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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};
|