From 69437c7d1a9f7b7a3c6db3854017c37239b16131 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Wed, 27 Sep 2023 14:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F=E5=8F=8A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yingji/index.js | 4 +- src/views/components/dialog/index.vue | 78 +++++++++++----- src/views/components/dialogTwo/index.vue | 106 ++++++++++++++++----- src/views/yingji/enforcing.vue | 6 +- src/views/yingji/focusEnter.vue | 6 +- src/views/yingji/planManage.vue | 114 +++++++++++++---------- 6 files changed, 210 insertions(+), 104 deletions(-) diff --git a/src/api/yingji/index.js b/src/api/yingji/index.js index ca5328a..41e9c47 100644 --- a/src/api/yingji/index.js +++ b/src/api/yingji/index.js @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-09-11 15:38:21 * @LastEditors: JC9527 - * @LastEditTime: 2023-09-27 09:30:39 + * @LastEditTime: 2023-09-27 12:39:14 */ import request from '@/utils/request' @@ -44,7 +44,7 @@ export default { }, bPlanManageTwo(id){ return request({ - url: `/pharmaceuticals/bPlanManage/${id}`, + url: `/pharmaceuticals/bPlanEnterprise/${id}`, method:'get', }); }, diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index 62d9cad..deee8a2 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -57,7 +57,7 @@
经济类型:
行业类型: 重大危险源等级: 企业分色: + { + return "0" + value.dictValue == b; + }); + } + arr = a.filter((value) => { + return value.dictValue == b; + }); + return arr[0].dictLabel; + }, // 搜索 filtrate() { // if (this.form.subdistrict) { @@ -437,14 +461,16 @@ export default { let count = 0; let data = await this.$api.yingji.bPlanEnterpriseList(); this.selectList = data.data; - console.log(data) + // console.log(data) data.data.map((item) => { item["uscCode"] = item.enterpriseId; this.$nextTick(() => { this.$refs.multipleTable.toggleRowSelection(item, false); }); - if (item.isPoint == '1') { - count += 1; + if (item.isPoint == 1 && this.dept.ancestors.split(',').length == 3) { + if(item.district == this.form.subdistrict){ + count += 1; + } } }); // console.log(count,'count') @@ -578,6 +604,8 @@ export default { return; } if (this.dept.ancestors.split(',').length == 3) { + // console.log(this.unselected,'this.unselected') + // console.log(keyCount,'keyCount') if (this.count == this.unselected + keyCount) { this.nextStep = true; this.nextText = "发布计划"; @@ -615,7 +643,7 @@ export default { if (this.isamend) { obj = { ...obj, id: this.amendId }; - data = await this.$api.yingji.bPlanManage("put", obj); + data = await this.$api.yingji.bPlanEnterprise("put", obj); if (data.code == 200) { downloadLoadingInstance.close(); this.$message({ @@ -690,18 +718,20 @@ export default { }, }, async mounted() { - let listTwo = await this.$api.yingji.dictdata({ - list: "economic_categories", - }); // 经济类型大类 - let listThree = await this.$api.yingji.dictdata({ list: "category" }); // 行业类型 - let listFour = await this.$api.yingji.dictdata({ - list: "major_hazard_level", - }); // 重大危险源等级 - let listFive = await this.$api.yingji.dictdata({ list: "entpr_color" }); // 企业分色 - this.listTwo = listTwo.data.economic_categories; - this.listThree = listThree.data.category; - this.listFour = listFour.data.major_hazard_level; - this.listFive = listFive.data.entpr_color; + // let listTwo = await this.$api.yingji.dictdata({ + // list: "economic_categories", + // }); // 经济类型大类 + // let listThree = await this.$api.yingji.dictdata({ list: "category" }); // 行业类型 + // let listFour = await this.$api.yingji.dictdata({ + // list: "major_hazard_level", + // }); // 重大危险源等级 + // let listFive = await this.$api.yingji.dictdata({ list: "entpr_color" }); // 企业分色 + let dictdata = await this.$api.yingji.dictdata({ list: "economic_categories,category,major_hazard_level,entpr_color",}) + this.optionstwo = dictdata.data; + // this.listTwo = listTwo.data.economic_categories; + // this.listThree = listThree.data.category; + // this.listFour = listFour.data.major_hazard_level; + // this.listFive = listFive.data.entpr_color; }, }; diff --git a/src/views/components/dialogTwo/index.vue b/src/views/components/dialogTwo/index.vue index 9ae6db7..8924564 100644 --- a/src/views/components/dialogTwo/index.vue +++ b/src/views/components/dialogTwo/index.vue @@ -42,11 +42,13 @@ @change="handleChange"> -
-
+
+ +
搜索
+
重置