15 changed files with 2865 additions and 3043 deletions
@ -1,172 +1,172 @@ |
|||
import { _get, _post,_form,_delete } from "../http/index"; |
|||
|
|||
//企业信息登记
|
|||
export const addEnterpriseInformation = (params, success, error) => _post("/app/enterpriseInformation/add", params, success, error); |
|||
|
|||
//查询企业二维码
|
|||
export const queryEnterpriseInformationQrCode = (enterpriseNumber, success, error) => _get("/app/enterpriseInformation/getQrCode/"+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) |
|||
// 查询
|
|||
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) => _get("/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) =>_get("/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 |
|||
*/ |
|||
import { _get, _post,_form,_delete } from "../http/index"; |
|||
|
|||
//企业信息登记
|
|||
export const addEnterpriseInformation = (params, success, error) => _post("/app/enterpriseInformation/add", params, success, error); |
|||
|
|||
//查询企业二维码
|
|||
export const queryEnterpriseInformationQrCode = (enterpriseNumber, success, error) => _get("/app/enterpriseInformation/getQrCode/"+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) |
|||
// 查询
|
|||
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) =>_get("/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) |
|||
@ -1,101 +1,107 @@ |
|||
|
|||
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
|
|||
userId:"", |
|||
// token
|
|||
token: "", |
|||
//当前登录用户的手机号
|
|||
phonenumber:"", |
|||
//是否初始化加载
|
|||
firstLoad: true |
|||
}), |
|||
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_ID(data){ |
|||
this.userId = data; |
|||
}, |
|||
//设置用户token
|
|||
SET_TOKEN(data){ |
|||
this.token = data; |
|||
}, |
|||
//设置用户token
|
|||
SET_IS_FIRST_LOAD(data){ |
|||
this.firstLoad = data; |
|||
}, |
|||
//设置用户手机号码
|
|||
SET_USER_PHONENUMBER(data){ |
|||
this.phonenumber = 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; |
|||
} |
|||
}, |
|||
}, |
|||
}); |
|||
|
|||
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
|
|||
userId:"", |
|||
// token
|
|||
token: "", |
|||
//当前登录用户的手机号
|
|||
phonenumber:"", |
|||
//是否初始化加载
|
|||
firstLoad: true, |
|||
// 是否执法人员
|
|||
hasLaw: true, |
|||
}), |
|||
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_ID(data){ |
|||
this.userId = 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; |
|||
} |
|||
}, |
|||
}, |
|||
}); |
|||
|
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue