|
|
|
@ -155,21 +155,21 @@
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="ecoTypeLarge"
|
|
|
|
|
label="经济类型"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<el-table-column
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
prop="indusTypeClass"
|
|
|
|
|
label="行业类型"
|
|
|
|
|
label="企业类型"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="majorHazardLevel"
|
|
|
|
|
label="重大危险源等级"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
@ -182,7 +182,7 @@
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="uscCode"
|
|
|
|
|
label="统一社会信用代码"
|
|
|
|
@ -210,16 +210,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagination">
|
|
|
|
|
<my-pagination :total="total" @pagesChange="pagesChange">
|
|
|
|
|
<div>重点企业数:
|
|
|
|
|
<!-- <div>重点企业数:
|
|
|
|
|
<span :class=" count == unCount ? 'selectedNumber' : 'unselectedNumber'">{{ unCount }}</span>/
|
|
|
|
|
<span class="sum">{{ count }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
</my-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else class="release-planning">
|
|
|
|
|
<div class="inputs centered">
|
|
|
|
|
<div class="inputs-span">计划年月:</div>
|
|
|
|
|
<el-form ref="form" :model="form2" label-width="100px" class="form-inline" :rules="rules">
|
|
|
|
|
<el-form-item label="计划年月:" prop="plannedYear">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="form2.plannedYear"
|
|
|
|
|
type="month"
|
|
|
|
@ -229,39 +229,31 @@
|
|
|
|
|
placeholder="请选择年月"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="inputs centered">
|
|
|
|
|
<div class="inputs-span">计划标题:</div>
|
|
|
|
|
<div class="input">
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="计划标题:" prop="planName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form2.planName"
|
|
|
|
|
:maxlength="50"
|
|
|
|
|
placeholder="请输入计划标题"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<div class="inputs-span">计划内容:</div>
|
|
|
|
|
<div class="input">
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="计划内容:" prop="planContent" class="form-textarea">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form2.planContent"
|
|
|
|
|
type="textarea"
|
|
|
|
|
resize="none"
|
|
|
|
|
placeholder="请输入计划内容"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<div class="inputs-span">备注:</div>
|
|
|
|
|
<div class="input">
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="备注:" class="form-textarea">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form2.remark"
|
|
|
|
|
type="textarea"
|
|
|
|
|
resize="none"
|
|
|
|
|
placeholder="请输入备注"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="next">
|
|
|
|
|
<div class="selected">
|
|
|
|
@ -296,6 +288,7 @@ export default {
|
|
|
|
|
listThree: [],
|
|
|
|
|
listFour: [],
|
|
|
|
|
listFive: [],
|
|
|
|
|
options:[],
|
|
|
|
|
props: {
|
|
|
|
|
value: "county",
|
|
|
|
|
label: "institutionName",
|
|
|
|
@ -322,6 +315,17 @@ export default {
|
|
|
|
|
planContent: "",
|
|
|
|
|
remark: "",
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
plannedYear: [
|
|
|
|
|
{ required: true, message: '请选择年月', trigger: 'blur' },
|
|
|
|
|
],
|
|
|
|
|
planName: [
|
|
|
|
|
{ required: true, message: '请输入计划标题', trigger: 'blur' }
|
|
|
|
|
],
|
|
|
|
|
planContent: [
|
|
|
|
|
{ required: true, message: '请输入计划内容', trigger: 'blur' }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
|
|
|
|
pages: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
@ -330,9 +334,9 @@ export default {
|
|
|
|
|
loading: false,
|
|
|
|
|
isamend: false,
|
|
|
|
|
amendId: "",
|
|
|
|
|
count: 0,
|
|
|
|
|
unCount: 0,
|
|
|
|
|
unselected: 0,
|
|
|
|
|
// count: 0,
|
|
|
|
|
// unCount: 0,
|
|
|
|
|
// unselected: 0,
|
|
|
|
|
selectList: [],
|
|
|
|
|
disabled:false,
|
|
|
|
|
};
|
|
|
|
@ -355,7 +359,7 @@ export default {
|
|
|
|
|
if(this.form.subdistrict.length > 0){
|
|
|
|
|
if(this.form.subdistrict.length == 2) {
|
|
|
|
|
this.form.subdistrict = this.form.subdistrict[1]
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(0, 10);
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(0, 11);
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
|
|
|
|
|
} else if(this.form.subdistrict.length == 1) {
|
|
|
|
|
this.form.subdistrict = this.form.subdistrict[0]
|
|
|
|
@ -371,7 +375,7 @@ export default {
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(0, 7);
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
|
|
|
|
|
} else if(this.dept.parentId == 101){
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(0, 10);
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(0, 11);
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -440,8 +444,15 @@ export default {
|
|
|
|
|
this.commentData(data.data,dept);
|
|
|
|
|
this.filtrate()
|
|
|
|
|
if (item == "newlyIncreased") {
|
|
|
|
|
// if (this.dept.deptName !== "市局") {
|
|
|
|
|
// this.bPlanEnterprise();
|
|
|
|
|
// 判断如若是镇级即将所有重点企业全选
|
|
|
|
|
// if(dept.parentId == 101){
|
|
|
|
|
// this.tableData.map((item)=>{
|
|
|
|
|
// if(item.isPoint == 1) {
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.$refs.multipleTable.toggleRowSelection(item);
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// this.getTable(this.pages);
|
|
|
|
|
} else {
|
|
|
|
@ -461,12 +472,12 @@ export default {
|
|
|
|
|
this.nextText = "下一步";
|
|
|
|
|
Object.keys(this.form).forEach((key) => (this.form[key] = ""));
|
|
|
|
|
Object.keys(this.form2).forEach((key) => (this.form2[key] = ""));
|
|
|
|
|
this.unCount = 0;
|
|
|
|
|
// this.unCount = 0;
|
|
|
|
|
this.pages.pageNum = 1;
|
|
|
|
|
this.pages.pageSize = 10;
|
|
|
|
|
this.selected = 0;
|
|
|
|
|
this.unselected = 0;
|
|
|
|
|
this.count = 0;
|
|
|
|
|
// this.unselected = 0;
|
|
|
|
|
// this.count = 0;
|
|
|
|
|
if (item == "newsuccess") {
|
|
|
|
|
this.$emit("close");
|
|
|
|
|
}
|
|
|
|
@ -494,12 +505,12 @@ export default {
|
|
|
|
|
let data = await this.$api.yingji.basicList(pages);
|
|
|
|
|
// console.log(data.data.count, '重点企业总数');
|
|
|
|
|
// console.log(this.unCount,'this.unCount')
|
|
|
|
|
this.count = data.data.count;
|
|
|
|
|
data.data.count == this.unselected
|
|
|
|
|
? (this.unCount = data.data.count)
|
|
|
|
|
: this.unselected == 0
|
|
|
|
|
? (this.unCount = 0)
|
|
|
|
|
: (this.unCount = data.data.count - this.unselected);
|
|
|
|
|
// this.count = data.data.count;
|
|
|
|
|
// data.data.count == this.unselected
|
|
|
|
|
// ? (this.unCount = data.data.count)
|
|
|
|
|
// : this.unselected == 0
|
|
|
|
|
// ? (this.unCount = 0)
|
|
|
|
|
// : (this.unCount = data.data.count - this.unselected);
|
|
|
|
|
this.total = data.data.total;
|
|
|
|
|
// console.log(this.unselected,'this.unselected')
|
|
|
|
|
if (data.code == 200) {
|
|
|
|
@ -535,7 +546,7 @@ export default {
|
|
|
|
|
let arr2 = [];
|
|
|
|
|
let keyCount = 0;
|
|
|
|
|
this.multipleSelection.map((item) => {
|
|
|
|
|
arr.push(item.subdistrict);
|
|
|
|
|
arr.push('0' + item.subdistrict);
|
|
|
|
|
arr2.push(item.uscCode);
|
|
|
|
|
if (item.isPoint == "1") {
|
|
|
|
|
keyCount++;
|
|
|
|
@ -546,18 +557,21 @@ export default {
|
|
|
|
|
this.$message.error("请至少选择一家企业");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.dept.parentId == 101) {
|
|
|
|
|
if (this.count == this.unselected + keyCount) {
|
|
|
|
|
this.nextStep = true;
|
|
|
|
|
this.nextText = "发布计划";
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("请将重点企业全选");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// if (this.dept.parentId == 101) {
|
|
|
|
|
// if (this.count == this.unselected + keyCount) {
|
|
|
|
|
// this.nextStep = true;
|
|
|
|
|
// this.nextText = "发布计划";
|
|
|
|
|
// } else {
|
|
|
|
|
// this.$message.error("请将重点企业全选");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
else {
|
|
|
|
|
this.nextStep = true;
|
|
|
|
|
this.nextText = "发布计划";
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$refs.form.validate(async (valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let downloadLoadingInstance = Loading.service({
|
|
|
|
|
text: this.isamend ? "正在修改计划,请稍后" : "正在发布计划,请稍后",
|
|
|
|
|
spinner: "el-icon-loading",
|
|
|
|
@ -578,13 +592,9 @@ export default {
|
|
|
|
|
planNumb,
|
|
|
|
|
};
|
|
|
|
|
let data;
|
|
|
|
|
|
|
|
|
|
if (this.isamend) {
|
|
|
|
|
obj = { ...obj, id: this.amendId };
|
|
|
|
|
if (
|
|
|
|
|
this.form2.plannedYear != "" &&
|
|
|
|
|
this.form2.planName != "" &&
|
|
|
|
|
this.form2.planContent != ""
|
|
|
|
|
) {
|
|
|
|
|
data = await this.$api.yingji.bPlanManage("put", obj);
|
|
|
|
|
if (data.code == 200) {
|
|
|
|
|
downloadLoadingInstance.close();
|
|
|
|
@ -595,18 +605,6 @@ export default {
|
|
|
|
|
this.Close("newsuccess");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
downloadLoadingInstance.close();
|
|
|
|
|
this.$message({
|
|
|
|
|
message: "年份、计划标题、计划内容、都不能为空",
|
|
|
|
|
type: "error",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (
|
|
|
|
|
this.form2.plannedYear != "" &&
|
|
|
|
|
this.form2.planName != "" &&
|
|
|
|
|
this.form2.planContent != ""
|
|
|
|
|
) {
|
|
|
|
|
data = await this.$api.yingji.bPlanEnterprise("post", obj);
|
|
|
|
|
if (data.code == 200) {
|
|
|
|
|
downloadLoadingInstance.close();
|
|
|
|
@ -616,14 +614,12 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.Close("newsuccess");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
downloadLoadingInstance.close();
|
|
|
|
|
this.$message({
|
|
|
|
|
message: "年份、计划标题、计划内容、都不能为空",
|
|
|
|
|
type: "error",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// console.log('error submit!!');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 区划级联选择器选择触发
|
|
|
|
@ -795,7 +791,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-select {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
width: 180px;
|
|
|
|
|
width: 160px;
|
|
|
|
|
.el-input__inner {
|
|
|
|
|
height: 33px;
|
|
|
|
|
}
|
|
|
|
@ -939,7 +935,41 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.release-planning {
|
|
|
|
|
padding: 0 10px 0 0;
|
|
|
|
|
padding: 10px 10px 0 0;
|
|
|
|
|
.form-inline {
|
|
|
|
|
::v-deep .el-select {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
width: 190px;
|
|
|
|
|
.el-input__inner {
|
|
|
|
|
height: 33px;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-family: 'Alibaba PuHuiTi';
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #525966;
|
|
|
|
|
}
|
|
|
|
|
// border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-input {
|
|
|
|
|
.el-input__inner {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-family: 'Alibaba PuHuiTi';
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #525966;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.form-textarea {
|
|
|
|
|
::v-deep .el-textarea {
|
|
|
|
|
height: 180px;
|
|
|
|
|
.el-textarea__inner {
|
|
|
|
|
height: 100%;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-family: 'Alibaba PuHuiTi';
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #525966;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.inputs {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|