From 03d6e2209e8c7514f1b85fed1038156645f65633 Mon Sep 17 00:00:00 2001 From: xiangcongshuai Date: Wed, 12 Jun 2024 17:10:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ConfirmInspect/IdentificationBasis.vue | 2 +- .../ConfirmDiagnosis/ConfirmInspect/index.vue | 5 ++++- src/views/consultation/ConsultationRecords/index.vue | 9 +++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/IdentificationBasis.vue b/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/IdentificationBasis.vue index fc48a1c..40c6808 100644 --- a/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/IdentificationBasis.vue +++ b/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/IdentificationBasis.vue @@ -125,7 +125,7 @@ const save = async data => { if (res.code === 200) { sessionStorage.setItem("inspectSatus", "1"); useConsultationStoreHooks().changeInspectSatus("1"); - message("提交成功", { type: "success" }); + message("请配置处置计划", { type: "success" }); emit("save"); } }; diff --git a/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/index.vue b/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/index.vue index 3410f92..2cc20c1 100644 --- a/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/index.vue +++ b/src/views/consultation/ConfirmDiagnosis/ConfirmInspect/index.vue @@ -11,6 +11,7 @@ defineOptions({ name: "ConfirmInspect" }); const route = useRoute(); +const processId = ref(); const IdentificationBasisRef = ref(); const PreliminaryDiagnosisRef = ref(); const completed = () => { @@ -35,6 +36,7 @@ const saveOk = () => { emit("saveOk"); }; onMounted(() => { + processId.value = route.query.processId; useConsultationStoreHooks().getAskPrimaryList(route.query.processId); }); // 离开时暂存 @@ -44,9 +46,10 @@ onBeforeUnmount(async () => { if (list.length === 0) return; const params = { primaryConfirmList: list, - processId: route.query.processId, + processId: route.query.processId ? route.query.processId : processId.value, tempSaveFlag: 1 }; + await confirmPrimaryByAskEnd(params); }); diff --git a/src/views/consultation/ConsultationRecords/index.vue b/src/views/consultation/ConsultationRecords/index.vue index a762de8..7449d30 100644 --- a/src/views/consultation/ConsultationRecords/index.vue +++ b/src/views/consultation/ConsultationRecords/index.vue @@ -56,7 +56,12 @@ const getData = async () => { processId: route.query.processId }); dataList.value = res.data.qaList; - formData.evaluateLevel = res.data.evaluateLevel || ""; + if (res.data.evaluateLevel !== null && res.data.evaluateLevel !== undefined) { + formData.evaluateLevel = res.data.evaluateLevel; + } else { + formData.evaluateLevel = ""; + } + formData.evaluateRemark = res.data.evaluateRemark; }; const reset = () => { @@ -191,7 +196,7 @@ onMounted(() => {