From 64aba30e3fb89104333b018f4a66dc2b453acf3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Tue, 10 Nov 2026 17:35:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=93=E7=AE=97=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=BC=80=E7=A5=A8=E5=9B=9E=E5=86=99=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E8=87=B3=E5=8F=91=E7=A5=A8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/formal-settlement-editor.vue | 74 +++++++++---------- 1 file changed, 35 insertions(+), 39 deletions(-) diff --git a/src/views/settlement/components/formal-settlement-editor.vue b/src/views/settlement/components/formal-settlement-editor.vue index aeb56cc..d5723f0 100644 --- a/src/views/settlement/components/formal-settlement-editor.vue +++ b/src/views/settlement/components/formal-settlement-editor.vue @@ -450,7 +450,7 @@ > 认领查询 - + @@ -473,7 +473,9 @@ min-width="180" align="center" > - + - {{ formatMoney(row.matchedAmount) }} + {{ row.issued ? '-' : formatMoney(row.matchedAmount) }} 查看 下载 @@ -543,35 +545,13 @@ @click="repushInvoice(row)" >重新推送 - 删除 + 删除 - -
-
- 开票发票(本结算单开票申请经金蝶开票回写,文件由金蝶发票云直链提供) -
- - - - - - - - - - - - - -
({ + ...row, + issued: true, + invoiceType: + invoiceTypeOptions.find(item => item.value === row.invoiceType)?.label || + row.invoiceType || + '', + })), + ]; + }, // 查看页面「同步」按钮:仅已审批且未同步金蝶(含推送失败)的单据显示,口径与后端推送闸门一致 canSync() { return ( @@ -2702,9 +2698,10 @@ export default { openInvoiceReceiptDialog() { this.invoiceReceiptDialog.visible = true; }, - // 查看页重推入口展示条件:只读 + 付款结算单 + 审批通过 + 金蝶应付单已同步 + 该票未指定应付(failed/pushed) + // 查看页重推入口展示条件:只读 + 付款结算单 + 审批通过 + 金蝶应付单已同步 + 该票未指定应付(failed/pushed);金蝶回写行不参与 canRepushInvoice(row) { return ( + !row.issued && !this.editable && this.form.settlementType !== 'receivable' && this.form.approvalStatus === 'approved' && @@ -2954,6 +2951,13 @@ export default { this.kingdeeAttachmentBusy = false; } }, + // 发票文件入口分流:金蝶回写开票发票走发票云直链,其余走金蝶票池/登记附件 + viewInvoiceFile(row) { + return row.issued ? this.viewIssuedInvoice(row) : this.viewInvoiceAttachment(row); + }, + downloadInvoiceFile(row) { + return row.issued ? this.downloadIssuedInvoice(row) : this.downloadInvoiceAttachment(row); + }, // 开票发票预览地址:数电PDF优先(OFD浏览器无法预览),退预览图、板式文件 issuedInvoicePreviewUrl(row) { return row.invoicePdfFileUrl || row.invoiceImageUrl || row.invoiceFileUrl || ''; @@ -3591,14 +3595,6 @@ export default { justify-content: flex-end; margin-bottom: 12px; } -.formal-editor__issued-invoices { - margin-top: 16px; -} -.formal-editor__issued-title { - margin-bottom: 8px; - color: var(--el-text-color-secondary); - font-size: 13px; -} .formal-editor__negative-amount { color: var(--el-color-danger); }