소스 검색

用户信息同步调整,根据公司进行同步,只能同步会计,评估公司

sangwenwei 6 달 전
부모
커밋
eeb172cb0b
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/views/sys/user/UserForm.vue

+ 5 - 3
src/views/sys/user/UserForm.vue

@@ -696,9 +696,11 @@ export default {
 								userId: data.userId,
 							}
 							//会计公司和评估公司的人可以将信息添加到入职登记中
-							if (this.inputForm.tenantDTO.id === '10003' || this.inputForm.tenantDTO.id === '10001'){
-								enrollmentRegistrationService.saveInfo(param)
-							}
+							officeService.queryById(this.inputForm.companyDTO.id).then((byId) => {
+								if (byId.name === '兴光会计师事务所' || byId.name === '兴光资产评估公司'){
+									enrollmentRegistrationService.saveInfo(param)
+								}
+							})
 
 						})
 						.catch(() => {