From 53b63fabc15350b5ea837eaf3fe03f0a48b26d86 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Thu, 25 Jan 2024 14:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=B8=8E=E8=BE=A8=E5=88=AB?= =?UTF-8?q?=E9=83=A8=E4=BD=8D=E5=AF=B9=E6=8E=A5=E7=AC=AC=E4=B8=89=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/risk_control.js | 4 + src/views/enterprise_management/user/add.vue | 20 +++ .../identifying_parts/components/add.vue | 124 +++++++++++++++++- 3 files changed, 146 insertions(+), 2 deletions(-) diff --git a/src/request/risk_control.js b/src/request/risk_control.js index 4aa849a..7ad02b4 100644 --- a/src/request/risk_control.js +++ b/src/request/risk_control.js @@ -13,6 +13,10 @@ export const getRiskPointInspectList = (params) => post("/riskunit/getRisByUnitId", params); // 风险点单元检查内容 export const getIdentifyingPartsList = (params) => post("/identificationparts/list", params); // 辨识部位列表 + +export const getRyRegionList = (params) => + post("/identificationparts/ryRegionList", params); // 电子围栏列表 + export const getIdentifyingPartsListById = (params) => post("/identificationparts/listAllByIdens", params); // 辨识部位列表所有根据ID export const getIdentifyingPartsView = (params) => diff --git a/src/views/enterprise_management/user/add.vue b/src/views/enterprise_management/user/add.vue index 9c148ea..669f0cb 100644 --- a/src/views/enterprise_management/user/add.vue +++ b/src/views/enterprise_management/user/add.vue @@ -54,6 +54,17 @@ /> + + + + + @@ -516,6 +527,14 @@ const rules = { ENTRY_DATE: [ { required: true, message: "请选择入职日期", trigger: "change" }, ], + CARDNO: [ + { required: true, message: "请输入定位卡号(4位纯数字)", trigger: "blur" }, + { + pattern: /^-?[0-9]\d*$/, + message: "请输入正确的定位卡号(4位纯数字)", + trigger: "blur", + }, + ], WORKING_DATE: [ { required: true, message: "请选择参加工作日期", trigger: "change" }, ], @@ -560,6 +579,7 @@ const data = reactive({ oldDepartId: "", form: { ROLE_ID: "", + CARDNO: "", DEPARTMENT_ID: "", POST_ID: "", USERNAME: "", diff --git a/src/views/risk_control/identifying_parts/components/add.vue b/src/views/risk_control/identifying_parts/components/add.vue index f61ab30..34f1737 100644 --- a/src/views/risk_control/identifying_parts/components/add.vue +++ b/src/views/risk_control/identifying_parts/components/add.vue @@ -27,44 +27,135 @@ :limit="99" /> + + + 添加 + 移除 + + + + + + + + + + + + + 搜索 + + 重置 + + + + + + + + + + + + + + + + + + + +