|
@@ -54,12 +54,14 @@ export async function contactSave(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 客户证书资质信息分页
|
|
* 客户证书资质信息分页
|
|
|
*/
|
|
*/
|
|
|
export async function contactQcPackPageAPI(params) {
|
|
export async function contactQcPackPageAPI(params) {
|
|
|
- const res = await request.get(`/main/professionCertification/selectByRelationIdAndType`, { params });
|
|
|
|
|
|
|
+ const res = await request.get(
|
|
|
|
|
+ `/main/professionCertification/selectByRelationIdAndType`,
|
|
|
|
|
+ { params }
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -90,7 +92,10 @@ export async function contactQcPackUpdateAPI(data) {
|
|
|
* 获取客户证书资质信息详情
|
|
* 获取客户证书资质信息详情
|
|
|
*/
|
|
*/
|
|
|
export async function contactQcPackDetailAPI(id) {
|
|
export async function contactQcPackDetailAPI(id) {
|
|
|
- const res = await request.get(`/main/professionCertification/getById/${id}`, {});
|
|
|
|
|
|
|
+ const res = await request.get(
|
|
|
|
|
+ `/main/professionCertification/getById/${id}`,
|
|
|
|
|
+ {}
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -100,7 +105,9 @@ export async function contactQcPackDetailAPI(id) {
|
|
|
* 删除客户证书资质包
|
|
* 删除客户证书资质包
|
|
|
*/
|
|
*/
|
|
|
export async function contactQcPackDeleteAPI(data) {
|
|
export async function contactQcPackDeleteAPI(data) {
|
|
|
- const res = await request.delete(`/main/professionCertification/delete`, { data });
|
|
|
|
|
|
|
+ const res = await request.delete(`/main/professionCertification/delete`, {
|
|
|
|
|
+ data
|
|
|
|
|
+ });
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -118,14 +125,10 @@ export async function contactQcSubmit(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 删除事项
|
|
* 删除事项
|
|
|
*/
|
|
*/
|
|
|
export async function contactDelete(data) {
|
|
export async function contactDelete(data) {
|
|
|
-
|
|
|
|
|
const res = await request.post('/eom/contact/delete', data);
|
|
const res = await request.post('/eom/contact/delete', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -133,7 +136,6 @@ export async function contactDelete(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取客户分类树
|
|
* 获取客户分类树
|
|
|
*/
|
|
*/
|
|
@@ -149,7 +151,9 @@ export async function contactTypeTree(data) {
|
|
|
* 更新用户状态
|
|
* 更新用户状态
|
|
|
*/
|
|
*/
|
|
|
export async function updateStatus(id, status) {
|
|
export async function updateStatus(id, status) {
|
|
|
- const res = await request.get(`/eom/contact/updateStatus?id=` + id + '&status=' + status);
|
|
|
|
|
|
|
+ const res = await request.get(
|
|
|
|
|
+ `/eom/contact/updateStatus?id=` + id + '&status=' + status
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data;
|
|
return res.data;
|
|
|
}
|
|
}
|
|
@@ -178,15 +182,14 @@ export async function free(data) {
|
|
|
/**
|
|
/**
|
|
|
* 申请
|
|
* 申请
|
|
|
*/
|
|
*/
|
|
|
-export async function apply(data) {
|
|
|
|
|
- const res = await request.post('/bpm/contactlistapply/apply', data);
|
|
|
|
|
|
|
+export async function applySave(data) {
|
|
|
|
|
+ const res = await request.post('/eom/contactlistapply/save', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 供应商维护供货产品
|
|
* 供应商维护供货产品
|
|
|
*/
|
|
*/
|
|
@@ -232,7 +235,7 @@ export async function updateContactDynamics(data) {
|
|
|
/**
|
|
/**
|
|
|
* 回复动态
|
|
* 回复动态
|
|
|
*/
|
|
*/
|
|
|
- export async function updateContactComment(data) {
|
|
|
|
|
|
|
+export async function updateContactComment(data) {
|
|
|
const res = await request.put('/eom/contact/updateContactComment', data);
|
|
const res = await request.put('/eom/contact/updateContactComment', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -242,8 +245,8 @@ export async function updateContactDynamics(data) {
|
|
|
/**
|
|
/**
|
|
|
* 摘要卡片
|
|
* 摘要卡片
|
|
|
*/
|
|
*/
|
|
|
- export async function queryContactIdCount(id) {
|
|
|
|
|
- const res = await request.get(`eom/contact/queryContactIdCount/`+id);
|
|
|
|
|
|
|
+export async function queryContactIdCount(id) {
|
|
|
|
|
+ const res = await request.get(`eom/contact/queryContactIdCount/` + id);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data;
|
|
return res.data;
|
|
|
}
|
|
}
|