feat: 上传凭证图片地址参数更改

This commit is contained in:
hhm 2025-11-27 09:45:54 +08:00
parent 831560592f
commit 3c03eaf353

View File

@ -145,7 +145,6 @@
<n-form-item label="上传支付凭证" required>
<n-upload
:action="actionUrl"
v-model:file-list="fileList"
list-type="image-card"
:max="1"
accept="image/png,image/jpeg,image/jpg"
@ -293,12 +292,16 @@ const formModel = reactive({
invoiceHeader: null,
invoiceType: null,
})
const fileList = ref([])
const message = useMessage()
//
const isFormValid = computed(() => {
return fileList.value.length > 0 && formModel.invoiceHeader && formModel.invoiceType
return (
uploadedFile.value &&
uploadedFile.value.length > 0 &&
formModel.invoiceHeader &&
formModel.invoiceType
)
})
const handleUploadFinish = (file) => {