企业详情

lijinlong^2
吕天方 1 year ago
parent 59693d9fba
commit f5a3fc079d

@ -20,18 +20,12 @@
<div class="filtrate"> <div class="filtrate">
<el-descriptions :column="2" border> <el-descriptions :column="2" border>
<el-descriptions-item <el-descriptions-item
:label="item.label" :label="item.label"
v-for="(item, index) in listDes" v-for="(item, index) in listDes"
:key="index" :key="index"
> >
{{ {{ item.value}}
item.value == "null" </el-descriptions-item>
? ""
: item.value == "false"
? "暂无"
: item.value
}}
</el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
</div> </div>
@ -40,6 +34,18 @@
</template> </template>
<script> <script>
export default { export default {
dicts: [
"economic_categories",
"economic_subcategory",
"special_governance",
"enterprise_status",
"standardization_level",
"safety_level",
"category",
"major_hazard_level",
"entpr_color",
"is_point",
],
data() { data() {
return { return {
addShow: false, addShow: false,
@ -89,9 +95,19 @@ export default {
label: "注册安全工程师人员数量", label: "注册安全工程师人员数量",
value: "", value: "",
}, },
// {
// eng: "doublePreven",
// label: "",
// value: "",
// },
{ {
eng: "doublePreven", eng: "ecoTypeLarge",
label: "是否开展双重预防机制", label: "经济类型大类",
value: "",
},
{
eng: "ecoTypeSmall",
label: "经济类型小类",
value: "", value: "",
}, },
{ {
@ -100,20 +116,25 @@ export default {
value: "", value: "",
}, },
{ {
eng: "enterColorChart", eng: "entprcolor",
label: "企业分色", label: "企业分色",
value: "", value: "",
}, },
// {
// eng: "entprId",
// label: "ID",
// value: "",
// },
{ {
eng: "entprName", eng: "entprName",
label: "企业名称", label: "企业名称",
value: "", value: "",
}, },
{ // {
eng: "entprPlaneGragh", // eng: "entprPlaneGragh",
label: "企业平面图", // label: "",
value: "", // value: "",
}, // },
{ {
eng: "floorArea", eng: "floorArea",
label: "占地面积(㎡)", label: "占地面积(㎡)",
@ -154,11 +175,26 @@ export default {
label: "行业类别门类", label: "行业类别门类",
value: "", value: "",
}, },
{ // {
eng: "industryRefer", // eng: "indusTypeLagre",
label: "工贸涉及(专项治理类别)", // label: "",
value: "", // value: "",
}, // },
// {
// eng: "indusTypeMiddle",
// label: "",
// value: "",
// },
// {
// eng: "indusTypeSmall",
// label: "",
// value: "",
// },
// {
// eng: "industryRefer",
// label: "()",
// value: "",
// },
{ {
eng: "infoYear", eng: "infoYear",
label: "数据年份", label: "数据年份",
@ -306,86 +342,89 @@ export default {
label: "是否为国有企业", label: "是否为国有企业",
value: "", value: "",
}, },
{ // {
eng: "supervisionLarge", // eng: "supervisionLarge",
label: "行业监管大类", // label: "",
value: "", // value: "",
}, // },
{ // {
eng: "supervisionSmall", // eng: "supervisionSmall",
label: "行业监管小类", // label: "",
value: "", // value: "",
}, // },
{ {
eng: "uscCode", eng: "uscCode",
label: "统一社会信用代码", label: "统一社会信用代码",
value: "", value: "",
}, },
], ],
details:null
} }
}, },
methods:{ methods:{
async open(option) { async open(option) {
this.addShow = true; this.addShow = true;
const { bizAddr, this.look(option)
bossEmail, // const { bizAddr,
bossMobtel, // bossEmail,
bossTel, // bossMobtel,
businessScope, // bossTel,
contactEmail, // businessScope,
contactQq, // contactEmail,
contactTel, // contactQq,
cseNum, // contactTel,
doublePreven, // cseNum,
employeeNum, // doublePreven,
enterColorChart, // employeeNum,
entprName, // enterColorChart,
entprPlaneGragh, // entprName,
floorArea, // entprPlaneGragh,
fullEmegNum, // floorArea,
fullSafety, // fullEmegNum,
fullSafetyNum, // fullSafety,
gridCode, // fullSafetyNum,
gridEntprStatus, // gridCode,
groupCompName, // gridEntprStatus,
indusTypeClass, // groupCompName,
industryRefer, // indusTypeClass,
infoYear, // industryRefer,
isPoint, // infoYear,
latitudeGps, // isPoint,
legalPerson, // latitudeGps,
localSafetyAdmin, // legalPerson,
longitudeGps, // localSafetyAdmin,
mainProduct, // longitudeGps,
majorHazardInstallations, // mainProduct,
majorHazardLevel, // majorHazardInstallations,
operatingStatus, // majorHazardLevel,
parentCompName, // operatingStatus,
partSafetyNum, // parentCompName,
regAddr, // partSafetyNum,
regCapi, // regAddr,
safetyDepart, // regCapi,
safetyDepartDuty, // safetyDepart,
safetyDepartName, // safetyDepartDuty,
safetyDepartNum, // safetyDepartName,
safetyEmail, // safetyDepartNum,
safetyManager, // safetyEmail,
safetyMobtel, // safetyManager,
safetySupervisionLevel, // safetyMobtel,
safetyTel, // safetySupervisionLevel,
setupDate, // safetyTel,
sourceData, // setupDate,
specialGovernance, // sourceData,
speclalOperationNum, // specialGovernance,
standLevel, // speclalOperationNum,
stateOwed, // standLevel,
supervisionLarge, // stateOwed,
supervisionSmall, // supervisionLarge,
uscCode } = option // supervisionSmall,
this.changeDescriptions(this.listDes,option) // uscCode } = option
// this.changeDescriptions(this.listDes,option)
}, },
Close(item) { Close(item) {
this.addShow = false; this.addShow = false;
this.details = null
}, },
changeDescriptions(arr,arr2){ changeDescriptions(arr,arr2){
for (let key in arr2) { for (let key in arr2) {
@ -400,7 +439,105 @@ export default {
}) })
} }
} }
} },
filterTable(a, b) {
if (!b) return;
return this.selectDictLabel(a, b);
},
look(e) {
this.details = e;
// console.log(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];
return;
}
});
}
this.listDes.forEach((value1, index1) => {
//
if (value1.eng == "majorHazardLevel") {
this.listDes[index1].value = this.filterTable(
this.dict.type.major_hazard_level,
value1.value
);
}
//
if (value1.eng == "ecoTypeLarge") {
this.listDes[index1].value = this.filterTable(
this.dict.type.economic_categories,
value1.value
);
}
//
if (value1.eng == "ecoTypeSmall") {
this.listDes[index1].value = this.filterTable(
this.dict.type.economic_subcategory,
value1.value
);
}
//
if (value1.eng == "specialGovernance") {
this.listDes[index1].value = this.filterTable(
this.dict.type.special_governance,
value1.value
);
}
//
//
if (value1.eng == "operatingStatus") {
this.listDes[index1].value = this.filterTable(
this.dict.type.enterprise_status,
value1.value
);
}
//
if (value1.eng == "standLevel") {
this.listDes[index1].value = this.filterTable(
this.dict.type.standardization_level,
value1.value
);
}
//
if (value1.eng == "safetySupervisionLevel") {
this.listDes[index1].value = this.filterTable(
this.dict.type.safety_level,
value1.value
);
}
//
//
//
//
if (value1.eng == "entprColor") {
this.listDes[index1].value = this.filterTable(
this.dict.type.entpr_color,
value1.value
);
}
//
if (value1.eng == "indusTypeClass") {
this.listDes[index1].value = this.filterTable(
this.dict.type.category,
value1.value
);
}
//
if (value1.eng == "isPoint") {
this.listDes[index1].value = this.filterTable(
this.dict.type.is_point,
value1.value
);
}
if (value1.value == null ) {
this.listDes[index1].value = '/'
}
if ( value1.value == 'false') {
this.listDes[index1].value = '否'
}
});
},
}, },
} }
</script> </script>

@ -620,7 +620,7 @@ export default {
for (let key in this.details) { for (let key in this.details) {
this.listDes.forEach((value1, index1) => { this.listDes.forEach((value1, index1) => {
if (key == value1.eng) { if (key == value1.eng) {
this.listDes[index1].value = this.details[key]; this.listDes[index1].value = this.details[key] == '无' ? '/' : this.details[key];
return; return;
} }
}); });

@ -4,7 +4,7 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-09-04 10:20:06 * @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-09-29 15:40:31 * @LastEditTime: 2023-09-29 16:20:31
--> -->
<template> <template>
<div class="plan-management"> <div class="plan-management">
@ -461,9 +461,9 @@
let res = await this.$api.yingji.planmx(pages); let res = await this.$api.yingji.planmx(pages);
if(res.code == 200) { if(res.code == 200) {
this.loading = false; this.loading = false;
this.tableData = res.data.list;
this.total = res.data.total
} }
this.tableData = res.data.list;
this.total = res.data.total
}, },
commentData(item,dept){ commentData(item,dept){
// if(dept.ancestors.split(',').length == 3) { // if(dept.ancestors.split(',').length == 3) {

Loading…
Cancel
Save