diff --git a/src/api/common.js b/src/api/common.js index 1b9552a..f506633 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -1,39 +1,40 @@ -import request from "utils/axios.js"; +import request from 'utils/axios.js' // 远程搜索公司 -const getRefineryCompanyList = (params) => { - return request.postJson( - "/oil-user/oilCompanyInfo/getRefineryCompanyList", - params - ); -}; +const getRefineryCompanyList = params => { + return request.postJson('/oil-user/oilCompanyInfo/getRefineryCompanyList', params) +} // 远程总公司 -const getCompanyNames = (query) => { - return request.get(`oil-user/oilCompanyInfo/getCompanyNames/${query}`); -}; +const getCompanyNames = query => { + return request.get(`oil-user/oilCompanyInfo/getCompanyNames/${query}`) +} // 远程搜索用户 -const liekQuery = (query) => { - return request.get(`oil-user/sysCustomerInfo/liekQuery/${query}`); -}; +const liekQuery = query => { + return request.get(`oil-user/sysCustomerInfo/liekQuery/${query}`) +} // 用户详情 -const getInfo = (id) => { - return request.get(`/oil-user/oilCompanyInfo/get/${id}`); -}; +const getInfo = id => { + return request.get(`/oil-user/oilCompanyInfo/get/${id}`) +} //公司财务信息 -const getByCompanyIdFinance = (query) => { - return request.get(`/oil-user/oilCompanyFinance/getByCompanyId/${query}`); -}; +const getByCompanyIdFinance = query => { + return request.get(`/oil-user/oilCompanyFinance/getByCompanyId/${query}`) +} // 公司认证信息 -const getByCompanyIdAuth = (id) => { - return request.get(`/oil-user/oilCompanyAuth/getByCompanyId/${id}`); -}; +const getByCompanyIdAuth = id => { + return request.get(`/oil-user/oilCompanyAuth/getByCompanyId/${id}`) +} //公司账户信息 -const getByCompanyIdAccount = (query) => { - return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`); -}; +const getByCompanyIdAccount = query => { + return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`) +} // 银行信息 -const getByCompanyIdBankCard = (id) => { - return request.get(`/oil-finance/oilCompanyBankCard/getByCompanyId/${id}`); -}; +const getByCompanyIdBankCard = id => { + return request.get(`/oil-finance/oilCompanyBankCard/getByCompanyId/${id}`) +} +// 炼厂中心账户 +const findByEntity = params => { + return request.postJson('/oil-refinery/xoilRefineryCenterAccount/findByEntity', params) +} export default { getRefineryCompanyList, getCompanyNames, @@ -43,4 +44,5 @@ export default { getByCompanyIdAuth, getByCompanyIdFinance, getByCompanyIdBankCard, -}; + findByEntity +} diff --git a/src/views/refineryAccount/rechargeManagement/components/rechargeTurn.vue b/src/views/refineryAccount/rechargeManagement/components/rechargeTurn.vue index ddea4be..131b7b0 100644 --- a/src/views/refineryAccount/rechargeManagement/components/rechargeTurn.vue +++ b/src/views/refineryAccount/rechargeManagement/components/rechargeTurn.vue @@ -28,6 +28,9 @@ + + + @@ -49,6 +52,7 @@