From 0bba51d4d9bdca1236d3a38816f308e98d26c8af Mon Sep 17 00:00:00 2001 From: z Date: Tue, 9 Jan 2024 18:02:04 +0800 Subject: [PATCH] init --- src/assets/js/constant.js | 6 + src/assets/js/data_dictionary.js | 21 + src/request/hazard_investigation.js | 16 + .../components/{print.vue => qr_code.vue} | 1 + .../information/info.vue | 4 +- .../components/inspection_route.vue | 132 +++++++ .../components/qr_code.vue | 55 +++ .../inventory_management/index.vue | 360 ++++++++++++++++++ .../components/{print.vue => qr_code.vue} | 3 +- .../risk_control/identifying_parts/index.vue | 55 +-- src/views/risk_control/ledger/index.vue | 28 +- .../components/{print.vue => qr_code.vue} | 3 +- src/views/risk_control/risk_point/index.vue | 51 +-- 13 files changed, 671 insertions(+), 64 deletions(-) create mode 100644 src/request/hazard_investigation.js rename src/views/enterprise_management/information/components/{print.vue => qr_code.vue} (97%) create mode 100644 src/views/hazard_investigation/inventory_management/components/inspection_route.vue create mode 100644 src/views/hazard_investigation/inventory_management/components/qr_code.vue create mode 100644 src/views/hazard_investigation/inventory_management/index.vue rename src/views/risk_control/identifying_parts/components/{print.vue => qr_code.vue} (94%) rename src/views/risk_control/risk_point/components/{print.vue => qr_code.vue} (95%) diff --git a/src/assets/js/constant.js b/src/assets/js/constant.js index 02a22f4..394d053 100644 --- a/src/assets/js/constant.js +++ b/src/assets/js/constant.js @@ -21,3 +21,9 @@ export const styleText = '"; + +export const SPECIAL_ENTERPRISES = [ + "fe58b51278094635800b944e4ae3a871", + "0fa689dd674546b69ebd77728ffd1caa", + "13cf0f4ec77e4d98ae8cdd9c3386ae0c", +]; diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index efe03d2..56504f6 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -125,6 +125,27 @@ export const layoutFnGetPersonnelType = async () => { }); return ref(resData.list); }; +// 清单类型 +export const layoutFnGetInventoryType = async () => { + const resData = await getLevels({ + DICTIONARIES_ID: "4a3d0d99b0ea4e268c11dd0b18866917", + }); + return ref(resData.list); +}; +// 排查类型 +export const layoutFnGetTroubleshootingType = async () => { + const resData = await getLevels({ + DICTIONARIES_ID: "dc92de8a375c4b638b1b9f8d374e6426", + }); + return ref(resData.list); +}; +// 清单级别 +export const layoutFnGetInventoryLevel = async () => { + const resData = await getLevels({ + DICTIONARIES_ID: "4a661fa8aedc4d158c9cddaa9d2ec47e", + }); + return ref(resData.list); +}; // 职务 export const layoutFnGetDuties = async () => { const resData = await getLevelsCorp({ diff --git a/src/request/hazard_investigation.js b/src/request/hazard_investigation.js new file mode 100644 index 0000000..8df569f --- /dev/null +++ b/src/request/hazard_investigation.js @@ -0,0 +1,16 @@ +import { post } from "@/request/axios.js"; + +export const getInventoryManagementList = (params) => + post("/listmanager/list", params); // 清单管理列表 +export const setInventoryManagementDisable = (params) => + post("/listmanager/delete", params); // 清单管理禁用 +export const setInventoryManagementEnable = (params) => + post("/listmanager/enable", params); // 清单管理启用 +export const setInventoryManagementBatchDeleteTemporary = (params) => + post("/listmanager/deleteAlltemp", params); // 清单管理批量删除临时清单 +export const setInventoryManagementBatchDelete = (params) => + post("/listmanager/deleteAll", params); // 清单管理批量删除 +export const getInventoryManagementRouteView = (params) => + post("/listmanager/getRoute", params); // 清单管理查看巡检路线 +export const setInventoryManagementRoute = (params) => + post("/listmanager/setRout", params); // 清单管理巡检路线提交 diff --git a/src/views/enterprise_management/information/components/print.vue b/src/views/enterprise_management/information/components/qr_code.vue similarity index 97% rename from src/views/enterprise_management/information/components/print.vue rename to src/views/enterprise_management/information/components/qr_code.vue index 1e867a2..4e09852 100644 --- a/src/views/enterprise_management/information/components/print.vue +++ b/src/views/enterprise_management/information/components/qr_code.vue @@ -4,6 +4,7 @@

{{ info.CORP_NAME }}

+ @@ -202,7 +202,7 @@ import { getEnterpriseInfo } from "@/request/enterprise_management.js"; import { addingPrefixToFile } from "@/assets/js/utils.js"; import { reactive } from "vue"; import { useRouter } from "vue-router"; -import Print from "./components/print.vue"; +import QrCode from "./components/qr_code.vue"; const router = useRouter(); const data = reactive({ diff --git a/src/views/hazard_investigation/inventory_management/components/inspection_route.vue b/src/views/hazard_investigation/inventory_management/components/inspection_route.vue new file mode 100644 index 0000000..872752f --- /dev/null +++ b/src/views/hazard_investigation/inventory_management/components/inspection_route.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/src/views/hazard_investigation/inventory_management/components/qr_code.vue b/src/views/hazard_investigation/inventory_management/components/qr_code.vue new file mode 100644 index 0000000..38f1489 --- /dev/null +++ b/src/views/hazard_investigation/inventory_management/components/qr_code.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/views/hazard_investigation/inventory_management/index.vue b/src/views/hazard_investigation/inventory_management/index.vue new file mode 100644 index 0000000..df3bd75 --- /dev/null +++ b/src/views/hazard_investigation/inventory_management/index.vue @@ -0,0 +1,360 @@ + + + + + diff --git a/src/views/risk_control/identifying_parts/components/print.vue b/src/views/risk_control/identifying_parts/components/qr_code.vue similarity index 94% rename from src/views/risk_control/identifying_parts/components/print.vue rename to src/views/risk_control/identifying_parts/components/qr_code.vue index 965b17c..99e8770 100644 --- a/src/views/risk_control/identifying_parts/components/print.vue +++ b/src/views/risk_control/identifying_parts/components/qr_code.vue @@ -1,5 +1,5 @@