Browse Source

fix: 屏蔽缴费记录全部状态

liweimin 2 years ago
parent
commit
9a4cfcbe80

+ 2 - 2
antbuilder/industry/hospitalV2/components/components/patient-tabs-pro/filters/mask-option/index.axml

@@ -20,13 +20,13 @@
     />
     <view class="options">
       <!-- 屏蔽全部类型,暂时根据 showTimeSelector 进行判断,后续可以细分 -->
-      <view
+      <!-- <view
         onTap="onTapItem"
         class="option {{ !value ? 'active' : '' }}"
         a:if="{{ showTimeSelector }}" 
       >
         {{ defaultLabel || '全部类型' }}
-      </view>
+      </view> -->
       <view
         onTap="onTapItem"
         a:for="{{ showStatus ? statusItems : options }}"

+ 1 - 19
antbuilder/industry/hospitalV2/components/hospital-payment/index.js

@@ -29,7 +29,7 @@ Component({
 			},
 		],
 		showAll: false,
-		showTimeSelector: false,
+		showTimeSelector: true,
 		defaultLabel: "待支付",
 		defaultName: "待支付",
 		defaultStatus: "待支付",
@@ -64,26 +64,8 @@ Component({
 	  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