fix(api): 更新发票列表接口端点并优化证书审核短信通知流程
- 将发票列表接口端点从 `/invoice/list` 更新为 `/app-invoices/headers` - 在短信通知成功后自动关闭证书审核弹窗 - 短信发送成功后触发 confirm 事件并返回空的报告和证书文件列表 - 改进用户体验,使短信通知流程更加完整和流畅
This commit is contained in:
parent
df35a1a5bf
commit
6f99611a0c
@ -55,7 +55,7 @@ export default {
|
|||||||
// 退款
|
// 退款
|
||||||
refundInvoice: (data = {}) => request.post('/invoice/update-status', data),
|
refundInvoice: (data = {}) => request.post('/invoice/update-status', data),
|
||||||
// invoice headers
|
// invoice headers
|
||||||
getInvoiceHeaders: (params = {}) => request.get('/invoice/list', { params }),
|
getInvoiceHeaders: (params = {}) => request.get('/app-invoices/headers', { params }),
|
||||||
// valuation (估值评估)
|
// valuation (估值评估)
|
||||||
getValuationList: (params = {}) => request.get('/valuations/', { params }),
|
getValuationList: (params = {}) => request.get('/valuations/', { params }),
|
||||||
getValuationById: (params = {}) => request.get(`/valuations/${params.valuation_id || params.id}`),
|
getValuationById: (params = {}) => request.get(`/valuations/${params.valuation_id || params.id}`),
|
||||||
|
|||||||
@ -203,6 +203,11 @@ const handleSmsNotify = async () => {
|
|||||||
phone: phone
|
phone: phone
|
||||||
})
|
})
|
||||||
message.success('短信发送成功')
|
message.success('短信发送成功')
|
||||||
|
handleClose()
|
||||||
|
emit('confirm', {
|
||||||
|
reportFiles: [],
|
||||||
|
certificateFiles: []
|
||||||
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
message.error('短信发送失败')
|
message.error('短信发送失败')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user