164 changed files with 1459 additions and 258 deletions
@ -0,0 +1,42 @@ |
|||||
|
package com.zdxt.enforcementcode.config; |
||||
|
|
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.beans.factory.annotation.Value; |
||||
|
import org.springframework.context.annotation.Configuration; |
||||
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; |
||||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
||||
|
|
||||
|
/** |
||||
|
* 本地文件静态资源映射配置 |
||||
|
* <p> |
||||
|
* 将 URL 路径 /profile/** 映射到本地磁盘文件目录, |
||||
|
* 使上传的附件可通过浏览器直接访问(图片预览、文件下载等)。 |
||||
|
* </p> |
||||
|
* |
||||
|
* @author zdxt |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Configuration |
||||
|
public class LocalFileResourceConfig implements WebMvcConfigurer { |
||||
|
|
||||
|
@Value("${zdxt.file.upload-path:#{T(java.lang.System).getProperty('user.dir') + '/upload'}}") |
||||
|
private String uploadBasePath; |
||||
|
|
||||
|
@Value("${zdxt.file.url-prefix:/profile}") |
||||
|
private String urlPrefix; |
||||
|
|
||||
|
@Override |
||||
|
public void addResourceHandlers(ResourceHandlerRegistry registry) { |
||||
|
// 确保路径格式正确:URL 以 /** 结尾,本地路径以 file: 开头、/ 结尾
|
||||
|
String pathPattern = urlPrefix.endsWith("/") ? urlPrefix + "**" : urlPrefix + "/**"; |
||||
|
String locationPath = uploadBasePath.replace("\\", "/"); |
||||
|
if (!locationPath.endsWith("/")) { |
||||
|
locationPath += "/"; |
||||
|
} |
||||
|
String resourceLocation = "file:" + locationPath; |
||||
|
|
||||
|
log.info("静态资源映射: {} -> {}", pathPattern, resourceLocation); |
||||
|
registry.addResourceHandler(pathPattern) |
||||
|
.addResourceLocations(resourceLocation); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper |
||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.zdxt.enforcementcode.mapper.LinkageDictMapper"> |
||||
|
</mapper> |
||||
@ -0,0 +1,15 @@ |
|||||
|
-- 企业端,密码:123456 |
||||
|
-- 17608540150,weil45,"",15817307171,深圳农牧美益肉业有限公司,91440300662678582M,21 |
||||
|
-- 17608557492,DGD440881199506180622,"",15817381630,深圳市深水龙岗污水处理有限公司,914403006820066603,12 |
||||
|
-- 17608540121,smiledzb1982,"",13723454151,深圳康泰生物制品股份有限公司,91440300618837873J,10 |
||||
|
-- 17608594890,A7271888,"",13751661770,深圳市里程食品有限公司,91440300738848091F,9 |
||||
|
-- 17608565612,qintongzhen138,"",13823610579,欧姆龙电子部件(深圳)有限公司,914403007261811621,9 |
||||
|
-- 17608601734,XP073215,"",15012671807,深圳市强达电路股份有限公司,91440300763461366N,9 |
||||
|
-- 17608556724,33ef1970fd449676fa4bc197,"",13537602265,吉田拉链(深圳)有限公司公明工厂,91440300788302281W,8 |
||||
|
update enterprise_user set password='df9f19db2f0503c4564d967956adc318',salt='413f53' where user_id='17608540150'; |
||||
|
update enterprise_user set password='011c72e1631ae4d37463b6ec1f0d4825',salt='413f53' where user_id='17608557492'; |
||||
|
update enterprise_user set password='4c5ddbdb1266ef79b9e552f603c5a368',salt='413f53' where user_id='17608540121'; |
||||
|
update enterprise_user set password='18e70eb4a12f389c2969d09d16964ed2',salt='413f53' where user_id='17608594890'; |
||||
|
update enterprise_user set password='f1035f44ee5654be31465a6be5cd4240',salt='413f53' where user_id='17608565612'; |
||||
|
update enterprise_user set password='0071ba98dde715b02b82b22acfc7379c',salt='413f53' where user_id='17608601734'; |
||||
|
update enterprise_user set password='efc923c94bbb4a3d617d6865d7b7e694',salt='413f53' where user_id='17608556724'; |
||||
@ -0,0 +1,208 @@ |
|||||
|
import { _get, _post,_form,_delete } from "../../http/index"; |
||||
|
|
||||
|
// region 重新整理有用的接口
|
||||
|
|
||||
|
let enterpriseAppBaseUrl = "/app/enterprise"; |
||||
|
// 企业端用户登录
|
||||
|
export const enterpriseLogin = (params, success, error) => _post(enterpriseAppBaseUrl + "/login/do", params, success, error); |
||||
|
|
||||
|
// 获取包裹的数据
|
||||
|
export const siqCode = (params, success, error) => _get(enterpriseAppBaseUrl+"/thirdLogin/getSiqCode",params,success,error); |
||||
|
|
||||
|
|
||||
|
// 获取用户关联的企业信息
|
||||
|
export const getUserRefEnterpriseInfo = (params, success, error) => _get(enterpriseAppBaseUrl + "/enterpriseInfo/getUserRefEnterpriseInfo", params, success, error); |
||||
|
//查询用户关联企业授权信息
|
||||
|
export const getEnterpriseMerchantAuthorization = (params, success, error) => _get(enterpriseAppBaseUrl + "/authorization/queryList",params,success,error); |
||||
|
|
||||
|
//查询企业二维码
|
||||
|
export const queryEnterpriseInformationQrCode = (enterpriseNumber, success, error) => _get(enterpriseAppBaseUrl+"/enterpriseInfo/getQrCode/"+enterpriseNumber,null,success,error) |
||||
|
|
||||
|
|
||||
|
// endregion
|
||||
|
|
||||
|
|
||||
|
|
||||
|
//深i企登录
|
||||
|
export const getSiqLoginAuth = (params, success, error) => _post(enterpriseAppBaseUrl +"/thirdLogin/siqLogin",params,success,error); |
||||
|
|
||||
|
export const getSiqLoginAuthTest = (params, success, error) => _post("/app/thirdLogin/siqLoginTest",params,success,error); |
||||
|
|
||||
|
//企业信息登记
|
||||
|
export const addEnterpriseInformation = (params, success, error) => _post("/app/enterpriseInformation/add", params, success, error); |
||||
|
|
||||
|
//查询企业信息
|
||||
|
export const searchEnterpriseByNumber = (enterpriseNumber, success, error) => _get("/app/enterpriseInformation/searchEnterpriseByNumber/"+enterpriseNumber, null, success, error); |
||||
|
|
||||
|
|
||||
|
//查询企业执法登记列表
|
||||
|
export const queryRegistrationList = (params, success, error) => _get("/app/code/registration/queryList",params,success,error) |
||||
|
//查询企业执法登记列表-企业端修改联合检查查询语句
|
||||
|
export const queryEnterpriseList = (params, success, error) => _get("/app/code/registration/queryEnterpriseList",params,success,error) |
||||
|
//查询企业执法登记列表 - 剔除执法日期距离今天超过5天的执法记录
|
||||
|
export const queryRegistrationList2 = (params, success, error) => _get("/app/code/registration/queryList2",params,success,error) |
||||
|
|
||||
|
//查询执法日期距离今天至5日内的的执法记录
|
||||
|
export const queryListWithFiveDay = (params, success, error) => _get("/app/code/registration/queryListWithFiveDay",params,success,error) |
||||
|
|
||||
|
/** |
||||
|
* 查询企业执法登记列表-不分页 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const selectRegistrationList = (params, success, error) => _get("/app/code/registration/selectList",params,success,error) |
||||
|
|
||||
|
//保存在线投诉
|
||||
|
export const addEnterpriseComplaint = (params, success, error) => _post("/app/code/complaint/add",params,success,error) |
||||
|
|
||||
|
// 投诉-- 查询行政and非行政未被投诉列表
|
||||
|
export const getAllCheckList = (params, success, error) => _post("/app/code/complaint/getAllCheckList",params,success,error) |
||||
|
|
||||
|
// 查询
|
||||
|
export const getEnterpriseComplaintById = (id, success, error) => _get("/app/code/complaint/getById/"+id,null,success,error) |
||||
|
|
||||
|
//查询投诉工单详情
|
||||
|
export const complaintInfoById = (params, success, error) => _get("/app/code/complaint/queryById",params,success,error) |
||||
|
//查询投诉工单处置进度列表
|
||||
|
export const complaintInfoProcessById = (params, success, error) => _get("/app/code/complaint/queryProcessById",params,success,error) |
||||
|
//工单办结
|
||||
|
export const mssqQueryEndInfo = (params, success, error) => _get("/app/code/complaint/mssqQueryEndInfo",params,success,error) |
||||
|
// 诉求工单评价页面
|
||||
|
export const toMssqAppraise = (params, success, error) => _post("/app/code/complaint/mssqAppraise",params,success,error) |
||||
|
|
||||
|
// 诉求工单评价页面
|
||||
|
export const queryEnterpriseComplaintList = (params, success, error) => _post("/app/code/complaint/queryList",params,success,error) |
||||
|
export const getObjByKey = (params, success, error) => _get("/app/satisfy/getObjByKey/"+params,null,success,error) |
||||
|
export const mssqDownFiles = (params, success, error) => _post("/app/satisfy/mssqDownFiles",params,success,error) |
||||
|
export const mssqDownFile = (params, success, error) => _post("/app/satisfy/mssqDownFile",params,success,error) |
||||
|
/** |
||||
|
* 查询企业行政执法通知记录 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryEnforcementList = (params, success, error) => _post("/app/code/enforcement/queryList",params,success,error) |
||||
|
|
||||
|
/** |
||||
|
* 查询企业信息 |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const getEnterpriseInformation = (id,success,error) => _get("/app/enterpriseInformation/getEnterpriseInformation/" + id,null,success,error) |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询企业列表 |
||||
|
* @param {} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryEnterpriseInfoList = (params, success, error) =>_get("/app/enterpriseInformation/queryList",params, success, error) |
||||
|
|
||||
|
/** |
||||
|
* 查询企业列表 |
||||
|
* @param {} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryEnterpriseInfoListAndQrInfo = (params, success, error) =>_post("/app/enterpriseInformation/queryListAndQrInfo",params, success, error) |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询企业历史二维码生成记录 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryHistoryQrCodeList = (params, success, error) =>_get("/app/enterpriseInformation/queryHistoryQrCodeList",params, success, error) |
||||
|
|
||||
|
/** |
||||
|
* 查询历史检查案件 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryXzjcjbxxList = (params, success, error) =>_post("/app/xzjcjbxx/queryList", params,success, error) |
||||
|
|
||||
|
/** |
||||
|
* 查询强制案件 |
||||
|
* @param {*} enterpriseNumber |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryQZAJList = (params, success, error) =>_post("/app/xzjcjbxx/queryQZAJList", params,success, error) |
||||
|
/** |
||||
|
* 查询历史处罚案件 |
||||
|
* @param {*} enterpriseNumber |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryCFAJList = (params, success, error) =>_post("/app/xzjcjbxx/queryCFAJList",params,success, error) |
||||
|
/** |
||||
|
* 查询企业是否存在 |
||||
|
* @param {*} enterpriseNumber 企业统一信用代码 |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const checkIsExists = (enterpriseNumber, success, error) =>_get("/app/enterpriseInformation/checkIsExists/" + enterpriseNumber,null,success, error) |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 保存企业对行政执法的评价 |
||||
|
* @param {*} enterpriseNumber 企业统一信用代码 |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const addEvaluateInfo = (params, success, error) =>_post("/app/evaluate/add",params,success, error) |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询民生诉求执法部门列表 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryComplaintItemList = (params, success, error) =>_get("/app/code/item/queryList",params,success, error) |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询执法人员统计数据 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryStatisticsIndicatorPart1 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart1",params,success,error) |
||||
|
|
||||
|
/** |
||||
|
* 查询统计个人分析数据 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryStatisticsIndicatorPart2 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart2",params,success,error) |
||||
|
|
||||
|
/** |
||||
|
* 查询统计部门分析数据 |
||||
|
* @param {*} params |
||||
|
* @param {*} success |
||||
|
* @param {*} error |
||||
|
* @returns |
||||
|
*/ |
||||
|
export const queryStatisticsIndicatorPart3 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart3",params,success,error) |
||||
|
|
||||
|
//获取全部执法单位
|
||||
|
export const getAllEnforceDept = (params, success, error) => _post("/app/code/registration/getAllEnforceDept",params,success,error) |
||||
@ -0,0 +1,29 @@ |
|||||
|
|
||||
|
const routes = [ |
||||
|
// 企业端登录
|
||||
|
{ |
||||
|
path: "/enterprise/login", |
||||
|
name: "enterpriseLogin", |
||||
|
component: () => import("@/views/enterprise/login.vue"), |
||||
|
meta: { |
||||
|
isKeepAlive: false, |
||||
|
}, |
||||
|
}, |
||||
|
// 企业端首页(新路由名称)
|
||||
|
{ |
||||
|
path: "/enterprise/home", |
||||
|
name: "enterpriseHome", |
||||
|
component: () => import("@/views/enterprise/enterpriseHome.vue"), |
||||
|
meta: { |
||||
|
isKeepAlive: false, |
||||
|
}, |
||||
|
}, |
||||
|
// 执法监督码
|
||||
|
{ |
||||
|
path: "/enterprise/qrCode", |
||||
|
name: "enterpriseQrCode", |
||||
|
component: () => import("@/views/enterprise/qrCode.vue"), |
||||
|
} |
||||
|
]; |
||||
|
|
||||
|
export {routes}; |
||||
@ -0,0 +1,123 @@ |
|||||
|
|
||||
|
import { getLang, getGoodsNum, getGoodsdetal } from "@/api/common"; |
||||
|
|
||||
|
export default defineStore('useCommon', { |
||||
|
state: () => ({ |
||||
|
subMsgKey: "", // 定义通知(由于路由不再支持parmas传参丢失)
|
||||
|
goods_card_num: 0, |
||||
|
is_reload_card: false, |
||||
|
id:"", |
||||
|
//企业统一信用代码
|
||||
|
enterpriseNumber:"", |
||||
|
//企业名称
|
||||
|
enterpriseName:"", |
||||
|
//企业ID
|
||||
|
enterpriseId:"", |
||||
|
//当前登录用户ID
|
||||
|
userId:"", |
||||
|
//执法主体
|
||||
|
orgId:"", |
||||
|
// token
|
||||
|
token: "", |
||||
|
//当前登录用户的手机号
|
||||
|
phonenumber:"", |
||||
|
//是否初始化加载
|
||||
|
firstLoad: true, |
||||
|
// 是否执法人员
|
||||
|
hasLaw: false, |
||||
|
}), |
||||
|
getters: {}, |
||||
|
actions: { |
||||
|
// 设置缓存页面通知事件标识
|
||||
|
SET_SUB_MSG_KEY(data) { |
||||
|
this.subMsgKey = data; |
||||
|
}, |
||||
|
// 设置购物车数量
|
||||
|
SET_GOODS_NUM(data) { |
||||
|
this.goods_card_num = data; |
||||
|
}, |
||||
|
// 是否重新加载购物车
|
||||
|
SET_RELAOD_SHOP(data) { |
||||
|
this.is_reload_card = data; |
||||
|
}, |
||||
|
//修改用户关联的企业纳税识别号
|
||||
|
SET_USER_ENTERPRISE_NUMBER(data){ |
||||
|
this.enterpriseNumber = data; |
||||
|
}, |
||||
|
//修改用户关联的企业纳税识别号
|
||||
|
SET_USER_ENTERPRISE_NAME(data){ |
||||
|
this.enterpriseName = data; |
||||
|
}, |
||||
|
//设置企业ID
|
||||
|
SET_USER_ENTERPRISE_ID(data){ |
||||
|
this.enterpriseId = data; |
||||
|
}, |
||||
|
//设置用户ID
|
||||
|
SET_USER_ID(data){ |
||||
|
this.userId = data; |
||||
|
}, |
||||
|
//设置执法主体ID
|
||||
|
SET_ORG_ID(data){ |
||||
|
this.orgId = data; |
||||
|
}, |
||||
|
//设置用户token
|
||||
|
SET_TOKEN(data){ |
||||
|
this.token = data; |
||||
|
}, |
||||
|
//设置用户token
|
||||
|
SET_IS_FIRST_LOAD(data){ |
||||
|
this.firstLoad = data; |
||||
|
}, |
||||
|
//设置用户手机号码
|
||||
|
SET_USER_PHONENUMBER(data){ |
||||
|
this.phonenumber = data; |
||||
|
}, |
||||
|
//设置是否执法人员
|
||||
|
SET_HAS_LAW(data){ |
||||
|
this.hasLaw = data; |
||||
|
}, |
||||
|
// 获取多语言数据
|
||||
|
async getLang(params) { |
||||
|
let url = $globalRequestUrl({ |
||||
|
url: getLang, |
||||
|
}); |
||||
|
|
||||
|
try { |
||||
|
const rep = await $globalRequest(url, params, { method: "GET" }); |
||||
|
return rep; |
||||
|
} catch (error) { |
||||
|
return error; |
||||
|
} |
||||
|
}, |
||||
|
// 获取购物车数量
|
||||
|
async getGoodsNum(params) { |
||||
|
let url = $globalRequestUrl({ |
||||
|
url: getGoodsNum, |
||||
|
}); |
||||
|
|
||||
|
try { |
||||
|
const rep = await $globalRequest(url, params, { method: "GET" }); |
||||
|
return rep; |
||||
|
} catch (error) { |
||||
|
return error; |
||||
|
} |
||||
|
}, |
||||
|
// 获取商品详情
|
||||
|
async getGoodsdetal(params) { |
||||
|
let url = $globalRequestUrl({ |
||||
|
url: getGoodsdetal, |
||||
|
}); |
||||
|
|
||||
|
try { |
||||
|
const rep = await $globalRequest(url, params, { method: "POST" }); |
||||
|
return rep; |
||||
|
} catch (error) { |
||||
|
return error; |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
persist: { |
||||
|
storage: sessionStorage, |
||||
|
pick: ['token', 'userId', 'enterpriseNumber', 'enterpriseName', 'enterpriseId', 'phonenumber', 'orgId', 'hasLaw'], |
||||
|
}, |
||||
|
}); |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue