소스 검색

fix: 门诊缴费列表添加hisPatientId

liweimin 2 년 전
부모
커밋
590d99d346

+ 1 - 0
antbuilder/industry/hospitalV2/components/hospital-payment/index.axml

@@ -6,6 +6,7 @@
   showAll="{{ showAll }}"
   showAll="{{ showAll }}"
   showTimeSelector="{{ showTimeSelector }}"
   showTimeSelector="{{ showTimeSelector }}"
   defaultStatus="{{ defaultStatus }}"
   defaultStatus="{{ defaultStatus }}"
+  onAutoFilter="onAutoFilter"
 >
 >
   <scroll-fetch
   <scroll-fetch
     ref="saveRef"
     ref="saveRef"

+ 15 - 2
antbuilder/industry/hospitalV2/components/hospital-payment/index.js

@@ -40,9 +40,13 @@ Component({
 			title: "缴费记录查询",
 			title: "缴费记录查询",
 		});
 		});
 	},
 	},
+  onInit() {
+
+  },
 
 
 	methods: {
 	methods: {
 		onFilterHandel(filters) {
 		onFilterHandel(filters) {
+      if (!this.hisPatientId) return
 			this.filters = filters;
 			this.filters = filters;
 			this.scrollRef.refresh();
 			this.scrollRef.refresh();
 		},
 		},
@@ -55,17 +59,26 @@ Component({
 			this.subscribe = ref;
 			this.subscribe = ref;
 		},
 		},
 
 
-		onService(page) {
+	  onService(page) {
 			const { type, status } = this.filters || {};
 			const { type, status } = this.filters || {};
-
+      console.log('this.hisPatientId', this.hisPatientId);
+      if(!this.hisPatientId) return
 			return payHistory({
 			return payHistory({
 				...this.filters,
 				...this.filters,
 				type: type || "9",
 				type: type || "9",
 				status: status || "0",
 				status: status || "0",
 				...page,
 				...page,
+        hisPatientId: this.hisPatientId
 			});
 			});
 		},
 		},
 
 
+    onAutoFilter(patient) {
+			if (patient) {
+				this.hisPatientId = patient.hisPatientId;
+        this.scrollRef.refresh();
+			}
+		},
+
 		// 进入详情
 		// 进入详情
 		toDetail(e) {
 		toDetail(e) {
 			history.push({
 			history.push({