From ca4f6bb8fa6392cee4356b498e6596db81994a5b Mon Sep 17 00:00:00 2001
From: wxc <191104855@qq.com>
Date: Thu, 30 Apr 2026 16:16:44 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=20?=
=?UTF-8?q?=E7=BB=8F=E5=8A=9E=E4=BA=BA=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/negative/verify-sfss.vue | 76 -------------------------
1 file changed, 76 deletions(-)
diff --git a/src/components/negative/verify-sfss.vue b/src/components/negative/verify-sfss.vue
index 3a3edfc..561b810 100644
--- a/src/components/negative/verify-sfss.vue
+++ b/src/components/negative/verify-sfss.vue
@@ -91,45 +91,6 @@
>
-
-
-
{
- item.name = police.name;
- item.mobile = police.mobile;
- }
- "
- />
-
- 新增经办人
- 删除
-
-
("negative");
const formRef = ref();
const negativeVerifyRef = ref>();
-const createHandlePolice = (): HandlePolice => ({
- name: "",
- empNo: "",
- mobile: "",
-});
-
const currentRow = computed(() => sourceNegative?.value?.currentRow || {});
const createForm = (): VerifySfssForm =>
@@ -277,7 +225,6 @@ const createForm = (): VerifySfssForm =>
initVerdict: "",
completionStatus: currentRow.completionStatus,
publicRecognition: currentRow.publicRecognition,
- handlePolices: [createHandlePolice()],
files: [],
blames: [],
blameLeaders: [],
@@ -350,11 +297,6 @@ function getStageBySource(row: Record) {
: STAGE_INITIAL;
}
-function getHandlePolices() {
- const handlePolices = clone(sourceNegative?.value?.handlePolices || []);
- return handlePolices.length ? handlePolices : [createHandlePolice()];
-}
-
function syncFormData() {
const row = currentRow.value || {};
const fallbackInvolveDepartId =
@@ -393,7 +335,6 @@ function syncFormData() {
publicRecognition: String(
sourceNegative?.value?.publicRecognition ?? row?.publicRecognition ?? ""
),
- handlePolices: getHandlePolices(),
files: clone(sourceNegative?.value?.files || []),
blames: clone(sourceNegative?.value?.blames || []),
blameLeaders: clone(sourceNegative?.value?.blameLeaders || []),
@@ -431,29 +372,12 @@ function mergeVerifyForm(verifyForm: Record = {}) {
complaintId,
involveDepartId,
involveDepartName,
- handlePolices: clone(baseForm.handlePolices),
files: clone(verifyForm.files || baseForm.files || []),
blames: clone(verifyForm.blames || baseForm.blames || []),
blameLeaders: clone(verifyForm.blameLeaders || baseForm.blameLeaders || []),
};
}
-function validateHandlePolices(
- _: unknown,
- value: HandlePolice[],
- callback: (error?: Error) => void
-) {
- if (!value?.length || !value[0]?.name) {
- callback(new Error("请选择经办人"));
- return;
- }
- if (!value[0]?.mobile) {
- callback(new Error("请输入经办人联系方式"));
- return;
- }
- callback();
-}
-
async function validate() {
await formRef.value?.validate();
const verifyData = await validateNegativeVerify();