From 7750f239ec87c2055c6e4ca2c7a2f4ce62c0e719 Mon Sep 17 00:00:00 2001 From: huangchengfa <171504222@qq.com> Date: Wed, 17 Dec 2025 21:20:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=BD=AC=E4=BC=9A?= =?UTF-8?q?=E5=95=86=E7=BB=AD=E6=8A=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/inputCom/inputUser.vue | 147 +++++++++++ src/utils/tools.js | 18 ++ .../infoCollection/components/addForm.vue | 56 ++++- .../components/transferMerchant.vue | 236 ++++++++++++++++++ .../infoCollection/index.vue | 45 +++- 5 files changed, 480 insertions(+), 22 deletions(-) create mode 100644 src/components/inputCom/inputUser.vue create mode 100644 src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/transferMerchant.vue diff --git a/src/components/inputCom/inputUser.vue b/src/components/inputCom/inputUser.vue new file mode 100644 index 0000000..ea574e3 --- /dev/null +++ b/src/components/inputCom/inputUser.vue @@ -0,0 +1,147 @@ + + + + + +::v-depp .treeBox { +margin-top: 10px; +} + + diff --git a/src/utils/tools.js b/src/utils/tools.js index 943c4eb..09d446e 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -381,3 +381,21 @@ export function holographicProfileJump(szhm) { if (!szhm) return window.open(`https://tyyy.lz.dsj.xz/profile/people/person-manage?sfzhm=${szhm}&from=portal`) } + +/** + * 获取表单验证错误信息 + * @param fields 表单验证错误信息 + * @param {Object} msgObj 错误信息Ojb,没有就取message + */ +export function getErrMsg(fields, msgObj) { + if (!fields) return; + if (Object.keys(fields).length === 0) return; + /** 第一个错误字段 */ + const firstErrorField = Object.keys(fields)[0]; + if (msgObj && msgObj[firstErrorField]) return msgObj[firstErrorField]; + if (!firstErrorField) return; + /** 第一个错误字段的内容 @type{Object} - [message, field, fieldValue] */ + let firstErrorFieldObj = fields?.[firstErrorField]; + let errMsg = firstErrorFieldObj?.[0]?.message + return errMsg +} diff --git a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue index 31aeedb..df22ae3 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/components/addForm.vue @@ -109,7 +109,7 @@ + diff --git a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue index 6b02841..a9da34a 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/infoCollection/index.vue @@ -92,7 +92,8 @@ 转合成 - 转会商 + 转会商 肯定 关注部门 @@ -101,7 +102,9 @@ 删除 - 修改 + 修改 + 续报 详情 @@ -134,6 +137,10 @@ + + + +