Merge branch 'xiaozy_产品列表' of http://121.196.213.68:3000/xiaozhiyong/refinery-admin into lixuan
This commit is contained in:
@@ -17,9 +17,13 @@ const liekQuery = (query) => {
|
||||
const getByCompanyId = (query) => {
|
||||
return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`);
|
||||
};
|
||||
|
||||
//公司财务详情
|
||||
const getByCompanyIdFinance = (query) => {
|
||||
return request.get(`/oil-user/oilCompanyFinance/getByCompanyId/${query}`);
|
||||
};
|
||||
export default {
|
||||
getRefineryCompanyList,
|
||||
liekQuery,
|
||||
getByCompanyId,
|
||||
getByCompanyIdFinance,
|
||||
};
|
||||
|
||||
@@ -1,22 +1,30 @@
|
||||
import request from "utils/axios.js";
|
||||
// table
|
||||
const getByPage = (params) => {
|
||||
return request.postJson(
|
||||
"/oil-finance/oilCompanyAccount/getByPage",
|
||||
params
|
||||
);
|
||||
return request.postJson("/oil-finance/oilCompanyAccount/getByPage", params);
|
||||
};
|
||||
//修改账户状态
|
||||
const updateAccountState = (params) => {
|
||||
return request.postJson(
|
||||
"/oil-finance/oilCompanyAccount/getByPage",
|
||||
params
|
||||
);
|
||||
return request.postJson("/oil-finance/oilCompanyAccount/getByPage", params);
|
||||
};
|
||||
|
||||
//保存
|
||||
const save = (params) => {
|
||||
return request.postJson("/oil-finance/oilCompanyAccountReverse/save", params);
|
||||
};
|
||||
//详情
|
||||
const get = (id) => {
|
||||
return request.get(`/oil-finance/oilCompanyAccount/get/${id}`);
|
||||
};
|
||||
|
||||
const getByCompanyIdAuth = (id) => {
|
||||
return request.get(`/oil-user/oilCompanyAuth/getByCompanyId/${id}`);
|
||||
};
|
||||
|
||||
const getInfo = (id) => {
|
||||
return request.get(`/oil-user/oilCompanyInfo/get/${id}`);
|
||||
};
|
||||
|
||||
// //详情
|
||||
// const getCompanyAccountRecord = (params) => {
|
||||
// return request.postJson(
|
||||
@@ -27,5 +35,8 @@ const get = (id) => {
|
||||
export default {
|
||||
getByPage,
|
||||
updateAccountState,
|
||||
get
|
||||
get,
|
||||
save,
|
||||
getByCompanyIdAuth,
|
||||
getInfo,
|
||||
};
|
||||
|
||||
@@ -3,10 +3,15 @@ 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");
|
||||
};
|
||||
|
||||
//路由
|
||||
const getCustomerRouters = () => {
|
||||
return request.get(
|
||||
"/oil-identity/oilRefinery/getCustomerRouters/REFINERY_OMS_WEB"
|
||||
);
|
||||
};
|
||||
export default { login, getCustomerRouters };
|
||||
export default { login, loginOut, getCustomerRouters };
|
||||
|
||||
Reference in New Issue
Block a user