sun-biz 0.0.4-beta.43 → 0.0.4-beta.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/biz-select/hospital-charge-select/api.d.ts +53 -0
- package/dist/components/biz-select/index.d.ts +2 -0
- package/dist/components/index.js +63 -4
- package/dist/components/static/css/index.css +34 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +445 -5
- package/dist/static/css/index.css +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type HospitalChargeQueryParams = {
|
|
2
|
+
keyWord?: string;
|
|
3
|
+
hospitalId: string;
|
|
4
|
+
encounterTypeCode?: string;
|
|
5
|
+
priceAt: string;
|
|
6
|
+
hospitalCommodityIds?: string[];
|
|
7
|
+
};
|
|
8
|
+
export type HospitalChargeItem = {
|
|
9
|
+
hospitalCommodityId: string;
|
|
10
|
+
commodityCategoryId: string;
|
|
11
|
+
commodityCategoryName: string;
|
|
12
|
+
outCommodityCategoryId?: string;
|
|
13
|
+
outCommodityCategoryName?: string;
|
|
14
|
+
inCommodityCategoryId?: string;
|
|
15
|
+
inCommodityCategoryName?: string;
|
|
16
|
+
accCommodityCategoryId?: string;
|
|
17
|
+
accCommodityCategoryName?: string;
|
|
18
|
+
fncCommodityCategoryId?: string;
|
|
19
|
+
fncCommodityCategoryName?: string;
|
|
20
|
+
mrCommodityCategoryId?: string;
|
|
21
|
+
mrCommodityCategoryName?: string;
|
|
22
|
+
commodityId: string;
|
|
23
|
+
commodityNo?: string;
|
|
24
|
+
commodityName: string;
|
|
25
|
+
commodity2ndName?: string;
|
|
26
|
+
commodityExtName?: string;
|
|
27
|
+
commodityNameDisplay: string;
|
|
28
|
+
commoditySpec?: string;
|
|
29
|
+
unitId?: string;
|
|
30
|
+
unitName: string;
|
|
31
|
+
spellNo: string;
|
|
32
|
+
wbNo?: string;
|
|
33
|
+
memo?: string;
|
|
34
|
+
producedByOrgId?: string;
|
|
35
|
+
producedByOrgName?: string;
|
|
36
|
+
chargeItemConnotation?: string;
|
|
37
|
+
enabledFlag: number;
|
|
38
|
+
commodityPriceId: string;
|
|
39
|
+
price: number;
|
|
40
|
+
startAt: string;
|
|
41
|
+
endAt?: string;
|
|
42
|
+
};
|
|
43
|
+
export type HospitalChargeSelection = Partial<HospitalChargeItem> & {
|
|
44
|
+
label?: string;
|
|
45
|
+
value?: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* [1-10147-1] 根据条件查询医院的收费项目列表(业务态)
|
|
49
|
+
* 是否分页 Y
|
|
50
|
+
* @param params
|
|
51
|
+
* @returns
|
|
52
|
+
*/
|
|
53
|
+
export declare const queryHospitalChargeItemListByExample: (params: HospitalChargeQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<HospitalChargeItem[]> | undefined]>;
|
|
@@ -6,4 +6,6 @@ export { default as UserSelect } from './user-select/index.vue';
|
|
|
6
6
|
export { default as BizUnitSelect } from './biz-unit-select/index.vue';
|
|
7
7
|
export { default as DepartmentSelect } from './department-select/index.vue';
|
|
8
8
|
export { default as WardSelect } from './ward-select/index.vue';
|
|
9
|
+
export { default as HospitalChargeSelect } from './hospital-charge-select/index.vue';
|
|
9
10
|
export type { TagGroupInfo } from './tag-select/api.ts';
|
|
11
|
+
export type { HospitalChargeItem, HospitalChargeQueryParams, HospitalChargeSelection } from './hospital-charge-select/api.ts';
|
package/dist/components/index.js
CHANGED
|
@@ -4369,7 +4369,8 @@ const patient_accessvue_type_script_setup_true_lang_ts_hoisted_1 = {
|
|
|
4369
4369
|
searchValue: inputValue.value,
|
|
4370
4370
|
indexTypeCode: cardInfo?.indexTypeCode ? cardInfo?.indexTypeCode : data.indexTypeCode,
|
|
4371
4371
|
indexNo: data.indexTypeCode && !cardInfo?.indexNo ? inputValue.value : cardInfo?.indexNo,
|
|
4372
|
-
pageNumber: pageNumber.value
|
|
4372
|
+
pageNumber: pageNumber.value,
|
|
4373
|
+
menuId: __props.menuId
|
|
4373
4374
|
});
|
|
4374
4375
|
searchLoading.value = false;
|
|
4375
4376
|
if (res?.data) {
|
|
@@ -7339,11 +7340,13 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
7339
7340
|
* @param params
|
|
7340
7341
|
* @returns
|
|
7341
7342
|
*/ const queryBizUnitList = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/organization/queryBizUnitListByExample', params);
|
|
7342
|
-
|
|
7343
|
+
// 全局事件:用于关闭其他实例的 popover
|
|
7344
|
+
const CLOSE_OTHER_POPOVERS_EVENT = 'biz-unit-select:close-others'; /*
|
|
7343
7345
|
96-10014-1 业务单元选择组件
|
|
7344
7346
|
1、调用“1-10516-1 根据条件查询业务单元列表”传入“启用标志=1、关键字、医院标识=入参:医院标识、科室类型代码集合、就诊类型代码”查询业务单元列表
|
|
7345
7347
|
2、展示列包括“组织类型、编码、名称”
|
|
7346
|
-
*/
|
|
7348
|
+
*/
|
|
7349
|
+
/* ESM default export */ const biz_unit_selectvue_type_script_lang_tsx_name_BizUnitSelect_setup_true = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
7347
7350
|
__name: 'index',
|
|
7348
7351
|
props: {
|
|
7349
7352
|
keyWord: {},
|
|
@@ -7371,6 +7374,8 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
7371
7374
|
});
|
|
7372
7375
|
const selectProps = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(props.selectProps || {});
|
|
7373
7376
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
7377
|
+
const instance = (0, __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance)();
|
|
7378
|
+
const componentId = instance?.uid || Math.random(); // 唯一标识当前组件实例
|
|
7374
7379
|
const tableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
7375
7380
|
const selectRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
7376
7381
|
const popoverRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
@@ -7584,6 +7589,12 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
7584
7589
|
const handleFocus = ()=>{
|
|
7585
7590
|
setTimeout(()=>{
|
|
7586
7591
|
if (clearing.value) return;
|
|
7592
|
+
// 通知其他实例关闭 popover
|
|
7593
|
+
window.dispatchEvent(new CustomEvent(CLOSE_OTHER_POPOVERS_EVENT, {
|
|
7594
|
+
detail: {
|
|
7595
|
+
componentId
|
|
7596
|
+
}
|
|
7597
|
+
}));
|
|
7587
7598
|
popoverVisible.value = true;
|
|
7588
7599
|
}, 100);
|
|
7589
7600
|
};
|
|
@@ -7634,15 +7645,27 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
7634
7645
|
selectedValue.value = items.map((row)=>row.label || row.orgNameDisplay);
|
|
7635
7646
|
handleChange();
|
|
7636
7647
|
};
|
|
7637
|
-
const handlePopoverShow = ()=>{
|
|
7648
|
+
const handlePopoverShow = ()=>{
|
|
7649
|
+
window.dispatchEvent(new CustomEvent(CLOSE_OTHER_POPOVERS_EVENT, {
|
|
7650
|
+
detail: {
|
|
7651
|
+
componentId
|
|
7652
|
+
}
|
|
7653
|
+
}));
|
|
7654
|
+
}; // 监听其他实例的关闭事件
|
|
7655
|
+
const handleCloseOtherPopovers = (event)=>{
|
|
7656
|
+
const customEvent = event;
|
|
7657
|
+
if (customEvent.detail?.componentId !== componentId) popoverVisible.value = false;
|
|
7658
|
+
};
|
|
7638
7659
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount)(()=>{
|
|
7639
7660
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
7640
7661
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
7662
|
+
window.removeEventListener(CLOSE_OTHER_POPOVERS_EVENT, handleCloseOtherPopovers);
|
|
7641
7663
|
});
|
|
7642
7664
|
const fetchData = async (data)=>{
|
|
7643
7665
|
await getBizUnitList(data);
|
|
7644
7666
|
};
|
|
7645
7667
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
7668
|
+
window.addEventListener(CLOSE_OTHER_POPOVERS_EVENT, handleCloseOtherPopovers);
|
|
7646
7669
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
7647
7670
|
if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue?.length) {
|
|
7648
7671
|
if (props.multiSelectFlag) selectedValue.value = props.defaultValue.map((item)=>item.label || item.orgNameDisplay);
|
|
@@ -8638,6 +8661,42 @@ const department_select_exports_ = department_selectvue_type_script_setup_true_l
|
|
|
8638
8661
|
});
|
|
8639
8662
|
const ward_select_exports_ = ward_selectvue_type_script_setup_true_lang_tsx_name_WardSelect;
|
|
8640
8663
|
/* ESM default export */ const ward_select = ward_select_exports_;
|
|
8664
|
+
/**
|
|
8665
|
+
* [1-10147-1] 根据条件查询医院的收费项目列表(业务态)
|
|
8666
|
+
* 是否分页 Y
|
|
8667
|
+
* @param params
|
|
8668
|
+
* @returns
|
|
8669
|
+
*/ const queryHospitalChargeItemListByExample = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/chargeItem/queryHospitalChargeItemListByExample', params);
|
|
8670
|
+
const hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_hoisted_1 = {
|
|
8671
|
+
class: "hospital-charge-select"
|
|
8672
|
+
};
|
|
8673
|
+
const hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_hoisted_2 = {
|
|
8674
|
+
class: "popover-content"
|
|
8675
|
+
};
|
|
8676
|
+
// 全局事件:用于关闭其他实例的 popover
|
|
8677
|
+
const hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_CLOSE_OTHER_POPOVERS_EVENT = 'hospital-charge-select:close-others';
|
|
8678
|
+
/* ESM default export */ ({
|
|
8679
|
+
hospitalId: {},
|
|
8680
|
+
encounterTypeCode: {},
|
|
8681
|
+
priceAt: {},
|
|
8682
|
+
size: {
|
|
8683
|
+
default: 'default'
|
|
8684
|
+
},
|
|
8685
|
+
immediate: {
|
|
8686
|
+
type: Boolean,
|
|
8687
|
+
default: false
|
|
8688
|
+
},
|
|
8689
|
+
popoverWidth: {
|
|
8690
|
+
default: 1000
|
|
8691
|
+
}
|
|
8692
|
+
}), ({
|
|
8693
|
+
modelValue: {},
|
|
8694
|
+
modelModifiers: {}
|
|
8695
|
+
}), [
|
|
8696
|
+
"change"
|
|
8697
|
+
], [
|
|
8698
|
+
"update:modelValue"
|
|
8699
|
+
];
|
|
8641
8700
|
// 获取五笔简码
|
|
8642
8701
|
const wubiLib = [
|
|
8643
8702
|
'A鞴鞲鞣鞫鞯鞔鞒鞑鞅靼銎跫綦翳蛩颟鹳鹋鸫鸢慝觐觋贳瓯戡檠迓甙忒弋撖摁廾蘼蘖蘩蘅蘧藿藜藁藓薰薷薹薅薜薮蕹薏薇薨薤蕻蕲蕃瞢蕺蕞蕤蕨蕈蕙蓼蓿蔻蕖蔺蔟蔹蓰蔸甍蔌蓣蓥蒗蒴蒹蒡蓠蒺蒿蓊蓓蒽蓦蓐蓍蓁葭萱蒎蒌葶葩葆萼葸蒉葺蒈蒇葳葙葚葑葜菡菰萦菀菅菪菹菸萃萏菟菔萆萑萸萜菖菽菝萋萘堇菘菥萁菁莼莺莨莞莘荻莸荽莩莶荼莅莜莓莪莠莴莳荸莰荮荭荪荬荩茛荨荥荦茳茺茭荠茗荀荟荃荇荏茯荞莛茱茴茼莒茈荜荛荑茜苕苠茕茔茆茚茑苓苻茌苘苒苴苜茇茏苤苷茉苡芤苎苄芟芪芡芴芩苁苌苋芮芷芘苣苊苈芰芾芸芫芙芗芑芎芄芨芊芏艿艽艹鄞郾邛劐蒯赜匾匮匦叵匚廿茁著芝蒸斟蔗蘸藻葬匝蕴苑芋荧营萤莹英荫茵艺颐医药尧燕雅牙芽鸦薛靴蓄芯薪邪鞋萧巷项匣熙昔芜巫卧蔚萎苇藤萄苔蓑蒜苏斯薯蔬世式甚芍苫莎散萨若蕊茹荣蓉茸戎惹鹊颧区擎芹勤莲荔莉蕾勒劳蓝莱葵匡苦恐苛勘菌巨菊鞠敬警茎荆靳芥藉戒节蕉匠蒋荐茧荚蓟基惑或获荤茄切翘鞘巧蔷其七欺期蒲菩葡莆萍苹匹蓬藕殴鸥欧孽蔫匿慕募幕暮墓某莫蘑摹蔑藐苗蒙萌茂茅莽茫芒蔓落萝芦菱黄荒划花葫菏荷邯菇苟共贡汞巩恭功攻工葛革戈甘芬匪菲芳范藩贰董东蒂荡葱茨臣茶茬草藏苍蔡菜菠鞭蔽蓖苯薄苞靶芭鞍艾蔼',
|
|
@@ -41,6 +41,40 @@
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
.hospital-charge-select[data-v-ffb2d000] {
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
47
|
+
.hospital-charge-select .input[data-v-ffb2d000] .el-input__inner {
|
|
48
|
+
cursor: pointer !important;
|
|
49
|
+
}
|
|
50
|
+
[data-v-ffb2d000] .hospital-charge-select-popover {
|
|
51
|
+
max-height: var(--5aebc6cb);
|
|
52
|
+
padding: 0;
|
|
53
|
+
z-index: 9999 !important;
|
|
54
|
+
}
|
|
55
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .popover-content {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
max-height: var(--5aebc6cb);
|
|
59
|
+
}
|
|
60
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed {
|
|
61
|
+
color: #c0c4cc;
|
|
62
|
+
cursor: not-allowed !important;
|
|
63
|
+
background-color: #f5f7fa !important;
|
|
64
|
+
}
|
|
65
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed td {
|
|
66
|
+
background-color: #f5f7fa !important;
|
|
67
|
+
}
|
|
68
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed:hover > td {
|
|
69
|
+
background-color: #f5f7fa !important;
|
|
70
|
+
}
|
|
71
|
+
.hospital-charge-select-popover {
|
|
72
|
+
margin-bottom: 8px !important;
|
|
73
|
+
}
|
|
74
|
+
.hospital-charge-select-popover {
|
|
75
|
+
margin-top: 8px !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
44
78
|
|
|
45
79
|
|
|
46
80
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from './components/print/index.ts';
|
|
|
6
6
|
export * from './components/invoice/index.ts';
|
|
7
7
|
export * from './components/table-select';
|
|
8
8
|
export { Title } from './components/title';
|
|
9
|
-
export { DictSelect, FlagSelect, HospitalSelect, TagSelect, UserSelect, BizUnitSelect, DepartmentSelect, WardSelect, } from './components/biz-select';
|
|
9
|
+
export { DictSelect, FlagSelect, HospitalSelect, TagSelect, UserSelect, BizUnitSelect, DepartmentSelect, WardSelect, HospitalChargeSelect, } from './components/biz-select';
|
|
10
10
|
export type { TagGroupInfo } from './components/biz-select';
|
|
11
11
|
export { CopyTextWithTooltip } from './components/copy-text-with-tooltip';
|
|
12
12
|
export { FormDesignRender } from './components/form-design-render';
|
package/dist/index.js
CHANGED
|
@@ -4869,7 +4869,8 @@ const patient_accessvue_type_script_setup_true_lang_ts_hoisted_1 = {
|
|
|
4869
4869
|
searchValue: inputValue.value,
|
|
4870
4870
|
indexTypeCode: cardInfo?.indexTypeCode ? cardInfo?.indexTypeCode : data.indexTypeCode,
|
|
4871
4871
|
indexNo: data.indexTypeCode && !cardInfo?.indexNo ? inputValue.value : cardInfo?.indexNo,
|
|
4872
|
-
pageNumber: pageNumber.value
|
|
4872
|
+
pageNumber: pageNumber.value,
|
|
4873
|
+
menuId: __props.menuId
|
|
4873
4874
|
});
|
|
4874
4875
|
searchLoading.value = false;
|
|
4875
4876
|
if (res?.data) {
|
|
@@ -8015,11 +8016,13 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
8015
8016
|
* @param params
|
|
8016
8017
|
* @returns
|
|
8017
8018
|
*/ const queryBizUnitList = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/organization/queryBizUnitListByExample', params);
|
|
8018
|
-
|
|
8019
|
+
// 全局事件:用于关闭其他实例的 popover
|
|
8020
|
+
const CLOSE_OTHER_POPOVERS_EVENT = 'biz-unit-select:close-others'; /*
|
|
8019
8021
|
96-10014-1 业务单元选择组件
|
|
8020
8022
|
1、调用“1-10516-1 根据条件查询业务单元列表”传入“启用标志=1、关键字、医院标识=入参:医院标识、科室类型代码集合、就诊类型代码”查询业务单元列表
|
|
8021
8023
|
2、展示列包括“组织类型、编码、名称”
|
|
8022
|
-
*/
|
|
8024
|
+
*/
|
|
8025
|
+
/* ESM default export */ const biz_unit_selectvue_type_script_lang_tsx_name_BizUnitSelect_setup_true = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
8023
8026
|
__name: 'index',
|
|
8024
8027
|
props: {
|
|
8025
8028
|
keyWord: {},
|
|
@@ -8047,6 +8050,8 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
8047
8050
|
});
|
|
8048
8051
|
const selectProps = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(props.selectProps || {});
|
|
8049
8052
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
8053
|
+
const instance = (0, __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance)();
|
|
8054
|
+
const componentId = instance?.uid || Math.random(); // 唯一标识当前组件实例
|
|
8050
8055
|
const tableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
8051
8056
|
const selectRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
8052
8057
|
const popoverRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
@@ -8260,6 +8265,12 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
8260
8265
|
const handleFocus = ()=>{
|
|
8261
8266
|
setTimeout(()=>{
|
|
8262
8267
|
if (clearing.value) return;
|
|
8268
|
+
// 通知其他实例关闭 popover
|
|
8269
|
+
window.dispatchEvent(new CustomEvent(CLOSE_OTHER_POPOVERS_EVENT, {
|
|
8270
|
+
detail: {
|
|
8271
|
+
componentId
|
|
8272
|
+
}
|
|
8273
|
+
}));
|
|
8263
8274
|
popoverVisible.value = true;
|
|
8264
8275
|
}, 100);
|
|
8265
8276
|
};
|
|
@@ -8310,15 +8321,27 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
8310
8321
|
selectedValue.value = items.map((row)=>row.label || row.orgNameDisplay);
|
|
8311
8322
|
handleChange();
|
|
8312
8323
|
};
|
|
8313
|
-
const handlePopoverShow = ()=>{
|
|
8324
|
+
const handlePopoverShow = ()=>{
|
|
8325
|
+
window.dispatchEvent(new CustomEvent(CLOSE_OTHER_POPOVERS_EVENT, {
|
|
8326
|
+
detail: {
|
|
8327
|
+
componentId
|
|
8328
|
+
}
|
|
8329
|
+
}));
|
|
8330
|
+
}; // 监听其他实例的关闭事件
|
|
8331
|
+
const handleCloseOtherPopovers = (event)=>{
|
|
8332
|
+
const customEvent = event;
|
|
8333
|
+
if (customEvent.detail?.componentId !== componentId) popoverVisible.value = false;
|
|
8334
|
+
};
|
|
8314
8335
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount)(()=>{
|
|
8315
8336
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
8316
8337
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
8338
|
+
window.removeEventListener(CLOSE_OTHER_POPOVERS_EVENT, handleCloseOtherPopovers);
|
|
8317
8339
|
});
|
|
8318
8340
|
const fetchData = async (data)=>{
|
|
8319
8341
|
await getBizUnitList(data);
|
|
8320
8342
|
};
|
|
8321
8343
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
8344
|
+
window.addEventListener(CLOSE_OTHER_POPOVERS_EVENT, handleCloseOtherPopovers);
|
|
8322
8345
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
8323
8346
|
if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue?.length) {
|
|
8324
8347
|
if (props.multiSelectFlag) selectedValue.value = props.defaultValue.map((item)=>item.label || item.orgNameDisplay);
|
|
@@ -9314,6 +9337,423 @@ const department_select_exports_ = department_selectvue_type_script_setup_true_l
|
|
|
9314
9337
|
});
|
|
9315
9338
|
const ward_select_exports_ = ward_selectvue_type_script_setup_true_lang_tsx_name_WardSelect;
|
|
9316
9339
|
/* ESM default export */ const ward_select = ward_select_exports_;
|
|
9340
|
+
/**
|
|
9341
|
+
* [1-10147-1] 根据条件查询医院的收费项目列表(业务态)
|
|
9342
|
+
* 是否分页 Y
|
|
9343
|
+
* @param params
|
|
9344
|
+
* @returns
|
|
9345
|
+
*/ const queryHospitalChargeItemListByExample = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/chargeItem/queryHospitalChargeItemListByExample', params);
|
|
9346
|
+
const hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_hoisted_1 = {
|
|
9347
|
+
class: "hospital-charge-select"
|
|
9348
|
+
};
|
|
9349
|
+
const hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_hoisted_2 = {
|
|
9350
|
+
class: "popover-content"
|
|
9351
|
+
};
|
|
9352
|
+
// 全局事件:用于关闭其他实例的 popover
|
|
9353
|
+
const hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_CLOSE_OTHER_POPOVERS_EVENT = 'hospital-charge-select:close-others';
|
|
9354
|
+
/* ESM default export */ const hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
9355
|
+
__name: 'index',
|
|
9356
|
+
props: /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels)({
|
|
9357
|
+
hospitalId: {},
|
|
9358
|
+
encounterTypeCode: {},
|
|
9359
|
+
priceAt: {},
|
|
9360
|
+
size: {
|
|
9361
|
+
default: 'default'
|
|
9362
|
+
},
|
|
9363
|
+
immediate: {
|
|
9364
|
+
type: Boolean,
|
|
9365
|
+
default: false
|
|
9366
|
+
},
|
|
9367
|
+
popoverWidth: {
|
|
9368
|
+
default: 1000
|
|
9369
|
+
}
|
|
9370
|
+
}, {
|
|
9371
|
+
modelValue: {},
|
|
9372
|
+
modelModifiers: {}
|
|
9373
|
+
}),
|
|
9374
|
+
emits: /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels)([
|
|
9375
|
+
"change"
|
|
9376
|
+
], [
|
|
9377
|
+
"update:modelValue"
|
|
9378
|
+
]),
|
|
9379
|
+
setup (__props, { expose: __expose, emit: __emit }) {
|
|
9380
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.useCssVars)((_ctx)=>({
|
|
9381
|
+
"2f25a0af": dynamicMaxHeight.value + "px"
|
|
9382
|
+
}));
|
|
9383
|
+
const model = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useModel)(__props, "modelValue");
|
|
9384
|
+
const props = __props;
|
|
9385
|
+
const emit = __emit;
|
|
9386
|
+
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
9387
|
+
const instance = (0, __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance)();
|
|
9388
|
+
const componentId = instance?.uid || Math.random(); // 唯一标识当前组件实例
|
|
9389
|
+
const popoverRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
9390
|
+
const inputSearchRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
9391
|
+
const tableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
9392
|
+
const popoverVisible = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
9393
|
+
const inputValue = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('');
|
|
9394
|
+
const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
9395
|
+
const tableData = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
|
|
9396
|
+
const currentRow = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
9397
|
+
const currentRowIndex = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(0);
|
|
9398
|
+
const dynamicMaxHeight = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(300); // 表格列配置
|
|
9399
|
+
const columns = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>[
|
|
9400
|
+
{
|
|
9401
|
+
type: 'index',
|
|
9402
|
+
label: '序号',
|
|
9403
|
+
width: 60,
|
|
9404
|
+
align: 'center'
|
|
9405
|
+
},
|
|
9406
|
+
{
|
|
9407
|
+
prop: 'commodityNo',
|
|
9408
|
+
label: '编码',
|
|
9409
|
+
width: 120,
|
|
9410
|
+
showOverflowTooltip: true
|
|
9411
|
+
},
|
|
9412
|
+
{
|
|
9413
|
+
prop: 'commodityNameDisplay',
|
|
9414
|
+
label: '名称',
|
|
9415
|
+
minWidth: 350,
|
|
9416
|
+
showOverflowTooltip: true,
|
|
9417
|
+
render: (row)=>{
|
|
9418
|
+
const hasPrice = null !== row.price && void 0 !== row.price;
|
|
9419
|
+
if (!hasPrice) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("div", null, [
|
|
9420
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("span", null, [
|
|
9421
|
+
row.commodityNameDisplay
|
|
9422
|
+
]),
|
|
9423
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-text"), {
|
|
9424
|
+
type: "danger",
|
|
9425
|
+
style: "margin-left: 8px;"
|
|
9426
|
+
}, {
|
|
9427
|
+
default: ()=>[
|
|
9428
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-icon"), null, {
|
|
9429
|
+
default: ()=>[
|
|
9430
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(__WEBPACK_EXTERNAL_MODULE__element_sun_icons_vue__.InfoFilled, null, null)
|
|
9431
|
+
]
|
|
9432
|
+
}),
|
|
9433
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("\u5F53\u524D\u6536\u8D39\u9879\u76EE\u7684\u4EF7\u683C\u6709\u8BEF\uFF0C\u65E0\u6CD5\u9009\u62E9\uFF01")
|
|
9434
|
+
],
|
|
9435
|
+
_: 1
|
|
9436
|
+
})
|
|
9437
|
+
]);
|
|
9438
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("span", null, [
|
|
9439
|
+
row.commodityNameDisplay
|
|
9440
|
+
]);
|
|
9441
|
+
}
|
|
9442
|
+
},
|
|
9443
|
+
{
|
|
9444
|
+
prop: 'commoditySpec',
|
|
9445
|
+
label: '规格',
|
|
9446
|
+
width: 100,
|
|
9447
|
+
showOverflowTooltip: true,
|
|
9448
|
+
render: (row)=>(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("span", null, [
|
|
9449
|
+
row.commoditySpec || '--'
|
|
9450
|
+
])
|
|
9451
|
+
},
|
|
9452
|
+
{
|
|
9453
|
+
prop: 'price',
|
|
9454
|
+
label: '价格',
|
|
9455
|
+
minWidth: 80,
|
|
9456
|
+
render: (row)=>{
|
|
9457
|
+
const hasPrice = null !== row.price && void 0 !== row.price;
|
|
9458
|
+
if (hasPrice) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("span", null, [
|
|
9459
|
+
row.price.toFixed(2)
|
|
9460
|
+
]);
|
|
9461
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("span", null, [
|
|
9462
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("--")
|
|
9463
|
+
]);
|
|
9464
|
+
}
|
|
9465
|
+
},
|
|
9466
|
+
{
|
|
9467
|
+
prop: 'unitName',
|
|
9468
|
+
label: '单位',
|
|
9469
|
+
width: 60,
|
|
9470
|
+
align: 'center'
|
|
9471
|
+
}
|
|
9472
|
+
]); // 判断行是否可选择(价格有效才能选择)
|
|
9473
|
+
const isRowSelectable = (row)=>null !== row.price && void 0 !== row.price; // 获取行的class名称(用于置灰不可选择的行)
|
|
9474
|
+
const getRowClassName = ({ row })=>{
|
|
9475
|
+
if (!isRowSelectable(row)) return 'cursor-not-allowed !bg-gray-100 text-gray-300';
|
|
9476
|
+
return 'cursor-pointer';
|
|
9477
|
+
}; // 查询收费项目列表
|
|
9478
|
+
const fetchChargeItems = async (keyword)=>{
|
|
9479
|
+
if (!props.hospitalId || !props.priceAt) {
|
|
9480
|
+
console.warn('hospitalId and priceAt are required');
|
|
9481
|
+
return;
|
|
9482
|
+
}
|
|
9483
|
+
loading.value = true;
|
|
9484
|
+
try {
|
|
9485
|
+
const params = {
|
|
9486
|
+
hospitalId: props.hospitalId,
|
|
9487
|
+
priceAt: props.priceAt,
|
|
9488
|
+
keyWord: keyword || void 0,
|
|
9489
|
+
encounterTypeCode: props.encounterTypeCode
|
|
9490
|
+
};
|
|
9491
|
+
const [error, result] = await queryHospitalChargeItemListByExample(params);
|
|
9492
|
+
if (!error && result) {
|
|
9493
|
+
tableData.value = result.data || [];
|
|
9494
|
+
currentRowIndex.value = -1;
|
|
9495
|
+
tableRef.value?.proTableRef?.setCurrentRow?.(void 0);
|
|
9496
|
+
} else tableData.value = [];
|
|
9497
|
+
} catch (error) {
|
|
9498
|
+
console.error('Failed to fetch hospital charge items:', error);
|
|
9499
|
+
tableData.value = [];
|
|
9500
|
+
} finally{
|
|
9501
|
+
loading.value = false;
|
|
9502
|
+
}
|
|
9503
|
+
}; // 处理输入框输入
|
|
9504
|
+
const handleInput = (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.debounce)(async function(v) {
|
|
9505
|
+
await fetchChargeItems(v);
|
|
9506
|
+
popoverVisible.value = true;
|
|
9507
|
+
}, 500); // 处理行点击
|
|
9508
|
+
const handleRowClick = (row)=>{
|
|
9509
|
+
if (!isRowSelectable(row)) {
|
|
9510
|
+
__WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning('当前收费项目价格有误,无法选择!');
|
|
9511
|
+
return;
|
|
9512
|
+
} // 如果点击的是当前已选中的行,则取消选择
|
|
9513
|
+
if (currentRow.value && row.hospitalCommodityId === currentRow.value.hospitalCommodityId) {
|
|
9514
|
+
currentRow.value = void 0;
|
|
9515
|
+
model.value = void 0;
|
|
9516
|
+
tableRef.value?.proTableRef?.setCurrentRow(void 0); // 清空时,先 emit 事件再关闭 popover
|
|
9517
|
+
emit('change', void 0);
|
|
9518
|
+
} else {
|
|
9519
|
+
currentRow.value = row;
|
|
9520
|
+
model.value = row; // 选择时,先 emit 事件再关闭 popover
|
|
9521
|
+
emit('change', row);
|
|
9522
|
+
} // 单选模式下选择后关闭popover
|
|
9523
|
+
popoverVisible.value = false;
|
|
9524
|
+
}; // 计算动态最大高度
|
|
9525
|
+
const calculateDynamicMaxHeight = ()=>{
|
|
9526
|
+
const input = inputSearchRef.value?.$el;
|
|
9527
|
+
if (!input) return 300;
|
|
9528
|
+
const inputRect = input.getBoundingClientRect();
|
|
9529
|
+
const viewportHeight = window.innerHeight;
|
|
9530
|
+
const padding = 32; // 上下padding总和
|
|
9531
|
+
// 计算下方和上方的可用空间
|
|
9532
|
+
const spaceBelow = viewportHeight - inputRect.bottom - padding;
|
|
9533
|
+
const spaceAbove = inputRect.top - padding; // 取两者中较大的一个,但不超过400px,不小于200px
|
|
9534
|
+
const availableSpace = Math.max(spaceBelow, spaceAbove);
|
|
9535
|
+
const maxHeight = Math.min(Math.max(availableSpace, 200), 400);
|
|
9536
|
+
dynamicMaxHeight.value = Math.floor(maxHeight);
|
|
9537
|
+
}; // 切换popover显示
|
|
9538
|
+
const toggleVisible = ()=>{
|
|
9539
|
+
window.dispatchEvent(new CustomEvent(hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_CLOSE_OTHER_POPOVERS_EVENT, {
|
|
9540
|
+
detail: {
|
|
9541
|
+
componentId
|
|
9542
|
+
}
|
|
9543
|
+
})); // 计算动态高度
|
|
9544
|
+
calculateDynamicMaxHeight();
|
|
9545
|
+
popoverVisible.value = true;
|
|
9546
|
+
if (popoverVisible.value) fetchChargeItems(inputValue.value);
|
|
9547
|
+
}; // 点击外部关闭popover
|
|
9548
|
+
const handleClickOutside = (e)=>{
|
|
9549
|
+
if (e.target === inputSearchRef.value?.$el) return;
|
|
9550
|
+
popoverVisible.value = false;
|
|
9551
|
+
}; // 重置
|
|
9552
|
+
const reset = ()=>{
|
|
9553
|
+
inputValue.value = '';
|
|
9554
|
+
model.value = void 0;
|
|
9555
|
+
currentRow.value = void 0;
|
|
9556
|
+
tableData.value = [];
|
|
9557
|
+
}; // 清空输入
|
|
9558
|
+
const handleClear = ()=>{
|
|
9559
|
+
reset();
|
|
9560
|
+
emit('change', void 0);
|
|
9561
|
+
}; // 滚动到当前选中行
|
|
9562
|
+
const scrollToCurrentRow = ()=>{
|
|
9563
|
+
setTimeout(()=>{
|
|
9564
|
+
if (currentRowIndex.value < 0) return;
|
|
9565
|
+
try {
|
|
9566
|
+
const tableElement = tableRef.value?.proTableRef?.$el;
|
|
9567
|
+
if (!tableElement) return; // 查找当前高亮的行
|
|
9568
|
+
const currentRowElement = tableElement.querySelector('.el-table__body tr.current-row');
|
|
9569
|
+
if (!currentRowElement) return; // 使用 scrollIntoView 方法滚动到当前行
|
|
9570
|
+
currentRowElement.scrollIntoView({
|
|
9571
|
+
block: 'nearest',
|
|
9572
|
+
behavior: 'smooth'
|
|
9573
|
+
});
|
|
9574
|
+
} catch (error) {
|
|
9575
|
+
console.error('Error scrolling to current row:', error);
|
|
9576
|
+
}
|
|
9577
|
+
}, 100);
|
|
9578
|
+
}; // 键盘事件
|
|
9579
|
+
const handleKeydown = (e)=>{
|
|
9580
|
+
if (!tableData.value.length || !popoverVisible.value) return;
|
|
9581
|
+
if ('ArrowDown' === e.key) {
|
|
9582
|
+
e.preventDefault(); // 向下查找下一个可选择的行
|
|
9583
|
+
let nextIndex = currentRowIndex.value + 1;
|
|
9584
|
+
while(nextIndex < tableData.value.length){
|
|
9585
|
+
if (isRowSelectable(tableData.value[nextIndex])) {
|
|
9586
|
+
currentRowIndex.value = nextIndex;
|
|
9587
|
+
tableRef.value?.proTableRef?.setCurrentRow(tableData.value[nextIndex]);
|
|
9588
|
+
scrollToCurrentRow();
|
|
9589
|
+
break;
|
|
9590
|
+
}
|
|
9591
|
+
nextIndex++;
|
|
9592
|
+
}
|
|
9593
|
+
} else if ('ArrowUp' === e.key) {
|
|
9594
|
+
e.preventDefault(); // 向上查找上一个可选择的行
|
|
9595
|
+
let prevIndex = currentRowIndex.value - 1;
|
|
9596
|
+
while(prevIndex >= 0){
|
|
9597
|
+
if (isRowSelectable(tableData.value[prevIndex])) {
|
|
9598
|
+
currentRowIndex.value = prevIndex;
|
|
9599
|
+
tableRef.value?.proTableRef?.setCurrentRow(tableData.value[prevIndex]);
|
|
9600
|
+
scrollToCurrentRow();
|
|
9601
|
+
break;
|
|
9602
|
+
}
|
|
9603
|
+
prevIndex--;
|
|
9604
|
+
}
|
|
9605
|
+
} else if ('Enter' === e.key && currentRowIndex.value >= 0) {
|
|
9606
|
+
e.preventDefault();
|
|
9607
|
+
const row = tableData.value[currentRowIndex.value];
|
|
9608
|
+
handleRowClick(row);
|
|
9609
|
+
}
|
|
9610
|
+
}; // 监听popover显示状态,管理键盘事件监听器
|
|
9611
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>popoverVisible.value, (val)=>{
|
|
9612
|
+
if (val) document.addEventListener('keydown', handleKeydown, true);
|
|
9613
|
+
else document.removeEventListener('keydown', handleKeydown, true);
|
|
9614
|
+
}); // 监听其他实例的关闭事件
|
|
9615
|
+
const handleCloseOtherPopovers = (event)=>{
|
|
9616
|
+
const customEvent = event;
|
|
9617
|
+
if (customEvent.detail?.componentId !== componentId) popoverVisible.value = false;
|
|
9618
|
+
}; // 根据ID获取收费项目详情(用于回显)
|
|
9619
|
+
const fetchItemById = async (hospitalCommodityId)=>{
|
|
9620
|
+
if (!props.hospitalId || !props.priceAt) {
|
|
9621
|
+
console.warn('hospitalId and priceAt are required for fetching item details');
|
|
9622
|
+
return;
|
|
9623
|
+
}
|
|
9624
|
+
try {
|
|
9625
|
+
const params = {
|
|
9626
|
+
hospitalId: props.hospitalId,
|
|
9627
|
+
priceAt: props.priceAt,
|
|
9628
|
+
hospitalCommodityIds: [
|
|
9629
|
+
hospitalCommodityId
|
|
9630
|
+
],
|
|
9631
|
+
encounterTypeCode: props.encounterTypeCode
|
|
9632
|
+
};
|
|
9633
|
+
const [error, result] = await queryHospitalChargeItemListByExample(params);
|
|
9634
|
+
if (!error && result?.data && result.data.length > 0) {
|
|
9635
|
+
const item = result.data[0]; // 更新model为完整数据
|
|
9636
|
+
model.value = item;
|
|
9637
|
+
currentRow.value = item;
|
|
9638
|
+
inputValue.value = item.commodityNameDisplay || '';
|
|
9639
|
+
}
|
|
9640
|
+
} catch (error) {
|
|
9641
|
+
console.error('Failed to fetch hospital charge item by id:', error);
|
|
9642
|
+
}
|
|
9643
|
+
}; // 监听model变化,更新输入框显示
|
|
9644
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>model.value, (newValue)=>{
|
|
9645
|
+
if (newValue) {
|
|
9646
|
+
if (newValue.commodityNameDisplay) {
|
|
9647
|
+
inputValue.value = newValue.commodityNameDisplay;
|
|
9648
|
+
currentRow.value = newValue;
|
|
9649
|
+
} else if (newValue.hospitalCommodityId) fetchItemById(newValue.hospitalCommodityId);
|
|
9650
|
+
} else {
|
|
9651
|
+
inputValue.value = '';
|
|
9652
|
+
currentRow.value = void 0;
|
|
9653
|
+
}
|
|
9654
|
+
}, {
|
|
9655
|
+
immediate: true
|
|
9656
|
+
}); // 监听窗口大小变化和滚动事件,重新计算动态高度
|
|
9657
|
+
const handleResize = ()=>{
|
|
9658
|
+
if (popoverVisible.value) calculateDynamicMaxHeight();
|
|
9659
|
+
}; // 组件挂载时如果immediate为true则立即查询
|
|
9660
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
9661
|
+
window.addEventListener(hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_CLOSE_OTHER_POPOVERS_EVENT, handleCloseOtherPopovers); // 监听窗口大小变化和滚动
|
|
9662
|
+
window.addEventListener('resize', handleResize);
|
|
9663
|
+
window.addEventListener('scroll', handleResize, true);
|
|
9664
|
+
if (props.immediate) fetchChargeItems();
|
|
9665
|
+
});
|
|
9666
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount)(()=>{
|
|
9667
|
+
document.removeEventListener('keydown', handleKeydown, true);
|
|
9668
|
+
window.removeEventListener(hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_CLOSE_OTHER_POPOVERS_EVENT, handleCloseOtherPopovers);
|
|
9669
|
+
window.removeEventListener('resize', handleResize);
|
|
9670
|
+
window.removeEventListener('scroll', handleResize, true);
|
|
9671
|
+
});
|
|
9672
|
+
__expose({
|
|
9673
|
+
reset,
|
|
9674
|
+
fetchChargeItems,
|
|
9675
|
+
tableRef,
|
|
9676
|
+
popoverRef
|
|
9677
|
+
});
|
|
9678
|
+
return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_hoisted_1, [
|
|
9679
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElInput), {
|
|
9680
|
+
ref_key: "inputSearchRef",
|
|
9681
|
+
ref: inputSearchRef,
|
|
9682
|
+
modelValue: inputValue.value,
|
|
9683
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>inputValue.value = $event),
|
|
9684
|
+
class: "input",
|
|
9685
|
+
"prefix-icon": "Search",
|
|
9686
|
+
size: _ctx.size,
|
|
9687
|
+
placeholder: "请输入搜索内容",
|
|
9688
|
+
clearable: "",
|
|
9689
|
+
onKeydownCapture: _cache[1] || (_cache[1] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.withKeys)((0, __WEBPACK_EXTERNAL_MODULE_vue__.withModifiers)(()=>{}, [
|
|
9690
|
+
"prevent"
|
|
9691
|
+
]), [
|
|
9692
|
+
"enter"
|
|
9693
|
+
])),
|
|
9694
|
+
onClickCapture: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withModifiers)(toggleVisible, [
|
|
9695
|
+
"prevent"
|
|
9696
|
+
]),
|
|
9697
|
+
onInput: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(handleInput),
|
|
9698
|
+
onClear: handleClear
|
|
9699
|
+
}, null, 8, [
|
|
9700
|
+
"modelValue",
|
|
9701
|
+
"size",
|
|
9702
|
+
"onInput"
|
|
9703
|
+
]),
|
|
9704
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElPopover), {
|
|
9705
|
+
ref_key: "popoverRef",
|
|
9706
|
+
ref: popoverRef,
|
|
9707
|
+
width: _ctx.popoverWidth,
|
|
9708
|
+
visible: popoverVisible.value,
|
|
9709
|
+
"virtual-ref": inputSearchRef.value,
|
|
9710
|
+
"virtual-triggering": "",
|
|
9711
|
+
teleported: true,
|
|
9712
|
+
"popper-class": "hospital-charge-select-popover",
|
|
9713
|
+
placement: "top"
|
|
9714
|
+
}, {
|
|
9715
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
9716
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives)(((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect_hoisted_2, [
|
|
9717
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(pro_table), {
|
|
9718
|
+
ref_key: "tableRef",
|
|
9719
|
+
ref: tableRef,
|
|
9720
|
+
columns: columns.value,
|
|
9721
|
+
data: tableData.value,
|
|
9722
|
+
loading: loading.value,
|
|
9723
|
+
"max-height": dynamicMaxHeight.value,
|
|
9724
|
+
"row-key": 'hospitalCommodityId',
|
|
9725
|
+
"highlight-current-row": true,
|
|
9726
|
+
"row-class-name": getRowClassName,
|
|
9727
|
+
onRowClick: handleRowClick
|
|
9728
|
+
}, null, 8, [
|
|
9729
|
+
"columns",
|
|
9730
|
+
"data",
|
|
9731
|
+
"loading",
|
|
9732
|
+
"max-height"
|
|
9733
|
+
])
|
|
9734
|
+
])), [
|
|
9735
|
+
[
|
|
9736
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ClickOutside),
|
|
9737
|
+
handleClickOutside
|
|
9738
|
+
]
|
|
9739
|
+
])
|
|
9740
|
+
]),
|
|
9741
|
+
_: 1
|
|
9742
|
+
}, 8, [
|
|
9743
|
+
"width",
|
|
9744
|
+
"visible",
|
|
9745
|
+
"virtual-ref"
|
|
9746
|
+
])
|
|
9747
|
+
]));
|
|
9748
|
+
}
|
|
9749
|
+
});
|
|
9750
|
+
const hospital_charge_select_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(hospital_charge_selectvue_type_script_setup_true_lang_tsx_name_HospitalChargeSelect, [
|
|
9751
|
+
[
|
|
9752
|
+
'__scopeId',
|
|
9753
|
+
"data-v-ffb2d000"
|
|
9754
|
+
]
|
|
9755
|
+
]);
|
|
9756
|
+
/* ESM default export */ const hospital_charge_select = hospital_charge_select_exports_;
|
|
9317
9757
|
const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_1 = {
|
|
9318
9758
|
key: 1,
|
|
9319
9759
|
class: "overflow-hidden"
|
|
@@ -12523,4 +12963,4 @@ const form_design_render_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(f
|
|
|
12523
12963
|
]);
|
|
12524
12964
|
/* ESM default export */ const form_design_render = form_design_render_exports_;
|
|
12525
12965
|
/** components **/ /** hooks ** */ var __webpack_exports__COMPONENT_CODE = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.COMPONENT_CODE;
|
|
12526
|
-
export { utils_AVATAR_TYPE_CODE as AVATAR_TYPE_CODE, access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, biz_unit_select as BizUnitSelect, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, department_select as DepartmentSelect, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, keyboard_value as KeyboardValue, 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, table_select as TableSelect, types_TableSelectMode as TableSelectMode, tag_select as TagSelect, Title, user_select as UserSelect, ward_select as WardSelect, convertToSpellNo, convertToWbNo, createShortcutDirective, debounce, decimalCount, findKeyCommandConfig, formatDecimalNumber, getSystemTime, isNumber, print, queryDataSetByCodeSystemCodes, queryParamListByNos, use_app_config as useAppConfigData, useColumnConfig, useDataChangeDetector, useDirectionKey, use_direction_select as useDirectionSelect, useEditableTable, use_fetch_dataset as useFetchDataset, useFetchParams, useFetchSystemTime, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
|
|
12966
|
+
export { utils_AVATAR_TYPE_CODE as AVATAR_TYPE_CODE, access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, biz_unit_select as BizUnitSelect, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, department_select as DepartmentSelect, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_charge_select as HospitalChargeSelect, hospital_select as HospitalSelect, keyboard_value as KeyboardValue, 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, table_select as TableSelect, types_TableSelectMode as TableSelectMode, tag_select as TagSelect, Title, user_select as UserSelect, ward_select as WardSelect, convertToSpellNo, convertToWbNo, createShortcutDirective, debounce, decimalCount, findKeyCommandConfig, formatDecimalNumber, getSystemTime, isNumber, print, queryDataSetByCodeSystemCodes, queryParamListByNos, use_app_config as useAppConfigData, useColumnConfig, useDataChangeDetector, useDirectionKey, use_direction_select as useDirectionSelect, useEditableTable, use_fetch_dataset as useFetchDataset, useFetchParams, useFetchSystemTime, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
|
|
@@ -21,6 +21,40 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
.hospital-charge-select[data-v-ffb2d000] {
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
.hospital-charge-select .input[data-v-ffb2d000] .el-input__inner {
|
|
28
|
+
cursor: pointer !important;
|
|
29
|
+
}
|
|
30
|
+
[data-v-ffb2d000] .hospital-charge-select-popover {
|
|
31
|
+
max-height: var(--5aebc6cb);
|
|
32
|
+
padding: 0;
|
|
33
|
+
z-index: 9999 !important;
|
|
34
|
+
}
|
|
35
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .popover-content {
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
max-height: var(--5aebc6cb);
|
|
39
|
+
}
|
|
40
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed {
|
|
41
|
+
color: #c0c4cc;
|
|
42
|
+
cursor: not-allowed !important;
|
|
43
|
+
background-color: #f5f7fa !important;
|
|
44
|
+
}
|
|
45
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed td {
|
|
46
|
+
background-color: #f5f7fa !important;
|
|
47
|
+
}
|
|
48
|
+
[data-v-ffb2d000] .hospital-charge-select-popover .el-table__row.cursor-not-allowed:hover > td {
|
|
49
|
+
background-color: #f5f7fa !important;
|
|
50
|
+
}
|
|
51
|
+
.hospital-charge-select-popover {
|
|
52
|
+
margin-bottom: 8px !important;
|
|
53
|
+
}
|
|
54
|
+
.hospital-charge-select-popover {
|
|
55
|
+
margin-top: 8px !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
24
58
|
.input[data-v-9f70929c] .el-input__inner {
|
|
25
59
|
cursor: pointer !important;
|
|
26
60
|
}
|