Compare commits
No commits in common. "cdc4253a1099ee229925cc2288c257ac21cc9bae" and "4cac09cf5792479695600e8ed52b09f67690f4cf" have entirely different histories.
cdc4253a10
...
4cac09cf57
@ -68,5 +68,4 @@ export default {
|
||||
request.post(`/valuations/${data.valuation_id || data.id}/reject`, { admin_notes: data.admin_notes }),
|
||||
updateValuationNotes: (data = {}) =>
|
||||
request.put(`/valuations/${data.valuation_id || data.id}/admin-notes`, { admin_notes: data.admin_notes }),
|
||||
sendSmsReport: (data = {}) => request.post('/sms/send-report', data),
|
||||
}
|
||||
|
||||
@ -296,7 +296,6 @@ async function handleInvoiceConfirm(formData) {
|
||||
subject: formData.email, // 用户要求 subject 传 email
|
||||
body: formData.content, // 映射 content -> body
|
||||
file_url: formData.attachments, // 映射 attachments -> file_url
|
||||
status:'success'
|
||||
}
|
||||
|
||||
let res = await api.sendInvoice(payload)
|
||||
|
||||
@ -15,7 +15,6 @@ import {
|
||||
|
||||
import { getToken } from '@/utils/auth/token'
|
||||
import { generateReport } from '@/utils/report'
|
||||
import api from '@/api'
|
||||
|
||||
const props = defineProps({
|
||||
visible: {
|
||||
@ -189,25 +188,6 @@ const handlePreview = (file) => {
|
||||
// 图片文件返回 true,让 NUpload 使用内置预览
|
||||
return true
|
||||
}
|
||||
|
||||
// 短信通知
|
||||
const handleSmsNotify = async () => {
|
||||
try {
|
||||
const phone = props.certificateData?.detailData?.user_phone
|
||||
if (!phone) {
|
||||
message.error('缺少手机号,无法发送短信')
|
||||
return
|
||||
}
|
||||
message.loading('正在发送短信...')
|
||||
await api.sendSmsReport({
|
||||
phone: phone
|
||||
})
|
||||
message.success('短信发送成功')
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
message.error('短信发送失败')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -275,10 +255,7 @@ const handleSmsNotify = async () => {
|
||||
<div class="modal-footer">
|
||||
<NButton @click="handleClose">取消</NButton>
|
||||
<NButton v-if="isUploadMode" type="primary" @click="handleConfirm">
|
||||
上传
|
||||
</NButton>
|
||||
<NButton v-if="isUploadMode" type="primary" @click="handleSmsNotify">
|
||||
短信通知
|
||||
上传并通知
|
||||
</NButton>
|
||||
<NButton v-else type="primary" @click="handleConfirm">
|
||||
确定
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user