185 lines
8.2 KiB
TypeScript
185 lines
8.2 KiB
TypeScript
/*
|
|
* @Author: your name
|
|
* @Date: 2021-11-29 15:22:34
|
|
* @LastEditTime : 2022-04-25 13:39:46
|
|
* @LastEditors : Shiming
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\usercenter\\services\\usercenter.service.ts
|
|
*/
|
|
import { Injectable, Injector } from '@angular/core';
|
|
import { cacheConf } from '@conf/cache.conf';
|
|
import { _HttpClient } from '@delon/theme';
|
|
import { EACacheService, ShipperBaseService } from '@shared';
|
|
import { NzImageService } from 'ng-zorro-antd/image';
|
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class UsermanageService extends ShipperBaseService {
|
|
// 获取一、二、三级地区详情
|
|
$api_getRegionToThree = '/api/mdc/pbc/region/getRegionToThree';
|
|
// 查询企业列表
|
|
$api_get_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/list/page';
|
|
// 导出企业列表
|
|
$api_export_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/export';
|
|
// 查询企业详情
|
|
$api_get_freight_detail = '/api/mdc/cuc/enterpriseInfo/operate/detail';
|
|
// 查询车队长列表-运营后台
|
|
$api_get_user_expand = '/api/mdc/userDriverExpand/list/page';
|
|
// 添加企业业务员
|
|
$api_add_salesman = '/api/mdc/cuc/enterpriseInfo/operate/addSalesman';
|
|
// 添加货主,司机,车队长业务员
|
|
$api_add_user_salesman = '/api/mdc/cuc/user/addPromoter';
|
|
// 冻结/启用企业业
|
|
$api_lock_freight = '/api/mdc/cuc/enterpriseInfo/operate/lock';
|
|
// 企业审核
|
|
$api_audit_freight = '/api/mdc/cuc/enterpriseInfo/operate/audit';
|
|
// 查询下一个待审核的企业ID
|
|
$api_get_next_audit_freight = '/api/mdc/cuc/enterpriseInfo/operate/getNextWaitAuditId';
|
|
|
|
// 查询货主配置列表
|
|
$api_freight_config_page = '/api/mdc/cuc/enterpriseInfo/operate/list/configPage';
|
|
// 导出货主配置列表
|
|
$api_export_freight_config = '/api/mdc/cuc/enterpriseInfo/operate/exportConfig';
|
|
// 更新企业超级管理员权限
|
|
$api_update_enter_role_batch = '/api/mdc/cuc/enterpriseInfo/operate/updateRole';
|
|
// 批量更新企业网络货运人
|
|
$api_update_enter_newowork_batch = '/api/mdc/cuc/enterpriseInfo/operate/updatnNetworkTransporter';
|
|
|
|
// 货主员工列表(运营后台)
|
|
$api_get_user_list = '/api/mdc/cuc/userApp/getShipperUserInfoList';
|
|
// 货主员工列表导出(运营后台-企业项目维度)
|
|
$api_get_user_list_export = '/api/mdc/cuc/userApp/shipperUserInfoExport';
|
|
// 冻结或恢复员工
|
|
$api_lock_staff = '/api/mdc/cuc/userApp/freezeOrResumeStaff';
|
|
// 冻结或恢复应用用户
|
|
$api_lock_app_user = '/api/mdc/cuc/userApp/freezeOrResume';
|
|
// 冻结/启用用户
|
|
$api_lock_user = '/api/mdc/cuc/enterpriseInfo/operate/lock';
|
|
|
|
// 查询司机列表
|
|
$api_get_driver_list = '/api/mdc/cuc/driver/list/page';
|
|
// 根据应用用户id获取用户详情
|
|
$api_get_user_detail = '/api/mdc/cuc/user/getUserDetailByAppUserId';
|
|
// 根据应用用户ID获取身份信息表
|
|
$api_get_user_identity = '/api/mdc/cuc/identityInfo/getIdentityInfoByAppUserId';
|
|
// 司机详情查看-驾驶证
|
|
$api_get_driver_license = '/api/mdc/cuc/driver/getDriversLicense';
|
|
// 司机详情查看-从业资格证信息
|
|
$api_get_driver_practice_seniority = '/api/mdc/cuc/driver/getDriversPracticeSeniority';
|
|
// 司机详情查看-载具信息
|
|
$api_get_driver_car_license = '/api/mdc/cuc/carLicense/getUserCatListByUserIds';
|
|
// 司机详情查看-获取用户关联的企业项目角色信息
|
|
$api_get_driver_projects = '/api/mdc/cuc/user/getEnterpriceProjectInfo';
|
|
|
|
// 根据应用用户ID获取银行信息表
|
|
$api_get_user_bank_list = '/api/fcc/bankInfoOBC/list/page';
|
|
|
|
// 获取服务评级
|
|
$api_get_driver_billEvaluate = '/api/sdc/billEvaluate/getServiceRating';
|
|
// 总评分
|
|
$api_get_freight_billEvaluate = '/api/sdc/billEvaluate/getTotalScore';
|
|
|
|
// 修改实名认证-运营管理后台
|
|
$api_update_driver_identity = '/api/mdc/cuc/identityInfo/operatorAlterIdentity';
|
|
// 修改驾驶证信息
|
|
$api_update_driver_license = '/api/mdc/cuc/driver/updateDriverLicense';
|
|
|
|
// 冻结或恢复应用用户
|
|
$api_lock_or_free_user = '/api/mdc/cuc/userApp/freezeOrResume';
|
|
// 人工审核实名认证
|
|
$api_approve_identity = '/api/mdc/cuc/identityInfo/identityAudit';
|
|
// 审核驾驶证信息
|
|
$api_approve_driver_license = '/api/mdc/cuc/driver/auditDriverLicense';
|
|
|
|
// 查询企业管理员审核信息
|
|
$api_get_enterprise_admin_list = '/api/mdc/cuc/enterpriseAdmin/operate/list/page';
|
|
// 根据主键ID获取企业管理员审核信息
|
|
$api_get_enterprise_user_by_id = '/api/mdc/cuc/enterpriseAdmin/operate/get';
|
|
// 审核企业管理员
|
|
$api_audit_enterprise_admin = '/api/mdc/cuc/enterpriseAdmin/operate/audit';
|
|
// 保存企业信息表
|
|
$api_save_enterprise_admin = '/api/mdc/cuc/enterpriseInfo/operate/save';
|
|
|
|
// 根据地区code查询列表
|
|
$api_get_region_by_code = '/api/mdc/pbc/region/getRegionByCode';
|
|
// 根据地区code查询地区详情
|
|
$api_get_region_detail_by_code = '/api/mdc/pbc/region/getRegionDetailByCode';
|
|
|
|
// 导出企业
|
|
$api_export_enterprise = '/api/mdc/cuc/enterpriseInfo/operate/export';
|
|
// 司机列表导出
|
|
$api_export_driver = '/api/mdc/cuc/driver/export';
|
|
// 车队长导出-运营后台
|
|
$api_export_driver_cap = '/api/mdc/userDriverExpand/export';
|
|
// 司机配置列表导出-运营后台
|
|
$api_driver_exportConfig = '/api/mdc/cuc/driver/exportConfig';
|
|
|
|
// 营业执照识别
|
|
$api_ocr_recognize_business_license = '/api/mdc/pbc/hwc/ocr/recognizeBusinessLicense';
|
|
// 身份证识别
|
|
$api_ocr_recognize_id_card = '/api/mdc/pbc/hwc/ocr/recognizeIdCard';
|
|
// 获取字典
|
|
$api_getDictValue = '/api/mdc/pbc/dictItems/getDictValue';
|
|
// 获取个人刷脸结果
|
|
$api_getFaceFlowQuery = '/api/mdc/pbc/factorsVerify/getFaceFlowQuery';
|
|
|
|
///////////////////
|
|
// 识别身份证
|
|
$api_checkIdCard = '/api/mdc/pbc/hwc/ocr/recognizeIdCard';
|
|
// 从业资格证
|
|
$api_recognizeQualificationCertificate = '/api/mdc/pbc/hwc/ocr/recognizeQualificationCertificate';
|
|
// 驾驶证识别
|
|
$api_recognizeDriverLicense = `/api/mdc/pbc/hwc/ocr/recognizeDriverLicense`;
|
|
// 根据地区code查询列表
|
|
$api_getRegionByCode = '/api/mdc/pbc/region/getRegionByCode';
|
|
// 新增熟车
|
|
$api_enterpriseVehicleSave = `/api/mdc/cuc/enterpriseVehicle/save`;
|
|
|
|
// 结算单-新增车队长
|
|
$api_saveCaptainr = '/api/mdc/cuc/enterpriseSettleDriver/saveCaptainr';
|
|
// 结算单-车队长详情
|
|
$api_captainrDetail = '/api/mdc/cuc/enterpriseSettleDriver/captainrDetail';
|
|
// 根据手机号码查询结算单司机
|
|
$api_getByMobile = '/api/mdc/cuc/identityInfo/getByMobile';
|
|
|
|
// 添加司机
|
|
$api_driver_add = '/api/mdc/cuc/driver/add';
|
|
// 添加车队长
|
|
$api_saveCaptainr_new = '/api/mdc/userDriverExpand/saveCaptainr';
|
|
|
|
// 查询司机配置列表
|
|
$api_configPage = '/api/mdc/cuc/driver/list/configPage';
|
|
|
|
// 批量修改企业渠道
|
|
$api_batchUpdateEnterpriceChannel = '/api/mdc/enterpriseRelLog/batchUpdateEnterpriceChannel';
|
|
// 批量修改企业合伙人
|
|
$api_batchUpdateEnterpricePartner = '/api/mdc/enterpriseRelLog/batchUpdateEnterpricePartner';
|
|
// 渠道销售修改详情
|
|
$api_partnerChannelUpdateDetaiList = '/api/mdc/partnerChannelRelLog/partnerChannelUpdateDetaiList';
|
|
// 查询企业修改合伙人记录
|
|
$api_findEnterpricePartnerRelLog = '/api/mdc/enterpriseRelLog/findEnterpricePartnerRelLog';
|
|
// 查询企业修改渠道记录
|
|
$api_findEnterpriceChannelRelLog = '/api/mdc/enterpriseRelLog/findEnterpriceChannelRelLog';
|
|
// 查询企业合伙人渠道关系信息
|
|
$api_getEnterpriceRel = '/api/mdc/enterpriseRelLog/getEnterpriceRel';
|
|
// 员工列表
|
|
$api_getStaffList = '/api/mdc/cuc/userApp/getStaffList';
|
|
// 分配客服人员
|
|
$api_distributionCusService = '/api/mdc/cuc/enterpriseInfo/operate/distributionCusService';
|
|
|
|
constructor(public injector: Injector, public nzModalService: NzModalService, private nzImageService: NzImageService) {
|
|
super(injector);
|
|
}
|
|
|
|
showImg(url: any) {
|
|
const params = {
|
|
imgList: [url],
|
|
index: 0
|
|
};
|
|
this.nzImageService.preview([{ src: url }]);
|
|
// this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
|
}
|
|
}
|