From 10fa8f628e1b2a80811e3cf167654d42cd168a20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=86=AC=E4=BF=8A?= <1005441938@qq.com>
Date: Mon, 22 Dec 2025 10:33:24 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/index.js | 6 +-
src/api/compliance/conmm.js | 63 +++
src/api/compliance/statistics.js | 115 ++++++
src/components/NewCom/WkDepSelect/index.vue | 1 +
.../NewCom/WkUserDepSelect/index.vue | 1 +
src/store/modules/compliance.js | 109 ++---
src/store/modules/user.js | 3 +-
src/utils/request.js | 1 +
src/views/compliance/keypoint/index.vue | 119 +++---
.../compliance/keypoint/rankingDetails.vue | 115 +++---
.../compliance/statistics/alertstatistics.vue | 381 ++++++++----------
src/views/compliance/statistics/index.vue | 291 +++++++------
.../compliance/warningStatistics/index.vue | 127 +++---
.../warningStatistics/indicatorDetails.vue | 108 ++---
src/views/layout/components/NavManager.vue | 3 +-
src/views/layout/components/Navbar.vue | 8 +-
16 files changed, 867 insertions(+), 584 deletions(-)
create mode 100644 src/api/compliance/conmm.js
create mode 100644 src/api/compliance/statistics.js
diff --git a/config/index.js b/config/index.js
index ddf9c63a..275e91ee 100644
--- a/config/index.js
+++ b/config/index.js
@@ -11,7 +11,7 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api': {
- target: 'http://localhost:8443/',
+ target: 'http://192.168.100.115:8443/',
changeOrigin: true,
pathRewrite: {
'^/api': ''
@@ -27,7 +27,7 @@ module.exports = {
},
// Various Dev Server settings
- host: '127.0.0.1', // can be overwritten by process.env.HOST
+ host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8090, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
@@ -37,7 +37,7 @@ module.exports = {
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
- useEslint: true,
+ useEslint: false,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
diff --git a/src/api/compliance/conmm.js b/src/api/compliance/conmm.js
new file mode 100644
index 00000000..d2d9b138
--- /dev/null
+++ b/src/api/compliance/conmm.js
@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+
+/**
+ *
+
+查询指标主管税务机关和科分局代码
+ * @param {*} data
+ */
+export function getZjzbSwjgVoList(data) {
+ return request({
+ url: 'crmZjzbdmVo/getZjzbSwjgVoList',
+ method: 'get',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+// 征收项目
+export function getZjzbZsxmVoList(data) {
+ return request({
+ url: 'crmZjzbdmVo/getZjzbZsxmVoList',
+ method: 'get',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+// 应征凭证种类
+export function getZjzbDzbzdszlVoList(data) {
+ return request({
+ url: 'crmZjzbdmVo/getZjzbDzbzdszlVoList',
+ method: 'get',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+// 全部自检指标
+export function crmZjzbdmVoList(data) {
+ return request({
+ url: 'crmZjzbdmVo/list',
+ method: 'get',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+// 指标大类
+export function getZjzbdlVoList(data) {
+ return request({
+ url: 'crmZjzbdmVo/getZjzbdlVoList',
+ method: 'get',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
\ No newline at end of file
diff --git a/src/api/compliance/statistics.js b/src/api/compliance/statistics.js
new file mode 100644
index 00000000..392eb21f
--- /dev/null
+++ b/src/api/compliance/statistics.js
@@ -0,0 +1,115 @@
+import request from '@/utils/request'
+
+/**
+ * 申报自检结果统计
+ * @param {*} data
+ */
+export function accountQuery(data) {
+ return request({
+ url: 'crmSbzjjg/accountQuery',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+/**
+ * 申报自检结果统计明细
+ * @param {*} data
+ */
+export function accountQueryDetail(data) {
+ return request({
+ url: 'crmSbzjjg/accountQueryDetail',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+
+/**
+ * 重点企业排名统计
+ * @param {*} data
+ */
+export function rankByEnterpriseRisk(data) {
+ return request({
+ url: 'crmSbzjjg/rankByEnterpriseRisk',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+
+/**
+ * 重点企业排名统计明细
+ * @param {*} data
+ */
+export function rankByEnterpriseRiskDetail(data) {
+ return request({
+ url: 'crmSbzjjg/rankByEnterpriseRiskDetail',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+
+/**
+ * 指标预警排名统计
+ * @param {*} data
+ */
+export function rankByPointerType(data) {
+ return request({
+ url: 'crmSbzjjg/rankByPointerType',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+
+/**
+ * 指标预警排名统计明细
+ * @param {*} data
+ */
+export function rankByPointerTypeDetail(data) {
+ return request({
+ url: 'crmSbzjjg/rankByPointerTypeDetail',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+
+// 导出
+export function exportExcelForSbzjjg(data) {
+ return request({
+ url: 'crmSbzjjg/exportExcelForSbzjjg',
+ method: 'post',
+ responseType: 'blob',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+
+// 导入
+export function uploadExcelForSbzjjg(data) {
+ return request({
+ url: 'crmSbzjjg/importExcelForSbzjjg',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
\ No newline at end of file
diff --git a/src/components/NewCom/WkDepSelect/index.vue b/src/components/NewCom/WkDepSelect/index.vue
index 39b1c3f3..95ab9ab6 100644
--- a/src/components/NewCom/WkDepSelect/index.vue
+++ b/src/components/NewCom/WkDepSelect/index.vue
@@ -274,6 +274,7 @@ export default {
* 获取请求
*/
requestDepList() {
+ console.log('获取请求',this.config.dataType)
if (this.config.dataType === 'manage') {
// 以缓存中的全部数据为id转对象的源
this.$store.dispatch('debounceGetDeptList')
diff --git a/src/components/NewCom/WkUserDepSelect/index.vue b/src/components/NewCom/WkUserDepSelect/index.vue
index 56e0d20e..ab118bf9 100644
--- a/src/components/NewCom/WkUserDepSelect/index.vue
+++ b/src/components/NewCom/WkUserDepSelect/index.vue
@@ -389,6 +389,7 @@ export default {
* 获取请求
*/
requestDepList() {
+ console.log('获取请求',this.config.dataType)
if (this.config.dataType === 'manage') {
this.$store.dispatch('debounceGetDeptList')
} else if (this.config.dataType === 'hrm') {
diff --git a/src/store/modules/compliance.js b/src/store/modules/compliance.js
index 7788dae4..9ac25ebe 100644
--- a/src/store/modules/compliance.js
+++ b/src/store/modules/compliance.js
@@ -1,45 +1,44 @@
-import {
- hrmEmployeeQueryLoginEmployeeAPI,
- hrmEmployeeAllListAPI
-} from '@/api/hrm/employee'
-import {
- hrmDeptQueryTreeListAPI
-} from '@/api/hrm/dept'
import { debounce } from 'throttle-debounce'
-
+import { getZjzbSwjgVoList,getZjzbZsxmVoList,getZjzbDzbzdszlVoList,crmZjzbdmVoList,getZjzbdlVoList } from '@/api/compliance/conmm'
const hrm = {
state: {
- hrmUserInfo: null, // 人资用户信息
- hrmShowType: 1, // 1 管理 2 员工
- hrmUserList: [], // 人力资源员工和部门
- hrmDeptList: []
+ zjzbSwjg: [] || JSON.parse(localStorage.getItem('SET_SWFG')),
+ zsxmlist: [],
+ yzpzzlist: [],
+ jczblist: [],
+ zbdllist:[]
},
mutations: {
- SET_HRMUSERINFO: (state, hrmUserInfo) => {
- state.hrmUserInfo = hrmUserInfo
+ SET_ZSXMLIST: (state, data) => {
+ state.zsxmlist = data
},
- SET_HRMSHOWTYPE: (state, hrmShowType) => {
- state.hrmShowType = hrmShowType
+ SET_SWFG: (state, data) => {
+ state.zjzbSwjg = data
},
- SET_HRMUSERLIST: (state, data) => {
- state.hrmUserList = data
+ SET_YZPZZL: (state, data) => {
+ state.yzpzzlist = data
},
- SET_HRMDEPTLIST: (state, data) => {
- state.hrmDeptList = data
- }
+ SET_JCZB: (state, data) => {
+ state.jczblist = data
+ },
+ SET_ZBDL: (state, data) => {
+ state.zbdllist = data
+ },
+
},
actions: {
- // 获取人资用户信息
- GetHrmUserInfo({
+ // 获取主管税局信息
+ GetSwgUserInfo({
commit
}) {
return new Promise((resolve, reject) => {
- hrmEmployeeQueryLoginEmployeeAPI().then(res => {
+ getZjzbSwjgVoList().then(res => {
const resData = res.data || {}
- commit('SET_HRMUSERINFO', resData)
+ localStorage.setItem('SET_SWFG', JSON.stringify(resData))
+ commit('SET_SWFG', resData)
resolve(res)
}).catch(error => {
reject(error)
@@ -47,43 +46,61 @@ const hrm = {
})
},
- debounceGetHrmUserList: debounce(3000, ({ dispatch }) => {
- dispatch('GetHrmUserList')
- }),
-
- // 管理后台员工列表
- GetHrmUserList({
+ // 征收项目列表
+ GetZsxmList({
commit
}) {
return new Promise((resolve, reject) => {
- hrmEmployeeAllListAPI({
- pageType: 0
- }).then(res => {
- commit('SET_HRMUSERLIST', res.data || [])
- resolve()
+ getZjzbZsxmVoList().then(res => {
+ commit('SET_ZSXMLIST', res.data || [])
+ resolve(res)
}).catch(error => {
reject(error)
})
})
},
- debounceGetHrmDeptList: debounce(3000, ({ dispatch }) => {
- dispatch('GetHrmDeptList')
- }),
-
- // 管理后台部门列表
- GetHrmDeptList({
+ // 应征凭证种类
+ GetYzpzzlList({
commit
}) {
return new Promise((resolve, reject) => {
- hrmDeptQueryTreeListAPI({}).then(res => {
- commit('SET_HRMDEPTLIST', res.data || [])
- resolve()
+ getZjzbDzbzdszlVoList({}).then(res => {
+ commit('SET_YZPZZL', res.data || [])
+ resolve(res)
}).catch(error => {
reject(error)
})
})
- }
+ },
+
+ // 全部指标
+ GetJczbList({
+ commit
+ }) {
+ return new Promise((resolve, reject) => {
+ crmZjzbdmVoList({}).then(res => {
+ commit('SET_JCZB', res.data || [])
+ resolve(res)
+ }).catch(error => {
+ reject(error)
+ })
+ })
+ },
+ // 全部指标大类
+ GetZbdlList({
+ commit
+ }) {
+ return new Promise((resolve, reject) => {
+ getZjzbdlVoList({}).then(res => {
+ commit('SET_ZBDL', res.data || [])
+ resolve(res)
+ }).catch(error => {
+ reject(error)
+ })
+ })
+ },
+
}
}
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 9091d937..36e58bb9 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -38,7 +38,7 @@ const user = {
oa: {}, // 办公
project: {}, // 项目管理
hrm: {}, // 人力资源
- compliance: {} // 合规管理
+ compliance: 'compliance'// 合规管理
},
mutations: {
@@ -111,7 +111,6 @@ const user = {
return new Promise((resolve, reject) => {
adminIndexAuthListAPI().then((response) => {
let data = response.data
- data.compliance='compliance'
Lockr.set('authList', data)
data.wkFirstModel = data.firstModel
commit('SET_ALLAUTH', data)
diff --git a/src/utils/request.js b/src/utils/request.js
index d63c4519..10f6e1b0 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -83,6 +83,7 @@ service.interceptors.request.use(
// response 拦截器
service.interceptors.response.use(
response => {
+ console.log('测试',response.headers['content-disposition'])
/**
* code为非20000是抛错 可结合自己业务进行修改
*/
diff --git a/src/views/compliance/keypoint/index.vue b/src/views/compliance/keypoint/index.vue
index 447922b3..17f66fc0 100644
--- a/src/views/compliance/keypoint/index.vue
+++ b/src/views/compliance/keypoint/index.vue
@@ -6,17 +6,18 @@