|
|
|
|
@ -46,6 +46,7 @@ Page({
@@ -46,6 +46,7 @@ Page({
|
|
|
|
|
this.chartComponent6 = this.selectComponent('#chart6') |
|
|
|
|
|
|
|
|
|
app.waitLogin({ type: [1] }).then(() => { |
|
|
|
|
app.mpBehavior({ PageName: 'PG_QolReport' }) |
|
|
|
|
this.handleChangeType() |
|
|
|
|
this.getList() |
|
|
|
|
this.getQol() |
|
|
|
|
@ -102,9 +103,12 @@ Page({
@@ -102,9 +103,12 @@ Page({
|
|
|
|
|
.exec() |
|
|
|
|
}, |
|
|
|
|
handleChangeType(e?: WechatMiniprogram.CustomEvent) { |
|
|
|
|
if (e) { |
|
|
|
|
app.mpBehavior({ PageName: 'BTN_QolReportTab' }) |
|
|
|
|
} |
|
|
|
|
let type = '' |
|
|
|
|
if (e) { |
|
|
|
|
// Tab 已移除“日”,现仅有“月度/年度”
|
|
|
|
|
// Tab 已移除"日",现仅有"月度/年度"
|
|
|
|
|
type = e.detail.index === 0 ? '2' : '3' |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
@ -533,6 +537,7 @@ Page({
@@ -533,6 +537,7 @@ Page({
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
handleDelete(e) { |
|
|
|
|
app.mpBehavior({ PageName: 'BTN_QolReportDelete' }) |
|
|
|
|
const { id, index } = e.currentTarget.dataset |
|
|
|
|
const { list } = this.data |
|
|
|
|
wx.showModal({ |
|
|
|
|
@ -556,12 +561,14 @@ Page({
@@ -556,12 +561,14 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleDetail(e) { |
|
|
|
|
app.mpBehavior({ PageName: 'BTN_QolReportListItem' }) |
|
|
|
|
const { id, edit } = e.currentTarget.dataset |
|
|
|
|
wx.navigateTo({ |
|
|
|
|
url: `/patient/pages/qolAdd/index?id=${id}&edit=${edit ? 1 : 0}`, |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleQol() { |
|
|
|
|
app.mpBehavior({ PageName: 'BTN_QolReportAdd' }) |
|
|
|
|
this.handleHideFooterBtn() |
|
|
|
|
const { qolDetail } = this.data |
|
|
|
|
const url |
|
|
|
|
@ -599,6 +606,7 @@ Page({
@@ -599,6 +606,7 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleHormones() { |
|
|
|
|
app.mpBehavior({ PageName: 'BTN_QolReportHormone' }) |
|
|
|
|
const hormoneDetail = this.data.hormoneDetail |
|
|
|
|
this.handleHideFooterBtn() |
|
|
|
|
const url = hormoneDetail.recordId |
|
|
|
|
|