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