Browse Source

fix: 预约挂号记录页面添加绑定就诊人按钮

carver 2 years ago
parent
commit
1bedab0277

+ 3 - 1
antbuilder/industry/hospitalV2/components/subscribe-record/index.axml

@@ -5,6 +5,7 @@
   hasFilter="{{ hasFilter }}"
   defaultName=""
 >
+  
   <scroll-fetch
     ref="saveRef"
     slot-scope="props"
@@ -14,8 +15,9 @@
     emptyMessage="你可以在顶部切换时间或选择其他就诊人"
   >
   <view slot-scope="props" >
+    <view a:if="{{ props.index == 0 }}"><button style="margin-bottom: 10px" onTap="addPatient" >绑定就诊人</button></view>
     <record-item  item="{{ props.item }}" a:if="{{props.item.type !== 'a'}}" />
-    <view   item="{{ props.item }}" a:else > </view>
+    <view item="{{ props.item }}" a:else > </view>
   </view>
 
   </scroll-fetch>

+ 7 - 0
antbuilder/industry/hospitalV2/components/subscribe-record/index.js

@@ -54,6 +54,13 @@ Component(
 					})
 				);
 			},
+
+			// 跳转到添加就诊人页面
+			addPatient() {
+				my.navigateTo({
+					url: "/antbuilder/industry/hospitalV2/pages/page-no-pull/index?header=show&pageType=edit-patient&title=添加就诊人",
+				});
+			},
 		},
 	})
 );