sun-biz 0.0.4-beta.5 → 0.0.4-beta.6
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/index.d.ts +1 -0
- package/dist/components/biz-select/tag-select/api.d.ts +28 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +382 -27
- package/dist/components/static/css/index.css +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +382 -27
- package/dist/static/css/index.css +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1451,7 +1451,8 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1451
1451
|
return {
|
|
1452
1452
|
...item,
|
|
1453
1453
|
...findObj || {},
|
|
1454
|
-
sortable: item.sortable
|
|
1454
|
+
sortable: item.sortable,
|
|
1455
|
+
ascendFlag: findObj?.ascendFlag
|
|
1455
1456
|
};
|
|
1456
1457
|
});
|
|
1457
1458
|
sourceData.value.sort((a, b)=>a.sort - b.sort);
|
|
@@ -1803,7 +1804,7 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1803
1804
|
const dbgrid_component_setting_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(dbgrid_component_settingvue_type_script_setup_true_lang_tsx, [
|
|
1804
1805
|
[
|
|
1805
1806
|
'__scopeId',
|
|
1806
|
-
"data-v-
|
|
1807
|
+
"data-v-65b0a9d0"
|
|
1807
1808
|
]
|
|
1808
1809
|
]);
|
|
1809
1810
|
/* ESM default export */ const dbgrid_component_setting = dbgrid_component_setting_exports_;
|
|
@@ -1889,20 +1890,41 @@ const EXPORT_FILE = 'export-file';
|
|
|
1889
1890
|
});
|
|
1890
1891
|
return result;
|
|
1891
1892
|
});
|
|
1893
|
+
const getRenderedContent = (render, row, value, index)=>{
|
|
1894
|
+
const tempDiv = document.createElement('div');
|
|
1895
|
+
const app = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createApp)({
|
|
1896
|
+
render () {
|
|
1897
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.h)('div', {}, render(row, value, row, index));
|
|
1898
|
+
}
|
|
1899
|
+
});
|
|
1900
|
+
app.use(__WEBPACK_EXTERNAL_MODULE_element_sun__["default"]);
|
|
1901
|
+
app.mount(tempDiv);
|
|
1902
|
+
const content = tempDiv.textContent || '';
|
|
1903
|
+
app.unmount();
|
|
1904
|
+
return content;
|
|
1905
|
+
};
|
|
1892
1906
|
async function exportFile(value) {
|
|
1893
1907
|
let [, res] = await exportData2File({
|
|
1894
1908
|
fileTypeCode: value,
|
|
1895
1909
|
dataSource: JSON.stringify({
|
|
1896
|
-
columnList: props.columns.filter((cur)=>cur.prop && cur.label && cur.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.YES).map((item)=>({
|
|
1910
|
+
columnList: props.columns.filter((cur)=>cur.prop && cur.label && cur.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.YES && '操作' !== cur.label).map((item)=>({
|
|
1897
1911
|
columnIndex: item.prop,
|
|
1898
1912
|
columnTitle: item.label
|
|
1899
1913
|
})),
|
|
1900
1914
|
rowList: props.tableData.map((item, index)=>({
|
|
1901
1915
|
rowSequenceNo: index,
|
|
1902
|
-
rowRecordList:
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1916
|
+
rowRecordList: props.columns.filter((col)=>col.prop && col.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.YES && '操作' !== col.label).map((col)=>{
|
|
1917
|
+
let value = item[col.prop];
|
|
1918
|
+
if ('function' == typeof col.render) try {
|
|
1919
|
+
value = getRenderedContent(col.render, item, value, index) || value;
|
|
1920
|
+
} catch (error) {
|
|
1921
|
+
console.warn(`Render function error for column ${col.prop}:`, error);
|
|
1922
|
+
}
|
|
1923
|
+
return {
|
|
1924
|
+
columnIndex: col.prop,
|
|
1925
|
+
columnValue: value
|
|
1926
|
+
};
|
|
1927
|
+
})
|
|
1906
1928
|
}))
|
|
1907
1929
|
})
|
|
1908
1930
|
});
|
|
@@ -2024,7 +2046,7 @@ const EXPORT_FILE = 'export-file';
|
|
|
2024
2046
|
const TableSettingButton_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(TableSettingButtonvue_type_script_setup_true_lang_tsx, [
|
|
2025
2047
|
[
|
|
2026
2048
|
'__scopeId',
|
|
2027
|
-
"data-v-
|
|
2049
|
+
"data-v-d83c7b5e"
|
|
2028
2050
|
]
|
|
2029
2051
|
]);
|
|
2030
2052
|
/* ESM default export */ const TableSettingButton = TableSettingButton_exports_;
|
|
@@ -2042,6 +2064,9 @@ const TableSettingButton_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(T
|
|
|
2042
2064
|
},
|
|
2043
2065
|
data: {},
|
|
2044
2066
|
componentNo: {},
|
|
2067
|
+
showSetting: {
|
|
2068
|
+
type: Boolean
|
|
2069
|
+
},
|
|
2045
2070
|
rowKey: {},
|
|
2046
2071
|
tableColumns: {},
|
|
2047
2072
|
commonColumns: {},
|
|
@@ -2061,7 +2086,7 @@ const TableSettingButton_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(T
|
|
|
2061
2086
|
return (_ctx, _cache)=>{
|
|
2062
2087
|
const _directive_loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective)("loading");
|
|
2063
2088
|
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, [
|
|
2064
|
-
props.componentNo ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(TableSettingButton, {
|
|
2089
|
+
props.componentNo && props.showSetting ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(TableSettingButton, {
|
|
2065
2090
|
key: 0,
|
|
2066
2091
|
"table-data": selectedData.value,
|
|
2067
2092
|
componentDesc: props.componentDesc,
|
|
@@ -2286,6 +2311,9 @@ const SELECTION = 'selection';
|
|
|
2286
2311
|
layout: {
|
|
2287
2312
|
default: 'total, sizes, prev, pager, next'
|
|
2288
2313
|
},
|
|
2314
|
+
formDisabled: {
|
|
2315
|
+
type: Boolean
|
|
2316
|
+
},
|
|
2289
2317
|
dragTips: {
|
|
2290
2318
|
default: '温馨提示:您可通过拖动进行排序'
|
|
2291
2319
|
},
|
|
@@ -2310,6 +2338,7 @@ const SELECTION = 'selection';
|
|
|
2310
2338
|
const props = __props;
|
|
2311
2339
|
const sortFieldList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(void 0);
|
|
2312
2340
|
const exportFileFlag = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.NO);
|
|
2341
|
+
const showSetting = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
2313
2342
|
const componentDesc = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('文件');
|
|
2314
2343
|
let state = (0, __WEBPACK_EXTERNAL_MODULE_vue__.reactive)({
|
|
2315
2344
|
// 表格数据
|
|
@@ -2421,6 +2450,7 @@ const SELECTION = 'selection';
|
|
|
2421
2450
|
});
|
|
2422
2451
|
if (result?.success) {
|
|
2423
2452
|
exportFileFlag.value = result.data.exportFileFlag;
|
|
2453
|
+
showSetting.value = !!result.data.componentId;
|
|
2424
2454
|
componentDesc.value = result.data.componentDesc;
|
|
2425
2455
|
try {
|
|
2426
2456
|
let column = result.data.dbgridSettingValue && JSON.parse(result.data.dbgridSettingValue) || [];
|
|
@@ -2643,6 +2673,7 @@ const SELECTION = 'selection';
|
|
|
2643
2673
|
ref_key: "formRef",
|
|
2644
2674
|
ref: formRef,
|
|
2645
2675
|
editable: _ctx.editable,
|
|
2676
|
+
disabled: props.formDisabled,
|
|
2646
2677
|
model: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(state),
|
|
2647
2678
|
class: "flex flex-1 flex-col overflow-hidden"
|
|
2648
2679
|
}, {
|
|
@@ -2653,6 +2684,7 @@ const SELECTION = 'selection';
|
|
|
2653
2684
|
componentDesc: componentDesc.value,
|
|
2654
2685
|
"common-columns": commonColumns.value,
|
|
2655
2686
|
"component-no": props.componentNo,
|
|
2687
|
+
"show-setting": showSetting.value,
|
|
2656
2688
|
"columns-setting": props.columnsSetting,
|
|
2657
2689
|
loading: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(state).loading || props.loading,
|
|
2658
2690
|
onSuccess: fetchDbgridComponent,
|
|
@@ -2679,6 +2711,7 @@ const SELECTION = 'selection';
|
|
|
2679
2711
|
"componentDesc",
|
|
2680
2712
|
"common-columns",
|
|
2681
2713
|
"component-no",
|
|
2714
|
+
"show-setting",
|
|
2682
2715
|
"columns-setting",
|
|
2683
2716
|
"loading",
|
|
2684
2717
|
"data",
|
|
@@ -2690,6 +2723,7 @@ const SELECTION = 'selection';
|
|
|
2690
2723
|
_: 3
|
|
2691
2724
|
}, 8, [
|
|
2692
2725
|
"editable",
|
|
2726
|
+
"disabled",
|
|
2693
2727
|
"model"
|
|
2694
2728
|
]),
|
|
2695
2729
|
props.pagination ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", pro_tablevue_type_script_lang_ts_setup_true_name_ProTable_hoisted_2, [
|
|
@@ -2727,6 +2761,9 @@ const Tablevue_type_script_setup_true_lang_tsx_name_Table_hoisted_1 = {
|
|
|
2727
2761
|
type: Boolean
|
|
2728
2762
|
},
|
|
2729
2763
|
componentDesc: {},
|
|
2764
|
+
showSetting: {
|
|
2765
|
+
type: Boolean
|
|
2766
|
+
},
|
|
2730
2767
|
data: {},
|
|
2731
2768
|
componentNo: {},
|
|
2732
2769
|
rowKey: {},
|
|
@@ -2748,7 +2785,7 @@ const Tablevue_type_script_setup_true_lang_tsx_name_Table_hoisted_1 = {
|
|
|
2748
2785
|
return (_ctx, _cache)=>{
|
|
2749
2786
|
const _directive_loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective)("loading");
|
|
2750
2787
|
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, [
|
|
2751
|
-
props.componentNo ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(TableSettingButton, {
|
|
2788
|
+
props.componentNo && props.showSetting ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(TableSettingButton, {
|
|
2752
2789
|
key: 0,
|
|
2753
2790
|
"table-data": selectedData.value,
|
|
2754
2791
|
componentDesc: props.componentDesc,
|
|
@@ -2972,6 +3009,7 @@ const pro_table_v2vue_type_script_lang_tsx_setup_true_name_ProTable_SELECTION =
|
|
|
2972
3009
|
setup (__props, { expose: __expose, emit: __emit }) {
|
|
2973
3010
|
const props = __props;
|
|
2974
3011
|
const exportFileFlag = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.ENABLED_FLAG.NO);
|
|
3012
|
+
const showSetting = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
2975
3013
|
const componentDesc = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('文件');
|
|
2976
3014
|
let state = (0, __WEBPACK_EXTERNAL_MODULE_vue__.reactive)({
|
|
2977
3015
|
tableData: props.data,
|
|
@@ -3072,6 +3110,7 @@ const pro_table_v2vue_type_script_lang_tsx_setup_true_name_ProTable_SELECTION =
|
|
|
3072
3110
|
});
|
|
3073
3111
|
if (result?.success) {
|
|
3074
3112
|
exportFileFlag.value = result.data.exportFileFlag;
|
|
3113
|
+
showSetting.value = !!result.data.componentId;
|
|
3075
3114
|
componentDesc.value = result.data.componentDesc;
|
|
3076
3115
|
try {
|
|
3077
3116
|
let column = result.data.dbgridSettingValue && JSON.parse(result.data.dbgridSettingValue) || [];
|
|
@@ -3289,6 +3328,7 @@ const pro_table_v2vue_type_script_lang_tsx_setup_true_name_ProTable_SELECTION =
|
|
|
3289
3328
|
"export-file-flag": exportFileFlag.value,
|
|
3290
3329
|
componentDesc: componentDesc.value,
|
|
3291
3330
|
"component-no": props.componentNo,
|
|
3331
|
+
"show-setting": showSetting.value,
|
|
3292
3332
|
"columns-setting": props.columnsSetting,
|
|
3293
3333
|
loading: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(state).loading || props.loading,
|
|
3294
3334
|
onSuccess: fetchDbgridComponent,
|
|
@@ -3305,6 +3345,7 @@ const pro_table_v2vue_type_script_lang_tsx_setup_true_name_ProTable_SELECTION =
|
|
|
3305
3345
|
"export-file-flag",
|
|
3306
3346
|
"componentDesc",
|
|
3307
3347
|
"component-no",
|
|
3348
|
+
"show-setting",
|
|
3308
3349
|
"columns-setting",
|
|
3309
3350
|
"loading",
|
|
3310
3351
|
"data",
|
|
@@ -4225,6 +4266,11 @@ const defaultMoreText = "更多";
|
|
|
4225
4266
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.watchEffect)(()=>{
|
|
4226
4267
|
if (__props.maxShowNum) setRealMaxNum(__props.maxShowNum);
|
|
4227
4268
|
});
|
|
4269
|
+
// 更多按钮 文案逻辑
|
|
4270
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.watchEffect)(()=>{
|
|
4271
|
+
const activeIndex = __props.wayList?.findIndex((item)=>item.searchTypeId === __props.activeAccessWay.searchTypeId);
|
|
4272
|
+
if (__props.wayList && void 0 !== activeIndex && -1 !== activeIndex) moreButtonText.value = activeIndex > realMaxNum.value ? __props.wayList[activeIndex].bizSearchTypeNameDisplay : defaultMoreText;
|
|
4273
|
+
});
|
|
4228
4274
|
return (_ctx, _cache)=>_ctx.wayList?.length ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", {
|
|
4229
4275
|
key: 0,
|
|
4230
4276
|
class: "flex-auto",
|
|
@@ -4306,6 +4352,7 @@ const patient_accessvue_type_script_setup_true_lang_ts_hoisted_1 = {
|
|
|
4306
4352
|
},
|
|
4307
4353
|
emits: [
|
|
4308
4354
|
"change",
|
|
4355
|
+
"input-change",
|
|
4309
4356
|
"clear"
|
|
4310
4357
|
],
|
|
4311
4358
|
setup (__props, { expose: __expose, emit: __emit }) {
|
|
@@ -4471,7 +4518,10 @@ const patient_accessvue_type_script_setup_true_lang_ts_hoisted_1 = {
|
|
|
4471
4518
|
"active-access-way": activeAccessWay.value,
|
|
4472
4519
|
"search-loading": searchLoading.value,
|
|
4473
4520
|
"input-change": inputChange.value,
|
|
4474
|
-
onInput: _cache[1] || (_cache[1] = ()=>
|
|
4521
|
+
onInput: _cache[1] || (_cache[1] = (val)=>{
|
|
4522
|
+
inputChange.value = true;
|
|
4523
|
+
emits('input-change', val);
|
|
4524
|
+
}),
|
|
4475
4525
|
onClear: _cache[2] || (_cache[2] = ()=>emits('clear')),
|
|
4476
4526
|
onEnter: _cache[3] || (_cache[3] = ()=>{
|
|
4477
4527
|
handleAccess(activeAccessWay.value);
|
|
@@ -4864,7 +4914,7 @@ const _hoisted_12 = {
|
|
|
4864
4914
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3, [
|
|
4865
4915
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4, [
|
|
4866
4916
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
|
|
4867
|
-
class: "text-lg w-full font-bold overflow-hidden text-ellipsis whitespace-nowrap leading-
|
|
4917
|
+
class: "text-lg w-full font-bold overflow-hidden text-ellipsis whitespace-nowrap leading-7",
|
|
4868
4918
|
onMouseenter: checkTextOverflow
|
|
4869
4919
|
}, [
|
|
4870
4920
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTooltip), {
|
|
@@ -4872,7 +4922,7 @@ const _hoisted_12 = {
|
|
|
4872
4922
|
content: bannerInfo.value?.personName
|
|
4873
4923
|
}, {
|
|
4874
4924
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
4875
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.personName ??
|
|
4925
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.personName ?? "--"), 1)
|
|
4876
4926
|
]),
|
|
4877
4927
|
_: 1
|
|
4878
4928
|
}, 8, [
|
|
@@ -4881,16 +4931,16 @@ const _hoisted_12 = {
|
|
|
4881
4931
|
])
|
|
4882
4932
|
], 32),
|
|
4883
4933
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_5, [
|
|
4884
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_6, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.age ??
|
|
4885
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_7, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.genderDesc ??
|
|
4934
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_6, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.age ?? "--"), 1),
|
|
4935
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_7, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.genderDesc ?? "--"), 1)
|
|
4886
4936
|
])
|
|
4887
4937
|
])
|
|
4888
4938
|
])
|
|
4889
4939
|
]),
|
|
4890
4940
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", _hoisted_8, [
|
|
4891
4941
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(BANNER_COMPONENT_CONFIG)[_ctx.code].bizIdTypeCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE).IENC_ENCOUNTER ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", _hoisted_9, [
|
|
4892
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_10, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.inpatientStatusDesc ??
|
|
4893
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.inpatientDays ??
|
|
4942
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_10, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.inpatientStatusDesc ?? "--"), 1),
|
|
4943
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.inpatientDays ?? "--"), 1)
|
|
4894
4944
|
])) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
4895
4945
|
])
|
|
4896
4946
|
]),
|
|
@@ -4918,7 +4968,7 @@ const _hoisted_12 = {
|
|
|
4918
4968
|
content: item.dataValue
|
|
4919
4969
|
}, {
|
|
4920
4970
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
4921
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_12, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.dataValue ||
|
|
4971
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_12, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.dataValue || "--"), 1)
|
|
4922
4972
|
]),
|
|
4923
4973
|
_: 2
|
|
4924
4974
|
}, 1032, [
|
|
@@ -5573,13 +5623,14 @@ const createPrint = ()=>{
|
|
|
5573
5623
|
/**
|
|
5574
5624
|
* 2.弹窗询问
|
|
5575
5625
|
*/ const dialogAsk = async ()=>{
|
|
5576
|
-
const { receiptPrintRuleCode, receiptPrintCategCode, receiptNameDisplay, menuXReceiptList } = defaultContext.receiptInfo || {};
|
|
5626
|
+
const { receiptPrintRuleCode, receiptPrintCategCode, redPrintCategCode, receiptNameDisplay, menuXReceiptList } = defaultContext.receiptInfo || {};
|
|
5577
5627
|
if (!receiptPrintRuleCode) return;
|
|
5578
5628
|
let code = receiptPrintCategCode;
|
|
5579
5629
|
if (receiptPrintRuleCode === constant_RECEIPT_PRINT_RULE_CODE.MENU) {
|
|
5580
5630
|
const menuReceiptInfo = menuXReceiptList?.find((item)=>item.menuId === defaultContext.printParams?.menuId);
|
|
5581
5631
|
code = menuReceiptInfo?.receiptPrintCategCode || receiptPrintCategCode;
|
|
5582
5632
|
}
|
|
5633
|
+
if (defaultContext?.printParams?.invoiceInfo?.invOperateTypeCode === constant_INV_OPERATE_TYPE_CODE.RED) code = redPrintCategCode;
|
|
5583
5634
|
const isConfirmed = await messageBoxAskJudge(code, receiptNameDisplay);
|
|
5584
5635
|
if (!isConfirmed) {
|
|
5585
5636
|
breakPrint = true; // 如果用户取消操作,设置 breakPrint 为 true
|
|
@@ -5673,9 +5724,10 @@ const createPrint = ()=>{
|
|
|
5673
5724
|
}
|
|
5674
5725
|
};
|
|
5675
5726
|
/** 6.组织票据分单 */ const splitInvoiceFn = async ()=>{
|
|
5676
|
-
if (defaultContext.printParams?.designFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO)
|
|
5677
|
-
|
|
5678
|
-
|
|
5727
|
+
if (defaultContext.printParams?.designFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO) {
|
|
5728
|
+
/** 退费使用红票打印类别代码,非红冲使用单据打印类别代码 */ const shouldPrint = defaultContext?.printParams?.invoiceInfo?.invOperateTypeCode === constant_INV_OPERATE_TYPE_CODE.RED ? defaultContext?.receiptInfo?.redPrintCategCode !== constant_RECEIPT_PRINT_CATEG_CODE.NO_PRINT : defaultContext?.receiptInfo?.receiptPrintCategCode !== constant_RECEIPT_PRINT_CATEG_CODE.NO_PRINT;
|
|
5729
|
+
//6
|
|
5730
|
+
if (defaultContext?.printParams?.invoiceInfo?.invoiceAllotId && defaultContext?.receiptInfo?.invoiceFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES && shouldPrint) {
|
|
5679
5731
|
const interfaceId = defaultContext?.printParams?.invoiceInfo?.invoiceInterfaceId ?? defaultContext?.receiptInfo?.invoiceInterfaceId;
|
|
5680
5732
|
if (!interfaceId) {
|
|
5681
5733
|
__WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.error("单据未配置票据接口,无法开票!");
|
|
@@ -6506,6 +6558,303 @@ const flag_select_exports_ = flag_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
6506
6558
|
});
|
|
6507
6559
|
const hospital_select_exports_ = hospital_selectvue_type_script_setup_true_lang_tsx_name_HospitalSelect;
|
|
6508
6560
|
/* ESM default export */ const hospital_select = hospital_select_exports_;
|
|
6561
|
+
/**
|
|
6562
|
+
* [1-10473-1]根据条件查询标签分组V1(含标签)
|
|
6563
|
+
* @param params
|
|
6564
|
+
* @returns
|
|
6565
|
+
*/ const queryTagGroupByExampleV1 = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/tag/queryTagGroupByExampleV1', params);
|
|
6566
|
+
const tag_selectvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
6567
|
+
class: "flex flex-wrap gap-2"
|
|
6568
|
+
};
|
|
6569
|
+
const SELECT_WIDTH = 15; // rem
|
|
6570
|
+
const TAG_MARGIN = 1; // 1rem
|
|
6571
|
+
/* ESM default export */ const tag_selectvue_type_script_lang_ts_setup_true = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
6572
|
+
__name: 'index',
|
|
6573
|
+
props: {
|
|
6574
|
+
bizIdTypeCode: {},
|
|
6575
|
+
bizId: {},
|
|
6576
|
+
disabled: {
|
|
6577
|
+
type: Boolean
|
|
6578
|
+
}
|
|
6579
|
+
},
|
|
6580
|
+
emits: [
|
|
6581
|
+
'change'
|
|
6582
|
+
],
|
|
6583
|
+
setup (__props, { emit: __emit }) {
|
|
6584
|
+
const emit = __emit;
|
|
6585
|
+
const attrs = (0, __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs)();
|
|
6586
|
+
const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(true);
|
|
6587
|
+
const props = __props;
|
|
6588
|
+
const tableData = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
|
|
6589
|
+
const selectValue = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('');
|
|
6590
|
+
const selectVisible = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
6591
|
+
const SelectRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
6592
|
+
const containerRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
6593
|
+
const moreButtonRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
6594
|
+
const realMaxNum = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(2);
|
|
6595
|
+
// 计算rem到px的转换
|
|
6596
|
+
const getRemValue = (rem)=>rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
6597
|
+
// 常量定义
|
|
6598
|
+
const MORE_BUTTON_WIDTH = 5 + TAG_MARGIN; // rem
|
|
6599
|
+
// 计算所有标签的映射,方便通过tagId查找tagNameDisplay
|
|
6600
|
+
const allTagsMap = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
|
|
6601
|
+
const map = new Map();
|
|
6602
|
+
tableData.value.forEach((group)=>{
|
|
6603
|
+
group.tagList.forEach((tag)=>{
|
|
6604
|
+
map.set(tag.tagId, tag.tagNameDisplay);
|
|
6605
|
+
});
|
|
6606
|
+
});
|
|
6607
|
+
return map;
|
|
6608
|
+
});
|
|
6609
|
+
const calcMaxNum = (wrapperNode)=>{
|
|
6610
|
+
if (!wrapperNode || !attrs.modelValue) return;
|
|
6611
|
+
const modelValue = Array.isArray(attrs.modelValue) ? attrs.modelValue : [
|
|
6612
|
+
attrs.modelValue
|
|
6613
|
+
];
|
|
6614
|
+
if (!modelValue.length) {
|
|
6615
|
+
realMaxNum.value = 0;
|
|
6616
|
+
return;
|
|
6617
|
+
}
|
|
6618
|
+
// 计算每个标签的宽度
|
|
6619
|
+
const tagWidths = modelValue.map((item)=>{
|
|
6620
|
+
// 为每个标签创建独立的容器
|
|
6621
|
+
const tagContainer = document.createElement('div');
|
|
6622
|
+
tagContainer.style.position = 'absolute';
|
|
6623
|
+
tagContainer.style.visibility = 'hidden';
|
|
6624
|
+
document.body.appendChild(tagContainer);
|
|
6625
|
+
const vnode = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag, {
|
|
6626
|
+
closable: !props.disabled,
|
|
6627
|
+
size: 'large',
|
|
6628
|
+
disableTransitions: true,
|
|
6629
|
+
class: 'mr-4'
|
|
6630
|
+
}, ()=>allTagsMap.value.get(item) || item);
|
|
6631
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.render)(vnode, tagContainer);
|
|
6632
|
+
const width = tagContainer.firstElementChild?.getBoundingClientRect().width || 0;
|
|
6633
|
+
document.body.removeChild(tagContainer);
|
|
6634
|
+
return width + getRemValue(TAG_MARGIN);
|
|
6635
|
+
});
|
|
6636
|
+
// 计算可用宽度
|
|
6637
|
+
const availableWidth = wrapperNode.offsetWidth - (props.disabled ? 0 : getRemValue(SELECT_WIDTH));
|
|
6638
|
+
const totalWidth = tagWidths.reduce((sum, width)=>sum + width, 0);
|
|
6639
|
+
// 如果所有标签都能显示,直接显示所有标签
|
|
6640
|
+
if (totalWidth <= availableWidth) {
|
|
6641
|
+
realMaxNum.value = modelValue.length;
|
|
6642
|
+
return;
|
|
6643
|
+
}
|
|
6644
|
+
// 如果放不下所有标签,需要显示更多按钮
|
|
6645
|
+
const availableWidthWithMore = availableWidth - getRemValue(MORE_BUTTON_WIDTH);
|
|
6646
|
+
// 计算可以显示多少个标签
|
|
6647
|
+
let currentWidth = 0;
|
|
6648
|
+
let count = 0;
|
|
6649
|
+
for (const width of tagWidths)if (currentWidth + width <= availableWidthWithMore) {
|
|
6650
|
+
currentWidth += width;
|
|
6651
|
+
count++;
|
|
6652
|
+
} else break;
|
|
6653
|
+
realMaxNum.value = count;
|
|
6654
|
+
};
|
|
6655
|
+
// Methods
|
|
6656
|
+
const handleClose = (bizId)=>{
|
|
6657
|
+
if (Array.isArray(attrs.modelValue)) {
|
|
6658
|
+
const newModelValue = attrs.modelValue.filter((id)=>id !== bizId);
|
|
6659
|
+
change(newModelValue);
|
|
6660
|
+
} else if (attrs.modelValue === bizId) change('');
|
|
6661
|
+
};
|
|
6662
|
+
const showSelect = ()=>{
|
|
6663
|
+
selectVisible.value = true;
|
|
6664
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(()=>{
|
|
6665
|
+
SelectRef.value?.focus();
|
|
6666
|
+
});
|
|
6667
|
+
};
|
|
6668
|
+
const handleSelectConfirm = ()=>{
|
|
6669
|
+
if (!selectValue.value) {
|
|
6670
|
+
selectVisible.value = false;
|
|
6671
|
+
return;
|
|
6672
|
+
}
|
|
6673
|
+
const currentValues = Array.isArray(attrs.modelValue) ? attrs.modelValue : attrs.modelValue ? [
|
|
6674
|
+
attrs.modelValue
|
|
6675
|
+
] : [];
|
|
6676
|
+
change([
|
|
6677
|
+
...currentValues,
|
|
6678
|
+
selectValue.value
|
|
6679
|
+
]);
|
|
6680
|
+
selectValue.value = '';
|
|
6681
|
+
selectVisible.value = false;
|
|
6682
|
+
};
|
|
6683
|
+
async function fetchData() {
|
|
6684
|
+
loading.value = true;
|
|
6685
|
+
let [, result] = await queryTagGroupByExampleV1({
|
|
6686
|
+
bizIdTypeCode: props.bizIdTypeCode,
|
|
6687
|
+
bizId: props.bizId,
|
|
6688
|
+
enabledFlag: 1
|
|
6689
|
+
});
|
|
6690
|
+
loading.value = false;
|
|
6691
|
+
if (result?.success) {
|
|
6692
|
+
tableData.value = result.data;
|
|
6693
|
+
calcMaxNum(containerRef.value);
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
6697
|
+
fetchData();
|
|
6698
|
+
// 等待所有标签渲染完成
|
|
6699
|
+
});
|
|
6700
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>attrs.modelValue, ()=>{
|
|
6701
|
+
const modelValue = Array.isArray(attrs.modelValue) ? attrs.modelValue : attrs.modelValue ? [
|
|
6702
|
+
attrs.modelValue
|
|
6703
|
+
] : [];
|
|
6704
|
+
if (modelValue.length) // 等待所有标签渲染完成
|
|
6705
|
+
{
|
|
6706
|
+
if (containerRef.value) calcMaxNum(containerRef.value);
|
|
6707
|
+
}
|
|
6708
|
+
});
|
|
6709
|
+
/**
|
|
6710
|
+
*
|
|
6711
|
+
* @param value 下拉框选择
|
|
6712
|
+
*/ function change(value) {
|
|
6713
|
+
if (attrs['onUpdate:modelValue']) attrs['onUpdate:modelValue'](value);
|
|
6714
|
+
emit('change', value);
|
|
6715
|
+
}
|
|
6716
|
+
return (_ctx, _cache)=>{
|
|
6717
|
+
const _component_el_button = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-button");
|
|
6718
|
+
const _component_el_popover = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-popover");
|
|
6719
|
+
const _component_el_option = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-option");
|
|
6720
|
+
const _component_el_option_group = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-option-group");
|
|
6721
|
+
const _component_el_select = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-select");
|
|
6722
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", {
|
|
6723
|
+
ref_key: "containerRef",
|
|
6724
|
+
ref: containerRef,
|
|
6725
|
+
class: "w-full"
|
|
6726
|
+
}, [
|
|
6727
|
+
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)((Array.isArray((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue) ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue : (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue ? [
|
|
6728
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
|
|
6729
|
+
] : []).slice(0, realMaxNum.value), (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
|
|
6730
|
+
key: item,
|
|
6731
|
+
closable: !props.disabled,
|
|
6732
|
+
class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
|
|
6733
|
+
'mr-4'
|
|
6734
|
+
]),
|
|
6735
|
+
size: "large",
|
|
6736
|
+
"disable-transitions": true,
|
|
6737
|
+
onClose: ($event)=>handleClose(item)
|
|
6738
|
+
}, {
|
|
6739
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6740
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item) || item), 1)
|
|
6741
|
+
]),
|
|
6742
|
+
_: 2
|
|
6743
|
+
}, 1032, [
|
|
6744
|
+
"closable",
|
|
6745
|
+
"onClose"
|
|
6746
|
+
]))), 128)),
|
|
6747
|
+
(Array.isArray((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue) ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue : (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue ? [
|
|
6748
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
|
|
6749
|
+
] : []).length > realMaxNum.value ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_popover, {
|
|
6750
|
+
key: 0,
|
|
6751
|
+
placement: "bottom",
|
|
6752
|
+
trigger: "hover"
|
|
6753
|
+
}, {
|
|
6754
|
+
reference: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6755
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_button, {
|
|
6756
|
+
ref_key: "moreButtonRef",
|
|
6757
|
+
ref: moreButtonRef,
|
|
6758
|
+
style: {
|
|
6759
|
+
"margin-left": "0"
|
|
6760
|
+
},
|
|
6761
|
+
class: "mr-4"
|
|
6762
|
+
}, {
|
|
6763
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6764
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("更多 +" + (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)((Array.isArray((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue) ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue : (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue ? [
|
|
6765
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
|
|
6766
|
+
] : []).length - realMaxNum.value), 1)
|
|
6767
|
+
]),
|
|
6768
|
+
_: 1
|
|
6769
|
+
}, 512)
|
|
6770
|
+
]),
|
|
6771
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6772
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", tag_selectvue_type_script_lang_ts_setup_true_hoisted_1, [
|
|
6773
|
+
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)((Array.isArray((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue) ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue : (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue ? [
|
|
6774
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue
|
|
6775
|
+
] : []).slice(realMaxNum.value), (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElTag), {
|
|
6776
|
+
key: item,
|
|
6777
|
+
closable: !props.disabled,
|
|
6778
|
+
size: "large",
|
|
6779
|
+
"disable-transitions": true,
|
|
6780
|
+
onClose: ($event)=>handleClose(item)
|
|
6781
|
+
}, {
|
|
6782
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6783
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(allTagsMap.value.get(item) || item), 1)
|
|
6784
|
+
]),
|
|
6785
|
+
_: 2
|
|
6786
|
+
}, 1032, [
|
|
6787
|
+
"closable",
|
|
6788
|
+
"onClose"
|
|
6789
|
+
]))), 128))
|
|
6790
|
+
])
|
|
6791
|
+
]),
|
|
6792
|
+
_: 1
|
|
6793
|
+
})) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true),
|
|
6794
|
+
selectVisible.value && !props.disabled ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_select, {
|
|
6795
|
+
key: 1,
|
|
6796
|
+
ref_key: "SelectRef",
|
|
6797
|
+
ref: SelectRef,
|
|
6798
|
+
modelValue: selectValue.value,
|
|
6799
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>selectValue.value = $event),
|
|
6800
|
+
class: "w-60",
|
|
6801
|
+
filterable: "",
|
|
6802
|
+
placeholder: _ctx.$t('tagManage.range.select.bizId', '请选择'),
|
|
6803
|
+
onChange: handleSelectConfirm,
|
|
6804
|
+
onBlur: handleSelectConfirm
|
|
6805
|
+
}, {
|
|
6806
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6807
|
+
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(tableData.value, (group)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_option_group, {
|
|
6808
|
+
key: group.tagGroupId,
|
|
6809
|
+
label: group.tagGroupNameDisplay,
|
|
6810
|
+
value: group.tagGroupId
|
|
6811
|
+
}, {
|
|
6812
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6813
|
+
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(group.tagList, (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_option, {
|
|
6814
|
+
key: item.tagId,
|
|
6815
|
+
disabled: ((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).modelValue || []).includes(item.tagId),
|
|
6816
|
+
label: item.tagNameDisplay,
|
|
6817
|
+
value: item.tagId
|
|
6818
|
+
}, null, 8, [
|
|
6819
|
+
"disabled",
|
|
6820
|
+
"label",
|
|
6821
|
+
"value"
|
|
6822
|
+
]))), 128))
|
|
6823
|
+
]),
|
|
6824
|
+
_: 2
|
|
6825
|
+
}, 1032, [
|
|
6826
|
+
"label",
|
|
6827
|
+
"value"
|
|
6828
|
+
]))), 128))
|
|
6829
|
+
]),
|
|
6830
|
+
_: 1
|
|
6831
|
+
}, 8, [
|
|
6832
|
+
"modelValue",
|
|
6833
|
+
"placeholder"
|
|
6834
|
+
])) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true),
|
|
6835
|
+
selectVisible.value || props.disabled ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_button, {
|
|
6836
|
+
key: 2,
|
|
6837
|
+
style: {
|
|
6838
|
+
"margin-left": "0"
|
|
6839
|
+
},
|
|
6840
|
+
class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)({
|
|
6841
|
+
'pointer-events-none': props.disabled
|
|
6842
|
+
}),
|
|
6843
|
+
onClick: showSelect
|
|
6844
|
+
}, {
|
|
6845
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[1] || (_cache[1] = [
|
|
6846
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" + ")
|
|
6847
|
+
])),
|
|
6848
|
+
_: 1
|
|
6849
|
+
}, 8, [
|
|
6850
|
+
"class"
|
|
6851
|
+
]))
|
|
6852
|
+
], 512);
|
|
6853
|
+
};
|
|
6854
|
+
}
|
|
6855
|
+
});
|
|
6856
|
+
const tag_select_exports_ = tag_selectvue_type_script_lang_ts_setup_true;
|
|
6857
|
+
/* ESM default export */ const tag_select = tag_select_exports_;
|
|
6509
6858
|
const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_1 = {
|
|
6510
6859
|
key: 1,
|
|
6511
6860
|
class: "overflow-hidden"
|
|
@@ -6574,17 +6923,23 @@ const DICT_SELECT = 'dictSelect';
|
|
|
6574
6923
|
clearable: ""
|
|
6575
6924
|
}, {
|
|
6576
6925
|
...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs)
|
|
6926
|
+
}), null, 16)) : 'tagSelect' === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tag_select), (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
6927
|
+
key: 3,
|
|
6928
|
+
clearable: ""
|
|
6929
|
+
}, {
|
|
6930
|
+
...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs),
|
|
6931
|
+
bizIdTypeCode: __WEBPACK_EXTERNAL_MODULE_vue__.unref(attrs)?.extraProps?.bizIdTypeCode
|
|
6577
6932
|
}), null, 16)) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component === DICT_SELECT ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(dict_select), (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeProps)((0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
6578
|
-
key:
|
|
6933
|
+
key: 4
|
|
6579
6934
|
}, {
|
|
6580
6935
|
...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs)
|
|
6581
6936
|
})), null, 16)) : 'flagSelect' === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(flag_select), (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
6582
|
-
key:
|
|
6937
|
+
key: 5,
|
|
6583
6938
|
clearable: ""
|
|
6584
6939
|
}, {
|
|
6585
6940
|
...(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs)
|
|
6586
6941
|
}), null, 16)) : 'checkbox' === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component || 'checkbox-group' === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component || 'radio-group' === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(`el-${(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component}`), (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
6587
|
-
key:
|
|
6942
|
+
key: 6,
|
|
6588
6943
|
ref_key: "componentRef",
|
|
6589
6944
|
ref: componentRef,
|
|
6590
6945
|
clearable: ""
|
|
@@ -6626,7 +6981,7 @@ const DICT_SELECT = 'dictSelect';
|
|
|
6626
6981
|
]),
|
|
6627
6982
|
_: 1
|
|
6628
6983
|
}, 16)) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(`el-${(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(attrs).component}`), (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
6629
|
-
key:
|
|
6984
|
+
key: 7,
|
|
6630
6985
|
ref_key: "componentRef",
|
|
6631
6986
|
ref: componentRef,
|
|
6632
6987
|
clearable: ""
|
|
@@ -8442,4 +8797,4 @@ const form_design_render_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(f
|
|
|
8442
8797
|
return time;
|
|
8443
8798
|
}
|
|
8444
8799
|
/** components **/ /** hooks ** */ var __webpack_exports__COMPONENT_CODE = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.COMPONENT_CODE;
|
|
8445
|
-
export { access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, pro_table_v2 as ProTableV2, Title, convertToSpellNo, convertToWbNo, debounce, decimalCount, formatDecimalNumber, getSystemTime, isNumber, print, queryDataSetByCodeSystemCodes, use_app_config as useAppConfigData, useColumnConfig, useDataChangeDetector, use_direction_select as useDirectionSelect, useEditableTable, use_fetch_dataset as useFetchDataset, useFetchSystemTiem, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
|
|
8800
|
+
export { access_info as AccessInfo, BANNER_COMPONENT_CONFIG, BannerInfo, copy_text_with_tooltip as CopyTextWithTooltip, constant_DATA_SOURCE_CONTENT_TYPE_CODE as DATA_SOURCE_CONTENT_TYPE_CODE, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, dml_button as DmlButton, flag_select as FlagSelect, form_design_render as FormDesignRender, FormUnit, hospital_select as HospitalSelect, use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, patient_access as PatientAccess, PatientInfo, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, pro_table_v2 as ProTableV2, tag_select as TagSelect, Title, convertToSpellNo, convertToWbNo, debounce, decimalCount, formatDecimalNumber, getSystemTime, isNumber, print, queryDataSetByCodeSystemCodes, use_app_config as useAppConfigData, useColumnConfig, useDataChangeDetector, use_direction_select as useDirectionSelect, useEditableTable, use_fetch_dataset as useFetchDataset, useFetchSystemTiem, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
|