杜函宇 1 year ago
commit 11b77540c5

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-11 15:38:21
* @LastEditors: JC9527
* @LastEditTime: 2023-09-28 13:22:58
* @LastEditTime: 2023-09-30 00:52:32
*/
import request from '@/utils/request'
@ -64,11 +64,11 @@ export default {
});
},
// 查看计划明细
planmx(data){
planmx(params){
return request({
url: `/pharmaceuticals/bPlanEnterprise/planmx`,
method:'post',
data,
params,
});
},
// 查询计划企业列表

@ -56,7 +56,7 @@
</div> -->
<div class="select-input">
<div class="select-span">经济类型:</div>
<el-select v-model="form.economicsType" placeholder="请选择">
<el-select v-model="form.ecoTypeLarge" placeholder="请选择">
<el-option
v-for="item in dict.type.economic_categories"
:key="item.value"
@ -355,7 +355,7 @@ export default {
subdistrict:'',
form: {
subdistrict: [],
frimType: "",
ecoTypeLarge: "",
indusTypeClass: "",
isPoint: "",
majorHazardLevel: "",
@ -392,6 +392,7 @@ export default {
// unselected: 0,
selectList: [],
disabled:false,
county:false,
};
},
computed: {
@ -431,7 +432,7 @@ export default {
//
componendDistrict(district){
let name
this.myDistrict.map((item)=>{
this.district.map((item)=>{
if(item.subdistrict == district) {
name = item.institutionName
} else {
@ -471,18 +472,25 @@ export default {
let obj
//
if(!this.disabled) {
if(this.form.subdistrict.length > 0){
// console.log('123')
if(Array.isArray(this.form.subdistrict)){
if(this.form.subdistrict.length == 2) {
this.form.subdistrict = this.form.subdistrict[1]
this.subdistrict = this.form.subdistrict.slice(1, 11);
this.subdistrict = this.form.subdistrict[2].slice(1, 11);
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
} else if(this.form.subdistrict.length == 1) {
this.form.subdistrict = this.form.subdistrict[0]
this.subdistrict = this.form.subdistrict.slice(1, 8);
this.subdistrict = this.form.subdistrict[1].slice(1, 8);
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
} else {
obj = {...this.pages,...this.form}
}
} else {
obj = {...this.pages,...this.form}
if(this.county){
let subdistrict = this.form.subdistrict.slice(1, 8);
obj = { ...this.pages, ...this.form,subdistrict };
} else {
let subdistrict = this.form.subdistrict.slice(1, 8);
obj = { ...this.pages, ...this.form,subdistrict };
}
}
} else {
//
@ -647,9 +655,17 @@ export default {
this.pages = pages;
console.log(this.form)
if(this.dept.ancestors.split(',').length == 2){
this.subdistrict = this.form.subdistrict.slice(1, 8);
if(Array.isArray(this.form.subdistrict)) {
this.subdistrict = this.form.subdistrict.slice(1, 8);
} else {
this.subdistrict = this.form.subdistrict;
}
} else if(this.dept.ancestors.split(',').length == 3){
this.subdistrict = this.form.subdistrict.slice(1, 11);
if(Array.isArray(this.form.subdistrict)) {
this.subdistrict = this.form.subdistrict.slice(1, 11);
} else {
this.subdistrict = this.form.subdistrict;
}
}
this.getTable({...pages,...this.form,subdistrict:this.subdistrict});
},
@ -767,36 +783,46 @@ export default {
return "";
},
commentData(item,dept) {
// item.map((item)=>{
// if(item.children instanceof Array && item.children.length == 0){
// item.county = item.subdistrict
// delete item.children;
// } else {
// // this.props.value = 'subdistrict'
// this.commentData(item.children,dept)
// }
// })
item.map((item)=>{
if(item.children instanceof Array && item.children.length == 0){
item.county = item.subdistrict
delete item.children;
} else {
// this.props.value = 'subdistrict'
this.commentData(item.children,dept)
}
item.children.map((itemTwo)=>{
itemTwo.county = itemTwo.subdistrict
})
})
this.myDistrict = item;
// this.myDistrict = item;
this.listOne = item
if(dept.ancestors.split(',').length == 2) {
this.listOne = this.listOne.filter((item)=>{
return item.institutionName == dept.deptName
})
// this.listOne.map((item)=>{
// if(item.institutionName == dept.deptName) {
// this.form.subdistrict = item.county
// this.workingArea = item.county
// delete item.children
// }
// })
// this.disabled = true;
} else if(dept.ancestors.split(',').length == 3) {
this.listOne.map((item)=>{
if(item.institutionName == dept.deptName) {
this.form.subdistrict = item.subdistrict
console.log(item.county)
this.form.subdistrict = item.county
this.workingArea = item.county
this.county = true;
// delete item.children
}
})
// this.disabled = true;
} else if(dept.ancestors.split(',').length == 3) {
this.listOne.map((item)=>{
item.children.map((itemTwo)=>{
if(itemTwo.institutionName == dept.deptName) {
this.form.subdistrict = itemTwo.subdistrict
this.workingArea = itemTwo.county
this.county = false;
}
})
})
this.disabled = true;
}
},

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

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-28 11:25:48
* @LastEditors: JC9527
* @LastEditTime: 2023-09-28 16:41:42
* @LastEditTime: 2023-09-30 01:07:17
-->
<template>
<el-dialog
@ -24,9 +24,9 @@
</div>
<img src="@/assets/images/close.png" alt="" @click="Close" />
</div>
<el-form ref="form" label-width="80px">
<el-form ref="form" label-width="80px" v-loading="loading">
<el-form-item label="企业名称:" class="form-input">
<el-input v-model="form.name" :readonly="true"></el-input>
<el-input v-model="form.entprName" :readonly="true"></el-input>
</el-form-item>
<el-form-item label="行政区划:" class="form-input">
<el-input v-model="form.district" :readonly="true"></el-input>
@ -75,7 +75,7 @@ export default {
dialogVisible:false,
mydistrict:'',
form:{
name:'测试活动名称',
entprName:'',
district:'',
createTime:'',
plannedYear:'',
@ -85,6 +85,7 @@ export default {
},
id:'',
readonly:false,
loading:true,
}
},
computed: {
@ -107,13 +108,15 @@ export default {
async getMyData(id){
// console.log(id)
// console.log(data)
this.loading = true;
let data = await this.$api.yingji.bPlanManageTwo(id)
if(data.code == 200){
let { district,createTime,plannedYear,planName,planContent,remark } = data.data
let { entprName,district,createTime,plannedYear,planName,planContent,remark } = data.data
this.mydistrict = district
let myDistrict = this.componendDistrict(district)
let mycreateTime = createTime.split(' ')[0]
this.form = { district:myDistrict,createTime:mycreateTime,plannedYear,planName,planContent,remark }
this.form = { entprName,district:myDistrict,createTime:mycreateTime,plannedYear,planName,planContent,remark }
this.loading = false;
}
},
Close(item) {

@ -71,7 +71,7 @@
</el-select>
</div>
<div class="input-input">
<div class="select-span">企业名称/统一社会信用代码:</div>
<div class="select-span">统一社会信用代码:</div>
<el-input
v-model="form.uscCode"
placeholder="请输入企业名称/统一社会信用代码"
@ -620,7 +620,7 @@ export default {
for (let key in this.details) {
this.listDes.forEach((value1, index1) => {
if (key == value1.eng) {
this.listDes[index1].value = this.details[key];
this.listDes[index1].value = this.details[key] == '无' ? '/' : this.details[key];
return;
}
});

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527
* @LastEditTime: 2023-09-28 13:44:14
* @LastEditTime: 2023-09-30 01:03:48
-->
<template>
<div class="plan-management">
@ -246,6 +246,7 @@
isExpandAll: true,
//
refreshTable: true,
county:false
}
},
computed: {
@ -269,17 +270,18 @@
let district = this.form.district[1].slice(1, 11);
obj = { ...this.pages, ...this.form,district };
} else if(newForm.district.length == 1) {
let district = this.form.district.slice[0](1, 8);
let district = this.form.district[0].slice(1, 8);
obj = { ...this.pages, ...this.form,district };
}
//
} else {
//
if(this.mydistrict){
let district = this.form.district.slice(1, 11);
if(this.county){
let district = this.form.district.slice(1, 8);
obj = { ...this.pages, ...this.form,district };
} else {
obj = this.pages
let district = this.form.district.slice(1, 11);
obj = { ...this.pages, ...this.form,district };
}
}
} else {
@ -288,11 +290,12 @@
// this.subdistrict = this.form.subdistrict.slice(1, 8);
// obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
// } else if(this.dept.ancestors.split(',').length == 3){
let district = this.form.district.slice(1, 11);
// let district = this.form.district.slice(1, 11);
let district = this.form.district;
obj = { ...this.pages, ...this.form,district };
// }
}
// console.log(obj,'obj')
console.log(obj,'obj')
this.getList(obj)
},
deep:true,
@ -301,9 +304,11 @@
methods:{
//
componendDistrict(district){
// console.log(district)
// console.log(this.myDistrict)
let name
this.myDistrict.map((item)=>{
if(item.subdistrict == district) {
if(item.county == district) {
name = item.institutionName
} else {
item.children.map((itemTwo)=>{
@ -334,10 +339,21 @@
type: "warning",
})
.then(() => {
let district
if(Array.isArray(this.form.district)){
if(this.form.district.length == 1){
district = this.form.district[0];
} else if(this.form.district.length == 2){
district = this.form.district[1];
}
} else {
district = this.form.district;
}
this.download(
"/pharmaceuticals/bPlanManage/export",
"/pharmaceuticals/bPlanEnterprise/exportplan",
{
...this.form,
district
},
`计划管理.xlsx`
);
@ -375,6 +391,7 @@
this.pages.pageSize = 10;
this.$refs.mypagination.defaultPages();
let obj = {...this.pages,district}
console.log('123')
this.getList(obj);
},
//
@ -444,20 +461,24 @@
let res = await this.$api.yingji.planmx(pages);
if(res.code == 200) {
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){
item.map((item)=>{
if(item.children instanceof Array && item.children.length == 0){
item.county = item.subdistrict
delete item.children;
} else {
this.commentData(item.children,this.dept)
}
})
this.myDistrict = item;
// if(dept.ancestors.split(',').length == 3) {
item.map((item)=>{
// if(item.children instanceof Array && item.children.length == 0){
// item.county = item.subdistrict
// delete item.children;
// } else {
// this.commentData(item.children,this.dept)
// }
item.children.map((itemTwo)=>{
itemTwo.county = itemTwo.subdistrict
})
})
// }
this.options = item;
if(dept.ancestors.split(',').length == 2) {
this.options = this.options.filter((item)=>{
@ -465,20 +486,28 @@
})
this.options.map((item)=>{
if(item.institutionName == dept.deptName) {
console.log(item.county)
this.form.district = item.county
this.mydistrict = item.county
// console.log(item.county)
this.form.district = item.county;
this.mydistrict = item.county;
this.county = true;
// delete item.children
}
})
// this.disabled = true;
} else if(dept.ancestors.split(',').length == 3) {
// console.log(this.options)
this.options.map((item)=>{
if(item.institutionName == dept.deptName) {
console.log(item.institutionName)
this.form.district = item.subdistrict
this.mydistrict = item.subdistrict
}
// console.log(item.children,'item.children')
item.children.map((itemTwo)=>{
if(itemTwo.institutionName == dept.deptName) {
this.form.district = itemTwo.subdistrict;
// this.form.district.push(item.county,itemTwo.subdistrict);
// console.log(this.form.district,'item.institutionName')
this.mydistrict = itemTwo.subdistrict;
this.county = false;
// delete itemTwo.children
}
})
})
this.disabled = true;
}
@ -486,8 +515,9 @@
},
async created() {
console.log(this.dept)
// console.log(this.district)
this.checkListTwo = this.checkList;
this.myDistrict = this.district;
console.log(this.myDistrict)
// this.checkListTwo = this.checkList;
// this.$nextTick(()=>{
// let dom = document.getElementsByClassName('tables');
// let height = dom[0].getBoundingClientRect();

Loading…
Cancel
Save