Compare commits

..

No commits in common. "cdc4253a1099ee229925cc2288c257ac21cc9bae" and "4cac09cf5792479695600e8ed52b09f67690f4cf" have entirely different histories.

3 changed files with 1 additions and 26 deletions

View File

@ -68,5 +68,4 @@ export default {
request.post(`/valuations/${data.valuation_id || data.id}/reject`, { admin_notes: data.admin_notes }), request.post(`/valuations/${data.valuation_id || data.id}/reject`, { admin_notes: data.admin_notes }),
updateValuationNotes: (data = {}) => updateValuationNotes: (data = {}) =>
request.put(`/valuations/${data.valuation_id || data.id}/admin-notes`, { admin_notes: data.admin_notes }), request.put(`/valuations/${data.valuation_id || data.id}/admin-notes`, { admin_notes: data.admin_notes }),
sendSmsReport: (data = {}) => request.post('/sms/send-report', data),
} }

View File

@ -296,7 +296,6 @@ async function handleInvoiceConfirm(formData) {
subject: formData.email, // subject email subject: formData.email, // subject email
body: formData.content, // content -> body body: formData.content, // content -> body
file_url: formData.attachments, // attachments -> file_url file_url: formData.attachments, // attachments -> file_url
status:'success'
} }
let res = await api.sendInvoice(payload) let res = await api.sendInvoice(payload)

View File

@ -15,7 +15,6 @@ import {
import { getToken } from '@/utils/auth/token' import { getToken } from '@/utils/auth/token'
import { generateReport } from '@/utils/report' import { generateReport } from '@/utils/report'
import api from '@/api'
const props = defineProps({ const props = defineProps({
visible: { visible: {
@ -189,25 +188,6 @@ const handlePreview = (file) => {
// true NUpload 使 // true NUpload 使
return true 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> </script>
<template> <template>
@ -275,10 +255,7 @@ const handleSmsNotify = async () => {
<div class="modal-footer"> <div class="modal-footer">
<NButton @click="handleClose">取消</NButton> <NButton @click="handleClose">取消</NButton>
<NButton v-if="isUploadMode" type="primary" @click="handleConfirm"> <NButton v-if="isUploadMode" type="primary" @click="handleConfirm">
上传 上传并通知
</NButton>
<NButton v-if="isUploadMode" type="primary" @click="handleSmsNotify">
短信通知
</NButton> </NButton>
<NButton v-else type="primary" @click="handleConfirm"> <NButton v-else type="primary" @click="handleConfirm">
确定 确定