人员库问题修改

This commit is contained in:
cwchen 2025-11-17 17:27:53 +08:00
parent 51cd2b7ce5
commit 049bde5457
3 changed files with 10 additions and 8 deletions

View File

@ -169,13 +169,12 @@ export default {
watch: {
fileList: {
handler(newVal) {
if (this.files.length === 0 && newVal.length > 0) {
if (newVal.length > 0) {
this.$nextTick(() => {
this.files = this.formatFileList(newVal)
this.handlePreviewFromExternal(newVal)
})
}
if(newVal.length === 0){
}else{
this.$nextTick(() => {
this.files = [];
this.handlePreviewFromExternal(newVal)

View File

@ -344,7 +344,8 @@ export default {
this.isProjectChiefEngineer ? Promise.resolve(EMPTY_OBJECT) : this.qualificationInfoRef?.validate?.() || Promise.resolve(EMPTY_OBJECT),
this.$refs.otherInfoPersonnel.validate()
])
console.log(basicInfoData, qualificationData, otherData);
//
const formData = this.assembleFormData(basicInfoData, qualificationData, otherData)

View File

@ -359,6 +359,8 @@ export default {
this.$set(this.personnelCertificateId, 0, this.getFormData(item.fileUploadType, 'personnelCertificateId'));
} else if (Object.keys(item).length > 0 && item.fileUploadType !== fileUploadType) { // BC
this.form.fileList2 = this.getFileList(item.fileUploadType);
console.log(this.form.fileList2);
this.form.registerProfessional = this.getFormData(item.fileUploadType, 'registerProfessional');
this.form.certificateCode2 = this.getFormData(item.fileUploadType, 'certificateCode');
this.form.certificateValidityPeriod2 = this.getFormData(item.fileUploadType, 'certificateValidityPeriod').split(' - ');
@ -366,7 +368,7 @@ export default {
}
})
console.log(this.form);
},
getFileList(businessType) {
@ -453,12 +455,12 @@ export default {
},
detailData: {
handler(newVal) {
console.log(newVal);
if (Object.keys(newVal).length > 0) {
const { enterprisePersonnel: { personnelPosition } = {} } = newVal;
if (personnelPosition !== 'project_chief_engineer') {
this.setFormData();
this.$nextTick(() => {
this.setFormData();
})
}
}
},