From 6ec097e8b54e2c642e5a42f78b3151b153265557 Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Wed, 1 Jul 2026 11:55:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=89=E4=BA=86=E4=B8=8D=E4=BA=88?= =?UTF-8?q?=E9=97=AE=E8=B4=A3=EF=BC=8C=E5=85=B6=E4=BB=96=E5=B0=B1=E9=BB=91?= =?UTF-8?q?=E4=BA=86=EF=BC=8C=E4=B8=8D=E8=83=BD=E8=A2=AB=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/negative/verify.vue | 38 +++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/src/components/negative/verify.vue b/src/components/negative/verify.vue index 75822e3..710c19d 100644 --- a/src/components/negative/verify.vue +++ b/src/components/negative/verify.vue @@ -757,6 +757,7 @@ :key="dictItem.dictCode" :value="dictItem.dictValue" :label="dictItem.dictLabel" + :disabled="isNoAccountabilityResultDisabled(item.handleResultCode, dictItem.dictValue, NO_ACCOUNTABILITY_RESULT)" /> @@ -1089,10 +1090,11 @@ multiple > @@ -1488,10 +1490,11 @@ multiple > @@ -1859,6 +1862,7 @@ function handleCheckboxChange(blameLeader, bool, val) { } function handleChangeResultCode(item) { + normalizeNoAccountabilityResult(item, "handleResultCode", NO_ACCOUNTABILITY_RESULT); if (item.handleResultCode && item.handleResultCode.length > 0) { item.handleResultName = dict.handleResult .filter((obj) => item.handleResultCode.includes(obj.dictValue)) @@ -1870,6 +1874,7 @@ function handleChangeResultCode(item) { } function handleChangeLeadResultCode(item) { + normalizeNoAccountabilityResult(item, "leadHandleResultCode", NO_ACCOUNTABILITY_RESULT); if (item.leadHandleResultCode && item.leadHandleResultCode.length > 0) { item.leadHandleResultName = dict.handleResult .filter((obj) => item.leadHandleResultCode.includes(obj.dictValue)) @@ -1881,6 +1886,7 @@ function handleChangeLeadResultCode(item) { } function handleChangeDepartResultCode(item) { + normalizeNoAccountabilityResult(item, "handleResultCode", DEPART_NO_ACCOUNTABILITY_RESULT); if (item.handleResultCode && item.handleResultCode.length > 0) { item.handleResultName = dict.departHandleResult .filter((obj) => item.handleResultCode.includes(obj.dictValue)) @@ -1914,6 +1920,22 @@ const showSamePersonDialog = ref(false); // 是否属实 const isUntrue = computed(() => ['4', '5'].includes(String(form.value.checkStatusCode))); +const NO_ACCOUNTABILITY_RESULT = "14"; +const DEPART_NO_ACCOUNTABILITY_RESULT = "2-1"; + +function isNoAccountabilityResultDisabled(selectedValues, optionValue, noAccountabilityValue) { + return ( + selectedValues?.includes(noAccountabilityValue) && + optionValue !== noAccountabilityValue + ); +} + +function normalizeNoAccountabilityResult(item, field, noAccountabilityValue) { + if (item[field]?.includes(noAccountabilityValue) && item[field].length > 1) { + item[field] = [noAccountabilityValue]; + } +} + async function validate() { // 解决核查办理 当涉及对象是涉及个人时,有一条涉及单位的数据,导致问题无法提交的问题。