sun-biz 0.0.3-beta.11 → 0.0.3-beta.12
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/index.js +17 -10
- package/dist/components/print/template.d.ts +1 -0
- package/dist/index.js +17 -10
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -3091,11 +3091,13 @@ const BannerInfo_exports_ = BannerInfovue_type_script_setup_true_lang_ts_name_ba
|
|
|
3091
3091
|
/* ESM default export */ const printTemplatevue_type_script_lang_ts_setup_true_name_printDialog = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
3092
3092
|
__name: 'printTemplate',
|
|
3093
3093
|
props: {
|
|
3094
|
-
printTemplateList: {}
|
|
3094
|
+
printTemplateList: {},
|
|
3095
|
+
onTemplateConfirm: {
|
|
3096
|
+
type: Function
|
|
3097
|
+
}
|
|
3095
3098
|
},
|
|
3096
3099
|
setup (__props, { expose: __expose }) {
|
|
3097
3100
|
const props = __props;
|
|
3098
|
-
const { templateConfirm } = createPrint();
|
|
3099
3101
|
const templateModel = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)({
|
|
3100
3102
|
templateId: ""
|
|
3101
3103
|
});
|
|
@@ -3125,7 +3127,7 @@ const BannerInfo_exports_ = BannerInfovue_type_script_setup_true_lang_ts_name_ba
|
|
|
3125
3127
|
const handleConfirmSubmit = async ()=>{
|
|
3126
3128
|
await formRef.value?.validate();
|
|
3127
3129
|
const printTemplate = printTemplateList.value.find((item)=>item.receiptTemplateRuleId === templateModel.value.templateId);
|
|
3128
|
-
await
|
|
3130
|
+
await props.onTemplateConfirm(printTemplate);
|
|
3129
3131
|
return [];
|
|
3130
3132
|
};
|
|
3131
3133
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
@@ -3656,7 +3658,8 @@ const createPrint = ()=>{
|
|
|
3656
3658
|
// 打印模板list
|
|
3657
3659
|
defaultContext.printTemplateList = chooseReceiptTemplateRuleList?.filter((item)=>item.enabledFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES) ?? [];
|
|
3658
3660
|
if (defaultContext?.printTemplateList.length > 1) createPrintTemplate({
|
|
3659
|
-
printTemplateList: defaultContext?.printTemplateList
|
|
3661
|
+
printTemplateList: defaultContext?.printTemplateList,
|
|
3662
|
+
onTemplateConfirm: templateConfirm
|
|
3660
3663
|
});
|
|
3661
3664
|
else if (defaultContext?.printTemplateList.length === 1) {
|
|
3662
3665
|
defaultContext.printTemplate = defaultContext?.printTemplateList[0];
|
|
@@ -4013,6 +4016,7 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4013
4016
|
props: {
|
|
4014
4017
|
dataSearchBizIdTypeCode: {},
|
|
4015
4018
|
codeSystemNo: {},
|
|
4019
|
+
dataDictionaryId: {},
|
|
4016
4020
|
disabled: {
|
|
4017
4021
|
type: Boolean
|
|
4018
4022
|
},
|
|
@@ -4050,12 +4054,15 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4050
4054
|
let inputChange = debounce(fetchData, 500);
|
|
4051
4055
|
async function fetchData(value) {
|
|
4052
4056
|
loading.value = true;
|
|
4057
|
+
let params = {};
|
|
4058
|
+
if (props.codeSystemNo) params.codeSystemNo = props.codeSystemNo;
|
|
4059
|
+
if (props.dataDictionaryId) params.dataDictionaryId = props.dataDictionaryId;
|
|
4053
4060
|
let [, result] = await queryDictDataListByExample({
|
|
4054
4061
|
dataSearchBizIdTypeCode: props.dataSearchBizIdTypeCode || '',
|
|
4055
|
-
codeSystemNo: props.codeSystemNo,
|
|
4056
4062
|
keyWord: value,
|
|
4057
4063
|
sysMenuId: menuId || '',
|
|
4058
|
-
hospitalId: currentOrg?.orgId || ''
|
|
4064
|
+
hospitalId: currentOrg?.orgId || '',
|
|
4065
|
+
...params
|
|
4059
4066
|
});
|
|
4060
4067
|
loading.value = false;
|
|
4061
4068
|
if (result?.success) {
|
|
@@ -4067,9 +4074,9 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4067
4074
|
}
|
|
4068
4075
|
}
|
|
4069
4076
|
/**
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4077
|
+
*
|
|
4078
|
+
* @param value 下拉框选择
|
|
4079
|
+
*/ function change(value) {
|
|
4073
4080
|
let name = (tableData.value.find((item)=>item.value === value) || {})['label'];
|
|
4074
4081
|
emit('change', value, name);
|
|
4075
4082
|
}
|
|
@@ -4113,7 +4120,7 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4113
4120
|
const dict_select_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(dict_selectvue_type_script_setup_true_lang_ts, [
|
|
4114
4121
|
[
|
|
4115
4122
|
'__scopeId',
|
|
4116
|
-
"data-v-
|
|
4123
|
+
"data-v-665ba894"
|
|
4117
4124
|
]
|
|
4118
4125
|
]);
|
|
4119
4126
|
/* ESM default export */ const dict_select = dict_select_exports_;
|
package/dist/index.js
CHANGED
|
@@ -3489,11 +3489,13 @@ const BannerInfo_exports_ = BannerInfovue_type_script_setup_true_lang_ts_name_ba
|
|
|
3489
3489
|
/* ESM default export */ const printTemplatevue_type_script_lang_ts_setup_true_name_printDialog = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
3490
3490
|
__name: 'printTemplate',
|
|
3491
3491
|
props: {
|
|
3492
|
-
printTemplateList: {}
|
|
3492
|
+
printTemplateList: {},
|
|
3493
|
+
onTemplateConfirm: {
|
|
3494
|
+
type: Function
|
|
3495
|
+
}
|
|
3493
3496
|
},
|
|
3494
3497
|
setup (__props, { expose: __expose }) {
|
|
3495
3498
|
const props = __props;
|
|
3496
|
-
const { templateConfirm } = createPrint();
|
|
3497
3499
|
const templateModel = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)({
|
|
3498
3500
|
templateId: ""
|
|
3499
3501
|
});
|
|
@@ -3523,7 +3525,7 @@ const BannerInfo_exports_ = BannerInfovue_type_script_setup_true_lang_ts_name_ba
|
|
|
3523
3525
|
const handleConfirmSubmit = async ()=>{
|
|
3524
3526
|
await formRef.value?.validate();
|
|
3525
3527
|
const printTemplate = printTemplateList.value.find((item)=>item.receiptTemplateRuleId === templateModel.value.templateId);
|
|
3526
|
-
await
|
|
3528
|
+
await props.onTemplateConfirm(printTemplate);
|
|
3527
3529
|
return [];
|
|
3528
3530
|
};
|
|
3529
3531
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
@@ -4054,7 +4056,8 @@ const createPrint = ()=>{
|
|
|
4054
4056
|
// 打印模板list
|
|
4055
4057
|
defaultContext.printTemplateList = chooseReceiptTemplateRuleList?.filter((item)=>item.enabledFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES) ?? [];
|
|
4056
4058
|
if (defaultContext?.printTemplateList.length > 1) createPrintTemplate({
|
|
4057
|
-
printTemplateList: defaultContext?.printTemplateList
|
|
4059
|
+
printTemplateList: defaultContext?.printTemplateList,
|
|
4060
|
+
onTemplateConfirm: templateConfirm
|
|
4058
4061
|
});
|
|
4059
4062
|
else if (defaultContext?.printTemplateList.length === 1) {
|
|
4060
4063
|
defaultContext.printTemplate = defaultContext?.printTemplateList[0];
|
|
@@ -4627,6 +4630,7 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4627
4630
|
props: {
|
|
4628
4631
|
dataSearchBizIdTypeCode: {},
|
|
4629
4632
|
codeSystemNo: {},
|
|
4633
|
+
dataDictionaryId: {},
|
|
4630
4634
|
disabled: {
|
|
4631
4635
|
type: Boolean
|
|
4632
4636
|
},
|
|
@@ -4664,12 +4668,15 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4664
4668
|
let inputChange = debounce(fetchData, 500);
|
|
4665
4669
|
async function fetchData(value) {
|
|
4666
4670
|
loading.value = true;
|
|
4671
|
+
let params = {};
|
|
4672
|
+
if (props.codeSystemNo) params.codeSystemNo = props.codeSystemNo;
|
|
4673
|
+
if (props.dataDictionaryId) params.dataDictionaryId = props.dataDictionaryId;
|
|
4667
4674
|
let [, result] = await queryDictDataListByExample({
|
|
4668
4675
|
dataSearchBizIdTypeCode: props.dataSearchBizIdTypeCode || '',
|
|
4669
|
-
codeSystemNo: props.codeSystemNo,
|
|
4670
4676
|
keyWord: value,
|
|
4671
4677
|
sysMenuId: menuId || '',
|
|
4672
|
-
hospitalId: currentOrg?.orgId || ''
|
|
4678
|
+
hospitalId: currentOrg?.orgId || '',
|
|
4679
|
+
...params
|
|
4673
4680
|
});
|
|
4674
4681
|
loading.value = false;
|
|
4675
4682
|
if (result?.success) {
|
|
@@ -4681,9 +4688,9 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4681
4688
|
}
|
|
4682
4689
|
}
|
|
4683
4690
|
/**
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4691
|
+
*
|
|
4692
|
+
* @param value 下拉框选择
|
|
4693
|
+
*/ function change(value) {
|
|
4687
4694
|
let name = (tableData.value.find((item)=>item.value === value) || {})['label'];
|
|
4688
4695
|
emit('change', value, name);
|
|
4689
4696
|
}
|
|
@@ -4727,7 +4734,7 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
|
4727
4734
|
const dict_select_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(dict_selectvue_type_script_setup_true_lang_ts, [
|
|
4728
4735
|
[
|
|
4729
4736
|
'__scopeId',
|
|
4730
|
-
"data-v-
|
|
4737
|
+
"data-v-665ba894"
|
|
4731
4738
|
]
|
|
4732
4739
|
]);
|
|
4733
4740
|
/* ESM default export */ const dict_select = dict_select_exports_;
|