From c3e60ab50877d8a09a49b4ffc9f1fb216fe36c57 Mon Sep 17 00:00:00 2001
From: laozt <2721205210@qq.com>
Date: Mon, 18 Dec 2023 14:34:17 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/yingji/home.js | 16 +--
src/api/yingji/keyEnterprise.js | 143 ++++++++++------------
src/views/components/firmDialog/index.vue | 2 -
src/views/yingji/planManage.vue | 59 ++++-----
4 files changed, 107 insertions(+), 113 deletions(-)
diff --git a/src/api/yingji/home.js b/src/api/yingji/home.js
index e5514b1..3c60ee4 100644
--- a/src/api/yingji/home.js
+++ b/src/api/yingji/home.js
@@ -8,11 +8,11 @@
*/
import request from '@/utils/request'
-// 首页表格
-export function indexRegionalism(params) {
- return request({
- url: "/pharmaceuticals/division/tree",
- method: "get",
- params,
- });
-}
\ No newline at end of file
+// // 首页表格
+// export function indexRegionalism(params) {
+// return request({
+// url: "",
+// method: "get",
+// params,
+// });
+// }
\ No newline at end of file
diff --git a/src/api/yingji/keyEnterprise.js b/src/api/yingji/keyEnterprise.js
index c4323d8..c1764a0 100644
--- a/src/api/yingji/keyEnterprise.js
+++ b/src/api/yingji/keyEnterprise.js
@@ -1,117 +1,110 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
// 分页条件查询省重点企业
export function listEnterprise(query) {
- return request({
- url: '/pharmaceuticals/bKeyEnterprise',
- method: 'get',
- params: query
- })
+ return request({
+ url: "/pharmaceuticals/bKeyEnterprise",
+ method: "get",
+ params: query,
+ });
}
// 新增省重点企业
export function addEnterprise(data) {
- return request({
- url: '/pharmaceuticals/bKeyEnterprise',
- method: 'post',
- data
- })
+ return request({
+ url: "/pharmaceuticals/bKeyEnterprise",
+ method: "post",
+ data,
+ });
}
//修改省重点企业
export function updateEnterprise(data) {
- return request({
- url: '/pharmaceuticals/bKeyEnterprise',
- method: 'put',
- data
- })
+ return request({
+ url: "/pharmaceuticals/bKeyEnterprise",
+ method: "put",
+ data,
+ });
}
//删除省重点企业
export function deleteEnterprise(data) {
- return request({
- url: '/pharmaceuticals/bKeyEnterprise',
- method: 'delete',
- params: data
- })
+ return request({
+ url: "/pharmaceuticals/bKeyEnterprise",
+ method: "delete",
+ params: data,
+ });
}
//导入省重点企业
export function exportEnterprise(data) {
- return request({
- url: '/pharmaceuticals/bKeyEnterprise/common/importExcel',
- method: 'post',
- data,
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded'
- }
- })
+ return request({
+ url: "/pharmaceuticals/bKeyEnterprise/common/importExcel",
+ method: "post",
+ data,
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded",
+ },
+ });
}
//通过主键查询单条省重点企业
export function getEnterprise(id) {
- return request({
- url: `/pharmaceuticals/bKeyEnterprise/${id}`,
- method: 'get',
- })
+ return request({
+ url: `/pharmaceuticals/bKeyEnterprise/${id}`,
+ method: "get",
+ });
}
//查询企业信息列表
export function businessList(data) {
- return request({
- url: `/pharmaceuticals/info/list`,
- method: 'get',
- params: data
- })
+ return request({
+ url: `/pharmaceuticals/info/list`,
+ method: "get",
+ params: data,
+ });
}
//查询执法列表
export function enforcingDetail(data) {
- return request({
- url: `/pharmaceuticals/bPlanEnterprise/getZhifa`,
- method: 'get',
- params: data
-
- })
+ return request({
+ url: `/pharmaceuticals/bPlanEnterprise/getZhifa`,
+ method: "get",
+ params: data,
+ });
}
//执法列表详情
export function enforcingGet(id) {
- return request({
- url: `/pharmaceuticals/examine/${id}`,
- method: 'get',
- })
+ return request({
+ url: `/pharmaceuticals/examine/${id}`,
+ method: "get",
+ });
}
// 根据字段查询字典信息
export function listDist(query) {
- return request({
- url: '/pharmaceuticals/dictdata',
- method: 'get',
- params: query
- })
-}
-//计划企业表数结构
-export function planeEnTree(data) {
- return request({
- url: '/pharmaceuticals/division/tree',
- method: 'get',
- params:data
- })
+ return request({
+ url: "/pharmaceuticals/dictdata",
+ method: "get",
+ params: query,
+ });
}
+
// 行政区划树结构
export function xzTree() {
- return request({
- url: '/pharmaceuticals/division/tree',
- method: 'get',
- })
+ return request({
+ url: "/pharmaceuticals/division/tree",
+ method: "get",
+ });
}
+
//执法计划工作情况统计
export function workStatistics(data) {
- return request({
- url: '/pharmaceuticals/bPlanEnterprise/getZhifaCount',
- method: 'get',
- params:data
- })
+ return request({
+ url: "/pharmaceuticals/bPlanEnterprise/getZhifaCount",
+ method: "get",
+ params: data,
+ });
}
//各区域执法计划
export function quyuPlan(data) {
- return request({
- url: '/pharmaceuticals/bPlanEnterprise/getplan',
- method: 'get',
- params:data
- })
+ return request({
+ url: "/pharmaceuticals/bPlanEnterprise/getplan",
+ method: "get",
+ params: data,
+ });
}
diff --git a/src/views/components/firmDialog/index.vue b/src/views/components/firmDialog/index.vue
index 914982c..0040a1d 100644
--- a/src/views/components/firmDialog/index.vue
+++ b/src/views/components/firmDialog/index.vue
@@ -198,7 +198,6 @@ export default {
},
// 行政区域树状
xzList() {
- // xzTree().then((res) => {
let treeData = JSON.parse(localStorage.getItem("TREE_DATA"))
treeData.forEach((value, index) => {
this.areaData.push({
@@ -215,7 +214,6 @@ export default {
});
}
});
- // });
},
// 匹配行政区划
componendDistrict(district) {
diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue
index 9a27360..a8a1149 100644
--- a/src/views/yingji/planManage.vue
+++ b/src/views/yingji/planManage.vue
@@ -161,7 +161,7 @@
/>
-
+