parent
3258ccaf6d
commit
e91c7f28f0
28 changed files with 1203 additions and 1258 deletions
@ -1,452 +1,242 @@ |
||||
import { get, post, put, del,Url } from './http'; |
||||
// let host = 'http://192.168.31.137:8080';//陈赓
|
||||
|
||||
import { |
||||
get, |
||||
post, |
||||
put, |
||||
del, |
||||
Url |
||||
} from './http'; |
||||
let host = Url; |
||||
|
||||
export const login = p => post('/apiHrmsAuth/hrms/auth/userlogin/login', p); //登录
|
||||
export const phoneCode = p => get('/apiHrmsAuth/hrms/auth/userlogin/sendCode', p); //找回密码验证码
|
||||
|
||||
export const verifyMobile = p => post('/apiHrmsAuth/hrms/auth/userlogin/verifyMobile', p); //忘记密码
|
||||
export const getBackPwd = p => post('/apiHrmsAuth/hrms/auth/userlogin/getBackPwd', p); //设置新密码
|
||||
export const querycustomerList = p => get('/api-crms/crms/customer/queryList', p); //查询客户
|
||||
export const deleteCustomer = p => del('/api-crms/crms/customer/deleteCustomer', p); //删除客户
|
||||
export const queryDetails = p => get('/api-crms/crms/customer/queryDetails', p); //查询客户详情
|
||||
export const savePersonal = p => post('/api-crms/crms/customer/savePersonal', p); //添加个人客户
|
||||
export const saveCompany = p => post('/api-crms/crms/customer/saveCompany', p); //添加企业客户
|
||||
export const updateCompany = p => post('/api-crms/crms/customer/updateCompany', p); //编辑企业客户
|
||||
export const updatePersonal = p => post('/api-crms/crms/customer/updatePersonal', p); //编辑个人客户
|
||||
export const listEmployeeName = p => get('/api-hrms/hrms/employee/listEmployeeName', p); //查询所有的客户经理
|
||||
export const updatePwd = p => post('/apiHrmsAuth/hrms/auth/userlogin/updatePwd', p); //修改平台超管员密码
|
||||
export const loginLogList = p => get('/apiHrmsAuth/hrms/auth/systemLog/loginLogList', p); //平台日志列表
|
||||
export const rolePermissionList = p => get('/apiHrmsAuth/hrms/auth/permission/rolePermissionList', p); //角色权限列表
|
||||
export const queryPermission = p => get('/apiHrmsAuth/hrms/auth/permission/queryPermissionByRoleId', p); //查看角色权限
|
||||
export const saveRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/saveRolePermission', p); //新增角色权限
|
||||
export const updateRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/updateRolePermission', p); //编辑角色权限
|
||||
export const delRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/delRolePermission', p); //删除角色权限
|
||||
export const jurTree = p => get('/apiHrmsAuth/hrms/auth/permission/tree', p); //查询所有权限树形结构
|
||||
|
||||
// 后台-人资-部门
|
||||
export const departmentTree = p => get('/api-hrms/hrms/dept/tree',p); //部门树形结构数据(显示部门)
|
||||
export const addDepartment = p => post('/api-hrms/hrms/dept/save', p); //新增一条部门信息
|
||||
export const deleteDepartment = p => del('/api-hrms/hrms/dept/delete', p); //删除部门信息(树结构)
|
||||
export const editDepartment = p => put('/api-hrms/hrms/dept/update', p); //根据id修改部门信息(编辑)
|
||||
export const dragDepartment = p => put('/api-hrms/hrms/dept/update/sort', p); //修改部门的拖拽排序(传id和排序)
|
||||
export const rulesAll = p => get('/api-hrms/hrms/position/listRoleIdAndName', p); //所有角色id+名称
|
||||
export const postAll = p => post('/api-hrms/hrms/position/listPositionIdAndName', p); //所有职位id+名称
|
||||
export const ruleJurisdiction = p => post('/api-hrms/hrms/employee/tree', p); //新增员工-角色对应的权限
|
||||
export const clickDepartment = p => get('/api-hrms/hrms/dept/children', p); //点击部门,搜索该部门名下的员工
|
||||
// 后台-人资-员工列表
|
||||
export const deleteStaff = p => del('/api-hrms/hrms/employee/delete', p); //根据id删除员工
|
||||
export const forbiddenStaff = p => get('/api-hrms/hrms/employee/forbidInfo', p); //禁用详情(为啥禁用)
|
||||
export const queryStaff = p => get('/api-hrms/hrms/employee/getEmployeeAndDeptById', p); //根据id查询员工的基本信息
|
||||
export const queryStaffName = p => get('/api-hrms/hrms/employee/getEmployeeById', p); //根据id查询员工姓名
|
||||
export const staffMessage = p => get('/api-hrms/hrms/employee/info', p); //根据id查询员工详细信息
|
||||
export const staffList = p => get('/api-hrms/hrms/employee/list', p); //查询列表
|
||||
export const staffResetPwd = p => get('/api-hrms/hrms/employee/reset', p); //员工重置密码
|
||||
export const addStaff = p => post('/api-hrms/hrms/employee/save', p); //新增员工
|
||||
export const startStaff = p => get('/api-hrms/hrms/employee/start', p); //启用员工
|
||||
export const stopStaff = p => post('/api-hrms/hrms/employee/stop', p); //禁用员工
|
||||
export const roleStaff = p => post('/api-hrms/hrms/employee/tree', p); //角色对应权限
|
||||
export const editStaff = p => post('/api-hrms/hrms/employee/update', p); //修改员工
|
||||
// 后台-员工-导入
|
||||
export const importStaff = p => post('/api-hrms/hrms/employee/excelImport',p); //导入员工(上传)
|
||||
// 后台-员工-导出
|
||||
export const excelStaffFile = `${host}/api-hrms/hrms/employee/excelExport`; //导出员工文件
|
||||
export const excelTemplateStaff = `${host}/api-hrms/hrms/employee/excelTemplate`; //导出员工模板
|
||||
// 后台-人资-职位
|
||||
export const deletePost = p => del('/api-hrms/hrms/position/delete', p); //删除职位信息
|
||||
export const searchPostId = p => get('/api-hrms/hrms/position/info', p); //职位id查询职位信息详情
|
||||
export const postList = p => get('/api-hrms/hrms/position/list', p); //职位列表+查询
|
||||
export const addPostMessage = p => post('/api-hrms/hrms/position/save', p); //新增职位信息
|
||||
export const editPostMessage = p => put('/api-hrms/hrms/position/update', p); //修改职位信息
|
||||
|
||||
// 后台担保系统
|
||||
// 表单设计--公用接口
|
||||
export const login = p => post('/apiHrmsAuth/hrms/auth/userlogin/login', p); |
||||
export const phoneCode = p => get('/apiHrmsAuth/hrms/auth/userlogin/sendCode', p); |
||||
export const verifyMobile = p => post('/apiHrmsAuth/hrms/auth/userlogin/verifyMobile', p); |
||||
export const getBackPwd = p => post('/apiHrmsAuth/hrms/auth/userlogin/getBackPwd', p); |
||||
export const querycustomerList = p => get('/api-crms/crms/customer/queryList', p); |
||||
export const deleteCustomer = p => del('/api-crms/crms/customer/deleteCustomer', p); |
||||
export const queryDetails = p => get('/api-crms/crms/customer/queryDetails', p); |
||||
export const savePersonal = p => post('/api-crms/crms/customer/savePersonal', p); |
||||
export const saveCompany = p => post('/api-crms/crms/customer/saveCompany', p); |
||||
export const updateCompany = p => post('/api-crms/crms/customer/updateCompany', p); |
||||
export const updatePersonal = p => post('/api-crms/crms/customer/updatePersonal', p); |
||||
export const listEmployeeName = p => get('/api-hrms/hrms/employee/listEmployeeName', p); |
||||
export const updatePwd = p => post('/apiHrmsAuth/hrms/auth/userlogin/updatePwd', p); |
||||
export const loginLogList = p => get('/apiHrmsAuth/hrms/auth/systemLog/loginLogList', p); |
||||
export const rolePermissionList = p => get('/apiHrmsAuth/hrms/auth/permission/rolePermissionList', p); |
||||
export const queryPermission = p => get('/apiHrmsAuth/hrms/auth/permission/queryPermissionByRoleId', p); |
||||
export const saveRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/saveRolePermission', p); |
||||
export const updateRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/updateRolePermission', p); |
||||
export const delRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/delRolePermission', p); |
||||
export const jurTree = p => get('/apiHrmsAuth/hrms/auth/permission/tree', p); |
||||
export const departmentTree = p => get('/api-hrms/hrms/dept/tree', p); |
||||
export const addDepartment = p => post('/api-hrms/hrms/dept/save', p); |
||||
export const deleteDepartment = p => del('/api-hrms/hrms/dept/delete', p); |
||||
export const editDepartment = p => put('/api-hrms/hrms/dept/update', p); |
||||
export const dragDepartment = p => put('/api-hrms/hrms/dept/update/sort', p); |
||||
export const rulesAll = p => get('/api-hrms/hrms/position/listRoleIdAndName', p); |
||||
export const postAll = p => post('/api-hrms/hrms/position/listPositionIdAndName', p); |
||||
export const ruleJurisdiction = p => post('/api-hrms/hrms/employee/tree', p); |
||||
export const clickDepartment = p => get('/api-hrms/hrms/dept/children', p); |
||||
export const deleteStaff = p => del('/api-hrms/hrms/employee/delete', p); |
||||
export const forbiddenStaff = p => get('/api-hrms/hrms/employee/forbidInfo', p); |
||||
export const queryStaff = p => get('/api-hrms/hrms/employee/getEmployeeAndDeptById', p); |
||||
export const queryStaffName = p => get('/api-hrms/hrms/employee/getEmployeeById', p); |
||||
export const staffMessage = p => get('/api-hrms/hrms/employee/info', p); |
||||
export const staffList = p => get('/api-hrms/hrms/employee/list', p); |
||||
export const staffResetPwd = p => get('/api-hrms/hrms/employee/reset', p); |
||||
export const addStaff = p => post('/api-hrms/hrms/employee/save', p); |
||||
export const startStaff = p => get('/api-hrms/hrms/employee/start', p); |
||||
export const stopStaff = p => post('/api-hrms/hrms/employee/stop', p); |
||||
export const roleStaff = p => post('/api-hrms/hrms/employee/tree', p); |
||||
export const editStaff = p => post('/api-hrms/hrms/employee/update', p); |
||||
export const importStaff = p => post('/api-hrms/hrms/employee/excelImport', p); |
||||
export const excelStaffFile = `${host}/api-hrms/hrms/employee/excelExport`; |
||||
export const excelTemplateStaff = `${host}/api-hrms/hrms/employee/excelTemplate`; |
||||
export const deletePost = p => del('/api-hrms/hrms/position/delete', p); |
||||
export const searchPostId = p => get('/api-hrms/hrms/position/info', p); |
||||
export const postList = p => get('/api-hrms/hrms/position/list', p); |
||||
export const addPostMessage = p => post('/api-hrms/hrms/position/save', p); |
||||
export const editPostMessage = p => put('/api-hrms/hrms/position/update', p); |
||||
export const designFrom = p => get('/api-guarantee/form/design/list', p); |
||||
// 修改表单
|
||||
export const updateFrom = p => post('/api-guarantee/form/design/update', p); |
||||
// 担保模块选择
|
||||
export const processManageList = p => get('/api-guarantee/dg-process-manage/processManageList', p); |
||||
// 修改图标
|
||||
export const updateProcessManage = p => post('/api-guarantee/dg-process-manage/updateProcessManage', p); //新增职位信息
|
||||
// 修改可见范围
|
||||
export const updateProcessManage = p => post('/api-guarantee/dg-process-manage/updateProcessManage', p); |
||||
export const updateUserVisual = p => post('/api-guarantee/dg-process-manage/updateUserVisual', p); |
||||
// 查询可见范围
|
||||
export const processVisualList = p => get('/api-guarantee/dg-process-manage/processVisualList', p); |
||||
|
||||
// 查询超管用户--用于避免超管在表单可见范围被删除
|
||||
export const superManager = p => get('/api-hrms/hrms/employee/getUserIdByRoleId', p); |
||||
|
||||
// 查询抄送用户
|
||||
export const queryCopySendUser = p => get('/api-guarantee/dg-process-user/queryCopySendUser', p); |
||||
// 添加抄送的用户
|
||||
export const addCopySendUser = p => post('/api-guarantee/dg-process-user/updateCopySendUser', p); |
||||
// 查添加进流程的员工
|
||||
export const getEmployeesByRoleId = p => get('/api-hrms/hrms/role/getEmployeesByRoleId', p); |
||||
// 修改用户角色
|
||||
export const updateUserRole = p => post('/api-hrms/hrms/role/updateUserRole', p); |
||||
// 查询日志列表
|
||||
export const systemLog = p => get('/apiHrmsAuth/hrms/auth/systemLog/list', p); |
||||
|
||||
|
||||
// 系统-新增角色权限
|
||||
export const newAddRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/saveRolePermission', p); //新增角色权限
|
||||
export const editRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/updateRolePermission', p); //修改角色权限
|
||||
export const getPermissionIds = p => get('/apiHrmsAuth/hrms/auth/permission/queryPermissionArrById', p); //已有权限的ids
|
||||
|
||||
// 工作台--人力资源
|
||||
// 绑定手机号
|
||||
export const newAddRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/saveRolePermission', p); |
||||
export const editRolePermission = p => post('/apiHrmsAuth/hrms/auth/permission/updateRolePermission', p); |
||||
export const getPermissionIds = p => get('/apiHrmsAuth/hrms/auth/permission/queryPermissionArrById', p); |
||||
export const workBindPhone = p => get('/api-hrms/hrms/user/binding', p); |
||||
// 微信解绑
|
||||
export const wxUnbundle = p => get('/api-hrms/hrms/user/cancel', p); |
||||
// 验证码
|
||||
export const workPhoneAuthCord = p => get('/api-hrms/hrms/user/code', p); |
||||
// 用户信息
|
||||
export const workUserMsg = p => get('/api-hrms/hrms/user/info', p); |
||||
// 修改用户信息9
|
||||
export const woreEditUserMsg = p => post('/api-hrms/hrms/user/update', p); |
||||
// 修改密码
|
||||
export const workEditPwd = p => get('/api-hrms/hrms/user/updatePassword', p); |
||||
// 头像上传
|
||||
export const headImgUp = p => post('/api-hrms/hrms/user/uploadFile', p); |
||||
|
||||
//工作台--保后管理
|
||||
// 查询保后列表
|
||||
export const insuranceList = p => get('/api-guarantee/al-insurance-list/insuranceList', p); |
||||
// 查询保后详情
|
||||
export const insuranceDetail = p => get('/api-guarantee/al-insurance-list/insuranceDetail', p); |
||||
//办理结项
|
||||
export const updateInsurance = p => get('/api-guarantee/al-insurance-list/updateStatus', p); |
||||
|
||||
//还款录入
|
||||
export const repaymentEntry = p => post('/api-guarantee/al-repayment-entry/repaymentEntry', p); |
||||
|
||||
//还款记录列表
|
||||
export const repaymentList = p => get('/api-guarantee/al-repayment-entry/repaymentList', p); |
||||
//还款记录统计
|
||||
export const repaymentStatistics = p => get('/api-guarantee/al-repayment-entry/repaymentStatistics', p); |
||||
//批量删除还款记录
|
||||
export const delRepayment = p => post('/api-guarantee/al-repayment-entry/delRepayment', p); |
||||
// 查询还款记录详情
|
||||
export const repaymentDetail = p => get('/api-guarantee/al-repayment-entry/repaymentDetail', p); |
||||
// 编辑还款录入
|
||||
export const updateRepayment = p => post('/api-guarantee/al-repayment-entry/updateRepayment', p); |
||||
|
||||
// 添加保后业务
|
||||
export const saveInsurance = p => post('/api-guarantee/al-insurance-list/saveInsurance', p); |
||||
// 删除保后业务
|
||||
export const deleteInsurance = p => post('/api-guarantee/al-insurance-list/deleteInsurance?insuranceId='+p); |
||||
// 更新保后业务
|
||||
export const deleteInsurance = p => post('/api-guarantee/al-insurance-list/deleteInsurance?insuranceId=' + p); |
||||
export const editInsurance = p => post('/api-guarantee/al-insurance-list/updateInsurance', p); |
||||
|
||||
// 清收组列表
|
||||
export const liquidateList = p => get('/api-guarantee/al-collection-group/list', p); |
||||
// 清收组添加或修改
|
||||
export const liquidateEdit = p => post('/api-guarantee/al-collection-group/saveOrUpdate', p); |
||||
// 清收组删除
|
||||
export const liquidateDel = p => post('/api-guarantee/al-collection-group/delete?id='+p); |
||||
|
||||
// 取得代偿金额
|
||||
export const liquidateDel = p => post('/api-guarantee/al-collection-group/delete?id=' + p); |
||||
export const compensationSituation = p => get(`/api-guarantee/al-insurance-list/compensationSituation?date=${p.data}&insuranceId=${p.insuranceId}`); |
||||
export const queryCollectionProgress = p => post('/api-guarantee/al-collection-statistics/queryCollectionProgress', p); |
||||
export const collectionProgressExport = p => `${host}/api-guarantee/al-collection-statistics/collectionProgressExport?ids=${p}` |
||||
export const editAnnualStatistics = p => post('/api-guarantee/al-collection-statistics/editAnnualStatistics', p); |
||||
export const personnelSelection = p => get('/api-guarantee/al-collection-statistics/personnelSelection', p); |
||||
export const annualStatisticsDeleted = p => post(`/api-guarantee/al-collection-statistics/annualStatisticsDeleted?year=${p}`); |
||||
export const annualStatisticsListExport = p => `${host}/api-guarantee/al-collection-statistics/annualStatisticsListExport?year=${p}` |
||||
export const importInsurance = `${host}/api-guarantee/al-insurance-list/importInsurance`; |
||||
export const exportFailure = p=> `${host}/api-guarantee/al-insurance-list/exportFailure?exportCode=${p}`; |
||||
|
||||
|
||||
// 催收
|
||||
|
||||
export const collectionGroupList = p => post('/api-guarantee/al-collection-statistics/collectionGroupList', p); |
||||
export const generateAnnualStatistics = p => post('/api-guarantee/al-collection-statistics/generateAnnualStatistics', p); |
||||
export const annualList = p => get('/api-guarantee/al-collection-statistics/annualList', p); |
||||
export const annualStatisticsList = p => post('/api-guarantee/al-collection-statistics/annualStatisticsList', p); |
||||
export const collection = p => post('/api-guarantee/al-collection/collection', p); |
||||
// 催收列表
|
||||
export const collectionList = p => get('/api-guarantee/al-collection/list', p); |
||||
// 点击催收查询出的列表
|
||||
export const collectionListDetail = p => get('/api-guarantee/al-collection/overdue/detail', p); |
||||
// 催收记录列表
|
||||
export const collectionHisList = p => post('/api-guarantee/al-collection/collection/list', p); |
||||
// 催收记录列表点击查看
|
||||
export const collectionHisListDetail = p => get('/api-guarantee/al-collection/examine/detail', p); |
||||
|
||||
export const excelInsurance = `${host}/api-guarantee/al-insurance-list/excelExport`; //导出保后管理列表
|
||||
export const excelHis = `${host}/api-guarantee/al-repayment-entry/excelExport`; //导出还款记录列表
|
||||
export const excelCollection = `${host}/api-guarantee/al-collection/list/export/excel`; //导出催收管理列表
|
||||
export const excelCollectionHis = `${host}/api-guarantee/al-collection/collection/list/export/excel`; //导出催收管理列表
|
||||
|
||||
|
||||
// 工作台--客户资源管理
|
||||
// 删除
|
||||
export const excelInsurance = `${host}/api-guarantee/al-insurance-list/excelExport`; |
||||
export const excelHis = `${host}/api-guarantee/al-repayment-entry/excelExport`; |
||||
export const excelCollection = `${host}/api-guarantee/al-collection/list/export/excel`; |
||||
export const excelCollectionHis = `${host}/api-guarantee/al-collection/collection/list/export/excel`; |
||||
export const workClientDel = p => post('/api-crms/crms/workbench/delete', p); |
||||
// 详情
|
||||
export const workClientParticulars = p => get('/api-crms/crms/workbench/info', p); |
||||
// 客户信息列表展示
|
||||
export const workClientMsgList = p => get('/api-crms/crms/workbench/list', p); |
||||
// 获取当前客户部门经理--下属客户经理
|
||||
export const workClientManager= p => get('/api-crms/crms/workbench/manager', p);
|
||||
// 不通过
|
||||
export const workClientManager = p => get('/api-crms/crms/workbench/manager', p); |
||||
export const workClientNoPass = p => get('/api-crms/crms/workbench/noPass', p); |
||||
// 通过审核
|
||||
export const workClientPass = p => get('/api-crms/crms/workbench/pass', p); |
||||
// 新增企业类型客户
|
||||
export const workClientAddEnterprise = p => post('/api-crms/crms/workbench/saveCompany', p); |
||||
// 新增企业类型客户新版接口
|
||||
export const insertCompany = p => post('/api-crms/crms/workbench/insertCompany', p); |
||||
// 新增个人类型客户
|
||||
export const workClientMsg = p => post('/api-crms/crms/workbench/savePersonal', p); |
||||
// 修改企业类型客户
|
||||
export const workEditClientEnterpriseMsg = p => post('/api-crms/crms/workbench/updateCompany', p); |
||||
// 修改企业类型客户新版接口
|
||||
export const updateCompanyNew = p => post('/api-crms/crms/workbench/updateCompanyNew', p); |
||||
// 修改个人类型客户
|
||||
export const workEditClientMsg = p => post('/api-crms/crms/workbench/updatePersonal', p); |
||||
|
||||
// 后台和前台区分
|
||||
// 新增个人类型客户
|
||||
export const backClientMsg = p => post('/api-crms/crms/customer/savePersonal', p); |
||||
// 新增企业类型客户
|
||||
export const backSaveCompany = p => post('/api-crms/crms/customer/saveCompany', p); |
||||
// 修改企业类型客户
|
||||
export const backupdateCompany = p => post('/api-crms/crms/customer/updateCompany', p); |
||||
// 修改个人类型客户
|
||||
export const backupdatePersonal = p => post('/api-crms/crms/customer/updatePersonal', p); |
||||
|
||||
// 登录微信扫码(图片)
|
||||
// export const WXCordImg = p => get('/apiHrmsAuth/hrms/auth/userlogin/wxLoginUrl', p);
|
||||
// 微信回调授权码(不用管)
|
||||
export const WXAuthCord = p => get('/apiHrmsAuth/hrms/auth/userlogin/user/callback', p); |
||||
// 登录绑定手机号
|
||||
export const bindPhone = p => post('/apiHrmsAuth/hrms/auth/userlogin/bindPhoneAndOpenId', p); |
||||
// 登录手机验证码
|
||||
export const phoneAuthCord = p => get('/apiHrmsAuth/hrms/auth/userlogin/sendCode', p); |
||||
// 判断手机是否存在
|
||||
export const phoneExist = p => get('/apiHrmsAuth/hrms/auth/userlogin/isPhoneExist', p); |
||||
|
||||
// 工作台--担保业务
|
||||
//业务申请列表
|
||||
export const businessApplyList = p => get('/api-guarantee/dg-apply-amount-info/businessApplicationList', p); |
||||
//新建业务
|
||||
export const businessApplication = p => post('/api-guarantee/dg-apply-amount-info/businessApplication', p); |
||||
// 获取所有客户的信息
|
||||
export const getAllClient = p => get('/api-crms/crms/customer/queryCompanyCodeAndName', p); |
||||
//客户编号/取得信息
|
||||
export const companyInfoBySth = p => post('/api-guarantee/dg-apply-amount-info/companyInfoBySth', p); |
||||
// 业务申请-查看
|
||||
export const businessApplyWatch = p => get('/api-guarantee/dg-apply-amount-info/businessApplicationDetail', p); |
||||
// 业务-修改
|
||||
export const businessApplyEdit = p => post('/api-guarantee/dg-apply-amount-info/updateBusinessApplication', p); |
||||
// 业务申请-审核
|
||||
export const businessApplyAudit = p => post('/api-guarantee/dg-apply-amount-info/approvalBusinessApplication', p); |
||||
// 业务-撤销
|
||||
export const businessApplyRepeal = p => get('/api-guarantee/dg-apply-amount-info/revokeBusinessApplication', p); |
||||
// 所有银行
|
||||
export const allBankName = p => get('/api-guarantee/dg-bank/bankList', p); |
||||
|
||||
// 抄送功能截图--已修改为正常功能
|
||||
export const copySend = p => post('/api-guarantee/dg-copy-for/copySend', p); |
||||
|
||||
// 担保调查列表
|
||||
export const guaranteeList = p => get('/api-guarantee/dg-guarantee-assign-user/guaranteeList', p); |
||||
// 查看详情功能--领导/调查员
|
||||
export const guaranteeDetails = p => get('/api-guarantee/dg-guarantee-assign-user/guaranteeDetail', p); |
||||
// 调查功能
|
||||
export const guaranteeSurvey = p => post('/api-guarantee/dg-guarantee-assign-user/investigateGuarantee', p); |
||||
// 领导审核
|
||||
export const guaranteeleader = p => post('/api-guarantee/dg-guarantee-assign-user/approvalGuarantee', p); |
||||
// 指派A/B角
|
||||
export const guaranteeDesignateAB = p => post('/api-guarantee/dg-guarantee-assign-user/assignCorners', p); |
||||
|
||||
// 团队效率-柱状图
|
||||
export const efficiencyChart = p => post('/api-guarantee/guarantee/efficiency/team', p); |
||||
// 团队效率--搜索部门
|
||||
export const listDepartment = p => get('/api-hrms/hrms/dept/listDepartment', p); |
||||
// 团队效率--业务数量状态栏
|
||||
export const businessCount = p => get('/api-guarantee/guarantee/efficiency/businessCount', p); |
||||
// 个人效率--列表
|
||||
export const personalEfficiencyList = p => post('/api-guarantee/guarantee/efficiency/personalEfficiencyList', p); |
||||
// 个人效率--抄送我的列表
|
||||
export const queryCopyForMe = p => post('/api-guarantee/dg-copy-user/queryCopyForMe', p); |
||||
// 抄送导出
|
||||
export const exportCopyForMe = `${host}/api-guarantee/dg-copy-user/exportCopyForMe`; |
||||
// 个人效率--列表导出
|
||||
export const personalEfficiencyListExport = `${host}/api-guarantee/guarantee/efficiency/personalEfficiencyListExport`; |
||||
|
||||
// 消息提示接口
|
||||
export const notice = p => get('/api-guarantee/guarantee/efficiency/notice', p); |
||||
|
||||
|
||||
|
||||
// 根据部门id查询员工
|
||||
export const listEmployeeByDeptId = p => get('/api-hrms/hrms/dept/listEmployeeByDeptId', p); |
||||
// 暂时替代一下上面的接口,后续切换回去。这接口上面有过了,不管,后续删除
|
||||
// export const listEmployeeName = p => get('/api-hrms/hrms/employee/listEmployeeName', p);
|
||||
//
|
||||
// 业务统计--
|
||||
// 列表导出
|
||||
export const excelExportPass = `${host}/api-guarantee/guarantee/statistics/excelExport`; |
||||
// 拒绝列表导出
|
||||
export const excelExportRefuse = `${host}/api-guarantee/guarantee/statistics/excelExportRefuse`; |
||||
// 业务统计列表
|
||||
export const listPass = p => get('/api-guarantee/guarantee/statistics/list', p); |
||||
// 拒绝列表
|
||||
export const listRefuse = p => get('/api-guarantee/guarantee/statistics/listRefuse', p); |
||||
|
||||
|
||||
// 个人中心柱状图
|
||||
export const approvalNum = p => get('/api-guarantee/guarantee/efficiency/approvalNum', p); |
||||
|
||||
// 指派树---不做限制版-仅工作会
|
||||
export const designateEmpTrees = p => get('/api-hrms//hrms/dept/empTrees', p); |
||||
|
||||
|
||||
// 关联人列表
|
||||
export const designateEmpTrees = p => get('/api-hrms/hrms/dept/empTrees', p); |
||||
export const getLinkmanList = p => get('/api-crms/crms-company-personal/companyPersonalList', p); |
||||
// 查询关联人
|
||||
export const searchLinkmanList = p => get('/api-crms/crms-company-personal/selectCompanyPersonal', p); |
||||
// 查询关联人新版
|
||||
export const NewsearchLinkmanList = p => get('/api-crms/crms-company-personal/selectCompanyPersonal', p); |
||||
// 删除关联人
|
||||
export const delLinkmanList = p => post('/api-crms/crms-company-personal/deleteCompanyPersonal', p); |
||||
// 删除关联人新版
|
||||
export const NewdelLinkmanList = p => post('/api-crms/crms-company-personal/deleteCompanyPersonal', p); |
||||
// 新增关联人
|
||||
export const newLinkmanList = p => post('/api-crms/crms-company-personal/insertCompanyPersonal', p); |
||||
// 新增关联人新版
|
||||
export const newLinkList = p => post('/api-crms/crms-company-personal/insertCompanyPersonal', p); |
||||
// 编辑关联人
|
||||
export const editLinkmanList = p => post('/api-crms/crms-company-personal/updateCompanyPersonal', p); |
||||
// 编辑关联人新版
|
||||
export const NeweditLinkmanList = p => post('/api-crms/crms-company-personal/updateCompanyPersonal', p); |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 资产部--审核
|
||||
export const assetAudit = p => post('/api-guarantee/dg-assets-investigation/approvalAssets', p); |
||||
// 资产部--查看
|
||||
export const assetWatch = p => get('/api-guarantee/dg-assets-investigation/assetsDetail', p); |
||||
// 资产部--列表
|
||||
export const assetList = p => post('/api-guarantee/dg-assets-investigation/assetsList', p); |
||||
// 资产部--指派
|
||||
export const assetAssign = p => post('/api-guarantee/dg-assets-investigation/assignCorners', p); |
||||
// 资产部--调查
|
||||
export const assetSurvey = p => post('/api-guarantee/dg-assets-investigation/investigateAssets', p); |
||||
|
||||
// 信息部--列表
|
||||
export const messageList = p => get('/api-guarantee/dg-message-investigation/messageList', p); |
||||
// 信息部详情
|
||||
export const messageDetail = p => get('/api-guarantee/dg-message-investigation/messageDetail', p); |
||||
// 信息部--指派
|
||||
export const messageAssign = p => post('/api-guarantee/dg-message-investigation/assignCorners', p); |
||||
// 信息部--调查
|
||||
export const messageSurvey = p => post('/api-guarantee/dg-message-investigation/investigateMessage', p); |
||||
// 信息部审核
|
||||
export const messageAudit = p => post('/api-guarantee/dg-message-investigation/approvalMessage', p); |
||||
|
||||
// 合规调查-指派
|
||||
export const complianceAssign = p => get('/api-guarantee/compliance/investigation/assign', p); |
||||
// 合规-审核
|
||||
export const complianceAudit = p => post('/api-guarantee/compliance/investigation/check', p); |
||||
// 合规-列表
|
||||
export const complianceList = p => get('/api-guarantee/compliance/investigation/list', p); |
||||
// 合规-查看详情
|
||||
export const complianceDetail = p => get('/api-guarantee/compliance/investigation/query', p); |
||||
// 合规-调查
|
||||
export const complianceSurvey = p => post('/api-guarantee/compliance/investigation/survey', p); |
||||
|
||||
// 工作会-审议
|
||||
export const workAudit = p => post('/api-guarantee/work/conference/check', p); |
||||
//工作会-所有审核意见
|
||||
export const workOpinion = p => get('/api-guarantee/work/conference/getAuditOpinion', p); |
||||
// 工作会列表
|
||||
export const workList = p => get('/api-guarantee/work/conference/list', p); |
||||
// 工作会-查看
|
||||
export const workDetail = p => get('/api-guarantee/work/conference/query', p); |
||||
// 工作会-评委抽取
|
||||
export const workExtract = p => post('/api-guarantee/work/conference/theJudgesDrawn', p); |
||||
|
||||
// 贷审会-审议
|
||||
export const loansAudit = p => post('/api-guarantee/committee/consider/check', p); |
||||
// 贷审会-列表
|
||||
export const loansList = p => get('/api-guarantee/committee/consider/list', p); |
||||
// 贷审会-查看
|
||||
export const loansDetail = p => get('/api-guarantee/committee/consider/query', p); |
||||
// 贷审会--获取抽取的评委
|
||||
export const loansJudge = p => get('/api-guarantee/committee/consider/theJudgesDrawn', p); |
||||
|
||||
|
||||
|
||||
|
||||
/* 业务+担保 上传文件 */ |
||||
export const guaranteeUploadFile = p => post('/api-guarantee/dg-apply-amount-info/uploadFile', p); |
||||
/* 业务+担保 删除文件 */ |
||||
export const guaranteeDeleteFile = p => get('/api-guarantee/dg-apply-amount-info/deleteServerFile', p); |
||||
//担保函的接口
|
||||
export const guaranteeLetterList = p => post('/api-guarantee/dg-guarantee-letter-assign-user/guaranteeLetterList', p); //担保函列表
|
||||
export const updateStatus = p => post('/api-guarantee/dg-guarantee-letter-assign-user/updateStatus', p); //用户提交审核意见
|
||||
// 担保函详情--新增
|
||||
export const guaranteeLetterList = p => post('/api-guarantee/dg-guarantee-letter-assign-user/guaranteeLetterList', p); |
||||
export const updateStatus = p => post('/api-guarantee/dg-guarantee-letter-assign-user/updateStatus', p); |
||||
export const letterDetail = p => get('/api-guarantee/dg-guarantee-letter-assign-user/guaranteeLetterDetail', p); |
||||
|
||||
//回款确认
|
||||
export const paymentList = p => post('/api-guarantee/dg-payment-confirmation-consider/paymentConfirmationList', p); //回款确认列表
|
||||
export const updatePayment = p => post('/api-guarantee/dg-payment-confirmation-consider/updatePaymentConfirmation', p); //更新回款确认
|
||||
// 回款详情 --新增
|
||||
export const paymentList = p => post('/api-guarantee/dg-payment-confirmation-consider/paymentConfirmationList', p); |
||||
export const updatePayment = p => post('/api-guarantee/dg-payment-confirmation-consider/updatePaymentConfirmation', p); |
||||
export const paymentDetail = p => get('/api-guarantee/dg-payment-confirmation-consider/paymentConfirmationDetail', p); |
||||
|
||||
//放款通知
|
||||
export const loanNoticeList = p => post('/api-guarantee/dg-loan-notice/loanNoticeList', p); //放款通知列表
|
||||
export const updateLoanNotice = p => post('/api-guarantee/dg-loan-notice/updateLoanNotice', p); //放款通知确认
|
||||
// 放款详情--新增
|
||||
export const loanNoticeList = p => post('/api-guarantee/dg-loan-notice/loanNoticeList', p); |
||||
export const updateLoanNotice = p => post('/api-guarantee/dg-loan-notice/updateLoanNotice', p); |
||||
export const loanNoticeDetail = p => get('/api-guarantee/dg-loan-notice/loanNoticeDetail', p); |
||||
|
||||
|
||||
export const auditProcessList = p => get('/api-guarantee/dg-audit-process/auditProcessList', p);//审核流程进程列表
|
||||
export const auditProcessPop = p => get('/api-guarantee/dg-audit-process/getProcessId', p);//审核流程进程--弹框
|
||||
|
||||
//获取当前用户角色
|
||||
export const auditProcessList = p => get('/api-guarantee/dg-audit-process/auditProcessList', p); |
||||
export const auditProcessPop = p => get('/api-guarantee/dg-audit-process/getProcessId', p); |
||||
export const getNowRole = p => get('/api-guarantee/dg-apply-amount-info/getRoles', p); |
||||
// 获取动态路由权限
|
||||
export const getPermission = p => get('/api-hrms/hrms/permission/getPermission', p); |
||||
|
||||
// 首页的接口
|
||||
// 当月每天新建审批
|
||||
export const getNewBusinessCount = p => get('/api-guarantee/guarantee/efficiency/getNewBusinessCount', p); |
||||
// 当天新建审批数量-客户员工区分
|
||||
export const getTodayBusinessCount = p => get('/api-guarantee/guarantee/efficiency/getTodayBusinessCount', p); |
||||
// 今日审批记录--个人中心
|
||||
export const todayApprovalRecord = p => get('/api-guarantee/dg-audit-process/todayApprovalRecord', p); |
||||
// 访问记录-列表
|
||||
export const queryAccessRecords = p => get('/apiHrmsAuth/hrms-access-records-log/queryAccessRecords', p); |
||||
// 访问次数
|
||||
export const queryVisitNum = p => get('/apiHrmsAuth/hrms-access-records-log/queryVisitNum', p); |
||||
// 今日登录用户总数
|
||||
export const queryLoginNum = p => get('/apiHrmsAuth/hrms-access-records-log/queryLoginNum', p); |
||||
// 登录趋势图
|
||||
export const queryLoginOnline = p => get('/apiHrmsAuth/hrms-access-records-log/queryLoginOnline', p); |
||||
// 登录时间段
|
||||
export const queryLoginOnline2 = p => get('/apiHrmsAuth/hrms-access-records-log/queryLoginOnline2', p); |
||||
|
||||
// 业务-导出
|
||||
export const businessExportList = `${host}/api-guarantee/dg-apply-amount-info/excelExport`; |
||||
// 担保-导出
|
||||
export const guaranteeExportList = `${host}/api-guarantee/dg-guarantee-assign-user/excelExport`; |
||||
// 资产-导出
|
||||
export const assetExportList = `${host}/api-guarantee/dg-assets-investigation/excelExport`; |
||||
// 信息-导出
|
||||
export const messageExportList = `${host}/api-guarantee/dg-message-investigation/excelExport`; |
||||
// 合规-导出
|
||||
export const complianceExportList = `${host}/api-guarantee/compliance/investigation/excelExport`; |
||||
// 工作会-导出
|
||||
export const workExportList = `${host}/api-guarantee/work/conference/excelExport`; |
||||
// 贷审会-导出
|
||||
export const loansExportList = `${host}/api-guarantee/committee/consider/excelExport`; |
||||
|
||||
|
||||
export const excelTemplate = `${host}/api-crms/crms/customer/excelTemplate`; //导出客户模板
|
||||
export const excelExport = `${host}/api-crms/crms/customer/excelExport`; //导出客户
|
||||
export const excelImport = `${host}/api-crms/crms/customer/excelImport`; //导入excal
|
||||
|
||||
export const excelExportStaff = `${host}/api-crms/crms/customer/excelExport`; //导出客户
|
||||
export const excelImportStaff = `${host}/api-crms/crms/customer/excelImport`; //导入员工excal
|
||||
|
||||
|
||||
export const excelExportLetter = `${host}/api-guarantee/dg-guarantee-letter-assign-user/guaranteeLetterListExport`; //导出担保函列表
|
||||
export const exportGuaranteeLetter = `${host}/api-guarantee/dg-guarantee-letter-assign-user/exportGuaranteeLetter`; //导出担保函
|
||||
|
||||
export const excelExportPayment = `${host}/api-guarantee/dg-payment-confirmation-consider/paymentConfirmationListExport`; //导出回款确认列表数据
|
||||
|
||||
export const loanNoticeListExport = `${host}/api-guarantee/dg-loan-notice/loanNoticeListExport`; //导出放款通知列表数据
|
||||
export const exportLoanNotice = `${host}/api-guarantee/dg-loan-notice/exportLoanNotice`; //导出放款通知
|
||||
export const excelTemplate = `${host}/api-crms/crms/customer/excelTemplate`; |
||||
export const excelExport = `${host}/api-crms/crms/customer/excelExport`; |
||||
export const excelImport = `${host}/api-crms/crms/customer/excelImport`; |
||||
export const excelExportStaff = `${host}/api-crms/crms/customer/excelExport`; |
||||
export const excelImportStaff = `${host}/api-crms/crms/customer/excelImport`; |
||||
export const excelExportLetter = `${host}/api-guarantee/dg-guarantee-letter-assign-user/guaranteeLetterListExport`; |
||||
export const exportGuaranteeLetter = `${host}/api-guarantee/dg-guarantee-letter-assign-user/exportGuaranteeLetter`; |
||||
export const excelExportPayment = `${host}/api-guarantee/dg-payment-confirmation-consider/paymentConfirmationListExport`; |
||||
export const loanNoticeListExport = `${host}/api-guarantee/dg-loan-notice/loanNoticeListExport`; |
||||
export const exportLoanNotice = `${host}/api-guarantee/dg-loan-notice/exportLoanNotice`; |
@ -1,286 +1,303 @@ |
||||
function fMoney(s, n) { |
||||
n = n > 0 && n <= 20 ? n : 2; |
||||
s = parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(n) + ''; |
||||
let l = s |
||||
.split('.')[0] |
||||
.split('') |
||||
.reverse(); |
||||
let r = s.split('.')[1]; |
||||
let t = ''; |
||||
for (let i = 0; i < l.length; i++) { |
||||
t += l[i] + ((i + 1) % 3 == 0 && i + 1 != l.length ? ',' : ''); |
||||
} |
||||
return ( |
||||
t |
||||
export default { |
||||
fMoney:function(s, n) { |
||||
n = n > 0 && n <= 20 ? n : 2; |
||||
s = parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(n) + ''; |
||||
let l = s |
||||
.split('.')[0] |
||||
.split('') |
||||
.reverse() |
||||
.join('') + |
||||
'.' + |
||||
r |
||||
); |
||||
} |
||||
.reverse(); |
||||
let r = s.split('.')[1]; |
||||
let t = ''; |
||||
for (let i = 0; i < l.length; i++) { |
||||
t += l[i] + ((i + 1) % 3 == 0 && i + 1 != l.length ? ',' : ''); |
||||
} |
||||
return ( |
||||
t |
||||
.split('') |
||||
.reverse() |
||||
.join('') + |
||||
'.' + |
||||
r |
||||
); |
||||
}, |
||||
|
||||
function toDateTime(date, time) { |
||||
if (!date) return ''; |
||||
date = date.toString(); |
||||
time = time ? time.toString() : ''; |
||||
let str = `${date.substr(0, 4)}-${date.substr(4, 2)}-${date.substr(6, 2)}`; |
||||
if (date.length == 14) { |
||||
str += ` ${date.substr(8, 2)}:${date.substr(10, 2)}:${date.substr(12, 2)}`; |
||||
} else if (date.length == 6) { |
||||
str = `${date.substr(0, 2)}:${date.substr(2, 2)}:${date.substr(4, 2)}`; |
||||
} else if (time) { |
||||
str += ` ${time.substr(0, 2)}:${time.substr(2, 2)}:${time.substr(4, 2)}`; |
||||
} |
||||
return str; |
||||
} |
||||
toDateTime:function(date, time) { |
||||
if (!date) return ''; |
||||
date = date.toString(); |
||||
time = time ? time.toString() : ''; |
||||
let str = `${date.substr(0, 4)}-${date.substr(4, 2)}-${date.substr(6, 2)}`; |
||||
if (date.length == 14) { |
||||
str += ` ${date.substr(8, 2)}:${date.substr(10, 2)}:${date.substr(12, 2)}`; |
||||
} else if (date.length == 6) { |
||||
str = `${date.substr(0, 2)}:${date.substr(2, 2)}:${date.substr(4, 2)}`; |
||||
} else if (time) { |
||||
str += ` ${time.substr(0, 2)}:${time.substr(2, 2)}:${time.substr(4, 2)}`; |
||||
} |
||||
return str; |
||||
}, |
||||
|
||||
function fMoney2(m) { |
||||
return parseFloat(m).toFixed(2); |
||||
} |
||||
fMoney2:function (m) { |
||||
return parseFloat(m).toFixed(2); |
||||
}, |
||||
|
||||
// 数字转换大写中文
|
||||
function fMoney3(money) { |
||||
//汉字的数字
|
||||
let cnNums = new Array('零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'); |
||||
let cnIntRadice = new Array('', '拾', '佰', '仟'); //基本单位
|
||||
let cnIntUnits = new Array('', '万', '亿', '兆'); //对应整数部分扩展单位
|
||||
let cnDecUnits = new Array('仟', '佰', '拾', ''); //对应小数部分单位
|
||||
let cnInteger = '元整'; //整数金额时后面跟的字符
|
||||
// let
|
||||
let cnIntLast = '万'; //整数无小数点的单位
|
||||
let int; //金额整数部分
|
||||
let dot; //金额小数部分
|
||||
let chineseStr = ''; //输出的中文金额字符串
|
||||
let parts; //分离金额后用的数组,预定义
|
||||
if (money == '') { |
||||
return ''; |
||||
} |
||||
//转换为字符串,获取小数点后的值与整数分离
|
||||
money = money.toString(); |
||||
if (money.indexOf('.') == -1) { |
||||
int = money; |
||||
dot = ''; |
||||
} else { |
||||
parts = money.split('.'); //整数小数分离
|
||||
int = parts[0]; |
||||
dot = parts[1].substr(0, 4); //最多四位小数
|
||||
} |
||||
//十进制转换,处理整数部分单位
|
||||
if (parseInt(int, 10) > 0) { |
||||
let zeroCount = 0; |
||||
let IntLen = int.length; |
||||
for (let i = 0; i < IntLen; i++) { |
||||
//循环整数部分,给每个位赋值,且判断是否整除4,添加额外赋值
|
||||
let n = int.substr(i, 1); |
||||
let p = IntLen - i - 1; |
||||
let q = p / 4; |
||||
let m = p % 4; |
||||
if (n == '0') { |
||||
zeroCount++; |
||||
} else { |
||||
if (zeroCount > 0) { |
||||
chineseStr += cnNums[0]; |
||||
// 数字转换大写中文
|
||||
fMoney3:function (money) { |
||||
//汉字的数字
|
||||
let cnNums = new Array('零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'); |
||||
let cnIntRadice = new Array('', '拾', '佰', '仟'); //基本单位
|
||||
let cnIntUnits = new Array('', '万', '亿', '兆'); //对应整数部分扩展单位
|
||||
let cnDecUnits = new Array('仟', '佰', '拾', ''); //对应小数部分单位
|
||||
let cnInteger = '元整'; //整数金额时后面跟的字符
|
||||
let cnIntLast = '万'; //整数无小数点的单位
|
||||
let int; //金额整数部分
|
||||
let dot; //金额小数部分
|
||||
let chineseStr = ''; //输出的中文金额字符串
|
||||
let parts; //分离金额后用的数组,预定义
|
||||
if (money == '') { |
||||
return ''; |
||||
} |
||||
//转换为字符串,获取小数点后的值与整数分离
|
||||
money = money.toString(); |
||||
if (money.indexOf('.') == -1) { |
||||
int = money; |
||||
dot = ''; |
||||
} else { |
||||
parts = money.split('.'); //整数小数分离
|
||||
int = parts[0]; |
||||
dot = parts[1].substr(0, 4); //最多四位小数
|
||||
} |
||||
//十进制转换,处理整数部分单位
|
||||
if (parseInt(int, 10) > 0) { |
||||
let zeroCount = 0; |
||||
let IntLen = int.length; |
||||
for (let i = 0; i < IntLen; i++) { |
||||
//循环整数部分,给每个位赋值,且判断是否整除4,添加额外赋值
|
||||
let n = int.substr(i, 1); |
||||
let p = IntLen - i - 1; |
||||
let q = p / 4; |
||||
let m = p % 4; |
||||
if (n == '0') { |
||||
zeroCount++; |
||||
} else { |
||||
if (zeroCount > 0) { |
||||
chineseStr += cnNums[0]; |
||||
} |
||||
//归零
|
||||
zeroCount = 0; |
||||
chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]; |
||||
} |
||||
if (m == 0 && zeroCount < 4) { |
||||
chineseStr += cnIntUnits[q]; |
||||
} |
||||
//归零
|
||||
zeroCount = 0; |
||||
chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]; |
||||
} |
||||
if (m == 0 && zeroCount < 4) { |
||||
chineseStr += cnIntUnits[q]; |
||||
} |
||||
chineseStr += cnIntLast; |
||||
} |
||||
chineseStr += cnIntLast; |
||||
} |
||||
//小数部分
|
||||
if (dot != '') { |
||||
let decLen = dot.length; |
||||
for (let i = 0; i < decLen; i++) { |
||||
let n = dot.substr(i, 1); |
||||
if (n != '0') { |
||||
chineseStr += cnNums[Number(n)] + cnDecUnits[i]; |
||||
//小数部分
|
||||
if (dot != '') { |
||||
let decLen = dot.length; |
||||
for (let i = 0; i < decLen; i++) { |
||||
let n = dot.substr(i, 1); |
||||
if (n != '0') { |
||||
chineseStr += cnNums[Number(n)] + cnDecUnits[i]; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
// if (chineseStr == '') {// 为0时,
|
||||
// chineseStr += cnNums[0] + cnIntLast + cnInteger;
|
||||
// }
|
||||
// else if (dot == '') {//小数点为空值时
|
||||
chineseStr += cnInteger; |
||||
// }
|
||||
return chineseStr; |
||||
} |
||||
// if (chineseStr == '') {// 为0时,
|
||||
// chineseStr += cnNums[0] + cnIntLast + cnInteger;
|
||||
// }
|
||||
// else if (dot == '') {//小数点为空值时
|
||||
chineseStr += cnInteger; |
||||
// }
|
||||
return chineseStr; |
||||
}, |
||||
|
||||
function orderreleaseType(sts) { |
||||
const status = { |
||||
'0': '手动发布', |
||||
'1': '定时发布' |
||||
}; |
||||
return status[sts] || '未知状态'; |
||||
} |
||||
orderreleaseType:function (sts) { |
||||
const status = { |
||||
'0': '手动发布', |
||||
'1': '定时发布' |
||||
}; |
||||
return status[sts] || '未知状态'; |
||||
}, |
||||
|
||||
function auditStatus(sts) { |
||||
const status = { |
||||
'1': { text: '审核中', color: '#FF9784' }, |
||||
'2': { text: '已审核', color: '#46C435' }, |
||||
'3': { text: '已拒绝', color: '#FF9784' }, |
||||
'4': { text: '已驳回', color: '#FF9784' } |
||||
}; |
||||
return status[sts] || { text: '未知状态', color: '#666' }; |
||||
} |
||||
auditStatus:function (sts) { |
||||
const status = { |
||||
'1': { text: '审核中', color: '#FF9784' }, |
||||
'2': { text: '已审核', color: '#46C435' }, |
||||
'3': { text: '已拒绝', color: '#FF9784' }, |
||||
'4': { text: '已驳回', color: '#FF9784' } |
||||
}; |
||||
return status[sts] || { text: '未知状态', color: '#666' }; |
||||
}, |
||||
|
||||
function businessType(sts) { |
||||
const status = { |
||||
'0': { text:'已撤销', color: '#FF9784' }, |
||||
'1': { text:'进行中', color: '#FF9784' }, |
||||
'2': { text:'已完成', color: '#46C435' }, |
||||
'3': { text:'已否决', color: '#FF9784' } |
||||
}; |
||||
return status[sts] || { text: '未知状态', color: '#666' }; |
||||
} |
||||
businessType:function (sts) { |
||||
const status = { |
||||
'0': { text:'已撤销', color: '#FF9784' }, |
||||
'1': { text:'进行中', color: '#FF9784' }, |
||||
'2': { text:'已完成', color: '#46C435' }, |
||||
'3': { text:'已否决', color: '#FF9784' } |
||||
}; |
||||
return status[sts] || { text: '未知状态', color: '#666' }; |
||||
}, |
||||
|
||||
function operationType(sts) { |
||||
const status = { |
||||
'0': { text:'已发起', color: '#46C435' }, |
||||
'1': { text:'待处理', color: '#FF9784' }, |
||||
'2': { text:'已处理', color: '#46C435' }, |
||||
'3': { text:'待提交', color: '#FF9784' }, |
||||
'4': { text:'待定义', color: '#FF9784' } |
||||
}; |
||||
return status[sts] || { text: '未知状态', color: '#666' }; |
||||
} |
||||
operationType:function (sts) { |
||||
const status = { |
||||
'0': { text:'已发起', color: '#46C435' }, |
||||
'1': { text:'待处理', color: '#FF9784' }, |
||||
'2': { text:'已处理', color: '#46C435' }, |
||||
'3': { text:'待提交', color: '#FF9784' }, |
||||
'4': { text:'待定义', color: '#FF9784' } |
||||
}; |
||||
return status[sts] || { text: '未知状态', color: '#666' }; |
||||
}, |
||||
|
||||
function removeByValue(arr, val) { |
||||
for (var i = 0; i < arr.length; i++) { |
||||
if (arr[i] == val) { |
||||
arr.splice(i, 1); |
||||
break; |
||||
removeByValue:function (arr, val) { |
||||
for (var i = 0; i < arr.length; i++) { |
||||
if (arr[i] == val) { |
||||
arr.splice(i, 1); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
|
||||
function paymentStatus(sts) { |
||||
const status = { |
||||
'1': '还款中', |
||||
'2': '已逾期', |
||||
'3': '已还清', |
||||
'4': '已结项' |
||||
}; |
||||
return status[sts] || '未知状态'; |
||||
} |
||||
paymentStatus:function (sts) { |
||||
const status = { |
||||
'1': '还款中', |
||||
'2': '已逾期', |
||||
'3': '已还清', |
||||
'4': '已结项' |
||||
}; |
||||
return status[sts] || '未知状态'; |
||||
}, |
||||
|
||||
function stcStatus(sts) { |
||||
const status = { |
||||
'1': '待还款', |
||||
'2': '已还款', |
||||
'3': '已逾期', |
||||
'4': '未到期' |
||||
}; |
||||
return status[sts] || '未知状态'; |
||||
} |
||||
stcStatus:function (sts) { |
||||
const status = { |
||||
'1': '待还款', |
||||
'2': '已还款', |
||||
'3': '已逾期', |
||||
'4': '未到期' |
||||
}; |
||||
return status[sts] || '未知状态'; |
||||
}, |
||||
areaStr:function(val){// 区域
|
||||
const str = { |
||||
0:"萨尔图区", |
||||
1:"高新区", |
||||
2:"龙凤区", |
||||
3:"让胡同路区", |
||||
4:"大同区", |
||||
5:"肇县区", |
||||
} |
||||
return str[+val] |
||||
}, |
||||
// 判断对象值全为空
|
||||
objectValueAllEmpty:function (object) { |
||||
var isEmpty = true; |
||||
Object.keys(object).forEach(function(x) { |
||||
if (object[x] != null && object[x] != '') { |
||||
isEmpty = false; |
||||
} |
||||
}); |
||||
if (isEmpty) { |
||||
//值全为空
|
||||
return true; |
||||
} |
||||
return false; |
||||
}, |
||||
|
||||
// 判断对象值全为空
|
||||
function objectValueAllEmpty(object) { |
||||
var isEmpty = true; |
||||
Object.keys(object).forEach(function(x) { |
||||
if (object[x] != null && object[x] != '') { |
||||
isEmpty = false; |
||||
// 防抖
|
||||
debounce:function (func, wait=500) { |
||||
let timer; |
||||
return function() { |
||||
let context = this; |
||||
let args = arguments; |
||||
if (timer) clearTimeout(timer); |
||||
let callNow = !timer; |
||||
timer = setTimeout(() => { |
||||
timer = null; |
||||
}, wait); |
||||
if (callNow) func.apply(context, args); |
||||
}; |
||||
}, |
||||
// 节流函数
|
||||
throttle:function (fn,wait=500){ |
||||
var timer = null; |
||||
return function(){ |
||||
var context = this; |
||||
var args = arguments; |
||||
if(!timer){ |
||||
timer = setTimeout(function(){ |
||||
fn.apply(context,args); |
||||
timer = null; |
||||
},wait) |
||||
} |
||||
} |
||||
}); |
||||
if (isEmpty) { |
||||
//值全为空
|
||||
return true; |
||||
} |
||||
return false; |
||||
} |
||||
}, |
||||
// 获取出生日期
|
||||
getBirth:function(idCard) { |
||||
var birthday = ''; |
||||
if (idCard != null && idCard != '') { |
||||
if (idCard.length == 15) { |
||||
birthday = '19' + idCard.slice(6, 12); |
||||
} else if (idCard.length == 18) { |
||||
birthday = idCard.slice(6, 14); |
||||
} |
||||
birthday = birthday.replace(/(.{4})(.{2})/, '$1-$2-'); |
||||
//通过正则表达式来指定输出格式为:1990-01-01
|
||||
} |
||||
return birthday; |
||||
}, |
||||
// 获取年龄
|
||||
getAge:function (idCard) { |
||||
var birthday = ''; |
||||
if (idCard != null && idCard != '') { |
||||
if (idCard.length == 15) { |
||||
birthday = '19' + idCard.slice(6, 8); |
||||
} else if (idCard.length == 18) { |
||||
birthday = idCard.slice(6, 10); |
||||
} |
||||
let date = new Date() |
||||
birthday = date.getFullYear() - birthday |
||||
} |
||||
return birthday; |
||||
}, |
||||
|
||||
// 防抖
|
||||
function debounce(func, wait) { |
||||
let timer; |
||||
return function() { |
||||
let context = this; |
||||
let args = arguments; |
||||
if (timer) clearTimeout(timer); |
||||
let callNow = !timer; |
||||
timer = setTimeout(() => { |
||||
timer = null; |
||||
}, wait); |
||||
if (callNow) func.apply(context, args); |
||||
}; |
||||
} |
||||
// 获取出生日期
|
||||
function getBirth(idCard) { |
||||
var birthday = ''; |
||||
if (idCard != null && idCard != '') { |
||||
if (idCard.length == 15) { |
||||
birthday = '19' + idCard.slice(6, 12); |
||||
} else if (idCard.length == 18) { |
||||
birthday = idCard.slice(6, 14); |
||||
// 获取性别
|
||||
getSex:function (idCard) { |
||||
var sexStr = ''; |
||||
if (parseInt(idCard.slice(-2, -1)) % 2 == 1) { |
||||
sexStr = 1;//男
|
||||
} else { |
||||
sexStr = 0;//女
|
||||
} |
||||
birthday = birthday.replace(/(.{4})(.{2})/, '$1-$2-'); |
||||
//通过正则表达式来指定输出格式为:1990-01-01
|
||||
} |
||||
return birthday; |
||||
} |
||||
// 获取年龄
|
||||
function getAge(idCard) { |
||||
var birthday = ''; |
||||
if (idCard != null && idCard != '') { |
||||
if (idCard.length == 15) { |
||||
birthday = '19' + idCard.slice(6, 8); |
||||
} else if (idCard.length == 18) { |
||||
birthday = idCard.slice(6, 10); |
||||
return sexStr; |
||||
}, |
||||
|
||||
// 下载视频
|
||||
downMp4:function (url,fileName){ |
||||
// 可换成axios,项目没封装就用原生请求
|
||||
// 生成拼接链接
|
||||
// 传入文件名和路径,下载图片视频,支持跨域,a标签加download不支持跨域
|
||||
var x = new XMLHttpRequest() |
||||
x.open("GET", url, true) |
||||
x.responseType = 'blob' |
||||
x.onload=function(e) { |
||||
var url = window.URL.createObjectURL(x.response) |
||||
var a = document.createElement('a') |
||||
a.href = url |
||||
a.download = fileName |
||||
a.click() |
||||
} |
||||
let date = new Date() |
||||
birthday = date.getFullYear() - birthday |
||||
} |
||||
return birthday; |
||||
} |
||||
x.send() |
||||
}, |
||||
|
||||
// 获取性别
|
||||
function getSex(idCard) { |
||||
var sexStr = ''; |
||||
if (parseInt(idCard.slice(-2, -1)) % 2 == 1) { |
||||
sexStr = 1;//男
|
||||
} else { |
||||
sexStr = 0;//女
|
||||
exportFile(url,name){// 导出
|
||||
let downloadElement = document.createElement('a'); |
||||
downloadElement.href = url; |
||||
downloadElement.download = name||'导出列表文件'; |
||||
document.body.appendChild(downloadElement); |
||||
downloadElement.click();
|
||||
document.body.removeChild(downloadElement); |
||||
} |
||||
return sexStr; |
||||
} |
||||
|
||||
// 下载视频
|
||||
function downMp4(url,fileName){ |
||||
// 可换成axios,项目没封装就用原生请求
|
||||
// 生成拼接链接
|
||||
// 传入文件名和路径,下载图片视频,支持跨域,a标签加download不支持跨域
|
||||
var x = new XMLHttpRequest() |
||||
x.open("GET", url, true) |
||||
x.responseType = 'blob' |
||||
x.onload=function(e) { |
||||
var url = window.URL.createObjectURL(x.response) |
||||
var a = document.createElement('a') |
||||
a.href = url |
||||
a.download = fileName |
||||
a.click() |
||||
} |
||||
x.send() |
||||
} |
||||
export default { |
||||
fMoney, |
||||
fMoney2, |
||||
fMoney3, |
||||
toDateTime, |
||||
orderreleaseType, |
||||
auditStatus, |
||||
businessType, |
||||
operationType, |
||||
removeByValue, |
||||
objectValueAllEmpty, |
||||
debounce, |
||||
getBirth, |
||||
getSex, |
||||
getAge, |
||||
paymentStatus, |
||||
stcStatus, |
||||
downMp4 |
||||
|
||||
}; |
||||
|
Loading…
Reference in new issue