15 changed files with 2865 additions and 3043 deletions
@ -1,172 +1,172 @@ |
|||||
import { _get, _post,_form,_delete } from "../http/index"; |
import { _get, _post,_form,_delete } from "../http/index"; |
||||
|
|
||||
//企业信息登记
|
//企业信息登记
|
||||
export const addEnterpriseInformation = (params, success, error) => _post("/app/enterpriseInformation/add", params, success, error); |
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 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 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) |
export const queryEnterpriseList = (params, success, error) => _get("/app/code/registration/queryEnterpriseList",params,success,error) |
||||
//查询企业执法登记列表 - 剔除执法日期距离今天超过5天的执法记录
|
//查询企业执法登记列表 - 剔除执法日期距离今天超过5天的执法记录
|
||||
export const queryRegistrationList2 = (params, success, error) => _get("/app/code/registration/queryList2",params,success,error) |
export const queryRegistrationList2 = (params, success, error) => _get("/app/code/registration/queryList2",params,success,error) |
||||
|
|
||||
//查询执法日期距离今天至5日内的的执法记录
|
//查询执法日期距离今天至5日内的的执法记录
|
||||
export const queryListWithFiveDay = (params, success, error) => _get("/app/code/registration/queryListWithFiveDay",params,success,error) |
export const queryListWithFiveDay = (params, success, error) => _get("/app/code/registration/queryListWithFiveDay",params,success,error) |
||||
|
|
||||
/** |
/** |
||||
* 查询企业执法登记列表-不分页 |
* 查询企业执法登记列表-不分页 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const selectRegistrationList = (params, success, error) => _get("/app/code/registration/selectList",params,success,error) |
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 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 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 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 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 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 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 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 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 mssqDownFiles = (params, success, error) => _post("/app/satisfy/mssqDownFiles",params,success,error) |
||||
export const mssqDownFile = (params, success, error) => _post("/app/satisfy/mssqDownFile",params,success,error) |
export const mssqDownFile = (params, success, error) => _post("/app/satisfy/mssqDownFile",params,success,error) |
||||
/** |
/** |
||||
* 查询企业行政执法通知记录 |
* 查询企业行政执法通知记录 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryEnforcementList = (params, success, error) => _post("/app/code/enforcement/queryList",params,success,error) |
export const queryEnforcementList = (params, success, error) => _post("/app/code/enforcement/queryList",params,success,error) |
||||
|
|
||||
/** |
/** |
||||
* 查询企业信息 |
* 查询企业信息 |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const getEnterpriseInformation = (id,success,error) => _get("/app/enterpriseInformation/getEnterpriseInformation/" + id,null,success,error) |
export const getEnterpriseInformation = (id,success,error) => _get("/app/enterpriseInformation/getEnterpriseInformation/" + id,null,success,error) |
||||
|
|
||||
|
|
||||
/** |
/** |
||||
* 查询企业列表 |
* 查询企业列表 |
||||
* @param {} params |
* @param {} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryEnterpriseInfoList = (params, success, error) =>_get("/app/enterpriseInformation/queryList",params, success, error) |
export const queryEnterpriseInfoList = (params, success, error) =>_get("/app/enterpriseInformation/queryList",params, success, error) |
||||
|
|
||||
/** |
/** |
||||
* 查询企业列表 |
* 查询企业列表 |
||||
* @param {} params |
* @param {} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryEnterpriseInfoListAndQrInfo = (params, success, error) =>_get("/app/enterpriseInformation/queryListAndQrInfo",params, success, error) |
export const queryEnterpriseInfoListAndQrInfo = (params, success, error) =>_get("/app/enterpriseInformation/queryListAndQrInfo",params, success, error) |
||||
|
|
||||
|
|
||||
/** |
/** |
||||
* 查询企业历史二维码生成记录 |
* 查询企业历史二维码生成记录 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryHistoryQrCodeList = (params, success, error) =>_get("/app/enterpriseInformation/queryHistoryQrCodeList",params, success, error) |
export const queryHistoryQrCodeList = (params, success, error) =>_get("/app/enterpriseInformation/queryHistoryQrCodeList",params, success, error) |
||||
|
|
||||
/** |
/** |
||||
* 查询历史检查案件 |
* 查询历史检查案件 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryXzjcjbxxList = (params, success, error) =>_post("/app/xzjcjbxx/queryList", params,success, error) |
export const queryXzjcjbxxList = (params, success, error) =>_post("/app/xzjcjbxx/queryList", params,success, error) |
||||
|
|
||||
/** |
/** |
||||
* 查询强制案件 |
* 查询强制案件 |
||||
* @param {*} enterpriseNumber |
* @param {*} enterpriseNumber |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryQZAJList = (params, success, error) =>_post("/app/xzjcjbxx/queryQZAJList", params,success, error) |
export const queryQZAJList = (params, success, error) =>_post("/app/xzjcjbxx/queryQZAJList", params,success, error) |
||||
/** |
/** |
||||
* 查询历史处罚案件 |
* 查询历史处罚案件 |
||||
* @param {*} enterpriseNumber |
* @param {*} enterpriseNumber |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryCFAJList = (params, success, error) =>_post("/app/xzjcjbxx/queryCFAJList",params,success, error) |
export const queryCFAJList = (params, success, error) =>_post("/app/xzjcjbxx/queryCFAJList",params,success, error) |
||||
/** |
/** |
||||
* 查询企业是否存在 |
* 查询企业是否存在 |
||||
* @param {*} enterpriseNumber 企业统一信用代码 |
* @param {*} enterpriseNumber 企业统一信用代码 |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const checkIsExists = (enterpriseNumber, success, error) =>_get("/app/enterpriseInformation/checkIsExists/" + enterpriseNumber,null,success, error) |
export const checkIsExists = (enterpriseNumber, success, error) =>_get("/app/enterpriseInformation/checkIsExists/" + enterpriseNumber,null,success, error) |
||||
|
|
||||
|
|
||||
/** |
/** |
||||
* 保存企业对行政执法的评价 |
* 保存企业对行政执法的评价 |
||||
* @param {*} enterpriseNumber 企业统一信用代码 |
* @param {*} enterpriseNumber 企业统一信用代码 |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const addEvaluateInfo = (params, success, error) =>_post("/app/evaluate/add",params,success, error) |
export const addEvaluateInfo = (params, success, error) =>_post("/app/evaluate/add",params,success, error) |
||||
|
|
||||
|
|
||||
|
|
||||
/** |
/** |
||||
* 查询民生诉求执法部门列表 |
* 查询民生诉求执法部门列表 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryComplaintItemList = (params, success, error) =>_get("/app/code/item/queryList",params,success, error) |
export const queryComplaintItemList = (params, success, error) =>_get("/app/code/item/queryList",params,success, error) |
||||
|
|
||||
|
|
||||
/** |
/** |
||||
* 查询执法人员统计数据 |
* 查询执法人员统计数据 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryStatisticsIndicatorPart1 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart1",params,success,error) |
export const queryStatisticsIndicatorPart1 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart1",params,success,error) |
||||
|
|
||||
/** |
/** |
||||
* 查询统计个人分析数据 |
* 查询统计个人分析数据 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryStatisticsIndicatorPart2 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart2",params,success,error) |
export const queryStatisticsIndicatorPart2 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart2",params,success,error) |
||||
|
|
||||
/** |
/** |
||||
* 查询统计部门分析数据 |
* 查询统计部门分析数据 |
||||
* @param {*} params |
* @param {*} params |
||||
* @param {*} success |
* @param {*} success |
||||
* @param {*} error |
* @param {*} error |
||||
* @returns |
* @returns |
||||
*/ |
*/ |
||||
export const queryStatisticsIndicatorPart3 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart3",params,success,error) |
export const queryStatisticsIndicatorPart3 = (params, success, error) =>_get("/app/enforcementCheckStatistics/statisticsIndicatorPart3",params,success,error) |
||||
@ -1,101 +1,107 @@ |
|||||
|
|
||||
import { getLang, getGoodsNum, getGoodsdetal } from "@/api/common"; |
import { getLang, getGoodsNum, getGoodsdetal } from "@/api/common"; |
||||
|
|
||||
export default defineStore('useCommon', { |
export default defineStore('useCommon', { |
||||
state: () => ({ |
state: () => ({ |
||||
subMsgKey: "", // 定义通知(由于路由不再支持parmas传参丢失)
|
subMsgKey: "", // 定义通知(由于路由不再支持parmas传参丢失)
|
||||
goods_card_num: 0, |
goods_card_num: 0, |
||||
is_reload_card: false, |
is_reload_card: false, |
||||
id:"", |
id:"", |
||||
//企业统一信用代码
|
//企业统一信用代码
|
||||
enterpriseNumber:"", |
enterpriseNumber:"", |
||||
//企业名称
|
//企业名称
|
||||
enterpriseName:"", |
enterpriseName:"", |
||||
//当前登录用户ID
|
//当前登录用户ID
|
||||
userId:"", |
userId:"", |
||||
// token
|
// token
|
||||
token: "", |
token: "", |
||||
//当前登录用户的手机号
|
//当前登录用户的手机号
|
||||
phonenumber:"", |
phonenumber:"", |
||||
//是否初始化加载
|
//是否初始化加载
|
||||
firstLoad: true |
firstLoad: true, |
||||
}), |
// 是否执法人员
|
||||
getters: {}, |
hasLaw: true, |
||||
actions: { |
}), |
||||
// 设置缓存页面通知事件标识
|
getters: {}, |
||||
SET_SUB_MSG_KEY(data) { |
actions: { |
||||
this.subMsgKey = data; |
// 设置缓存页面通知事件标识
|
||||
}, |
SET_SUB_MSG_KEY(data) { |
||||
// 设置购物车数量
|
this.subMsgKey = data; |
||||
SET_GOODS_NUM(data) { |
}, |
||||
this.goods_card_num = data; |
// 设置购物车数量
|
||||
}, |
SET_GOODS_NUM(data) { |
||||
// 是否重新加载购物车
|
this.goods_card_num = data; |
||||
SET_RELAOD_SHOP(data) { |
}, |
||||
this.is_reload_card = data; |
// 是否重新加载购物车
|
||||
}, |
SET_RELAOD_SHOP(data) { |
||||
//修改用户关联的企业纳税识别号
|
this.is_reload_card = data; |
||||
SET_USER_ENTERPRISE_NUMBER(data){ |
}, |
||||
this.enterpriseNumber = data; |
//修改用户关联的企业纳税识别号
|
||||
}, |
SET_USER_ENTERPRISE_NUMBER(data){ |
||||
//修改用户关联的企业纳税识别号
|
this.enterpriseNumber = data; |
||||
SET_USER_ENTERPRISE_NAME(data){ |
}, |
||||
this.enterpriseName = data; |
//修改用户关联的企业纳税识别号
|
||||
}, |
SET_USER_ENTERPRISE_NAME(data){ |
||||
//设置用户ID
|
this.enterpriseName = data; |
||||
SET_USER_ID(data){ |
}, |
||||
this.userId = data; |
//设置用户ID
|
||||
}, |
SET_USER_ID(data){ |
||||
//设置用户token
|
this.userId = data; |
||||
SET_TOKEN(data){ |
}, |
||||
this.token = data; |
//设置用户token
|
||||
}, |
SET_TOKEN(data){ |
||||
//设置用户token
|
this.token = data; |
||||
SET_IS_FIRST_LOAD(data){ |
}, |
||||
this.firstLoad = data; |
//设置用户token
|
||||
}, |
SET_IS_FIRST_LOAD(data){ |
||||
//设置用户手机号码
|
this.firstLoad = data; |
||||
SET_USER_PHONENUMBER(data){ |
}, |
||||
this.phonenumber = data; |
//设置用户手机号码
|
||||
}, |
SET_USER_PHONENUMBER(data){ |
||||
// 获取多语言数据
|
this.phonenumber = data; |
||||
async getLang(params) { |
}, |
||||
let url = $globalRequestUrl({ |
//设置是否执法人员
|
||||
url: getLang, |
SET_HAS_LAW(data){ |
||||
}); |
this.hasLaw = data; |
||||
|
}, |
||||
try { |
// 获取多语言数据
|
||||
const rep = await $globalRequest(url, params, { method: "GET" }); |
async getLang(params) { |
||||
return rep; |
let url = $globalRequestUrl({ |
||||
} catch (error) { |
url: getLang, |
||||
return error; |
}); |
||||
} |
|
||||
}, |
try { |
||||
// 获取购物车数量
|
const rep = await $globalRequest(url, params, { method: "GET" }); |
||||
async getGoodsNum(params) { |
return rep; |
||||
let url = $globalRequestUrl({ |
} catch (error) { |
||||
url: getGoodsNum, |
return error; |
||||
}); |
} |
||||
|
}, |
||||
try { |
// 获取购物车数量
|
||||
const rep = await $globalRequest(url, params, { method: "GET" }); |
async getGoodsNum(params) { |
||||
return rep; |
let url = $globalRequestUrl({ |
||||
} catch (error) { |
url: getGoodsNum, |
||||
return error; |
}); |
||||
} |
|
||||
}, |
try { |
||||
// 获取商品详情
|
const rep = await $globalRequest(url, params, { method: "GET" }); |
||||
async getGoodsdetal(params) { |
return rep; |
||||
let url = $globalRequestUrl({ |
} catch (error) { |
||||
url: getGoodsdetal, |
return error; |
||||
}); |
} |
||||
|
}, |
||||
try { |
// 获取商品详情
|
||||
const rep = await $globalRequest(url, params, { method: "POST" }); |
async getGoodsdetal(params) { |
||||
return rep; |
let url = $globalRequestUrl({ |
||||
} catch (error) { |
url: getGoodsdetal, |
||||
return error; |
}); |
||||
} |
|
||||
}, |
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