From 3c06405a40724d7f841219cfa7c2c20c4d101a5c Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Thu, 25 Jan 2024 18:00:08 +0800 Subject: [PATCH] init --- src/assets/css/element.scss | 1 + src/assets/js/asyncRouter.js | 156 ++++++ src/assets/js/data_dictionary.js | 14 +- src/assets/js/utils.js | 17 +- src/request/off_duty_management.js | 4 + src/request/security_commitment_pro.js | 27 + src/request/troubleshooting_statistics.js | 10 + .../department/components/add.vue | 6 +- .../off_duty_management/record/index.vue | 154 ++++++ .../off_duty_management/setting/index.vue | 56 ++ .../administration/add.vue | 518 ++++++++++++++++++ .../components/select_template.vue | 99 ++++ .../administration/details.vue | 85 +++ .../administration/index.vue | 193 +++++++ .../administration/view.vue | 136 +++++ .../security_commitment_pro/template/add.vue | 151 +++++ .../template/components/view.vue | 187 +++++++ .../template/index.vue | 162 ++++++ .../inventory_statistics_month/index.vue | 41 +- .../inventory_statistics_month/print.vue | 98 +--- .../day_inspection/index.vue | 188 +++++++ .../day_inspection/inspection_records.vue | 192 +++++++ .../ten_day_inspection/index.vue | 9 + .../ten_day_inspection/inspection_records.vue | 175 ++++++ .../week_inspection/index.vue | 9 + .../week_inspection/inspection_records.vue | 170 ++++++ 26 files changed, 2733 insertions(+), 125 deletions(-) create mode 100644 src/request/security_commitment_pro.js create mode 100644 src/request/troubleshooting_statistics.js create mode 100644 src/views/off_duty_management/record/index.vue create mode 100644 src/views/off_duty_management/setting/index.vue create mode 100644 src/views/security_commitment_pro/administration/add.vue create mode 100644 src/views/security_commitment_pro/administration/components/select_template.vue create mode 100644 src/views/security_commitment_pro/administration/details.vue create mode 100644 src/views/security_commitment_pro/administration/index.vue create mode 100644 src/views/security_commitment_pro/administration/view.vue create mode 100644 src/views/security_commitment_pro/template/add.vue create mode 100644 src/views/security_commitment_pro/template/components/view.vue create mode 100644 src/views/security_commitment_pro/template/index.vue create mode 100644 src/views/troubleshooting_statistics/day_inspection/index.vue create mode 100644 src/views/troubleshooting_statistics/day_inspection/inspection_records.vue create mode 100644 src/views/troubleshooting_statistics/ten_day_inspection/index.vue create mode 100644 src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue create mode 100644 src/views/troubleshooting_statistics/week_inspection/index.vue create mode 100644 src/views/troubleshooting_statistics/week_inspection/inspection_records.vue diff --git a/src/assets/css/element.scss b/src/assets/css/element.scss index 4e8e663..6936328 100644 --- a/src/assets/css/element.scss +++ b/src/assets/css/element.scss @@ -11,6 +11,7 @@ --el-fill-color-blank: #081435 !important; // 背景色 --el-border-color-lighter: var(--el-border-color) !important; --el-bullet-frame-bg-color: #08163b !important; + --el-text-color-primary: #fff !important; } .el-button:focus, .el-button:hover { diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index a6a5cb4..bd5a19d 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -112,6 +112,74 @@ export default [ }, ], }, + { + path: "/troubleshooting_statistics", + redirect: "/troubleshooting_statistics/day_inspection", + meta: { title: "排查统计", model: MODEL["1"] }, + component: "children", + children: [ + { + path: "/troubleshooting_statistics/day_inspection", + meta: { title: "清单检查记录(日检)", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "troubleshooting_statistics/day_inspection/index", + }, + { + path: "/troubleshooting_statistics/day_inspection/inspection_records", + meta: { + title: "检查记录", + activeMenu: "/troubleshooting_statistics/day_inspection", + }, + component: + "troubleshooting_statistics/day_inspection/inspection_records", + }, + ], + }, + { + path: "/troubleshooting_statistics/week_inspection", + meta: { title: "清单检查记录(周检)", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "troubleshooting_statistics/week_inspection/index", + }, + { + path: "/troubleshooting_statistics/week_inspection/inspection_records", + meta: { + title: "检查记录", + activeMenu: "/troubleshooting_statistics/week_inspection", + }, + component: + "troubleshooting_statistics/week_inspection/inspection_records", + }, + ], + }, + { + path: "/troubleshooting_statistics/ten_day_inspection", + meta: { title: "清单检查记录(旬检)", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "troubleshooting_statistics/ten_day_inspection/index", + }, + { + path: "/troubleshooting_statistics/ten_day_inspection/inspection_records", + meta: { + title: "检查记录", + activeMenu: "/troubleshooting_statistics/ten_day_inspection", + }, + component: + "troubleshooting_statistics/ten_day_inspection/inspection_records", + }, + ], + }, + ], + }, { path: "/system_operation", redirect: "/system_operation/system_documents", @@ -670,11 +738,21 @@ export default [ meta: { title: "离岗管理", model: MODEL["1"] }, component: "children", children: [ + { + path: "/off_duty_management/setting", + meta: { title: "离岗设置", isSubMenu: false }, + component: "off_duty_management/setting/index", + }, { path: "/off_duty_management/leave", meta: { title: "离岗管理", isSubMenu: false }, component: "off_duty_management/leave/index", }, + { + path: "/off_duty_management/record", + meta: { title: "离岗记录", isSubMenu: false }, + component: "off_duty_management/record/index", + }, { path: "/off_duty_management/login_record", meta: { title: "登录记录", isSubMenu: false }, @@ -1618,4 +1696,82 @@ export default [ }, ], }, + { + path: "/security_commitment_pro", + redirect: "/security_commitment_pro/template", + meta: { title: "安全承诺Pro", model: MODEL["4"] }, + component: "children", + children: [ + { + path: "/security_commitment_pro/template", + meta: { title: "安全承诺书模板", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "security_commitment_pro/template/index", + }, + { + path: "/security_commitment_pro/template/add", + meta: { + title: "新增", + activeMenu: "/security_commitment_pro/template", + }, + component: "security_commitment_pro/template/add", + }, + { + path: "/security_commitment_pro/template/edit", + meta: { + title: "编辑", + activeMenu: "/security_commitment_pro/template", + }, + component: "security_commitment_pro/template/add", + }, + ], + }, + { + path: "/security_commitment_pro/administration", + meta: { title: "安全承诺书管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "security_commitment_pro/administration/index", + }, + { + path: "/security_commitment_pro/administration/add", + meta: { + title: "新增", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/add", + }, + { + path: "/security_commitment_pro/administration/edit", + meta: { + title: "编辑", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/add", + }, + { + path: "/security_commitment_pro/administration/view", + meta: { + title: "查看", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/view", + }, + { + path: "/security_commitment_pro/administration/details", + meta: { + title: "详情", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/details", + }, + ], + }, + ], + }, ]; diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index 8f9a264..fb86744 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -97,13 +97,6 @@ export const layoutFnGetRiskCauses = async () => { }); return ref(resData.list); }; -// 部门级别 -export const layoutFnGetDepartmentLevel = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "4a661fa8aedc4d158c9cddaa9d2ec47e", - }); - return ref(resData.list); -}; // 民族 export const layoutFnGetNation = async () => { const resData = await getLevels({ @@ -237,6 +230,13 @@ export const layoutFnGetRiskClassification = async () => { }); return ref(resData.list); }; +// 承诺书级别 +export const layoutFnGetCommitmentLevel = async () => { + const resData = await getLevels({ + DICTIONARIES_ID: "8c5064693fba4dbca1cbfea631cd097a", + }); + return ref(resData.list); +}; // 部门树 export const layoutFnGetDepartmentTree = async (params) => { const resData = await getDepartmentTree(params); diff --git a/src/assets/js/utils.js b/src/assets/js/utils.js index 81c51b8..2b8c5fc 100644 --- a/src/assets/js/utils.js +++ b/src/assets/js/utils.js @@ -288,12 +288,17 @@ export function addingPrefixToFile(list) { * @param {string} key 验证的字段 * @param {string} id 验证的值 **/ -export function verifyDuplicateSelection(list, index, key, id) { - if (list.some((item) => item[key] === id)) { - ElMessage.warning("不能重复选择"); - } else { - list[index][key] = id; - } +export async function verifyDuplicateSelection(list, index, key, id) { + return new Promise((resolve, reject) => { + if (list.some((item) => item[key] === id)) { + ElMessage.warning("不能重复选择"); + // eslint-disable-next-line prefer-promise-reject-errors + reject(); + } else { + list[index][key] = id; + resolve(); + } + }); } /** diff --git a/src/request/off_duty_management.js b/src/request/off_duty_management.js index a77baad..896944b 100644 --- a/src/request/off_duty_management.js +++ b/src/request/off_duty_management.js @@ -7,4 +7,8 @@ export const getApprovedByList = (params) => post("/app/sys/listUserLeader", params); // 离岗管理获取审批人 export const setLeaveReview = (params) => post("/offduty/review", params); // 离岗管理审批 export const setLeaveCancel = (params) => post("/offduty/cancel", params); // 离岗管理取消 +export const getSettingList = (params) => post("/offdutySetup/list", params); // 离岗设置列表 +export const setSettingChange = (params) => + post("/offdutySetup/editSetup", params); // 离岗设置切换 +export const getRecordList = (params) => post("/offduty/list", params); // 离岗记录列表 export const getLoginRecordList = (params) => post("/fhlog/getList", params); // 登录记录列表 diff --git a/src/request/security_commitment_pro.js b/src/request/security_commitment_pro.js new file mode 100644 index 0000000..fef192c --- /dev/null +++ b/src/request/security_commitment_pro.js @@ -0,0 +1,27 @@ +import { post } from "@/request/axios.js"; + +export const getTemplateList = (params) => post("/promise/list", params); // 安全承诺书模板列表 +export const getTemplateView = (params) => post("/promise/goEdit", params); // 安全承诺书模板查看 +export const setTemplateEnableOrDisable = (params) => + post("/promise/editdelete", params); // 安全承诺书模板启用禁用 +export const setTemplateDelete = (params) => post("/promise/delete", params); // 安全承诺书模板删除 +export const setTemplateEdit = (params) => post("/promise/edit", params); // 安全承诺书模板修改 +export const setTemplateAdd = (params) => post("/promise/add", params); // 安全承诺书模板新增 +export const getAdministrationList = (params) => + post("/corppromise/list", params); // 安全承诺书模板列表 +export const getAdministrationView = (params) => + post("/corppromise/goEdit", params); // 安全承诺书模板查看 +export const setAdministrationEnableOrDisable = (params) => + post("/corppromise/editdelete", params); // 安全承诺书管理启用禁用 +export const setAdministrationEdit = (params) => + post("/corppromise/edit_II", params); // 安全承诺书管理修改 +export const setAdministrationAdd = (params) => + post("/corppromise/add_II", params); // 安全承诺书管理新增 +export const getAdministrationDetailsList = (params) => + post("/corppromise/peopledetails", params); // 安全承诺书模板详情列表 +export const getAdministrationDetailsView = (params) => + post("/corppromise/peopleview", params); // 安全承诺书模板详情查看 +export const getAdministrationSelectTemplateList = (params) => + post("/corppromise/showtemplatetext", params); // 安全承诺书选择模板列表 +export const getAdministrationSelectTemplateCheck = (params) => + post("/corppromise/collateral", params); // 安全承诺书选择模板选择 diff --git a/src/request/troubleshooting_statistics.js b/src/request/troubleshooting_statistics.js new file mode 100644 index 0000000..54852ec --- /dev/null +++ b/src/request/troubleshooting_statistics.js @@ -0,0 +1,10 @@ +import { post } from "@/request/axios.js"; + +export const getChecklistInspectionRecordList = (params) => + post("/listmanager/recordList", params); // 清单检查记录列表 +export const getChecklistInspectionRecordDayInspectionList = (params) => + post("/listmanager/statisticsListCheckDay", params); // 清单检查记录日检列表 +export const getChecklistInspectionRecordWeekInspectionList = (params) => + post("/listmanager/statisticsListCheckWeek", params); // 清单检查记录周检列表 +export const getChecklistInspectionRecordTenDayInspectionList = (params) => + post("/listmanager/statisticsListCheckTenday", params); // 清单检查记录旬检列表 diff --git a/src/views/enterprise_management/department/components/add.vue b/src/views/enterprise_management/department/components/add.vue index de70f2a..5708ea5 100644 --- a/src/views/enterprise_management/department/components/add.vue +++ b/src/views/enterprise_management/department/components/add.vue @@ -14,7 +14,7 @@ { if (event === "1" && form.value.checkedIds.length === 0) { if (props.type === "add") diff --git a/src/views/off_duty_management/record/index.vue b/src/views/off_duty_management/record/index.vue new file mode 100644 index 0000000..fdf7f16 --- /dev/null +++ b/src/views/off_duty_management/record/index.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/views/off_duty_management/setting/index.vue b/src/views/off_duty_management/setting/index.vue new file mode 100644 index 0000000..cdfce4a --- /dev/null +++ b/src/views/off_duty_management/setting/index.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/add.vue b/src/views/security_commitment_pro/administration/add.vue new file mode 100644 index 0000000..c799e22 --- /dev/null +++ b/src/views/security_commitment_pro/administration/add.vue @@ -0,0 +1,518 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/components/select_template.vue b/src/views/security_commitment_pro/administration/components/select_template.vue new file mode 100644 index 0000000..a654d9b --- /dev/null +++ b/src/views/security_commitment_pro/administration/components/select_template.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/details.vue b/src/views/security_commitment_pro/administration/details.vue new file mode 100644 index 0000000..65fa1e3 --- /dev/null +++ b/src/views/security_commitment_pro/administration/details.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/index.vue b/src/views/security_commitment_pro/administration/index.vue new file mode 100644 index 0000000..6e21009 --- /dev/null +++ b/src/views/security_commitment_pro/administration/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/view.vue b/src/views/security_commitment_pro/administration/view.vue new file mode 100644 index 0000000..6011eb8 --- /dev/null +++ b/src/views/security_commitment_pro/administration/view.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/src/views/security_commitment_pro/template/add.vue b/src/views/security_commitment_pro/template/add.vue new file mode 100644 index 0000000..58924e5 --- /dev/null +++ b/src/views/security_commitment_pro/template/add.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/src/views/security_commitment_pro/template/components/view.vue b/src/views/security_commitment_pro/template/components/view.vue new file mode 100644 index 0000000..ac4c42d --- /dev/null +++ b/src/views/security_commitment_pro/template/components/view.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/security_commitment_pro/template/index.vue b/src/views/security_commitment_pro/template/index.vue new file mode 100644 index 0000000..cf50975 --- /dev/null +++ b/src/views/security_commitment_pro/template/index.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/src/views/statistical_analysis/inventory_statistics_month/index.vue b/src/views/statistical_analysis/inventory_statistics_month/index.vue index 4d28ee7..6fe759e 100644 --- a/src/views/statistical_analysis/inventory_statistics_month/index.vue +++ b/src/views/statistical_analysis/inventory_statistics_month/index.vue @@ -66,24 +66,15 @@ -
-
备注:红色日期代表周六日
-
- - 完成检查 -
-
- - 未进行检查 -
-
+
+ 备注:红色日期代表周六日 + √ 完成检查 + × 未进行检查 + 离岗/休班/周期未结束 -
-
- - 未建立 -
+ + - 未建立
- + √ {{ (resMap[row.LISTMANAGER_ID][fnFormatDate(item)] || "") @@ -178,20 +168,18 @@ (resMap[row.LISTMANAGER_ID][fnFormatDate(item)] || '') .TYPE === '2' " - class="flex" > - + × - + - - + @@ -253,11 +241,6 @@ const fnFormatDate = (day) => { diff --git a/src/views/troubleshooting_statistics/day_inspection/inspection_records.vue b/src/views/troubleshooting_statistics/day_inspection/inspection_records.vue new file mode 100644 index 0000000..e834c78 --- /dev/null +++ b/src/views/troubleshooting_statistics/day_inspection/inspection_records.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/ten_day_inspection/index.vue b/src/views/troubleshooting_statistics/ten_day_inspection/index.vue new file mode 100644 index 0000000..e1d9531 --- /dev/null +++ b/src/views/troubleshooting_statistics/ten_day_inspection/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue b/src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue new file mode 100644 index 0000000..7da7ea2 --- /dev/null +++ b/src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/week_inspection/index.vue b/src/views/troubleshooting_statistics/week_inspection/index.vue new file mode 100644 index 0000000..54d40aa --- /dev/null +++ b/src/views/troubleshooting_statistics/week_inspection/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/week_inspection/inspection_records.vue b/src/views/troubleshooting_statistics/week_inspection/inspection_records.vue new file mode 100644 index 0000000..8e5c0fc --- /dev/null +++ b/src/views/troubleshooting_statistics/week_inspection/inspection_records.vue @@ -0,0 +1,170 @@ + + + + +