diff --git a/src/app/mock-api/apps/member/coupon-log/api.ts b/src/app/mock-api/apps/member/coupon-log/api.ts
index f8007af..41e1dd2 100644
--- a/src/app/mock-api/apps/member/coupon-log/api.ts
+++ b/src/app/mock-api/apps/member/coupon-log/api.ts
@@ -42,7 +42,11 @@ export class MemberCouponLogMockApi {
let couponLogs: any[] | null = cloneDeep(this._couponLogs);
// Sort the couponLogs
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (
+ sort === 'issuedCouponId' ||
+ sort === 'couponGroupNumber' ||
+ sort === 'couponTitle'
+ ) {
couponLogs.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/member/coupon-log/data.ts b/src/app/mock-api/apps/member/coupon-log/data.ts
index 9adbb02..d5ddb6f 100644
--- a/src/app/mock-api/apps/member/coupon-log/data.ts
+++ b/src/app/mock-api/apps/member/coupon-log/data.ts
@@ -2,32 +2,15 @@
export const couponLogs = [
{
- id: 'on00',
- totalPartnerCount: '5',
- totalHoldingMoney: 303675,
- totalComp: 108933,
- total: 412608,
- branchCount: 1,
- divisionCount: 1,
- officeCount: 1,
- storeCount: 1,
- memberCount: 1,
- nickname: 'on00',
- accountHolder: '11',
- phoneNumber: '010-1111-1111',
- calculateType: '롤링',
- ownCash: 50000,
- ownComp: 1711,
- ownCoupon: 50000,
- gameMoney: 0,
- todayComp: 0,
- totalDeposit: 0,
- totalWithdraw: 0,
- balance: 0,
- registDate: '2022-06-12 15:38',
- finalSigninDate: '',
- ip: '',
- state: '정상',
- note: '',
+ id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
+ idx: 4,
+ issuedCouponId: 'on04',
+ couponGroupNumber: 'Y071294JYS9AIYL4',
+ couponTitle: '쿠폰테스트',
+ issuedCouponMoney: 50000,
+ couponContents: '파트너페이지에서 쿠폰생성',
+ issuedCouponDate: '2022-06-12 16:22',
+ couponBeforeMoney: 50000,
+ couponAfterMoney: 0,
},
];
diff --git a/src/app/mock-api/apps/member/coupon/data.ts b/src/app/mock-api/apps/member/coupon/data.ts
index d767bcb..128b828 100644
--- a/src/app/mock-api/apps/member/coupon/data.ts
+++ b/src/app/mock-api/apps/member/coupon/data.ts
@@ -5,8 +5,8 @@ export const coupons = [
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
issuedCouponId: 'on04',
issuedCouponNickname: 'on04',
- receiveCouponId: 'onon6',
- receiveCouponNickname: '가가가',
+ takeCouponId: 'onon6',
+ tkaeCouponNickname: '가가가',
couponGroupNumber: '6L03ER50103AZOVS',
couponSerialNumber: '3GWL2T6RQJ4WJLRTQMBIRFEO',
issuedCoupons: '1/1',
diff --git a/src/app/modules/admin/member/coupon-log/components/list.component.html b/src/app/modules/admin/member/coupon-log/components/list.component.html
index 0a5803a..ec137c9 100644
--- a/src/app/modules/admin/member/coupon-log/components/list.component.html
+++ b/src/app/modules/admin/member/coupon-log/components/list.component.html
@@ -10,348 +10,135 @@
-
+
-
-
-
-
-
-
- 40
- 60
- 80
- 100
-
-
-
-
- LV.1
- LV.2
- LV.3
- LV.4
-
-
-
-
- 정상
- 대기
- 탈퇴
- 휴면
- 블랙
- 정지
-
-
-
-
- 카지노제한
- 슬롯제한
-
-
-
-
- 계좌입금
-
-
-
-
- 카지노콤프
- 슬롯콤프
- 배팅콤프
- 첫충콤프
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0; else noCouponLog">
-
-
-
-
-
요율
-
상부트리
-
관리
-
매장수
-
회원수
-
아이디
-
닉네임
-
예금주
-
연락처
-
정산
-
보유금
-
게임중머니
-
카지노->캐쉬
-
금일콤프
-
총입출
-
로그
-
상태
-
회원수
-
비고
-
-
-
-
-
-
-
-
-
-
-
- 요율
-
-
-
-
-
-
- 보유금지급/회수
- 수수료설정
- 콤프지급/회수
- 쿠폰머니지급/회수
- 쪽지보내기
- 베팅리스트
- 강제로그아웃
-
-
-
-
-
-
-
-
- {{ couponLog.branchCount }}
-
-
- {{ couponLog.divisionCount }}
-
-
- {{ couponLog.officeCount }}
-
-
- {{ couponLog.storeCount }}
-
-
-
-
-
- {{ couponLog.memberCount }}
-
-
-
-
-
-
- {{ couponLog.id }}
-
-
-
-
-
- {{ couponLog.nickname }}
-
-
-
- {{ couponLog.accountHolder }}
-
-
-
- {{ couponLog.phoneNumber }}
-
-
-
- {{ couponLog.calculateType }}
-
-
-
- 캐쉬{{ couponLog.ownCash }} 콤프{{
- couponLog.ownComp
- }}
- 쿠폰{{ couponLog.ownCoupon }}
-
-
-
- {{ couponLog.gameMoney }}
-
-
-
-
- 게임머니확인
-
-
- 게임머니회수
-
-
-
-
- {{ couponLog.todayComp }}P
-
-
-
- 입금{{ couponLog.totalDeposit }} 출금{{
- couponLog.totalWithdraw
- }}
- 차익{{ couponLog.balance }}
-
-
-
- 가입{{ couponLog.registDate }} 최종{{
- couponLog.finalSigninDate
- }}
- IP{{ couponLog.ip }}
-
-
-
- {{ couponLog.state }}
-
-
-
- {{ couponLog.memberCount }}
-
-
-
-
- {{ couponLog.note }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- There are no coupon logs!
+
+
+
+
+
+
+
+
+
+
+
+ Search
+
-
+
+
+
+
+
+
+
+ 0; else noCouponLog">
+
+
+
+
번호
+
발행아이디
+
쿠폰그룹번호
+
쿠폰제목
+
이전쿠폰금액
+
발행쿠폰금액
+
이후쿠폰금액
+
내용
+
발행시간
+
+
+
+
+
+
{{ couponLog.idx }}
+
+ {{ couponLog.issuedCouponId }}
+
+
+ {{ couponLog.couponGroupNumber }}
+
+
+ {{ couponLog.couponTitle }}
+
+
+ {{ couponLog.couponBeforeMoney }}
+
+
+ {{ couponLog.issuedCouponMoney }}
+
+
+ {{ couponLog.couponAfterMoney }}
+
+
+ {{ couponLog.couponContents }}
+
+
+ {{ couponLog.issuedCouponDate }}
+
+
+
+
+
+
+
+
+
+
+
+
+ There are no coupon log!
+
+
+
+
diff --git a/src/app/modules/admin/member/coupon-log/components/list.component.ts b/src/app/modules/admin/member/coupon-log/components/list.component.ts
index 04e9364..f630fc2 100644
--- a/src/app/modules/admin/member/coupon-log/components/list.component.ts
+++ b/src/app/modules/admin/member/coupon-log/components/list.component.ts
@@ -42,18 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ /* 번호 발행 그룹 제목 이전 */
+ grid-template-columns: 40px 140px auto 140px 140px;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ /* 번호 발행 그룹 제목 이전 발행 */
+ grid-template-columns: 40px 140px auto 140px 140px 140px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ /* 번호 발행 그룹 제목 이전 발행 이후 내용 */
+ grid-template-columns: 40px 140px auto 140px 140px 140px 40px 140px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ /* 번호 발행 그룹 제목 이전 발행 이후 내용 시간*/
+ grid-template-columns: 40px 140px auto 140px 140px 140px 40px 200px 140px;
}
}
`,
@@ -69,6 +73,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
couponLogs$!: Observable;
users$!: Observable;
+ __isSearchOpened = false;
isLoading = false;
searchInputControl = new FormControl();
selectedCouponLog?: CouponLog;
@@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Track by function for ngFor loops
*
diff --git a/src/app/modules/admin/member/coupon-log/models/coupon-log.ts b/src/app/modules/admin/member/coupon-log/models/coupon-log.ts
index cc36309..7b217b6 100644
--- a/src/app/modules/admin/member/coupon-log/models/coupon-log.ts
+++ b/src/app/modules/admin/member/coupon-log/models/coupon-log.ts
@@ -1,29 +1,12 @@
export interface CouponLog {
- id?: string;
- totalPartnerCount?: number;
- totalHoldingMoney?: number;
- totalComp?: number;
- total?: number;
- branchCount?: number;
- divisionCount?: number;
- officeCount?: number;
- storeCount?: number;
- memberCount?: number;
- nickname?: string;
- accountHolder?: string;
- phoneNumber?: string;
- calculateType?: string;
- ownCash?: number;
- ownComp?: number;
- ownCoupon?: number;
- gameMoney?: number;
- todayComp?: number;
- totalDeposit?: number;
- totalWithdraw?: number;
- balance?: number;
- registDate?: string;
- finalSigninDate?: string;
- ip?: string;
- state?: string;
- note?: string;
+ id: string;
+ idx?: number;
+ issuedCouponId?: string;
+ couponGroupNumber?: string;
+ couponTitle?: string;
+ issuedCouponMoney?: number;
+ couponContents?: string;
+ issuedCouponDate?: Date;
+ couponBeforeMoney?: number; // 쿠폰이전금액
+ couponAfterMoney?: number; // 쿠폰이후금액
}
diff --git a/src/app/modules/admin/member/coupon/components/list.component.html b/src/app/modules/admin/member/coupon/components/list.component.html
index 0e07a8d..791a8f6 100644
--- a/src/app/modules/admin/member/coupon/components/list.component.html
+++ b/src/app/modules/admin/member/coupon/components/list.component.html
@@ -13,7 +13,13 @@
+
+
+
+
- {{ coupon.receiveCouponId }}
+ {{ coupon.takeCouponId }}
- {{ coupon.receiveCouponNickname }}
+ {{ coupon.takeCouponNickname }}
{{ coupon.couponStartDate }}
diff --git a/src/app/modules/admin/member/coupon/components/list.component.ts b/src/app/modules/admin/member/coupon/components/list.component.ts
index 0e18bca..93dbe4f 100644
--- a/src/app/modules/admin/member/coupon/components/list.component.ts
+++ b/src/app/modules/admin/member/coupon/components/list.component.ts
@@ -191,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Track by function for ngFor loops
*
diff --git a/src/app/modules/admin/member/coupon/models/coupon.ts b/src/app/modules/admin/member/coupon/models/coupon.ts
index b80da2d..290472a 100644
--- a/src/app/modules/admin/member/coupon/models/coupon.ts
+++ b/src/app/modules/admin/member/coupon/models/coupon.ts
@@ -2,8 +2,8 @@ export interface Coupon {
id: string;
issuedCouponId?: string; // 쿠폰생성아이디
issuedCouponNickname?: string; // 쿠폰생성닉네임
- receiveCouponId?: string; // 쿠폰지급아이디
- receiveCouponNickname?: string; // 쿠폰지급닉네임
+ takeCouponId?: string; // 쿠폰지급 받은아이디
+ takeCouponNickname?: string; // 쿠폰지급 받은닉네임
couponGroupNumber?: string; // 쿠폰그룹번호
couponSerialNumber?: string; // 쿠폰시리얼넘버
issuedCoupons?: string; // 쿠폰발행수
@@ -15,3 +15,12 @@ export interface Coupon {
modifyCouponDate?: Date; // 쿠폰수정일
useCouponDate?: Date; // 쿠폰사용일
}
+
+// issued
+// 생성, 발행
+
+// give - take
+// 쿠폰지급 - 쿠폰지급 받음
+
+// use - retrieve
+// 쿠폰사용 - 쿠폰회수