diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.html b/src/app/modules/admin/member/partner/compose/regist-compose.component.html index bd37d22..63efa2e 100644 --- a/src/app/modules/admin/member/partner/compose/regist-compose.component.html +++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.html @@ -47,12 +47,12 @@ 사이트명 - + {{ site.getUrl() }} - + 사이트명은 필수 입력입니다. @@ -62,14 +62,14 @@ 회원 아이디 - + 아이디는 필수 입력입니다. 아이디가 중복됩니다. @@ -130,8 +130,10 @@ 휴대폰번호 - - + + 휴대폰번호는 필수 입력입니다. @@ -139,13 +141,13 @@ 은행명 - + {{ bank.getName() }} - + 은행명은 필수 입력입니다. @@ -187,7 +189,7 @@ >
- diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts index c114603..8cb4b1a 100644 --- a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts +++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts @@ -73,14 +73,14 @@ export class RegistComposeComponent implements OnInit { // Create the form this.composeForm = this._formBuilder.group({ partnerId: [{ value: this.data.parent.getUsername(), disabled: true }], - siteName: ['', [Validators.required]], - signinId: ['', [Validators.required]], + siteId: ['', [Validators.required]], + username: ['', [Validators.required]], password: ['beteran', [Validators.required]], exchangePw: ['', [Validators.required]], nickname: ['', [Validators.required]], calculateType: ['', [Validators.required]], - phoneNumber: ['', [Validators.required]], - bankName: ['', [Validators.required]], + mobilePhoneNumber: ['', [Validators.required]], + bankId: ['', [Validators.required]], accountNumber: ['', [Validators.required]], accountHolder: ['', [Validators.required]], }); @@ -139,35 +139,35 @@ export class RegistComposeComponent implements OnInit { const { partnerId, - siteName, - signinId, + siteId, + username, password, exchangePassword, nickname, calculateType, - phoneNumber, - bankName, + mobilePhoneNumber, + bankId, accountNumber, accountHolder, } = this.composeForm.value; let bank_account = new CreateMemberRequest.BankAccount(); - bank_account.setBankId(bankName); + bank_account.setBankId(bankId); bank_account.setName(accountHolder); bank_account.setAccountNumber(accountNumber); const member = new CreateMemberRequest(); const site = new Site(); - site.setId(siteName); + site.setId(siteId); - member.setSiteId(siteName); - member.setUsername(signinId); + member.setSiteId(siteId); + member.setUsername(username); member.setPassword('beteran'); member.setMemberClassId(this.data.classId); member.setMemberLevelId('c56231ac-2120-4a81-a30a-5d41fafb6c57'); member.setReferrerMemberUsername(this.data.parent.getUsername()); member.setNickname(nickname); - member.setMobilePhoneNumber(phoneNumber); + member.setMobilePhoneNumber(mobilePhoneNumber); member.setBankAccount(bank_account); this._memberService @@ -183,21 +183,21 @@ export class RegistComposeComponent implements OnInit { .finally(() => setTimeout(() => this.close(), 5000)); } - private close(): void { + close(): void { this.matDialogRef.close({ choice: true, }); } - __checkSigninId(event: FocusEvent): void { - const signinId = this.composeForm.get('signinId')?.value; - // console.log(event, '::', signinId); + __checkUsernameDuplicate(event: FocusEvent): void { + const username = this.composeForm.get('username')?.value; + // console.log(event, '::', username); this._identityService - .checkUsernameForDuplication(signinId) + .checkUsernameForDuplication(username) .then((isUse: boolean) => { if (!!isUse) { this.composeForm - .get('signinId') - ?.setErrors({ signinIdDuplicate: true }); + .get('username') + ?.setErrors({ usernameDuplicate: true }); } // this._changeDetectorRef.markForCheck(); });