sun-biz 0.0.4-beta.13 → 0.0.4-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,12 @@ interface TagInfo {
5
5
  tagId: string;
6
6
  tagNameDisplay: string;
7
7
  sort: number;
8
+ tagList?: {
9
+ tagCssId: string;
10
+ cssTypeCode: string;
11
+ cssTypeDesc: string;
12
+ cssValue: string;
13
+ }[];
8
14
  }
9
15
  /**
10
16
  * 标签分组详情
@@ -11,3 +11,4 @@ export { FormDesignRender } from './form-design-render/index.ts';
11
11
  export { CopyTextWithTooltip } from './copy-text-with-tooltip/index.ts';
12
12
  export { DictSelect, FlagSelect, HospitalSelect, TagSelect, } from './biz-select/index.ts';
13
13
  export { DmlButton } from './dml-button/index.ts';
14
+ export { ProAvatar } from './pro-avatar/index.ts';
@@ -2367,13 +2367,6 @@ const SELECTION = 'selection';
2367
2367
  },
2368
2368
  dragTipsClassName: {
2369
2369
  default: ''
2370
- },
2371
- rowClassName: {
2372
- type: [
2373
- Function,
2374
- String
2375
- ],
2376
- default: ''
2377
2370
  }
2378
2371
  },
2379
2372
  emits: [
@@ -2438,34 +2431,6 @@ const SELECTION = 'selection';
2438
2431
  // 安全获取childrenKey
2439
2432
  let childrenKey = getSafeChildrenKeyFromAttrs(attrs);
2440
2433
  if (childrenKey) {
2441
- const getPathByIndex = (targetIndex)=>{
2442
- let path = '';
2443
- let count = -1;
2444
- function dfs(arr, parent) {
2445
- for(let i = 0; i < arr.length; i++){
2446
- count++;
2447
- const curPath = parent ? `${parent}-${i}` : `${i}`;
2448
- if (count === targetIndex) {
2449
- path = curPath;
2450
- return true;
2451
- }
2452
- if (childrenKey && Array.isArray(arr[i][childrenKey])) {
2453
- if (dfs(arr[i][childrenKey], curPath)) return true;
2454
- }
2455
- }
2456
- return false;
2457
- }
2458
- dfs(data, '');
2459
- return path;
2460
- };
2461
- const newPath = getPathByIndex(newIndex);
2462
- const oldPath = getPathByIndex(oldIndex);
2463
- const getParent = (p)=>p.split('-').slice(0, -1).join('-');
2464
- if (getParent(newPath) !== getParent(oldPath)) {
2465
- __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning('暂不支持跨层级拖拽配置');
2466
- if (evt && initialHTML) evt.from.innerHTML = initialHTML;
2467
- return [];
2468
- }
2469
2434
  let { result, curIndex: newCurIndex, curData: newCurData } = getDragSortData(newIndex, data, {
2470
2435
  startIndex: -1
2471
2436
  }, {
@@ -2480,11 +2445,6 @@ const SELECTION = 'selection';
2480
2445
  curIndex: 0,
2481
2446
  curData: {}
2482
2447
  }, childrenKey);
2483
- if (newCurData.belongGroupElementId !== oldCurData.belongGroupElementId) {
2484
- __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning('暂不支持跨层级拖拽配置');
2485
- if (evt && initialHTML) evt.from.innerHTML = initialHTML;
2486
- return [];
2487
- }
2488
2448
  const [removedItem] = result.splice(oldCurIndex, 1);
2489
2449
  result.splice(newCurIndex, 0, removedItem);
2490
2450
  data = result;
@@ -4544,6 +4504,8 @@ const women_patient_exports_ = women_patientvue_type_script_setup_true_lang_ts;
4544
4504
  const tag_selectvue_type_script_lang_ts_setup_true_hoisted_1 = {
4545
4505
  class: "flex flex-wrap gap-2"
4546
4506
  };
4507
+ const BACKGROUND_COLOR = 'BACKGROUND_COLOR';
4508
+ const FONT_COLOR = 'FONT_COLOR';
4547
4509
  const SELECT_WIDTH = 15; // rem
4548
4510
  const TAG_MARGIN = 1; // 1rem
4549
4511
  /* ESM default export */ const tag_selectvue_type_script_lang_ts_setup_true = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
@@ -4587,7 +4549,11 @@ const TAG_MARGIN = 1; // 1rem
4587
4549
  const map = new Map();
4588
4550
  tableData.value.forEach((group)=>{
4589
4551
  group.tagList.forEach((tag)=>{
4590
- map.set(tag.tagId, tag.tagNameDisplay);
4552
+ map.set(tag.tagId, {
4553
+ tagNameDisplay: tag.tagNameDisplay,
4554
+ background: (tag?.tagList || []).find((item)=>item.cssTypeCode === BACKGROUND_COLOR)?.cssValue || '',
4555
+ color: (tag?.tagList || []).find((item)=>item.cssTypeCode === FONT_COLOR)?.cssValue || ''
4556
+ });
4591
4557
  });
4592
4558
  });
4593
4559
  return map;
@@ -4613,7 +4579,7 @@ const TAG_MARGIN = 1; // 1rem
4613
4579
  size: props.tagSize,
4614
4580
  disableTransitions: true,
4615
4581
  class: 'mr-4'
4616
- }, ()=>allTagsMap.value.get(item) || item);
4582
+ }, ()=>allTagsMap.value.get(item)?.tagNameDisplay || item);
4617
4583
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.render)(vnode, tagContainer);
4618
4584
  const width = tagContainer.firstElementChild?.getBoundingClientRect().width || 0;
4619
4585
  document.body.removeChild(tagContainer);
@@ -4671,7 +4637,7 @@ const TAG_MARGIN = 1; // 1rem
4671
4637
  let [, result] = await queryTagGroupByExampleV1({
4672
4638
  bizIdTypeCode: props.bizIdTypeCode,
4673
4639
  bizId: props.bizId,
4674
- enabledFlag: 1
4640
+ enabledFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES
4675
4641
  });
4676
4642
  loading.value = false;
4677
4643
  if (result?.success) {
@@ -4723,7 +4689,7 @@ const TAG_MARGIN = 1; // 1rem
4723
4689
  onClose: ($event)=>handleClose(item)
4724
4690
  }, {
4725
4691
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
4726
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item) || item), 1)
4692
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
4727
4693
  ]),
4728
4694
  _: 2
4729
4695
  }, 1032, [
@@ -4761,16 +4727,21 @@ const TAG_MARGIN = 1; // 1rem
4761
4727
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
4762
4728
  ] : []).slice(realMaxNum.value), (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
4763
4729
  key: item,
4730
+ style: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeStyle)({
4731
+ background: allTagsMap.value.get(item)?.background,
4732
+ color: allTagsMap.value.get(item)?.color
4733
+ }),
4764
4734
  closable: !props.disabled,
4765
4735
  size: props.tagSize,
4766
4736
  "disable-transitions": true,
4767
4737
  onClose: ($event)=>handleClose(item)
4768
4738
  }, {
4769
4739
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
4770
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item) || item), 1)
4740
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
4771
4741
  ]),
4772
4742
  _: 2
4773
4743
  }, 1032, [
4744
+ "style",
4774
4745
  "closable",
4775
4746
  "size",
4776
4747
  "onClose"
@@ -4884,9 +4855,12 @@ const _hoisted_13 = {
4884
4855
  class: "w-full flex"
4885
4856
  };
4886
4857
  const _hoisted_14 = {
4887
- class: "flex-1"
4858
+ class: "text-[#555]"
4888
4859
  };
4889
4860
  const _hoisted_15 = {
4861
+ class: "flex-1"
4862
+ };
4863
+ const _hoisted_16 = {
4890
4864
  key: 1
4891
4865
  };
4892
4866
  const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
@@ -4900,7 +4874,11 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
4900
4874
  default: true
4901
4875
  }
4902
4876
  },
4903
- setup (__props, { expose: __expose }) {
4877
+ emits: [
4878
+ "avatarClick"
4879
+ ],
4880
+ setup (__props, { expose: __expose, emit: __emit }) {
4881
+ const emits = __emit;
4904
4882
  const BIZ_ID_TYPE_CODE_MAP = {
4905
4883
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.PATIENT]: PERSON,
4906
4884
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.REGISTRATION]: PERSON,
@@ -4928,9 +4906,9 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
4928
4906
  case PERSON:
4929
4907
  tagBizId.value = data.personId;
4930
4908
  break;
4931
- // case PERSON:
4932
- // tagBizId.value = data.inEncounterId;
4933
- // break;
4909
+ case __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE.IENC_ENCOUNTER:
4910
+ tagBizId.value = data.inEncounterId;
4911
+ break;
4934
4912
  default:
4935
4913
  tagBizId.value = data.personId;
4936
4914
  }
@@ -5002,22 +4980,27 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5002
4980
  }, [
5003
4981
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1, [
5004
4982
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_2, [
5005
- bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).MAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(man_patient, {
5006
- key: 0,
5007
- class: "rounded-full",
5008
- width: 32,
5009
- height: 32
5010
- })) : bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).WOMAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(women_patient, {
5011
- key: 1,
5012
- class: "rounded-full",
5013
- width: 32,
5014
- height: 32
5015
- })) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(default_patient, {
5016
- key: 2,
5017
- width: 32,
5018
- height: 32,
5019
- class: "rounded-full"
5020
- })),
4983
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
4984
+ class: "cursor-pointer",
4985
+ onClick: _cache[0] || (_cache[0] = ($event)=>emits('avatarClick'))
4986
+ }, [
4987
+ bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).MAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(man_patient, {
4988
+ key: 0,
4989
+ class: "rounded-full",
4990
+ width: 32,
4991
+ height: 32
4992
+ })) : bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).WOMAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(women_patient, {
4993
+ key: 1,
4994
+ class: "rounded-full",
4995
+ width: 32,
4996
+ height: 32
4997
+ })) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(default_patient, {
4998
+ key: 2,
4999
+ width: 32,
5000
+ height: 32,
5001
+ class: "rounded-full"
5002
+ }))
5003
+ ]),
5021
5004
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3, [
5022
5005
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4, [
5023
5006
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
@@ -5096,21 +5079,19 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5096
5079
  ])
5097
5080
  }, [
5098
5081
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", _hoisted_13, [
5099
- _cache[1] || (_cache[1] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", {
5100
- class: "text-[#555]"
5101
- }, "标签:", -1)),
5102
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, [
5082
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签"), 1),
5083
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
5103
5084
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) && tagIds.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(tag_select, {
5104
5085
  key: 0,
5105
5086
  modelValue: tagIds.value,
5106
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tagIds.value = $event),
5087
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>tagIds.value = $event),
5107
5088
  tagSize: "default",
5108
5089
  bizIdTypeCode: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode),
5109
5090
  disabled: true
5110
5091
  }, null, 8, [
5111
5092
  "modelValue",
5112
5093
  "bizIdTypeCode"
5113
- ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_15, "--"))
5094
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_16, "--"))
5114
5095
  ])
5115
5096
  ])
5116
5097
  ], 2)
@@ -5513,6 +5494,12 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
5513
5494
  * type 数据源格式类型代码
5514
5495
  * @param [type='BASE64']
5515
5496
  */ function useWebPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5497
+ const isFirefox = navigator.userAgent.includes("Firefox");
5498
+ if (isFirefox) {
5499
+ // Firefox 的特殊处理
5500
+ handleFirefoxPrint(content, type);
5501
+ return;
5502
+ }
5516
5503
  // 创建隐藏的iframe
5517
5504
  const iframe = document.createElement("iframe");
5518
5505
  iframe.style.position = "fixed";
@@ -5657,6 +5644,40 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
5657
5644
  // 将容器添加到 body
5658
5645
  document.body.appendChild(container);
5659
5646
  }
5647
+ async function handleFirefoxPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5648
+ // 创建一个临时 div 用于渲染内容
5649
+ const tempDiv = document.createElement("div");
5650
+ tempDiv.style.position = "fixed";
5651
+ tempDiv.style.right = "0";
5652
+ tempDiv.style.bottom = "0";
5653
+ tempDiv.style.width = "0";
5654
+ tempDiv.style.height = "0";
5655
+ tempDiv.style.overflow = "hidden";
5656
+ document.body.appendChild(tempDiv);
5657
+ // 根据类型填充内容
5658
+ if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5 || type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON) tempDiv.innerHTML = content;
5659
+ else if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5660
+ const img = new Image();
5661
+ img.src = content.startsWith("data:image") ? content : `data:image/png;base64,${content}`;
5662
+ tempDiv.appendChild(img);
5663
+ // 等待图片加载
5664
+ await new Promise((resolve)=>{
5665
+ img.onload = resolve;
5666
+ img.onerror = ()=>{
5667
+ tempDiv.innerHTML = "<p>加载失败,请检查数据</p>";
5668
+ resolve(void 0);
5669
+ };
5670
+ });
5671
+ }
5672
+ // 临时显示内容并打印
5673
+ tempDiv.style.width = "100%";
5674
+ tempDiv.style.height = "100%";
5675
+ tempDiv.style.overflow = "visible";
5676
+ // 使用 window.print() 直接打印当前页面
5677
+ window.print();
5678
+ // 打印完成后移除临时元素
5679
+ document.body.removeChild(tempDiv);
5680
+ }
5660
5681
  const createPrint = ()=>{
5661
5682
  /**
5662
5683
  * 打印主步骤
@@ -8127,6 +8148,137 @@ const access_infovue_type_script_setup_true_lang_ts_name_accessInfo_hoisted_3 =
8127
8148
  });
8128
8149
  const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_accessInfo;
8129
8150
  /* ESM default export */ const access_info = access_info_exports_;
8151
+ function formatSize(val) {
8152
+ if ('string' == typeof val) return val;
8153
+ if ('number' == typeof val) return `${val}px`;
8154
+ return '48px';
8155
+ }
8156
+ function useAvatarSize(width, height) {
8157
+ const currentWidth = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(width));
8158
+ const currentHeight = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(height));
8159
+ return {
8160
+ currentWidth,
8161
+ currentHeight
8162
+ };
8163
+ }
8164
+ /**
8165
+ * 头像类型
8166
+ */ var utils_AVATAR_TYPE_CODE = /*#__PURE__*/ function(AVATAR_TYPE_CODE) {
8167
+ /**
8168
+ * 男性
8169
+ */ AVATAR_TYPE_CODE["WOMAN"] = "woman";
8170
+ /**
8171
+ * 女性
8172
+ */ AVATAR_TYPE_CODE["MAN"] = "man";
8173
+ /**
8174
+ * 默认
8175
+ */ AVATAR_TYPE_CODE["DEFAULT"] = "default";
8176
+ return AVATAR_TYPE_CODE;
8177
+ }({});
8178
+ const manvue_type_script_setup_true_lang_ts_hoisted_1 = [
8179
+ "width",
8180
+ "height"
8181
+ ];
8182
+ /* ESM default export */ const manvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8183
+ __name: 'man',
8184
+ props: {
8185
+ width: {},
8186
+ height: {}
8187
+ },
8188
+ setup (__props) {
8189
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8190
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8191
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8192
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8193
+ viewBox: "0 0 48 48",
8194
+ version: "1.1",
8195
+ xmlns: "http://www.w3.org/2000/svg",
8196
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8197
+ }, _cache[0] || (_cache[0] = [
8198
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createStaticVNode)("<defs><rect id=\"path-1\" x=\"0\" y=\"0\" width=\"48\" height=\"48\"></rect><mask id=\"mask-2\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><mask id=\"mask-4\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask></defs><g id=\"页面-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"头像\" transform=\"translate(-42.000000, -117.000000)\"><g id=\"男患者\" transform=\"translate(42.000000, 117.000000)\"><mask id=\"mask-3\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><g id=\"年龄=男-(Background/Mask)\" mask=\"url(#mask-2)\" stroke-width=\"2\" fill=\"#DCEBF9\" stroke-linejoin=\"bevel\" stroke-dasharray=\"0,0\"><use mask=\"url(#mask-4)\" xlink:href=\"#path-1\"></use></g><g id=\"编组\" mask=\"url(#mask-3)\"><g transform=\"translate(-1.411743, 8.578021)\"><path d=\"M19.539856,30.0474823 C21.2975441,32.3003545 23.3186363,34.3148989 25.6031324,36.0911155 C28.4680724,33.5403075 30.4123005,31.5257631 31.4358168,30.0474823 C31.0024567,29.3141253 30.8767889,25.8498667 31.0588134,19.6547065 L20.1176378,19.6547065 C20.4759263,25.6493496 20.2833324,29.1136082 19.539856,30.0474823 Z\" id=\"路径-4\" fill=\"#FDD1C1\"></path><path d=\"M5.14905306,34.127889 C4.49817356,35.4620317 2.78182255,40.5208549 0,49.3043585 L52.2352905,50.3631835 C49.9468828,40.6727688 47.9836164,35.2610039 46.3454911,34.127889 C44.7073659,32.994774 39.6118092,30.9742128 31.0588211,28.0662055 L25.4949168,32.5216499 L20.1176464,28.0662055 C10.7894637,30.7731851 5.79993255,32.7937463 5.14905306,34.127889 Z\" id=\"路径-2\" fill=\"#9DC1EB\"></path><path d=\"M22.554719,36.2455335 L25.7647309,32.4562326 L20.5276802,27.7749457 L18.3529663,28.5948679 L22.554719,36.2455335 Z\" id=\"路径-11\" fill=\"#FFFFFF\"></path><path d=\"M29.7641656,36.2455335 L32.8235474,32.5216476 L27.6482883,27.7749457 L25.4117827,28.7095082 L29.7641656,36.2455335 Z\" id=\"路径-11复制\" fill=\"#FFFFFF\" transform=\"translate(29.117665, 32.010240) scale(1, -1) rotate(-180.000000) translate(-29.117665, -32.010240) \"></path><path d=\"M15.4374821,11.5944405 C16.0833846,11.5107177 16.6657005,11.9448752 17.1844298,12.8969131 C17.2133992,10.124357 17.4993747,8.62538745 18.0423564,8.40000452 C18.856829,8.06193012 20.9045912,7.8289935 22.3732662,8.40000452 C23.8419413,8.97101554 24.9022032,10.3055429 26.8017679,10.3055429 C27.9579904,10.3055429 29.9406801,9.83553477 31.4089417,9.3958699 C32.3528958,9.11320672 33.0842211,8.84308544 33.2466033,8.71846492 C33.2333146,9.4913702 33.3276372,10.7844708 33.5295712,12.5977666 C33.6746791,12.7434716 33.8107459,12.7434716 33.9377716,12.5977666 C34.0779827,12.4369374 34.9743243,12.5261509 35.2941281,12.5977666 C35.408919,12.6234724 35.5207828,9.13376257 35.2449762,7.38931417 C33.6056306,6.76744305 32.9395062,6.85912003 33.2466033,7.66434511 C25.0106049,5.91910992 20.7468737,5.04649232 20.4554096,5.04649232 C20.0182135,5.04649232 16.0188989,2.19920258 15.5636872,4.74189738 C15.1084755,7.28459218 15.109232,10.3055429 15.4374821,11.5944405 Z\" id=\"路径\" fill=\"#6A6E77\"></path><path d=\"M17.556659,11.4131346 C18.5346658,11.8198791 18.1570616,14.179645 17.1990537,15.8209717 C16.2410459,17.4622984 15.792257,18.1468469 14.9174368,18.1467372 C14.3342234,18.1466641 14.0981192,17.3712841 14.2091244,15.820597 C14.2471743,15.0627441 14.5077973,14.200678 14.9909933,13.234399 C15.7157874,11.7849804 16.5786523,11.0063901 17.556659,11.4131346 Z\" id=\"路径-3复制\" fill=\"#FDD1C1\" transform=\"translate(16.155954, 14.726218) scale(1, -1) rotate(173.000000) translate(-16.155954, -14.726218) \"></path><path d=\"M35.8939204,11.4131346 C36.8719272,11.8198791 36.494323,14.179645 35.5363151,15.8209717 C34.5783073,17.4622984 34.1295184,18.1468469 33.2546982,18.1467372 C32.6714848,18.1466641 32.4353806,17.3712841 32.5463858,15.820597 C32.5844357,15.0627441 32.8450587,14.200678 33.3282547,13.234399 C34.0530487,11.7849804 34.9159137,11.0063901 35.8939204,11.4131346 Z\" id=\"路径-3复制-2\" fill=\"#FDD1C1\" transform=\"translate(34.493216, 14.726218) rotate(-7.000000) translate(-34.493216, -14.726218) \"></path><path d=\"M33.9377537,10.5289178 L33.9377537,16.6722207 C33.9377537,21.5221026 30.2393121,25.5716369 25.4093065,26.0102725 L25.4093065,26.0102725 L25.4093065,26.0102725 C20.579301,25.5716369 16.8808594,21.5221026 16.8808594,16.6722207 L16.8808594,10.5289178 C16.8808594,5.81878649 20.6991752,2.00047064 25.4093065,2.00047064 C30.1194378,2.00047064 33.9377537,5.81878649 33.9377537,10.5289178 Z\" id=\"矩形\" fill=\"#FFE6D0\"></path><path d=\"M15.6812227,9.03657485 C19.0651475,10.5538159 21.6222636,8.28013896 23.5550388,8.65835671 C25.4878141,9.03657446 29.7945013,11.0906622 31.4357952,11.0906622 C33.0770892,11.0906622 33.522772,9.73469298 33.9377294,9.37986995 C33.9244408,10.2410287 33.7883739,11.4313115 33.529529,12.9507184 C33.8904319,12.4957557 34.0708833,12.1401021 34.0708833,11.8837575 C34.0708833,7.81901115 35.2813553,8.20972731 35.2440915,7.46930179 C35.0060596,2.73963604 34.3339134,2.73963604 30.9172992,1.41648627 C27.500685,0.093336494 24.5817812,-0.433907428 21.1765077,0.403970658 C17.7316204,1.25159589 16.3625201,2.91818007 15.6812227,4.29897183 C15.3508121,4.96861802 15.3057823,8.86823969 15.6812227,9.03657485 Z\" id=\"路径\" fill=\"#6A6E77\" transform=\"translate(25.330597, 6.475359) scale(-1, 1) translate(-25.330597, -6.475359) \"></path></g></g></g></g></g>", 2)
8199
+ ]), 8, manvue_type_script_setup_true_lang_ts_hoisted_1));
8200
+ }
8201
+ });
8202
+ const man_exports_ = manvue_type_script_setup_true_lang_ts;
8203
+ /* ESM default export */ const man = man_exports_;
8204
+ const womenvue_type_script_setup_true_lang_ts_hoisted_1 = [
8205
+ "width",
8206
+ "height"
8207
+ ];
8208
+ /* ESM default export */ const womenvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8209
+ __name: 'women',
8210
+ props: {
8211
+ width: {},
8212
+ height: {}
8213
+ },
8214
+ setup (__props) {
8215
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8216
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8217
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8218
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8219
+ viewBox: "0 0 48 48",
8220
+ version: "1.1",
8221
+ xmlns: "http://www.w3.org/2000/svg",
8222
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8223
+ }, _cache[0] || (_cache[0] = [
8224
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createStaticVNode)("<defs><rect id=\"path-1\" x=\"0\" y=\"0\" width=\"48\" height=\"48\"></rect><mask id=\"mask-2\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><mask id=\"mask-4\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask></defs><g id=\"页面-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"头像\" transform=\"translate(-130.000000, -117.000000)\"><g id=\"女患者\" transform=\"translate(130.000000, 117.000000)\"><mask id=\"mask-3\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><g id=\"年龄=女-(Background/Mask)\" mask=\"url(#mask-2)\" stroke-width=\"2\" fill=\"#FCE7F0\" stroke-linejoin=\"bevel\" stroke-dasharray=\"0,0\"><use mask=\"url(#mask-4)\" xlink:href=\"#path-1\"></use></g><g id=\"编组\" mask=\"url(#mask-3)\"><g transform=\"translate(-1.411743, 7.517029)\"><path d=\"M32.4117432,1.98297119 C28.3150644,-0.689630985 22.4781547,-0.632149577 18.4117432,1.98294485 C15.850035,3.62100053 14.2283276,6.78040767 13.1309257,9.58540821 C12.1015037,12.1923409 11.6372605,14.9881153 11.7688973,17.7878437 C12.0216292,23.4084806 11.4117432,29.0457649 11.4117432,34.6891022 C11.4117432,34.8843262 11.4117432,35.1082993 11.5630797,35.2323952 C11.6982077,35.3171761 11.8599194,35.3489815 12.0170891,35.3216858 C14.380965,35.1900231 16.4739487,34.7814201 18.756103,34.4015656 C21.601229,33.9293958 24.6688201,34.0640855 27.5487537,33.8839951 C29.2633961,33.784113 31.0658122,33.5071668 32.7804546,33.5813217 C33.3267794,33.6055356 38.1105268,34.3152988 38.1317139,34.610405 C37.6746777,28.3511286 37.9985378,22.1766028 37.9213562,15.9218664 C37.8593082,10.8990088 36.9488111,4.94311261 32.4117432,1.98297119 Z\" id=\"Path\" fill=\"#6A6E77\" fill-rule=\"nonzero\"></path><path d=\"M19.9117432,28.9829712 C19.8029955,29.810802 19.7775764,30.8098762 19.539856,31.1084747 C21.2975441,33.361347 23.3186364,35.3758912 25.6031327,37.1521072 C28.4680725,34.6012998 30.4123005,32.5867556 31.4358168,31.1084747 C31.0024567,30.3751177 30.8767891,26.9108589 31.058814,20.7156982 L20.1176378,20.7156982 C20.2479871,24.19004 20.1793556,26.9457976 19.9117432,28.9829712 Z\" id=\"路径-4\" fill=\"#FDD1C1\" fill-rule=\"evenodd\"></path><path d=\"M5.1490531,35.1888199 C4.49817363,36.5229626 2.7818226,41.5817858 0,50.3652897 L52.2352905,51.4241142 C49.9468818,41.7336996 47.9836148,36.3219349 46.3454895,35.1888199 C44.7073642,34.0557049 39.611808,32.0351437 31.0588207,29.1271362 C30.6274357,32.0974325 28.7728011,33.5825806 25.4949169,33.5825806 C22.4387452,33.5825806 20.5776873,32.0493774 19.9117432,28.9829712 C10.7208292,31.786061 5.79993256,33.8546772 5.1490531,35.1888199 Z\" id=\"路径-2\" fill=\"#E9A9D2\" fill-rule=\"evenodd\"></path><path d=\"M31.1971865,28.9829712 C31.6834437,28.9829712 33.6294901,29.5343028 34.3456192,30.4244784 C36.8399134,33.5249807 33.7578571,35.9829712 31.1971855,35.9829712 C27.966253,35.9829712 26.1036394,34.6273296 25.3877754,33.4386492 C24.6719115,34.627815 23.1426761,35.9829712 19.9117436,35.9829712 C17.3510721,35.9829712 14.4362248,33.4386492 16.4117463,30.9829712 C17.1278754,30.0927956 18.9117484,28.9829712 19.9117484,28.9829712 C20.9117503,32.4829712 22.7562027,32.736654 25.3790264,32.8452811 C28.9344084,32.6897225 29.9117451,32.4829712 31.1971865,28.9829712 Z\" id=\"Combined-Shape\" fill=\"#FFFFFF\" fill-rule=\"nonzero\"></path><path d=\"M17.556659,12.4740653 C18.5346658,12.8808099 18.1570616,15.2405757 17.1990537,16.8819024 C16.2410459,18.5232291 15.792257,19.2077777 14.9174368,19.207668 C14.3342234,19.2075949 14.0981192,18.4322148 14.2091244,16.8815278 C14.2471743,16.1236748 14.5077973,15.2616088 14.9909933,14.2953297 C15.7157874,12.8459112 16.5786523,12.0673208 17.556659,12.4740653 Z\" id=\"路径-3复制\" fill=\"#FDD1C1\" fill-rule=\"evenodd\" transform=\"translate(16.155954, 15.787149) scale(1, -1) rotate(173.000000) translate(-16.155954, -15.787149) \"></path><path d=\"M35.8939204,12.4740653 C36.8719272,12.8808099 36.494323,15.2405757 35.5363151,16.8819024 C34.5783073,18.5232291 34.1295184,19.2077777 33.2546982,19.207668 C32.6714848,19.2075949 32.4353806,18.4322148 32.5463858,16.8815278 C32.5844357,16.1236748 32.8450587,15.2616088 33.3282547,14.2953297 C34.0530487,12.8459112 34.9159137,12.0673208 35.8939204,12.4740653 Z\" id=\"路径-3复制-2\" fill=\"#FDD1C1\" fill-rule=\"evenodd\" transform=\"translate(34.493216, 15.787149) rotate(-7.000000) translate(-34.493216, -15.787149) \"></path><path d=\"M33.9377537,11.5898485 L33.9377537,17.7331514 C33.9377537,22.5830333 30.2393121,26.6325677 25.4093065,27.0712032 L25.4093065,27.0712032 L25.4093065,27.0712032 C20.579301,26.6325677 16.8808594,22.5830333 16.8808594,17.7331514 L16.8808594,11.5898485 C16.8808594,6.87971722 20.6991752,3.06140137 25.4093065,3.06140137 C30.1194378,3.06140137 33.9377537,6.87971722 33.9377537,11.5898485 Z\" id=\"矩形\" fill=\"#FFE6DC\" fill-rule=\"evenodd\"></path><path d=\"M24.6733503,11.6913671 C22.024538,13.5903753 19.9624601,14.3568758 16.9117494,14.9829712 C16.4117432,10.9829712 16.5155237,6.0384028 20.4117494,3.98291373 C22.5285108,2.84913337 27.0318227,1.99650967 29.4117489,2.78245926 C29.3460476,3.48205054 29.2376083,4.17663479 29.0870829,4.86204338 C28.4720778,7.62988853 27.1290796,9.98033571 24.6733503,11.6913671 Z\" id=\"Path\" fill=\"#6A6E77\" fill-rule=\"nonzero\"></path><path d=\"M29.835444,10.923974 C27.3903863,12.6647315 25.5253999,12.4089894 22.7093591,12.9829102 C22.2093315,11.4829102 22.3155814,9.07035065 23.209374,7.48291016 C24.2223651,5.72223103 24.8806003,4.81518441 26.6537957,3.88621545 C28.6077293,2.84691679 32.0124958,2.03702128 34.2093506,2.75747502 C34.1487033,3.39876699 34.048605,4.03546923 33.9096584,4.66376042 C33.3419615,7.20095181 32.1022711,9.35552847 29.835444,10.923974 Z\" id=\"Path\" fill=\"#6A6E77\" fill-rule=\"nonzero\" transform=\"translate(28.310537, 7.732910) scale(1, -1) rotate(-180.000000) translate(-28.310537, -7.732910) \"></path></g></g></g></g></g>", 2)
8225
+ ]), 8, womenvue_type_script_setup_true_lang_ts_hoisted_1));
8226
+ }
8227
+ });
8228
+ const women_exports_ = womenvue_type_script_setup_true_lang_ts;
8229
+ /* ESM default export */ const women = women_exports_;
8230
+ const defaultvue_type_script_setup_true_lang_ts_hoisted_1 = [
8231
+ "width",
8232
+ "height"
8233
+ ];
8234
+ /* ESM default export */ const defaultvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8235
+ __name: 'default',
8236
+ props: {
8237
+ width: {},
8238
+ height: {}
8239
+ },
8240
+ setup (__props) {
8241
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8242
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8243
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8244
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8245
+ viewBox: "0 0 48 48",
8246
+ version: "1.1",
8247
+ xmlns: "http://www.w3.org/2000/svg",
8248
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8249
+ }, _cache[0] || (_cache[0] = [
8250
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createStaticVNode)("<defs><path d=\"M24,48 C37.254834,48 48,37.254834 48,24 C48,10.745166 37.254834,0 24,0 C10.745166,0 0,10.745166 0,24 C0,37.254834 10.745166,48 24,48 Z\" id=\"path-1\"></path><mask id=\"mask-2\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask></defs><g id=\"页面-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"头像\" transform=\"translate(-226.000000, -117.000000)\"><g id=\"默认\" transform=\"translate(226.000000, 117.000000)\"><path d=\"M24,40 C32.836556,40 40,32.836556 40,24 C40,15.163444 32.836556,8 24,8 C15.163444,8 8,15.163444 8,24 C8,32.836556 15.163444,40 24,40 Z\" id=\"Ellipse-103\" fill=\"#70B0ED\"></path><path d=\"M40.9705649,7.02943832 C45.4714385,11.5303119 48,17.6348038 48,24 C48,30.3651962 45.4714385,36.4696913 40.9705649,40.9705649 C36.4696913,45.4714385 30.3651962,48 24,48 C17.6348038,48 11.5303119,45.4714385 7.02943832,40.9705649 C2.52856472,36.4696913 0,30.3651962 0,24 C0,17.6348038 2.52856472,11.5303119 7.02943832,7.02943832 C11.5303119,2.52856472 17.6348038,0 24,0 C30.3651962,0 36.4696913,2.52856472 40.9705649,7.02943832 Z M21,25.5 C18.613054,25.5 16.3238672,26.448212 14.6360398,28.1360395 C12.9482123,29.823867 12,32.1130506 12,34.5 L36,34.5 L35.9849989,33.9719988 C35.8503218,31.6803201 34.8450201,29.5267267 33.1747819,27.9518511 C31.5045437,26.3769755 29.2956342,25.4998708 27,25.5 L21,25.5 Z M19.7573588,12.2573601 C18.6321404,13.3825785 18,14.9087023 18,16.5 C18,18.0913004 18.6321404,19.6174252 19.7573588,20.7426436 C20.8825772,21.867862 22.408701,22.5 24,22.5 C25.591299,22.5 27.1174228,21.867862 28.2426412,20.7426436 C29.3678596,19.6174252 30,18.0913004 30,16.5 C30,14.9087023 29.3678596,13.3825785 28.2426412,12.2573601 C27.1174228,11.1321417 25.591299,10.5 24,10.5 C22.408701,10.5 20.8825772,11.1321417 19.7573588,12.2573601 Z\" id=\"Vector\" fill=\"#DCEBF9\"></path><use id=\"Ellipse-104\" mask=\"url(#mask-2)\" stroke-width=\"2\" stroke-dasharray=\"0,0\" xlink:href=\"#path-1\"></use></g></g></g>", 2)
8251
+ ]), 8, defaultvue_type_script_setup_true_lang_ts_hoisted_1));
8252
+ }
8253
+ });
8254
+ const default_exports_ = defaultvue_type_script_setup_true_lang_ts;
8255
+ /* ESM default export */ const composable_default = default_exports_;
8256
+ /* ESM default export */ const pro_avatarvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8257
+ __name: 'index',
8258
+ props: {
8259
+ type: {},
8260
+ width: {},
8261
+ height: {}
8262
+ },
8263
+ setup (__props) {
8264
+ const props = __props;
8265
+ const avatarType = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>props.type || utils_AVATAR_TYPE_CODE.DEFAULT);
8266
+ const avatarComponent = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
8267
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.MAN) return man;
8268
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.WOMAN) return women;
8269
+ return composable_default;
8270
+ });
8271
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(avatarComponent.value), {
8272
+ width: props.width,
8273
+ height: props.height
8274
+ }, null, 8, [
8275
+ "width",
8276
+ "height"
8277
+ ]));
8278
+ }
8279
+ });
8280
+ const pro_avatar_exports_ = pro_avatarvue_type_script_setup_true_lang_ts;
8281
+ /* ESM default export */ const pro_avatar = pro_avatar_exports_;
8130
8282
  /**
8131
8283
  * [1-10008-1]根据条件生成DML脚本
8132
8284
  * @param data
@@ -8812,4 +8964,4 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
8812
8964
  const invoice_exports_ = invoicevue_type_script_setup_true_lang_ts_name_proInvoice;
8813
8965
  /* ESM default export */ const invoice = invoice_exports_;
8814
8966
  var __webpack_exports__COMPONENT_CODE = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.COMPONENT_CODE;
8815
- export { access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, pro_table_v2 as ProTableV2, tag_select as TagSelect, Title, convertToSpellNo, convertToWbNo, print, usePrintReceipt, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
8967
+ export { access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_avatar as ProAvatar, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, pro_table_v2 as ProTableV2, tag_select as TagSelect, Title, convertToSpellNo, convertToWbNo, print, usePrintReceipt, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
@@ -0,0 +1,2 @@
1
+ export { default as ProAvatar } from './index.vue';
2
+ export { AVATAR_TYPE_CODE } from './utils';
@@ -0,0 +1,21 @@
1
+ export declare function useAvatarSize(width?: number | string, height?: number | string): {
2
+ currentWidth: import("vue").ComputedRef<string>;
3
+ currentHeight: import("vue").ComputedRef<string>;
4
+ };
5
+ /**
6
+ * 头像类型
7
+ */
8
+ export declare enum AVATAR_TYPE_CODE {
9
+ /**
10
+ * 男性
11
+ */
12
+ WOMAN = "woman",
13
+ /**
14
+ * 女性
15
+ */
16
+ MAN = "man",
17
+ /**
18
+ * 默认
19
+ */
20
+ DEFAULT = "default"
21
+ }
package/dist/index.d.ts CHANGED
@@ -1,25 +1,26 @@
1
1
  /** components **/
2
- export * from "./components/pro-table";
3
- export * from "./components/pro-table-v2";
4
- export * from "./components/patient-access/index.ts";
5
- export * from "./components/print/index.ts";
6
- export * from "./components/invoice/index.ts";
7
- export { Title } from "./components/title";
8
- export { DictSelect, FlagSelect, HospitalSelect, TagSelect, UserSelect, } from "./components/biz-select";
9
- export { CopyTextWithTooltip } from "./components/copy-text-with-tooltip";
10
- export { FormDesignRender } from "./components/form-design-render";
11
- export { ProDialog } from "./components/pro-dialog";
12
- export { AccessInfo } from "./components/access-info";
13
- export { ProForm, FormUnit, convertToWbNo, convertToSpellNo, type FormDescItem, } from "./components/pro-form";
14
- export { DmlButton } from "./components/dml-button/index.ts";
2
+ export * from './components/pro-table';
3
+ export * from './components/pro-table-v2';
4
+ export * from './components/patient-access/index.ts';
5
+ export * from './components/print/index.ts';
6
+ export * from './components/invoice/index.ts';
7
+ export { Title } from './components/title';
8
+ export { DictSelect, FlagSelect, HospitalSelect, TagSelect, UserSelect, } from './components/biz-select';
9
+ export { CopyTextWithTooltip } from './components/copy-text-with-tooltip';
10
+ export { FormDesignRender } from './components/form-design-render';
11
+ export { ProDialog } from './components/pro-dialog';
12
+ export { AccessInfo } from './components/access-info';
13
+ export { ProAvatar, AVATAR_TYPE_CODE } from './components/pro-avatar';
14
+ export { ProForm, FormUnit, convertToWbNo, convertToSpellNo, type FormDescItem, } from './components/pro-form';
15
+ export { DmlButton } from './components/dml-button/index.ts';
15
16
  /** hooks ** */
16
- export { default as useRequest } from "./hooks/use-request";
17
- export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./hooks/use-app-config";
18
- export type { PreferenceData } from "./hooks/use-app-config";
19
- export { default as useDirectionSelect } from "./hooks/use-direction-select";
20
- export { useEditableTable } from "./hooks/use-editable-table";
21
- export type { TableRef } from "./hooks/use-editable-table";
22
- export * from "./hooks/use-fetch-data/index.ts";
23
- export { useColumnConfig, useFormConfig } from "./hooks/use-column&form-config";
24
- export { useDataChangeDetector } from "./hooks/use-data-change-detector";
25
- export { debounce, isNumber, decimalCount, formatDecimalNumber } from "./utils";
17
+ export { default as useRequest } from './hooks/use-request';
18
+ export { default as useAppConfigData, MAIN_APP_CONFIG, } from './hooks/use-app-config';
19
+ export type { PreferenceData } from './hooks/use-app-config';
20
+ export { default as useDirectionSelect } from './hooks/use-direction-select';
21
+ export { useEditableTable } from './hooks/use-editable-table';
22
+ export type { TableRef } from './hooks/use-editable-table';
23
+ export * from './hooks/use-fetch-data/index.ts';
24
+ export { useColumnConfig, useFormConfig } from './hooks/use-column&form-config';
25
+ export { useDataChangeDetector } from './hooks/use-data-change-detector';
26
+ export { debounce, isNumber, decimalCount, formatDecimalNumber } from './utils';
package/dist/index.js CHANGED
@@ -2403,13 +2403,6 @@ const SELECTION = 'selection';
2403
2403
  },
2404
2404
  dragTipsClassName: {
2405
2405
  default: ''
2406
- },
2407
- rowClassName: {
2408
- type: [
2409
- Function,
2410
- String
2411
- ],
2412
- default: ''
2413
2406
  }
2414
2407
  },
2415
2408
  emits: [
@@ -2474,34 +2467,6 @@ const SELECTION = 'selection';
2474
2467
  // 安全获取childrenKey
2475
2468
  let childrenKey = getSafeChildrenKeyFromAttrs(attrs);
2476
2469
  if (childrenKey) {
2477
- const getPathByIndex = (targetIndex)=>{
2478
- let path = '';
2479
- let count = -1;
2480
- function dfs(arr, parent) {
2481
- for(let i = 0; i < arr.length; i++){
2482
- count++;
2483
- const curPath = parent ? `${parent}-${i}` : `${i}`;
2484
- if (count === targetIndex) {
2485
- path = curPath;
2486
- return true;
2487
- }
2488
- if (childrenKey && Array.isArray(arr[i][childrenKey])) {
2489
- if (dfs(arr[i][childrenKey], curPath)) return true;
2490
- }
2491
- }
2492
- return false;
2493
- }
2494
- dfs(data, '');
2495
- return path;
2496
- };
2497
- const newPath = getPathByIndex(newIndex);
2498
- const oldPath = getPathByIndex(oldIndex);
2499
- const getParent = (p)=>p.split('-').slice(0, -1).join('-');
2500
- if (getParent(newPath) !== getParent(oldPath)) {
2501
- __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning('暂不支持跨层级拖拽配置');
2502
- if (evt && initialHTML) evt.from.innerHTML = initialHTML;
2503
- return [];
2504
- }
2505
2470
  let { result, curIndex: newCurIndex, curData: newCurData } = getDragSortData(newIndex, data, {
2506
2471
  startIndex: -1
2507
2472
  }, {
@@ -2516,11 +2481,6 @@ const SELECTION = 'selection';
2516
2481
  curIndex: 0,
2517
2482
  curData: {}
2518
2483
  }, childrenKey);
2519
- if (newCurData.belongGroupElementId !== oldCurData.belongGroupElementId) {
2520
- __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning('暂不支持跨层级拖拽配置');
2521
- if (evt && initialHTML) evt.from.innerHTML = initialHTML;
2522
- return [];
2523
- }
2524
2484
  const [removedItem] = result.splice(oldCurIndex, 1);
2525
2485
  result.splice(newCurIndex, 0, removedItem);
2526
2486
  data = result;
@@ -5036,6 +4996,8 @@ const women_patient_exports_ = women_patientvue_type_script_setup_true_lang_ts;
5036
4996
  const tag_selectvue_type_script_lang_ts_setup_true_hoisted_1 = {
5037
4997
  class: "flex flex-wrap gap-2"
5038
4998
  };
4999
+ const BACKGROUND_COLOR = 'BACKGROUND_COLOR';
5000
+ const FONT_COLOR = 'FONT_COLOR';
5039
5001
  const SELECT_WIDTH = 15; // rem
5040
5002
  const TAG_MARGIN = 1; // 1rem
5041
5003
  /* ESM default export */ const tag_selectvue_type_script_lang_ts_setup_true = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
@@ -5079,7 +5041,11 @@ const TAG_MARGIN = 1; // 1rem
5079
5041
  const map = new Map();
5080
5042
  tableData.value.forEach((group)=>{
5081
5043
  group.tagList.forEach((tag)=>{
5082
- map.set(tag.tagId, tag.tagNameDisplay);
5044
+ map.set(tag.tagId, {
5045
+ tagNameDisplay: tag.tagNameDisplay,
5046
+ background: (tag?.tagList || []).find((item)=>item.cssTypeCode === BACKGROUND_COLOR)?.cssValue || '',
5047
+ color: (tag?.tagList || []).find((item)=>item.cssTypeCode === FONT_COLOR)?.cssValue || ''
5048
+ });
5083
5049
  });
5084
5050
  });
5085
5051
  return map;
@@ -5105,7 +5071,7 @@ const TAG_MARGIN = 1; // 1rem
5105
5071
  size: props.tagSize,
5106
5072
  disableTransitions: true,
5107
5073
  class: 'mr-4'
5108
- }, ()=>allTagsMap.value.get(item) || item);
5074
+ }, ()=>allTagsMap.value.get(item)?.tagNameDisplay || item);
5109
5075
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.render)(vnode, tagContainer);
5110
5076
  const width = tagContainer.firstElementChild?.getBoundingClientRect().width || 0;
5111
5077
  document.body.removeChild(tagContainer);
@@ -5163,7 +5129,7 @@ const TAG_MARGIN = 1; // 1rem
5163
5129
  let [, result] = await queryTagGroupByExampleV1({
5164
5130
  bizIdTypeCode: props.bizIdTypeCode,
5165
5131
  bizId: props.bizId,
5166
- enabledFlag: 1
5132
+ enabledFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES
5167
5133
  });
5168
5134
  loading.value = false;
5169
5135
  if (result?.success) {
@@ -5215,7 +5181,7 @@ const TAG_MARGIN = 1; // 1rem
5215
5181
  onClose: ($event)=>handleClose(item)
5216
5182
  }, {
5217
5183
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
5218
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item) || item), 1)
5184
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
5219
5185
  ]),
5220
5186
  _: 2
5221
5187
  }, 1032, [
@@ -5253,16 +5219,21 @@ const TAG_MARGIN = 1; // 1rem
5253
5219
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
5254
5220
  ] : []).slice(realMaxNum.value), (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
5255
5221
  key: item,
5222
+ style: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeStyle)({
5223
+ background: allTagsMap.value.get(item)?.background,
5224
+ color: allTagsMap.value.get(item)?.color
5225
+ }),
5256
5226
  closable: !props.disabled,
5257
5227
  size: props.tagSize,
5258
5228
  "disable-transitions": true,
5259
5229
  onClose: ($event)=>handleClose(item)
5260
5230
  }, {
5261
5231
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
5262
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item) || item), 1)
5232
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
5263
5233
  ]),
5264
5234
  _: 2
5265
5235
  }, 1032, [
5236
+ "style",
5266
5237
  "closable",
5267
5238
  "size",
5268
5239
  "onClose"
@@ -5376,9 +5347,12 @@ const _hoisted_13 = {
5376
5347
  class: "w-full flex"
5377
5348
  };
5378
5349
  const _hoisted_14 = {
5379
- class: "flex-1"
5350
+ class: "text-[#555]"
5380
5351
  };
5381
5352
  const _hoisted_15 = {
5353
+ class: "flex-1"
5354
+ };
5355
+ const _hoisted_16 = {
5382
5356
  key: 1
5383
5357
  };
5384
5358
  const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
@@ -5392,7 +5366,11 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5392
5366
  default: true
5393
5367
  }
5394
5368
  },
5395
- setup (__props, { expose: __expose }) {
5369
+ emits: [
5370
+ "avatarClick"
5371
+ ],
5372
+ setup (__props, { expose: __expose, emit: __emit }) {
5373
+ const emits = __emit;
5396
5374
  const BIZ_ID_TYPE_CODE_MAP = {
5397
5375
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.PATIENT]: PERSON,
5398
5376
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.REGISTRATION]: PERSON,
@@ -5420,9 +5398,9 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5420
5398
  case PERSON:
5421
5399
  tagBizId.value = data.personId;
5422
5400
  break;
5423
- // case PERSON:
5424
- // tagBizId.value = data.inEncounterId;
5425
- // break;
5401
+ case __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE.IENC_ENCOUNTER:
5402
+ tagBizId.value = data.inEncounterId;
5403
+ break;
5426
5404
  default:
5427
5405
  tagBizId.value = data.personId;
5428
5406
  }
@@ -5494,22 +5472,27 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5494
5472
  }, [
5495
5473
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1, [
5496
5474
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_2, [
5497
- bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).MAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(man_patient, {
5498
- key: 0,
5499
- class: "rounded-full",
5500
- width: 32,
5501
- height: 32
5502
- })) : bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).WOMAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(women_patient, {
5503
- key: 1,
5504
- class: "rounded-full",
5505
- width: 32,
5506
- height: 32
5507
- })) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(default_patient, {
5508
- key: 2,
5509
- width: 32,
5510
- height: 32,
5511
- class: "rounded-full"
5512
- })),
5475
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
5476
+ class: "cursor-pointer",
5477
+ onClick: _cache[0] || (_cache[0] = ($event)=>emits('avatarClick'))
5478
+ }, [
5479
+ bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).MAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(man_patient, {
5480
+ key: 0,
5481
+ class: "rounded-full",
5482
+ width: 32,
5483
+ height: 32
5484
+ })) : bannerInfo.value?.genderCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.SEX_CODE).WOMAN ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(women_patient, {
5485
+ key: 1,
5486
+ class: "rounded-full",
5487
+ width: 32,
5488
+ height: 32
5489
+ })) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(default_patient, {
5490
+ key: 2,
5491
+ width: 32,
5492
+ height: 32,
5493
+ class: "rounded-full"
5494
+ }))
5495
+ ]),
5513
5496
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3, [
5514
5497
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4, [
5515
5498
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
@@ -5588,21 +5571,19 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5588
5571
  ])
5589
5572
  }, [
5590
5573
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", _hoisted_13, [
5591
- _cache[1] || (_cache[1] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", {
5592
- class: "text-[#555]"
5593
- }, "标签:", -1)),
5594
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, [
5574
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签"), 1),
5575
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
5595
5576
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) && tagIds.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(tag_select, {
5596
5577
  key: 0,
5597
5578
  modelValue: tagIds.value,
5598
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tagIds.value = $event),
5579
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>tagIds.value = $event),
5599
5580
  tagSize: "default",
5600
5581
  bizIdTypeCode: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode),
5601
5582
  disabled: true
5602
5583
  }, null, 8, [
5603
5584
  "modelValue",
5604
5585
  "bizIdTypeCode"
5605
- ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_15, "--"))
5586
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_16, "--"))
5606
5587
  ])
5607
5588
  ])
5608
5589
  ], 2)
@@ -6005,6 +5986,12 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
6005
5986
  * type 数据源格式类型代码
6006
5987
  * @param [type='BASE64']
6007
5988
  */ function useWebPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5989
+ const isFirefox = navigator.userAgent.includes("Firefox");
5990
+ if (isFirefox) {
5991
+ // Firefox 的特殊处理
5992
+ handleFirefoxPrint(content, type);
5993
+ return;
5994
+ }
6008
5995
  // 创建隐藏的iframe
6009
5996
  const iframe = document.createElement("iframe");
6010
5997
  iframe.style.position = "fixed";
@@ -6149,6 +6136,40 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
6149
6136
  // 将容器添加到 body
6150
6137
  document.body.appendChild(container);
6151
6138
  }
6139
+ async function handleFirefoxPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
6140
+ // 创建一个临时 div 用于渲染内容
6141
+ const tempDiv = document.createElement("div");
6142
+ tempDiv.style.position = "fixed";
6143
+ tempDiv.style.right = "0";
6144
+ tempDiv.style.bottom = "0";
6145
+ tempDiv.style.width = "0";
6146
+ tempDiv.style.height = "0";
6147
+ tempDiv.style.overflow = "hidden";
6148
+ document.body.appendChild(tempDiv);
6149
+ // 根据类型填充内容
6150
+ if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5 || type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON) tempDiv.innerHTML = content;
6151
+ else if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
6152
+ const img = new Image();
6153
+ img.src = content.startsWith("data:image") ? content : `data:image/png;base64,${content}`;
6154
+ tempDiv.appendChild(img);
6155
+ // 等待图片加载
6156
+ await new Promise((resolve)=>{
6157
+ img.onload = resolve;
6158
+ img.onerror = ()=>{
6159
+ tempDiv.innerHTML = "<p>加载失败,请检查数据</p>";
6160
+ resolve(void 0);
6161
+ };
6162
+ });
6163
+ }
6164
+ // 临时显示内容并打印
6165
+ tempDiv.style.width = "100%";
6166
+ tempDiv.style.height = "100%";
6167
+ tempDiv.style.overflow = "visible";
6168
+ // 使用 window.print() 直接打印当前页面
6169
+ window.print();
6170
+ // 打印完成后移除临时元素
6171
+ document.body.removeChild(tempDiv);
6172
+ }
6152
6173
  const createPrint = ()=>{
6153
6174
  /**
6154
6175
  * 打印主步骤
@@ -8605,6 +8626,137 @@ const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_
8605
8626
  });
8606
8627
  const dml_button_exports_ = dml_buttonvue_type_script_setup_true_lang_ts;
8607
8628
  /* ESM default export */ const dml_button = dml_button_exports_;
8629
+ function formatSize(val) {
8630
+ if ('string' == typeof val) return val;
8631
+ if ('number' == typeof val) return `${val}px`;
8632
+ return '48px';
8633
+ }
8634
+ function useAvatarSize(width, height) {
8635
+ const currentWidth = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(width));
8636
+ const currentHeight = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(height));
8637
+ return {
8638
+ currentWidth,
8639
+ currentHeight
8640
+ };
8641
+ }
8642
+ /**
8643
+ * 头像类型
8644
+ */ var utils_AVATAR_TYPE_CODE = /*#__PURE__*/ function(AVATAR_TYPE_CODE) {
8645
+ /**
8646
+ * 男性
8647
+ */ AVATAR_TYPE_CODE["WOMAN"] = "woman";
8648
+ /**
8649
+ * 女性
8650
+ */ AVATAR_TYPE_CODE["MAN"] = "man";
8651
+ /**
8652
+ * 默认
8653
+ */ AVATAR_TYPE_CODE["DEFAULT"] = "default";
8654
+ return AVATAR_TYPE_CODE;
8655
+ }({});
8656
+ const manvue_type_script_setup_true_lang_ts_hoisted_1 = [
8657
+ "width",
8658
+ "height"
8659
+ ];
8660
+ /* ESM default export */ const manvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8661
+ __name: 'man',
8662
+ props: {
8663
+ width: {},
8664
+ height: {}
8665
+ },
8666
+ setup (__props) {
8667
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8668
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8669
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8670
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8671
+ viewBox: "0 0 48 48",
8672
+ version: "1.1",
8673
+ xmlns: "http://www.w3.org/2000/svg",
8674
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8675
+ }, _cache[0] || (_cache[0] = [
8676
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createStaticVNode)("<defs><rect id=\"path-1\" x=\"0\" y=\"0\" width=\"48\" height=\"48\"></rect><mask id=\"mask-2\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><mask id=\"mask-4\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask></defs><g id=\"页面-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"头像\" transform=\"translate(-42.000000, -117.000000)\"><g id=\"男患者\" transform=\"translate(42.000000, 117.000000)\"><mask id=\"mask-3\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><g id=\"年龄=男-(Background/Mask)\" mask=\"url(#mask-2)\" stroke-width=\"2\" fill=\"#DCEBF9\" stroke-linejoin=\"bevel\" stroke-dasharray=\"0,0\"><use mask=\"url(#mask-4)\" xlink:href=\"#path-1\"></use></g><g id=\"编组\" mask=\"url(#mask-3)\"><g transform=\"translate(-1.411743, 8.578021)\"><path d=\"M19.539856,30.0474823 C21.2975441,32.3003545 23.3186363,34.3148989 25.6031324,36.0911155 C28.4680724,33.5403075 30.4123005,31.5257631 31.4358168,30.0474823 C31.0024567,29.3141253 30.8767889,25.8498667 31.0588134,19.6547065 L20.1176378,19.6547065 C20.4759263,25.6493496 20.2833324,29.1136082 19.539856,30.0474823 Z\" id=\"路径-4\" fill=\"#FDD1C1\"></path><path d=\"M5.14905306,34.127889 C4.49817356,35.4620317 2.78182255,40.5208549 0,49.3043585 L52.2352905,50.3631835 C49.9468828,40.6727688 47.9836164,35.2610039 46.3454911,34.127889 C44.7073659,32.994774 39.6118092,30.9742128 31.0588211,28.0662055 L25.4949168,32.5216499 L20.1176464,28.0662055 C10.7894637,30.7731851 5.79993255,32.7937463 5.14905306,34.127889 Z\" id=\"路径-2\" fill=\"#9DC1EB\"></path><path d=\"M22.554719,36.2455335 L25.7647309,32.4562326 L20.5276802,27.7749457 L18.3529663,28.5948679 L22.554719,36.2455335 Z\" id=\"路径-11\" fill=\"#FFFFFF\"></path><path d=\"M29.7641656,36.2455335 L32.8235474,32.5216476 L27.6482883,27.7749457 L25.4117827,28.7095082 L29.7641656,36.2455335 Z\" id=\"路径-11复制\" fill=\"#FFFFFF\" transform=\"translate(29.117665, 32.010240) scale(1, -1) rotate(-180.000000) translate(-29.117665, -32.010240) \"></path><path d=\"M15.4374821,11.5944405 C16.0833846,11.5107177 16.6657005,11.9448752 17.1844298,12.8969131 C17.2133992,10.124357 17.4993747,8.62538745 18.0423564,8.40000452 C18.856829,8.06193012 20.9045912,7.8289935 22.3732662,8.40000452 C23.8419413,8.97101554 24.9022032,10.3055429 26.8017679,10.3055429 C27.9579904,10.3055429 29.9406801,9.83553477 31.4089417,9.3958699 C32.3528958,9.11320672 33.0842211,8.84308544 33.2466033,8.71846492 C33.2333146,9.4913702 33.3276372,10.7844708 33.5295712,12.5977666 C33.6746791,12.7434716 33.8107459,12.7434716 33.9377716,12.5977666 C34.0779827,12.4369374 34.9743243,12.5261509 35.2941281,12.5977666 C35.408919,12.6234724 35.5207828,9.13376257 35.2449762,7.38931417 C33.6056306,6.76744305 32.9395062,6.85912003 33.2466033,7.66434511 C25.0106049,5.91910992 20.7468737,5.04649232 20.4554096,5.04649232 C20.0182135,5.04649232 16.0188989,2.19920258 15.5636872,4.74189738 C15.1084755,7.28459218 15.109232,10.3055429 15.4374821,11.5944405 Z\" id=\"路径\" fill=\"#6A6E77\"></path><path d=\"M17.556659,11.4131346 C18.5346658,11.8198791 18.1570616,14.179645 17.1990537,15.8209717 C16.2410459,17.4622984 15.792257,18.1468469 14.9174368,18.1467372 C14.3342234,18.1466641 14.0981192,17.3712841 14.2091244,15.820597 C14.2471743,15.0627441 14.5077973,14.200678 14.9909933,13.234399 C15.7157874,11.7849804 16.5786523,11.0063901 17.556659,11.4131346 Z\" id=\"路径-3复制\" fill=\"#FDD1C1\" transform=\"translate(16.155954, 14.726218) scale(1, -1) rotate(173.000000) translate(-16.155954, -14.726218) \"></path><path d=\"M35.8939204,11.4131346 C36.8719272,11.8198791 36.494323,14.179645 35.5363151,15.8209717 C34.5783073,17.4622984 34.1295184,18.1468469 33.2546982,18.1467372 C32.6714848,18.1466641 32.4353806,17.3712841 32.5463858,15.820597 C32.5844357,15.0627441 32.8450587,14.200678 33.3282547,13.234399 C34.0530487,11.7849804 34.9159137,11.0063901 35.8939204,11.4131346 Z\" id=\"路径-3复制-2\" fill=\"#FDD1C1\" transform=\"translate(34.493216, 14.726218) rotate(-7.000000) translate(-34.493216, -14.726218) \"></path><path d=\"M33.9377537,10.5289178 L33.9377537,16.6722207 C33.9377537,21.5221026 30.2393121,25.5716369 25.4093065,26.0102725 L25.4093065,26.0102725 L25.4093065,26.0102725 C20.579301,25.5716369 16.8808594,21.5221026 16.8808594,16.6722207 L16.8808594,10.5289178 C16.8808594,5.81878649 20.6991752,2.00047064 25.4093065,2.00047064 C30.1194378,2.00047064 33.9377537,5.81878649 33.9377537,10.5289178 Z\" id=\"矩形\" fill=\"#FFE6D0\"></path><path d=\"M15.6812227,9.03657485 C19.0651475,10.5538159 21.6222636,8.28013896 23.5550388,8.65835671 C25.4878141,9.03657446 29.7945013,11.0906622 31.4357952,11.0906622 C33.0770892,11.0906622 33.522772,9.73469298 33.9377294,9.37986995 C33.9244408,10.2410287 33.7883739,11.4313115 33.529529,12.9507184 C33.8904319,12.4957557 34.0708833,12.1401021 34.0708833,11.8837575 C34.0708833,7.81901115 35.2813553,8.20972731 35.2440915,7.46930179 C35.0060596,2.73963604 34.3339134,2.73963604 30.9172992,1.41648627 C27.500685,0.093336494 24.5817812,-0.433907428 21.1765077,0.403970658 C17.7316204,1.25159589 16.3625201,2.91818007 15.6812227,4.29897183 C15.3508121,4.96861802 15.3057823,8.86823969 15.6812227,9.03657485 Z\" id=\"路径\" fill=\"#6A6E77\" transform=\"translate(25.330597, 6.475359) scale(-1, 1) translate(-25.330597, -6.475359) \"></path></g></g></g></g></g>", 2)
8677
+ ]), 8, manvue_type_script_setup_true_lang_ts_hoisted_1));
8678
+ }
8679
+ });
8680
+ const man_exports_ = manvue_type_script_setup_true_lang_ts;
8681
+ /* ESM default export */ const man = man_exports_;
8682
+ const womenvue_type_script_setup_true_lang_ts_hoisted_1 = [
8683
+ "width",
8684
+ "height"
8685
+ ];
8686
+ /* ESM default export */ const womenvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8687
+ __name: 'women',
8688
+ props: {
8689
+ width: {},
8690
+ height: {}
8691
+ },
8692
+ setup (__props) {
8693
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8694
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8695
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8696
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8697
+ viewBox: "0 0 48 48",
8698
+ version: "1.1",
8699
+ xmlns: "http://www.w3.org/2000/svg",
8700
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8701
+ }, _cache[0] || (_cache[0] = [
8702
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createStaticVNode)("<defs><rect id=\"path-1\" x=\"0\" y=\"0\" width=\"48\" height=\"48\"></rect><mask id=\"mask-2\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><mask id=\"mask-4\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask></defs><g id=\"页面-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"头像\" transform=\"translate(-130.000000, -117.000000)\"><g id=\"女患者\" transform=\"translate(130.000000, 117.000000)\"><mask id=\"mask-3\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask><g id=\"年龄=女-(Background/Mask)\" mask=\"url(#mask-2)\" stroke-width=\"2\" fill=\"#FCE7F0\" stroke-linejoin=\"bevel\" stroke-dasharray=\"0,0\"><use mask=\"url(#mask-4)\" xlink:href=\"#path-1\"></use></g><g id=\"编组\" mask=\"url(#mask-3)\"><g transform=\"translate(-1.411743, 7.517029)\"><path d=\"M32.4117432,1.98297119 C28.3150644,-0.689630985 22.4781547,-0.632149577 18.4117432,1.98294485 C15.850035,3.62100053 14.2283276,6.78040767 13.1309257,9.58540821 C12.1015037,12.1923409 11.6372605,14.9881153 11.7688973,17.7878437 C12.0216292,23.4084806 11.4117432,29.0457649 11.4117432,34.6891022 C11.4117432,34.8843262 11.4117432,35.1082993 11.5630797,35.2323952 C11.6982077,35.3171761 11.8599194,35.3489815 12.0170891,35.3216858 C14.380965,35.1900231 16.4739487,34.7814201 18.756103,34.4015656 C21.601229,33.9293958 24.6688201,34.0640855 27.5487537,33.8839951 C29.2633961,33.784113 31.0658122,33.5071668 32.7804546,33.5813217 C33.3267794,33.6055356 38.1105268,34.3152988 38.1317139,34.610405 C37.6746777,28.3511286 37.9985378,22.1766028 37.9213562,15.9218664 C37.8593082,10.8990088 36.9488111,4.94311261 32.4117432,1.98297119 Z\" id=\"Path\" fill=\"#6A6E77\" fill-rule=\"nonzero\"></path><path d=\"M19.9117432,28.9829712 C19.8029955,29.810802 19.7775764,30.8098762 19.539856,31.1084747 C21.2975441,33.361347 23.3186364,35.3758912 25.6031327,37.1521072 C28.4680725,34.6012998 30.4123005,32.5867556 31.4358168,31.1084747 C31.0024567,30.3751177 30.8767891,26.9108589 31.058814,20.7156982 L20.1176378,20.7156982 C20.2479871,24.19004 20.1793556,26.9457976 19.9117432,28.9829712 Z\" id=\"路径-4\" fill=\"#FDD1C1\" fill-rule=\"evenodd\"></path><path d=\"M5.1490531,35.1888199 C4.49817363,36.5229626 2.7818226,41.5817858 0,50.3652897 L52.2352905,51.4241142 C49.9468818,41.7336996 47.9836148,36.3219349 46.3454895,35.1888199 C44.7073642,34.0557049 39.611808,32.0351437 31.0588207,29.1271362 C30.6274357,32.0974325 28.7728011,33.5825806 25.4949169,33.5825806 C22.4387452,33.5825806 20.5776873,32.0493774 19.9117432,28.9829712 C10.7208292,31.786061 5.79993256,33.8546772 5.1490531,35.1888199 Z\" id=\"路径-2\" fill=\"#E9A9D2\" fill-rule=\"evenodd\"></path><path d=\"M31.1971865,28.9829712 C31.6834437,28.9829712 33.6294901,29.5343028 34.3456192,30.4244784 C36.8399134,33.5249807 33.7578571,35.9829712 31.1971855,35.9829712 C27.966253,35.9829712 26.1036394,34.6273296 25.3877754,33.4386492 C24.6719115,34.627815 23.1426761,35.9829712 19.9117436,35.9829712 C17.3510721,35.9829712 14.4362248,33.4386492 16.4117463,30.9829712 C17.1278754,30.0927956 18.9117484,28.9829712 19.9117484,28.9829712 C20.9117503,32.4829712 22.7562027,32.736654 25.3790264,32.8452811 C28.9344084,32.6897225 29.9117451,32.4829712 31.1971865,28.9829712 Z\" id=\"Combined-Shape\" fill=\"#FFFFFF\" fill-rule=\"nonzero\"></path><path d=\"M17.556659,12.4740653 C18.5346658,12.8808099 18.1570616,15.2405757 17.1990537,16.8819024 C16.2410459,18.5232291 15.792257,19.2077777 14.9174368,19.207668 C14.3342234,19.2075949 14.0981192,18.4322148 14.2091244,16.8815278 C14.2471743,16.1236748 14.5077973,15.2616088 14.9909933,14.2953297 C15.7157874,12.8459112 16.5786523,12.0673208 17.556659,12.4740653 Z\" id=\"路径-3复制\" fill=\"#FDD1C1\" fill-rule=\"evenodd\" transform=\"translate(16.155954, 15.787149) scale(1, -1) rotate(173.000000) translate(-16.155954, -15.787149) \"></path><path d=\"M35.8939204,12.4740653 C36.8719272,12.8808099 36.494323,15.2405757 35.5363151,16.8819024 C34.5783073,18.5232291 34.1295184,19.2077777 33.2546982,19.207668 C32.6714848,19.2075949 32.4353806,18.4322148 32.5463858,16.8815278 C32.5844357,16.1236748 32.8450587,15.2616088 33.3282547,14.2953297 C34.0530487,12.8459112 34.9159137,12.0673208 35.8939204,12.4740653 Z\" id=\"路径-3复制-2\" fill=\"#FDD1C1\" fill-rule=\"evenodd\" transform=\"translate(34.493216, 15.787149) rotate(-7.000000) translate(-34.493216, -15.787149) \"></path><path d=\"M33.9377537,11.5898485 L33.9377537,17.7331514 C33.9377537,22.5830333 30.2393121,26.6325677 25.4093065,27.0712032 L25.4093065,27.0712032 L25.4093065,27.0712032 C20.579301,26.6325677 16.8808594,22.5830333 16.8808594,17.7331514 L16.8808594,11.5898485 C16.8808594,6.87971722 20.6991752,3.06140137 25.4093065,3.06140137 C30.1194378,3.06140137 33.9377537,6.87971722 33.9377537,11.5898485 Z\" id=\"矩形\" fill=\"#FFE6DC\" fill-rule=\"evenodd\"></path><path d=\"M24.6733503,11.6913671 C22.024538,13.5903753 19.9624601,14.3568758 16.9117494,14.9829712 C16.4117432,10.9829712 16.5155237,6.0384028 20.4117494,3.98291373 C22.5285108,2.84913337 27.0318227,1.99650967 29.4117489,2.78245926 C29.3460476,3.48205054 29.2376083,4.17663479 29.0870829,4.86204338 C28.4720778,7.62988853 27.1290796,9.98033571 24.6733503,11.6913671 Z\" id=\"Path\" fill=\"#6A6E77\" fill-rule=\"nonzero\"></path><path d=\"M29.835444,10.923974 C27.3903863,12.6647315 25.5253999,12.4089894 22.7093591,12.9829102 C22.2093315,11.4829102 22.3155814,9.07035065 23.209374,7.48291016 C24.2223651,5.72223103 24.8806003,4.81518441 26.6537957,3.88621545 C28.6077293,2.84691679 32.0124958,2.03702128 34.2093506,2.75747502 C34.1487033,3.39876699 34.048605,4.03546923 33.9096584,4.66376042 C33.3419615,7.20095181 32.1022711,9.35552847 29.835444,10.923974 Z\" id=\"Path\" fill=\"#6A6E77\" fill-rule=\"nonzero\" transform=\"translate(28.310537, 7.732910) scale(1, -1) rotate(-180.000000) translate(-28.310537, -7.732910) \"></path></g></g></g></g></g>", 2)
8703
+ ]), 8, womenvue_type_script_setup_true_lang_ts_hoisted_1));
8704
+ }
8705
+ });
8706
+ const women_exports_ = womenvue_type_script_setup_true_lang_ts;
8707
+ /* ESM default export */ const women = women_exports_;
8708
+ const defaultvue_type_script_setup_true_lang_ts_hoisted_1 = [
8709
+ "width",
8710
+ "height"
8711
+ ];
8712
+ /* ESM default export */ const defaultvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8713
+ __name: 'default',
8714
+ props: {
8715
+ width: {},
8716
+ height: {}
8717
+ },
8718
+ setup (__props) {
8719
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8720
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8721
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8722
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8723
+ viewBox: "0 0 48 48",
8724
+ version: "1.1",
8725
+ xmlns: "http://www.w3.org/2000/svg",
8726
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8727
+ }, _cache[0] || (_cache[0] = [
8728
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createStaticVNode)("<defs><path d=\"M24,48 C37.254834,48 48,37.254834 48,24 C48,10.745166 37.254834,0 24,0 C10.745166,0 0,10.745166 0,24 C0,37.254834 10.745166,48 24,48 Z\" id=\"path-1\"></path><mask id=\"mask-2\" maskContentUnits=\"userSpaceOnUse\" maskUnits=\"objectBoundingBox\" x=\"0\" y=\"0\" width=\"48\" height=\"48\" fill=\"white\"><use xlink:href=\"#path-1\"></use></mask></defs><g id=\"页面-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"头像\" transform=\"translate(-226.000000, -117.000000)\"><g id=\"默认\" transform=\"translate(226.000000, 117.000000)\"><path d=\"M24,40 C32.836556,40 40,32.836556 40,24 C40,15.163444 32.836556,8 24,8 C15.163444,8 8,15.163444 8,24 C8,32.836556 15.163444,40 24,40 Z\" id=\"Ellipse-103\" fill=\"#70B0ED\"></path><path d=\"M40.9705649,7.02943832 C45.4714385,11.5303119 48,17.6348038 48,24 C48,30.3651962 45.4714385,36.4696913 40.9705649,40.9705649 C36.4696913,45.4714385 30.3651962,48 24,48 C17.6348038,48 11.5303119,45.4714385 7.02943832,40.9705649 C2.52856472,36.4696913 0,30.3651962 0,24 C0,17.6348038 2.52856472,11.5303119 7.02943832,7.02943832 C11.5303119,2.52856472 17.6348038,0 24,0 C30.3651962,0 36.4696913,2.52856472 40.9705649,7.02943832 Z M21,25.5 C18.613054,25.5 16.3238672,26.448212 14.6360398,28.1360395 C12.9482123,29.823867 12,32.1130506 12,34.5 L36,34.5 L35.9849989,33.9719988 C35.8503218,31.6803201 34.8450201,29.5267267 33.1747819,27.9518511 C31.5045437,26.3769755 29.2956342,25.4998708 27,25.5 L21,25.5 Z M19.7573588,12.2573601 C18.6321404,13.3825785 18,14.9087023 18,16.5 C18,18.0913004 18.6321404,19.6174252 19.7573588,20.7426436 C20.8825772,21.867862 22.408701,22.5 24,22.5 C25.591299,22.5 27.1174228,21.867862 28.2426412,20.7426436 C29.3678596,19.6174252 30,18.0913004 30,16.5 C30,14.9087023 29.3678596,13.3825785 28.2426412,12.2573601 C27.1174228,11.1321417 25.591299,10.5 24,10.5 C22.408701,10.5 20.8825772,11.1321417 19.7573588,12.2573601 Z\" id=\"Vector\" fill=\"#DCEBF9\"></path><use id=\"Ellipse-104\" mask=\"url(#mask-2)\" stroke-width=\"2\" stroke-dasharray=\"0,0\" xlink:href=\"#path-1\"></use></g></g></g>", 2)
8729
+ ]), 8, defaultvue_type_script_setup_true_lang_ts_hoisted_1));
8730
+ }
8731
+ });
8732
+ const default_exports_ = defaultvue_type_script_setup_true_lang_ts;
8733
+ /* ESM default export */ const composable_default = default_exports_;
8734
+ /* ESM default export */ const pro_avatarvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8735
+ __name: 'index',
8736
+ props: {
8737
+ type: {},
8738
+ width: {},
8739
+ height: {}
8740
+ },
8741
+ setup (__props) {
8742
+ const props = __props;
8743
+ const avatarType = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>props.type || utils_AVATAR_TYPE_CODE.DEFAULT);
8744
+ const avatarComponent = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
8745
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.MAN) return man;
8746
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.WOMAN) return women;
8747
+ return composable_default;
8748
+ });
8749
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(avatarComponent.value), {
8750
+ width: props.width,
8751
+ height: props.height
8752
+ }, null, 8, [
8753
+ "width",
8754
+ "height"
8755
+ ]));
8756
+ }
8757
+ });
8758
+ const pro_avatar_exports_ = pro_avatarvue_type_script_setup_true_lang_ts;
8759
+ /* ESM default export */ const pro_avatar = pro_avatar_exports_;
8608
8760
  const Tablevue_type_script_setup_true_lang_tsx_hoisted_1 = {
8609
8761
  class: "relative mb-3 mt-2 overflow-hidden pr-2 pl-2"
8610
8762
  };
@@ -9304,4 +9456,4 @@ const form_design_render_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(f
9304
9456
  ]);
9305
9457
  /* ESM default export */ const form_design_render = form_design_render_exports_;
9306
9458
  /** components **/ /** hooks ** */ var __webpack_exports__COMPONENT_CODE = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.COMPONENT_CODE;
9307
- export { access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, pro_table_v2 as ProTableV2, tag_select as TagSelect, Title, user_select as UserSelect, convertToSpellNo, convertToWbNo, debounce, decimalCount, formatDecimalNumber, getSystemTime, isNumber, print, queryDataSetByCodeSystemCodes, queryParamListByNos, use_app_config as useAppConfigData, useColumnConfig, useDataChangeDetector, use_direction_select as useDirectionSelect, useEditableTable, use_fetch_dataset as useFetchDataset, useFetchParams, useFetchSystemTiem, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
9459
+ export { utils_AVATAR_TYPE_CODE as AVATAR_TYPE_CODE, access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_avatar as ProAvatar, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, pro_table_v2 as ProTableV2, tag_select as TagSelect, Title, user_select as UserSelect, convertToSpellNo, convertToWbNo, debounce, decimalCount, formatDecimalNumber, getSystemTime, isNumber, print, queryDataSetByCodeSystemCodes, queryParamListByNos, use_app_config as useAppConfigData, useColumnConfig, useDataChangeDetector, use_direction_select as useDirectionSelect, useEditableTable, use_fetch_dataset as useFetchDataset, useFetchParams, useFetchSystemTiem, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.4-beta.13",
3
+ "version": "0.0.4-beta.14",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "src/*",