From ef5144e975aef19ab7295270390beccfb700457b Mon Sep 17 00:00:00 2001
From: gengchunlei <1807398631@qq.com>
Date: Thu, 26 Dec 2024 15:34:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E7=94=9F=E7=AB=AF=E5=B0=8F=E7=A8=8B?=
 =?UTF-8?q?=E5=BA=8F=20=20v1.2=201=E3=80=81push?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/doctor/screening/second/SecondForm.vue | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/src/doctor/screening/second/SecondForm.vue b/src/doctor/screening/second/SecondForm.vue
index 5bb1e49..470d35a 100644
--- a/src/doctor/screening/second/SecondForm.vue
+++ b/src/doctor/screening/second/SecondForm.vue
@@ -1,16 +1,27 @@
 <template>
     <div class="h-full flex flex-col screening-second">
         <DocNavBar :title="`${id ? '修改' : '新增'}专病高危筛查`" class="shrink-0"></DocNavBar>
+        <div>
+            <archive-common :info='info'></archive-common>
+        </div>
     </div>
 </template>
 
 <script>
 import DocNavBar from '@/doctor/components/docNavBar/DocNavBar.vue'
+import ArchiveCommon from '@/doctor/components/archiveCommon/archiveCommon'
+import { fetchCurrencyById, getChronicResidentsId, getResidentWX } from '@/api/doctor/generalFU'
 
 export default {
     components: {
+        ArchiveCommon,
         DocNavBar
     },
+    data() {
+      return {
+          info: {}
+      }
+    },
     computed: {
         id() {
             return this.$route.query.id
@@ -18,6 +29,43 @@ export default {
         residentInfoId() {
             return this.$route.query.residentInfoId
         }
+    },
+    created() {
+        this.init()
+    },
+    methods: {
+        async init() {
+            this.info = {}
+            if (this.id) {
+                const res = await fetchCurrencyById({ id: this.id })
+                let result = res.data || {}
+                const { residentsRecord = {} } = result
+                const { id, ...others } = residentsRecord
+                this.info = {
+                    ...others,
+                    personId: id,
+                    ...result
+                }
+            } else {
+                const res = await getChronicResidentsId(this.routerDetail.residentInfoId)
+                const {
+                    id,
+                    createDate,
+                    createDoctorId,
+                    createDoctorName,
+                    createOfficeId,
+                    createOfficeName,
+                    createUnitId,
+                    createUnitName,
+                    updated,
+                    ...others
+                } = res.data
+                this.info = {
+                    personId: id,
+                    ...others,
+                }
+            }
+        },
     }
 }
 </script>
-- 
2.18.0