修复行政

zhangtao
laozt 1 year ago
parent 8097c6cbfe
commit 00ede8f226

@ -315,7 +315,7 @@ export default {
options: [],
// optionstwo:[],
props: {
value: "county",
value: "subdistrict",
label: "institutionName",
checkStrictly: true,
},
@ -851,8 +851,8 @@ export default {
this.listOne.map((item) => {
if (item.institutionName == dept.deptName) {
// console.log(item.county)
this.form.subdistrict = item.county;
this.workingArea = item.county;
this.form.subdistrict = item.subdistrict;
this.workingArea = item.subdistrict;
this.county = true;
// delete item.children
}
@ -863,7 +863,7 @@ export default {
item.children.map((itemTwo) => {
if (itemTwo.institutionName == dept.deptName) {
this.form.subdistrict = itemTwo.subdistrict;
this.workingArea = itemTwo.county;
this.workingArea = itemTwo.subdistrict;
this.county = false;
}
});

@ -23,6 +23,14 @@
:label="value"
v-for="(key, value) in elDesLabels"
:key="key"
:span="
key == 'majorProduct' ||
key == 'businessScope' ||
key == 'subdistrict' ||
key == 'rigisterAddress'
? 2
: 1
"
>
{{ infoData[key] }}
</el-descriptions-item>
@ -34,6 +42,7 @@
</template>
<script>
import dictzh from "@/utils/dictzh.js";
import { xzTree } from "@/api/yingji/keyEnterprise.js";
export default {
dicts: [
@ -52,6 +61,7 @@ export default {
return {
addShow: false,
infoData: {},
areaData: [],
dictzh: dictzh,
elDesLabels: {
企业名称: "enterpriseName",
@ -63,8 +73,12 @@ export default {
企业类型: "zjEconKind",
生产经营地址: "businessAddress",
行业监管大类: "supervisionLarge",
"所在乡镇(街道)": "subdistrict",
注册地址: "rigisterAddress",
主营业务及产品: "majorProduct",
经营范围: "businessScope",
登记状态: "corpStatus",
行政区划: "county",
// : "county",
办公地址: "enterpriseAddress",
企业规模: "enterpristScale",
固定资产: "fixedAssets",
@ -75,24 +89,20 @@ export default {
法人职务: "legalPersonPost",
法人固定电话: "legalPersonTel",
法人类型: "legalPersonType",
主营业务及产品: "majorProduct",
机构编码: "orgCode",
其他名称: "otherName",
登记时间: "registerTime",
登记机关: "registrationOrg",
注册地址: "rigisterAddress",
注册资金: "rigisterFund",
是否上报风险报告: "riskReport",
安全生产投入占比: "safetyProductionInvestment",
申请人: "sqr",
申请人联系方式: "sqrlxfs",
成立时间: "startTime",
"所在乡镇(街道)": "subdistrict",
有效期起: "termStart",
有效期止: "termEnd",
创建时间: "createTime",
修改时间: "updateTime",
经营范围: "businessScope",
备注: "remark",
// : "htmlText",
// :"updateBy",
@ -118,9 +128,13 @@ export default {
// :"businessScope",
// :"city",
},
details: null,
};
},
created() {
this.$nextTick(() => {
this.xzList();
});
},
methods: {
supervisionLarge(value) {
// console.log(value.split(","));
@ -137,7 +151,6 @@ export default {
},
Close(item) {
this.addShow = false;
this.details = null;
},
changeDescriptions(arr, arr2) {
for (let key in arr2) {
@ -159,21 +172,65 @@ export default {
return this.selectDictLabel(a, b);
},
look(e) {
e["aboveDesignated"] = e.aboveDesignated == 1 ? "规上" : "规下";
e["riskReport"] = e.riskReport == 1 ? "是" : "否";
e["aboveDesignatedTwo"] =
e.aboveDesignatedTwo == 1
localStorage.setItem("enterInfo", JSON.stringify(e));
let infoObj = JSON.parse(localStorage.getItem("enterInfo"));
//
this.addShow = true;
infoObj["aboveDesignated"] =
infoObj.aboveDesignated == 1 ? "规上" : "规下";
infoObj["riskReport"] = infoObj.riskReport == 1 ? "是" : "否";
infoObj["aboveDesignatedTwo"] =
infoObj.aboveDesignatedTwo == 1
? "大型"
: e.aboveDesignatedTwo == 2
: infoObj.aboveDesignatedTwo == 2
? "中型"
: e.aboveDesignatedTwo == 3
: infoObj.aboveDesignatedTwo == 3
? "小型"
: e.aboveDesignatedTwo == 4
: infoObj.aboveDesignatedTwo == 4
? "微型"
: "";
e["supervisionLarge"] = this.supervisionLarge(e.supervisionLarge);
this.infoData = e;
this.details = e;
infoObj["supervisionLarge"] = this.supervisionLarge(
infoObj.supervisionLarge
);
infoObj["subdistrict"] =
this.componendDistrict(infoObj.subdistrict) || "/";
this.infoData = infoObj;
},
//
xzList() {
xzTree().then((res) => {
res.data.forEach((value, index) => {
this.areaData.push({
value: value.subdistrict,
label: value.institutionName,
children: [],
});
if (value.children.length > 0) {
value.children.forEach((value1, index1) => {
this.areaData[index].children.push({
value: value1.subdistrict,
label: value1.institutionName,
});
});
}
});
});
},
//
componendDistrict(district) {
let name;
this.areaData.map((item) => {
if (item.value == district) {
name = item.label;
} else {
item.children.map((itemTwo) => {
if (itemTwo.value == district) {
name = item.label + "-" + itemTwo.label;
}
});
}
});
return name;
},
},
};

@ -3,8 +3,8 @@
* @version:
* @Author: JC9527
* @Date: 2023-09-27 14:01:34
* @LastEditors: JC9527
* @LastEditTime: 2023-09-28 17:03:02
* @LastEditors: 张涛
* @LastEditTime: 2023-10-20 09:23:51
-->
<template>
<div>
@ -58,7 +58,7 @@ export default {
if (this.dept.parentId == 0 || this.dept.leader == "admin") {
res.data.forEach((value, index) => {
this.compartment.push({
value: value.county,
value: value.subdistrict,
label: value.institutionName,
children: [],
});
@ -119,4 +119,4 @@ export default {
transform: translate(-50%, -50%);
}
}
</style>
</style>

@ -23,7 +23,12 @@
</div>
<div class="select-input">
<div class="select-span">区划:</div>
<executive @quhua="quhua" @quhuadizhi="quhuadizhi" :none="true" ref="executive"></executive>
<executive
@quhua="quhua"
@quhuadizhi="quhuadizhi"
:none="true"
ref="executive"
></executive>
</div>
<div class="my-checkbox">
<el-checkbox-group v-model="checkList" @change="setmealSelect">
@ -156,8 +161,8 @@
</el-dialog>
</div>
</template>
<script>
<script>
import executive from "./echarts/executive";
import myPagination from "@/views/components/myPagination/index.vue";
import {
@ -316,14 +321,19 @@ export default {
this.option.map((item) => {
if (item.value == district) {
name = item.label;
console.log(item);
console.log(district);
console.log(name);
} else {
item.children.map((itemTwo) => {
if (itemTwo.value == district) {
name = item.label + "-" + itemTwo.label;
console.log(name);
}
});
}
});
return name;
},
//
@ -386,17 +396,17 @@ export default {
);
}
if (value1.value == "0") {
this.listDes[index1].value = '否'
this.listDes[index1].value = "否";
}
if (value1.value == "1") {
this.listDes[index1].value = '是'
this.listDes[index1].value = "是";
}
});
this.detailLoad = false;
});
},
quhua(e) {
this.form.district = e;
this.form.district = e;
},
searchList() {
this.searchBefore = {
@ -446,7 +456,7 @@ export default {
},
//
pagesChange(pages) {
this.searchBefore.pageNum= pages.pageNum;
this.searchBefore.pageNum = pages.pageNum;
this.searchBefore.pageSize = pages.pageSize;
this.getList();
},
@ -474,12 +484,12 @@ export default {
},
};
</script>
<style lang="scss" scoped>
<style lang="scss" scoped>
.isStyle {
color: #f71052;
}
.isStyle1{
color: #28B384;
.isStyle1 {
color: #28b384;
}
.dialog-slot {
.closeClick {
@ -735,4 +745,3 @@ export default {
}
}
</style>

@ -163,6 +163,14 @@
:label="value"
v-for="(key, value) in elDesLabels"
:key="key"
:span="
key == 'majorProduct' ||
key == 'businessScope' ||
key == 'subdistrict' ||
key == 'rigisterAddress'
? 2
: 1
"
>
{{ infoData[key] }}
</el-descriptions-item>
@ -211,8 +219,12 @@ export default {
企业类型: "zjEconKind",
生产经营地址: "businessAddress",
行业监管大类: "supervisionLarge",
"所在乡镇(街道)": "subdistrict",
注册地址: "rigisterAddress",
主营业务及产品: "majorProduct",
经营范围: "businessScope",
登记状态: "corpStatus",
行政区划: "county",
// : "county",
办公地址: "enterpriseAddress",
企业规模: "enterpristScale",
固定资产: "fixedAssets",
@ -223,24 +235,20 @@ export default {
法人职务: "legalPersonPost",
法人固定电话: "legalPersonTel",
法人类型: "legalPersonType",
主营业务及产品: "majorProduct",
机构编码: "orgCode",
其他名称: "otherName",
登记时间: "registerTime",
登记机关: "registrationOrg",
注册地址: "rigisterAddress",
注册资金: "rigisterFund",
是否上报风险报告: "riskReport",
安全生产投入占比: "safetyProductionInvestment",
申请人: "sqr",
申请人联系方式: "sqrlxfs",
成立时间: "startTime",
"所在乡镇(街道)": "subdistrict",
有效期起: "termStart",
有效期止: "termEnd",
创建时间: "createTime",
修改时间: "updateTime",
经营范围: "businessScope",
备注: "remark",
// : "htmlText",
// :"updateBy",
@ -268,7 +276,6 @@ export default {
},
addShow: false,
details: null,
//==
subdistrict: [],
infoData: {},
};
@ -350,22 +357,29 @@ export default {
this.addShow = false;
},
look(e) {
localStorage.setItem("enterInfo", JSON.stringify(e));
let infoObj = JSON.parse(localStorage.getItem("enterInfo"));
//
this.addShow = true;
e["aboveDesignated"] = e.aboveDesignated == 1 ? "规上" : "规下";
e["riskReport"] = e.riskReport == 1 ? "是" : "否";
e["aboveDesignatedTwo"] =
e.aboveDesignatedTwo == 1
infoObj["aboveDesignated"] =
infoObj.aboveDesignated == 1 ? "规上" : "规下";
infoObj["riskReport"] = infoObj.riskReport == 1 ? "是" : "否";
infoObj["aboveDesignatedTwo"] =
infoObj.aboveDesignatedTwo == 1
? "大型"
: e.aboveDesignatedTwo == 2
: infoObj.aboveDesignatedTwo == 2
? "中型"
: e.aboveDesignatedTwo == 3
: infoObj.aboveDesignatedTwo == 3
? "小型"
: e.aboveDesignatedTwo == 4
: infoObj.aboveDesignatedTwo == 4
? "微型"
: "";
e["supervisionLarge"] = this.supervisionLarge(e.supervisionLarge);
this.infoData = e;
infoObj["supervisionLarge"] = this.supervisionLarge(
infoObj.supervisionLarge
);
infoObj["subdistrict"] =
this.componendDistrict(infoObj.subdistrict) || "/";
this.infoData = infoObj;
},
quhua(e) {
this.form.subdistrict = e;

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save