mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 08:06:38 +09:00
리스크관리 / 유치채널현황 관리 / 채널관리 추가
This commit is contained in:
56
frontend/src/modules/sendNumMgt/service/sendNumMgtApi.js
Normal file
56
frontend/src/modules/sendNumMgt/service/sendNumMgtApi.js
Normal file
@@ -0,0 +1,56 @@
|
||||
import httpClient from '@/common/http-client';
|
||||
|
||||
// 공통 코드.
|
||||
const getCommCode = (params) => {
|
||||
return httpClient.post('/api/v1/bo/comm/getCode', params, { withCredentials: false });
|
||||
}
|
||||
|
||||
// 사업자가 등록 요청.
|
||||
const insertNumber1 = (tenureFile, businessFile, communicationFile, adminId, custNm, bRegNo, nmineeDivCd, numberInputs) => {
|
||||
let formData = new FormData();
|
||||
formData.append("tenureFile", tenureFile);
|
||||
formData.append("businessFile", businessFile);
|
||||
formData.append("communicationFile", communicationFile);
|
||||
formData.append("adminId", adminId);
|
||||
formData.append("custNm", custNm);
|
||||
formData.append("bRegNo", bRegNo);
|
||||
formData.append("nmineeDivCd", nmineeDivCd);
|
||||
formData.append("numberInputs", numberInputs);
|
||||
|
||||
let url = "/api/v1/bo/sendNumMgt/insertNumber";
|
||||
return httpClient.post(url, formData, {
|
||||
headers: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
"Show-Layer": "Yes"
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 타사업자가 등록 요청.
|
||||
const insertNumber2 = (trustFile, warrantFile, deputyFile, tenureFile, businessFile, adminId, custNm, bRegNo, nmineeDivCd, numberInputs) => {
|
||||
let formData = new FormData();
|
||||
formData.append("trustFile", trustFile);
|
||||
formData.append("warrantFile", warrantFile);
|
||||
formData.append("deputyFile", deputyFile);
|
||||
formData.append("tenureFile", tenureFile);
|
||||
formData.append("businessFile", businessFile);
|
||||
formData.append("adminId", adminId);
|
||||
formData.append("custNm", custNm);
|
||||
formData.append("bRegNo", bRegNo);
|
||||
formData.append("nmineeDivCd", nmineeDivCd);
|
||||
formData.append("numberInputs", numberInputs);
|
||||
|
||||
let url = "/api/v1/bo/sendNumMgt/insertNumber";
|
||||
return httpClient.post(url, formData, {
|
||||
headers: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
"Show-Layer": "Yes"
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export default {
|
||||
getCommCode,
|
||||
insertNumber1,
|
||||
insertNumber2,
|
||||
}
|
||||
Reference in New Issue
Block a user