Prechádzať zdrojové kódy

fix: 核酸、挂号订单根据deptCode进行判断

carver 2 rokov pred
rodič
commit
2ea1954ea6

+ 1 - 1
antbuilder/industry/hospitalV2/components/booking-detail/index.axml

@@ -51,7 +51,7 @@
     <!-- 取消预约 -->
     <view class="cancel-booking">
       <button class="button" onTap="handleBack">返回</button>
-      <button class="button" onTap="handleCancelBook">取消预约</button>
+      <!-- <button class="button" onTap="handleCancelBook">取消预约</button> -->
     </view>
   </view>
 </view>

+ 24 - 27
antbuilder/industry/hospitalV2/components/subscribe-record/record-item/index.js

@@ -1,30 +1,27 @@
-import history from '../../../utils/history';
+import history from "../../../utils/history";
 Component({
-  props: {
-    item: {}
-  },
-  data: {},
+	props: {
+		item: {},
+	},
+	data: {},
 
-  didMount() {},
+	didMount() {},
 
-  methods: {
-    onItemTap({
-      target
-    }) {
-      const {
-        item: {
-          orderId,
-          type
-        }
-      } = target.dataset;
-      history.push({
-        title: '预约详情',
-        query: {
-          orderId
-        },
-        pageType: type !== 'nucleic' ? 'appointment-result' : 'booking-detail'
-      });
-    }
-
-  }
-});
+	methods: {
+		onItemTap({ target }) {
+			const {
+				item: { orderId, type, deptCode = "" },
+			} = target.dataset;
+			history.push({
+				title: "预约详情",
+				query: {
+					orderId,
+				},
+				pageType:
+					deptCode == "500" || deptCode == "400"
+						? "booking-detail"
+						: "appointment-result",
+			});
+		},
+	},
+});