diff --git a/src/api/customerManagement/areaCode.js b/src/api/customerManagement/areaCode.js new file mode 100644 index 0000000..06832e0 --- /dev/null +++ b/src/api/customerManagement/areaCode.js @@ -0,0 +1,98 @@ +import request from '@/utils/request' +var service_name = 'oil-dict' +var group_name = 'areaCode' +export default { + getByPage(page) { // 分页查询 + return request({ + url: `/${service_name}/${group_name}/getByPage`, + notEncrypt: true, + method: 'post', + data: page + }) + }, + save(areaCode) { // 保存 + return request({ + url: `/${service_name}/${group_name}/save`, + notEncrypt: true, + method: 'post', + data: areaCode + }) + }, + get(id) { // 根据id查询 + return request({ + url: `/${service_name}/${group_name}/get/${id}`, + notEncrypt: true, + method: 'get' + }) + }, + getTree() { // 树状查询 + return request({ + url: `/${service_name}/${group_name}/getTree`, + notEncrypt: true, + method: 'get' + }) + }, + treeListNoCounty() { // 树状查询没有区 + return request({ + url: `/${service_name}/${group_name}/treeListNoCounty`, + notEncrypt: true, + method: 'get' + }) + }, + update(areaCode) { // 更新 + return request({ + url: `/${service_name}/${group_name}/update`, + notEncrypt: true, + method: 'put', + data: areaCode + }) + }, + exportExcel(page) { // 导出 + return request({ + url: `/${service_name}/${group_name}/export`, + notEncrypt: true, + method: 'post', + data: page, + responseType: 'blob' + }) + }, + exportSiteWeb(page) { // 导出 + return request({ + url: `/oil-finance/oilOrderInfoExcel/exportSiteWeb`, + notEncrypt: true, + method: 'post', + data: page, + responseType: 'blob' + }) + }, + deleteById(id) { // 根据id删除 + return request({ + url: `/${service_name}/${group_name}/delete`, + notEncrypt: true, + method: 'put', + data: { id: id } + }) + }, + getGroupList() { // 分组查询 最终查询的结果是省市县各一个集合 + return request({ + url: `/${service_name}/${group_name}/getGroupList`, + notEncrypt: true, + method: 'get' + }) + }, + areaCodeProvince() { // 分组查询 最终查询的结果是省市县各一个集合 + return request({ + url: `/${service_name}/${group_name}/areaCodeProvince`, + notEncrypt: true, + method: 'get' + }) + }, + findAllByName(name) { // 分组查询 最终查询的结果是省市县各一个集合 + return request({ + url: `/oil-site/sysSheet/findAllByName`, + method: 'get', + params:name + }) + } + +} diff --git a/src/api/customerManagement/oilCompanyAuth.js b/src/api/customerManagement/oilCompanyAuth.js new file mode 100644 index 0000000..596f6ff --- /dev/null +++ b/src/api/customerManagement/oilCompanyAuth.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' +var service_name = 'oil-user' +var group_name = 'oilCompanyAuth' +export default { + getByPage(page) { // 分页查询 + return request({ + url: `/${service_name}/${group_name}/getByPage`, + method: 'post', + data: page + }) + }, + save(oilCompanyAuth) { // 保存 + return request({ + url: `/${service_name}/${group_name}/save`, + method: 'post', + data: oilCompanyAuth + }) + }, + get(id) { // 根据id查询 + return request({ + url: `/${service_name}/${group_name}/get/${id}`, + method: 'get' + }) + }, + update(oilCompanyAuth) { // 更新 + return request({ + url: `/${service_name}/${group_name}/update`, + method: 'put', + data: oilCompanyAuth + }) + }, + exportExcel(page) { // 导出 + return request({ + url: `/${service_name}/${group_name}/export`, + method: 'post', + notEncrypt: true, + data: page, + responseType: 'blob' + }) + }, + deleteById(id) { // 根据id删除 + return request({ + url: `/${service_name}/${group_name}/delete`, + method: 'put', + data: { id: id } + }) + }, + getByCompanyId(id) { // 根据企业编号查询 + return request({ + url: `/${service_name}/${group_name}/getByCompanyId/${id}`, + method: 'get' + }) + } +} diff --git a/src/api/customerManagement/oilCompanyInfo.js b/src/api/customerManagement/oilCompanyInfo.js new file mode 100644 index 0000000..ebb45ce --- /dev/null +++ b/src/api/customerManagement/oilCompanyInfo.js @@ -0,0 +1,283 @@ +import request from "@/utils/request"; +var service_name = "oil-user"; +var group_name = "oilCompanyInfo"; +export default { + getByPage(page) { + // 分页查询 + return request({ + url: `/${service_name}/${group_name}/getByPage`, + method: "post", + data: page, + }); + }, + save(oilCompanyInfo) { + // 保存 + return request({ + url: `/${service_name}/${group_name}/save`, + method: "post", + data: oilCompanyInfo, + }); + }, + get(id) { + // 根据id查询 + return request({ + url: `/${service_name}/${group_name}/get/${id}`, + method: "get", + }); + }, + update(oilCompanyInfo) { + // 更新 + return request({ + url: `/${service_name}/${group_name}/update`, + method: "put", + data: oilCompanyInfo, + }); + }, + exportExcel(page) { + // 导出 + return request({ + url: `/oil-finance/oilOrderInfoExcel/exportExcel`, + method: "post", + // notEncrypt: true, + data: page, + responseType: "blob", + }); + }, + deleteById(id) { + // 根据id删除 + return request({ + url: `/${service_name}/${group_name}/delete`, + method: "put", + data: { id: id }, + }); + }, + + getAllCompany() { + // 获取全部可用企业 + return request({ + url: `/${service_name}/${group_name}/getAllCompany`, + method: "get", + }); + }, + getLikeByName(oilCompanyInfo) { + // 根据企业名称模糊搜索 + return request({ + url: `/${service_name}/${group_name}/getLikeByName`, + method: "post", + data: oilCompanyInfo, + }); + }, + getRelationSite(oilCompanyInfo) { + // 根据企业名称模糊搜索 + return request({ + url: `/oil-site/oilSiteInfo/getRelationSite`, + method: "post", + data: oilCompanyInfo, + }); + }, + getByEntity(oilCompanyInfo) { + // 模糊查询 + return request({ + url: `/${service_name}/${group_name}/getByEntity`, + method: "post", + data: oilCompanyInfo, + }); + }, + getSubCompany(oilCompanyInfo) { + // 查询子公司或者同级公司和总公司 + return request({ + url: `/${service_name}/${group_name}/getSubCompany`, + method: "post", + data: oilCompanyInfo, + }); + }, + getLikeByNameOrId(oilCompanyInfo) { + // 根据企业名称模糊搜索 + return request({ + url: `/${service_name}/${group_name}/getLikeByNameOrId`, + method: "post", + data: oilCompanyInfo, + }); + }, + getLikeByNameMainCompany(oilCompanyInfo) { + // 根据企业名称模糊搜索 + return request({ + url: `/${service_name}/${group_name}/getLikeByNameMainCompany`, + method: "post", + data: oilCompanyInfo, + }); + }, + getLikeByNameAndId(oilCompanyInfo) { + // 根据企业名称和企业编号,模糊搜索不等于当前公司的其他公司 + return request({ + url: `/${service_name}/${group_name}/getLikeByNameAndId`, + method: "post", + data: oilCompanyInfo, + }); + }, + updateBatchEnable(data) { + // 批量修改启用禁用状态 + return request({ + url: `/${service_name}/${group_name}/updateBatchEnable`, + method: "post", + data, + }); + }, + openShareDistribute(data) { + // 批量修改启用禁用状态 + return request({ + url: `/${service_name}/${group_name}/openShareDistribute`, + method: "post", + data, + }); + }, + audit(data) { + // 审核 + return request({ + url: `/${service_name}/${group_name}/audit`, + method: "post", + data, + }); + }, + getLikeByNameSuccess(data) { + // 根据企业名称模糊搜索可用企业 + return request({ + url: `/${service_name}/${group_name}/getLikeByNameSuccess`, + method: "post", + data, + }); + }, + getByUserId(id) { + // 根据用户id查询 + return request({ + url: `/${service_name}/${group_name}/getByUserId/${id}`, + method: "get", + }); + }, + getByCustomerId(id) { + // 查询用户关联调度企业 + return request({ + url: `/${service_name}/oilCustomerDispatchRelation/getByCustomerId/${id}`, + method: "get", + }); + }, + getRefineryByCustomerId(id) { + // 查询用户关联油批企业 + return request({ + url: `/${service_name}/oilCustomerDispatchRelation/getRefineryByCustomerId/${id}`, + method: "get", + }); + }, + getByRole(data, userId) { + // 根据角色获取对应的企业 + return request({ + url: `/${service_name}/${group_name}/getByRole/${userId}`, + method: "post", + data, + }); + }, + getLike(value) { + // 模糊搜索企业 + return request({ + url: `/${service_name}/${group_name}/getLike/${value}`, + method: "get", + }); + }, + getCompanyListCustomer(id) { + // 获取发起公司列表 + return request({ + url: `/${service_name}/${group_name}/getCompanyListCustomer`, + method: "get", + }); + }, + getCompanyList(id) { + return request({ + url: `/${service_name}/${group_name}/getCompanyList`, + method: "get", + }); + }, + getSubCompanyListCustomer(id) { + // 获取接收公司列表 + return request({ + url: `/${service_name}/${group_name}/getSubCompanyListCustomer`, + method: "get", + }); + }, + // 获取企业列表(远程搜索) + getCompanyNames(name) { + return request({ + url: `/${service_name}/${group_name}/getCompanyNames/${name}`, + method: "get", + }); + }, + // 获取企业列表(远程搜索) + // getLikeByNameMainCompany(data) { + // return request({ + // url: `/${service_name}/${group_name}/getLikeByNameMainCompany`, + // method: "post", + // data, + // }); + // }, + // 企业用户手机号验证 + validatePhoneUserRolePermissions(data) { + return request({ + url: `/${service_name}/oilCustomerCompanyRelation/validatePhoneUserRolePermissions`, + method: "post", + data, + }); + }, + findByUserId(data) { + return request({ + url: `/oil-user/etcUserCustomer/findByUserId`, + method: "get", + params: data, + }); + }, + findAllCustomerList(data) { + return request({ + url: `/lsm-etc-service/etcCustomer/findAllCustomerList`, + method: "get", + params: data, + }); + }, + // deleteById(data) { + // return request({ + // url: `/oil-user/etcUserCustomer/deleteById`, + // method: "get", + // params: data, + // }); + // }, + getByCompanyId(companyId) { + return request({ + url: `/oil-finance/oilCompanyBankCard/getByCompanyId/${companyId}`, + method: "get", + }); + }, + saveBatchCompanyRelationBank(data) { + return request({ + url: `/oil-finance/oilCompanyBankCard/saveBatchCompanyRelationBank`, + method: "post", + data, + }); + }, + countByCompanyId(id) { + return request({ + url: `/oil-site/oilCompanySiteInfoRelation/countByCompanyId/${id}`, + method: "get", + }); + }, + export(id) { + return request({ + url: `/oil-site/oilCompanySiteInfoRelation/export/${id}`, + method: "get", + responseType: "blob", + }); + }, + importSave(data) { + return request({ + url: `/oil-site/oilCompanySiteInfoRelation/importSave`, + method: "post", + data, + }); + }, +}; diff --git a/src/api/user/sysCustomerInfo.js b/src/api/user/sysCustomerInfo.js new file mode 100644 index 0000000..f5331fb --- /dev/null +++ b/src/api/user/sysCustomerInfo.js @@ -0,0 +1,196 @@ +import request from '@/utils/request' +var service_name = 'oil-user' +var group_name = 'sysCustomerInfo' +export default { + getByPage(page) { // 分页查询 + return request({ + url: `/${service_name}/${group_name}/getByPage`, + method: 'post', + data: page + }) + }, + save(sysCustomerInfo) { // 保存 + return request({ + url: `/${service_name}/${group_name}/save`, + method: 'post', + data: sysCustomerInfo + }) + }, + get(id) { // 根据id查询 + return request({ + url: `/${service_name}/${group_name}/get/${id}`, + method: 'get' + }) + }, + getByBusinessLeader(businessLeader) { // 根据id删除 + return request({ + url: `/${service_name}/${group_name}/getByBusinessLeader`, + method: 'get', + params: { + businessLeader + } + }) + }, + findAll() { // 根据id查询 + return request({ + url: `/${service_name}/${group_name}/findAll`, + method: 'get' + }) + }, + getTodayRegister() { // 查询当日新增会员 + return request({ + url: `/${service_name}/${group_name}/getTodayRegister`, + method: 'get' + }) + }, + getYesterdayData() { // 查询当日新增会员 + return request({ + url: `/${service_name}/${group_name}/getYesterdayData`, + method: 'get' + }) + }, + getLoginCount() { // 查询当前登录人数 + return request({ + url: `/${service_name}/${group_name}/getLoginCount`, + method: 'get' + }) + }, + findByBusinessLeader(businessLeader) { // 查询当前登录人数 + return request({ + url: `/${service_name}/${group_name}/findByBusinessLeader`, + method: 'get', + params: { + businessLeader + } + }) + }, + getTotalCount() { // 查询用户总数 + return request({ + url: `/${service_name}/${group_name}/getTotalCount`, + method: 'get' + }) + }, + update(sysCustomerInfo) { // 更新 + return request({ + url: `/${service_name}/${group_name}/update`, + method: 'put', + data: sysCustomerInfo + }) + }, + exportExcel(page) { // 导出 + return request({ + url: `/${service_name}/${group_name}/export`, + method: 'post', + notEncrypt: true, + data: page, + responseType: 'blob' + }) + }, + deleteById(id) { // 根据id删除 + return request({ + url: `/${service_name}/${group_name}/delete`, + method: 'put', + data: { id: id } + }) + }, + updateBatchEnalbe(data) { // 批量修改启用禁用状态 + return request({ + url: `/${service_name}/${group_name}/updateBatchEnalbe`, + method: 'post', + data + }) + }, + liekQuery(value) { // 模糊搜索 + return request({ + url: `/${service_name}/${group_name}/liekQuery/${value}`, + method: 'get' + }) + }, + searchInfo(value) { // 根据手机号、编号、姓名查询 + return request({ + url: `/${service_name}/${group_name}/searchInfo/${value}`, + method: 'get' + }) + }, + getByPhone(phone) { // 模糊搜索 + return request({ + url: `/${service_name}/${group_name}/getByPhone/${phone}`, + method: 'get' + }) + }, + getByPhoneNoGlobalEnable(phone) { // 根据用户手机号查询 + return request({ + url: `/${service_name}/${group_name}/getByPhoneNoGlobalEnable/${phone}`, + method: 'get' + }) + }, + getListByPhoneNoGlobalEnable(phone) { // 根据用户手机号查询 + return request({ + url: `/${service_name}/${group_name}/getListByPhoneNoGlobalEnable/${phone}`, + method: 'get' + }) + }, + saveDriver(sysCustomerInfo) { // 保存 + return request({ + url: `/${service_name}/${group_name}/saveDriver`, + method: 'post', + data: sysCustomerInfo + }) + }, + getDriverByPage(page) { // 获取司机列表 + return request({ + url: `/${service_name}/${group_name}/getDriverByPage`, + method: 'post', + data: page + }) + }, + getByPages(page) { // 获取司机列表 + return request({ + url: `/${service_name}/${group_name}/getByPages`, + method: 'post', + data: page + }) + }, + getCompanyDrivers(sysCustomerInfo) { // 保存 + return request({ + url: `/${service_name}/${group_name}/getCompanyDrivers`, + method: 'post', + data: sysCustomerInfo + }) + }, + getCompanyDriversOwn(sysCustomerInfo) { // 保存 + return request({ + url: `/${service_name}/${group_name}/getCompanyDriversOwn`, + method: 'post', + data: sysCustomerInfo + }) + }, + // 根据用户编号查询 + getUserNameMaps() { + return request({ + url: `/${service_name}/${group_name}/getAllUserNameMaps`, + method: 'get' + }) + }, + userPermissionUpdate(data) { // 企业用户信息修改 + return request({ + url: `/${service_name}/oilCustomerCompanyRelation/userPermissionUpdate`, + method: 'post', + data + }) + }, + getRechargeCode(data) { // 获取操作码 + return request({ + url: `/oil-finance/lc/getRechargeCode`, + method: 'post', + data + }) + }, + userPermissionSave(data) { // 添加企业用户 + return request({ + url: `/${service_name}/oilCustomerCompanyRelation/userPermissionSave`, + method: 'post', + data + }) + }, +} diff --git a/src/views/customerManagement/companyAuth/OilCompanyAuthAdd.vue b/src/views/customerManagement/companyAuth/OilCompanyAuthAdd.vue new file mode 100644 index 0000000..9d705eb --- /dev/null +++ b/src/views/customerManagement/companyAuth/OilCompanyAuthAdd.vue @@ -0,0 +1,356 @@ + + + diff --git a/src/views/customerManagement/companyManagement/OilCompanyInfoAdd.vue b/src/views/customerManagement/companyManagement/OilCompanyInfoAdd.vue new file mode 100644 index 0000000..b999698 --- /dev/null +++ b/src/views/customerManagement/companyManagement/OilCompanyInfoAdd.vue @@ -0,0 +1,201 @@ + + diff --git a/src/views/customerManagement/companyManagement/index.vue b/src/views/customerManagement/companyManagement/index.vue index 0478afb..7efd1f8 100644 --- a/src/views/customerManagement/companyManagement/index.vue +++ b/src/views/customerManagement/companyManagement/index.vue @@ -1,176 +1,242 @@