Compare commits

...

100 Commits

Author SHA1 Message Date
abb15cb2c7 Merge pull request 'feat(calculate): 라이브 환불 기능 API 연동 및 UI 수정' (#95) from test into main
Reviewed-on: #95
2026-03-16 07:27:32 +00:00
Yu Sung
97b832fd2e feat(calculate): 라이브 환불 기능 API 연동 및 UI 수정
- refundLive API 요청 파라미터를 canUsage에서 canUsageStr로 변경
- CalculateLive 화면의 환불 함수에서 canUsageStr을 전달하도록 수정
- API URL(/admin/calculate/live/refund) 및 필드 요구사항 반영
2026-03-16 15:49:28 +09:00
b26837f258 Merge pull request 'feat(chat): 시스템 프롬프트 글자수 표시 및 2000자 제한 추가' (#94) from test into main
Reviewed-on: #94
2026-03-16 02:16:13 +00:00
Yu Sung
b21d0f455f feat(chat): 시스템 프롬프트 글자수 표시 및 2000자 제한 추가 2026-03-16 11:12:38 +09:00
f42602886e Merge pull request 'test' (#93) from test into main
Reviewed-on: #93
2026-03-05 09:26:14 +00:00
Yu Sung
0e4b38ce3e feat(charge-refund): 캔 환불 프로세스 추가 2026-03-05 18:13:41 +09:00
Yu Sung
60ee25564b feat(member-block): 계정 및 본인인증 정보 차단 기능 추가 완료 2026-03-05 15:53:14 +09:00
Yu Sung
3dff71046d feat(calculate): 정산 관련 API 및 화면 페이징 처리 추가 2026-03-05 14:23:51 +09:00
Yu Sung
c9f49a208a feat(calculate): 정산 페이지 엑셀 다운로드 방식 수정
- vue-excel-xlsx 사용방식에서 API 호출 방식으로 변경
2026-03-05 13:50:35 +09:00
b8373829f0 Merge pull request 'feat(calculate): 크리에이터별 채널 후원 정산 페이지 개발 및 관련 API 수정' (#92) from test into main
Reviewed-on: #92
2026-03-03 05:57:30 +00:00
2769c3c9f0 Merge pull request '채널 후원 정산 페이지 추가' (#91) from test into main
Reviewed-on: #91
2026-02-26 11:28:32 +00:00
648d4d3a97 Merge pull request 'fix(content): 오디오 콘텐츠 삭제 시 FormData 형식으로 요청하도록 수정' (#90) from test into main
Reviewed-on: #90
2026-02-13 09:42:24 +00:00
4baf253b7e Merge pull request '회원 통계 페이지에 애플 가입 수 추가' (#89) from test into main
Reviewed-on: #89
2026-02-08 07:52:06 +00:00
e0c63df2a6 Merge pull request '콘텐츠 수정 - 커버 이미지 수정 기능 추가' (#88) from test into main
Reviewed-on: #88
2026-02-06 05:13:01 +00:00
892923becc Merge pull request 'test' (#87) from test into main
Reviewed-on: #87
2026-02-04 14:00:37 +00:00
d3ea703204 Merge pull request '캔 환율관리 - 페이징 없이 모든 데이터 표시되도록 수정' (#86) from test into main
Reviewed-on: #86
2026-01-13 05:11:30 +00:00
70298b8f8f Merge pull request 'feat(admin-series): 시리즈 리스트에 연재요일 표시' (#85) from test into main
Reviewed-on: #85
2025-11-14 08:21:07 +00:00
9fa9f3e699 Merge pull request 'test' (#84) from test into main
Reviewed-on: #84
2025-11-13 20:18:27 +00:00
d82531583c Merge pull request 'fix(admin-series): 시리즈 수정 기능 추가' (#83) from test into main
Reviewed-on: #83
2025-11-13 19:51:42 +00:00
6240a285c2 Merge pull request 'fix(admin-can): 닉네임 검색 시 선택 칩이 사라지는 문제 수정' (#82) from test into main
Reviewed-on: #82
2025-11-10 08:05:25 +00:00
f577ab575e Merge pull request 'feat(admin-can): 캔 지급 화면에 닉네임 검색·다중 회원번호 입력 및 다중 지급 지원' (#81) from test into main
Reviewed-on: #81
2025-11-10 07:08:25 +00:00
0c3e3fc3fd Merge pull request 'feat(admin-can-status): 화폐단위 추가, 충전금액에 NumberFormat style: currency 적용하여 화폐단위 표시' (#80) from test into main
Reviewed-on: #80
2025-10-10 21:00:42 +00:00
6886c372aa Merge pull request 'feat(can): 소수점이 잘못 표기되던 버그 수정' (#79) from test into main
Reviewed-on: #79
2025-10-10 08:58:35 +00:00
8dd3dcb770 Merge pull request 'test' (#78) from test into main
Reviewed-on: #78
2025-10-10 08:25:15 +00:00
1a435b6074 Merge pull request 'test' (#77) from test into main
Reviewed-on: #77
2025-09-18 19:42:41 +00:00
492859dae3 Merge pull request 'test' (#76) from test into main
Reviewed-on: #76
2025-09-16 06:16:32 +00:00
18b59b5598 Merge pull request 'test' (#75) from test into main
Reviewed-on: #75
2025-09-14 09:04:57 +00:00
5fcdd7f06d Merge pull request '캐릭터 챗봇' (#74) from test into main
Reviewed-on: #74
2025-09-10 06:26:02 +00:00
1e149f7e41 Merge pull request '쿠폰생성 - 쿠폰타입(포인트, 캔) 선택 추가' (#73) from test into main
Reviewed-on: #73
2025-06-10 11:01:52 +00:00
aca3767a24 Merge pull request 'test' (#72) from test into main
Reviewed-on: #72
2025-05-20 07:21:28 +00:00
d51655f15e Merge pull request '포인트 정책 등록/수정 페이지 추가' (#71) from test into main
Reviewed-on: #71
2025-04-24 03:28:52 +00:00
47dd32939f Merge pull request '일별 전체 회원 수 - 이메일, 구글, 카카오 회원 수 추가' (#70) from test into main
Reviewed-on: #70
2025-04-10 02:35:33 +00:00
2e1891ab08 Merge pull request '회원리스트 - 로그인 타입 필드 추가' (#69) from test into main
Reviewed-on: #69
2025-04-09 10:44:30 +00:00
99d70cc8f7 Merge pull request '이벤트 배너 수정 - 링크 지우기 추가' (#68) from test into main
Reviewed-on: #68
2025-04-07 14:48:10 +00:00
9f1675e82d Merge pull request '광고통계 - 로그인 수를 가장 오른쪽으로 이동' (#67) from test into main
Reviewed-on: #67
2025-04-02 02:11:35 +00:00
c2838be2ed Merge pull request '일별 전체 회원 수 통계' (#66) from test into main
Reviewed-on: #66
2025-03-31 03:54:56 +00:00
b5c2941c0d Merge pull request '앱 실행 수 추가' (#65) from test into main
Reviewed-on: #65
2025-03-28 05:58:43 +00:00
d5c01d8d23 Merge pull request '광고통계 - 빠른검색 (날짜 지정) 추가' (#64) from test into main
Reviewed-on: #64
2025-03-17 04:58:02 +00:00
7118b0649a Merge pull request '비밀번호 재설정 기능 추가' (#63) from test into main
Reviewed-on: #63
2025-03-17 03:09:41 +00:00
8f5346581e Merge pull request '일별 전체 회원 수 페이지 추가' (#62) from test into main
Reviewed-on: #62
2025-03-14 16:08:06 +00:00
e43f2e30be Merge pull request '충전 이벤트, 이벤트 배너 - 기간 설정에 시간 추가' (#61) from test into main
Reviewed-on: #61
2025-03-14 03:34:42 +00:00
397fd267e0 Merge pull request 'test' (#60) from test into main
Reviewed-on: #60
2025-03-11 08:07:48 +00:00
fe4b88350b Merge pull request '광고 통계 페이지' (#59) from test into main
Reviewed-on: #59
2025-03-05 13:53:32 +00:00
537474e162 Merge pull request '마케팅 - 매체 파트너 코드 페이지 추가' (#58) from test into main
Reviewed-on: #58
2025-03-05 09:54:31 +00:00
b5abdf3cf5 Merge pull request 'test' (#57) from test into main
Reviewed-on: #57
2025-02-18 15:12:52 +00:00
a2e457b5e8 Merge pull request 'test' (#56) from test into main
Reviewed-on: #56
2025-02-09 13:25:35 +00:00
05ddd417cd Merge pull request '콘텐츠 배너 등록/수정' (#54) from test into main
Reviewed-on: #54
2025-01-17 16:46:45 +00:00
e70426af68 Merge pull request 'test' (#53) from test into main
Reviewed-on: #53
2025-01-17 06:00:59 +00:00
81b33e1322 Merge pull request '오디션 지원 취소기능 적용' (#52) from test into main
Reviewed-on: #52
2025-01-08 06:34:54 +00:00
588fcfbe90 Merge pull request '오디션 지원자 연락처 표시' (#51) from test into main
Reviewed-on: #51
2025-01-07 20:10:23 +00:00
ff2c126382 Merge pull request '오디션 메뉴 추가' (#50) from test into main
Reviewed-on: #50
2025-01-07 17:20:32 +00:00
702daca29f Merge pull request '소다라이브 -> 보이스온' (#49) from test into main
Reviewed-on: #49
2024-11-21 12:59:05 +00:00
8e9008a3c1 Merge pull request '이벤트 기간 추가' (#48) from test into main
Reviewed-on: #48
2024-10-31 03:17:44 +00:00
5c0c00aad4 Merge pull request '크리에이터 리스트 - 프로필 이미지 다운로드 버튼 추가' (#47) from test into main
Reviewed-on: #47
2024-10-24 03:07:00 +00:00
e0949c6d73 Merge pull request 'test' (#46) from test into main
Reviewed-on: #46
2024-10-16 04:18:55 +00:00
0449bac8d5 Merge pull request '전체 개수 추가' (#45) from test into main
Reviewed-on: #45
2024-10-15 04:18:01 +00:00
d412c15c9d Merge pull request '시리즈 리스트 - 작품 개수 추가' (#44) from test into main
Reviewed-on: #44
2024-10-14 15:43:15 +00:00
ed16a6ddad Merge pull request '시리즈 리스트 페이지 추가' (#43) from test into main
Reviewed-on: #43
2024-10-14 10:14:19 +00:00
f06e2d41e0 Merge pull request '전체 크리에이터 수 추가' (#42) from test into main
Reviewed-on: #42
2024-09-26 11:38:53 +00:00
7505269db3 Merge pull request '크리에이터별 정산 - 페이징 추가' (#41) from test into main
Reviewed-on: #41
2024-08-01 05:16:04 +00:00
15eeb6943d Merge pull request '크리에이터 기준 라이브, 콘텐츠, 커뮤니티 합계 정산 페이지 추가' (#40) from test into main
Reviewed-on: #40
2024-07-08 14:41:28 +00:00
7e7ed46cea Merge pull request '크리에이터 기준 라이브, 콘텐츠, 커뮤니티 합계 정산 페이지 추가' (#39) from test into main
Reviewed-on: #39
2024-07-08 14:37:08 +00:00
fd01786649 Merge pull request 'test' (#38) from test into main
Reviewed-on: #38
2024-07-08 14:22:01 +00:00
c48c1c2f09 Merge pull request '크리에이터 정산비율 등록페이지 추가' (#37) from test into main
Reviewed-on: #37
2024-06-11 08:11:57 +00:00
9bcf3a3cdb Merge pull request '커뮤니티 정산' (#36) from test into main
Reviewed-on: #36
2024-06-06 14:59:58 +00:00
4c5b987d98 Merge pull request 'test' (#35) from test into main
Reviewed-on: #35
2024-06-03 22:24:23 +00:00
f168403048 Merge pull request '라이브 리스트 - 현재참여인원 추가' (#34) from test into main
Reviewed-on: #34
2024-05-28 18:16:18 +00:00
82ee1584e7 Merge pull request '커뮤니티 정산 페이지 추가' (#33) from test into main
Reviewed-on: #33
2024-05-28 16:13:16 +00:00
65cb918389 Merge pull request '시그니처 관리 - 재생 시간 등록/수정 기능 추가' (#32) from test into main
Reviewed-on: #32
2024-05-02 07:17:34 +00:00
784baf9a2f Merge pull request '시리즈 장르 - 등록/삭제 페이지 추가' (#31) from test into main
Reviewed-on: #31
2024-04-26 19:06:32 +00:00
7a85ac41cc Merge pull request '관리자 - 캔 충전현황' (#30) from test into main
Reviewed-on: #30
2024-04-01 11:34:15 +00:00
9d4c9437cf Merge pull request '관리자 - 캔 충전현황' (#29) from test into main
Reviewed-on: #29
2024-04-01 11:27:14 +00:00
68845aeae1 Merge pull request '콘텐츠 리스트 한정판 표시' (#28) from test into main
Reviewed-on: #28
2024-03-29 05:00:01 +00:00
bbdca29337 Merge pull request '콘텐츠 리스트' (#27) from test into main
Reviewed-on: #27
2024-03-28 06:43:25 +00:00
c14c041daa Merge pull request 'test' (#26) from test into main
Reviewed-on: #26
2024-03-19 07:50:16 +00:00
a515a144eb Merge pull request 'test' (#25) from test into main
Reviewed-on: #25
2024-03-13 11:42:23 +00:00
54a6773905 Merge pull request 'test' (#24) from test into main
Reviewed-on: #24
2024-03-12 07:54:10 +00:00
d97087b4e9 Merge pull request '시그니처 캔 등록 페이지 추가' (#23) from test into main
Reviewed-on: #23
2024-03-08 13:59:51 +00:00
ddb2449053 Merge pull request '파비콘 변경' (#22) from test into main
Reviewed-on: #22
2024-02-17 14:56:25 +00:00
8aca07cdf7 Merge pull request '콘텐츠 수정' (#21) from test into main
Reviewed-on: #21
2024-02-08 18:25:50 +00:00
0ba845d95a Merge pull request '콘텐츠 리스트 - 오픈예정일 추가' (#20) from test into main
Reviewed-on: #20
2024-01-11 09:27:25 +00:00
64b1fd5395 Merge pull request '수정 기능 추가' (#19) from test into main
Reviewed-on: #19
2024-01-03 15:25:28 +00:00
639bea70fa Merge pull request '쿠폰 관리 페이지 추가' (#18) from test into main
Reviewed-on: #18
2024-01-03 10:33:23 +00:00
6a89ba059b Merge pull request '푸시 발송 대상 지정 UI 추가' (#17) from test into main
Reviewed-on: #17
2023-11-24 07:01:10 +00:00
ff83041585 Merge pull request '연령제한 표시 추가' (#16) from test into main
Reviewed-on: #16
2023-11-21 16:25:21 +00:00
e660be0bf4 Merge pull request '일자별 콘텐츠 후원 페이지 - 유/무료 구분 추가' (#15) from test into main
Reviewed-on: #15
2023-11-14 13:36:49 +00:00
62cdd57069 Merge pull request '일자별 콘텐츠 후원 페이지 - 유/무료 구분 추가' (#14) from test into main
Reviewed-on: #14
2023-11-14 13:34:37 +00:00
f8346ed5ef Merge pull request '일자별 콘텐츠 후원 페이지 - 유/무료 구분 추가' (#13) from test into main
Reviewed-on: #13
2023-11-14 13:19:50 +00:00
9656b9a9d1 Merge pull request '일자별 콘텐츠 후원 페이지 추가' (#12) from test into main
Reviewed-on: #12
2023-11-14 08:57:15 +00:00
97a58266bb Merge pull request 'orderType 추가, 판매수 -> 누적 판매수 로 변경' (#11) from test into main
Reviewed-on: #11
2023-11-13 14:52:38 +00:00
8fc0cfa345 Merge pull request '콘텐츠별 누적 현황 페이지 - 총 콘텐츠 개수 표시' (#10) from test into main
Reviewed-on: #10
2023-11-13 14:08:26 +00:00
22f9c2287d Merge pull request '콘텐츠별 누적 현황 페이지 추가' (#9) from test into main
Reviewed-on: #9
2023-11-13 13:46:19 +00:00
9284f7d5c3 Merge pull request '콘텐츠 정산 - 엑셀 다운로드 추가' (#8) from test into main
Reviewed-on: #8
2023-11-13 08:46:43 +00:00
e6f27a4529 Merge pull request '콘텐츠 정산 - 헤더 순서 변경' (#7) from test into main
Reviewed-on: #7
2023-11-10 13:56:50 +00:00
6a33d1c024 Merge pull request '콘텐츠 정산 페이지 추가' (#6) from test into main
Reviewed-on: #6
2023-11-10 10:51:32 +00:00
3b83789c15 Merge pull request 'test' (#5) from test into main
Reviewed-on: #5
2023-10-06 15:09:02 +00:00
55f0ab9af3 Merge pull request '크리에이터 라이브 정산 - 인원 추가, 코인 -> 캔' (#4) from test into main
Reviewed-on: #4
2023-10-03 12:15:25 +00:00
9b168a6112 Merge pull request '크리에이터 라이브 정산 페이지 추가' (#3) from test into main
Reviewed-on: #3
2023-10-03 09:25:39 +00:00
c47937933e Merge pull request 'test' (#2) from test into main
Reviewed-on: #2
2023-08-25 07:50:32 +00:00
4744fe7d9a Merge pull request '채널공유 - 파이어베이스 링크, 도메인, 프로젝트명 변경' (#1) from test into main
Reviewed-on: #1
2023-08-22 03:39:44 +00:00
14 changed files with 556 additions and 482 deletions

View File

@@ -1,19 +1,19 @@
import Vue from 'vue'; import Vue from 'vue';
async function getCalculateLive(startDate, endDate) { async function getCalculateLive(startDate, endDate, page, size) {
return Vue.axios.get('/admin/calculate/live?startDateStr=' + startDate + '&endDateStr=' + endDate); return Vue.axios.get('/admin/calculate/live?startDateStr=' + startDate + '&endDateStr=' + endDate + '&page=' + (page - 1) + '&size=' + size);
} }
async function getCalculateContent(startDate, endDate) { async function getCalculateContent(startDate, endDate, page, size) {
return Vue.axios.get('/admin/calculate/content-list?startDateStr=' + startDate + '&endDateStr=' + endDate); return Vue.axios.get('/admin/calculate/content-list?startDateStr=' + startDate + '&endDateStr=' + endDate + '&page=' + (page - 1) + '&size=' + size);
} }
async function getCumulativeSalesByContent(page, size) { async function getCumulativeSalesByContent(page, size) {
return Vue.axios.get('/admin/calculate/cumulative-sales-by-content?page=' + (page - 1) + "&size=" + size); return Vue.axios.get('/admin/calculate/cumulative-sales-by-content?page=' + (page - 1) + "&size=" + size);
} }
async function getCalculateContentDonation(startDate, endDate) { async function getCalculateContentDonation(startDate, endDate, page, size) {
return Vue.axios.get('/admin/calculate/content-donation-list?startDateStr=' + startDate + '&endDateStr=' + endDate); return Vue.axios.get('/admin/calculate/content-donation-list?startDateStr=' + startDate + '&endDateStr=' + endDate + '&page=' + (page - 1) + '&size=' + size);
} }
async function getCalculateCommunityPost(startDate, endDate, page, size) { async function getCalculateCommunityPost(startDate, endDate, page, size) {
@@ -75,6 +75,54 @@ async function downloadCalculateChannelDonationByCreatorExcel(startDate, endDate
}); });
} }
async function downloadCalculateLiveExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/live/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function downloadCalculateContentExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/content-list/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function downloadCalculateContentDonationExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/content-donation-list/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function downloadCalculateCommunityPostExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/community-post/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function downloadCalculateLiveByCreatorExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/live-by-creator/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function downloadCalculateContentByCreatorExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/content-by-creator/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function downloadCalculateCommunityByCreatorExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/community-by-creator/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function downloadCalculateChannelDonationByDateExcel(startDate, endDate) {
return Vue.axios.get('/admin/calculate/channel-donation-by-date/excel?startDateStr=' + startDate + '&endDateStr=' + endDate, {
responseType: 'blob'
});
}
async function updateCreatorSettlementRatio(creatorSettlementRatio) { async function updateCreatorSettlementRatio(creatorSettlementRatio) {
const request = { const request = {
memberId: creatorSettlementRatio.creator_id, memberId: creatorSettlementRatio.creator_id,
@@ -90,6 +138,15 @@ async function deleteCreatorSettlementRatio(memberId) {
return Vue.axios.post('/admin/calculate/ratio/delete/' + memberId); return Vue.axios.post('/admin/calculate/ratio/delete/' + memberId);
} }
async function refundLive(roomId, canUsageStr) {
const request = {
roomId: roomId,
canUsageStr: canUsageStr
};
return Vue.axios.post('/admin/calculate/live/refund', request);
}
export { export {
getCalculateLive, getCalculateLive,
getCalculateContent, getCalculateContent,
@@ -100,10 +157,19 @@ export {
createCreatorSettlementRatio, createCreatorSettlementRatio,
updateCreatorSettlementRatio, updateCreatorSettlementRatio,
deleteCreatorSettlementRatio, deleteCreatorSettlementRatio,
refundLive,
getCalculateLiveByCreator, getCalculateLiveByCreator,
getCalculateContentByCreator, getCalculateContentByCreator,
getCalculateCommunityByCreator, getCalculateCommunityByCreator,
getCalculateChannelDonationByCreator, getCalculateChannelDonationByCreator,
getCalculateChannelDonationByDate, getCalculateChannelDonationByDate,
downloadCalculateChannelDonationByCreatorExcel downloadCalculateChannelDonationByCreatorExcel,
downloadCalculateLiveExcel,
downloadCalculateContentExcel,
downloadCalculateContentDonationExcel,
downloadCalculateCommunityPostExcel,
downloadCalculateLiveByCreatorExcel,
downloadCalculateContentByCreatorExcel,
downloadCalculateCommunityByCreatorExcel,
downloadCalculateChannelDonationByDateExcel
} }

View File

@@ -11,4 +11,8 @@ async function getChargeStatusDetail(startDate, paymentGateway, currency) {
); );
} }
export { getChargeStatus, getChargeStatusDetail } async function refundCharge(chargeId) {
return Vue.axios.post('/admin/charge/refund', { chargeId });
}
export { getChargeStatus, getChargeStatusDetail, refundCharge }

View File

@@ -52,6 +52,11 @@ async function resetPassword(id) {
return Vue.axios.post("/admin/member/password/reset", request) return Vue.axios.post("/admin/member/password/reset", request)
} }
async function blockMember(memberId, reason) {
const request = {memberId, reason}
return Vue.axios.post("/admin/member/block", request)
}
/** /**
* 닉네임으로 회원 검색 API * 닉네임으로 회원 검색 API
* - 서버 구현 차이를 흡수하기 위해 nickname, search_word 두 파라미터 모두 전송 * - 서버 구현 차이를 흡수하기 위해 nickname, search_word 두 파라미터 모두 전송
@@ -84,8 +89,9 @@ export {
searchMember, searchMember,
getCreatorList, getCreatorList,
searchCreator, searchCreator,
updateMember, updateMember,
getCreatorAllList, getCreatorAllList,
resetPassword, resetPassword,
searchMembersByNickname blockMember,
searchMembersByNickname
} }

View File

@@ -47,22 +47,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="excelColumns" color="#3bb9f1"
:file-name="'채널후원정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#3bb9f1"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
@@ -187,17 +180,6 @@ export default {
{ text: '정산금액', align: 'center', sortable: false, value: 'settlementAmount' }, { text: '정산금액', align: 'center', sortable: false, value: 'settlementAmount' },
{ text: '원천세(3.3%)', align: 'center', sortable: false, value: 'withholdingTax' }, { text: '원천세(3.3%)', align: 'center', sortable: false, value: 'withholdingTax' },
{ text: '입금액', align: 'center', sortable: false, value: 'depositAmount' } { text: '입금액', align: 'center', sortable: false, value: 'depositAmount' }
],
excelColumns: [
{ label: '날짜', field: 'date' },
{ label: '크리에이터', field: 'creator' },
{ label: '건수', field: 'count' },
{ label: '캔', field: 'totalCan' },
{ label: '원화', field: 'krw' },
{ label: '수수료(6.6%)', field: 'fee' },
{ label: '정산금액', field: 'settlementAmount' },
{ label: '원천세(3.3%)', field: 'withholdingTax' },
{ label: '입금액', field: 'depositAmount' }
] ]
} }
}, },
@@ -252,6 +234,24 @@ export default {
} finally { } finally {
this.is_loading = false this.is_loading = false
} }
},
async downloadExcel() {
try {
const res = await api.downloadCalculateChannelDonationByDateExcel(
this.start_date.substring(0, 10),
this.end_date.substring(0, 10)
)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '채널후원정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -47,22 +47,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="columns" color="#3bb9f1"
:file-name="'정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#3bb9f1"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
@@ -156,40 +149,6 @@ export default {
page_size: 20, page_size: 20,
total_page: 0, total_page: 0,
items: [], items: [],
columns: [
{
label: "이메일",
field: "email",
},
{
label: "크리에이터",
field: "nickname",
},
{
label: "합계(캔)",
field: "totalCan",
},
{
label: "원화",
field: "totalKrw",
},
{
label: "결제수수료(6.6%)",
field: "paymentFee",
},
{
label: "정산금액",
field: "settlementAmount",
},
{
label: "원천세(3.3%)",
field: "tax",
},
{
label: "입금액",
field: "depositAmount",
},
],
headers: [ headers: [
{ {
text: '이메일', text: '이메일',
@@ -309,6 +268,21 @@ export default {
} finally { } finally {
this.is_loading = false this.is_loading = false
} }
},
async downloadExcel() {
try {
const res = await api.downloadCalculateCommunityByCreatorExcel(this.start_date, this.end_date)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '크리에이터별_커뮤니티정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -35,7 +35,7 @@
<v-col cols="2"> <v-col cols="2">
<v-btn <v-btn
block block
color="#9970ff" color="#3bb9f1"
dark dark
depressed depressed
@click="getCalculateCommunityPost" @click="getCalculateCommunityPost"
@@ -47,22 +47,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="columns" color="#3bb9f1"
:file-name="'커뮤니티-정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'커뮤니티-정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#9970ff"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
<v-row> <v-row>
@@ -136,52 +129,6 @@ export default {
page_size: 20, page_size: 20,
total_page: 0, total_page: 0,
items: [], items: [],
columns: [
{
label: '날짜',
field: 'date',
},
{
label: '크리에이터',
field: 'nickname',
},
{
label: '내용(앞 10글자)',
field: 'title'
},
{
label: '판매금액(캔)',
field: 'can',
},
{
label: '구매유저수',
field: 'numberOfPurchase',
},
{
label: '합계(캔)',
field: 'totalCan',
},
{
label: '원화',
field: 'totalKrw',
},
{
label: '수수료\n(6.6%)',
field: 'paymentFee',
},
{
label: '정산금액',
field: 'settlementAmount',
},
{
label: '원천세\n(3.3%)',
field: 'tax',
},
{
label: '입금액',
field: 'depositAmount',
}
],
headers: [ headers: [
{ {
text: '날짜', text: '날짜',
@@ -309,6 +256,21 @@ export default {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.') this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false this.is_loading = false
} }
},
async downloadExcel() {
try {
const res = await api.downloadCalculateCommunityPostExcel(this.start_date, this.end_date)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '커뮤니티-정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -35,7 +35,7 @@
<v-col cols="2"> <v-col cols="2">
<v-btn <v-btn
block block
color="#9970ff" color="#3bb9f1"
dark dark
depressed depressed
@click="getCalculateContent" @click="getCalculateContent"
@@ -48,22 +48,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="columns" color="#3bb9f1"
:file-name="'정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#9970ff"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
<v-row> <v-row>
@@ -126,6 +119,16 @@
</v-data-table> </v-data-table>
</v-col> </v-col>
</v-row> </v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container> </v-container>
</div> </div>
</template> </template>
@@ -143,61 +146,10 @@ export default {
is_loading: false, is_loading: false,
start_date: null, start_date: null,
end_date: null, end_date: null,
page: 1,
page_size: 20,
total_page: 0,
items: [], items: [],
columns: [
{
label: '판매일',
field: 'saleDate',
},
{
label: '크리에이터',
field: 'nickname',
},
{
label: '제목',
field: 'title',
},
{
label: '구분',
field: 'orderType',
},
{
label: '판매금액(캔)',
field: 'orderPrice',
},
{
label: '판매수',
field: 'numberOfPeople',
},
{
label: '합계(캔)',
field: 'totalCan',
},
{
label: '원화',
field: 'totalKrw',
},
{
label: '수수료\n(6.6%)',
field: 'paymentFee',
},
{
label: '정산금액',
field: 'settlementAmount',
},
{
label: '원천세\n(3.3%)',
field: 'tax',
},
{
label: '입금액',
field: 'depositAmount',
},
{
label: '등록일',
field: 'registrationDate',
},
],
headers: [ headers: [
{ {
text: '판매일', text: '판매일',
@@ -321,9 +273,10 @@ export default {
this.is_loading = true this.is_loading = true
try { try {
const res = await api.getCalculateContent(this.start_date, this.end_date) const res = await api.getCalculateContent(this.start_date, this.end_date, this.page, this.page_size)
if (res.status === 200 && res.data.success === true) { if (res.status === 200 && res.data.success === true) {
this.items = res.data.data this.items = res.data.data.items
this.total_page = Math.ceil(res.data.data.totalCount / this.page_size)
} else { } else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.') this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} }
@@ -333,6 +286,25 @@ export default {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.') this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false this.is_loading = false
} }
},
next() {
this.getCalculateContent()
},
async downloadExcel() {
try {
const res = await api.downloadCalculateContentExcel(this.start_date, this.end_date)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '콘텐츠정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -47,22 +47,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="columns" color="#3bb9f1"
:file-name="'정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#3bb9f1"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
@@ -156,40 +149,6 @@ export default {
page_size: 20, page_size: 20,
total_page: 0, total_page: 0,
items: [], items: [],
columns: [
{
label: "이메일",
field: "email",
},
{
label: "크리에이터",
field: "nickname",
},
{
label: "합계(캔)",
field: "totalCan",
},
{
label: "원화",
field: "totalKrw",
},
{
label: "결제수수료(6.6%)",
field: "paymentFee",
},
{
label: "정산금액",
field: "settlementAmount",
},
{
label: "원천세(3.3%)",
field: "tax",
},
{
label: "입금액",
field: "depositAmount",
},
],
headers: [ headers: [
{ {
text: '이메일', text: '이메일',
@@ -309,6 +268,21 @@ export default {
} finally { } finally {
this.is_loading = false this.is_loading = false
} }
},
async downloadExcel() {
try {
const res = await api.downloadCalculateContentByCreatorExcel(this.start_date, this.end_date)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '크리에이터별_콘텐츠정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -35,7 +35,7 @@
<v-col cols="2"> <v-col cols="2">
<v-btn <v-btn
block block
color="#9970ff" color="#3bb9f1"
dark dark
depressed depressed
@click="getCalculateContentDonation" @click="getCalculateContentDonation"
@@ -48,22 +48,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="columns" color="#3bb9f1"
:file-name="'정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#9970ff"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
<v-row> <v-row>
@@ -118,6 +111,16 @@
</v-data-table> </v-data-table>
</v-col> </v-col>
</v-row> </v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container> </v-container>
</div> </div>
</template> </template>
@@ -135,57 +138,10 @@ export default {
is_loading: false, is_loading: false,
start_date: null, start_date: null,
end_date: null, end_date: null,
page: 1,
page_size: 20,
total_page: 0,
items: [], items: [],
columns: [
{
label: '후원날짜',
field: 'donationDate',
},
{
label: '크리에이터',
field: 'nickname',
},
{
label: '콘텐츠 제목',
field: 'title',
},
{
label: '구분',
field: 'paidOrFree',
},
{
label: '후원수',
field: 'numberOfDonation',
},
{
label: '합계(캔)',
field: 'totalCan',
},
{
label: '원화',
field: 'totalKrw',
},
{
label: '수수료\n(6.6%)',
field: 'paymentFee',
},
{
label: '정산금액',
field: 'settlementAmount',
},
{
label: '원천세\n(3.3%)',
field: 'tax',
},
{
label: '입금액',
field: 'depositAmount',
},
{
label: '콘텐츠 등록일',
field: 'registrationDate',
},
],
headers: [ headers: [
{ {
text: '후원날짜', text: '후원날짜',
@@ -303,9 +259,10 @@ export default {
this.is_loading = true this.is_loading = true
try { try {
const res = await api.getCalculateContentDonation(this.start_date, this.end_date) const res = await api.getCalculateContentDonation(this.start_date, this.end_date, this.page, this.page_size)
if (res.status === 200 && res.data.success === true) { if (res.status === 200 && res.data.success === true) {
this.items = res.data.data this.items = res.data.data.items
this.total_page = Math.ceil(res.data.data.totalCount / this.page_size)
} else { } else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.') this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} }
@@ -315,6 +272,25 @@ export default {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.') this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false this.is_loading = false
} }
},
next() {
this.getCalculateContentDonation()
},
async downloadExcel() {
try {
const res = await api.downloadCalculateContentDonationExcel(this.start_date, this.end_date)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '콘텐츠후원정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -35,7 +35,7 @@
<v-col cols="2"> <v-col cols="2">
<v-btn <v-btn
block block
color="#9970ff" color="#3bb9f1"
dark dark
depressed depressed
@click="getCalculateLive" @click="getCalculateLive"
@@ -47,22 +47,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="columns" color="#3bb9f1"
:file-name="'정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#9970ff"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
@@ -76,10 +69,6 @@
class="elevation-1" class="elevation-1"
hide-default-footer hide-default-footer
> >
<template v-slot:item.email="{ item }">
{{ item.email }}
</template>
<template v-slot:item.nickname="{ item }"> <template v-slot:item.nickname="{ item }">
{{ item.nickname }} {{ item.nickname }}
</template> </template>
@@ -123,9 +112,29 @@
<template v-slot:item.depositAmount="{ item }"> <template v-slot:item.depositAmount="{ item }">
{{ item.depositAmount.toLocaleString() }} {{ item.depositAmount.toLocaleString() }}
</template> </template>
<template v-slot:item.actions="{ item }">
<v-btn
small
color="error"
@click="refund(item)"
>
환불
</v-btn>
</template>
</v-data-table> </v-data-table>
</v-col> </v-col>
</v-row> </v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container> </v-container>
</div> </div>
</template> </template>
@@ -143,68 +152,11 @@ export default {
is_loading: false, is_loading: false,
start_date: null, start_date: null,
end_date: null, end_date: null,
page: 1,
page_size: 20,
total_page: 0,
items: [], items: [],
columns: [
{
label: "이메일",
field: "email",
},
{
label: "크리에이터",
field: "nickname",
},
{
label: "날짜",
field: "date",
},
{
label: "제목",
field: "title",
},
{
label: "구분",
field: "canUsageStr",
},
{
label: "입장캔",
field: "entranceFee",
},
{
label: "인원",
field: "numberOfPeople",
},
{
label: "합계(캔)",
field: "totalAmount",
},
{
label: "원화",
field: "totalKrw",
},
{
label: "결제수수료(6.6%)",
field: "paymentFee",
},
{
label: "정산금액",
field: "settlementAmount",
},
{
label: "원천세(3.3%)",
field: "tax",
},
{
label: "입금액",
field: "depositAmount",
},
],
headers: [ headers: [
{
text: '이메일',
align: 'center',
sortable: false,
value: 'email',
},
{ {
text: '크리에이터', text: '크리에이터',
align: 'center', align: 'center',
@@ -275,6 +227,12 @@ export default {
align: 'center', align: 'center',
sortable: false, sortable: false,
value: 'depositAmount', value: 'depositAmount',
},
{
text: '관리',
align: 'center',
sortable: false,
value: 'actions',
} }
], ],
} }
@@ -315,9 +273,10 @@ export default {
this.is_loading = true this.is_loading = true
try { try {
const res = await api.getCalculateLive(this.start_date, this.end_date) const res = await api.getCalculateLive(this.start_date, this.end_date, this.page, this.page_size)
if (res.status === 200 && res.data.success === true) { if (res.status === 200 && res.data.success === true) {
this.items = res.data.data this.items = res.data.data.items
this.total_page = Math.ceil(res.data.data.totalCount / this.page_size)
} else { } else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.') this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} }
@@ -327,6 +286,41 @@ export default {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.') this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false this.is_loading = false
} }
},
next() {
this.getCalculateLive()
},
async refund(item) {
if (confirm('정말로 환불하시겠습니까?')) {
try {
const res = await api.refundLive(item.roomId, item.canUsageStr)
if (res.status === 200 && res.data.success === true) {
this.notifySuccess('환불 처리가 완료되었습니다.')
await this.getCalculateLive()
} else {
this.notifyError(res.data.message || '환불 처리 중 오류가 발생했습니다.')
}
} catch (e) {
this.notifyError('환불 처리 중 오류가 발생했습니다.')
}
}
},
async downloadExcel() {
try {
const res = await api.downloadCalculateLiveExcel(this.start_date, this.end_date)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '라이브정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -47,22 +47,15 @@
<v-spacer /> <v-spacer />
<v-col cols="2"> <v-col cols="2">
<vue-excel-xlsx <v-btn
:data="items" block
:columns="columns" color="#3bb9f1"
:file-name="'정산'" dark
:file-type="'xlsx'" depressed
:sheet-name="'정산'" @click="downloadExcel"
> >
<v-btn 엑셀 다운로드
block </v-btn>
color="#3bb9f1"
dark
depressed
>
엑셀 다운로드
</v-btn>
</vue-excel-xlsx>
</v-col> </v-col>
</v-row> </v-row>
@@ -156,40 +149,6 @@ export default {
page_size: 20, page_size: 20,
total_page: 0, total_page: 0,
items: [], items: [],
columns: [
{
label: "이메일",
field: "email",
},
{
label: "크리에이터",
field: "nickname",
},
{
label: "합계(캔)",
field: "totalCan",
},
{
label: "원화",
field: "totalKrw",
},
{
label: "결제수수료(6.6%)",
field: "paymentFee",
},
{
label: "정산금액",
field: "settlementAmount",
},
{
label: "원천세(3.3%)",
field: "tax",
},
{
label: "입금액",
field: "depositAmount",
},
],
headers: [ headers: [
{ {
text: '이메일', text: '이메일',
@@ -309,6 +268,21 @@ export default {
} finally { } finally {
this.is_loading = false this.is_loading = false
} }
},
async downloadExcel() {
try {
const res = await api.downloadCalculateLiveByCreatorExcel(this.start_date, this.end_date)
const url = window.URL.createObjectURL(new Blob([res.data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', '크리에이터별_라이브정산.xlsx')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch (e) {
this.notifyError('엑셀 다운로드 중 오류가 발생했습니다.')
}
} }
} }
} }

View File

@@ -94,10 +94,6 @@
class="elevation-1" class="elevation-1"
hide-default-footer hide-default-footer
> >
<template v-slot:item.accountId="{ item }">
{{ item.accountId }}
</template>
<template v-slot:item.nickname="{ item }"> <template v-slot:item.nickname="{ item }">
{{ item.nickname }} {{ item.nickname }}
</template> </template>
@@ -113,6 +109,16 @@
<template v-slot:item.datetime="{ item }"> <template v-slot:item.datetime="{ item }">
{{ item.datetime }} {{ item.datetime }}
</template> </template>
<template v-slot:item.refund="{ item }">
<v-btn
color="error"
small
@click="confirmRefund(item)"
>
환불
</v-btn>
</template>
</v-data-table> </v-data-table>
<v-card-actions v-show="!is_loading"> <v-card-actions v-show="!is_loading">
<v-spacer /> <v-spacer />
@@ -146,14 +152,9 @@ export default {
end_date: null, end_date: null,
items: [], items: [],
detail_items: null, detail_items: null,
selected_date_item: null,
show_popup_dialog: false, show_popup_dialog: false,
detail_headers: [ detail_headers: [
{
text: 'no',
align: 'center',
sortable: false,
value: 'accountId',
},
{ {
text: '닉네임', text: '닉네임',
align: 'center', align: 'center',
@@ -184,6 +185,12 @@ export default {
sortable: false, sortable: false,
value: 'datetime', value: 'datetime',
}, },
{
text: '환불',
align: 'center',
sortable: false,
value: 'refund',
},
], ],
headers: [ headers: [
{ {
@@ -284,6 +291,7 @@ export default {
async getChargeStatusDetail(value) { async getChargeStatusDetail(value) {
if (value.date !== '합계') { if (value.date !== '합계') {
this.is_loading = true this.is_loading = true
this.selected_date_item = value
try { try {
const res = await api.getChargeStatusDetail(value.date, value.pg, value.currency) const res = await api.getChargeStatusDetail(value.date, value.pg, value.currency)
@@ -300,6 +308,45 @@ export default {
this.is_loading = false this.is_loading = false
} }
} }
},
async confirmRefund(item) {
let canText = `${item.chargeCan}`
if (item.rewardCan > 0) {
canText += ` + ${item.rewardCan}`
}
const confirm = await this.$dialog.confirm({
title: '환불 확인',
text: `${item.nickname}님의 ${canText}을 환불하시겠습니까?`,
actions: {
false: '취소',
true: '환불'
}
})
if (confirm) {
await this.refundCharge(item.chargeId)
}
},
async refundCharge(chargeId) {
this.is_loading = true
try {
const res = await api.refundCharge(chargeId)
if (res.status === 200 && res.data.success === true) {
this.notifySuccess('환불이 완료되었습니다.')
await this.getChargeStatusDetail(this.selected_date_item)
await this.getChargeStatus()
} else {
this.notifyError(res.data.message || '환불 처리 중 오류가 발생했습니다.')
}
} catch (e) {
this.notifyError('환불 처리 중 오류가 발생했습니다.')
} finally {
this.is_loading = false
}
} }
} }
} }

View File

@@ -353,10 +353,11 @@
<v-col cols="12"> <v-col cols="12">
<v-textarea <v-textarea
v-model="character.systemPrompt" v-model="character.systemPrompt"
label="시스템 프롬프트" label="시스템 프롬프트 (최대 2000자)"
outlined outlined
auto-grow auto-grow
rows="4" rows="4"
counter="2000"
:class="{ 'required-asterisk': !isEdit }" :class="{ 'required-asterisk': !isEdit }"
:rules="systemPromptRules" :rules="systemPromptRules"
/> />
@@ -1182,7 +1183,8 @@ export default {
], ],
typeOptions: ['Clone', 'Character'], typeOptions: ['Clone', 'Character'],
systemPromptRules: [ systemPromptRules: [
v => (this.isEdit ? true : (!!v && v.trim().length > 0) || '시스템 프롬프트를 입력하세요') v => (this.isEdit ? true : (!!v && v.trim().length > 0) || '시스템 프롬프트를 입력하세요'),
v => (!!v && v.length <= 2000) || '최대 2000자까지 입력 가능합니다'
], ],
// 인물 관계 옵션 및 검증 규칙 // 인물 관계 옵션 및 검증 규칙
relationshipTypeOptions: ['가족', '친구', '동료', '연인', '기타'], relationshipTypeOptions: ['가족', '친구', '동료', '연인', '기타'],

View File

@@ -193,6 +193,14 @@
</v-row> </v-row>
</v-card-text> </v-card-text>
<v-card-actions v-show="!is_loading"> <v-card-actions v-show="!is_loading">
<v-btn
color="error"
text
@click="showBlockReasonDialog"
>
차단
</v-btn>
<v-spacer />
<v-btn <v-btn
color="blue darken-1" color="blue darken-1"
text text
@@ -200,7 +208,6 @@
> >
비밀번호 재설정 비밀번호 재설정
</v-btn> </v-btn>
<v-spacer />
<v-btn <v-btn
color="blue darken-1" color="blue darken-1"
text text
@@ -252,6 +259,74 @@
</v-card> </v-card>
</v-dialog> </v-dialog>
</v-row> </v-row>
<v-row>
<v-dialog
v-model="show_block_reason_dialog"
max-width="500px"
persistent
>
<v-card>
<v-card-title>차단(탈퇴) 사유 입력</v-card-title>
<v-card-text>
<v-textarea
v-model="block_reason"
label="사유를 입력해주세요"
outlined
hide-details
/>
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="error"
text
@click="confirmBlock"
>
차단
</v-btn>
<v-btn
color="blue darken-1"
text
@click="cancelBlock"
>
취소
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
<v-row>
<v-dialog
v-model="show_confirm_block_dialog"
max-width="500px"
persistent
>
<v-card>
<v-card-title class="text-h6">
'{{ nickname }}' 계정과 본인인증 정보, 같은 본인인증 정보를 사용하는 모든 계정을 차단합니다.
</v-card-title>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="error"
text
@click="blockMember"
>
차단
</v-btn>
<v-btn
color="blue darken-1"
text
@click="cancelBlock"
>
취소
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
</div> </div>
</template> </template>
@@ -274,6 +349,9 @@ export default {
user_type: null, user_type: null,
show_popup_dialog: false, show_popup_dialog: false,
show_confirm_reset_password_dialog: false, show_confirm_reset_password_dialog: false,
show_block_reason_dialog: false,
show_confirm_block_dialog: false,
block_reason: '',
} }
}, },
@@ -382,6 +460,51 @@ export default {
this.user_type = null this.user_type = null
this.show_popup_dialog = false this.show_popup_dialog = false
this.show_confirm_reset_password_dialog = false this.show_confirm_reset_password_dialog = false
this.show_block_reason_dialog = false
this.show_confirm_block_dialog = false
this.block_reason = ''
},
showBlockReasonDialog() {
this.show_popup_dialog = false
this.show_block_reason_dialog = true
},
cancelBlock() {
this.show_block_reason_dialog = false
this.show_confirm_block_dialog = false
this.block_reason = ''
this.show_popup_dialog = true
},
confirmBlock() {
if (this.block_reason.length === 0) {
this.notifyError('차단 사유를 입력해주세요.')
return
}
this.show_block_reason_dialog = false
this.show_confirm_block_dialog = true
},
async blockMember() {
this.is_loading = true
try {
const res = await api.blockMember(this.member.id, this.block_reason)
if (res.status === 200 && res.data.success === true) {
this.notifySuccess('차단되었습니다.')
this.cancel()
this.page = 1
await this.getMemberList()
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
this.is_loading = false
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
}, },
async modify() { async modify() {