Browse Source

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

sangwenwei 6 months ago
parent
commit
eeb172cb0b
1 changed files with 5 additions and 3 deletions
  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(() => {