mirror of
https://gitee.com/guchengwuyue/crm.git
synced 2025-12-06 08:58:27 +08:00
发票开具增加附件上传
This commit is contained in:
parent
1764dbec8c
commit
09e6a76e9e
@ -111,6 +111,13 @@
|
|||||||
<el-input v-model="formData.remarks" placeholder="请输入备注" />
|
<el-input v-model="formData.remarks" placeholder="请输入备注" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="上传附件" prop="files">
|
||||||
|
<UploadFile v-model="formData.files" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@ -205,6 +212,14 @@ const submitForm = async () => {
|
|||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
const data = formData.value as unknown as InvoiceVO
|
const data = formData.value as unknown as InvoiceVO
|
||||||
|
if(!data.files){
|
||||||
|
message.error('请上传附件')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(Array.isArray(data.files) && data.files.length >= 1){
|
||||||
|
const files = data.files.join(",")
|
||||||
|
data.files = files
|
||||||
|
}
|
||||||
await InvoiceApi.issueInvoice(data)
|
await InvoiceApi.issueInvoice(data)
|
||||||
message.success('操作成功')
|
message.success('操作成功')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user