|
|
|
|
@ -44,11 +44,16 @@ Page({
@@ -44,11 +44,16 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
_app.waitLogin().then(() => { |
|
|
|
|
_app.permissionVerification(3, 0, '/gift/pages/recordList/index').then(() => { |
|
|
|
|
wx.showLoading({ title: '加载中', mask: true }) |
|
|
|
|
_app.mpBehavior({ PageName: 'PG_PatientRecordList' }) |
|
|
|
|
this.getEnums().then(() => { |
|
|
|
|
this.getLatestRecord() |
|
|
|
|
this.getList() |
|
|
|
|
this.getIndicatorHistory() |
|
|
|
|
Promise.all([ |
|
|
|
|
this.getLatestRecord(), |
|
|
|
|
this.getList(), |
|
|
|
|
this.getIndicatorHistory(), |
|
|
|
|
]).finally(() => { |
|
|
|
|
wx.hideLoading() |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
@ -59,9 +64,14 @@ Page({
@@ -59,9 +64,14 @@ Page({
|
|
|
|
|
this.__loaded = true |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.getLatestRecord() |
|
|
|
|
this.getList(true) |
|
|
|
|
this.getIndicatorHistory() |
|
|
|
|
wx.showLoading({ title: '加载中', mask: true }) |
|
|
|
|
Promise.all([ |
|
|
|
|
this.getLatestRecord(), |
|
|
|
|
this.getList(true), |
|
|
|
|
this.getIndicatorHistory(), |
|
|
|
|
]).finally(() => { |
|
|
|
|
wx.hideLoading() |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// ========== API ==========
|
|
|
|
|
@ -90,7 +100,7 @@ Page({
@@ -90,7 +100,7 @@ Page({
|
|
|
|
|
const page = reset ? 1 : this.data.pagination.page |
|
|
|
|
const data: Record<string, any> = { page, pageSize: 10 } |
|
|
|
|
|
|
|
|
|
wx.ajax({ |
|
|
|
|
return wx.ajax({ |
|
|
|
|
method: 'GET', |
|
|
|
|
url: '?r=igg4/medical-visit/list', |
|
|
|
|
data, |
|
|
|
|
@ -125,7 +135,7 @@ Page({
@@ -125,7 +135,7 @@ Page({
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getLatestRecord() { |
|
|
|
|
wx.ajax({ |
|
|
|
|
return wx.ajax({ |
|
|
|
|
method: 'GET', |
|
|
|
|
url: '?r=igg4/medical-visit/get-latest-record', |
|
|
|
|
}).then((res: any) => { |
|
|
|
|
@ -146,7 +156,7 @@ Page({
@@ -146,7 +156,7 @@ Page({
|
|
|
|
|
data.yearEnd = Number(endDate.substring(0, 4)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
wx.ajax({ |
|
|
|
|
return wx.ajax({ |
|
|
|
|
method: 'GET', |
|
|
|
|
url: '?r=igg4/medical-visit/indicator-history', |
|
|
|
|
data, |
|
|
|
|
|