출금관리 수정
This commit is contained in:
parent
2006ef8f61
commit
71e4f7cff3
|
@ -33,7 +33,7 @@ export class BankWithdrawMockApi {
|
|||
.reply(({ request }) => {
|
||||
// Get available queries
|
||||
const search = request.params.get('search');
|
||||
const sort = request.params.get('sort') || 'name';
|
||||
const sort = request.params.get('sort') || 'signinId';
|
||||
const order = request.params.get('order') || 'asc';
|
||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||
|
@ -42,7 +42,7 @@ export class BankWithdrawMockApi {
|
|||
let withdraws: any[] | null = cloneDeep(this._withdraws);
|
||||
|
||||
// Sort the withdraws
|
||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
||||
if (sort === 'signinId' || sort === 'nickname' || sort === 'state') {
|
||||
withdraws.sort((a, b) => {
|
||||
const fieldA = a[sort].toString().toUpperCase();
|
||||
const fieldB = b[sort].toString().toUpperCase();
|
||||
|
|
|
@ -5,7 +5,7 @@ export const withdraws = [
|
|||
rank: '회원',
|
||||
id: 'aa100',
|
||||
nickname: 'aa100',
|
||||
exchangeApplication: 14000000,
|
||||
applicationForCurrencyExchange: 14000000,
|
||||
calculateType: '롤링',
|
||||
accountHolder: '광주은행121212121212sss',
|
||||
note: '@',
|
||||
|
@ -21,7 +21,7 @@ export const withdraws = [
|
|||
rank: '회원',
|
||||
id: 'aa100',
|
||||
nickname: 'aa100',
|
||||
exchangeApplication: 5000000,
|
||||
applicationForCurrencyExchange: 5000000,
|
||||
calculateType: '롤링',
|
||||
accountHolder: '광주은행121212121212sss',
|
||||
note: '@',
|
||||
|
@ -37,7 +37,7 @@ export const withdraws = [
|
|||
rank: '회원',
|
||||
id: 'qwer12',
|
||||
nickname: '하하하',
|
||||
exchangeApplication: 10000,
|
||||
applicationForCurrencyExchange: 10000,
|
||||
calculateType: '롤링',
|
||||
accountHolder: '하나은행000210654151테스트',
|
||||
note: '',
|
||||
|
|
|
@ -10,16 +10,39 @@
|
|||
<mat-progress-bar [mode]="'indeterminate'"></mat-progress-bar>
|
||||
</div>
|
||||
<!-- Title -->
|
||||
<div class="text-4xl font-extrabold tracking-tight">Withdraw</div>
|
||||
<div class="text-4xl font-extrabold tracking-tight">출금관리</div>
|
||||
<!-- Actions -->
|
||||
<div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4">
|
||||
<!-- Search -->
|
||||
|
||||
<button mat-icon-button (click)="__onClickSearch()">
|
||||
<mat-icon [svgIcon]="'heroicons_outline:search'"></mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Memo -->
|
||||
<mat-form-field>
|
||||
<input matInput type="text" />
|
||||
<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"
|
||||
>
|
||||
<mat-form-field
|
||||
class="bet-mat-form-field-wrapper-mb-0 mr-2"
|
||||
style="width: 100%"
|
||||
>
|
||||
<textarea matInput cdkTextareaAutosize cdkAutosizeMinRows="2"></textarea>
|
||||
</mat-form-field>
|
||||
<button mat-flat-button [color]="'primary'">메모저장</button>
|
||||
</div>
|
||||
|
||||
<!-- Search -->
|
||||
<div
|
||||
*ngIf="__isSearchOpened"
|
||||
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"
|
||||
>
|
||||
<!-- Actions -->
|
||||
<div fxLayout="row wrap" class="items-center mt-6 sm:mt-0 sm:ml-0">
|
||||
<!-- SelectBox -->
|
||||
<mat-form-field>
|
||||
<mat-form-field fxFlex class="bet-mat-form-field-wrapper-mb-0 mr-2">
|
||||
<mat-select placeholder="내용">
|
||||
<mat-option value="">카지노콤프</mat-option>
|
||||
<mat-option value="">슬롯콤프</mat-option>
|
||||
|
@ -27,8 +50,9 @@
|
|||
<mat-option value="">첫충콤프</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field>
|
||||
<mat-select placeholder="아이디">
|
||||
<mat-form-field fxFlex class="bet-mat-form-field-wrapper-mb-0 mr-2">
|
||||
<mat-select placeholder="전체">
|
||||
<mat-option value="">전체</mat-option>
|
||||
<mat-option value="">아이디</mat-option>
|
||||
<mat-option value="">닉네임</mat-option>
|
||||
<mat-option value="">입금자이름</mat-option>
|
||||
|
@ -37,7 +61,8 @@
|
|||
</mat-form-field>
|
||||
<!-- Search -->
|
||||
<mat-form-field
|
||||
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded min-w-64"
|
||||
fxFlex
|
||||
class="fuse-mat-rounded min-w-64 bet-mat-form-field-wrapper-mb-0 mr-2"
|
||||
>
|
||||
<mat-icon
|
||||
class="icon-size-5"
|
||||
|
@ -48,29 +73,39 @@
|
|||
matInput
|
||||
[formControl]="searchInputControl"
|
||||
[autocomplete]="'off'"
|
||||
[placeholder]="'Search'"
|
||||
[placeholder]="'Search user'"
|
||||
/>
|
||||
</mat-form-field>
|
||||
<!-- Search button -->
|
||||
<!-- Add user button -->
|
||||
<button
|
||||
class="ml-4"
|
||||
fxFlex
|
||||
mat-flat-button
|
||||
style="position: fixed; margin-top: 4px"
|
||||
[color]="'primary'"
|
||||
(click)="__createProduct()"
|
||||
>
|
||||
<!-- <mat-icon [svgIcon]="'heroicons_outline:plus'"></mat-icon> -->
|
||||
<span class="ml-2 mr-1">검색하기</span>
|
||||
<mat-icon [svgIcon]="'heroicons_outline:search'"></mat-icon>
|
||||
<span class="ml-2 mr-1">Search</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hidden md:block">
|
||||
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
|
||||
환전처리
|
||||
</button>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
|
||||
대기처리
|
||||
</button>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<button mat-flat-button class="bet-mat-small-8" [color]="'warn'">
|
||||
환전취소
|
||||
</button>
|
||||
</div>
|
||||
<!-- Main -->
|
||||
<div class="flex flex-auto overflow-hidden">
|
||||
<div class="hidden sm:block truncate">
|
||||
<button mat-flat-button [color]="'primary'">환전 처리</button>
|
||||
<button mat-flat-button [color]="'primary'">대기 처리</button>
|
||||
<button mat-flat-button [color]="'primary'">환전 취소</button>
|
||||
</div>
|
||||
<!-- Products list -->
|
||||
<div
|
||||
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
|
||||
|
@ -81,35 +116,36 @@
|
|||
<!-- 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"
|
||||
matSort
|
||||
matSortDisableClear
|
||||
>
|
||||
<div></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 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 class="hidden sm:block">배팅정보</div>
|
||||
<div class="hidden sm:block">삭제</div>
|
||||
<!-- <div class="hidden md:block" [mat-sort-header]="'sku'">SKU</div>
|
||||
<div [mat-sort-header]="'name'">Name</div>
|
||||
<div class="hidden sm:block" [mat-sort-header]="'price'">
|
||||
Price
|
||||
<div>
|
||||
<mat-checkbox></mat-checkbox>
|
||||
</div>
|
||||
<div class="hidden lg:block" [mat-sort-header]="'stock'">
|
||||
Stock
|
||||
<div>상부</div>
|
||||
<div>
|
||||
아이디
|
||||
<hr style="margin: 7px 0px" />
|
||||
닉네임
|
||||
<hr style="margin: 7px 0px" />
|
||||
상태
|
||||
</div>
|
||||
<div class="hidden lg:block" [mat-sort-header]="'active'">
|
||||
Active
|
||||
<div>
|
||||
등급
|
||||
<hr style="margin: 7px 0px" />
|
||||
레벨
|
||||
</div>
|
||||
<div class="hidden sm:block">Details</div> -->
|
||||
<div class="hidden sm:block">예금주</div>
|
||||
<div>정산종류</div>
|
||||
<div>비고</div>
|
||||
<div>환전신청금액</div>
|
||||
<div class="hidden md:block">
|
||||
등록날짜
|
||||
<hr style="margin: 7px 0px" />
|
||||
처리날짜
|
||||
</div>
|
||||
<div class="hidden md:block">입금출금</div>
|
||||
<div class="hidden lg:block">회원정보</div>
|
||||
<div class="hidden lg:block">배팅정보</div>
|
||||
<div class="hidden lg:block">삭제</div>
|
||||
</div>
|
||||
<!-- Rows -->
|
||||
<ng-container *ngIf="withdraws$ | async as withdraws">
|
||||
|
@ -119,185 +155,67 @@
|
|||
<div
|
||||
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
||||
>
|
||||
<!-- rank -->
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.rank }}
|
||||
<div>
|
||||
<mat-checkbox></mat-checkbox>
|
||||
</div>
|
||||
|
||||
<!-- id -->
|
||||
<ng-container *ngIf="users$ | async as users">
|
||||
<ng-container
|
||||
*ngFor="let user of users; trackBy: __trackByFn"
|
||||
>
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.id }}
|
||||
</div>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
||||
<!-- nickname -->
|
||||
<div class="hidden sm:block truncate">
|
||||
<div>{{ withdraw.highRank }}</div>
|
||||
<div>
|
||||
{{ withdraw.signinId }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
{{ withdraw.nickname }}
|
||||
</div>
|
||||
|
||||
<!-- calculateType -->
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.calculateType }}
|
||||
</div>
|
||||
|
||||
<!-- accountHolder -->
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.accountHolder }}
|
||||
</div>
|
||||
|
||||
<!-- note -->
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.note }}
|
||||
</div>
|
||||
|
||||
<!-- registrationDate -->
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.registrationDate }}
|
||||
</div>
|
||||
|
||||
<!-- processDate -->
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.processDate }}
|
||||
</div>
|
||||
|
||||
<!-- depositWithdrawal -->
|
||||
<div class="hidden sm:block truncate">
|
||||
{{ withdraw.deposit }}원 {{ withdraw.withdraw }}원
|
||||
{{ withdraw.total }}원
|
||||
</div>
|
||||
|
||||
<!-- casinoCash -->
|
||||
<div class="hidden sm:block truncate">
|
||||
<button mat-flat-button [color]="'primary'">
|
||||
게임머니확인
|
||||
</button>
|
||||
<button mat-flat-button [color]="'primary'">
|
||||
게임머니회수
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- highRank -->
|
||||
<div class="hidden sm:block truncate">
|
||||
<button mat-flat-button [color]="'primary'">
|
||||
{{ withdraw.highRank }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- state -->
|
||||
<div class="hidden sm:block truncate">
|
||||
<hr style="margin: 7px 0px" />
|
||||
{{ withdraw.state }}
|
||||
</div>
|
||||
|
||||
<!-- bettingInformation -->
|
||||
<div class="hidden sm:block truncate">
|
||||
<button mat-flat-button [color]="'primary'">
|
||||
배팅리스트
|
||||
</button>
|
||||
<div>
|
||||
{{ withdraw.rank }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
LV{{ withdraw.level }}
|
||||
</div>
|
||||
|
||||
<!-- delete -->
|
||||
<div class="hidden sm:block truncate">
|
||||
<button mat-flat-button [color]="'primary'">취소</button>
|
||||
<div class="hidden sm:block">
|
||||
{{ withdraw.accountHolder }}
|
||||
</div>
|
||||
<!-- Image -->
|
||||
<!-- <div class="flex items-center">
|
||||
<div
|
||||
class="relative flex flex-0 items-center justify-center w-12 h-12 mr-6 rounded overflow-hidden border"
|
||||
>
|
||||
<img
|
||||
class="w-8"
|
||||
*ngIf="user.thumbnail"
|
||||
[alt]="'Product thumbnail image'"
|
||||
[src]="user.thumbnail"
|
||||
/>
|
||||
<div
|
||||
class="flex items-center justify-center w-full h-full text-xs font-semibold leading-none text-center uppercase"
|
||||
*ngIf="!user.thumbnail"
|
||||
>
|
||||
NO THUMB
|
||||
<div>{{ withdraw.calculateType }}</div>
|
||||
<div>{{ withdraw.note }}</div>
|
||||
<div>{{ withdraw.applicationForCurrencyExchange }}</div>
|
||||
<div class="hidden md:block">
|
||||
{{ withdraw.registrationDate }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
{{ withdraw.processDate }}
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
입금{{ withdraw.deposit }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
출금{{ withdraw.withdraw }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
계{{ withdraw.total }}
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- SKU -->
|
||||
<!-- <div class="hidden md:block truncate">
|
||||
{{ user.sku }}
|
||||
</div> -->
|
||||
|
||||
<!-- Name -->
|
||||
<!-- <div class="truncate">
|
||||
{{ user.name }}
|
||||
</div> -->
|
||||
|
||||
<!-- Price -->
|
||||
<!-- <div class="hidden sm:block">
|
||||
{{ user.price | currency: "USD":"symbol":"1.2-2" }}
|
||||
</div> -->
|
||||
|
||||
<!-- Stock -->
|
||||
<!-- <div class="hidden lg:flex items-center">
|
||||
<div class="min-w-4">{{ user.stock }}</div> -->
|
||||
<!-- Low stock -->
|
||||
<!-- <div
|
||||
class="flex items-end ml-2 w-1 h-4 bg-red-200 rounded overflow-hidden"
|
||||
*ngIf="user.stock < 20"
|
||||
>
|
||||
<div class="flex w-full h-1/3 bg-red-600"></div>
|
||||
</div> -->
|
||||
<!-- Medium stock -->
|
||||
<!-- <div
|
||||
class="flex items-end ml-2 w-1 h-4 bg-orange-200 rounded overflow-hidden"
|
||||
*ngIf="user.stock >= 20 && user.stock < 30"
|
||||
>
|
||||
<div class="flex w-full h-2/4 bg-orange-400"></div>
|
||||
</div> -->
|
||||
<!-- High stock -->
|
||||
<!-- <div
|
||||
class="flex items-end ml-2 w-1 h-4 bg-green-100 rounded overflow-hidden"
|
||||
*ngIf="user.stock >= 30"
|
||||
>
|
||||
<div class="flex w-full h-full bg-green-400"></div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- Active -->
|
||||
<!-- <div class="hidden lg:block">
|
||||
<ng-container *ngIf="user.active">
|
||||
<mat-icon
|
||||
class="text-green-400 icon-size-5"
|
||||
[svgIcon]="'heroicons_solid:check'"
|
||||
></mat-icon>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="!user.active">
|
||||
<mat-icon
|
||||
class="text-gray-400 icon-size-5"
|
||||
[svgIcon]="'heroicons_solid:x'"
|
||||
></mat-icon>
|
||||
</ng-container>
|
||||
</div> -->
|
||||
|
||||
<!-- Details button -->
|
||||
<!-- <div>
|
||||
<div class="hidden lg:block">
|
||||
<button
|
||||
class="min-w-10 min-h-7 h-7 px-2 leading-6"
|
||||
mat-stroked-button
|
||||
(click)="__toggleDetails(user.id)"
|
||||
mat-flat-button
|
||||
class="bet-mat-small-8"
|
||||
[color]="'primary'"
|
||||
>
|
||||
<mat-icon
|
||||
class="icon-size-5"
|
||||
[svgIcon]="
|
||||
selectedUser?.id === user.id
|
||||
? 'heroicons_solid:chevron-up'
|
||||
: 'heroicons_solid:chevron-down'
|
||||
"
|
||||
></mat-icon>
|
||||
회원정보
|
||||
</button>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="hidden lg:block">
|
||||
<button
|
||||
mat-flat-button
|
||||
class="bet-mat-small-8"
|
||||
[color]="'primary'"
|
||||
>
|
||||
배팅정보
|
||||
</button>
|
||||
</div>
|
||||
<div class="hidden lg:block">
|
||||
<button
|
||||
mat-flat-button
|
||||
class="bet-mat-small-8"
|
||||
[color]="'primary'"
|
||||
>
|
||||
취소
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
@ -323,10 +241,20 @@
|
|||
</div>
|
||||
</ng-template>
|
||||
</div>
|
||||
<div class="hidden sm:block truncate">
|
||||
<button mat-flat-button [color]="'primary'">환전 처리</button>
|
||||
<button mat-flat-button [color]="'primary'">대기 처리</button>
|
||||
<button mat-flat-button [color]="'primary'">환전 취소</button>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
|
||||
환전처리
|
||||
</button>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
|
||||
대기처리
|
||||
</button>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<button mat-flat-button class="bet-mat-small-8" [color]="'warn'">
|
||||
환전취소
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -68,6 +68,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
withdraws$!: Observable<Withdraw[] | undefined>;
|
||||
users$!: Observable<User[] | undefined>;
|
||||
|
||||
__isSearchOpened = false;
|
||||
isLoading = false;
|
||||
searchInputControl = new FormControl();
|
||||
selectedWithdraw?: Withdraw;
|
||||
|
@ -180,6 +181,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
|
||||
*
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
export interface Withdraw {
|
||||
id: string;
|
||||
signinId?: string;
|
||||
rank?: string;
|
||||
id?: string;
|
||||
level?: string;
|
||||
nickname?: string;
|
||||
exchangeApplication?: number;
|
||||
applicationForCurrencyExchange?: number; // 환전신청금액
|
||||
calculateType?: string;
|
||||
accountHolder?: string;
|
||||
note?: string;
|
||||
|
|
|
@ -11,6 +11,7 @@ import { MatRippleModule } from '@angular/material/core';
|
|||
import { MatSortModule } from '@angular/material/sort';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
|
||||
import { TranslocoModule } from '@ngneat/transloco';
|
||||
|
||||
|
@ -37,6 +38,7 @@ import { withdrawRoutes } from './withdraw.routing';
|
|||
MatSortModule,
|
||||
MatSelectModule,
|
||||
MatTooltipModule,
|
||||
MatCheckboxModule,
|
||||
],
|
||||
})
|
||||
export class WithdrawModule {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user