diff --git a/src/components/negative/verify-sfss.vue b/src/components/negative/verify-sfss.vue index ef7e087..cf55425 100644 --- a/src/components/negative/verify-sfss.vue +++ b/src/components/negative/verify-sfss.vue @@ -1630,9 +1630,11 @@ watch(negative, () => { }); async function getFormData() { + const row = negative.value?.currentRow ?? {} form.value = { - ...negative.value.currentRow, - complaintId: negative.value?.currentRow?.id, + ...row, + complaintId: row?.id, + involveProblem:row.involveProblem ? String(row.involveProblem).split(/[,,]/).filter(Boolean) : [], involveDepartId: negative.value.involveDepartId, caseNumber: negative.value.caseNumber, checkStatus: negative.value.checkStatus, @@ -1680,6 +1682,7 @@ async function getFormData() { if (negative.value.problemSourcesCode === ProblemSources.JWDC) { form.value.accountabilityTarget = AccountabilityTarget.PERSONAL; } + console.log("传入之后解析的form的数据=======================") console.log(form.value); } diff --git a/src/views/data/ComplaintCollection.vue b/src/views/data/ComplaintCollection.vue index c43fbed..0d99e81 100644 --- a/src/views/data/ComplaintCollection.vue +++ b/src/views/data/ComplaintCollection.vue @@ -755,7 +755,6 @@ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const handleAction = async (row) => { negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row)) negativeVerifySfssDailog.value = true - console.log(row) } const negativeVerifySfssRef = ref(); // 办理提交 @@ -766,8 +765,8 @@ const handleSubmit = async () => { try { // const formData = await negativeVerifySfssRef.value.validate(); const formData = negativeVerifySfssRef.value.getData() + console.log("提交前面==================") console.log(formData) - await sleep(3000); let res = await addComplaintCollectionBlame(formData); feedback.msgSuccess("提交成功"); negativeVerifySfssDailog.value = false;