This commit is contained in:
BianLzhaoMin 2025-08-14 18:47:33 +08:00
parent 46165424bd
commit 7b8fcd138e
1 changed files with 14 additions and 4 deletions

View File

@ -843,7 +843,7 @@ export default {
},
methods: {
//
checkFormStatus(fieldsList, imageFList) {
checkFormStatus(fieldsList, imageFList, type) {
//
const imageFieldsToCheck = imageFList.slice(0, -1) //
@ -853,10 +853,18 @@ export default {
//
fieldsList.forEach((field) => {
if (!this.contractInfoForm[field]) {
emptyFieldCount++
if (type === 1) {
if (!this.contractInfoForm[field]) {
emptyFieldCount++
} else {
filledFieldCount++
}
} else {
filledFieldCount++
if (!this.salaryCardInfoForm[field]) {
emptyFieldCount++
} else {
filledFieldCount++
}
}
})
@ -913,10 +921,12 @@ export default {
const status_1 = this.checkFormStatus(
fieldsToCheck_1,
this.contractImageList,
1,
)
const status_2 = this.checkFormStatus(
fieldsToCheck_2,
this.bankImageList,
2,
)
console.log(
this.contractInfoForm,