From cdff7760625e6ee58f56c6ea01b8c48150b6636e Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Sun, 8 Oct 2023 17:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E7=A5=A8=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E9=87=8D=E5=BC=80=EF=BC=8C=E8=B7=B3=E5=BC=80UI?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E7=9A=84=E6=8C=89=E9=92=AE=E5=92=8CAPI?= =?UTF-8?q?=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/views/settle/_check.js | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js index 53c0539d..d1374fd9 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js @@ -49,9 +49,10 @@ export default { @@ -430,6 +431,23 @@ export default { const setup2table1Ref = ref(null); const setup2table2Ref = ref(null); const setup3Model = ref(null); + let service = null; + if (props.businessType === "JisBBAC") { + service = "bbac_ba_service"; + } else if (props.businessType === "JisHBPO" || props.businessType === "MaiDanJianHBPO") { + service = "hbpo_ba_service"; + } else { + service = "pub_ba_service"; + } + const directReopen = async () => { + const url = `settleaccount/${service}/back-reissue-invoice`; + const result = await request(url, props.data.invbillNum, { method: "POST" }); + if (result.errors) { + if (result.data?.code === 400 && result.data.fileName) { + window.open(getUrl(`settleaccount/getblobfile/download/${result.data.fileName}`)); + } + } + }; const showSetupDialog = () => { //重开发票号 //invBillNum= @@ -576,14 +594,6 @@ export default { } }; const next = async () => { - let service = null; - if (props.businessType === "JisBBAC") { - service = "bbac_ba_service"; - } else if (props.businessType === "JisHBPO" || props.businessType === "MaiDanJianHBPO") { - service = "hbpo_ba_service"; - } else { - service = "pub_ba_service"; - } try { loading.value = true; if (setupRef.value === 1) { @@ -703,6 +713,7 @@ export default { setup3Model, businessTypes, drawerClosed, + directReopen, }; }, };