Browse Source

fix: 检验检查——列表和详情页获取不到数据的都隐藏

carver 2 năm trước cách đây
mục cha
commit
207ec48a41

+ 1 - 1
antbuilder/industry/hospitalV2/components/report-details-list/reportDetailsList.axml

@@ -5,7 +5,7 @@
         <!-- 内容容器 -->
         <view class="report-details-container">
             <!-- 临床诊断 -->
-            <view class="clinical-diagnosis">
+            <view a:if="{{ reportDetailsInfo && reportDetailsInfo.diagnosis.length > 0 }}" class="clinical-diagnosis">
                 <view class="clinical-diagnosis-head">临床诊断</view>
                 <view class="clinical-diagnosis-list">
                     <view

+ 2 - 1
antbuilder/industry/hospitalV2/components/report-details-list/reportDetailsList.js

@@ -32,6 +32,7 @@ Component({
 				sampleType,
 				applyDate,
 				departmentName,
+				hisPatientId,
 				...rest
 			} = res;
 			const essentialInformationList = [
@@ -41,7 +42,7 @@ Component({
 				},
 				{
 					title: "就诊卡号",
-					value: cardNum,
+					value: hisPatientId,
 				},
 				{
 					title: "标本种类",

+ 4 - 4
antbuilder/industry/hospitalV2/components/report-list/record-item/index.axml

@@ -13,19 +13,19 @@
     </view>
   </view>
   <view class="item-container">
-    <view class="item-box">
+    <view a:if="{{ item.userName }}" class="item-box">
       <view class="item-label">就诊人</view>
       <view class="item-value">
         {{ item.userName || '--' }}
       </view>
     </view>
-    <view class="item-box">
+    <view a:if="{{ item.diagnosis }}" class="item-box">
       <view class="item-label">临床诊断</view>
       <view class="item-value clinical-diagnosis">
         {{ item.diagnosis || '--' }}
       </view>
     </view>
-    <view class="item-box">
+    <view a:if="{{ item.applyDate }}" class="item-box">
       <view class="item-label">报告时间</view>
       <view class="item-value">
         <view>
@@ -37,7 +37,7 @@
         </view> -->
       </view>
     </view>
-    <view class="item-box">
+    <view a:if="{{ item.departmentName }}" class="item-box">
       <view class="item-label">就诊科室</view>
       <view class="item-value">
         {{ item.departmentName || '--' }}