Bläddra i källkod

feat(patient): 调整患者建档信息页面路径及内容

- 修改健康记录页面跳转路径至患者建档信息页
- 移除患者基本信息页面中的建档信息入口
- 更新患者建档信息页面标题为健康档案
- 删除用药情况表单项及相关数据绑定
- 简化提交表单逻辑,移除用药历史字段
mcbaiyun 1 månad sedan
förälder
incheckning
95bfbf3e36

+ 1 - 1
src/pages/patient/health/index.vue

@@ -78,7 +78,7 @@ const openDetail = (type: string, metric?: string) => {
 }
 
 const openRecord = () => {
-  uni.navigateTo({ url: 'record' })
+  uni.navigateTo({ url: '../profile/infos/patient-filing' })
 }
 
 const openReminder = () => {

+ 0 - 4
src/pages/patient/profile/index.vue

@@ -21,10 +21,6 @@
       <view class="menu-item" @click="onMenuClick('base-info')">
         <text class="menu-text">基本信息设定</text>
         <text class="menu-arrow"></text>
-      </view>
-            <view class="menu-item" @click="onMenuClick('patient-filing')">
-        <text class="menu-text">建档信息设定</text>
-        <text class="menu-arrow"></text>
       </view>
       <view class="menu-item" @click="onMenuClick('settings')">
         <text class="menu-text">设置</text>

+ 2 - 14
src/pages/patient/profile/infos/patient-filing.vue

@@ -1,8 +1,8 @@
 <template>
-  <CustomNav title="患者建档信息" leftType="home" />
+  <CustomNav title="健康档案" leftType="back" />
   <view class="complete-container">
     <view class="form-section">
-      <text class="section-title">患者建档信息</text>
+      <text class="section-title">健康档案</text>
 
       <!-- 吸烟饮酒史 -->
       <view class="form-item">
@@ -30,16 +30,6 @@
         </view>
       </view>
 
-      <!-- 用药情况 -->
-      <view class="form-item">
-        <text class="label">用药情况</text>
-        <textarea
-          v-model="medicationHistory"
-          placeholder="请输入用药情况"
-          class="input"
-        />
-      </view>
-
       <!-- 过敏史 -->
       <view class="form-item">
         <view class="switch-row">
@@ -119,7 +109,6 @@ const diseaseHistory = ref<Record<string, boolean>>({
   coronaryHeartDisease: false,
   cerebralInfarction: false
 })
-const medicationHistory = ref('')
 const allergyHistory = ref('')
 const familyHistory = ref('')
 const hasAllergy = ref(false)
@@ -149,7 +138,6 @@ const submitForm = () => {
     smokingHistory: smokingHistory.value,
     drinkingHistory: drinkingHistory.value,
     diseaseHistory: diseaseHistory.value,
-    medicationHistory: medicationHistory.value,
     allergyHistory: hasAllergy.value ? allergyHistory.value : '',
     familyHistory: hasFamilyHistory.value ? familyHistory.value : ''
   }