WIP Добавлена проверка очистки паспорта
This commit is contained in:
@@ -137,7 +137,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
checkPassportFields(val, defaultRule) {
|
||||
if (this.passportFields.every((elem) => !this.docData.passport[elem])) {
|
||||
if (
|
||||
this.passportFields.every((elem) => !this.docData.passport[elem]) &&
|
||||
!this.initialDocData.passport.series
|
||||
) {
|
||||
this.$refs.documentForm
|
||||
.getValidationComponents()
|
||||
.filter((elem) => !this.personDataField.includes(elem.name))
|
||||
|
||||
Reference in New Issue
Block a user