更新
This commit is contained in:
@@ -6,6 +6,10 @@ const getRefineryCompanyList = (params) => {
|
||||
params
|
||||
);
|
||||
};
|
||||
// 远程总公司
|
||||
const getCompanyNames = (query) => {
|
||||
return request.get(`oil-user/oilCompanyInfo/getCompanyNames/${query}`);
|
||||
};
|
||||
// 远程搜索用户
|
||||
const liekQuery = (query) => {
|
||||
return request.get(`oil-user/sysCustomerInfo/liekQuery/${query}`);
|
||||
@@ -14,10 +18,6 @@ const liekQuery = (query) => {
|
||||
const getInfo = (id) => {
|
||||
return request.get(`/oil-user/oilCompanyInfo/get/${id}`);
|
||||
};
|
||||
//公司账户信息
|
||||
const getByCompanyIdAccount = (query) => {
|
||||
return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`);
|
||||
};
|
||||
//公司财务信息
|
||||
const getByCompanyIdFinance = (query) => {
|
||||
return request.get(`/oil-user/oilCompanyFinance/getByCompanyId/${query}`);
|
||||
@@ -26,12 +26,21 @@ const getByCompanyIdFinance = (query) => {
|
||||
const getByCompanyIdAuth = (id) => {
|
||||
return request.get(`/oil-user/oilCompanyAuth/getByCompanyId/${id}`);
|
||||
};
|
||||
|
||||
//公司账户信息
|
||||
const getByCompanyIdAccount = (query) => {
|
||||
return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`);
|
||||
};
|
||||
// 银行信息
|
||||
const getByCompanyIdBankCard = (id) => {
|
||||
return request.get(`/oil-finance/oilCompanyBankCard/getByCompanyId/${id}`);
|
||||
};
|
||||
export default {
|
||||
getRefineryCompanyList,
|
||||
getCompanyNames,
|
||||
liekQuery,
|
||||
getInfo,
|
||||
getByCompanyIdAccount,
|
||||
getByCompanyIdFinance,
|
||||
getByCompanyIdAuth,
|
||||
getByCompanyIdFinance,
|
||||
getByCompanyIdBankCard,
|
||||
};
|
||||
|
||||
@@ -27,6 +27,17 @@ const saveAttestation = (params) => {
|
||||
const updateAttestation = (params) => {
|
||||
return request.postPut("oil-user/oilCompanyAuth/update", params);
|
||||
};
|
||||
//银行信息保存/修改
|
||||
const saveBank = (params) => {
|
||||
return request.postJson(
|
||||
"/oil-finance/oilCompanyBankCard/saveBatchCompanyRelationBank",
|
||||
params
|
||||
);
|
||||
};
|
||||
// //银行信息修改
|
||||
// const updateBank = (params) => {
|
||||
// return request.postPut("oil-user/oilCompanyAuth/update", params);
|
||||
// };
|
||||
//财务信息保存
|
||||
const saveFinance = (params) => {
|
||||
return request.postJson("/oil-user/oilCompanyFinance/save", params);
|
||||
@@ -39,6 +50,10 @@ const updateFinance = (params) => {
|
||||
const liekQuery = (query) => {
|
||||
return request.get(`/oil-user/sysCustomerInfo/liekQuery/${query}`);
|
||||
};
|
||||
// 开户行名称 远程搜索
|
||||
const findAllByName = (query) => {
|
||||
return request.get(`/oil-site/sysSheet/findAllByName?name=${query}`);
|
||||
};
|
||||
// 级联
|
||||
const getTree = () => {
|
||||
return request.get("/oil-dict/areaCode/getTree");
|
||||
@@ -48,10 +63,13 @@ export default {
|
||||
getCompanyAccountRecord,
|
||||
update,
|
||||
liekQuery,
|
||||
findAllByName,
|
||||
save,
|
||||
getTree,
|
||||
saveAttestation,
|
||||
updateAttestation,
|
||||
saveBank,
|
||||
// updateBank,
|
||||
saveFinance,
|
||||
updateFinance,
|
||||
// getInfo,
|
||||
|
||||
@@ -3,10 +3,14 @@ import request from "utils/axios.js";
|
||||
const login = (params) => {
|
||||
return request.postJson("/oil-identity/oilRefinery/loginOMSByPwd", params);
|
||||
};
|
||||
|
||||
// 登出
|
||||
const loginOut = () => {
|
||||
return request.get("/oil-identity/authorization/logout");
|
||||
};
|
||||
// info
|
||||
const info = () => {
|
||||
return request.get("/oil-identity/unionAuth/info");
|
||||
};
|
||||
|
||||
//路由
|
||||
const getCustomerRouters = () => {
|
||||
@@ -14,4 +18,4 @@ const getCustomerRouters = () => {
|
||||
"/oil-identity/oilRefinery/getCustomerRouters/REFINERY_OMS_WEB"
|
||||
);
|
||||
};
|
||||
export default { login, loginOut, getCustomerRouters };
|
||||
export default { login, loginOut, info, getCustomerRouters };
|
||||
|
||||
Reference in New Issue
Block a user