|
@@ -24,8 +24,9 @@ Component(
|
|
|
label: "核酸",
|
|
|
},
|
|
|
],
|
|
|
- showInpatient: false,
|
|
|
+ showInpatient: true,
|
|
|
hasFilter: false,
|
|
|
+ showAll: false,
|
|
|
},
|
|
|
|
|
|
didMount() {
|
|
@@ -37,6 +38,8 @@ Component(
|
|
|
|
|
|
methods: {
|
|
|
onFilterHandel(filters) {
|
|
|
+ // 预约挂号列表不需要这个 filters
|
|
|
+ return;
|
|
|
this.filters = filters;
|
|
|
this.saveRef.refresh();
|
|
|
},
|
|
@@ -47,19 +50,24 @@ Component(
|
|
|
|
|
|
/* 分页逻辑 */
|
|
|
async onService(params) {
|
|
|
+ if (!this.hisPatientId) return;
|
|
|
return services.getSubscribeRecordList(
|
|
|
- Object.assign({
|
|
|
- ...this.filters,
|
|
|
- ...params,
|
|
|
- })
|
|
|
+ Object.assign(
|
|
|
+ {
|
|
|
+ ...this.filters,
|
|
|
+ ...params,
|
|
|
+ },
|
|
|
+ { hisPatientId: this.hisPatientId }
|
|
|
+ )
|
|
|
);
|
|
|
},
|
|
|
|
|
|
- // 跳转到添加就诊人页面
|
|
|
- addPatient() {
|
|
|
- my.navigateTo({
|
|
|
- url: "/antbuilder/industry/hospitalV2/pages/page-no-pull/index?header=show&pageType=edit-patient&title=添加就诊人",
|
|
|
- });
|
|
|
+ // filter 初始化时设置 hisPatientId
|
|
|
+ onAutoFilter(filters) {
|
|
|
+ if (filters) {
|
|
|
+ this.hisPatientId = filters.hisPatientId;
|
|
|
+ this.saveRef.refresh();
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
})
|