Browse Source

fix: 预约记录修改

liweimin 2 years ago
parent
commit
27a843d2c4

+ 0 - 1
antbuilder/industry/hospitalV2/components/components/patient-tabs-pro/filters/time-option/index.axml

@@ -7,6 +7,5 @@
     maxDate="{{ maxDate }}"
     minDate="{{ minDate }}"
     verify="{{ false }}"
-    hint="最长可查找时间跨度6个月的记录"
   />
 </view>

+ 3 - 0
antbuilder/industry/hospitalV2/components/subscribe-record/index.axml

@@ -1,6 +1,9 @@
 <patient-tabs-pro
   onFilter="onFilterHandel"
   typeOptions="{{ typeOptions }}"
+  showInpatient="{{ showInpatient }}"
+  hasFilter="{{ hasFilter }}"
+  defaultName=""
 >
   <scroll-fetch
     ref="saveRef"

+ 9 - 4
antbuilder/industry/hospitalV2/components/subscribe-record/index.js

@@ -2,6 +2,7 @@ import services from './service';
 import { reportCmPV_YL } from '../../utils/cloudMonitorHelper';
 Component({
   props: {},
+  tabsShow: false,
   data: {
     typeOptions: [{
       value: 'normal',
@@ -12,7 +13,9 @@ Component({
     }, {
       value: 'nucleic',
       label: '核酸'
-    }]
+    }],
+    showInpatient: false,
+    hasFilter: false,
   },
 
   didMount() {
@@ -25,16 +28,18 @@ Component({
   methods: {
     onFilterHandel(filters) {
       this.filters = filters;
-      this.flatRef.refresh();
+      this.saveRef.refresh();
     },
 
     saveRef(ref) {
-      this.flatRef = ref;
+      this.saveRef = ref;
     },
 
     /* 分页逻辑 */
     async onService(params) {
-      return services.getSubscribeRecordList({ ...this.filters,
+      console.log('11111111111');
+      return services.getSubscribeRecordList({
+        ...this.filters,
         ...params
       });
     }