From 855daed2aba50db397a3c7cfaeaf29fb5481b7e5 Mon Sep 17 00:00:00 2001 From: zhangyanli Date: Mon, 5 Feb 2024 14:29:54 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/hazard_investigation.js | 1 + .../information/edit.vue | 5 +++++ .../inventory_management/add.vue | 9 ++------- .../inventory_management/add_custom.vue | 17 +++++++---------- .../components/import_custom.vue | 14 +++++++------- .../inventory_management/components/list.vue | 19 ++++++++++++++----- .../inventory_troubleshooting/index.vue | 3 ++- 7 files changed, 38 insertions(+), 30 deletions(-) diff --git a/src/request/hazard_investigation.js b/src/request/hazard_investigation.js index f510992..a95d76a 100644 --- a/src/request/hazard_investigation.js +++ b/src/request/hazard_investigation.js @@ -128,3 +128,4 @@ export const setCustomInsuranceCoverageSave = (params) => post("/hiddenstandardCustom/saveBaoBaoType", params); // 清单管理设置包保责任类型提交 export const getCustomCheckListOtherHiddenList = (params) => post("/customHidden/getCheckHidden", params); // 隐患清单检查情况检查记录查看其它隐患列表 +export const getCorpinfo = (params) => post("/corpinfo/goEdit", params); // 获取企业信息 diff --git a/src/views/enterprise_management/information/edit.vue b/src/views/enterprise_management/information/edit.vue index b77cb03..a964ea2 100644 --- a/src/views/enterprise_management/information/edit.vue +++ b/src/views/enterprise_management/information/edit.vue @@ -534,6 +534,11 @@ const rules = { message: "请输入正确的手机号码", }, ], + WHETHER_HAZARDS: { + required: true, + message: "请选择有无重大危险源", + trigger: "change", + }, }; const data = reactive({ form: { diff --git a/src/views/hazard_investigation/inventory_management/add.vue b/src/views/hazard_investigation/inventory_management/add.vue index 91388c2..5eb891c 100644 --- a/src/views/hazard_investigation/inventory_management/add.vue +++ b/src/views/hazard_investigation/inventory_management/add.vue @@ -13,9 +13,8 @@ - + import { nextTick, reactive, ref, watchEffect } from "vue"; -import { SPECIAL_ENTERPRISES } from "@/assets/js/constant.js"; -import { useUserStore } from "@/pinia/user.js"; import { layoutFnGetInventoryType, layoutFnGetTaskType, @@ -260,9 +257,7 @@ import AddInspectionRoute from "./components/add_inspection_route.vue"; const route = useRoute(); const router = useRouter(); -const { LISTMANAGER_ID } = route.query; -const userStore = useUserStore(); -const CORPINFO_ID = userStore.getUserInfo.CORPINFO_ID; +const { LISTMANAGER_ID, WHETHER_HAZARDS } = route.query; const rules = { NAME: [{ required: true, message: "清单名称不能为空", trigger: "blur" }], BAO_BAO_TYPE: [ diff --git a/src/views/hazard_investigation/inventory_management/add_custom.vue b/src/views/hazard_investigation/inventory_management/add_custom.vue index 409b814..eac302d 100644 --- a/src/views/hazard_investigation/inventory_management/add_custom.vue +++ b/src/views/hazard_investigation/inventory_management/add_custom.vue @@ -13,9 +13,8 @@ - + @@ -184,7 +183,6 @@ :data="data.list" :show-pagination="false" max-height="400" - row-key="RISKCHECKITEM_ID" > @@ -203,7 +201,7 @@ label="检查不合格项" width="200" /> - +