sun-biz 0.0.2-beta.13 → 0.0.2-beta.14
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.d.ts +3 -2
- package/dist/components/index.js +2310 -2088
- package/dist/components/invoice/index.d.ts +2 -0
- package/dist/components/print/hooks/index.d.ts +1 -1
- package/dist/components/pro-form/index.d.ts +3 -2
- package/dist/components/pro-table/index.d.ts +3 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +11 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +268 -42
- package/package.json +6 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MenuXReceiptReqParams, MenuXReceiptListReqItem } from "../types";
|
|
2
|
-
export declare const usePrintReceipt: () => {
|
|
2
|
+
export declare const usePrintReceipt: (params: MenuXReceiptReqParams, isInit?: boolean) => {
|
|
3
3
|
menuXReceiptList: import("vue").Ref<{
|
|
4
4
|
menuXReceiptId: string;
|
|
5
5
|
receiptId: string;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as ProForm } from
|
|
2
|
-
export { default as FormUnit } from
|
|
1
|
+
export { default as ProForm } from "./index.vue";
|
|
2
|
+
export { default as FormUnit } from "./composables/FormUnit.vue";
|
|
3
|
+
export { convertToWbNo, convertToSpellNo } from "./utils";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import ProTable from
|
|
2
|
-
import DbgridComponentSetting from
|
|
1
|
+
import ProTable from "./index.vue";
|
|
2
|
+
import DbgridComponentSetting from "./composables/dbgrid-component-setting/index.vue";
|
|
3
3
|
export { ProTable, DbgridComponentSetting };
|
|
4
4
|
export default ProTable;
|
|
5
|
+
export * from "./interface/index";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { default as useRequest } from "./use-request/index.ts";
|
|
|
2
2
|
export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./use-app-config/index.ts";
|
|
3
3
|
export { default as useDirectionSelect } from "./use-direction-select/index.ts";
|
|
4
4
|
export { default as useFetchDataset } from "./use-fetch-dataset/index.ts";
|
|
5
|
-
export { useColumnConfig } from "./use-column&form-config/index.ts";
|
|
5
|
+
export { useColumnConfig, useFormConfig, } from "./use-column&form-config/index.ts";
|
package/dist/hooks/index.js
CHANGED
|
@@ -436,7 +436,7 @@ function useSelectByDirectionEvent(options) {
|
|
|
436
436
|
* @param data
|
|
437
437
|
* @returns
|
|
438
438
|
*/ const queryDataSetByCodeSystemCodes = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/codeSystem/queryDataSetByCodeSystemCodes', params);
|
|
439
|
-
function
|
|
439
|
+
function useFetchDataset(codeSystemCodes, enabledFlag) {
|
|
440
440
|
const list = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
441
441
|
async function fetchData() {
|
|
442
442
|
if (codeSystemCodes) {
|
|
@@ -452,12 +452,19 @@ function use_fetch_dataset_useFetchDataset(codeSystemCodes, enabledFlag) {
|
|
|
452
452
|
});
|
|
453
453
|
return list;
|
|
454
454
|
}
|
|
455
|
-
/* ESM default export */ const use_fetch_dataset =
|
|
455
|
+
/* ESM default export */ const use_fetch_dataset = useFetchDataset;
|
|
456
|
+
function useFormConfig(options) {
|
|
457
|
+
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
458
|
+
const { getData, dataSetCodes } = options;
|
|
459
|
+
const dataSet = useFetchDataset(dataSetCodes);
|
|
460
|
+
const data = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>getData(t, dataSet));
|
|
461
|
+
return data;
|
|
462
|
+
}
|
|
456
463
|
function useColumnConfig(options) {
|
|
457
464
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
458
465
|
const { getData, dataSetCodes } = options;
|
|
459
|
-
const dataSet =
|
|
466
|
+
const dataSet = useFetchDataset(dataSetCodes);
|
|
460
467
|
const data = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>getData(t, dataSet));
|
|
461
468
|
return data;
|
|
462
469
|
}
|
|
463
|
-
export { use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, use_app_config as useAppConfigData, useColumnConfig, use_direction_select as useDirectionSelect, use_fetch_dataset as useFetchDataset, use_request as useRequest };
|
|
470
|
+
export { use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, use_app_config as useAppConfigData, useColumnConfig, use_direction_select as useDirectionSelect, use_fetch_dataset as useFetchDataset, useFormConfig, use_request as useRequest };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/** components **/
|
|
2
|
-
export
|
|
3
|
-
export { Title } from "./components/title";
|
|
2
|
+
export * from "./components/pro-table";
|
|
4
3
|
export * from "./components/patient-access/index.ts";
|
|
5
4
|
export * from "./components/print/index.ts";
|
|
5
|
+
export * from "./components/invoice/index.ts";
|
|
6
|
+
export { Title } from "./components/title";
|
|
6
7
|
export { DictSelect, FlagSelect, HospitalSelect, } from "./components/biz-select";
|
|
7
8
|
export { CopyTextWithTooltip } from "./components/copy-text-with-tooltip";
|
|
8
9
|
export { FormDesignRender } from "./components/form-design-render";
|
|
9
10
|
export { ProDialog } from "./components/pro-dialog";
|
|
10
|
-
export { ProForm } from "./components/pro-form";
|
|
11
|
+
export { ProForm, FormUnit, convertToWbNo, convertToSpellNo, } from "./components/pro-form";
|
|
11
12
|
/** hooks ** */
|
|
12
13
|
export { default as useRequest } from "./hooks/use-request";
|
|
13
14
|
export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./hooks/use-app-config";
|
|
14
15
|
export { default as useDirectionSelect } from "./hooks/use-direction-select";
|
|
15
16
|
export { default as useFetchDataset } from "./hooks/use-fetch-dataset";
|
|
16
|
-
export { useColumnConfig } from "./hooks/use-column&form-config";
|
|
17
|
+
export { useColumnConfig, useFormConfig } from "./hooks/use-column&form-config";
|
|
17
18
|
export { debounce, isNumber, decimalCount, formatDecimalNumber } from "./utils";
|
package/dist/index.js
CHANGED
|
@@ -619,7 +619,7 @@ function useAppConfigData(name) {
|
|
|
619
619
|
* @param data
|
|
620
620
|
* @returns
|
|
621
621
|
*/ const queryDataSetByCodeSystemCodes = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/codeSystem/queryDataSetByCodeSystemCodes', params);
|
|
622
|
-
function
|
|
622
|
+
function useFetchDataset(codeSystemCodes, enabledFlag) {
|
|
623
623
|
const list = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
624
624
|
async function fetchData() {
|
|
625
625
|
if (codeSystemCodes) {
|
|
@@ -635,7 +635,7 @@ function use_fetch_dataset_useFetchDataset(codeSystemCodes, enabledFlag) {
|
|
|
635
635
|
});
|
|
636
636
|
return list;
|
|
637
637
|
}
|
|
638
|
-
/* ESM default export */ const use_fetch_dataset =
|
|
638
|
+
/* ESM default export */ const use_fetch_dataset = useFetchDataset;
|
|
639
639
|
function useDialog() {
|
|
640
640
|
const visible = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
641
641
|
const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
@@ -801,7 +801,7 @@ const _hoisted_3 = {
|
|
|
801
801
|
const componentId = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('');
|
|
802
802
|
const props = __props;
|
|
803
803
|
const scrollKeyWord = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)('');
|
|
804
|
-
const dataSetList =
|
|
804
|
+
const dataSetList = useFetchDataset([
|
|
805
805
|
__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INFLUENCE_SCOPE_CODE_NAME
|
|
806
806
|
]);
|
|
807
807
|
const dbgridTableConfigRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
@@ -1670,29 +1670,6 @@ const pro_tablevue_type_script_lang_ts_setup_true_name_ProTable_hoisted_1 = {
|
|
|
1670
1670
|
});
|
|
1671
1671
|
const pro_table_exports_ = pro_tablevue_type_script_lang_ts_setup_true_name_ProTable;
|
|
1672
1672
|
/* ESM default export */ const pro_table = pro_table_exports_;
|
|
1673
|
-
/* ESM default export */ const components_pro_table = pro_table;
|
|
1674
|
-
const Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1 = {
|
|
1675
|
-
class: "relative pl-4 before:absolute before:left-0 before:top-[20%] before:h-2/3 before:w-1 before:bg-primary"
|
|
1676
|
-
};
|
|
1677
|
-
/* ESM default export */ const Titlevue_type_script_setup_true_lang_ts_name_sunTitle = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
1678
|
-
__name: 'Title',
|
|
1679
|
-
props: {
|
|
1680
|
-
title: {
|
|
1681
|
-
default: ''
|
|
1682
|
-
}
|
|
1683
|
-
},
|
|
1684
|
-
setup (__props) {
|
|
1685
|
-
const props = __props;
|
|
1686
|
-
return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("h3", (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)(_ctx.$attrs, {
|
|
1687
|
-
class: "flex items-center justify-between"
|
|
1688
|
-
}), [
|
|
1689
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(props.title), 1),
|
|
1690
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot)(_ctx.$slots, "default")
|
|
1691
|
-
], 16));
|
|
1692
|
-
}
|
|
1693
|
-
});
|
|
1694
|
-
const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
1695
|
-
/* ESM default export */ const Title = Title_exports_;
|
|
1696
1673
|
/**
|
|
1697
1674
|
* 1-10115-1 根据条件查询菜单的检索方式列表(业务态)
|
|
1698
1675
|
* @param params
|
|
@@ -2103,10 +2080,17 @@ function useSelectByDirectionEvent(options) {
|
|
|
2103
2080
|
});
|
|
2104
2081
|
}
|
|
2105
2082
|
/* ESM default export */ const use_direction_select = useSelectByDirectionEvent;
|
|
2083
|
+
function useFormConfig(options) {
|
|
2084
|
+
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
2085
|
+
const { getData, dataSetCodes } = options;
|
|
2086
|
+
const dataSet = useFetchDataset(dataSetCodes);
|
|
2087
|
+
const data = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>getData(t, dataSet));
|
|
2088
|
+
return data;
|
|
2089
|
+
}
|
|
2106
2090
|
function useColumnConfig(options) {
|
|
2107
2091
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_i18next_vue__.useTranslation)();
|
|
2108
2092
|
const { getData, dataSetCodes } = options;
|
|
2109
|
-
const dataSet =
|
|
2093
|
+
const dataSet = useFetchDataset(dataSetCodes);
|
|
2110
2094
|
const data = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>getData(t, dataSet));
|
|
2111
2095
|
return data;
|
|
2112
2096
|
}
|
|
@@ -3365,13 +3349,18 @@ const printTemplate_exports_ = printTemplatevue_type_script_lang_ts_setup_true_n
|
|
|
3365
3349
|
});
|
|
3366
3350
|
const print_exports_ = printvue_type_script_setup_true_lang_ts_name_printComponent;
|
|
3367
3351
|
/* ESM default export */ const components_print = print_exports_;
|
|
3368
|
-
const usePrintReceipt = ()=>{
|
|
3352
|
+
const usePrintReceipt = (params, isInit = true)=>{
|
|
3369
3353
|
const menuXReceiptList = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
|
|
3370
3354
|
const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
3371
3355
|
const getMenuXReceiptList = async (params)=>{
|
|
3356
|
+
loading.value = true;
|
|
3372
3357
|
const [, res] = await queryMenuXReceiptBySysMenuId(params);
|
|
3358
|
+
loading.value = false;
|
|
3373
3359
|
if (res?.success) menuXReceiptList.value = res.data?.menuXReceiptList || [];
|
|
3374
3360
|
};
|
|
3361
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
3362
|
+
if (isInit) getMenuXReceiptList(params);
|
|
3363
|
+
});
|
|
3375
3364
|
return {
|
|
3376
3365
|
menuXReceiptList,
|
|
3377
3366
|
loading,
|
|
@@ -3498,6 +3487,240 @@ const createPrint = (params)=>{
|
|
|
3498
3487
|
const print_print = async (options)=>{
|
|
3499
3488
|
createPrint(options);
|
|
3500
3489
|
};
|
|
3490
|
+
function useTableColumnsConfig(options) {
|
|
3491
|
+
const { currentRow } = options;
|
|
3492
|
+
const tableColumns = useColumnConfig({
|
|
3493
|
+
getData: ()=>[
|
|
3494
|
+
{
|
|
3495
|
+
prop: "radio",
|
|
3496
|
+
width: 60,
|
|
3497
|
+
render: (row)=>(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-radio"), {
|
|
3498
|
+
value: currentRow.value?.invoiceAllotId !== row.invoiceAllotId || void 0,
|
|
3499
|
+
style: "height: 24px;"
|
|
3500
|
+
}, null, 8, [
|
|
3501
|
+
"value"
|
|
3502
|
+
])
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
label: "媒介类型",
|
|
3506
|
+
prop: "invoiceMediaTypeDesc",
|
|
3507
|
+
minWidth: 120
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
label: "当前票号",
|
|
3511
|
+
prop: "currentNo",
|
|
3512
|
+
minWidth: 120,
|
|
3513
|
+
render: (row)=>(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-button"), {
|
|
3514
|
+
type: "primary",
|
|
3515
|
+
link: true,
|
|
3516
|
+
class: "underline"
|
|
3517
|
+
}, {
|
|
3518
|
+
default: ()=>[
|
|
3519
|
+
row.currentNo
|
|
3520
|
+
]
|
|
3521
|
+
})
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
label: "剩余票号",
|
|
3525
|
+
prop: "residueCount",
|
|
3526
|
+
minWidth: 120
|
|
3527
|
+
}
|
|
3528
|
+
]
|
|
3529
|
+
});
|
|
3530
|
+
return {
|
|
3531
|
+
tableColumns
|
|
3532
|
+
};
|
|
3533
|
+
}
|
|
3534
|
+
const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_1 = {
|
|
3535
|
+
class: "absolute left-3 top-2.5 -translate-x-1/2 -translate-y-1/2 rotate-[-40deg] scale-90 bg-[#2468da] px-10 py-1 text-white",
|
|
3536
|
+
style: {
|
|
3537
|
+
"font-size": "10px"
|
|
3538
|
+
}
|
|
3539
|
+
};
|
|
3540
|
+
const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_2 = {
|
|
3541
|
+
class: "flex w-56 items-center justify-between pl-0.5 font-medium text-[#2468DA]"
|
|
3542
|
+
};
|
|
3543
|
+
const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_3 = {
|
|
3544
|
+
class: "flex flex-col overflow-hidden",
|
|
3545
|
+
style: {
|
|
3546
|
+
height: "160px"
|
|
3547
|
+
}
|
|
3548
|
+
};
|
|
3549
|
+
/* ESM default export */ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
3550
|
+
__name: 'index',
|
|
3551
|
+
props: {
|
|
3552
|
+
menuId: {},
|
|
3553
|
+
invoiceUsageCode: {}
|
|
3554
|
+
},
|
|
3555
|
+
emits: [
|
|
3556
|
+
"change"
|
|
3557
|
+
],
|
|
3558
|
+
setup (__props, { expose: __expose, emit: __emit }) {
|
|
3559
|
+
const props = __props;
|
|
3560
|
+
const emit = __emit;
|
|
3561
|
+
const visible = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false); //popover的显示隐藏控制
|
|
3562
|
+
const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false); //加载状态
|
|
3563
|
+
const currentRow = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(); //选中行
|
|
3564
|
+
const tableData = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)([]);
|
|
3565
|
+
const tableRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(); //table ref
|
|
3566
|
+
const popoverRef = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(); //popover ref
|
|
3567
|
+
const menuId = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>props.menuId);
|
|
3568
|
+
const invoiceUsageCode = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>props.invoiceUsageCode);
|
|
3569
|
+
// 展示
|
|
3570
|
+
const handleShow = ()=>{
|
|
3571
|
+
visible.value = true;
|
|
3572
|
+
};
|
|
3573
|
+
// 隐藏
|
|
3574
|
+
const handleHide = ()=>{
|
|
3575
|
+
visible.value = false;
|
|
3576
|
+
emit("change", {
|
|
3577
|
+
currentRow: currentRow.value,
|
|
3578
|
+
invoiceListData: tableData.value
|
|
3579
|
+
});
|
|
3580
|
+
};
|
|
3581
|
+
// 获取票据列表
|
|
3582
|
+
const getInvoiceList = async ()=>{
|
|
3583
|
+
loading.value = true;
|
|
3584
|
+
const [, res] = await (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.interfaceInvoke)({
|
|
3585
|
+
interfaceId: "1645895222783221760",
|
|
3586
|
+
menuId: menuId.value,
|
|
3587
|
+
tradeCode: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INVOICE_CODE.INV001,
|
|
3588
|
+
params: {
|
|
3589
|
+
invoiceUsageCode: invoiceUsageCode.value
|
|
3590
|
+
}
|
|
3591
|
+
});
|
|
3592
|
+
loading.value = false;
|
|
3593
|
+
if (res?.success) tableData.value = res?.data?.bizOutputParam ?? [];
|
|
3594
|
+
if (tableData.value && tableData.value.length > 1) currentRow.value = tableData.value.find((item)=>item.invoiceMediaTypeCode === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INVOICE_MEDIA_TYPE_CODE.ELECTRONIC);
|
|
3595
|
+
else currentRow.value = (tableData.value ?? [])[0];
|
|
3596
|
+
emit("change", {
|
|
3597
|
+
currentRow: currentRow.value,
|
|
3598
|
+
invoiceListData: tableData.value
|
|
3599
|
+
});
|
|
3600
|
+
};
|
|
3601
|
+
// 刷新
|
|
3602
|
+
const refresh = async ()=>{
|
|
3603
|
+
await getInvoiceList();
|
|
3604
|
+
};
|
|
3605
|
+
// 设置选中的currentRow
|
|
3606
|
+
const setCurrentRow = (row)=>{
|
|
3607
|
+
currentRow.value = row;
|
|
3608
|
+
if (row) tableRef.value?.eleTable.setCurrentRow(row);
|
|
3609
|
+
else tableRef.value?.eleTable.clearSelection();
|
|
3610
|
+
};
|
|
3611
|
+
// 键盘滚动
|
|
3612
|
+
use_direction_select({
|
|
3613
|
+
triggerRef: popoverRef,
|
|
3614
|
+
rowKey: "invoiceAllotId",
|
|
3615
|
+
data: tableData,
|
|
3616
|
+
activeItem: currentRow,
|
|
3617
|
+
setCurrentItem: setCurrentRow,
|
|
3618
|
+
scrollTo: (params)=>{
|
|
3619
|
+
tableRef?.value.eleTable.scrollTo(params);
|
|
3620
|
+
},
|
|
3621
|
+
enter: ()=>{
|
|
3622
|
+
setTimeout(()=>{
|
|
3623
|
+
handleHide();
|
|
3624
|
+
}, 0);
|
|
3625
|
+
}
|
|
3626
|
+
});
|
|
3627
|
+
const { tableColumns } = useTableColumnsConfig({
|
|
3628
|
+
currentRow: currentRow
|
|
3629
|
+
});
|
|
3630
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(async ()=>{
|
|
3631
|
+
await getInvoiceList();
|
|
3632
|
+
});
|
|
3633
|
+
__expose({
|
|
3634
|
+
handleShow,
|
|
3635
|
+
handleHide,
|
|
3636
|
+
refresh
|
|
3637
|
+
});
|
|
3638
|
+
return (_ctx, _cache)=>{
|
|
3639
|
+
const _component_el_button = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-button");
|
|
3640
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElPopover), {
|
|
3641
|
+
width: "auto",
|
|
3642
|
+
trigger: "click",
|
|
3643
|
+
visible: visible.value,
|
|
3644
|
+
"show-arrow": false,
|
|
3645
|
+
placement: "bottom-start"
|
|
3646
|
+
}, {
|
|
3647
|
+
reference: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
3648
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_button, {
|
|
3649
|
+
class: "relative w-72 overflow-hidden bg-[#EAEEFE] p-5",
|
|
3650
|
+
onClick: handleShow,
|
|
3651
|
+
ref_key: "popoverRef",
|
|
3652
|
+
ref: popoverRef
|
|
3653
|
+
}, {
|
|
3654
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
3655
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_1, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(currentRow.value?.invoiceMediaTypeDesc ?? "--"), 1),
|
|
3656
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_2, [
|
|
3657
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", null, " 当前票号 " + (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(currentRow.value?.currentNo ?? "--"), 1),
|
|
3658
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", null, " 剩余张数 " + (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(currentRow.value?.residueCount ?? "--"), 1)
|
|
3659
|
+
])
|
|
3660
|
+
]),
|
|
3661
|
+
_: 1
|
|
3662
|
+
}, 512)
|
|
3663
|
+
]),
|
|
3664
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
3665
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_3, [
|
|
3666
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives)((0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(pro_table), {
|
|
3667
|
+
ref_key: "tableRef",
|
|
3668
|
+
ref: tableRef,
|
|
3669
|
+
data: tableData.value,
|
|
3670
|
+
loading: loading.value,
|
|
3671
|
+
columns: (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(tableColumns),
|
|
3672
|
+
"row-key": "invoiceAllotId",
|
|
3673
|
+
"highlight-current-row": "",
|
|
3674
|
+
onRowClick: _cache[0] || (_cache[0] = (row)=>{
|
|
3675
|
+
currentRow.value = {
|
|
3676
|
+
...row
|
|
3677
|
+
};
|
|
3678
|
+
handleHide();
|
|
3679
|
+
}),
|
|
3680
|
+
onCurrentChange: setCurrentRow
|
|
3681
|
+
}, null, 8, [
|
|
3682
|
+
"data",
|
|
3683
|
+
"loading",
|
|
3684
|
+
"columns"
|
|
3685
|
+
]), [
|
|
3686
|
+
[
|
|
3687
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ClickOutside),
|
|
3688
|
+
handleHide
|
|
3689
|
+
]
|
|
3690
|
+
])
|
|
3691
|
+
])
|
|
3692
|
+
]),
|
|
3693
|
+
_: 1
|
|
3694
|
+
}, 8, [
|
|
3695
|
+
"visible"
|
|
3696
|
+
]);
|
|
3697
|
+
};
|
|
3698
|
+
}
|
|
3699
|
+
});
|
|
3700
|
+
const invoice_exports_ = invoicevue_type_script_setup_true_lang_ts_name_proInvoice;
|
|
3701
|
+
/* ESM default export */ const invoice = invoice_exports_;
|
|
3702
|
+
const Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1 = {
|
|
3703
|
+
class: "relative pl-4 before:absolute before:left-0 before:top-[20%] before:h-2/3 before:w-1 before:bg-primary"
|
|
3704
|
+
};
|
|
3705
|
+
/* ESM default export */ const Titlevue_type_script_setup_true_lang_ts_name_sunTitle = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
3706
|
+
__name: 'Title',
|
|
3707
|
+
props: {
|
|
3708
|
+
title: {
|
|
3709
|
+
default: ''
|
|
3710
|
+
}
|
|
3711
|
+
},
|
|
3712
|
+
setup (__props) {
|
|
3713
|
+
const props = __props;
|
|
3714
|
+
return (_ctx, _cache)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("h3", (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)(_ctx.$attrs, {
|
|
3715
|
+
class: "flex items-center justify-between"
|
|
3716
|
+
}), [
|
|
3717
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", Titlevue_type_script_setup_true_lang_ts_name_sunTitle_hoisted_1, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(props.title), 1),
|
|
3718
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot)(_ctx.$slots, "default")
|
|
3719
|
+
], 16));
|
|
3720
|
+
}
|
|
3721
|
+
});
|
|
3722
|
+
const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
|
|
3723
|
+
/* ESM default export */ const Title = Title_exports_;
|
|
3501
3724
|
/**
|
|
3502
3725
|
* [1-10098-1]根据条件查询表单设计内容
|
|
3503
3726
|
* @param params
|
|
@@ -4005,21 +4228,11 @@ const WB_NO = "wbNo";
|
|
|
4005
4228
|
}, item.formItemProps || {}), [
|
|
4006
4229
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_form_item, (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
4007
4230
|
"label-width": item.labelWidth || '',
|
|
4008
|
-
label: item.label,
|
|
4009
4231
|
prop: item.name,
|
|
4010
4232
|
class: item.className,
|
|
4011
4233
|
style: isInlineMode ? 'margin-right: 16px;' : '',
|
|
4012
4234
|
ref_for: true
|
|
4013
|
-
}, item.formItemProps || {}), {
|
|
4014
|
-
label: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
4015
|
-
'function' == typeof item.label ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(item.label()), {
|
|
4016
|
-
key: 0
|
|
4017
|
-
})) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
|
|
4018
|
-
key: 1
|
|
4019
|
-
}, [
|
|
4020
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.label), 1)
|
|
4021
|
-
], 64))
|
|
4022
|
-
]),
|
|
4235
|
+
}, item.formItemProps || {}), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createSlots)({
|
|
4023
4236
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
4024
4237
|
item?.component ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(FormUnit, (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
4025
4238
|
key: item.name + index,
|
|
@@ -4062,9 +4275,22 @@ const WB_NO = "wbNo";
|
|
|
4062
4275
|
])) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
4063
4276
|
]),
|
|
4064
4277
|
_: 2
|
|
4065
|
-
},
|
|
4278
|
+
}, [
|
|
4279
|
+
item.label ? {
|
|
4280
|
+
name: "label",
|
|
4281
|
+
fn: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
4282
|
+
'function' == typeof item.label ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent)(item.label()), {
|
|
4283
|
+
key: 0
|
|
4284
|
+
})) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, {
|
|
4285
|
+
key: 1
|
|
4286
|
+
}, [
|
|
4287
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.label), 1)
|
|
4288
|
+
], 64))
|
|
4289
|
+
]),
|
|
4290
|
+
key: "0"
|
|
4291
|
+
} : void 0
|
|
4292
|
+
]), 1040, [
|
|
4066
4293
|
"label-width",
|
|
4067
|
-
"label",
|
|
4068
4294
|
"prop",
|
|
4069
4295
|
"class",
|
|
4070
4296
|
"style"
|
|
@@ -5035,4 +5261,4 @@ const form_design_render_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(f
|
|
|
5035
5261
|
]);
|
|
5036
5262
|
/* ESM default export */ const form_design_render = form_design_render_exports_;
|
|
5037
5263
|
/** components **/ /** hooks ** */ var __webpack_exports__COMPONENT_CODE = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.COMPONENT_CODE;
|
|
5038
|
-
export { copy_text_with_tooltip as CopyTextWithTooltip, dict_select as DictSelect, flag_select as FlagSelect, form_design_render as FormDesignRender, hospital_select as HospitalSelect, use_app_config_MAIN_APP_CONFIG as MAIN_APP_CONFIG, patient_access as PatientAccess, PatientInfo, components_print as PrintComponent, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm,
|
|
5264
|
+
export { copy_text_with_tooltip as CopyTextWithTooltip, dbgrid_component_setting as DbgridComponentSetting, dict_select as DictSelect, 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, components_print as PrintComponent, printReceiptBtn as PrintReceiptBtn, pro_dialog as ProDialog, pro_form as ProForm, invoice as ProInvoice, pro_table as ProTable, Title, convertToSpellNo, convertToWbNo, debounce, decimalCount, formatDecimalNumber, isNumber, print_print as print, use_app_config as useAppConfigData, useColumnConfig, use_direction_select as useDirectionSelect, use_fetch_dataset as useFetchDataset, useFormConfig, usePrintReceipt, use_request as useRequest, __webpack_exports__COMPONENT_CODE as COMPONENT_CODE };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sun-biz",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@element-sun/icons-vue": "*",
|
|
50
50
|
"@sun-toolkit/enums": "*",
|
|
51
51
|
"@sun-toolkit/request": "*",
|
|
52
|
+
"@sun-toolkit/shared": "*",
|
|
52
53
|
"element-sun": "*",
|
|
53
54
|
"i18next": "*",
|
|
54
55
|
"i18next-vue": "*",
|
|
@@ -56,13 +57,15 @@
|
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
59
|
"@element-sun/icons-vue": "^1.0.5",
|
|
59
|
-
"@sun-toolkit/enums": "1.0.0-beta.
|
|
60
|
-
"@sun-toolkit/request": "1.0.0-beta.
|
|
60
|
+
"@sun-toolkit/enums": "1.0.0-beta.6",
|
|
61
|
+
"@sun-toolkit/request": "1.0.0-beta.5",
|
|
62
|
+
"@sun-toolkit/shared": "0.0.1-beta.1",
|
|
61
63
|
"axios": "^1.7.7",
|
|
62
64
|
"element-sun": "0.0.0-dev.2",
|
|
63
65
|
"i18next": "^23.16.5",
|
|
64
66
|
"i18next-vue": "^5.0.0",
|
|
65
67
|
"js-pinyin": "^0.2.7",
|
|
68
|
+
"latest": "^0.2.0",
|
|
66
69
|
"lodash": "^4.17.21",
|
|
67
70
|
"sortablejs": "^1.15.3",
|
|
68
71
|
"vue": "^3.5.12"
|