|
@@ -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({
|