mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:59:22 +09:00
시스템관리 - 권한관리, 고객관리 - 청약고객관리/회원관리 추가
This commit is contained in:
79
frontend/src/modules/custMgt/service/custMgtApi.js
Normal file
79
frontend/src/modules/custMgt/service/custMgtApi.js
Normal file
@@ -0,0 +1,79 @@
|
||||
import httpClient from '@/common/http-client';
|
||||
import subsExcelHeader from './mock/subsExcelHeader';
|
||||
import carryOverExcelHeader from './mock/carryOverExcelHeader';
|
||||
import sampleExcelHeader from './mock/sampleExcelHeader';
|
||||
|
||||
// 공통 코드.
|
||||
const getCommCode = (params) => {
|
||||
return httpClient.post('/api/v1/bo/comm/getCode', params, { withCredentials: false });
|
||||
}
|
||||
|
||||
// 청약정보 상세조회
|
||||
const subsDetail = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/subsDetail', params, { withCredentials: false});
|
||||
}
|
||||
|
||||
// 이월금액 목록 조회
|
||||
const carryOverList = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/carryOverList', params, { withCredentials: false});
|
||||
}
|
||||
|
||||
// 청약정보 엑셀다운로드 목록 조회
|
||||
const subsListExcel = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/subsListExcel', params);
|
||||
}
|
||||
|
||||
// 사용자 상세 정보 조회.
|
||||
const memberDetail = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/memberDetail', params);
|
||||
}
|
||||
|
||||
// 관리자 상세 정보 조회.
|
||||
const memberAdminDetail = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/memberAdminDetail', params);
|
||||
}
|
||||
|
||||
// 관리자명(마당ID) 조회
|
||||
const selectSearchMadangId = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/adminInfo', params);
|
||||
}
|
||||
|
||||
// 청약정보 관리자명/관리자ID 수정
|
||||
const updateAdminInfo = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/updateAdminInfo', params);
|
||||
}
|
||||
|
||||
|
||||
const getExcelHeader = category => {
|
||||
// 엑셀에 출력할 Header 정보를 Mockup 데이터로 관리한다.
|
||||
return new Promise(function(resolve, reject) {
|
||||
let header = [];
|
||||
switch (category) {
|
||||
case 'SUBS':
|
||||
header = subsExcelHeader.header;
|
||||
break;
|
||||
case 'CARRY':
|
||||
header = carryOverExcelHeader.header;
|
||||
break;
|
||||
case 'SAMPLE':
|
||||
header = sampleExcelHeader.header;
|
||||
break;
|
||||
default:
|
||||
header = '';
|
||||
break;
|
||||
}
|
||||
resolve(header);
|
||||
});
|
||||
};
|
||||
|
||||
export default {
|
||||
getCommCode,
|
||||
subsDetail,
|
||||
carryOverList,
|
||||
getExcelHeader,
|
||||
subsListExcel,
|
||||
memberDetail,
|
||||
memberAdminDetail,
|
||||
selectSearchMadangId,
|
||||
updateAdminInfo,
|
||||
}
|
||||
Reference in New Issue
Block a user