sun-biz 0.0.4-beta.61 → 0.0.4-beta.62
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 +82 -43
- package/dist/components/invoice/api/index.d.ts +8 -1
- package/dist/index.js +82 -43
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -6040,13 +6040,14 @@ const createPrint = ()=>{
|
|
|
6040
6040
|
/**
|
|
6041
6041
|
* 2.1 是否为不打印(2025-9-22 任务号【25720】)
|
|
6042
6042
|
*/ const whetherPrint = ()=>{
|
|
6043
|
-
const { receiptPrintRuleCode, receiptPrintCategCode, menuXReceiptList } = defaultContext.receiptInfo || {};
|
|
6043
|
+
const { receiptPrintRuleCode, receiptPrintCategCode, menuXReceiptList, redPrintCategCode } = defaultContext.receiptInfo || {};
|
|
6044
6044
|
if (!receiptPrintRuleCode) return;
|
|
6045
6045
|
let code = receiptPrintCategCode;
|
|
6046
6046
|
if (receiptPrintRuleCode === constant_RECEIPT_PRINT_RULE_CODE.MENU) {
|
|
6047
6047
|
const menuReceiptInfo = menuXReceiptList?.find((item)=>item.menuId === defaultContext.printParams?.menuId);
|
|
6048
6048
|
code = menuReceiptInfo?.receiptPrintCategCode || receiptPrintCategCode;
|
|
6049
6049
|
} else code = receiptPrintCategCode;
|
|
6050
|
+
if (defaultContext?.printParams?.invoiceInfo?.invOperateTypeCode === constant_INV_OPERATE_TYPE_CODE.RED) code = redPrintCategCode;
|
|
6050
6051
|
if (code === constant_RECEIPT_PRINT_CATEG_CODE.NO_PRINT) {
|
|
6051
6052
|
breakPrint = true; // 如果是不打印则取消打印
|
|
6052
6053
|
return;
|
|
@@ -6072,7 +6073,7 @@ const createPrint = ()=>{
|
|
|
6072
6073
|
/**
|
|
6073
6074
|
* 2.弹窗询问判断方法
|
|
6074
6075
|
*/ const messageBoxAskJudge = async (receiptPrintCategCode, receiptNameDisplay)=>{
|
|
6075
|
-
if (receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT || receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_ISSUE_NO_PRINT) return await messageBoxAsk(receiptPrintCategCode, receiptNameDisplay);
|
|
6076
|
+
if (receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT || receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_ISSUE_NO_PRINT || receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ONLY_ISSUE_NO_PRINT) return await messageBoxAsk(receiptPrintCategCode, receiptNameDisplay);
|
|
6076
6077
|
return true;
|
|
6077
6078
|
};
|
|
6078
6079
|
/**
|
|
@@ -6290,50 +6291,64 @@ const createPrint = ()=>{
|
|
|
6290
6291
|
* 7.单据打印
|
|
6291
6292
|
*/ const printReceiptFn = async (item)=>{
|
|
6292
6293
|
if (defaultContext?.receiptInfo?.printInterfaceId) {
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
}
|
|
6300
|
-
if (!defaultContext?.printParams?.dataSourceContent) {
|
|
6301
|
-
if (defaultContext?.printParams?.insurInterfaceId) {
|
|
6302
|
-
__WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.error("暂不支持医保单据内容获取!");
|
|
6303
|
-
throw new Error("暂不支持医保单据内容获取!");
|
|
6304
|
-
}
|
|
6305
|
-
if ([
|
|
6306
|
-
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_REGISTRATION,
|
|
6307
|
-
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_CHARGE,
|
|
6308
|
-
constant_ELECTRONIC_INVOICE_CODE.HOSPITALIZATION_SETTLEMENT,
|
|
6309
|
-
constant_ELECTRONIC_INVOICE_CODE.PREPAYMENT
|
|
6310
|
-
].includes(defaultContext?.receiptInfo?.receiptId)) {
|
|
6311
|
-
const [, res] = await queryInvoiceBizNos({
|
|
6312
|
-
invoiceUsageCode: defaultContext?.printParams?.invoiceInfo?.invoiceUsageCode,
|
|
6294
|
+
const [err, res] = await (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.interfaceInvoke)({
|
|
6295
|
+
tradeCode: 'PRINT001',
|
|
6296
|
+
interfaceId: defaultContext?.receiptInfo?.printInterfaceId,
|
|
6297
|
+
menuId: defaultContext?.printParams?.menuId,
|
|
6298
|
+
params: {
|
|
6299
|
+
receiptId: defaultContext?.receiptInfo?.receiptId,
|
|
6313
6300
|
bizIdTypeCode: defaultContext?.printParams?.bizIdTypeCode,
|
|
6314
|
-
bizIds: defaultContext?.printParams?.bizIds
|
|
6315
|
-
onlyLastFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO,
|
|
6316
|
-
receiptSplitResultId: item.receiptSplitResultId
|
|
6317
|
-
});
|
|
6318
|
-
if (res?.success) {
|
|
6319
|
-
defaultContext.dataSourceContentItem = ((res.data?.bizIssueList ?? [])[0].invoiceList ?? [])[0].eInvoiceH5Url;
|
|
6320
|
-
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5;
|
|
6301
|
+
bizIds: defaultContext?.printParams?.bizIds
|
|
6321
6302
|
}
|
|
6322
|
-
}
|
|
6323
|
-
if (
|
|
6324
|
-
|
|
6325
|
-
defaultContext.
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
if (
|
|
6335
|
-
|
|
6303
|
+
});
|
|
6304
|
+
if (res?.success) {
|
|
6305
|
+
if (res?.data.printFinishFlag !== __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO) return await Promise.resolve();
|
|
6306
|
+
defaultContext.dataSourceContentItem = res?.data?.dataSourceContent;
|
|
6307
|
+
defaultContext.dataSourceContentTypeCodeItem = res?.data?.dataSourceContentTypeCode;
|
|
6308
|
+
}
|
|
6309
|
+
} else {
|
|
6310
|
+
if (defaultContext?.printParams?.dataSourceContent) {
|
|
6311
|
+
defaultContext.dataSourceContentItem = defaultContext?.printParams?.dataSourceContent;
|
|
6312
|
+
defaultContext.dataSourceContentTypeCodeItem = defaultContext?.printParams?.dataSourceContentTypeCode;
|
|
6313
|
+
}
|
|
6314
|
+
if (!defaultContext?.printParams?.dataSourceContent) {
|
|
6315
|
+
if (defaultContext?.printParams?.insurInterfaceId) {
|
|
6316
|
+
__WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.error("暂不支持医保单据内容获取!");
|
|
6317
|
+
throw new Error("暂不支持医保单据内容获取!");
|
|
6318
|
+
}
|
|
6319
|
+
if ([
|
|
6320
|
+
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_REGISTRATION,
|
|
6321
|
+
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_CHARGE,
|
|
6322
|
+
constant_ELECTRONIC_INVOICE_CODE.HOSPITALIZATION_SETTLEMENT,
|
|
6323
|
+
constant_ELECTRONIC_INVOICE_CODE.PREPAYMENT
|
|
6324
|
+
].includes(defaultContext?.receiptInfo?.receiptId)) {
|
|
6325
|
+
const [, res] = await queryInvoiceBizNos({
|
|
6326
|
+
invoiceUsageCode: defaultContext?.printParams?.invoiceInfo?.invoiceUsageCode,
|
|
6327
|
+
bizIdTypeCode: defaultContext?.printParams?.bizIdTypeCode,
|
|
6328
|
+
bizIds: defaultContext?.printParams?.bizIds,
|
|
6329
|
+
onlyLastFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO,
|
|
6330
|
+
receiptSplitResultId: item.receiptSplitResultId
|
|
6331
|
+
});
|
|
6332
|
+
if (res?.success) {
|
|
6333
|
+
defaultContext.dataSourceContentItem = ((res.data?.bizIssueList ?? [])[0].invoiceList ?? [])[0].eInvoiceH5Url;
|
|
6334
|
+
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5;
|
|
6335
|
+
}
|
|
6336
|
+
} else // 如果单据信息的数据源类型为JSON,则不调用接口
|
|
6337
|
+
if (defaultContext?.receiptInfo?.dataSourceTypeCode === constant_DATA_SOURCE_TYPE_CODE.JSON) {
|
|
6338
|
+
defaultContext.dataSourceContentItem = defaultContext?.receiptInfo?.designJson;
|
|
6336
6339
|
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON;
|
|
6340
|
+
} else {
|
|
6341
|
+
const [, res] = await queryReceiptDataSource({
|
|
6342
|
+
receiptId: defaultContext?.printParams?.receiptId,
|
|
6343
|
+
designFlag: defaultContext?.printParams?.designFlag,
|
|
6344
|
+
bizIdTypeCode: defaultContext?.printParams?.bizIdTypeCode,
|
|
6345
|
+
bizIds: defaultContext?.printParams?.bizIds,
|
|
6346
|
+
receiptSplitResultId: item.receiptSplitResultId
|
|
6347
|
+
});
|
|
6348
|
+
if (res?.success) {
|
|
6349
|
+
defaultContext.dataSourceContentItem = res.data?.dataSourceContent;
|
|
6350
|
+
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON;
|
|
6351
|
+
}
|
|
6337
6352
|
}
|
|
6338
6353
|
}
|
|
6339
6354
|
}
|
|
@@ -12745,6 +12760,12 @@ const THE_OTHER_REASON_ID = "1633928410185179136";
|
|
|
12745
12760
|
* @param code
|
|
12746
12761
|
* @returns
|
|
12747
12762
|
*/ const updateCurrentNoById = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.basicRequest)("/invoicemanagement/updateCurrentNoById", params);
|
|
12763
|
+
/**
|
|
12764
|
+
* [1-10195-1]根据条件查询票据配置
|
|
12765
|
+
* 1、查询DICT_INVOICE_SETTING(票据配置)
|
|
12766
|
+
* @param params
|
|
12767
|
+
* @returns
|
|
12768
|
+
*/ const queryInvoiceSettingList = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/invoicesetting/queryInvoiceSettingByExample', params);
|
|
12748
12769
|
function useInvoiceInfoFormConfig() {
|
|
12749
12770
|
const data = useFormConfig({
|
|
12750
12771
|
getData: ()=>[
|
|
@@ -13056,6 +13077,20 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
|
|
|
13056
13077
|
/** 点击外部 */ const handleClickOutside = ()=>{
|
|
13057
13078
|
if (isClickOut.value) handleHide();
|
|
13058
13079
|
};
|
|
13080
|
+
//获取标记阈值
|
|
13081
|
+
const getInvoiceSettingList = async (val)=>{
|
|
13082
|
+
if (!val?.invoiceMediaTypeCode || !val?.invoiceUsageCode) return;
|
|
13083
|
+
const [, res] = await queryInvoiceSettingList({
|
|
13084
|
+
invoiceMediaTypeCode: val.invoiceMediaTypeCode,
|
|
13085
|
+
invoiceUsageCodes: [
|
|
13086
|
+
val.invoiceUsageCode
|
|
13087
|
+
]
|
|
13088
|
+
});
|
|
13089
|
+
if (res?.success) {
|
|
13090
|
+
const [data] = res?.data || [];
|
|
13091
|
+
if (data?.warningThreshold !== void 0 && data?.warningThreshold !== null && data?.warningThreshold > val?.residueCount) __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning(`剩余发票[${val?.residueCount}]张,请及时领用票据!`);
|
|
13092
|
+
}
|
|
13093
|
+
};
|
|
13059
13094
|
// 获取票据列表
|
|
13060
13095
|
const getInvoiceList = async ()=>{
|
|
13061
13096
|
loading.value = true;
|
|
@@ -13072,6 +13107,7 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
|
|
|
13072
13107
|
if (tableData.value && 0 === tableData.value.length) __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning("未查询到票据相关信息!");
|
|
13073
13108
|
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);
|
|
13074
13109
|
else currentRow.value = (tableData.value ?? [])[0];
|
|
13110
|
+
getInvoiceSettingList(currentRow.value);
|
|
13075
13111
|
emit("change", {
|
|
13076
13112
|
currentRow: currentRow.value,
|
|
13077
13113
|
invoiceListData: tableData.value
|
|
@@ -13079,7 +13115,10 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
|
|
|
13079
13115
|
};
|
|
13080
13116
|
// 刷新
|
|
13081
13117
|
const refresh = async ()=>{
|
|
13118
|
+
isRefreshing.value = true //刷新动画
|
|
13119
|
+
;
|
|
13082
13120
|
await getInvoiceList();
|
|
13121
|
+
isRefreshing.value = false;
|
|
13083
13122
|
};
|
|
13084
13123
|
// 设置选中的currentRow
|
|
13085
13124
|
const setCurrentRow = (row)=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { REASON_USE_SCOPE_CODE } from "../constant";
|
|
2
|
-
import { ReasonItem, UpdateCurrentNoParams } from "../types";
|
|
2
|
+
import { InvoiceSettingInfoItem, QueryInvoiceSettingListParams, ReasonItem, UpdateCurrentNoParams } from "../types";
|
|
3
3
|
/**
|
|
4
4
|
* 1-10100-1 根据条件查询原因
|
|
5
5
|
* @param code
|
|
@@ -12,3 +12,10 @@ export declare const queryReasonList: (code: REASON_USE_SCOPE_CODE) => Promise<[
|
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
14
|
export declare const updateCurrentNoById: (params: UpdateCurrentNoParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<unknown> | undefined]>;
|
|
15
|
+
/**
|
|
16
|
+
* [1-10195-1]根据条件查询票据配置
|
|
17
|
+
* 1、查询DICT_INVOICE_SETTING(票据配置)
|
|
18
|
+
* @param params
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare const queryInvoiceSettingList: (params: QueryInvoiceSettingListParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<InvoiceSettingInfoItem[]> | undefined]>;
|
package/dist/index.js
CHANGED
|
@@ -6438,13 +6438,14 @@ const createPrint = ()=>{
|
|
|
6438
6438
|
/**
|
|
6439
6439
|
* 2.1 是否为不打印(2025-9-22 任务号【25720】)
|
|
6440
6440
|
*/ const whetherPrint = ()=>{
|
|
6441
|
-
const { receiptPrintRuleCode, receiptPrintCategCode, menuXReceiptList } = defaultContext.receiptInfo || {};
|
|
6441
|
+
const { receiptPrintRuleCode, receiptPrintCategCode, menuXReceiptList, redPrintCategCode } = defaultContext.receiptInfo || {};
|
|
6442
6442
|
if (!receiptPrintRuleCode) return;
|
|
6443
6443
|
let code = receiptPrintCategCode;
|
|
6444
6444
|
if (receiptPrintRuleCode === constant_RECEIPT_PRINT_RULE_CODE.MENU) {
|
|
6445
6445
|
const menuReceiptInfo = menuXReceiptList?.find((item)=>item.menuId === defaultContext.printParams?.menuId);
|
|
6446
6446
|
code = menuReceiptInfo?.receiptPrintCategCode || receiptPrintCategCode;
|
|
6447
6447
|
} else code = receiptPrintCategCode;
|
|
6448
|
+
if (defaultContext?.printParams?.invoiceInfo?.invOperateTypeCode === constant_INV_OPERATE_TYPE_CODE.RED) code = redPrintCategCode;
|
|
6448
6449
|
if (code === constant_RECEIPT_PRINT_CATEG_CODE.NO_PRINT) {
|
|
6449
6450
|
breakPrint = true; // 如果是不打印则取消打印
|
|
6450
6451
|
return;
|
|
@@ -6470,7 +6471,7 @@ const createPrint = ()=>{
|
|
|
6470
6471
|
/**
|
|
6471
6472
|
* 2.弹窗询问判断方法
|
|
6472
6473
|
*/ const messageBoxAskJudge = async (receiptPrintCategCode, receiptNameDisplay)=>{
|
|
6473
|
-
if (receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT || receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_ISSUE_NO_PRINT) return await messageBoxAsk(receiptPrintCategCode, receiptNameDisplay);
|
|
6474
|
+
if (receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT || receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ASK_ISSUE_NO_PRINT || receiptPrintCategCode === constant_RECEIPT_PRINT_CATEG_CODE.ONLY_ISSUE_NO_PRINT) return await messageBoxAsk(receiptPrintCategCode, receiptNameDisplay);
|
|
6474
6475
|
return true;
|
|
6475
6476
|
};
|
|
6476
6477
|
/**
|
|
@@ -6688,50 +6689,64 @@ const createPrint = ()=>{
|
|
|
6688
6689
|
* 7.单据打印
|
|
6689
6690
|
*/ const printReceiptFn = async (item)=>{
|
|
6690
6691
|
if (defaultContext?.receiptInfo?.printInterfaceId) {
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
}
|
|
6698
|
-
if (!defaultContext?.printParams?.dataSourceContent) {
|
|
6699
|
-
if (defaultContext?.printParams?.insurInterfaceId) {
|
|
6700
|
-
__WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.error("暂不支持医保单据内容获取!");
|
|
6701
|
-
throw new Error("暂不支持医保单据内容获取!");
|
|
6702
|
-
}
|
|
6703
|
-
if ([
|
|
6704
|
-
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_REGISTRATION,
|
|
6705
|
-
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_CHARGE,
|
|
6706
|
-
constant_ELECTRONIC_INVOICE_CODE.HOSPITALIZATION_SETTLEMENT,
|
|
6707
|
-
constant_ELECTRONIC_INVOICE_CODE.PREPAYMENT
|
|
6708
|
-
].includes(defaultContext?.receiptInfo?.receiptId)) {
|
|
6709
|
-
const [, res] = await queryInvoiceBizNos({
|
|
6710
|
-
invoiceUsageCode: defaultContext?.printParams?.invoiceInfo?.invoiceUsageCode,
|
|
6692
|
+
const [err, res] = await (0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.interfaceInvoke)({
|
|
6693
|
+
tradeCode: 'PRINT001',
|
|
6694
|
+
interfaceId: defaultContext?.receiptInfo?.printInterfaceId,
|
|
6695
|
+
menuId: defaultContext?.printParams?.menuId,
|
|
6696
|
+
params: {
|
|
6697
|
+
receiptId: defaultContext?.receiptInfo?.receiptId,
|
|
6711
6698
|
bizIdTypeCode: defaultContext?.printParams?.bizIdTypeCode,
|
|
6712
|
-
bizIds: defaultContext?.printParams?.bizIds
|
|
6713
|
-
onlyLastFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO,
|
|
6714
|
-
receiptSplitResultId: item.receiptSplitResultId
|
|
6715
|
-
});
|
|
6716
|
-
if (res?.success) {
|
|
6717
|
-
defaultContext.dataSourceContentItem = ((res.data?.bizIssueList ?? [])[0].invoiceList ?? [])[0].eInvoiceH5Url;
|
|
6718
|
-
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5;
|
|
6699
|
+
bizIds: defaultContext?.printParams?.bizIds
|
|
6719
6700
|
}
|
|
6720
|
-
}
|
|
6721
|
-
if (
|
|
6722
|
-
|
|
6723
|
-
defaultContext.
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
if (
|
|
6733
|
-
|
|
6701
|
+
});
|
|
6702
|
+
if (res?.success) {
|
|
6703
|
+
if (res?.data.printFinishFlag !== __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO) return await Promise.resolve();
|
|
6704
|
+
defaultContext.dataSourceContentItem = res?.data?.dataSourceContent;
|
|
6705
|
+
defaultContext.dataSourceContentTypeCodeItem = res?.data?.dataSourceContentTypeCode;
|
|
6706
|
+
}
|
|
6707
|
+
} else {
|
|
6708
|
+
if (defaultContext?.printParams?.dataSourceContent) {
|
|
6709
|
+
defaultContext.dataSourceContentItem = defaultContext?.printParams?.dataSourceContent;
|
|
6710
|
+
defaultContext.dataSourceContentTypeCodeItem = defaultContext?.printParams?.dataSourceContentTypeCode;
|
|
6711
|
+
}
|
|
6712
|
+
if (!defaultContext?.printParams?.dataSourceContent) {
|
|
6713
|
+
if (defaultContext?.printParams?.insurInterfaceId) {
|
|
6714
|
+
__WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.error("暂不支持医保单据内容获取!");
|
|
6715
|
+
throw new Error("暂不支持医保单据内容获取!");
|
|
6716
|
+
}
|
|
6717
|
+
if ([
|
|
6718
|
+
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_REGISTRATION,
|
|
6719
|
+
constant_ELECTRONIC_INVOICE_CODE.OUTPATIENT_CHARGE,
|
|
6720
|
+
constant_ELECTRONIC_INVOICE_CODE.HOSPITALIZATION_SETTLEMENT,
|
|
6721
|
+
constant_ELECTRONIC_INVOICE_CODE.PREPAYMENT
|
|
6722
|
+
].includes(defaultContext?.receiptInfo?.receiptId)) {
|
|
6723
|
+
const [, res] = await queryInvoiceBizNos({
|
|
6724
|
+
invoiceUsageCode: defaultContext?.printParams?.invoiceInfo?.invoiceUsageCode,
|
|
6725
|
+
bizIdTypeCode: defaultContext?.printParams?.bizIdTypeCode,
|
|
6726
|
+
bizIds: defaultContext?.printParams?.bizIds,
|
|
6727
|
+
onlyLastFlag: __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO,
|
|
6728
|
+
receiptSplitResultId: item.receiptSplitResultId
|
|
6729
|
+
});
|
|
6730
|
+
if (res?.success) {
|
|
6731
|
+
defaultContext.dataSourceContentItem = ((res.data?.bizIssueList ?? [])[0].invoiceList ?? [])[0].eInvoiceH5Url;
|
|
6732
|
+
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.H5;
|
|
6733
|
+
}
|
|
6734
|
+
} else // 如果单据信息的数据源类型为JSON,则不调用接口
|
|
6735
|
+
if (defaultContext?.receiptInfo?.dataSourceTypeCode === constant_DATA_SOURCE_TYPE_CODE.JSON) {
|
|
6736
|
+
defaultContext.dataSourceContentItem = defaultContext?.receiptInfo?.designJson;
|
|
6734
6737
|
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON;
|
|
6738
|
+
} else {
|
|
6739
|
+
const [, res] = await queryReceiptDataSource({
|
|
6740
|
+
receiptId: defaultContext?.printParams?.receiptId,
|
|
6741
|
+
designFlag: defaultContext?.printParams?.designFlag,
|
|
6742
|
+
bizIdTypeCode: defaultContext?.printParams?.bizIdTypeCode,
|
|
6743
|
+
bizIds: defaultContext?.printParams?.bizIds,
|
|
6744
|
+
receiptSplitResultId: item.receiptSplitResultId
|
|
6745
|
+
});
|
|
6746
|
+
if (res?.success) {
|
|
6747
|
+
defaultContext.dataSourceContentItem = res.data?.dataSourceContent;
|
|
6748
|
+
defaultContext.dataSourceContentTypeCodeItem = constant_DATA_SOURCE_CONTENT_TYPE_CODE.JSON;
|
|
6749
|
+
}
|
|
6735
6750
|
}
|
|
6736
6751
|
}
|
|
6737
6752
|
}
|
|
@@ -6949,6 +6964,12 @@ const THE_OTHER_REASON_ID = "1633928410185179136";
|
|
|
6949
6964
|
* @param code
|
|
6950
6965
|
* @returns
|
|
6951
6966
|
*/ const updateCurrentNoById = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.basicRequest)("/invoicemanagement/updateCurrentNoById", params);
|
|
6967
|
+
/**
|
|
6968
|
+
* [1-10195-1]根据条件查询票据配置
|
|
6969
|
+
* 1、查询DICT_INVOICE_SETTING(票据配置)
|
|
6970
|
+
* @param params
|
|
6971
|
+
* @returns
|
|
6972
|
+
*/ const queryInvoiceSettingList = (params)=>(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_request__.dictRequest)('/invoicesetting/queryInvoiceSettingByExample', params);
|
|
6952
6973
|
function useInvoiceInfoFormConfig() {
|
|
6953
6974
|
const data = useFormConfig({
|
|
6954
6975
|
getData: ()=>[
|
|
@@ -10621,6 +10642,20 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
|
|
|
10621
10642
|
/** 点击外部 */ const handleClickOutside = ()=>{
|
|
10622
10643
|
if (isClickOut.value) handleHide();
|
|
10623
10644
|
};
|
|
10645
|
+
//获取标记阈值
|
|
10646
|
+
const getInvoiceSettingList = async (val)=>{
|
|
10647
|
+
if (!val?.invoiceMediaTypeCode || !val?.invoiceUsageCode) return;
|
|
10648
|
+
const [, res] = await queryInvoiceSettingList({
|
|
10649
|
+
invoiceMediaTypeCode: val.invoiceMediaTypeCode,
|
|
10650
|
+
invoiceUsageCodes: [
|
|
10651
|
+
val.invoiceUsageCode
|
|
10652
|
+
]
|
|
10653
|
+
});
|
|
10654
|
+
if (res?.success) {
|
|
10655
|
+
const [data] = res?.data || [];
|
|
10656
|
+
if (data?.warningThreshold !== void 0 && data?.warningThreshold !== null && data?.warningThreshold > val?.residueCount) __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning(`剩余发票[${val?.residueCount}]张,请及时领用票据!`);
|
|
10657
|
+
}
|
|
10658
|
+
};
|
|
10624
10659
|
// 获取票据列表
|
|
10625
10660
|
const getInvoiceList = async ()=>{
|
|
10626
10661
|
loading.value = true;
|
|
@@ -10637,6 +10672,7 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
|
|
|
10637
10672
|
if (tableData.value && 0 === tableData.value.length) __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessage.warning("未查询到票据相关信息!");
|
|
10638
10673
|
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);
|
|
10639
10674
|
else currentRow.value = (tableData.value ?? [])[0];
|
|
10675
|
+
getInvoiceSettingList(currentRow.value);
|
|
10640
10676
|
emit("change", {
|
|
10641
10677
|
currentRow: currentRow.value,
|
|
10642
10678
|
invoiceListData: tableData.value
|
|
@@ -10644,7 +10680,10 @@ const invoicevue_type_script_setup_true_lang_ts_name_proInvoice_hoisted_4 = {
|
|
|
10644
10680
|
};
|
|
10645
10681
|
// 刷新
|
|
10646
10682
|
const refresh = async ()=>{
|
|
10683
|
+
isRefreshing.value = true //刷新动画
|
|
10684
|
+
;
|
|
10647
10685
|
await getInvoiceList();
|
|
10686
|
+
isRefreshing.value = false;
|
|
10648
10687
|
};
|
|
10649
10688
|
// 设置选中的currentRow
|
|
10650
10689
|
const setCurrentRow = (row)=>{
|