|
@@ -260,42 +260,17 @@ const verificationData = () => {
|
|
|
if (!generalInfo.value.formData.is_send) {
|
|
if (!generalInfo.value.formData.is_send) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- if (
|
|
|
|
|
- generalInfo.value.formData.Submitter === null ||
|
|
|
|
|
- generalInfo.value.formData.Submitter === undefined ||
|
|
|
|
|
- generalInfo.value.formData.Submitter === ''
|
|
|
|
|
- ) {
|
|
|
|
|
- isVerificationError.value.submitter = true
|
|
|
|
|
- } else {
|
|
|
|
|
- isVerificationError.value.submitter = false
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- generalInfo.value.formData.signature === null ||
|
|
|
|
|
- generalInfo.value.formData.signature === undefined ||
|
|
|
|
|
- generalInfo.value.formData.signature === ''
|
|
|
|
|
- ) {
|
|
|
|
|
- isVerificationError.value.signature = true
|
|
|
|
|
- } else {
|
|
|
|
|
- isVerificationError.value.signature = false
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- generalInfo.value.formData.authorized_email === null ||
|
|
|
|
|
- generalInfo.value.formData.authorized_email === undefined ||
|
|
|
|
|
- generalInfo.value.formData.authorized_email === ''
|
|
|
|
|
- ) {
|
|
|
|
|
- isVerificationError.value.authorized_email = true
|
|
|
|
|
- } else {
|
|
|
|
|
- isVerificationError.value.authorized_email = false
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- generalInfo.value.formData.authorized_tel === null ||
|
|
|
|
|
- generalInfo.value.formData.authorized_tel === undefined ||
|
|
|
|
|
- generalInfo.value.formData.authorized_tel === ''
|
|
|
|
|
- ) {
|
|
|
|
|
- isVerificationError.value.authorized_tel = true
|
|
|
|
|
- } else {
|
|
|
|
|
- isVerificationError.value.authorized_tel = false
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const checkField = (field, errorKey) => {
|
|
|
|
|
+ const fieldValue = generalInfo.value.formData[field]
|
|
|
|
|
+ isVerificationError.value[errorKey] =
|
|
|
|
|
+ fieldValue === null || fieldValue === undefined || fieldValue === ''
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ checkField('Submitter', 'submitter')
|
|
|
|
|
+ checkField('signature', 'signature')
|
|
|
|
|
+ checkField('authorized_email', 'authorized_email')
|
|
|
|
|
+ checkField('authorized_tel', 'authorized_tel')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const isVerification = (value) => {
|
|
const isVerification = (value) => {
|