diff --git a/src/api/common.js b/src/api/common.js new file mode 100644 index 0000000..81ce3d9 --- /dev/null +++ b/src/api/common.js @@ -0,0 +1,29 @@ +import request from "utils/axios.js"; +// 远程搜索公司 +const getRefineryCompanyList = (params) => { + return request.postJson( + "/oil-user/oilCompanyInfo/getRefineryCompanyList", + params + ); +}; +// 远程搜索用户 +const liekQuery = (query) => { + return request.get( + `oil-user/sysCustomerInfo/liekQuery/${query.queryTypeGet}` + ); +}; + +//公司账户详情 +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, +}; diff --git a/src/api/financialCenter/enterpriseRecharge.js b/src/api/financialCenter/enterpriseRecharge.js new file mode 100644 index 0000000..42756ae --- /dev/null +++ b/src/api/financialCenter/enterpriseRecharge.js @@ -0,0 +1,58 @@ +import request from "utils/axios.js"; +// table +const getByPage = (params) => { + return request.postJson( + "/oil-finance/oilCompanyAccountReverse/getByPage", + params + ); +}; +//详情 +const get = (query) => { + return request.get(`/oil-finance/oilCompanyAccountReverse/get/${query}`); +}; + +//公司财务详情 +const getByCompanyId = (query) => { + return request.get(`/oil-user/oilCompanyFinance/getByCompanyId/${query}`); +}; +// 新增 +const save = (params) => { + return request.postJson("/oil-finance/oilCompanyAccountReverse/save", params); +}; +// 修改 +const update = (params) => { + return request.postPut( + "/oil-finance/oilCompanyAccountReverse/update", + params + ); +}; +// 企业收款账户 +const getCascaderList = () => { + return request.get("/oil-finance/internalCompany/getCascaderList"); +}; +// 审核 +const audit = (params) => { + return request.postJson( + "/oil-finance/oilCompanyAccountReverse/refinery/audit", + params + ); +}; + +//公司 远程搜索 +// const getLikeByNameSuccess = (params) => { +// return request.postJson( +// "/oil-user/oilCompanyInfo/getLikeByNameSuccess", +// params +// ); +// }; + +export default { + getByPage, + get, + getByCompanyId, + save, + update, + getCascaderList, + audit, + // getLikeByNameSuccess, +}; diff --git a/src/api/login.js b/src/api/login.js index 7786ac1..6c74f3c 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -3,17 +3,31 @@ import request from "utils/axios.js"; const login = (params) => { return request.postJson("/oil-identity/oilRefinery/loginCOMSByPwd", params); }; +const loginOut = () => { + return request.get("/oil-identity/authorization/logout"); +}; //关联企业 const getRefineryByCustomerId = (phone) => { return request.get( `/oil-user/oilCustomerRefineryRelation/getRefineryByCustomerId/${phone}` ); }; + //路由 const getCustomerRouters = () => { return request.get( "/oil-identity/oilRefinery/getCustomerRouters/REFINERY_COMS_WEB" ); }; +// info +const info = () => { + return request.get("/oil-identity/unionAuth/info"); +}; -export default { login, getRefineryByCustomerId, getCustomerRouters }; +export default { + login, + loginOut, + getRefineryByCustomerId, + getCustomerRouters, + info, +}; diff --git a/src/components/autocomplete/index.vue b/src/components/autocomplete/index.vue new file mode 100644 index 0000000..126bba9 --- /dev/null +++ b/src/components/autocomplete/index.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/src/components/generalDetails/index.vue b/src/components/generalDetails/index.vue index 6509990..b26a077 100644 --- a/src/components/generalDetails/index.vue +++ b/src/components/generalDetails/index.vue @@ -1,5 +1,5 @@