|
@@ -13,6 +13,7 @@ Component({
|
|
|
endTime: "",
|
|
|
startTime: "",
|
|
|
medicCards: [],
|
|
|
+ timeShow: false,
|
|
|
},
|
|
|
|
|
|
/* 赛选项目 */
|
|
@@ -48,6 +49,7 @@ Component({
|
|
|
onFilterHandel(filters) {
|
|
|
if (!this.hisPatientId) return
|
|
|
this.filters = filters;
|
|
|
+
|
|
|
this.scrollRef.refresh();
|
|
|
},
|
|
|
|
|
@@ -61,8 +63,24 @@ Component({
|
|
|
|
|
|
onService(page) {
|
|
|
const { type, status } = this.filters || {};
|
|
|
- console.log('this.hisPatientId', this.hisPatientId);
|
|
|
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",
|