This commit is contained in:
parent
46165424bd
commit
7b8fcd138e
|
|
@ -843,7 +843,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
// 检查表单状态
|
||||
checkFormStatus(fieldsList, imageFList) {
|
||||
checkFormStatus(fieldsList, imageFList, type) {
|
||||
// 检查图片是否有上传(排除附件)
|
||||
const imageFieldsToCheck = imageFList.slice(0, -1) // 排除最后一个附件
|
||||
|
||||
|
|
@ -853,11 +853,19 @@ export default {
|
|||
|
||||
// 检查普通字段
|
||||
fieldsList.forEach((field) => {
|
||||
if (type === 1) {
|
||||
if (!this.contractInfoForm[field]) {
|
||||
emptyFieldCount++
|
||||
} else {
|
||||
filledFieldCount++
|
||||
}
|
||||
} else {
|
||||
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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue