|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
<div class="enforce-the-law-title">
|
|
|
|
|
<div class="filtrate-condition">
|
|
|
|
|
<div class="select-input">
|
|
|
|
|
<div class="select-span">年月:</div>
|
|
|
|
|
<div class="select-span">年份:</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParms.year"
|
|
|
|
@ -24,17 +24,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="select-input">
|
|
|
|
|
<div class="select-span">区划:</div>
|
|
|
|
|
<!-- <el-cascader
|
|
|
|
|
<div class="select-span" style="width: 85px">企业名称:</div>
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParms.entCode"
|
|
|
|
|
size="small"
|
|
|
|
|
v-model="district"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:options="xzList"
|
|
|
|
|
:props="props"
|
|
|
|
|
:disabled="isNoneDivision"
|
|
|
|
|
>
|
|
|
|
|
</el-cascader> -->
|
|
|
|
|
<executive @quhua="quhua" @quhuadizhi="quhuadizhi"></executive>
|
|
|
|
|
placeholder="请输入企业名称"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="select-input">
|
|
|
|
|
<el-input
|
|
|
|
@ -43,21 +38,24 @@
|
|
|
|
|
placeholder="请输入统一社会信用代码"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex;">
|
|
|
|
|
<div class="export" @click="searchList">
|
|
|
|
|
<span>搜索</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="export"
|
|
|
|
|
@click="chongzhiList"
|
|
|
|
|
style="background-color: #fdab5b"
|
|
|
|
|
>
|
|
|
|
|
<span>重置</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex">
|
|
|
|
|
<div class="export" @click="addkeys" style="background-color: #28b384">
|
|
|
|
|
<span>新增</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="export" @click="searchList">
|
|
|
|
|
<span>搜索</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="export"
|
|
|
|
|
@click="chongzhiList"
|
|
|
|
|
style="background-color: #fdab5b"
|
|
|
|
|
>
|
|
|
|
|
<span>重置</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="export" style="background: #f71052" @click="deleteItem">
|
|
|
|
|
<span>删除</span>
|
|
|
|
|
</div>
|
|
|
|
@ -109,8 +107,8 @@
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="type" label="企业类别" header-align="center">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column prop="type" label="企业类别" header-align="center">
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -133,7 +131,11 @@
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagination">
|
|
|
|
|
<my-pagination :total="total" @pagesChange="pagesChange" ref="mypagination"></my-pagination>
|
|
|
|
|
<my-pagination
|
|
|
|
|
:total="total"
|
|
|
|
|
@pagesChange="pagesChange"
|
|
|
|
|
ref="mypagination"
|
|
|
|
|
></my-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 新增修改 -->
|
|
|
|
|
<el-dialog
|
|
|
|
@ -161,7 +163,7 @@
|
|
|
|
|
>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="企业名称" prop="enterpriseName">
|
|
|
|
|
<el-form-item label="企业名称:" prop="enterpriseName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.enterpriseName"
|
|
|
|
|
size="small"
|
|
|
|
@ -171,7 +173,7 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="企业代码:" prop="entCode">
|
|
|
|
|
<el-form-item label="信用代码:" prop="entCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.entCode"
|
|
|
|
|
size="small"
|
|
|
|
@ -192,7 +194,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<!-- <el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="企业类别:" prop="type">
|
|
|
|
|
<el-input
|
|
|
|
@ -202,8 +204,8 @@
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
</el-row> -->
|
|
|
|
|
<!-- <el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="行政区划:" prop="type">
|
|
|
|
|
<el-cascader
|
|
|
|
@ -217,7 +219,7 @@
|
|
|
|
|
</el-cascader>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-row> -->
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="备注:" prop="remark">
|
|
|
|
@ -273,16 +275,16 @@
|
|
|
|
|
<el-descriptions-item label="企业名称">
|
|
|
|
|
{{ details.enterpriseName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="企业代码">{{
|
|
|
|
|
<el-descriptions-item label="信用代码">{{
|
|
|
|
|
details.entCode
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="企业类别">{{
|
|
|
|
|
<!-- <el-descriptions-item label="企业类别">{{
|
|
|
|
|
details.type
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="行政区划">{{
|
|
|
|
|
}}</el-descriptions-item> -->
|
|
|
|
|
<!-- <el-descriptions-item label="行政区划">{{
|
|
|
|
|
componendDistrict(details.district)
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="备注">{{
|
|
|
|
|
}}</el-descriptions-item> -->
|
|
|
|
|
<el-descriptions-item label="备注">{{
|
|
|
|
|
details.remark
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
@ -304,9 +306,9 @@ import {
|
|
|
|
|
deleteEnterprise,
|
|
|
|
|
exportEnterprise,
|
|
|
|
|
getEnterprise,
|
|
|
|
|
xzTree,
|
|
|
|
|
// xzTree,
|
|
|
|
|
} from "@/api/yingji/keyEnterprise.js";
|
|
|
|
|
import { mapState } from "vuex";
|
|
|
|
|
// import { mapState } from "vuex";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: { myPagination, executive },
|
|
|
|
@ -325,7 +327,8 @@ export default {
|
|
|
|
|
queryParms: {
|
|
|
|
|
year: "",
|
|
|
|
|
uscCode: "",
|
|
|
|
|
district: "",
|
|
|
|
|
// district: "",
|
|
|
|
|
//还有一个企业名称
|
|
|
|
|
},
|
|
|
|
|
queryParmsdistrict: [],
|
|
|
|
|
district: [],
|
|
|
|
@ -373,82 +376,83 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getTreeList();
|
|
|
|
|
// this.getTreeList();
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapState({
|
|
|
|
|
//根据存储的dept.parentId判断是哪个等级
|
|
|
|
|
dept: (state) => state.user.dept,
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
// computed: {
|
|
|
|
|
// ...mapState({
|
|
|
|
|
// //根据存储的dept.parentId判断是哪个等级
|
|
|
|
|
// dept: (state) => state.user.dept,
|
|
|
|
|
// }),
|
|
|
|
|
// },
|
|
|
|
|
methods: {
|
|
|
|
|
// 匹配行政区划
|
|
|
|
|
componendDistrict(district){
|
|
|
|
|
let name
|
|
|
|
|
this.options.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
|
|
|
|
|
},
|
|
|
|
|
// componendDistrict(district){
|
|
|
|
|
// let name
|
|
|
|
|
// this.options.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
|
|
|
|
|
// },
|
|
|
|
|
// 获取行政区划树
|
|
|
|
|
quhuadizhi(district) {
|
|
|
|
|
this.options = district
|
|
|
|
|
},
|
|
|
|
|
getTreeList() {
|
|
|
|
|
xzTree().then((res1) => {
|
|
|
|
|
if (this.dept.parentId == 0) {
|
|
|
|
|
res1.data.forEach((value, index) => {
|
|
|
|
|
this.xzList.push({
|
|
|
|
|
value: value.county,
|
|
|
|
|
label: value.institutionName,
|
|
|
|
|
children: [],
|
|
|
|
|
});
|
|
|
|
|
if (value.children.length > 0) {
|
|
|
|
|
value.children.forEach((value1, index1) => {
|
|
|
|
|
this.xzList[index].children.push({
|
|
|
|
|
value: value1.subdistrict,
|
|
|
|
|
label: value1.institutionName,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// quhuadizhi(district) {
|
|
|
|
|
// this.options = district
|
|
|
|
|
// },
|
|
|
|
|
// getTreeList() {
|
|
|
|
|
// xzTree().then((res1) => {
|
|
|
|
|
// if (this.dept.parentId == 0) {
|
|
|
|
|
// res1.data.forEach((value, index) => {
|
|
|
|
|
// this.xzList.push({
|
|
|
|
|
// value: value.county,
|
|
|
|
|
// label: value.institutionName,
|
|
|
|
|
// children: [],
|
|
|
|
|
// });
|
|
|
|
|
// if (value.children.length > 0) {
|
|
|
|
|
// value.children.forEach((value1, index1) => {
|
|
|
|
|
// this.xzList[index].children.push({
|
|
|
|
|
// value: value1.subdistrict,
|
|
|
|
|
// label: value1.institutionName,
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
handleRemove() {},
|
|
|
|
|
quhua(e) {
|
|
|
|
|
this.district = e;
|
|
|
|
|
},
|
|
|
|
|
// quhua(e) {
|
|
|
|
|
// this.district = e;
|
|
|
|
|
// },
|
|
|
|
|
searchList() {
|
|
|
|
|
this.searchBefore = {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
};
|
|
|
|
|
this.$refs.mypagination.defaultPages();
|
|
|
|
|
if (this.district) {
|
|
|
|
|
this.queryParms.district = this.district;
|
|
|
|
|
}
|
|
|
|
|
// if (this.district) {
|
|
|
|
|
// this.queryParms.district = this.district;
|
|
|
|
|
// }
|
|
|
|
|
this.searchBefore = { ...this.searchBefore, ...this.queryParms };
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
//企业名称
|
|
|
|
|
enterpriseName: "",
|
|
|
|
|
//企业代码
|
|
|
|
|
entCode: "",
|
|
|
|
|
//备注
|
|
|
|
|
remark: "",
|
|
|
|
|
//大类
|
|
|
|
|
type: "",
|
|
|
|
|
// type: "",
|
|
|
|
|
//年份
|
|
|
|
|
year: "",
|
|
|
|
|
};
|
|
|
|
@ -507,7 +511,7 @@ export default {
|
|
|
|
|
this.headerText = "修改";
|
|
|
|
|
getEnterprise(e.id).then((res) => {
|
|
|
|
|
this.form = res.data;
|
|
|
|
|
this.queryParmsdistrict = this.form.district
|
|
|
|
|
// this.queryParmsdistrict = this.form.district
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.form1.clearValidate();
|
|
|
|
@ -516,18 +520,18 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//保存
|
|
|
|
|
confirm() {
|
|
|
|
|
if (this.queryParmsdistrict) {
|
|
|
|
|
if (this.queryParmsdistrict.length == 1) {
|
|
|
|
|
this.form.district = this.queryParmsdistrict[0];
|
|
|
|
|
} else if (
|
|
|
|
|
this.queryParmsdistrict.length == 2 &&
|
|
|
|
|
this.queryParmsdistrict[0] == this.queryParmsdistrict[1]
|
|
|
|
|
) {
|
|
|
|
|
this.form.district = this.queryParmsdistrict[0];
|
|
|
|
|
} else {
|
|
|
|
|
this.form.district = this.queryParmsdistrict[1];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (this.queryParmsdistrict) {
|
|
|
|
|
// if (this.queryParmsdistrict.length == 1) {
|
|
|
|
|
// this.form.district = this.queryParmsdistrict[0];
|
|
|
|
|
// } else if (
|
|
|
|
|
// this.queryParmsdistrict.length == 2 &&
|
|
|
|
|
// this.queryParmsdistrict[0] == this.queryParmsdistrict[1]
|
|
|
|
|
// ) {
|
|
|
|
|
// this.form.district = this.queryParmsdistrict[0];
|
|
|
|
|
// } else {
|
|
|
|
|
// this.form.district = this.queryParmsdistrict[1];
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
this.$refs.form1.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|