feat: 优化发票发送成功提示及审计详情表格提示框样式,并修正发票发送接口请求体格式
This commit is contained in:
parent
7612792e08
commit
fd07c81d4b
@ -51,7 +51,7 @@ export default {
|
|||||||
getInvoiceList: (params = {}) => request.get('/transactions/receipts', { params }),
|
getInvoiceList: (params = {}) => request.get('/transactions/receipts', { params }),
|
||||||
getInvoiceById: (params = {}) => request.get(`/transactions/receipts/${params.id}`, { params }),
|
getInvoiceById: (params = {}) => request.get(`/transactions/receipts/${params.id}`, { params }),
|
||||||
// 后端接口要求请求体包裹在 data 字段下
|
// 后端接口要求请求体包裹在 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),
|
refundInvoice: (data = {}) => request.post('/invoice/update-status', data),
|
||||||
// invoice headers
|
// invoice headers
|
||||||
|
|||||||
@ -298,8 +298,13 @@ async function handleInvoiceConfirm(formData) {
|
|||||||
file_url: formData.attachments, // 映射 attachments -> file_url
|
file_url: formData.attachments, // 映射 attachments -> file_url
|
||||||
}
|
}
|
||||||
|
|
||||||
await api.sendInvoice(payload)
|
let res = await api.sendInvoice(payload)
|
||||||
$message.success('发送成功')
|
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
|
invoiceModalVisible.value = false
|
||||||
$table.value?.handleSearch()
|
$table.value?.handleSearch()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@ -173,7 +173,9 @@ const detailSections = computed(() => {
|
|||||||
key: field.label,
|
key: field.label,
|
||||||
width: 200,
|
width: 200,
|
||||||
ellipsis: field.type === 'list' ? false : {
|
ellipsis: field.type === 'list' ? false : {
|
||||||
tooltip: true,
|
tooltip: {
|
||||||
|
style: { maxWidth: '600px', maxHeight: '400px', overflow: 'auto' }
|
||||||
|
},
|
||||||
},
|
},
|
||||||
render: (row) => {
|
render: (row) => {
|
||||||
const fieldData = row[field.label]
|
const fieldData = row[field.label]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user