4 次代码提交 278696db7d ... 07a8ecd3c8

作者 SHA1 备注 提交日期
  liweimin 07a8ecd3c8 Merge branch 'dev' of http://gogs.ywtinfo.com/chenjunkun/th_net_hospital_ali_mp into dev 2 年之前
  liweimin 782d2ccc8a fix: 已支付展示时间 2 年之前
  liweimin 8b507c3881 Merge branch 'dev' of http://gogs.ywtinfo.com/chenjunkun/th_net_hospital_ali_mp into dev 2 年之前
  liweimin 590d99d346 fix: 门诊缴费列表添加hisPatientId 2 年之前

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

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

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

@@ -13,6 +13,7 @@ Component({
 			endTime: "",
 			startTime: "",
 			medicCards: [],
+      timeShow: false,
 		},
 
 		/* 赛选项目 */
@@ -40,10 +41,15 @@ Component({
 			title: "缴费记录查询",
 		});
 	},
+  onInit() {
+
+  },
 
 	methods: {
 		onFilterHandel(filters) {
+      if (!this.hisPatientId) return
 			this.filters = filters;
+      
 			this.scrollRef.refresh();
 		},
 
@@ -55,17 +61,42 @@ Component({
 			this.subscribe = ref;
 		},
 
-		onService(page) {
+	  onService(page) {
 			const { type, status } = this.filters || {};
-
+      if(!this.hisPatientId) return
+      if(this.filters.status === '1'){
+        this.setData({
+          showTimeSelector: true
+        })
+        if(!this.filters.startTime){
+          my.showToast({
+            type: "fail",
+            content: "请选择时间段",
+            duration: 3000,
+          });
+        }
+        return 
+      } else {
+        this.setData({
+          showTimeSelector: false
+        })
+      }
 			return payHistory({
 				...this.filters,
 				type: type || "9",
 				status: status || "0",
 				...page,
+        hisPatientId: this.hisPatientId
 			});
 		},
 
+    onAutoFilter(patient) {
+			if (patient) {
+				this.hisPatientId = patient.hisPatientId;
+        this.scrollRef.refresh();
+			}
+		},
+
 		// 进入详情
 		toDetail(e) {
 			history.push({

+ 2 - 1
antbuilder/industry/hospitalV2/components/hospital-payment/index.json

@@ -3,6 +3,7 @@
   "usingComponents": {
     "scroll-fetch": "../components/scroll-fetch/index",
     "patient-tabs-pro": "../components/patient-tabs-pro/index",
-    "subscribe-msg": "../components/subscribe-msg/index"
+    "subscribe-msg": "../components/subscribe-msg/index",
+    "time-option": "../../../hospitalV2/components/components/patient-tabs-pro/filters/time-option/index"
   }
 }