Переглянути джерело

fix: 报告详情添加hisPatientId

carver 2 роки тому
батько
коміт
1148051b61

+ 2 - 0
antbuilder/industry/hospitalV2/components/patient-detail-edit/index.js

@@ -23,6 +23,8 @@ Component({
 	didMount() {
 		this.querySingle();
 		this.onEventChange();
+		const page = getCurrentPages();
+		console.log("page ===>", page);
 	},
 
 	didUnmount() {

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

@@ -16,11 +16,13 @@ Component({
 			recordId = 1,
 			type = "检查报告",
 			cardNum,
+			hisPatientId,
 		} = this.$page.data.query || {};
 		getReportDetail({
 			recordId,
 			type,
 			cardNum,
+			hisPatientId,
 		}).then((res) => {
 			const {
 				cardNum,

+ 2 - 1
antbuilder/industry/hospitalV2/components/report-list/record-item/index.js

@@ -9,7 +9,7 @@ Component({
 
 	methods: {
 		onTapItem() {
-			const { recordId, status, type, cardNum } = this.props.item;
+			const { recordId, status, type, cardNum, hisPatientId } = this.props.item;
 
 			if (status === "未出报告") {
 				return my.showToast({
@@ -25,6 +25,7 @@ Component({
 					recordId,
 					type,
 					cardNum,
+					hisPatientId,
 				},
 				pageType: "report-details-list",
 			});