|
|
|
@ -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;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|