From fd07c81d4bf9a9d27a8f1df96847fcfdd418d196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=5F=E4=BD=B3?= Date: Thu, 27 Nov 2025 11:52:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=88=90=E5=8A=9F=E6=8F=90=E7=A4=BA=E5=8F=8A?= =?UTF-8?q?=E5=AE=A1=E8=AE=A1=E8=AF=A6=E6=83=85=E8=A1=A8=E6=A0=BC=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=A1=86=E6=A0=B7=E5=BC=8F=EF=BC=8C=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E5=8F=91=E7=A5=A8=E5=8F=91=E9=80=81=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=BD=93=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/index.js | 2 +- web/src/views/transaction/invoice/index.vue | 9 +++++++-- web/src/views/valuation/audit/components/AuditDetail.vue | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/web/src/api/index.js b/web/src/api/index.js index 76b785e..785d092 100644 --- a/web/src/api/index.js +++ b/web/src/api/index.js @@ -51,7 +51,7 @@ export default { getInvoiceList: (params = {}) => request.get('/transactions/receipts', { params }), getInvoiceById: (params = {}) => request.get(`/transactions/receipts/${params.id}`, { params }), // 后端接口要求请求体包裹在 data 字段下 - sendInvoice: (data = {}) => request.post('/transactions/send-email', { data }), + sendInvoice: (data = {}) => request.post('/transactions/send-email', data), // 退款 refundInvoice: (data = {}) => request.post('/invoice/update-status', data), // invoice headers diff --git a/web/src/views/transaction/invoice/index.vue b/web/src/views/transaction/invoice/index.vue index cc1a6eb..87ee127 100644 --- a/web/src/views/transaction/invoice/index.vue +++ b/web/src/views/transaction/invoice/index.vue @@ -298,8 +298,13 @@ async function handleInvoiceConfirm(formData) { file_url: formData.attachments, // 映射 attachments -> file_url } - await api.sendInvoice(payload) - $message.success('发送成功') + let res = await api.sendInvoice(payload) + if (res.code === 200 && res.msg) { + $message.success(res.msg) + } + if (res.code === 200 && res.data && res.data.msg) { + $message.success(res.data.msg) + } invoiceModalVisible.value = false $table.value?.handleSearch() } catch (error) { diff --git a/web/src/views/valuation/audit/components/AuditDetail.vue b/web/src/views/valuation/audit/components/AuditDetail.vue index b8302c5..fec3c02 100644 --- a/web/src/views/valuation/audit/components/AuditDetail.vue +++ b/web/src/views/valuation/audit/components/AuditDetail.vue @@ -173,7 +173,9 @@ const detailSections = computed(() => { key: field.label, width: 200, ellipsis: field.type === 'list' ? false : { - tooltip: true, + tooltip: { + style: { maxWidth: '600px', maxHeight: '400px', overflow: 'auto' } + }, }, render: (row) => { const fieldData = row[field.label]