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

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.
@@ -3,3 +3,4 @@ export { default as FlagSelect } from './flag-select/index.vue';
3
3
  export { default as HospitalSelect } from './hospital-select/index.vue';
4
4
  export { default as TagSelect } from './tag-select/index.vue';
5
5
  export { default as UserSelect } from './user-select/index.vue';
6
+ export type { TagGroupInfo } from './tag-select/api.ts';
@@ -5,6 +5,12 @@ interface TagInfo {
5
5
  tagId: string;
6
6
  tagNameDisplay: string;
7
7
  sort: number;
8
+ tagCssList?: {
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)({
@@ -4555,6 +4517,7 @@ const TAG_MARGIN = 1; // 1rem
4555
4517
  bizId: {
4556
4518
  default: ''
4557
4519
  },
4520
+ tagList: {},
4558
4521
  disabled: {
4559
4522
  type: Boolean,
4560
4523
  default: false
@@ -4571,7 +4534,7 @@ const TAG_MARGIN = 1; // 1rem
4571
4534
  const attrs = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs)();
4572
4535
  const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(true);
4573
4536
  const props = __props;
4574
- const tableData = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
4537
+ const tableData = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(props.tagList || []);
4575
4538
  const selectValue = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('');
4576
4539
  const selectVisible = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
4577
4540
  const SelectRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
@@ -4587,7 +4550,11 @@ const TAG_MARGIN = 1; // 1rem
4587
4550
  const map = new Map();
4588
4551
  tableData.value.forEach((group)=>{
4589
4552
  group.tagList.forEach((tag)=>{
4590
- map.set(tag.tagId, tag.tagNameDisplay);
4553
+ map.set(tag.tagId, {
4554
+ tagNameDisplay: tag.tagNameDisplay,
4555
+ background: (tag?.tagCssList || []).find((item)=>item.cssTypeCode === BACKGROUND_COLOR)?.cssValue || '',
4556
+ color: (tag?.tagCssList || []).find((item)=>item.cssTypeCode === FONT_COLOR)?.cssValue || ''
4557
+ });
4591
4558
  });
4592
4559
  });
4593
4560
  return map;
@@ -4613,7 +4580,7 @@ const TAG_MARGIN = 1; // 1rem
4613
4580
  size: props.tagSize,
4614
4581
  disableTransitions: true,
4615
4582
  class: 'mr-4'
4616
- }, ()=>allTagsMap.value.get(item) || item);
4583
+ }, ()=>allTagsMap.value.get(item)?.tagNameDisplay || item);
4617
4584
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.render)(vnode, tagContainer);
4618
4585
  const width = tagContainer.firstElementChild?.getBoundingClientRect().width || 0;
4619
4586
  document.body.removeChild(tagContainer);
@@ -4667,11 +4634,12 @@ const TAG_MARGIN = 1; // 1rem
4667
4634
  selectVisible.value = false;
4668
4635
  };
4669
4636
  async function fetchData() {
4637
+ if (!props.bizIdTypeCode) return;
4670
4638
  loading.value = true;
4671
4639
  let [, result] = await queryTagGroupByExampleV1({
4672
4640
  bizIdTypeCode: props.bizIdTypeCode,
4673
4641
  bizId: props.bizId,
4674
- enabledFlag: 1
4642
+ enabledFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES
4675
4643
  });
4676
4644
  loading.value = false;
4677
4645
  if (result?.success) {
@@ -4692,6 +4660,9 @@ const TAG_MARGIN = 1; // 1rem
4692
4660
  if (containerRef.value) calcMaxNum(containerRef.value);
4693
4661
  }
4694
4662
  });
4663
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>props.tagList, ()=>{
4664
+ tableData.value = props.tagList || [];
4665
+ });
4695
4666
  /**
4696
4667
  *
4697
4668
  * @param value 下拉框选择
@@ -4714,6 +4685,10 @@ const TAG_MARGIN = 1; // 1rem
4714
4685
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
4715
4686
  ] : []).slice(0, 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), {
4716
4687
  key: item,
4688
+ style: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeStyle)({
4689
+ background: allTagsMap.value.get(item)?.background,
4690
+ color: allTagsMap.value.get(item)?.color
4691
+ }),
4717
4692
  closable: !props.disabled,
4718
4693
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
4719
4694
  'mr-4'
@@ -4723,10 +4698,11 @@ const TAG_MARGIN = 1; // 1rem
4723
4698
  onClose: ($event)=>handleClose(item)
4724
4699
  }, {
4725
4700
  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)
4701
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
4727
4702
  ]),
4728
4703
  _: 2
4729
4704
  }, 1032, [
4705
+ "style",
4730
4706
  "closable",
4731
4707
  "size",
4732
4708
  "onClose"
@@ -4761,16 +4737,21 @@ const TAG_MARGIN = 1; // 1rem
4761
4737
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
4762
4738
  ] : []).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
4739
  key: item,
4740
+ style: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeStyle)({
4741
+ background: allTagsMap.value.get(item)?.background,
4742
+ color: allTagsMap.value.get(item)?.color
4743
+ }),
4764
4744
  closable: !props.disabled,
4765
4745
  size: props.tagSize,
4766
4746
  "disable-transitions": true,
4767
4747
  onClose: ($event)=>handleClose(item)
4768
4748
  }, {
4769
4749
  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)
4750
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
4771
4751
  ]),
4772
4752
  _: 2
4773
4753
  }, 1032, [
4754
+ "style",
4774
4755
  "closable",
4775
4756
  "size",
4776
4757
  "onClose"
@@ -4884,9 +4865,12 @@ const _hoisted_13 = {
4884
4865
  class: "w-full flex"
4885
4866
  };
4886
4867
  const _hoisted_14 = {
4887
- class: "flex-1"
4868
+ class: "text-[#555]"
4888
4869
  };
4889
4870
  const _hoisted_15 = {
4871
+ class: "flex-1"
4872
+ };
4873
+ const _hoisted_16 = {
4890
4874
  key: 1
4891
4875
  };
4892
4876
  const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
@@ -4900,7 +4884,11 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
4900
4884
  default: true
4901
4885
  }
4902
4886
  },
4903
- setup (__props, { expose: __expose }) {
4887
+ emits: [
4888
+ "avatarClick"
4889
+ ],
4890
+ setup (__props, { expose: __expose, emit: __emit }) {
4891
+ const emits = __emit;
4904
4892
  const BIZ_ID_TYPE_CODE_MAP = {
4905
4893
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.PATIENT]: PERSON,
4906
4894
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.REGISTRATION]: PERSON,
@@ -4928,9 +4916,9 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
4928
4916
  case PERSON:
4929
4917
  tagBizId.value = data.personId;
4930
4918
  break;
4931
- // case PERSON:
4932
- // tagBizId.value = data.inEncounterId;
4933
- // break;
4919
+ case __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE.IENC_ENCOUNTER:
4920
+ tagBizId.value = data.inEncounterId;
4921
+ break;
4934
4922
  default:
4935
4923
  tagBizId.value = data.personId;
4936
4924
  }
@@ -5002,22 +4990,27 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5002
4990
  }, [
5003
4991
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1, [
5004
4992
  (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
- })),
4993
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
4994
+ class: "cursor-pointer",
4995
+ onClick: _cache[0] || (_cache[0] = ($event)=>emits('avatarClick'))
4996
+ }, [
4997
+ 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, {
4998
+ key: 0,
4999
+ class: "rounded-full",
5000
+ width: 32,
5001
+ height: 32
5002
+ })) : 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, {
5003
+ key: 1,
5004
+ class: "rounded-full",
5005
+ width: 32,
5006
+ height: 32
5007
+ })) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(default_patient, {
5008
+ key: 2,
5009
+ width: 32,
5010
+ height: 32,
5011
+ class: "rounded-full"
5012
+ }))
5013
+ ]),
5021
5014
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3, [
5022
5015
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4, [
5023
5016
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
@@ -5096,21 +5089,19 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5096
5089
  ])
5097
5090
  }, [
5098
5091
  (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, [
5092
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签"), 1),
5093
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
5103
5094
  (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
5095
  key: 0,
5105
5096
  modelValue: tagIds.value,
5106
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tagIds.value = $event),
5097
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>tagIds.value = $event),
5107
5098
  tagSize: "default",
5108
5099
  bizIdTypeCode: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode),
5109
5100
  disabled: true
5110
5101
  }, null, 8, [
5111
5102
  "modelValue",
5112
5103
  "bizIdTypeCode"
5113
- ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_15, "--"))
5104
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_16, "--"))
5114
5105
  ])
5115
5106
  ])
5116
5107
  ], 2)
@@ -5513,6 +5504,12 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
5513
5504
  * type 数据源格式类型代码
5514
5505
  * @param [type='BASE64']
5515
5506
  */ function useWebPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5507
+ const isFirefox = navigator.userAgent.includes("Firefox");
5508
+ if (isFirefox) {
5509
+ // Firefox 的特殊处理
5510
+ handleFirefoxPrint(content, type);
5511
+ return;
5512
+ }
5516
5513
  // 创建隐藏的iframe
5517
5514
  const iframe = document.createElement("iframe");
5518
5515
  iframe.style.position = "fixed";
@@ -5657,6 +5654,40 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
5657
5654
  // 将容器添加到 body
5658
5655
  document.body.appendChild(container);
5659
5656
  }
5657
+ async function handleFirefoxPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5658
+ // 创建一个临时 div 用于渲染内容
5659
+ const tempDiv = document.createElement("div");
5660
+ tempDiv.style.position = "fixed";
5661
+ tempDiv.style.right = "0";
5662
+ tempDiv.style.bottom = "0";
5663
+ tempDiv.style.width = "0";
5664
+ tempDiv.style.height = "0";
5665
+ tempDiv.style.overflow = "hidden";
5666
+ document.body.appendChild(tempDiv);
5667
+ // 根据类型填充内容
5668
+ if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5 || type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON) tempDiv.innerHTML = content;
5669
+ else if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5670
+ const img = new Image();
5671
+ img.src = content.startsWith("data:image") ? content : `data:image/png;base64,${content}`;
5672
+ tempDiv.appendChild(img);
5673
+ // 等待图片加载
5674
+ await new Promise((resolve)=>{
5675
+ img.onload = resolve;
5676
+ img.onerror = ()=>{
5677
+ tempDiv.innerHTML = "<p>加载失败,请检查数据</p>";
5678
+ resolve(void 0);
5679
+ };
5680
+ });
5681
+ }
5682
+ // 临时显示内容并打印
5683
+ tempDiv.style.width = "100%";
5684
+ tempDiv.style.height = "100%";
5685
+ tempDiv.style.overflow = "visible";
5686
+ // 使用 window.print() 直接打印当前页面
5687
+ window.print();
5688
+ // 打印完成后移除临时元素
5689
+ document.body.removeChild(tempDiv);
5690
+ }
5660
5691
  const createPrint = ()=>{
5661
5692
  /**
5662
5693
  * 打印主步骤
@@ -8127,6 +8158,137 @@ const access_infovue_type_script_setup_true_lang_ts_name_accessInfo_hoisted_3 =
8127
8158
  });
8128
8159
  const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_accessInfo;
8129
8160
  /* ESM default export */ const access_info = access_info_exports_;
8161
+ function formatSize(val) {
8162
+ if ('string' == typeof val) return val;
8163
+ if ('number' == typeof val) return `${val}px`;
8164
+ return '48px';
8165
+ }
8166
+ function useAvatarSize(width, height) {
8167
+ const currentWidth = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(width));
8168
+ const currentHeight = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(height));
8169
+ return {
8170
+ currentWidth,
8171
+ currentHeight
8172
+ };
8173
+ }
8174
+ /**
8175
+ * 头像类型
8176
+ */ var utils_AVATAR_TYPE_CODE = /*#__PURE__*/ function(AVATAR_TYPE_CODE) {
8177
+ /**
8178
+ * 男性
8179
+ */ AVATAR_TYPE_CODE["WOMAN"] = "woman";
8180
+ /**
8181
+ * 女性
8182
+ */ AVATAR_TYPE_CODE["MAN"] = "man";
8183
+ /**
8184
+ * 默认
8185
+ */ AVATAR_TYPE_CODE["DEFAULT"] = "default";
8186
+ return AVATAR_TYPE_CODE;
8187
+ }({});
8188
+ const manvue_type_script_setup_true_lang_ts_hoisted_1 = [
8189
+ "width",
8190
+ "height"
8191
+ ];
8192
+ /* ESM default export */ const manvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8193
+ __name: 'man',
8194
+ props: {
8195
+ width: {},
8196
+ height: {}
8197
+ },
8198
+ setup (__props) {
8199
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8200
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8201
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8202
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8203
+ viewBox: "0 0 48 48",
8204
+ version: "1.1",
8205
+ xmlns: "http://www.w3.org/2000/svg",
8206
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8207
+ }, _cache[0] || (_cache[0] = [
8208
+ (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)
8209
+ ]), 8, manvue_type_script_setup_true_lang_ts_hoisted_1));
8210
+ }
8211
+ });
8212
+ const man_exports_ = manvue_type_script_setup_true_lang_ts;
8213
+ /* ESM default export */ const man = man_exports_;
8214
+ const womenvue_type_script_setup_true_lang_ts_hoisted_1 = [
8215
+ "width",
8216
+ "height"
8217
+ ];
8218
+ /* ESM default export */ const womenvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8219
+ __name: 'women',
8220
+ props: {
8221
+ width: {},
8222
+ height: {}
8223
+ },
8224
+ setup (__props) {
8225
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8226
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8227
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8228
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8229
+ viewBox: "0 0 48 48",
8230
+ version: "1.1",
8231
+ xmlns: "http://www.w3.org/2000/svg",
8232
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8233
+ }, _cache[0] || (_cache[0] = [
8234
+ (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)
8235
+ ]), 8, womenvue_type_script_setup_true_lang_ts_hoisted_1));
8236
+ }
8237
+ });
8238
+ const women_exports_ = womenvue_type_script_setup_true_lang_ts;
8239
+ /* ESM default export */ const women = women_exports_;
8240
+ const defaultvue_type_script_setup_true_lang_ts_hoisted_1 = [
8241
+ "width",
8242
+ "height"
8243
+ ];
8244
+ /* ESM default export */ const defaultvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8245
+ __name: 'default',
8246
+ props: {
8247
+ width: {},
8248
+ height: {}
8249
+ },
8250
+ setup (__props) {
8251
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8252
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8253
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8254
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8255
+ viewBox: "0 0 48 48",
8256
+ version: "1.1",
8257
+ xmlns: "http://www.w3.org/2000/svg",
8258
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8259
+ }, _cache[0] || (_cache[0] = [
8260
+ (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)
8261
+ ]), 8, defaultvue_type_script_setup_true_lang_ts_hoisted_1));
8262
+ }
8263
+ });
8264
+ const default_exports_ = defaultvue_type_script_setup_true_lang_ts;
8265
+ /* ESM default export */ const composable_default = default_exports_;
8266
+ /* ESM default export */ const pro_avatarvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8267
+ __name: 'index',
8268
+ props: {
8269
+ type: {},
8270
+ width: {},
8271
+ height: {}
8272
+ },
8273
+ setup (__props) {
8274
+ const props = __props;
8275
+ const avatarType = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>props.type || utils_AVATAR_TYPE_CODE.DEFAULT);
8276
+ const avatarComponent = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
8277
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.MAN) return man;
8278
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.WOMAN) return women;
8279
+ return composable_default;
8280
+ });
8281
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(avatarComponent.value), {
8282
+ width: props.width,
8283
+ height: props.height
8284
+ }, null, 8, [
8285
+ "width",
8286
+ "height"
8287
+ ]));
8288
+ }
8289
+ });
8290
+ const pro_avatar_exports_ = pro_avatarvue_type_script_setup_true_lang_ts;
8291
+ /* ESM default export */ const pro_avatar = pro_avatar_exports_;
8130
8292
  /**
8131
8293
  * [1-10008-1]根据条件生成DML脚本
8132
8294
  * @param data
@@ -8812,4 +8974,4 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
8812
8974
  const invoice_exports_ = invoicevue_type_script_setup_true_lang_ts_name_proInvoice;
8813
8975
  /* ESM default export */ const invoice = invoice_exports_;
8814
8976
  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 };
8977
+ 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,27 @@
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 type { TagGroupInfo } from './components/biz-select';
10
+ export { CopyTextWithTooltip } from './components/copy-text-with-tooltip';
11
+ export { FormDesignRender } from './components/form-design-render';
12
+ export { ProDialog } from './components/pro-dialog';
13
+ export { AccessInfo } from './components/access-info';
14
+ export { ProAvatar, AVATAR_TYPE_CODE } from './components/pro-avatar';
15
+ export { ProForm, FormUnit, convertToWbNo, convertToSpellNo, type FormDescItem, } from './components/pro-form';
16
+ export { DmlButton } from './components/dml-button/index.ts';
15
17
  /** 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";
18
+ export { default as useRequest } from './hooks/use-request';
19
+ export { default as useAppConfigData, MAIN_APP_CONFIG, } from './hooks/use-app-config';
20
+ export type { PreferenceData } from './hooks/use-app-config';
21
+ export { default as useDirectionSelect } from './hooks/use-direction-select';
22
+ export { useEditableTable } from './hooks/use-editable-table';
23
+ export type { TableRef } from './hooks/use-editable-table';
24
+ export * from './hooks/use-fetch-data/index.ts';
25
+ export { useColumnConfig, useFormConfig } from './hooks/use-column&form-config';
26
+ export { useDataChangeDetector } from './hooks/use-data-change-detector';
27
+ 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)({
@@ -5047,6 +5009,7 @@ const TAG_MARGIN = 1; // 1rem
5047
5009
  bizId: {
5048
5010
  default: ''
5049
5011
  },
5012
+ tagList: {},
5050
5013
  disabled: {
5051
5014
  type: Boolean,
5052
5015
  default: false
@@ -5063,7 +5026,7 @@ const TAG_MARGIN = 1; // 1rem
5063
5026
  const attrs = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs)();
5064
5027
  const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(true);
5065
5028
  const props = __props;
5066
- const tableData = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
5029
+ const tableData = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(props.tagList || []);
5067
5030
  const selectValue = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('');
5068
5031
  const selectVisible = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
5069
5032
  const SelectRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
@@ -5079,7 +5042,11 @@ const TAG_MARGIN = 1; // 1rem
5079
5042
  const map = new Map();
5080
5043
  tableData.value.forEach((group)=>{
5081
5044
  group.tagList.forEach((tag)=>{
5082
- map.set(tag.tagId, tag.tagNameDisplay);
5045
+ map.set(tag.tagId, {
5046
+ tagNameDisplay: tag.tagNameDisplay,
5047
+ background: (tag?.tagCssList || []).find((item)=>item.cssTypeCode === BACKGROUND_COLOR)?.cssValue || '',
5048
+ color: (tag?.tagCssList || []).find((item)=>item.cssTypeCode === FONT_COLOR)?.cssValue || ''
5049
+ });
5083
5050
  });
5084
5051
  });
5085
5052
  return map;
@@ -5105,7 +5072,7 @@ const TAG_MARGIN = 1; // 1rem
5105
5072
  size: props.tagSize,
5106
5073
  disableTransitions: true,
5107
5074
  class: 'mr-4'
5108
- }, ()=>allTagsMap.value.get(item) || item);
5075
+ }, ()=>allTagsMap.value.get(item)?.tagNameDisplay || item);
5109
5076
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.render)(vnode, tagContainer);
5110
5077
  const width = tagContainer.firstElementChild?.getBoundingClientRect().width || 0;
5111
5078
  document.body.removeChild(tagContainer);
@@ -5159,11 +5126,12 @@ const TAG_MARGIN = 1; // 1rem
5159
5126
  selectVisible.value = false;
5160
5127
  };
5161
5128
  async function fetchData() {
5129
+ if (!props.bizIdTypeCode) return;
5162
5130
  loading.value = true;
5163
5131
  let [, result] = await queryTagGroupByExampleV1({
5164
5132
  bizIdTypeCode: props.bizIdTypeCode,
5165
5133
  bizId: props.bizId,
5166
- enabledFlag: 1
5134
+ enabledFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES
5167
5135
  });
5168
5136
  loading.value = false;
5169
5137
  if (result?.success) {
@@ -5184,6 +5152,9 @@ const TAG_MARGIN = 1; // 1rem
5184
5152
  if (containerRef.value) calcMaxNum(containerRef.value);
5185
5153
  }
5186
5154
  });
5155
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>props.tagList, ()=>{
5156
+ tableData.value = props.tagList || [];
5157
+ });
5187
5158
  /**
5188
5159
  *
5189
5160
  * @param value 下拉框选择
@@ -5206,6 +5177,10 @@ const TAG_MARGIN = 1; // 1rem
5206
5177
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
5207
5178
  ] : []).slice(0, 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), {
5208
5179
  key: item,
5180
+ style: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeStyle)({
5181
+ background: allTagsMap.value.get(item)?.background,
5182
+ color: allTagsMap.value.get(item)?.color
5183
+ }),
5209
5184
  closable: !props.disabled,
5210
5185
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
5211
5186
  'mr-4'
@@ -5215,10 +5190,11 @@ const TAG_MARGIN = 1; // 1rem
5215
5190
  onClose: ($event)=>handleClose(item)
5216
5191
  }, {
5217
5192
  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)
5193
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
5219
5194
  ]),
5220
5195
  _: 2
5221
5196
  }, 1032, [
5197
+ "style",
5222
5198
  "closable",
5223
5199
  "size",
5224
5200
  "onClose"
@@ -5253,16 +5229,21 @@ const TAG_MARGIN = 1; // 1rem
5253
5229
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
5254
5230
  ] : []).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
5231
  key: item,
5232
+ style: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeStyle)({
5233
+ background: allTagsMap.value.get(item)?.background,
5234
+ color: allTagsMap.value.get(item)?.color
5235
+ }),
5256
5236
  closable: !props.disabled,
5257
5237
  size: props.tagSize,
5258
5238
  "disable-transitions": true,
5259
5239
  onClose: ($event)=>handleClose(item)
5260
5240
  }, {
5261
5241
  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)
5242
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item)?.tagNameDisplay || item), 1)
5263
5243
  ]),
5264
5244
  _: 2
5265
5245
  }, 1032, [
5246
+ "style",
5266
5247
  "closable",
5267
5248
  "size",
5268
5249
  "onClose"
@@ -5376,9 +5357,12 @@ const _hoisted_13 = {
5376
5357
  class: "w-full flex"
5377
5358
  };
5378
5359
  const _hoisted_14 = {
5379
- class: "flex-1"
5360
+ class: "text-[#555]"
5380
5361
  };
5381
5362
  const _hoisted_15 = {
5363
+ class: "flex-1"
5364
+ };
5365
+ const _hoisted_16 = {
5382
5366
  key: 1
5383
5367
  };
5384
5368
  const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
@@ -5392,7 +5376,11 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5392
5376
  default: true
5393
5377
  }
5394
5378
  },
5395
- setup (__props, { expose: __expose }) {
5379
+ emits: [
5380
+ "avatarClick"
5381
+ ],
5382
+ setup (__props, { expose: __expose, emit: __emit }) {
5383
+ const emits = __emit;
5396
5384
  const BIZ_ID_TYPE_CODE_MAP = {
5397
5385
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.PATIENT]: PERSON,
5398
5386
  [__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BANNER_CODE.REGISTRATION]: PERSON,
@@ -5420,9 +5408,9 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5420
5408
  case PERSON:
5421
5409
  tagBizId.value = data.personId;
5422
5410
  break;
5423
- // case PERSON:
5424
- // tagBizId.value = data.inEncounterId;
5425
- // break;
5411
+ case __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE.IENC_ENCOUNTER:
5412
+ tagBizId.value = data.inEncounterId;
5413
+ break;
5426
5414
  default:
5427
5415
  tagBizId.value = data.personId;
5428
5416
  }
@@ -5494,22 +5482,27 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5494
5482
  }, [
5495
5483
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1, [
5496
5484
  (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
- })),
5485
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
5486
+ class: "cursor-pointer",
5487
+ onClick: _cache[0] || (_cache[0] = ($event)=>emits('avatarClick'))
5488
+ }, [
5489
+ 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, {
5490
+ key: 0,
5491
+ class: "rounded-full",
5492
+ width: 32,
5493
+ height: 32
5494
+ })) : 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, {
5495
+ key: 1,
5496
+ class: "rounded-full",
5497
+ width: 32,
5498
+ height: 32
5499
+ })) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(default_patient, {
5500
+ key: 2,
5501
+ width: 32,
5502
+ height: 32,
5503
+ class: "rounded-full"
5504
+ }))
5505
+ ]),
5513
5506
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3, [
5514
5507
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4, [
5515
5508
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
@@ -5588,21 +5581,19 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5588
5581
  ])
5589
5582
  }, [
5590
5583
  (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, [
5584
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签"), 1),
5585
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
5595
5586
  (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
5587
  key: 0,
5597
5588
  modelValue: tagIds.value,
5598
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tagIds.value = $event),
5589
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>tagIds.value = $event),
5599
5590
  tagSize: "default",
5600
5591
  bizIdTypeCode: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode),
5601
5592
  disabled: true
5602
5593
  }, null, 8, [
5603
5594
  "modelValue",
5604
5595
  "bizIdTypeCode"
5605
- ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_15, "--"))
5596
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_16, "--"))
5606
5597
  ])
5607
5598
  ])
5608
5599
  ], 2)
@@ -6005,6 +5996,12 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
6005
5996
  * type 数据源格式类型代码
6006
5997
  * @param [type='BASE64']
6007
5998
  */ function useWebPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
5999
+ const isFirefox = navigator.userAgent.includes("Firefox");
6000
+ if (isFirefox) {
6001
+ // Firefox 的特殊处理
6002
+ handleFirefoxPrint(content, type);
6003
+ return;
6004
+ }
6008
6005
  // 创建隐藏的iframe
6009
6006
  const iframe = document.createElement("iframe");
6010
6007
  iframe.style.position = "fixed";
@@ -6149,6 +6146,40 @@ var constant_DATA_SOURCE_CONTENT_TYPE_CODE = /*#__PURE__*/ function(DATA_SOURCE_
6149
6146
  // 将容器添加到 body
6150
6147
  document.body.appendChild(container);
6151
6148
  }
6149
+ async function handleFirefoxPrint(content, type = constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
6150
+ // 创建一个临时 div 用于渲染内容
6151
+ const tempDiv = document.createElement("div");
6152
+ tempDiv.style.position = "fixed";
6153
+ tempDiv.style.right = "0";
6154
+ tempDiv.style.bottom = "0";
6155
+ tempDiv.style.width = "0";
6156
+ tempDiv.style.height = "0";
6157
+ tempDiv.style.overflow = "hidden";
6158
+ document.body.appendChild(tempDiv);
6159
+ // 根据类型填充内容
6160
+ if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5 || type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON) tempDiv.innerHTML = content;
6161
+ else if (type === constant_DATA_SOURCE_CONTENT_TYPE_CODE.BASE64) {
6162
+ const img = new Image();
6163
+ img.src = content.startsWith("data:image") ? content : `data:image/png;base64,${content}`;
6164
+ tempDiv.appendChild(img);
6165
+ // 等待图片加载
6166
+ await new Promise((resolve)=>{
6167
+ img.onload = resolve;
6168
+ img.onerror = ()=>{
6169
+ tempDiv.innerHTML = "<p>加载失败,请检查数据</p>";
6170
+ resolve(void 0);
6171
+ };
6172
+ });
6173
+ }
6174
+ // 临时显示内容并打印
6175
+ tempDiv.style.width = "100%";
6176
+ tempDiv.style.height = "100%";
6177
+ tempDiv.style.overflow = "visible";
6178
+ // 使用 window.print() 直接打印当前页面
6179
+ window.print();
6180
+ // 打印完成后移除临时元素
6181
+ document.body.removeChild(tempDiv);
6182
+ }
6152
6183
  const createPrint = ()=>{
6153
6184
  /**
6154
6185
  * 打印主步骤
@@ -8605,6 +8636,137 @@ const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_
8605
8636
  });
8606
8637
  const dml_button_exports_ = dml_buttonvue_type_script_setup_true_lang_ts;
8607
8638
  /* ESM default export */ const dml_button = dml_button_exports_;
8639
+ function formatSize(val) {
8640
+ if ('string' == typeof val) return val;
8641
+ if ('number' == typeof val) return `${val}px`;
8642
+ return '48px';
8643
+ }
8644
+ function useAvatarSize(width, height) {
8645
+ const currentWidth = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(width));
8646
+ const currentHeight = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>formatSize(height));
8647
+ return {
8648
+ currentWidth,
8649
+ currentHeight
8650
+ };
8651
+ }
8652
+ /**
8653
+ * 头像类型
8654
+ */ var utils_AVATAR_TYPE_CODE = /*#__PURE__*/ function(AVATAR_TYPE_CODE) {
8655
+ /**
8656
+ * 男性
8657
+ */ AVATAR_TYPE_CODE["WOMAN"] = "woman";
8658
+ /**
8659
+ * 女性
8660
+ */ AVATAR_TYPE_CODE["MAN"] = "man";
8661
+ /**
8662
+ * 默认
8663
+ */ AVATAR_TYPE_CODE["DEFAULT"] = "default";
8664
+ return AVATAR_TYPE_CODE;
8665
+ }({});
8666
+ const manvue_type_script_setup_true_lang_ts_hoisted_1 = [
8667
+ "width",
8668
+ "height"
8669
+ ];
8670
+ /* ESM default export */ const manvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8671
+ __name: 'man',
8672
+ props: {
8673
+ width: {},
8674
+ height: {}
8675
+ },
8676
+ setup (__props) {
8677
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8678
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8679
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8680
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8681
+ viewBox: "0 0 48 48",
8682
+ version: "1.1",
8683
+ xmlns: "http://www.w3.org/2000/svg",
8684
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8685
+ }, _cache[0] || (_cache[0] = [
8686
+ (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)
8687
+ ]), 8, manvue_type_script_setup_true_lang_ts_hoisted_1));
8688
+ }
8689
+ });
8690
+ const man_exports_ = manvue_type_script_setup_true_lang_ts;
8691
+ /* ESM default export */ const man = man_exports_;
8692
+ const womenvue_type_script_setup_true_lang_ts_hoisted_1 = [
8693
+ "width",
8694
+ "height"
8695
+ ];
8696
+ /* ESM default export */ const womenvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8697
+ __name: 'women',
8698
+ props: {
8699
+ width: {},
8700
+ height: {}
8701
+ },
8702
+ setup (__props) {
8703
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8704
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8705
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8706
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8707
+ viewBox: "0 0 48 48",
8708
+ version: "1.1",
8709
+ xmlns: "http://www.w3.org/2000/svg",
8710
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8711
+ }, _cache[0] || (_cache[0] = [
8712
+ (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)
8713
+ ]), 8, womenvue_type_script_setup_true_lang_ts_hoisted_1));
8714
+ }
8715
+ });
8716
+ const women_exports_ = womenvue_type_script_setup_true_lang_ts;
8717
+ /* ESM default export */ const women = women_exports_;
8718
+ const defaultvue_type_script_setup_true_lang_ts_hoisted_1 = [
8719
+ "width",
8720
+ "height"
8721
+ ];
8722
+ /* ESM default export */ const defaultvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8723
+ __name: 'default',
8724
+ props: {
8725
+ width: {},
8726
+ height: {}
8727
+ },
8728
+ setup (__props) {
8729
+ const { currentWidth, currentHeight } = useAvatarSize(__props.width, __props.height);
8730
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("svg", {
8731
+ width: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentWidth),
8732
+ height: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(currentHeight),
8733
+ viewBox: "0 0 48 48",
8734
+ version: "1.1",
8735
+ xmlns: "http://www.w3.org/2000/svg",
8736
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
8737
+ }, _cache[0] || (_cache[0] = [
8738
+ (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)
8739
+ ]), 8, defaultvue_type_script_setup_true_lang_ts_hoisted_1));
8740
+ }
8741
+ });
8742
+ const default_exports_ = defaultvue_type_script_setup_true_lang_ts;
8743
+ /* ESM default export */ const composable_default = default_exports_;
8744
+ /* ESM default export */ const pro_avatarvue_type_script_setup_true_lang_ts = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
8745
+ __name: 'index',
8746
+ props: {
8747
+ type: {},
8748
+ width: {},
8749
+ height: {}
8750
+ },
8751
+ setup (__props) {
8752
+ const props = __props;
8753
+ const avatarType = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>props.type || utils_AVATAR_TYPE_CODE.DEFAULT);
8754
+ const avatarComponent = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
8755
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.MAN) return man;
8756
+ if (avatarType.value === utils_AVATAR_TYPE_CODE.WOMAN) return women;
8757
+ return composable_default;
8758
+ });
8759
+ return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(avatarComponent.value), {
8760
+ width: props.width,
8761
+ height: props.height
8762
+ }, null, 8, [
8763
+ "width",
8764
+ "height"
8765
+ ]));
8766
+ }
8767
+ });
8768
+ const pro_avatar_exports_ = pro_avatarvue_type_script_setup_true_lang_ts;
8769
+ /* ESM default export */ const pro_avatar = pro_avatar_exports_;
8608
8770
  const Tablevue_type_script_setup_true_lang_tsx_hoisted_1 = {
8609
8771
  class: "relative mb-3 mt-2 overflow-hidden pr-2 pl-2"
8610
8772
  };
@@ -9304,4 +9466,4 @@ const form_design_render_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(f
9304
9466
  ]);
9305
9467
  /* ESM default export */ const form_design_render = form_design_render_exports_;
9306
9468
  /** 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 };
9469
+ 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.15",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "src/*",