From da196203e8fa7ce91538ad0fe8440fe2603e1a24 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Mon, 19 Jun 2023 15:02:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common.js | 60 ++++++++++--------- .../components/rechargeTurn.vue | 22 ++++++- .../rechargeManagement/index.vue | 2 +- 3 files changed, 52 insertions(+), 32 deletions(-) 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 @@