쿠폰발행머니로그 수정
This commit is contained in:
parent
193a80847d
commit
3401a2dea1
|
@ -2,32 +2,20 @@
|
||||||
|
|
||||||
export const couponMoneyLogs = [
|
export const couponMoneyLogs = [
|
||||||
{
|
{
|
||||||
id: 'on00',
|
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
|
||||||
totalPartnerCount: '5',
|
idx: 15,
|
||||||
totalHoldingMoney: 303675,
|
giveCouponId: 'ADMIN',
|
||||||
totalComp: 108933,
|
giveCouponRank: 'ADMIN',
|
||||||
total: 412608,
|
takeCouponId: 'on04',
|
||||||
branchCount: 1,
|
takeCouponRank: '매장',
|
||||||
divisionCount: 1,
|
giveCouponBeforeMoney: 0,
|
||||||
officeCount: 1,
|
giveCouponVarianceMoney: -50000,
|
||||||
storeCount: 1,
|
giveCouponAfterMoney: 0,
|
||||||
memberCount: 1,
|
takeCouponBeforeMoney: 0,
|
||||||
nickname: 'on00',
|
takeCouponVarianceMoney: 50000,
|
||||||
accountHolder: '11',
|
takeCouponAfterMoney: 50000,
|
||||||
phoneNumber: '010-1111-1111',
|
couponContents: '오링쿠폰',
|
||||||
calculateType: '롤링',
|
giveCouponRegistrationDate: '2022-06-12 16:22',
|
||||||
ownCash: 50000,
|
takeCouponRegistrationDate: '2022-06-12 16:22',
|
||||||
ownComp: 1711,
|
|
||||||
ownCoupon: 50000,
|
|
||||||
gameMoney: 0,
|
|
||||||
todayComp: 0,
|
|
||||||
totalDeposit: 0,
|
|
||||||
totalWithdraw: 0,
|
|
||||||
balance: 0,
|
|
||||||
registDate: '2022-06-12 15:38',
|
|
||||||
finalSigninDate: '',
|
|
||||||
ip: '',
|
|
||||||
state: '정상',
|
|
||||||
note: '',
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -10,351 +10,160 @@
|
||||||
<mat-progress-bar [mode]="'indeterminate'"></mat-progress-bar>
|
<mat-progress-bar [mode]="'indeterminate'"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<div class="text-4xl font-extrabold tracking-tight">쿠폰발행 머니로그</div>
|
<div class="text-4xl font-extrabold tracking-tight">쿠폰발행머니로그</div>
|
||||||
<!-- Actions -->
|
<!-- Actions -->
|
||||||
<div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4">
|
<div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4">
|
||||||
<!-- Memo -->
|
<div
|
||||||
<!-- <mat-form-field>
|
class="relative flex flex-col sm:flex-row flex-0 sm:items-center sm:justify-between py-4 px-6 md:px-8 border-b"
|
||||||
<ng-container *ngIf="couponMoneyLogs$ | async as couponMoneyLogs">
|
></div>
|
||||||
<ng-container
|
|
||||||
*ngFor="let couponMoneyLog of couponMoneyLogs; trackBy: __trackByFn"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
|
||||||
>
|
|
||||||
<fieldset>
|
|
||||||
총 파트너수:{{ couponMoneyLog.totalPartnerCount }}
|
|
||||||
총 보유머니:{{
|
|
||||||
couponMoneyLog.totalHoldingMoney
|
|
||||||
}}
|
|
||||||
총 콤프:{{ couponMoneyLog.totalComp }} 총 합계:{{
|
|
||||||
couponMoneyLog.total
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</ng-container>
|
|
||||||
</mat-form-field> -->
|
|
||||||
|
|
||||||
<!-- SelectBox -->
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="리스트수">
|
|
||||||
<mat-option value="40">40</mat-option>
|
|
||||||
<mat-option value="60">60</mat-option>
|
|
||||||
<mat-option value="80">80</mat-option>
|
|
||||||
<mat-option value="100">100</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="레벨">
|
|
||||||
<mat-option value="level1">LV.1</mat-option>
|
|
||||||
<mat-option value="level2">LV.2</mat-option>
|
|
||||||
<mat-option value="level3">LV.3</mat-option>
|
|
||||||
<mat-option value="level4">LV.4</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="상태">
|
|
||||||
<mat-option value="">정상</mat-option>
|
|
||||||
<mat-option value="">대기</mat-option>
|
|
||||||
<mat-option value="">탈퇴</mat-option>
|
|
||||||
<mat-option value="">휴면</mat-option>
|
|
||||||
<mat-option value="">블랙</mat-option>
|
|
||||||
<mat-option value="">정지</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="제한">
|
|
||||||
<mat-option value="">카지노제한</mat-option>
|
|
||||||
<mat-option value="">슬롯제한</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="입금">
|
|
||||||
<mat-option value="">계좌입금</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="내용">
|
|
||||||
<mat-option value="">카지노콤프</mat-option>
|
|
||||||
<mat-option value="">슬롯콤프</mat-option>
|
|
||||||
<mat-option value="">배팅콤프</mat-option>
|
|
||||||
<mat-option value="">첫충콤프</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<!-- <mat-form-field>
|
|
||||||
<mat-select placeholder="입금">
|
|
||||||
<mat-option value="">계좌입금</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="아이디">
|
|
||||||
<mat-option value="">아이디</mat-option>
|
|
||||||
<mat-option value="">닉네임</mat-option>
|
|
||||||
<mat-option value="">이름</mat-option>
|
|
||||||
<mat-option value="">사이트</mat-option>
|
|
||||||
<mat-option value="">파트너수동지급</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="가입일 정렬">
|
|
||||||
<mat-option value="">가입일 정렬</mat-option>
|
|
||||||
<mat-option value="">아이디 정렬</mat-option>
|
|
||||||
<mat-option value="">닉네임 정렬</mat-option>
|
|
||||||
<mat-option value="">캐쉬 정렬</mat-option>
|
|
||||||
<mat-option value="">콤프 정렬</mat-option>
|
|
||||||
<mat-option value="">쿠폰 정렬</mat-option>
|
|
||||||
<mat-option value="">입금 정렬</mat-option>
|
|
||||||
<mat-option value="">출금 정렬</mat-option>
|
|
||||||
<mat-option value="">차익 정렬</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="내림차순">
|
|
||||||
<mat-option value="">내림차순</mat-option>
|
|
||||||
<mat-option value="">오름차순</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field> -->
|
|
||||||
<!-- Search -->
|
<!-- Search -->
|
||||||
<mat-form-field
|
<button mat-icon-button (click)="__onClickSearch()">
|
||||||
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded min-w-64"
|
<mat-icon [svgIcon]="'heroicons_outline:search'"></mat-icon>
|
||||||
>
|
|
||||||
<mat-icon
|
|
||||||
class="icon-size-5"
|
|
||||||
matPrefix
|
|
||||||
[svgIcon]="'heroicons_solid:search'"
|
|
||||||
></mat-icon>
|
|
||||||
<input
|
|
||||||
matInput
|
|
||||||
[formControl]="searchInputControl"
|
|
||||||
[autocomplete]="'off'"
|
|
||||||
[placeholder]="'Search'"
|
|
||||||
/>
|
|
||||||
</mat-form-field>
|
|
||||||
<!-- Add user button -->
|
|
||||||
<button
|
|
||||||
class="ml-4"
|
|
||||||
mat-flat-button
|
|
||||||
[color]="'primary'"
|
|
||||||
(click)="__createProduct()"
|
|
||||||
>
|
|
||||||
<!-- <mat-icon [svgIcon]="'heroicons_outline:plus'"></mat-icon> -->
|
|
||||||
<span class="ml-2 mr-1">검색하기</span>
|
|
||||||
</button>
|
</button>
|
||||||
<button>엑셀저장</button>
|
<div
|
||||||
<button>카지노머니확인</button>
|
*ngIf="__isSearchOpened"
|
||||||
</div>
|
class="relative flex flex-col sm:flex-row flex-0 sm:items-center sm:justify-between py-4 px-6 md:px-8 border-b"
|
||||||
</div>
|
>
|
||||||
|
<!-- Actions -->
|
||||||
<!-- Main -->
|
<div fxLayout="row wrap" class="items-center mt-6 sm:mt-0 sm:ml-0">
|
||||||
<div class="flex flex-auto overflow-hidden">
|
<!-- Search -->
|
||||||
<!-- Products list -->
|
<mat-form-field
|
||||||
<div
|
fxFlex
|
||||||
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
|
class="fuse-mat-rounded min-w-64 bet-mat-form-field-wrapper-mb-0 mr-2"
|
||||||
>
|
>
|
||||||
<ng-container *ngIf="couponMoneyLogs$ | async as couponMoneyLogs">
|
<mat-icon
|
||||||
<ng-container *ngIf="couponMoneyLogs.length > 0; else noCouponMoneyLog">
|
class="icon-size-5"
|
||||||
<div class="grid">
|
matPrefix
|
||||||
<!-- Header -->
|
[svgIcon]="'heroicons_solid:search'"
|
||||||
<div
|
></mat-icon>
|
||||||
class="inventory-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5"
|
<input
|
||||||
matSort
|
matInput
|
||||||
matSortDisableClear
|
[formControl]="searchInputControl"
|
||||||
>
|
[autocomplete]="'off'"
|
||||||
<div class="hidden sm:block"><mat-checkbox></mat-checkbox></div>
|
[placeholder]="'Search ID'"
|
||||||
<div class="hidden sm:block">요율</div>
|
/>
|
||||||
<div class="hidden sm:block">상부트리</div>
|
</mat-form-field>
|
||||||
<div class="hidden sm:block">관리</div>
|
<!-- Add user button -->
|
||||||
<div class="hidden sm:block">매장수</div>
|
<button
|
||||||
<div class="hidden sm:block">회원수</div>
|
fxFlex
|
||||||
<div class="hidden sm:block">아이디</div>
|
mat-flat-button
|
||||||
<div class="hidden sm:block">닉네임</div>
|
style="position: fixed; margin-top: 4px"
|
||||||
<div class="hidden sm:block">예금주</div>
|
[color]="'primary'"
|
||||||
<div class="hidden sm:block">연락처</div>
|
(click)="__createProduct()"
|
||||||
<div class="hidden sm:block">정산</div>
|
>
|
||||||
<div class="hidden sm:block">보유금</div>
|
<mat-icon [svgIcon]="'heroicons_outline:search'"></mat-icon>
|
||||||
<div class="hidden sm:block">게임중머니</div>
|
<span class="ml-2 mr-1">Search</span>
|
||||||
<div class="hidden sm:block">카지노->캐쉬</div>
|
</button>
|
||||||
<div class="hidden sm:block">금일콤프</div>
|
|
||||||
<div class="hidden sm:block">총입출</div>
|
|
||||||
<div class="hidden sm:block">로그</div>
|
|
||||||
<div class="hidden sm:block">상태</div>
|
|
||||||
<div class="hidden sm:block">회원수</div>
|
|
||||||
<div class="hidden sm:block">비고</div>
|
|
||||||
</div>
|
|
||||||
<!-- Rows -->
|
|
||||||
<ng-container *ngIf="couponMoneyLogs$ | async as couponMoneyLogs">
|
|
||||||
<ng-container
|
|
||||||
*ngFor="
|
|
||||||
let couponMoneyLog of couponMoneyLogs;
|
|
||||||
trackBy: __trackByFn
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
|
||||||
>
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<mat-checkbox></mat-checkbox>
|
|
||||||
</div>
|
|
||||||
<!-- rate -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button
|
|
||||||
mat-button
|
|
||||||
color="primary"
|
|
||||||
matTooltip="요율확인
|
|
||||||
카지노-바카라: 0%
|
|
||||||
카지노-룰렛: 0%
|
|
||||||
카지노-드레곤타이거: 0%
|
|
||||||
카지노-그외: 0%
|
|
||||||
슬롯: 0%
|
|
||||||
카지노루징: 0%
|
|
||||||
슬롯루징: 0%"
|
|
||||||
>
|
|
||||||
요율
|
|
||||||
</button>
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<!-- 관리 -->
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="관리">
|
|
||||||
<mat-option value="">보유금지급/회수</mat-option>
|
|
||||||
<mat-option value="">수수료설정</mat-option>
|
|
||||||
<mat-option value="">콤프지급/회수</mat-option>
|
|
||||||
<mat-option value="">쿠폰머니지급/회수</mat-option>
|
|
||||||
<mat-option value="">쪽지보내기</mat-option>
|
|
||||||
<mat-option value="">베팅리스트</mat-option>
|
|
||||||
<mat-option value="">강제로그아웃</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- 매장수 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ couponMoneyLog.branchCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ couponMoneyLog.divisionCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ couponMoneyLog.officeCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ couponMoneyLog.storeCount }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<!-- 회원수 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ couponMoneyLog.memberCount }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<!-- id -->
|
|
||||||
<ng-container *ngIf="users$ | async as users">
|
|
||||||
<ng-container
|
|
||||||
*ngFor="let user of users; trackBy: __trackByFn"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="hidden sm:block truncate"
|
|
||||||
(click)="viewUserDetail(user.id!)"
|
|
||||||
>
|
|
||||||
{{ couponMoneyLog.id }}
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</ng-container>
|
|
||||||
<!-- nickname -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.nickname }}
|
|
||||||
</div>
|
|
||||||
<!-- accountHolder -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.accountHolder }}
|
|
||||||
</div>
|
|
||||||
<!-- 연락처 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.phoneNumber }}
|
|
||||||
</div>
|
|
||||||
<!-- 정산 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.calculateType }}
|
|
||||||
</div>
|
|
||||||
<!-- 보유금 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
캐쉬{{ couponMoneyLog.ownCash }} 콤프{{
|
|
||||||
couponMoneyLog.ownComp
|
|
||||||
}}
|
|
||||||
쿠폰{{ couponMoneyLog.ownCoupon }}
|
|
||||||
</div>
|
|
||||||
<!-- gameMoney -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.gameMoney }}
|
|
||||||
</div>
|
|
||||||
<!-- casinoCash -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
게임머니확인
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
게임머니회수
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<!-- todayComp -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.todayComp }}P
|
|
||||||
</div>
|
|
||||||
<!-- 총입출 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
입금{{ couponMoneyLog.totalDeposit }} 출금{{
|
|
||||||
couponMoneyLog.totalWithdraw
|
|
||||||
}}
|
|
||||||
차익{{ couponMoneyLog.balance }}
|
|
||||||
</div>
|
|
||||||
<!-- log -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
가입{{ couponMoneyLog.registDate }} 최종{{
|
|
||||||
couponMoneyLog.finalSigninDate
|
|
||||||
}}
|
|
||||||
IP{{ couponMoneyLog.ip }}
|
|
||||||
</div>
|
|
||||||
<!-- state -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.state }}
|
|
||||||
</div>
|
|
||||||
<!-- 회원수 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ couponMoneyLog.memberCount }}
|
|
||||||
</div>
|
|
||||||
<!-- 비고 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ couponMoneyLog.note }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<mat-paginator
|
|
||||||
class="sm:absolute sm:inset-x-0 sm:bottom-0 border-b sm:border-t sm:border-b-0 z-10 bg-gray-50 dark:bg-transparent"
|
|
||||||
[ngClass]="{ 'pointer-events-none': isLoading }"
|
|
||||||
[length]="pagination?.length"
|
|
||||||
[pageIndex]="pagination?.page"
|
|
||||||
[pageSize]="pagination?.size"
|
|
||||||
[pageSizeOptions]="[5, 10, 25, 100]"
|
|
||||||
[showFirstLastButtons]="true"
|
|
||||||
></mat-paginator>
|
|
||||||
</ng-container>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<ng-template #noCouponMoneyLog>
|
|
||||||
<div
|
|
||||||
class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center"
|
|
||||||
>
|
|
||||||
There are no coupon money logs!
|
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</div>
|
||||||
|
|
||||||
|
<!-- Main -->
|
||||||
|
<div class="flex flex-auto overflow-hidden">
|
||||||
|
<!-- Products list -->
|
||||||
|
<div
|
||||||
|
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
|
||||||
|
>
|
||||||
|
<ng-container *ngIf="couponMoneyLogs$ | async as couponMoneyLogs">
|
||||||
|
<ng-container
|
||||||
|
*ngIf="couponMoneyLogs.length > 0; else noCouponMoneyLog"
|
||||||
|
>
|
||||||
|
<div class="grid">
|
||||||
|
<!-- Header -->
|
||||||
|
<div
|
||||||
|
class="inventory-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5"
|
||||||
|
>
|
||||||
|
<div>번호</div>
|
||||||
|
<div>비고</div>
|
||||||
|
<div>정보</div>
|
||||||
|
<div class="hidden sm:block">아이디</div>
|
||||||
|
<div class="hidden md:block">이전금액</div>
|
||||||
|
<div class="hidden md:block">변동금액</div>
|
||||||
|
<div class="hidden md:block">이후금액</div>
|
||||||
|
<div class="hidden lg:block">내용</div>
|
||||||
|
<div class="hidden lg:block">등록시간</div>
|
||||||
|
</div>
|
||||||
|
<!-- Rows -->
|
||||||
|
<ng-container
|
||||||
|
*ngIf="couponMoneyLogs$ | async as couponMoneyLogs"
|
||||||
|
>
|
||||||
|
<ng-container
|
||||||
|
*ngFor="
|
||||||
|
let couponMoneyLog of couponMoneyLogs;
|
||||||
|
trackBy: __trackByFn
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
||||||
|
>
|
||||||
|
<div>{{ couponMoneyLog.idx }}</div>
|
||||||
|
<div>
|
||||||
|
{{ couponMoneyLog.giveCouponRank
|
||||||
|
}}<mat-icon svgIcon="play-outline"></mat-icon
|
||||||
|
>{{ couponMoneyLog.takeCouponRank }}지급
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{{ couponMoneyLog.giveCouponRank
|
||||||
|
}}{{ couponMoneyLog.giveCouponId }}
|
||||||
|
<mat-icon svgIcon="play-outline"></mat-icon>
|
||||||
|
{{ couponMoneyLog.takeCouponRank
|
||||||
|
}}{{ couponMoneyLog.takeCouponId }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden sm:block">
|
||||||
|
{{ couponMoneyLog.takeCouponRank
|
||||||
|
}}{{ couponMoneyLog.takeCouponId }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ couponMoneyLog.giveCouponRank
|
||||||
|
}}{{ couponMoneyLog.giveCouponId }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden md:block">
|
||||||
|
{{ couponMoneyLog.takeCouponBeforeMoney }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ couponMoneyLog.giveCouponBeforeMoney }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden md:block">
|
||||||
|
{{ couponMoneyLog.takeCouponVarianceMoney }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ couponMoneyLog.giveCouponVarianceMoney }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden md:block">
|
||||||
|
{{ couponMoneyLog.takeCouponAfterMoney }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ couponMoneyLog.giveCouponAfterMoney }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden lg:block">
|
||||||
|
{{ couponMoneyLog.couponContents }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden lg:block">
|
||||||
|
{{ couponMoneyLog.takeCouponRegistrationDate }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ couponMoneyLog.giveCouponRegistrationDate }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<mat-paginator
|
||||||
|
class="sm:absolute sm:inset-x-0 sm:bottom-0 border-b sm:border-t sm:border-b-0 z-10 bg-gray-50 dark:bg-transparent"
|
||||||
|
[ngClass]="{ 'pointer-events-none': isLoading }"
|
||||||
|
[length]="pagination?.length"
|
||||||
|
[pageIndex]="pagination?.page"
|
||||||
|
[pageSize]="pagination?.size"
|
||||||
|
[pageSizeOptions]="[5, 10, 25, 100]"
|
||||||
|
[showFirstLastButtons]="true"
|
||||||
|
></mat-paginator>
|
||||||
|
</ng-container>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-template #noCouponMoneyLog>
|
||||||
|
<div
|
||||||
|
class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center"
|
||||||
|
>
|
||||||
|
There are no coupon money log!
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -42,18 +42,22 @@ import { Router } from '@angular/router';
|
||||||
/* language=SCSS */
|
/* language=SCSS */
|
||||||
`
|
`
|
||||||
.inventory-grid {
|
.inventory-grid {
|
||||||
grid-template-columns: 60px auto 40px;
|
/* 번호 비고 정보 아이디 이전 */
|
||||||
|
grid-template-columns: 20px 140px 140px auto 140px;
|
||||||
|
|
||||||
@screen sm {
|
@screen sm {
|
||||||
grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
|
/* 번호 비고 정보 아이디 이전 변동 */
|
||||||
|
grid-template-columns: 20px 140px 140px auto 140px 40px 140px 140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@screen md {
|
@screen md {
|
||||||
grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
|
/* 번호 비고 정보 아이디 이전 변동 이후 */
|
||||||
|
grid-template-columns: 20px 140px 140px auto 140px 40px 140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@screen lg {
|
@screen lg {
|
||||||
grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
|
/* 번호 비고 정보 아이디 이전 변동 이후 내용 등록시간 */
|
||||||
|
grid-template-columns: 20px 140px 140px auto 140px 140px 140px 140px 140px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
@ -69,6 +73,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
couponMoneyLogs$!: Observable<CouponMoneyLog[] | undefined>;
|
couponMoneyLogs$!: Observable<CouponMoneyLog[] | undefined>;
|
||||||
users$!: Observable<User[] | undefined>;
|
users$!: Observable<User[] | undefined>;
|
||||||
|
|
||||||
|
__isSearchOpened = false;
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
searchInputControl = new FormControl();
|
searchInputControl = new FormControl();
|
||||||
selectedCouponMoneyLog?: CouponMoneyLog;
|
selectedCouponMoneyLog?: CouponMoneyLog;
|
||||||
|
@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
*/
|
*/
|
||||||
__toggleDetails(productId: string): void {}
|
__toggleDetails(productId: string): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* toggle the search
|
||||||
|
* Used in 'bar'
|
||||||
|
*/
|
||||||
|
__onClickSearch(): void {
|
||||||
|
this.__isSearchOpened = !this.__isSearchOpened;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Track by function for ngFor loops
|
* Track by function for ngFor loops
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,29 +1,40 @@
|
||||||
export interface CouponMoneyLog {
|
export interface CouponMoneyLog {
|
||||||
id?: string;
|
id: string;
|
||||||
totalPartnerCount?: number;
|
idx?: number;
|
||||||
totalHoldingMoney?: number;
|
giveCouponId?: string; // 쿠폰지급 해준 아이디
|
||||||
totalComp?: number;
|
giveCouponRank?: string; // 쿠폰지급 해준 등급
|
||||||
total?: number;
|
takeCouponId?: string; // 쿠폰지급 받은 아이디
|
||||||
branchCount?: number;
|
takeCouponRank?: string; // 쿠폰지급 받은 등급
|
||||||
divisionCount?: number;
|
useCouponId?: string; // 쿠폰사용 아이디
|
||||||
officeCount?: number;
|
useCouponRank?: string; // 쿠폰사용 등급
|
||||||
storeCount?: number;
|
retrieveCouponId?: string; // 쿠폰 회수 아이디
|
||||||
memberCount?: number;
|
retrieveCouponRank?: string; // 쿠폰 회수 등급
|
||||||
nickname?: string;
|
|
||||||
accountHolder?: string;
|
giveCouponBeforeMoney?: number; // 지급자의 이전금액
|
||||||
phoneNumber?: string;
|
giveCouponVarianceMoney?: number; // 지급자의 변동금액
|
||||||
calculateType?: string;
|
giveCouponAfterMoney?: number; // 지급자의 이후금액
|
||||||
ownCash?: number;
|
|
||||||
ownComp?: number;
|
takeCouponBeforeMoney?: number; // 받은자의 이전금액
|
||||||
ownCoupon?: number;
|
takeCouponVarianceMoney?: number; // 받은자의 변동금액
|
||||||
gameMoney?: number;
|
takeCouponAfterMoney?: number; // 받은자의 이후금액
|
||||||
todayComp?: number;
|
|
||||||
totalDeposit?: number;
|
useCouponBeforeMoney?: number; // 쿠폰사용자의 이전금액
|
||||||
totalWithdraw?: number;
|
useCouponVarianceMoney?: number; // 쿠폰사용자의 변동금액
|
||||||
balance?: number;
|
useCouponAfterMoney?: number; // 쿠폰사용자의 이후금액
|
||||||
registDate?: string;
|
|
||||||
finalSigninDate?: string;
|
retrieveCouponBeforeMoney?: number; // 쿠폰회수자의 이전금액
|
||||||
ip?: string;
|
retrieveCouponVarianceMoney?: number; // 쿠폰회수자의 변동금액
|
||||||
state?: string;
|
retrieveCouponAfterMoney?: number; // 쿠폰회수자의 이후금액
|
||||||
note?: string;
|
|
||||||
|
couponContents?: string; // 내용
|
||||||
|
giveCouponRegistrationDate?: Date; // 지급자의 등록시간
|
||||||
|
takeCouponRegistrationDate?: Date; // 받은자의 등록시간
|
||||||
|
useCouponRegistrationDate?: Date; // 쿠폰사용자의 등록시간
|
||||||
|
retrieveCouponRegistrationDate?: Date; // 쿠폰회수자의 등록시간
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// give - take
|
||||||
|
// 쿠폰지급 - 쿠폰지급 받음
|
||||||
|
|
||||||
|
// use - retrieve
|
||||||
|
// 쿠폰사용 - 쿠폰회수
|
||||||
|
|
Loading…
Reference in New Issue
Block a user