浏览代码

职称附件上传调整和身份证照片校验

huangguoce 4 周之前
父节点
当前提交
587cae2167

+ 2 - 2
src/views/human/enrollment/registration/components/SkillInfo.vue

@@ -191,12 +191,12 @@ export default {
 						if (!this.inputForm.files) {
 							this.inputForm.files = []
 						}
-						this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null, [...this.fileType])
+						this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null)
 						this.loading = false
 					})
 				} else {
 					this.inputForm.id = id
-					this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null, [...this.fileType])
+					this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null)
 					this.loading = false
 				}
 			})

+ 5 - 1
src/views/sys/user/UserInfo.vue

@@ -1268,7 +1268,7 @@
 														<el-descriptions-item label="职称名称:">{{
 															$dictUtils.getDictLabel('professional_certificate',
 																item.name, '-')
-															}}</el-descriptions-item>
+														}}</el-descriptions-item>
 														<el-descriptions-item label="职称等级:">{{ item.proficiency
 														}}</el-descriptions-item>
 														<el-descriptions-item label="取得日期:">{{
@@ -2411,6 +2411,10 @@ export default {
 				if (this.$refs.idCardFront.checkProgress() || this.$refs.idCardBack.checkProgress()) {
 					return
 				}
+				if (this.$refs.idCardFront.getDataList().length == 0 || this.$refs.idCardBack.getDataList().length == 0) {
+					this.$message.error("请确保已完整上传身份证正反面照片,再进行提交")
+					return
+				}
 				// if (!this.generalForm.idCard || this.generalForm.idCard == "" || this.generalForm.idCard == null) {
 				// 	this.$message.error("身份证号码未填写")
 				// 	return

+ 2 - 2
src/views/sys/user/components/SkillInfo.vue

@@ -189,11 +189,11 @@ export default {
 					if (!this.inputForm.files) {
 						this.inputForm.files = []
 					}
-					this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null, [...this.fileType])
+					this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null)
 					this.loading = false
 				} else {
 					this.inputForm.id = this.generateFallbackId()
-					this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null, [...this.fileType])
+					this.$refs.upLoadComponent.newUpload(method, this.inputForm.files, 'skill', 50, null, null, null, null)
 					this.loading = false
 				}
 			})