diff --git a/.env.development b/.env.development index 6683189..36d77b4 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ # @Author: 张涛 # @Date: 2023-07-18 13:04:50 # @LastEditors: 张涛 - # @LastEditTime: 2023-10-12 13:12:38 + # @LastEditTime: 2023-10-18 16:40:13 # @FilePath: \suzhouyingjiPC\.env.development ### # 页面标题 @@ -13,8 +13,8 @@ ENV = 'development' # 苏州应急执法计划管理系统/开发环境 # VUE_APP_BASE_API = 'http://39.101.188.84:9033' -# VUE_APP_BASE_API = 'http://192.168.0.106:9033' -VUE_APP_BASE_API = 'http://180.108.205.123:13002' +VUE_APP_BASE_API = 'http://localhost:13002' +# VUE_APP_BASE_API = 'http://180.108.205.123:13002' # 统一登录-内网 # VUE_APP_SSO_LOGIN = 'http://2.46.4.197:8090/sso-server/oauth2/sso?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F&response_type=code' diff --git a/src/utils/dictzh.js b/src/utils/dictzh.js new file mode 100644 index 0000000..12847e9 --- /dev/null +++ b/src/utils/dictzh.js @@ -0,0 +1,23 @@ +let dictzh = { + A: "农、林、牧、渔业", + B: "采矿业", + C: "制造业", + D: "电力、热力、燃气及水生产和供应业", + E: "建筑业", + F: "批发和零售业", + G: "交通运输、仓储和邮政业", + H: "住宿和餐饮业", + I: "信息传输、软件和信息技术服务业", + J: "金融业", + K: "房地产业", + L: "租赁和商务服务业", + N: "水利、环境和公共设施管理业", + O: "居民服务、修理和其他服务业", + P: "教育", + Q: "卫生和社会工作", + R: "文化、体育和娱乐业", + S: "公共管理、社会保障和社会组织", + T: "国际组织", +}; + +export default dictzh; diff --git a/src/views/yingji/enterprise.vue b/src/views/yingji/enterprise.vue index fdfbd18..d59cc4a 100644 --- a/src/views/yingji/enterprise.vue +++ b/src/views/yingji/enterprise.vue @@ -10,7 +10,7 @@ ref="executive" > -
+
-
行业类型:
- +
行业监管大类:
+
统一社会信用代码:
@@ -66,7 +66,7 @@ :row-class-name="tableRowClassName" > {{ componendDistrict(scope.row.subdistrict) || "/" }} - - - + --> @@ -174,11 +160,11 @@
- {{ item.value }} + {{ infoData[key] }}
@@ -193,12 +179,14 @@ import myPagination from "@/views/components/myPagination/index.vue"; import { businessList, listDist, xzTree } from "@/api/yingji/keyEnterprise"; // import { mapState } from "vuex"; import executive from "./echarts/executive"; +import dictzh from "@/utils/dictzh.js"; export default { components: { myPagination, executive }, name: "Order", data() { return { + dictzh: dictzh, tableData: [], option: [], form: {}, @@ -213,319 +201,76 @@ export default { main: { height: "", }, - listDes: [ - { - eng: "bizAddr", - label: "生产经营地址", - value: "", - }, - { - eng: "bossEmail", - label: "主要负责人电子邮箱", - value: "", - }, - { - eng: "bossMobtel", - label: "主要负责人移动电话", - value: "", - }, - { - eng: "bossTel", - label: "主要负责人固定电话", - value: "", - }, - { - eng: "businessScope", - label: "经营范围", - value: "", - }, - { - eng: "contactEmail", - label: "电子邮箱", - value: "", - }, - { - eng: "contactQq", - label: "联系QQ号码", - value: "", - }, - { - eng: "contactTel", - label: "企业固定电话", - value: "", - }, - { - eng: "cseNum", - label: "注册安全工程师人员数量", - value: "", - }, - // { - // eng: "doublePreven", - // label: "是否开展双重预防机制", - // value: "", - // }, - { - eng: "ecoTypeLarge", - label: "经济类型大类", - value: "", - }, - { - eng: "ecoTypeSmall", - label: "经济类型小类", - value: "", - }, - { - eng: "employeeNum", - label: "从业人员数量", - value: "", - }, - { - eng: "entprcolor", - label: "企业分色", - value: "", - }, - // { - // eng: "entprId", - // label: "企业ID", - // value: "", - // }, - { - eng: "entprName", - label: "企业名称", - value: "", - }, - // { - // eng: "entprPlaneGragh", - // label: "企业平面图", - // value: "", - // }, - { - eng: "floorArea", - label: "占地面积(㎡)", - value: "", - }, - { - eng: "fullEmegNum", - label: "专职应急管理人员数量", - value: "", - }, - { - eng: "fullSafety", - label: "是否有专职安全人员", - value: "", - }, - { - eng: "fullSafetyNum", - label: "专职安全生产管理人员数量", - value: "", - }, - { - eng: "gridCode", - label: "网格编码", - value: "", - }, - { - eng: "gridEntprStatus", - label: "网格对企业的关停和恢复", - value: "", - }, - { - eng: "groupCompName", - label: "集团公司名称", - value: "", - }, - { - eng: "indusTypeClass", - label: "行业类别门类", - value: "", - }, - // { - // eng: "indusTypeLagre", - // label: "行业类别大类", - // value: "", - // }, - // { - // eng: "indusTypeMiddle", - // label: "行业类别中类", - // value: "", - // }, - // { - // eng: "indusTypeSmall", - // label: "行业类别小类", - // value: "", - // }, - // { - // eng: "industryRefer", - // label: "工贸涉及(专项治理类别)", - // value: "", - // }, - { - eng: "infoYear", - label: "数据年份", - value: "", - }, - - { - eng: "isPoint", - label: "是否重点", - value: "", - }, - - { - eng: "latitudeGps", - label: "纬度(度) 84", - value: "", - }, - { - eng: "legalPerson", - label: "法定代表人", - value: "", - }, - { - eng: "localSafetyAdmin", - label: "属地安监机构", - value: "", - }, - { - eng: "longitudeGps", - label: "经度(度) 84", - value: "", - }, - { - eng: "mainProduct", - label: "主要产品", - value: "", - }, - { - eng: "majorHazardInstallations", - label: "是否存在重大危险源", - value: "", - }, - { - eng: "majorHazardLevel", - label: "企业规模", - value: "", - }, - { - eng: "operatingStatus", - label: "经营状态", - value: "", - }, - { - eng: "parentCompName", - label: "母公司名称", - value: "", - }, - { - eng: "partSafetyNum", - label: "兼职安全生产管理人员数量", - value: "", - }, - { - eng: "regAddr", - label: "注册地址", - value: "", - }, - { - eng: "regCapi", - label: "注册资金(万元)", - value: "", - }, - { - eng: "safetyDepart", - label: "是否有专门安全机构", - value: "", - }, - { - eng: "safetyDepartDuty", - label: "安全管理机构职责", - value: "", - }, - { - eng: "safetyDepartName", - label: "安全管理机构名称", - value: "", - }, - { - eng: "safetyDepartNum", - label: "安全管理机构成员数量", - value: "", - }, - { - eng: "safetyEmail", - label: "安全负责人电子邮箱", - value: "", - }, - { - eng: "safetyManager", - label: "安全负责人", - value: "", - }, - { - eng: "safetyMobtel", - label: "安全负责人移动电话", - value: "", - }, - { - eng: "safetySupervisionLevel", - label: "安全监管等级", - value: "", - }, - { - eng: "safetyTel", - label: "安全负责人固定电话", - value: "", - }, - { - eng: "setupDate", - label: "成立日期", - value: "", - }, - { - eng: "sourceData", - label: "数据来源", - value: "", - }, - { - eng: "specialGovernance", - label: "专项治理类别", - value: "", - }, - { - eng: "speclalOperationNum", - label: "特种作业人员数量", - value: "", - }, - { - eng: "standLevel", - label: "标准化等级", - value: "", - }, - { - eng: "stateOwed", - label: "是否为国有企业", - value: "", - }, - // { - // eng: "supervisionLarge", - // label: "行业监管大类", - // value: "", - // }, - // { - // eng: "supervisionSmall", - // label: "行业监管小类", - // value: "", - // }, - { - eng: "uscCode", - label: "统一社会信用代码", - value: "", - }, - ], + elDesLabels: { + 企业名称: "enterpriseName", + 统一社会信用代码: "uuitNo", + 法定代表人: "legalPerson", + 法人证件号: "frzjh", + 是否规上企业: "aboveDesignated", + 企业规模: "aboveDesignatedTwo", + 企业类型: "zjEconKind", + 生产经营地址: "businessAddress", + 行业监管大类: "supervisionLarge", + 登记状态: "corpStatus", + 行政区划: "county", + 办公地址: "enterpriseAddress", + 企业规模: "enterpristScale", + 固定资产: "fixedAssets", + 占地面积: "floorSpace", + 上一年经营收入: "lastYearOperatingIncome", + 企业上一年投入生产: "lastYeatOnStream", + 法人移动电话: "legalPersonCellphone", + 法人职务: "legalPersonPost", + 法人固定电话: "legalPersonTel", + 法人类型: "legalPersonType", + 主营业务及产品: "majorProduct", + 机构编码: "orgCode", + 其他名称: "otherName", + 登记时间: "registerTime", + 登记机关: "registrationOrg", + 注册地址: "rigisterAddress", + 注册资金: "rigisterFund", + 是否上报风险报告: "riskReport", + 安全生产投入占比: "safetyProductionInvestment", + 申请人: "sqr", + 申请人联系方式: "sqrlxfs", + 成立时间: "startTime", + "所在乡镇(街道)": "subdistrict", + 有效期起: "termStart", + 有效期止: "termEnd", + 创建时间: "createTime", + 修改时间: "updateTime", + 经营范围: "businessScope", + 备注: "remark", + // 工艺流程内容: "htmlText", + // :"updateBy", + // :"updateId", + // :"updater", + // :"userId", + // :"village", + // :"supervisionSmall", + // :"reportHistoryId", + // :"indusTypeClass", + // :"indusTypeLagre", + // :"indusTypeMiddle", + // :"indusTypeSmall", + // :"isDelete", + // :"jhptUpdateTime", + // :"lastPageNumber", + // :"creater", + // :"deptId", + // :"districtCode", + // :"province", + // :"createBy", + // :"createId", + // :"businessScope", + // :"city", + }, addShow: false, details: null, //== subdistrict: [], + infoData: {}, }; }, created() { @@ -543,8 +288,27 @@ export default { "entpr_color", "is_point", ], - + filters: { + supervisionLarge: function (value) { + // console.log(value.split(",")); + let array = value.split(","); + array.map((item, ind) => { + array[ind] = dictzh[item]; + }); + // console.log(array.join(",")); + return array.join(","); + }, + }, methods: { + supervisionLarge(value) { + // console.log(value.split(",")); + let array = value.split(","); + array.map((item, ind) => { + array[ind] = dictzh[item]; + }); + // console.log(array.join(",")); + return array.join(","); + }, // 匹配行政区划 componendDistrict(district) { let name; @@ -586,102 +350,25 @@ export default { this.addShow = false; }, look(e) { + // 查看弹窗 this.addShow = true; - this.details = e; - for (let key in this.details) { - this.listDes.forEach((value1, index1) => { - if (key == value1.eng) { - this.listDes[index1].value = - this.details[key] == "无" - ? "/" - : this.details[key] == "null" - ? "/" - : this.details[key]; - return; - } - }); - } - this.listDes.forEach((value1, index1) => { - //企业规模 - if (value1.eng == "majorHazardLevel") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.major_hazard_level, - value1.value - ); - } - //经济类型大类 - if (value1.eng == "ecoTypeLarge") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.economic_categories, - value1.value - ); - } - //经济类型小类 - if (value1.eng == "ecoTypeSmall") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.economic_subcategory, - value1.value - ); - } - //专项治理类别 - if (value1.eng == "specialGovernance") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.special_governance, - value1.value - ); - } - //隶属关系 - //企业经营状态 - if (value1.eng == "operatingStatus") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.enterprise_status, - value1.value - ); - } - //标准化等级 - if (value1.eng == "standLevel") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.standardization_level, - value1.value - ); - } - //安全监管等级 - if (value1.eng == "safetySupervisionLevel") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.safety_level, - value1.value - ); - } - //检查来源 - //文书类型 - // 检查方式 - // 行业类型 - if (value1.eng == "indusTypeClass") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.category, - value1.value - ); - } - //是否重点 - if (value1.eng == "isPoint") { - this.listDes[index1].value = this.filterTable1( - this.dict.type.is_point, - value1.value - ); - } - if (value1.value == null) { - this.listDes[index1].value = "/"; - } - if (value1.value == "false") { - this.listDes[index1].value = "否"; - } - if (value1.value == "true") { - this.listDes[index1].value = "是"; - } - }); + e["aboveDesignated"] = e.aboveDesignated == 1 ? "规上" : "规下"; + e["riskReport"] = e.riskReport == 1 ? "是" : "否"; + e["aboveDesignatedTwo"] = + e.aboveDesignatedTwo == 1 + ? "大型" + : e.aboveDesignatedTwo == 2 + ? "中型" + : e.aboveDesignatedTwo == 3 + ? "小型" + : e.aboveDesignatedTwo == 4 + ? "微型" + : ""; + e["supervisionLarge"] = this.supervisionLarge(e.supervisionLarge); + this.infoData = e; }, quhua(e) { - this.form.subdistrict = e; + this.form.SUBDISTRICT = e; }, searchList() { this.searchBefore = { @@ -694,13 +381,13 @@ export default { }, chongzhiList() { this.form = { - subdistrict: "", + SUBDISTRICT: "", frimType: "", - indusTypeClass: "", + supervisionLarge: "", // isPoint: "", majorHazardLevel: "", entprColor: "", - uscCode: "", + uuitNo: "", }; this.searchBefore = { pageSize: 10, @@ -719,8 +406,8 @@ export default { getList() { this.load1 = true; businessList(this.searchBefore).then((res) => { - this.tableData = res.data.list; - this.total = res.data.total; + this.tableData = res.rows; + this.total = res.total; this.load1 = false; }); }, @@ -731,16 +418,7 @@ export default { return ""; }, }, - // mounted() { - // this.checkListTwo = this.checkList; - // // this.$nextTick(()=>{ - // // let dom = document.getElementsByClassName('tables'); - // // let height = dom[0].getBoundingClientRect(); - // // let windowHeight = window.innerHeight; - // // let relativeHeight = windowHeight - height.top - // // this.main.height = relativeHeight - 50 - // // }) - // }, + mounted() {}, };