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();