This commit is contained in:
parent
46165424bd
commit
7b8fcd138e
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue