feat: 上传凭证图片地址参数更改
This commit is contained in:
parent
831560592f
commit
3c03eaf353
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user