sun-biz 0.0.4-beta.39 → 0.0.4-beta.40

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.
@@ -1497,6 +1497,7 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
1497
1497
  return {
1498
1498
  ...item,
1499
1499
  ...findObj || {},
1500
+ label: item.label || findObj.label,
1500
1501
  sortable: item.sortable,
1501
1502
  ascendFlag: findObj?.ascendFlag
1502
1503
  };
@@ -1860,7 +1861,7 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
1860
1861
  const dbgrid_component_setting_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(dbgrid_component_settingvue_type_script_setup_true_lang_tsx, [
1861
1862
  [
1862
1863
  '__scopeId',
1863
- "data-v-662b8e54"
1864
+ "data-v-a780c5b2"
1864
1865
  ]
1865
1866
  ]);
1866
1867
  /* ESM default export */ const dbgrid_component_setting = dbgrid_component_setting_exports_;
@@ -2334,7 +2335,7 @@ const pro_tablevue_type_script_lang_ts_setup_true_name_ProTable_hoisted_2 = {
2334
2335
  key: 1,
2335
2336
  class: "mt-5 flex items-center justify-between"
2336
2337
  };
2337
- const SELECTION = 'selection';
2338
+ const SELECTION = "selection";
2338
2339
  /**
2339
2340
  *获取参与排序的列表 索引 是否可以拖拽
2340
2341
  */ /* ESM default export */ const pro_tablevue_type_script_lang_ts_setup_true_name_ProTable = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
@@ -2360,7 +2361,7 @@ const SELECTION = 'selection';
2360
2361
  default: 80
2361
2362
  },
2362
2363
  componentNo: {
2363
- default: ''
2364
+ default: ""
2364
2365
  },
2365
2366
  hiddenDefaultText: {
2366
2367
  type: Boolean,
@@ -2392,7 +2393,7 @@ const SELECTION = 'selection';
2392
2393
  default: true
2393
2394
  },
2394
2395
  rowKey: {
2395
- default: 'id'
2396
+ default: "id"
2396
2397
  },
2397
2398
  stripe: {
2398
2399
  type: Boolean,
@@ -2414,13 +2415,13 @@ const SELECTION = 'selection';
2414
2415
  default: ()=>({})
2415
2416
  },
2416
2417
  layout: {
2417
- default: 'total, sizes, prev, pager, next'
2418
+ default: "total, sizes, prev, pager, next"
2418
2419
  },
2419
2420
  formDisabled: {
2420
2421
  type: Boolean
2421
2422
  },
2422
2423
  dragTips: {
2423
- default: '温馨提示:您可通过拖动进行排序'
2424
+ default: "温馨提示:您可通过拖动进行排序"
2424
2425
  },
2425
2426
  isShowDragTips: {
2426
2427
  type: Boolean,
@@ -2430,7 +2431,7 @@ const SELECTION = 'selection';
2430
2431
  default: {}
2431
2432
  },
2432
2433
  dragTipsClassName: {
2433
- default: ''
2434
+ default: ""
2434
2435
  },
2435
2436
  settingIconWidth: {
2436
2437
  default: 36
@@ -2456,7 +2457,7 @@ const SELECTION = 'selection';
2456
2457
  const sortFieldList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(void 0);
2457
2458
  const exportFileFlag = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.NO);
2458
2459
  const showSetting = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
2459
- const componentDesc = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('文件');
2460
+ const componentDesc = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)("文件");
2460
2461
  let state = (0, __WEBPACK_EXTERNAL_MODULE_vue__.reactive)({
2461
2462
  // 表格数据
2462
2463
  tableData: props.data,
@@ -2483,7 +2484,7 @@ const SELECTION = 'selection';
2483
2484
  const emit = __emit;
2484
2485
  const attrs = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs)();
2485
2486
  // 提供静态数据
2486
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.provide)('hiddenDefaultText', props.hiddenDefaultText);
2487
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.provide)("hiddenDefaultText", props.hiddenDefaultText);
2487
2488
  const tableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
2488
2489
  const proTableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>tableRef.value?.proTableRef);
2489
2490
  function getDragSortData(newIndex, data, startIndexObj, sortData, childrenKey) {
@@ -2532,7 +2533,7 @@ const SELECTION = 'selection';
2532
2533
  return data;
2533
2534
  }
2534
2535
  // 生成每一行的唯一 path
2535
- function getRowPath(row, data, rowKey, parentPath = '', childrenKey) {
2536
+ function getRowPath(row, data, rowKey, parentPath = "", childrenKey) {
2536
2537
  for(let i = 0; i < data.length; i++){
2537
2538
  if (data[i][rowKey] === row[rowKey]) {
2538
2539
  const currentPath = parentPath ? `${parentPath}-${i}` : `${i}`;
@@ -2540,49 +2541,49 @@ const SELECTION = 'selection';
2540
2541
  }
2541
2542
  if (childrenKey && Array.isArray(data[i][childrenKey])) {
2542
2543
  const childPath = getRowPath(row, data[i][childrenKey], rowKey, parentPath ? `${parentPath}-${i}` : `${i}`, childrenKey);
2543
- if ('' !== childPath) return childPath;
2544
+ if ("" !== childPath) return childPath;
2544
2545
  }
2545
2546
  }
2546
- return '';
2547
+ return "";
2547
2548
  }
2548
2549
  // 获取childrenKey的安全写法
2549
2550
  function getSafeChildrenKeyFromAttrs(attrs) {
2550
- const treePropsRaw = attrs['tree-props'];
2551
- const treeProps = 'object' == typeof treePropsRaw && null !== treePropsRaw ? treePropsRaw : void 0;
2552
- if (treeProps && 'children' in treeProps) return treeProps.children;
2551
+ const treePropsRaw = attrs["tree-props"];
2552
+ const treeProps = "object" == typeof treePropsRaw && null !== treePropsRaw ? treePropsRaw : void 0;
2553
+ if (treeProps && "children" in treeProps) return treeProps.children;
2553
2554
  }
2554
2555
  // 兼容外部 row-class-name,自动适配参数类型
2555
2556
  function rowClassNameWrapper(rowOrParams, rowIndexArg) {
2556
2557
  let row, rowIndex;
2557
- if (rowOrParams && 'object' == typeof rowOrParams && 'row' in rowOrParams && 'rowIndex' in rowOrParams) {
2558
+ if (rowOrParams && "object" == typeof rowOrParams && "row" in rowOrParams && "rowIndex" in rowOrParams) {
2558
2559
  row = rowOrParams.row;
2559
2560
  rowIndex = rowOrParams.rowIndex;
2560
2561
  } else {
2561
2562
  row = rowOrParams;
2562
2563
  rowIndex = rowIndexArg;
2563
2564
  }
2564
- let externalClass = '';
2565
- const external = attrs['row-class-name'];
2566
- if ('function' == typeof external) externalClass = external({
2565
+ let externalClass = "";
2566
+ const external = attrs["row-class-name"];
2567
+ if ("function" == typeof external) externalClass = external({
2567
2568
  row,
2568
2569
  rowIndex
2569
2570
  });
2570
- else if ('string' == typeof external) externalClass = external;
2571
- let pathClass = '';
2571
+ else if ("string" == typeof external) externalClass = external;
2572
+ let pathClass = "";
2572
2573
  let childrenKey = getSafeChildrenKeyFromAttrs(attrs);
2573
- let path = getRowPath(row, state.tableData, props.rowKey, '', childrenKey);
2574
+ let path = getRowPath(row, state.tableData, props.rowKey, "", childrenKey);
2574
2575
  pathClass = `row-path-${path}`;
2575
2576
  return [
2576
2577
  externalClass,
2577
2578
  pathClass
2578
- ].filter(Boolean).join(' ');
2579
+ ].filter(Boolean).join(" ");
2579
2580
  }
2580
2581
  /***
2581
2582
  * 表格拖拽排序
2582
2583
  **/ const initDragSort = ()=>{
2583
2584
  const tbodyList = document.querySelectorAll(`#${uuid.value} tbody`);
2584
2585
  const tbody = tbodyList[tbodyList.length - 1];
2585
- let initialHTML = '';
2586
+ let initialHTML = "";
2586
2587
  let crossLevelWarned = false;
2587
2588
  // 新增:销毁旧的Sortable实例
2588
2589
  // 新增:销毁旧的Sortable实例
@@ -2591,19 +2592,19 @@ const SELECTION = 'selection';
2591
2592
  sortableInstance = null;
2592
2593
  }
2593
2594
  if (tbody) sortableInstance = __WEBPACK_EXTERNAL_MODULE_sortablejs__["default"].create(tbody, {
2594
- handle: '.cursor-move',
2595
+ handle: ".cursor-move",
2595
2596
  group: props.dragGroupName,
2596
2597
  animation: 300,
2597
2598
  scroll: true,
2598
2599
  scrollSensitivity: 80,
2599
2600
  scrollSpeed: 10,
2600
2601
  onMove (evt) {
2601
- const draggedPath = evt.dragged?.className.match(/row-path-([\d-]+)/)?.[1] || '';
2602
- const relatedPath = evt.related?.className.match(/row-path-([\d-]+)/)?.[1] || '';
2603
- const getParent = (p)=>p.split('-').slice(0, -1).join('-');
2602
+ const draggedPath = evt.dragged?.className.match(/row-path-([\d-]+)/)?.[1] || "";
2603
+ const relatedPath = evt.related?.className.match(/row-path-([\d-]+)/)?.[1] || "";
2604
+ const getParent = (p)=>p.split("-").slice(0, -1).join("-");
2604
2605
  if (draggedPath && relatedPath && getParent(draggedPath) !== getParent(relatedPath)) {
2605
2606
  if (!crossLevelWarned) {
2606
- __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning('暂不支持跨层级拖拽配置');
2607
+ __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning("暂不支持跨层级拖拽配置");
2607
2608
  crossLevelWarned = true;
2608
2609
  }
2609
2610
  return false;
@@ -2613,7 +2614,7 @@ const SELECTION = 'selection';
2613
2614
  onEnd (evt) {
2614
2615
  const { newIndex, oldIndex } = evt;
2615
2616
  if (props.dragGroupName) {
2616
- emit('drag-end', {
2617
+ emit("drag-end", {
2617
2618
  crossGroup: evt.from !== evt.to,
2618
2619
  oldIndex,
2619
2620
  newIndex
@@ -2621,11 +2622,11 @@ const SELECTION = 'selection';
2621
2622
  return;
2622
2623
  }
2623
2624
  const dragTr = evt.item;
2624
- const match = dragTr.className.split(' ').find((cls)=>cls.startsWith('row-path-'));
2625
- const fromPath = match ? match.replace('row-path-', '') : '';
2625
+ const match = dragTr.className.split(" ").find((cls)=>cls.startsWith("row-path-"));
2626
+ const fromPath = match ? match.replace("row-path-", "") : "";
2626
2627
  let childrenKey = getSafeChildrenKeyFromAttrs(attrs);
2627
2628
  const getPathByIndex = (targetIndex)=>{
2628
- let path = '';
2629
+ let path = "";
2629
2630
  let count = -1;
2630
2631
  function dfs(arr, parent) {
2631
2632
  for(let i = 0; i < arr.length; i++){
@@ -2641,13 +2642,13 @@ const SELECTION = 'selection';
2641
2642
  }
2642
2643
  return false;
2643
2644
  }
2644
- dfs(state.tableData, '');
2645
+ dfs(state.tableData, "");
2645
2646
  return path;
2646
2647
  };
2647
- if ('number' != typeof newIndex || 'number' != typeof oldIndex || newIndex === oldIndex) return;
2648
+ if ("number" != typeof newIndex || "number" != typeof oldIndex || newIndex === oldIndex) return;
2648
2649
  const newPath = getPathByIndex(newIndex);
2649
2650
  const oldPath = getPathByIndex(oldIndex);
2650
- const getParent = (p)=>p.split('-').slice(0, -1).join('-');
2651
+ const getParent = (p)=>p.split("-").slice(0, -1).join("-");
2651
2652
  if (getParent(newPath) !== getParent(oldPath)) // 这里不再需要回退DOM,onMove已阻止
2652
2653
  return;
2653
2654
  let data = getSortableResult(newIndex, oldIndex);
@@ -2660,7 +2661,7 @@ const SELECTION = 'selection';
2660
2661
  initDragSort();
2661
2662
  });
2662
2663
  }
2663
- emit('drag-end', data, {
2664
+ emit("drag-end", data, {
2664
2665
  fromPath,
2665
2666
  oldIndex,
2666
2667
  newIndex
@@ -2679,7 +2680,7 @@ const SELECTION = 'selection';
2679
2680
  });
2680
2681
  async function fetchDbgridComponent() {
2681
2682
  let [, result] = await queryDbgridComponentByExample({
2682
- componentNo: props.componentNo || ''
2683
+ componentNo: props.componentNo || ""
2683
2684
  });
2684
2685
  if (result?.success) {
2685
2686
  exportFileFlag.value = result.data.exportFileFlag;
@@ -2694,7 +2695,7 @@ const SELECTION = 'selection';
2694
2695
  }));
2695
2696
  proTableRef.value?.clearSort();
2696
2697
  serveColumns.value = column;
2697
- emit('columns-config-change', column);
2698
+ emit("columns-config-change", column);
2698
2699
  } catch (error) {
2699
2700
  console.log(error);
2700
2701
  }
@@ -2728,7 +2729,7 @@ const SELECTION = 'selection';
2728
2729
  state.pageInfo.pageNumber = 1;
2729
2730
  state.pageInfo.pageSize = val;
2730
2731
  fetchList();
2731
- } else emit('size-page-change', val);
2732
+ } else emit("size-page-change", val);
2732
2733
  };
2733
2734
  /**
2734
2735
  * 分页组件改变 当前页数 事件
@@ -2736,7 +2737,7 @@ const SELECTION = 'selection';
2736
2737
  if (props.fetchData) {
2737
2738
  state.pageInfo.pageNumber = val;
2738
2739
  fetchList();
2739
- } else emit('current-page-change', val);
2740
+ } else emit("current-page-change", val);
2740
2741
  }
2741
2742
  const selections = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
2742
2743
  // 设置当前行激活态
@@ -2759,7 +2760,7 @@ const SELECTION = 'selection';
2759
2760
  result = multiFieldSort(result, sortFieldList.value);
2760
2761
  }
2761
2762
  if (Object.keys(props.filterObj).length) return result.filter((item)=>Object.keys(props.filterObj).every((cur)=>!props.filterObj[cur] && [
2762
- '',
2763
+ "",
2763
2764
  void 0,
2764
2765
  null
2765
2766
  ].includes(props.filterObj[cur]) || item[cur] === props.filterObj[cur]));
@@ -2767,7 +2768,7 @@ const SELECTION = 'selection';
2767
2768
  });
2768
2769
  // 严格按用户要求递归赋值方法
2769
2770
  function setDataByPath(path, data, childrenKey) {
2770
- const indices = path.split('-').map((i)=>Number(i));
2771
+ const indices = path.split("-").map((i)=>Number(i));
2771
2772
  if (1 === indices.length) {
2772
2773
  state.tableData = data;
2773
2774
  return;
@@ -2823,7 +2824,7 @@ const SELECTION = 'selection';
2823
2824
  if (props.couldSortFieldList && props.couldSortFieldList?.length) propsColumns = propsColumns.map((item)=>{
2824
2825
  let supportSort = !!(props.couldSortFieldList || []).find((cur)=>cur.fieldName === item.prop);
2825
2826
  return {
2826
- sortable: !!supportSort && (props.pagination ? 'custom' : supportSort),
2827
+ sortable: !!supportSort && (props.pagination ? "custom" : supportSort),
2827
2828
  ...item
2828
2829
  };
2829
2830
  });
@@ -2836,8 +2837,8 @@ const SELECTION = 'selection';
2836
2837
  if (serveColumns.value?.length) {
2837
2838
  result = result.map((item, index)=>{
2838
2839
  let findObj = serveColumns.value.find((cur)=>cur.prop === item.prop) || {
2839
- label: '',
2840
- displayFlag: void 0
2840
+ label: item.label,
2841
+ displayFlag: item.displayFlag
2841
2842
  };
2842
2843
  return {
2843
2844
  displayFlag: item.isHidden ? __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.NO : __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.YES,
@@ -2864,7 +2865,7 @@ const SELECTION = 'selection';
2864
2865
  const bottomOffset = scrollHeight - event.scrollTop - clientHeight;
2865
2866
  if (event.scrollTop < oldScrollTop && 0 === bottomOffset) proTableRef.value.setScrollTop(0);
2866
2867
  if (bottomOffset < threshold && event.scrollTop > oldScrollTop) {
2867
- console.log('触发加载更多数据');
2868
+ console.log("触发加载更多数据");
2868
2869
  props.scrollLoad();
2869
2870
  }
2870
2871
  oldScrollTop = event.scrollTop;
@@ -2886,7 +2887,7 @@ const SELECTION = 'selection';
2886
2887
  type: SELECTION,
2887
2888
  prop: SELECTION,
2888
2889
  minWidth: 80,
2889
- label: ''
2890
+ label: ""
2890
2891
  },
2891
2892
  ...result
2892
2893
  ];
@@ -2907,7 +2908,7 @@ const SELECTION = 'selection';
2907
2908
  return isTips;
2908
2909
  });
2909
2910
  function sortChange({ column, order, prop }) {
2910
- if (!props.couldSortFieldList?.length) return emit('sort-change', {
2911
+ if (!props.couldSortFieldList?.length) return emit("sort-change", {
2911
2912
  column,
2912
2913
  order,
2913
2914
  prop
@@ -5298,21 +5299,34 @@ const _hoisted_10 = {
5298
5299
  class: "mr-2"
5299
5300
  };
5300
5301
  const _hoisted_11 = {
5301
- class: "text-[#555]"
5302
+ key: 0,
5303
+ class: "w-full flex"
5302
5304
  };
5303
5305
  const _hoisted_12 = {
5304
- class: "w-full text-[#555]"
5306
+ class: "text-[#555]"
5305
5307
  };
5306
5308
  const _hoisted_13 = {
5307
- class: "w-full flex"
5309
+ class: "flex flex-1"
5308
5310
  };
5309
5311
  const _hoisted_14 = {
5310
- class: "text-[#555]"
5312
+ key: 2
5311
5313
  };
5312
5314
  const _hoisted_15 = {
5313
- class: "flex-1"
5315
+ class: "text-[#555]"
5314
5316
  };
5315
5317
  const _hoisted_16 = {
5318
+ class: "w-full text-[#555]"
5319
+ };
5320
+ const _hoisted_17 = {
5321
+ class: "w-full flex"
5322
+ };
5323
+ const _hoisted_18 = {
5324
+ class: "el-text text-[#555]"
5325
+ };
5326
+ const _hoisted_19 = {
5327
+ class: "flex flex-1"
5328
+ };
5329
+ const _hoisted_20 = {
5316
5330
  key: 1
5317
5331
  };
5318
5332
  // import DefaultPatient from "../patient-access/images/default_patient.vue";
@@ -5349,6 +5363,8 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5349
5363
  const firstDisplayWidthRatio = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(1);
5350
5364
  const tagBizId = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)("");
5351
5365
  const tagIds = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
5366
+ const inEncounterBizTagList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
5367
+ const personBizTagList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
5352
5368
  // const checkPrice = ref(0);
5353
5369
  const popoverSelector = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
5354
5370
  // 确保布局列数为有效数字
@@ -5400,6 +5416,31 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5400
5416
  tagBizId.value = data.personId;
5401
5417
  }
5402
5418
  }
5419
+ /**
5420
+ * 从banner数据中提取业务标签数据
5421
+ */ function extractBizTagIds(bannerItemList) {
5422
+ // 筛选出 bizTagFlag === 1 的项
5423
+ const bizTagItems = bannerItemList.filter((item)=>item?.bizTagFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
5424
+ // 重置数组
5425
+ inEncounterBizTagList.value = [];
5426
+ personBizTagList.value = [];
5427
+ bizTagItems.forEach((item)=>{
5428
+ if (!item.dataValue) return;
5429
+ try {
5430
+ // 解析 JSON 字符串
5431
+ const parsedData = JSON.parse(item.dataValue);
5432
+ if (Array.isArray(parsedData) && parsedData.length > 0) {
5433
+ // 根据 bindingFieldNo 分类存储完整的数据
5434
+ if ("inEncounterBizTagList" === item.bindingFieldNo) inEncounterBizTagList.value = parsedData;
5435
+ else if ("personBizTagList" === item.bindingFieldNo) personBizTagList.value = parsedData;
5436
+ }
5437
+ } catch (error) {
5438
+ console.error(`Failed to parse ${item.bindingFieldNo}:`, error);
5439
+ }
5440
+ });
5441
+ console.log("inEncounterBizTagList:", inEncounterBizTagList.value);
5442
+ console.log("personBizTagList:", personBizTagList.value);
5443
+ }
5403
5444
  /** 获取banner配置 */ const queryBannerConfig = async ()=>{
5404
5445
  loading.value = true;
5405
5446
  if (!__props.bizId && initBannerInfo.value) {
@@ -5418,23 +5459,10 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5418
5459
  });
5419
5460
  loading.value = false;
5420
5461
  if (res?.success) {
5421
- // // 预交金金额
5422
- // const depositBalanceAmt = res.data?.bannerItemList?.find(
5423
- // (item) => item.formCtlNo === "depositBalanceAmt"
5424
- // );
5425
- // // 未结金额
5426
- // const unSettleAmt = res.data?.bannerItemList?.find(
5427
- // (item) => item.formCtlNo === "unSettleAmt"
5428
- // );
5429
- // // 欠费下限金额
5430
- // const arrearageAmt = res.data?.bannerItemList?.find(
5431
- // (item) => item.formCtlNo === "arrearageAmt"
5432
- // );
5433
- // checkPrice.value =
5434
- // Number(depositBalanceAmt?.dataValue) -
5435
- // Number(unSettleAmt?.dataValue) -
5436
- // Number(arrearageAmt?.dataValue);
5437
- res.data.bannerItemList = (res?.data?.bannerItemList ?? [])?.filter((item)=>item?.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
5462
+ // 提取业务标签ID(bizTagFlag === 1)
5463
+ extractBizTagIds(res?.data?.bannerItemList ?? []);
5464
+ // 保留 displayFlag === 1 或 bizTagFlag === 1 的项用于显示
5465
+ res.data.bannerItemList = (res?.data?.bannerItemList ?? [])?.filter((item)=>item?.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES || item?.bizTagFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
5438
5466
  setBizId({
5439
5467
  personId: res.data?.personId || "",
5440
5468
  inEncounterId: res.data?.inEncounterId || ""
@@ -5551,11 +5579,39 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5551
5579
  }
5552
5580
  ])
5553
5581
  }, [
5554
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
5582
+ item.bizTagFlag === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG).YES ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", _hoisted_11, [
5583
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_12, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.labelNameDisplay) + ":", 1),
5584
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_13, [
5585
+ 'inEncounterBizTagList' === item.bindingFieldNo && inEncounterBizTagList.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
5586
+ key: 0
5587
+ }, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(inEncounterBizTagList.value, (tag)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
5588
+ key: tag.bizTagId || tag.tagId,
5589
+ class: "mr-2",
5590
+ size: "default"
5591
+ }, {
5592
+ default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
5593
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(tag.tagName), 1)
5594
+ ]),
5595
+ _: 2
5596
+ }, 1024))), 128)) : 'personBizTagList' === item.bindingFieldNo && personBizTagList.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
5597
+ key: 1
5598
+ }, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(personBizTagList.value, (tag)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
5599
+ key: tag.bizTagId || tag.tagId,
5600
+ class: "mr-2",
5601
+ size: "default"
5602
+ }, {
5603
+ default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
5604
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(tag.tagName), 1)
5605
+ ]),
5606
+ _: 2
5607
+ }, 1024))), 128)) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_14, "--"))
5608
+ ])
5609
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", {
5610
+ key: 1,
5555
5611
  class: "w-full overflow-hidden text-ellipsis whitespace-nowrap",
5556
5612
  onMouseenter: checkTextOverflow
5557
5613
  }, [
5558
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_11, [
5614
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
5559
5615
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_text, {
5560
5616
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
5561
5617
  'text-[#555]',
@@ -5578,7 +5634,7 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5578
5634
  content: item.dataValue
5579
5635
  }, {
5580
5636
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
5581
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_12, [
5637
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_16, [
5582
5638
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_text, {
5583
5639
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
5584
5640
  'text-[#555]',
@@ -5602,7 +5658,7 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5602
5658
  "disabled",
5603
5659
  "content"
5604
5660
  ])
5605
- ], 32)
5661
+ ], 32))
5606
5662
  ], 2))), 128)),
5607
5663
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
5608
5664
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
@@ -5612,9 +5668,9 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5612
5668
  }
5613
5669
  ])
5614
5670
  }, [
5615
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", _hoisted_13, [
5616
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签"), 1),
5617
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
5671
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", _hoisted_17, [
5672
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_18, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签:"), 1),
5673
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_19, [
5618
5674
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) && tagIds.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(tag_select, {
5619
5675
  key: 0,
5620
5676
  modelValue: tagIds.value,
@@ -5625,7 +5681,7 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5625
5681
  }, null, 8, [
5626
5682
  "modelValue",
5627
5683
  "bizIdTypeCode"
5628
- ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_16, "--"))
5684
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_20, "--"))
5629
5685
  ])
5630
5686
  ])
5631
5687
  ], 2)
package/dist/index.js CHANGED
@@ -1533,6 +1533,7 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
1533
1533
  return {
1534
1534
  ...item,
1535
1535
  ...findObj || {},
1536
+ label: item.label || findObj.label,
1536
1537
  sortable: item.sortable,
1537
1538
  ascendFlag: findObj?.ascendFlag
1538
1539
  };
@@ -1896,7 +1897,7 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
1896
1897
  const dbgrid_component_setting_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(dbgrid_component_settingvue_type_script_setup_true_lang_tsx, [
1897
1898
  [
1898
1899
  '__scopeId',
1899
- "data-v-662b8e54"
1900
+ "data-v-a780c5b2"
1900
1901
  ]
1901
1902
  ]);
1902
1903
  /* ESM default export */ const dbgrid_component_setting = dbgrid_component_setting_exports_;
@@ -2370,7 +2371,7 @@ const pro_tablevue_type_script_lang_ts_setup_true_name_ProTable_hoisted_2 = {
2370
2371
  key: 1,
2371
2372
  class: "mt-5 flex items-center justify-between"
2372
2373
  };
2373
- const SELECTION = 'selection';
2374
+ const SELECTION = "selection";
2374
2375
  /**
2375
2376
  *获取参与排序的列表 索引 是否可以拖拽
2376
2377
  */ /* ESM default export */ const pro_tablevue_type_script_lang_ts_setup_true_name_ProTable = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
@@ -2396,7 +2397,7 @@ const SELECTION = 'selection';
2396
2397
  default: 80
2397
2398
  },
2398
2399
  componentNo: {
2399
- default: ''
2400
+ default: ""
2400
2401
  },
2401
2402
  hiddenDefaultText: {
2402
2403
  type: Boolean,
@@ -2428,7 +2429,7 @@ const SELECTION = 'selection';
2428
2429
  default: true
2429
2430
  },
2430
2431
  rowKey: {
2431
- default: 'id'
2432
+ default: "id"
2432
2433
  },
2433
2434
  stripe: {
2434
2435
  type: Boolean,
@@ -2450,13 +2451,13 @@ const SELECTION = 'selection';
2450
2451
  default: ()=>({})
2451
2452
  },
2452
2453
  layout: {
2453
- default: 'total, sizes, prev, pager, next'
2454
+ default: "total, sizes, prev, pager, next"
2454
2455
  },
2455
2456
  formDisabled: {
2456
2457
  type: Boolean
2457
2458
  },
2458
2459
  dragTips: {
2459
- default: '温馨提示:您可通过拖动进行排序'
2460
+ default: "温馨提示:您可通过拖动进行排序"
2460
2461
  },
2461
2462
  isShowDragTips: {
2462
2463
  type: Boolean,
@@ -2466,7 +2467,7 @@ const SELECTION = 'selection';
2466
2467
  default: {}
2467
2468
  },
2468
2469
  dragTipsClassName: {
2469
- default: ''
2470
+ default: ""
2470
2471
  },
2471
2472
  settingIconWidth: {
2472
2473
  default: 36
@@ -2492,7 +2493,7 @@ const SELECTION = 'selection';
2492
2493
  const sortFieldList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(void 0);
2493
2494
  const exportFileFlag = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.NO);
2494
2495
  const showSetting = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
2495
- const componentDesc = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('文件');
2496
+ const componentDesc = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)("文件");
2496
2497
  let state = (0, __WEBPACK_EXTERNAL_MODULE_vue__.reactive)({
2497
2498
  // 表格数据
2498
2499
  tableData: props.data,
@@ -2519,7 +2520,7 @@ const SELECTION = 'selection';
2519
2520
  const emit = __emit;
2520
2521
  const attrs = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs)();
2521
2522
  // 提供静态数据
2522
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.provide)('hiddenDefaultText', props.hiddenDefaultText);
2523
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.provide)("hiddenDefaultText", props.hiddenDefaultText);
2523
2524
  const tableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
2524
2525
  const proTableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>tableRef.value?.proTableRef);
2525
2526
  function getDragSortData(newIndex, data, startIndexObj, sortData, childrenKey) {
@@ -2568,7 +2569,7 @@ const SELECTION = 'selection';
2568
2569
  return data;
2569
2570
  }
2570
2571
  // 生成每一行的唯一 path
2571
- function getRowPath(row, data, rowKey, parentPath = '', childrenKey) {
2572
+ function getRowPath(row, data, rowKey, parentPath = "", childrenKey) {
2572
2573
  for(let i = 0; i < data.length; i++){
2573
2574
  if (data[i][rowKey] === row[rowKey]) {
2574
2575
  const currentPath = parentPath ? `${parentPath}-${i}` : `${i}`;
@@ -2576,49 +2577,49 @@ const SELECTION = 'selection';
2576
2577
  }
2577
2578
  if (childrenKey && Array.isArray(data[i][childrenKey])) {
2578
2579
  const childPath = getRowPath(row, data[i][childrenKey], rowKey, parentPath ? `${parentPath}-${i}` : `${i}`, childrenKey);
2579
- if ('' !== childPath) return childPath;
2580
+ if ("" !== childPath) return childPath;
2580
2581
  }
2581
2582
  }
2582
- return '';
2583
+ return "";
2583
2584
  }
2584
2585
  // 获取childrenKey的安全写法
2585
2586
  function getSafeChildrenKeyFromAttrs(attrs) {
2586
- const treePropsRaw = attrs['tree-props'];
2587
- const treeProps = 'object' == typeof treePropsRaw && null !== treePropsRaw ? treePropsRaw : void 0;
2588
- if (treeProps && 'children' in treeProps) return treeProps.children;
2587
+ const treePropsRaw = attrs["tree-props"];
2588
+ const treeProps = "object" == typeof treePropsRaw && null !== treePropsRaw ? treePropsRaw : void 0;
2589
+ if (treeProps && "children" in treeProps) return treeProps.children;
2589
2590
  }
2590
2591
  // 兼容外部 row-class-name,自动适配参数类型
2591
2592
  function rowClassNameWrapper(rowOrParams, rowIndexArg) {
2592
2593
  let row, rowIndex;
2593
- if (rowOrParams && 'object' == typeof rowOrParams && 'row' in rowOrParams && 'rowIndex' in rowOrParams) {
2594
+ if (rowOrParams && "object" == typeof rowOrParams && "row" in rowOrParams && "rowIndex" in rowOrParams) {
2594
2595
  row = rowOrParams.row;
2595
2596
  rowIndex = rowOrParams.rowIndex;
2596
2597
  } else {
2597
2598
  row = rowOrParams;
2598
2599
  rowIndex = rowIndexArg;
2599
2600
  }
2600
- let externalClass = '';
2601
- const external = attrs['row-class-name'];
2602
- if ('function' == typeof external) externalClass = external({
2601
+ let externalClass = "";
2602
+ const external = attrs["row-class-name"];
2603
+ if ("function" == typeof external) externalClass = external({
2603
2604
  row,
2604
2605
  rowIndex
2605
2606
  });
2606
- else if ('string' == typeof external) externalClass = external;
2607
- let pathClass = '';
2607
+ else if ("string" == typeof external) externalClass = external;
2608
+ let pathClass = "";
2608
2609
  let childrenKey = getSafeChildrenKeyFromAttrs(attrs);
2609
- let path = getRowPath(row, state.tableData, props.rowKey, '', childrenKey);
2610
+ let path = getRowPath(row, state.tableData, props.rowKey, "", childrenKey);
2610
2611
  pathClass = `row-path-${path}`;
2611
2612
  return [
2612
2613
  externalClass,
2613
2614
  pathClass
2614
- ].filter(Boolean).join(' ');
2615
+ ].filter(Boolean).join(" ");
2615
2616
  }
2616
2617
  /***
2617
2618
  * 表格拖拽排序
2618
2619
  **/ const initDragSort = ()=>{
2619
2620
  const tbodyList = document.querySelectorAll(`#${uuid.value} tbody`);
2620
2621
  const tbody = tbodyList[tbodyList.length - 1];
2621
- let initialHTML = '';
2622
+ let initialHTML = "";
2622
2623
  let crossLevelWarned = false;
2623
2624
  // 新增:销毁旧的Sortable实例
2624
2625
  // 新增:销毁旧的Sortable实例
@@ -2627,19 +2628,19 @@ const SELECTION = 'selection';
2627
2628
  sortableInstance = null;
2628
2629
  }
2629
2630
  if (tbody) sortableInstance = __WEBPACK_EXTERNAL_MODULE_sortablejs__["default"].create(tbody, {
2630
- handle: '.cursor-move',
2631
+ handle: ".cursor-move",
2631
2632
  group: props.dragGroupName,
2632
2633
  animation: 300,
2633
2634
  scroll: true,
2634
2635
  scrollSensitivity: 80,
2635
2636
  scrollSpeed: 10,
2636
2637
  onMove (evt) {
2637
- const draggedPath = evt.dragged?.className.match(/row-path-([\d-]+)/)?.[1] || '';
2638
- const relatedPath = evt.related?.className.match(/row-path-([\d-]+)/)?.[1] || '';
2639
- const getParent = (p)=>p.split('-').slice(0, -1).join('-');
2638
+ const draggedPath = evt.dragged?.className.match(/row-path-([\d-]+)/)?.[1] || "";
2639
+ const relatedPath = evt.related?.className.match(/row-path-([\d-]+)/)?.[1] || "";
2640
+ const getParent = (p)=>p.split("-").slice(0, -1).join("-");
2640
2641
  if (draggedPath && relatedPath && getParent(draggedPath) !== getParent(relatedPath)) {
2641
2642
  if (!crossLevelWarned) {
2642
- __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning('暂不支持跨层级拖拽配置');
2643
+ __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning("暂不支持跨层级拖拽配置");
2643
2644
  crossLevelWarned = true;
2644
2645
  }
2645
2646
  return false;
@@ -2649,7 +2650,7 @@ const SELECTION = 'selection';
2649
2650
  onEnd (evt) {
2650
2651
  const { newIndex, oldIndex } = evt;
2651
2652
  if (props.dragGroupName) {
2652
- emit('drag-end', {
2653
+ emit("drag-end", {
2653
2654
  crossGroup: evt.from !== evt.to,
2654
2655
  oldIndex,
2655
2656
  newIndex
@@ -2657,11 +2658,11 @@ const SELECTION = 'selection';
2657
2658
  return;
2658
2659
  }
2659
2660
  const dragTr = evt.item;
2660
- const match = dragTr.className.split(' ').find((cls)=>cls.startsWith('row-path-'));
2661
- const fromPath = match ? match.replace('row-path-', '') : '';
2661
+ const match = dragTr.className.split(" ").find((cls)=>cls.startsWith("row-path-"));
2662
+ const fromPath = match ? match.replace("row-path-", "") : "";
2662
2663
  let childrenKey = getSafeChildrenKeyFromAttrs(attrs);
2663
2664
  const getPathByIndex = (targetIndex)=>{
2664
- let path = '';
2665
+ let path = "";
2665
2666
  let count = -1;
2666
2667
  function dfs(arr, parent) {
2667
2668
  for(let i = 0; i < arr.length; i++){
@@ -2677,13 +2678,13 @@ const SELECTION = 'selection';
2677
2678
  }
2678
2679
  return false;
2679
2680
  }
2680
- dfs(state.tableData, '');
2681
+ dfs(state.tableData, "");
2681
2682
  return path;
2682
2683
  };
2683
- if ('number' != typeof newIndex || 'number' != typeof oldIndex || newIndex === oldIndex) return;
2684
+ if ("number" != typeof newIndex || "number" != typeof oldIndex || newIndex === oldIndex) return;
2684
2685
  const newPath = getPathByIndex(newIndex);
2685
2686
  const oldPath = getPathByIndex(oldIndex);
2686
- const getParent = (p)=>p.split('-').slice(0, -1).join('-');
2687
+ const getParent = (p)=>p.split("-").slice(0, -1).join("-");
2687
2688
  if (getParent(newPath) !== getParent(oldPath)) // 这里不再需要回退DOM,onMove已阻止
2688
2689
  return;
2689
2690
  let data = getSortableResult(newIndex, oldIndex);
@@ -2696,7 +2697,7 @@ const SELECTION = 'selection';
2696
2697
  initDragSort();
2697
2698
  });
2698
2699
  }
2699
- emit('drag-end', data, {
2700
+ emit("drag-end", data, {
2700
2701
  fromPath,
2701
2702
  oldIndex,
2702
2703
  newIndex
@@ -2715,7 +2716,7 @@ const SELECTION = 'selection';
2715
2716
  });
2716
2717
  async function fetchDbgridComponent() {
2717
2718
  let [, result] = await queryDbgridComponentByExample({
2718
- componentNo: props.componentNo || ''
2719
+ componentNo: props.componentNo || ""
2719
2720
  });
2720
2721
  if (result?.success) {
2721
2722
  exportFileFlag.value = result.data.exportFileFlag;
@@ -2730,7 +2731,7 @@ const SELECTION = 'selection';
2730
2731
  }));
2731
2732
  proTableRef.value?.clearSort();
2732
2733
  serveColumns.value = column;
2733
- emit('columns-config-change', column);
2734
+ emit("columns-config-change", column);
2734
2735
  } catch (error) {
2735
2736
  console.log(error);
2736
2737
  }
@@ -2764,7 +2765,7 @@ const SELECTION = 'selection';
2764
2765
  state.pageInfo.pageNumber = 1;
2765
2766
  state.pageInfo.pageSize = val;
2766
2767
  fetchList();
2767
- } else emit('size-page-change', val);
2768
+ } else emit("size-page-change", val);
2768
2769
  };
2769
2770
  /**
2770
2771
  * 分页组件改变 当前页数 事件
@@ -2772,7 +2773,7 @@ const SELECTION = 'selection';
2772
2773
  if (props.fetchData) {
2773
2774
  state.pageInfo.pageNumber = val;
2774
2775
  fetchList();
2775
- } else emit('current-page-change', val);
2776
+ } else emit("current-page-change", val);
2776
2777
  }
2777
2778
  const selections = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
2778
2779
  // 设置当前行激活态
@@ -2795,7 +2796,7 @@ const SELECTION = 'selection';
2795
2796
  result = multiFieldSort(result, sortFieldList.value);
2796
2797
  }
2797
2798
  if (Object.keys(props.filterObj).length) return result.filter((item)=>Object.keys(props.filterObj).every((cur)=>!props.filterObj[cur] && [
2798
- '',
2799
+ "",
2799
2800
  void 0,
2800
2801
  null
2801
2802
  ].includes(props.filterObj[cur]) || item[cur] === props.filterObj[cur]));
@@ -2803,7 +2804,7 @@ const SELECTION = 'selection';
2803
2804
  });
2804
2805
  // 严格按用户要求递归赋值方法
2805
2806
  function setDataByPath(path, data, childrenKey) {
2806
- const indices = path.split('-').map((i)=>Number(i));
2807
+ const indices = path.split("-").map((i)=>Number(i));
2807
2808
  if (1 === indices.length) {
2808
2809
  state.tableData = data;
2809
2810
  return;
@@ -2859,7 +2860,7 @@ const SELECTION = 'selection';
2859
2860
  if (props.couldSortFieldList && props.couldSortFieldList?.length) propsColumns = propsColumns.map((item)=>{
2860
2861
  let supportSort = !!(props.couldSortFieldList || []).find((cur)=>cur.fieldName === item.prop);
2861
2862
  return {
2862
- sortable: !!supportSort && (props.pagination ? 'custom' : supportSort),
2863
+ sortable: !!supportSort && (props.pagination ? "custom" : supportSort),
2863
2864
  ...item
2864
2865
  };
2865
2866
  });
@@ -2872,8 +2873,8 @@ const SELECTION = 'selection';
2872
2873
  if (serveColumns.value?.length) {
2873
2874
  result = result.map((item, index)=>{
2874
2875
  let findObj = serveColumns.value.find((cur)=>cur.prop === item.prop) || {
2875
- label: '',
2876
- displayFlag: void 0
2876
+ label: item.label,
2877
+ displayFlag: item.displayFlag
2877
2878
  };
2878
2879
  return {
2879
2880
  displayFlag: item.isHidden ? __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.NO : __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.YES,
@@ -2900,7 +2901,7 @@ const SELECTION = 'selection';
2900
2901
  const bottomOffset = scrollHeight - event.scrollTop - clientHeight;
2901
2902
  if (event.scrollTop < oldScrollTop && 0 === bottomOffset) proTableRef.value.setScrollTop(0);
2902
2903
  if (bottomOffset < threshold && event.scrollTop > oldScrollTop) {
2903
- console.log('触发加载更多数据');
2904
+ console.log("触发加载更多数据");
2904
2905
  props.scrollLoad();
2905
2906
  }
2906
2907
  oldScrollTop = event.scrollTop;
@@ -2922,7 +2923,7 @@ const SELECTION = 'selection';
2922
2923
  type: SELECTION,
2923
2924
  prop: SELECTION,
2924
2925
  minWidth: 80,
2925
- label: ''
2926
+ label: ""
2926
2927
  },
2927
2928
  ...result
2928
2929
  ];
@@ -2943,7 +2944,7 @@ const SELECTION = 'selection';
2943
2944
  return isTips;
2944
2945
  });
2945
2946
  function sortChange({ column, order, prop }) {
2946
- if (!props.couldSortFieldList?.length) return emit('sort-change', {
2947
+ if (!props.couldSortFieldList?.length) return emit("sort-change", {
2947
2948
  column,
2948
2949
  order,
2949
2950
  prop
@@ -5798,21 +5799,34 @@ const _hoisted_10 = {
5798
5799
  class: "mr-2"
5799
5800
  };
5800
5801
  const _hoisted_11 = {
5801
- class: "text-[#555]"
5802
+ key: 0,
5803
+ class: "w-full flex"
5802
5804
  };
5803
5805
  const _hoisted_12 = {
5804
- class: "w-full text-[#555]"
5806
+ class: "text-[#555]"
5805
5807
  };
5806
5808
  const _hoisted_13 = {
5807
- class: "w-full flex"
5809
+ class: "flex flex-1"
5808
5810
  };
5809
5811
  const _hoisted_14 = {
5810
- class: "text-[#555]"
5812
+ key: 2
5811
5813
  };
5812
5814
  const _hoisted_15 = {
5813
- class: "flex-1"
5815
+ class: "text-[#555]"
5814
5816
  };
5815
5817
  const _hoisted_16 = {
5818
+ class: "w-full text-[#555]"
5819
+ };
5820
+ const _hoisted_17 = {
5821
+ class: "w-full flex"
5822
+ };
5823
+ const _hoisted_18 = {
5824
+ class: "el-text text-[#555]"
5825
+ };
5826
+ const _hoisted_19 = {
5827
+ class: "flex flex-1"
5828
+ };
5829
+ const _hoisted_20 = {
5816
5830
  key: 1
5817
5831
  };
5818
5832
  // import DefaultPatient from "../patient-access/images/default_patient.vue";
@@ -5849,6 +5863,8 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5849
5863
  const firstDisplayWidthRatio = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(1);
5850
5864
  const tagBizId = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)("");
5851
5865
  const tagIds = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
5866
+ const inEncounterBizTagList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
5867
+ const personBizTagList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
5852
5868
  // const checkPrice = ref(0);
5853
5869
  const popoverSelector = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
5854
5870
  // 确保布局列数为有效数字
@@ -5900,6 +5916,31 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5900
5916
  tagBizId.value = data.personId;
5901
5917
  }
5902
5918
  }
5919
+ /**
5920
+ * 从banner数据中提取业务标签数据
5921
+ */ function extractBizTagIds(bannerItemList) {
5922
+ // 筛选出 bizTagFlag === 1 的项
5923
+ const bizTagItems = bannerItemList.filter((item)=>item?.bizTagFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
5924
+ // 重置数组
5925
+ inEncounterBizTagList.value = [];
5926
+ personBizTagList.value = [];
5927
+ bizTagItems.forEach((item)=>{
5928
+ if (!item.dataValue) return;
5929
+ try {
5930
+ // 解析 JSON 字符串
5931
+ const parsedData = JSON.parse(item.dataValue);
5932
+ if (Array.isArray(parsedData) && parsedData.length > 0) {
5933
+ // 根据 bindingFieldNo 分类存储完整的数据
5934
+ if ("inEncounterBizTagList" === item.bindingFieldNo) inEncounterBizTagList.value = parsedData;
5935
+ else if ("personBizTagList" === item.bindingFieldNo) personBizTagList.value = parsedData;
5936
+ }
5937
+ } catch (error) {
5938
+ console.error(`Failed to parse ${item.bindingFieldNo}:`, error);
5939
+ }
5940
+ });
5941
+ console.log("inEncounterBizTagList:", inEncounterBizTagList.value);
5942
+ console.log("personBizTagList:", personBizTagList.value);
5943
+ }
5903
5944
  /** 获取banner配置 */ const queryBannerConfig = async ()=>{
5904
5945
  loading.value = true;
5905
5946
  if (!__props.bizId && initBannerInfo.value) {
@@ -5918,23 +5959,10 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
5918
5959
  });
5919
5960
  loading.value = false;
5920
5961
  if (res?.success) {
5921
- // // 预交金金额
5922
- // const depositBalanceAmt = res.data?.bannerItemList?.find(
5923
- // (item) => item.formCtlNo === "depositBalanceAmt"
5924
- // );
5925
- // // 未结金额
5926
- // const unSettleAmt = res.data?.bannerItemList?.find(
5927
- // (item) => item.formCtlNo === "unSettleAmt"
5928
- // );
5929
- // // 欠费下限金额
5930
- // const arrearageAmt = res.data?.bannerItemList?.find(
5931
- // (item) => item.formCtlNo === "arrearageAmt"
5932
- // );
5933
- // checkPrice.value =
5934
- // Number(depositBalanceAmt?.dataValue) -
5935
- // Number(unSettleAmt?.dataValue) -
5936
- // Number(arrearageAmt?.dataValue);
5937
- res.data.bannerItemList = (res?.data?.bannerItemList ?? [])?.filter((item)=>item?.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
5962
+ // 提取业务标签ID(bizTagFlag === 1)
5963
+ extractBizTagIds(res?.data?.bannerItemList ?? []);
5964
+ // 保留 displayFlag === 1 或 bizTagFlag === 1 的项用于显示
5965
+ res.data.bannerItemList = (res?.data?.bannerItemList ?? [])?.filter((item)=>item?.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES || item?.bizTagFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
5938
5966
  setBizId({
5939
5967
  personId: res.data?.personId || "",
5940
5968
  inEncounterId: res.data?.inEncounterId || ""
@@ -6051,11 +6079,39 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
6051
6079
  }
6052
6080
  ])
6053
6081
  }, [
6054
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
6082
+ item.bizTagFlag === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG).YES ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", _hoisted_11, [
6083
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_12, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.labelNameDisplay) + ":", 1),
6084
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_13, [
6085
+ 'inEncounterBizTagList' === item.bindingFieldNo && inEncounterBizTagList.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
6086
+ key: 0
6087
+ }, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(inEncounterBizTagList.value, (tag)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
6088
+ key: tag.bizTagId || tag.tagId,
6089
+ class: "mr-2",
6090
+ size: "default"
6091
+ }, {
6092
+ default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
6093
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(tag.tagName), 1)
6094
+ ]),
6095
+ _: 2
6096
+ }, 1024))), 128)) : 'personBizTagList' === item.bindingFieldNo && personBizTagList.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
6097
+ key: 1
6098
+ }, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(personBizTagList.value, (tag)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
6099
+ key: tag.bizTagId || tag.tagId,
6100
+ class: "mr-2",
6101
+ size: "default"
6102
+ }, {
6103
+ default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
6104
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(tag.tagName), 1)
6105
+ ]),
6106
+ _: 2
6107
+ }, 1024))), 128)) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_14, "--"))
6108
+ ])
6109
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", {
6110
+ key: 1,
6055
6111
  class: "w-full overflow-hidden text-ellipsis whitespace-nowrap",
6056
6112
  onMouseenter: checkTextOverflow
6057
6113
  }, [
6058
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_11, [
6114
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
6059
6115
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_text, {
6060
6116
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
6061
6117
  'text-[#555]',
@@ -6078,7 +6134,7 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
6078
6134
  content: item.dataValue
6079
6135
  }, {
6080
6136
  default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
6081
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_12, [
6137
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_16, [
6082
6138
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_text, {
6083
6139
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
6084
6140
  'text-[#555]',
@@ -6102,7 +6158,7 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
6102
6158
  "disabled",
6103
6159
  "content"
6104
6160
  ])
6105
- ], 32)
6161
+ ], 32))
6106
6162
  ], 2))), 128)),
6107
6163
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
6108
6164
  class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
@@ -6112,9 +6168,9 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
6112
6168
  }
6113
6169
  ])
6114
6170
  }, [
6115
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", _hoisted_13, [
6116
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_14, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签"), 1),
6117
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_15, [
6171
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", _hoisted_17, [
6172
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_18, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) === PERSON ? "患者标签:" : "就诊标签:"), 1),
6173
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_19, [
6118
6174
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tagBizIdTypeCode) && tagIds.value.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(tag_select, {
6119
6175
  key: 0,
6120
6176
  modelValue: tagIds.value,
@@ -6125,7 +6181,7 @@ const PERSON = "PERSON"; //应该放到BIZ_ID_TYPE_CODE这个里面
6125
6181
  }, null, 8, [
6126
6182
  "modelValue",
6127
6183
  "bizIdTypeCode"
6128
- ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_16, "--"))
6184
+ ])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_20, "--"))
6129
6185
  ])
6130
6186
  ])
6131
6187
  ], 2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.4-beta.39",
3
+ "version": "0.0.4-beta.40",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "src/*",