Browse Source

众测问题处理

2.0
kola-web 1 month ago
parent
commit
5ba523a579
  1. 10
      src/components/pickerArea/index.scss
  2. 16
      src/doctor/pages/coltStat/index.ts
  3. 111
      src/doctor/pages/file/index.ts
  4. 5
      src/doctor/pages/followPlan/index.ts
  5. 4
      src/doctor/pages/followPlan/index.wxml
  6. 6
      src/doctor/pages/lastDiagnosisReport/index.wxml
  7. 20
      src/doctor/pages/preDiagnosisReport/index.wxml
  8. 17
      src/patient/pages/coltStat/index.ts
  9. 102
      src/patient/pages/file/index.ts
  10. 8
      src/patient/pages/followPlan/index.ts
  11. 4
      src/patient/pages/followPlan/index.wxml
  12. 6
      src/patient/pages/lastDiagnosisReport/index.ts
  13. 3
      src/patient/pages/lastDiagnosisReport/index.wxml
  14. 11
      src/patient/pages/preDiagnosisReport/index.ts
  15. 3
      src/patient/pages/preDiagnosisReport/index.wxml

10
src/components/pickerArea/index.scss

@ -41,7 +41,7 @@
padding: 18rpx 30rpx; padding: 18rpx 30rpx;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.11); box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.11);
border-radius: 12rpx 12rpx 12rpx 12rpx; border-radius: 12rpx 12rpx 12rpx 12rpx;
border: 2rpx solid #e04775; border: 2rpx solid #f23a2f;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
@ -69,7 +69,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: #e04775; background: #f23a2f;
border-radius: 12rpx 12rpx 12rpx 12rpx; border-radius: 12rpx 12rpx 12rpx 12rpx;
} }
} }
@ -91,7 +91,7 @@
background: #f7f8f9; background: #f7f8f9;
&.active { &.active {
color: #fff; color: #fff;
background-color: rgba(224, 71, 117, 1); background-color: #f23a2f;
} }
} }
} }
@ -118,9 +118,9 @@
height: 36rpx; height: 36rpx;
} }
&.active { &.active {
color: rgba(224, 71, 117, 1); color: #f23a2f;
.word { .word {
color: rgba(224, 71, 117, 1); color: #f23a2f;
} }
} }
} }

16
src/doctor/pages/coltStat/index.ts

@ -96,13 +96,13 @@ Page({
res.altList = res.altList || [] res.altList = res.altList || []
res.cfRecordList = res.cfRecordList || [] res.cfRecordList = res.cfRecordList || []
res.astList.forEach((item: any) => { res.astList.forEach((item: any) => {
astList[item.beginDate] = item.ast astList[item.beginDate || item.endDate] = item.ast
}) })
res.altList.forEach((item: any) => { res.altList.forEach((item: any) => {
altList[item.beginDate] = item.alt altList[item.beginDate || item.endDate] = item.alt
}) })
res.cfRecordList.forEach((item: any) => { res.cfRecordList.forEach((item: any) => {
cfRecordList[item.beginDate] = item.clottingFactor cfRecordList[item.beginDate || item.endDate] = item.clottingFactor
}) })
const initParams = { const initParams = {
astList, astList,
@ -344,8 +344,8 @@ Page({
}, },
grid: { grid: {
top: '30', top: '30',
left: '10', left: '0',
right: '10', right: '0',
bottom: '45', bottom: '45',
containLabel: true, containLabel: true,
}, },
@ -377,6 +377,9 @@ Page({
{ {
type: 'value', type: 'value',
name: '单位:%', name: '单位:%',
nameTextStyle: {
align: 'left',
},
axisLabel: { axisLabel: {
color: 'rgba(161, 164, 172, 1)', color: 'rgba(161, 164, 172, 1)',
}, },
@ -399,6 +402,9 @@ Page({
{ {
type: 'value', type: 'value',
name: '单位:U/L', name: '单位:U/L',
nameTextStyle: {
align: 'right',
},
position: 'right', position: 'right',
axisLabel: { axisLabel: {
color: 'rgba(161, 164, 172, 1)', color: 'rgba(161, 164, 172, 1)',

111
src/doctor/pages/file/index.ts

@ -55,7 +55,7 @@ Page({
app.waitLogin({ type: 2 }).then(() => { app.waitLogin({ type: 2 }).then(() => {
app.mpBehavior({ PageName: 'PG_MEDICALRECORD_VISIT' }) app.mpBehavior({ PageName: 'PG_MEDICALRECORD_VISIT' })
this.getPatientInfo() this.getPatientInfo()
this.getInfo() this.handleSwiperChange()
}) })
}, },
getPatientInfo() { getPatientInfo() {
@ -80,81 +80,90 @@ Page({
this.setData({ this.setData({
nav, nav,
}) })
this.getInfo()
}, },
handleSwiperChange(e) { async handleSwiperChange(e?: any) {
let current = this.data.nav
if (e) {
current = e.detail.current
}
const name = { const name = {
0: 'BTN_TREATMENT_RECORD_TAB_CLICK', 0: 'BTN_TREATMENT_RECORD_TAB_CLICK',
1: 'BTN_MEDICAL_HISTORY_TAB_CLICK', 1: 'BTN_MEDICAL_HISTORY_TAB_CLICK',
2: 'BTN_FOLLOWUP_CALENDAR_TAB_CLICK', 2: 'BTN_FOLLOWUP_CALENDAR_TAB_CLICK',
}[e.detail.current] }[current]
if (name) { if (name) {
app.mpBehavior({ PageName: name }) app.mpBehavior({ PageName: name })
} }
this.setData({
nav: current,
})
await this.getInfo()
const query = wx.createSelectorQuery() const query = wx.createSelectorQuery()
query.select(`#container${e.detail.current}`).boundingClientRect() query.select(`#container${current}`).boundingClientRect()
query.exec((res) => { query.exec((res) => {
this.setData({ this.setData({
swiperHeight: res[0].height + 42, swiperHeight: res[0].height + 42,
nav: e.detail.current,
}) })
}) })
}, },
getInfo() { async getInfo() {
const { nav } = this.data const { nav } = this.data
if (nav == 0) { if (nav == 0) {
wx.ajax({ return wx
method: 'GET', .ajax({
url: '?r=wtx/doctor/treatment/get-archives', method: 'GET',
data: { url: '?r=wtx/doctor/treatment/get-archives',
patientId: this.data.id, data: {
}, patientId: this.data.id,
}).then((res) => { },
this.setData({ })
...res, .then((res) => {
empty0: this.setData({
!res.periodOne.length && ...res,
!res.periodTwo.length && empty0:
!res.periodFour.length && !res.periodOne.length &&
!res.periodThree.injectionDate && !res.periodTwo.length &&
!res.periodThree.injectionWeight && !res.periodFour.length &&
!res.periodThree.injectionDrugs && !res.periodThree.injectionDate &&
!res.periodThree.injectionNum, !res.periodThree.injectionWeight &&
!res.periodThree.injectionDrugs &&
!res.periodThree.injectionNum,
})
}) })
this.handleSwiperChange({ detail: { current: 0 } })
})
} }
if (nav == 1) { if (nav == 1) {
wx.ajax({ return wx
method: 'GET', .ajax({
url: '?r=wtx/doctor/treatment/get-medical-history-info', method: 'GET',
data: { url: '?r=wtx/doctor/treatment/get-medical-history-info',
patientId: this.data.id, data: {
}, patientId: this.data.id,
}).then((res) => { },
this.setData({ })
medical: res, .then((res) => {
this.setData({
medical: res,
})
}) })
this.handleSwiperChange({ detail: { current: 1 } })
})
} }
if (nav == 2) { if (nav == 2) {
wx.ajax({ return wx
method: 'GET', .ajax({
url: '?r=wtx/doctor/treatment/get-follow-up-exam', method: 'GET',
data: { url: '?r=wtx/doctor/treatment/get-follow-up-exam',
patientId: this.data.id, data: {
}, patientId: this.data.id,
}).then((res) => {
this.setData({
followExam: {
injectionDateName: dayjs(res.injectionDate).format('YYYY年MM月DD日 ddd'),
...res,
}, },
}) })
this.getFollowList() .then((res) => {
this.handleSwiperChange({ detail: { current: 2 } }) this.setData({
}) followExam: {
injectionDateName: res.injectionDate ? dayjs(res.injectionDate).format('YYYY年MM月DD日 ddd') : '',
...res,
},
})
this.getFollowList()
})
} }
}, },
getFollowList(dateMonth = '') { getFollowList(dateMonth = '') {

5
src/doctor/pages/followPlan/index.ts

@ -18,11 +18,6 @@ Page({
this.getDetail() this.getDetail()
}) })
}, },
handleInject() {
wx.navigateTo({
url: '/patient/pages/injectDate/index',
})
},
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',

4
src/doctor/pages/followPlan/index.wxml

@ -1,10 +1,10 @@
<view class="page"> <view class="page">
<view class="date-card" bind:tap="handleInject"> <view class="date-card">
<image class="icon" src="{{imageUrl}}icon107.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon107.png?t={{Timestamp}}"></image>
<view class="content">注射日:{{injectionDate || '未录入'}}</view> <view class="content">注射日:{{injectionDate || '未录入'}}</view>
</view> </view>
<view class="body"> <view class="body">
<view class="title">基因治疗后 监测频率</view> <view class="title">基因治疗后监测频率</view>
<view class="container"> <view class="container">
<view class="table"> <view class="table">
<view class="thead"> <view class="thead">

6
src/doctor/pages/lastDiagnosisReport/index.wxml

@ -37,7 +37,7 @@
<view class="title">生化检查</view> <view class="title">生化检查</view>
<image class="icon {{fold1 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold1 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isBiochemical==1 && 'active'}}">已检查</view> <view class="status {{isBiochemical==1 && 'active'}}">{{isBiochemical==1?'已检查':'未检查'}}</view>
</view> </view>
</view> </view>
<view class="c-body {{fold1 && 'fold'}}"> <view class="c-body {{fold1 && 'fold'}}">
@ -121,7 +121,7 @@
<view class="title">凝血因子 IX 活性</view> <view class="title">凝血因子 IX 活性</view>
<image class="icon {{fold2 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold2 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isCFIxActivity==1 && 'active'}}">已检查</view> <view class="status {{isCFIxActivity==1 && 'active'}}">{{isCFIxActivity==1?'已检查':'未检查'}}</view>
</view> </view>
</view> </view>
<view class="c-body {{fold2 && 'fold'}}"> <view class="c-body {{fold2 && 'fold'}}">
@ -168,7 +168,7 @@
<view class="title">其他检查</view> <view class="title">其他检查</view>
<image class="icon {{fold3 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold3 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isOther==1 && 'active'}}">已检查</view> <view class="status {{isOther==1 && 'active'}}">{{isOther==1?'已检查':'未检查'}}</view>
</view> </view>
<view class="content">您的其他项检查</view> <view class="content">您的其他项检查</view>
</view> </view>

20
src/doctor/pages/preDiagnosisReport/index.wxml

@ -39,7 +39,7 @@
<image class="icon {{fold1 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold1 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isBloodRoutine==1 && 'active'}} {{isBloodRoutine==1 && 'active'}}"> <view class="status {{isBloodRoutine==1 && 'active'}} {{isBloodRoutine==1 && 'active'}}">
已检查 {{isBloodRoutine==1?'已检查':'未检查'}}
</view> </view>
</view> </view>
<view class="content">重点检查项目:白细胞计数)WBC)血红蛋白(HGB)血小板计数(PLT)</view> <view class="content">重点检查项目:白细胞计数)WBC)血红蛋白(HGB)血小板计数(PLT)</view>
@ -75,7 +75,7 @@
<image class="icon {{fold2 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold2 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isBiochemical==1 && 'active'}} {{isBiochemical==1 && 'active'}}"> <view class="status {{isBiochemical==1 && 'active'}} {{isBiochemical==1 && 'active'}}">
已检查 {{isBiochemical==1?'已检查':'未检查'}}
</view> </view>
</view> </view>
</view> </view>
@ -165,7 +165,7 @@
<view class="title">凝血因子 IX 活性</view> <view class="title">凝血因子 IX 活性</view>
<image class="icon {{fold3 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold3 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isCFIxActivity==1 && 'active'}}">已检查</view> <view class="status {{isCFIxActivity==1 && 'active'}}">{{isCFIxActivity==1?'已检查':'未检查'}}</view>
</view> </view>
</view> </view>
<view class="c-body {{fold3 && 'fold'}}"> <view class="c-body {{fold3 && 'fold'}}">
@ -214,7 +214,7 @@
<view class="title">凝血因子 IX 抑制物检测</view> <view class="title">凝血因子 IX 抑制物检测</view>
<image class="icon {{fold4 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold4 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isCFIxInhibitor==1 && 'active'}}">已检查</view> <view class="status {{isCFIxInhibitor==1 && 'active'}}">{{isCFIxInhibitor==1?'已检查':'未检查'}}</view>
</view> </view>
</view> </view>
<view class="c-body {{fold4 && 'fold'}}"> <view class="c-body {{fold4 && 'fold'}}">
@ -250,7 +250,7 @@
<view class="title">乙型肝炎相关检查</view> <view class="title">乙型肝炎相关检查</view>
<image class="icon {{fold5 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold5 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isHepatitisB==1 && 'active'}}">已检查</view> <view class="status {{isHepatitisB==1 && 'active'}}">{{isHepatitisB==1?'已检查':'未检查'}}</view>
</view> </view>
</view> </view>
<view class="c-body {{fold5 && 'fold'}}"> <view class="c-body {{fold5 && 'fold'}}">
@ -291,7 +291,7 @@
<view class="title">丙型肝炎相关检查</view> <view class="title">丙型肝炎相关检查</view>
<image class="icon {{fold6 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold6 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isHepatitisC==1 && 'active'}}">已检查</view> <view class="status {{isHepatitisC==1 && 'active'}}">{{isHepatitisC==1?'已检查':'未检查'}}</view>
</view> </view>
</view> </view>
<view class="c-body {{fold6 && 'fold'}}"> <view class="c-body {{fold6 && 'fold'}}">
@ -334,7 +334,7 @@
<view class="title">HIV抗体</view> <view class="title">HIV抗体</view>
<image class="icon {{fold7 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold7 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isHivAntibody==1 && 'active'}}">已检查</view> <view class="status {{isHivAntibody==1 && 'active'}}">{{isHivAntibody==1?'已检查':'未检查'}}</view>
</view> </view>
<view class="content">类免疫缺陷病毒抗体(HIV - Ab)</view> <view class="content">类免疫缺陷病毒抗体(HIV - Ab)</view>
</view> </view>
@ -372,7 +372,7 @@
<view class="title">甲胎蛋白(AFP)检测</view> <view class="title">甲胎蛋白(AFP)检测</view>
<image class="icon {{fold8 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold8 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isAfp==1 && 'active'}}">已检查</view> <view class="status {{isAfp==1 && 'active'}}">{{isAfp==1?'已检查':'未检查'}}</view>
</view> </view>
</view> </view>
<view class="c-body {{fold8 && 'fold'}}"> <view class="c-body {{fold8 && 'fold'}}">
@ -421,7 +421,7 @@
<view class="title">AAV 抗体检查</view> <view class="title">AAV 抗体检查</view>
<image class="icon {{fold9 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold9 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isAav==1 && 'active'}}">已检查</view> <view class="status {{isAav==1 && 'active'}}">{{isAav==1?'已检查':'未检查'}}</view>
</view> </view>
<view class="content">提交您的AAV抗体检查报告</view> <view class="content">提交您的AAV抗体检查报告</view>
</view> </view>
@ -459,7 +459,7 @@
<view class="title">其他检查</view> <view class="title">其他检查</view>
<image class="icon {{fold10 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image class="icon {{fold10 && 'turn'}}" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
</view> </view>
<view class="status {{isOther==1 && 'active'}}">已检查</view> <view class="status {{isOther==1 && 'active'}}">{{isOther==1?'已检查':'未检查'}}</view>
</view> </view>
<view class="content">您的其他项检查</view> <view class="content">您的其他项检查</view>
</view> </view>

17
src/patient/pages/coltStat/index.ts

@ -102,13 +102,13 @@ Page({
res.altList = res.altList || [] res.altList = res.altList || []
res.cfRecordList = res.cfRecordList || [] res.cfRecordList = res.cfRecordList || []
res.astList.forEach((item: any) => { res.astList.forEach((item: any) => {
astList[item.beginDate] = item.ast astList[item.beginDate || item.endDate] = item.ast
}) })
res.altList.forEach((item: any) => { res.altList.forEach((item: any) => {
altList[item.beginDate] = item.alt altList[item.beginDate || item.endDate] = item.alt
}) })
res.cfRecordList.forEach((item: any) => { res.cfRecordList.forEach((item: any) => {
cfRecordList[item.beginDate] = item.clottingFactor cfRecordList[item.beginDate || item.endDate] = item.clottingFactor
}) })
const initParams = { const initParams = {
astList, astList,
@ -310,7 +310,6 @@ Page({
altArr.push(altList[item] ? Number(altList[item]) : 0) altArr.push(altList[item] ? Number(altList[item]) : 0)
cfRecordArr.push(cfRecordList[item] ? Number(cfRecordList[item]) : 0) cfRecordArr.push(cfRecordList[item] ? Number(cfRecordList[item]) : 0)
}) })
console.log(altArr)
this.ecDataTrendComponent.init((canvas, width, height, dpr) => { this.ecDataTrendComponent.init((canvas, width, height, dpr) => {
let chart = echarts.init(canvas, null, { let chart = echarts.init(canvas, null, {
width: width, width: width,
@ -351,8 +350,8 @@ Page({
}, },
grid: { grid: {
top: '30', top: '30',
left: '10', left: '0',
right: '10', right: '0',
bottom: '45', bottom: '45',
containLabel: true, containLabel: true,
}, },
@ -384,6 +383,9 @@ Page({
{ {
type: 'value', type: 'value',
name: '单位:%', name: '单位:%',
nameTextStyle: {
align: 'left',
},
axisLabel: { axisLabel: {
color: 'rgba(161, 164, 172, 1)', color: 'rgba(161, 164, 172, 1)',
}, },
@ -406,6 +408,9 @@ Page({
{ {
type: 'value', type: 'value',
name: '单位:U/L', name: '单位:U/L',
nameTextStyle: {
align: 'right',
},
position: 'right', position: 'right',
axisLabel: { axisLabel: {
color: 'rgba(161, 164, 172, 1)', color: 'rgba(161, 164, 172, 1)',

102
src/patient/pages/file/index.ts

@ -1,4 +1,5 @@
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ColorGradient } from 'XrFrame/components/particle/gradient'
const licia = require('miniprogram-licia') const licia = require('miniprogram-licia')
const app = getApp<IAppOption>() const app = getApp<IAppOption>()
@ -54,7 +55,7 @@ Page({
onShow() { onShow() {
app.waitLogin({ type: 1 }).then(() => { app.waitLogin({ type: 1 }).then(() => {
app.mpBehavior({ PageName: 'PG_PROFILE_VISIT' }) app.mpBehavior({ PageName: 'PG_PROFILE_VISIT' })
this.getInfo() this.handleSwiperChange()
app.getUserInfo(1).then((userInfo) => { app.getUserInfo(1).then((userInfo) => {
this.setData({ this.setData({
userInfo: { userInfo: {
@ -73,75 +74,84 @@ Page({
this.setData({ this.setData({
nav, nav,
}) })
this.getInfo()
}, },
handleSwiperChange(e) { async handleSwiperChange(e?: any) {
let current = this.data.nav
if (e) {
current = e.detail.current
}
const name = { const name = {
0: 'BTN_TREATMENTARCHIVE_TAB_CLICK', 0: 'BTN_TREATMENTARCHIVE_TAB_CLICK',
1: 'BTN_MEDICALHISTORY_TAB_CLICK', 1: 'BTN_MEDICALHISTORY_TAB_CLICK',
2: 'BTN_FOLLOWUPCALENDAR_TAB_CLICK', 2: 'BTN_FOLLOWUPCALENDAR_TAB_CLICK',
}[e.detail.current] }[current]
if (name) { if (name) {
app.mpBehavior({ PageName: name }) app.mpBehavior({ PageName: name })
} }
this.setData({
nav: current,
})
await this.getInfo()
const query = wx.createSelectorQuery() const query = wx.createSelectorQuery()
query.select(`#container${e.detail.current}`).boundingClientRect() query.select(`#container${current}`).boundingClientRect()
query.exec((res) => { query.exec((res) => {
this.setData({ this.setData({
swiperHeight: res[0].height + 42, swiperHeight: res[0].height + 42,
nav: e.detail.current,
}) })
}) })
}, },
getInfo() { async getInfo() {
const { nav } = this.data const { nav } = this.data
if (nav == 0) { if (nav == 0) {
wx.ajax({ return wx
method: 'GET', .ajax({
url: '?r=wtx/treatment/get-archives', method: 'GET',
data: {}, url: '?r=wtx/treatment/get-archives',
}).then((res) => { data: {},
this.setData({ })
...res, .then((res) => {
empty0: this.setData({
!res.periodOne.length && ...res,
!res.periodTwo.length && empty0:
!res.periodFour.length && !res.periodOne.length &&
!res.periodThree.injectionDate && !res.periodTwo.length &&
!res.periodThree.injectionWeight && !res.periodFour.length &&
!res.periodThree.injectionDrugs && !res.periodThree.injectionDate &&
!res.periodThree.injectionNum, !res.periodThree.injectionWeight &&
!res.periodThree.injectionDrugs &&
!res.periodThree.injectionNum,
})
}) })
this.handleSwiperChange({ detail: { current: 0 } })
})
} }
if (nav == 1) { if (nav == 1) {
wx.ajax({ return wx
method: 'GET', .ajax({
url: '?r=wtx/treatment/get-medical-history-info', method: 'GET',
data: {}, url: '?r=wtx/treatment/get-medical-history-info',
}).then((res) => { data: {},
this.setData({ })
medical: res, .then((res) => {
this.setData({
medical: res,
})
}) })
this.handleSwiperChange({ detail: { current: 1 } })
})
} }
if (nav == 2) { if (nav == 2) {
wx.ajax({ return wx
method: 'GET', .ajax({
url: '?r=wtx/treatment/get-follow-up-exam', method: 'GET',
data: {}, url: '?r=wtx/treatment/get-follow-up-exam',
}).then((res) => { data: {},
this.setData({ })
followExam: { .then((res) => {
injectionDateName: dayjs(res.injectionDate).format('YYYY年MM月DD日 ddd'), this.setData({
...res, followExam: {
}, injectionDateName: res.injectionDate ? dayjs(res.injectionDate).format('YYYY年MM月DD日 ddd') : '',
...res,
},
})
this.getFollowList()
}) })
this.getFollowList()
this.handleSwiperChange({ detail: { current: 2 } })
})
} }
}, },
getFollowList(dateMonth = '') { getFollowList(dateMonth = '') {

8
src/patient/pages/followPlan/index.ts

@ -13,6 +13,8 @@ Page({
this.setData({ this.setData({
period: options.period || '', period: options.period || '',
}) })
},
onShow() {
app.waitLogin({ type: 1 }).then(() => { app.waitLogin({ type: 1 }).then(() => {
app.mpBehavior({ PageName: 'PG_MYFOLLOWUPPLAN_VISIT' }) app.mpBehavior({ PageName: 'PG_MYFOLLOWUPPLAN_VISIT' })
this.getDetail() this.getDetail()
@ -41,6 +43,11 @@ Page({
}) })
}) })
}, },
handleInject() {
wx.navigateTo({
url: '/patient/pages/injectDate/index',
})
},
handleClander() { handleClander() {
app.mpBehavior({ PageName: 'BTN_MYFOLLOWUPCALENDAR_CLICK' }) app.mpBehavior({ PageName: 'BTN_MYFOLLOWUPCALENDAR_CLICK' })
wx.navigateTo({ wx.navigateTo({
@ -50,7 +57,6 @@ Page({
handleLastDiagnosisReport() { handleLastDiagnosisReport() {
app.mpBehavior({ PageName: 'BTN_ADDRECHECKRECORD_CLICK' }) app.mpBehavior({ PageName: 'BTN_ADDRECHECKRECORD_CLICK' })
wx.navigateTo({ wx.navigateTo({
// url: '/patient/pages/lastDiagnosisReport/index',
url: `/patient/pages/lastDiagnosisReport/index?period=${this.data.period}`, url: `/patient/pages/lastDiagnosisReport/index?period=${this.data.period}`,
}) })
}, },

4
src/patient/pages/followPlan/index.wxml

@ -1,10 +1,10 @@
<view class="page"> <view class="page">
<view class="date-card"> <view class="date-card" bind:tap="handleInject">
<image class="icon" src="{{imageUrl}}icon67.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon67.png?t={{Timestamp}}"></image>
<view class="content">注射日:{{injectionDate || '未录入'}}</view> <view class="content">注射日:{{injectionDate || '未录入'}}</view>
</view> </view>
<view class="body"> <view class="body">
<view class="title">基因治疗后时间监测频率</view> <view class="title">基因治疗后监测频率</view>
<view class="container"> <view class="container">
<view class="table"> <view class="table">
<view class="thead"> <view class="thead">

6
src/patient/pages/lastDiagnosisReport/index.ts

@ -1,3 +1,5 @@
import dayjs from 'dayjs'
const app = getApp<IAppOption>() const app = getApp<IAppOption>()
Page({ Page({
@ -19,6 +21,8 @@ Page({
examId: '', examId: '',
period: '1', period: '1',
allEndDate: dayjs().format('YYYY-MM-DD'),
beginDate: '', beginDate: '',
endDate: '', endDate: '',
hospitalId: '', hospitalId: '',
@ -60,8 +64,6 @@ Page({
period: options.period || '1', period: options.period || '1',
edit: options.edit === '1', edit: options.edit === '1',
}) })
},
onShow() {
app.waitLogin({ type: 1 }).then(() => { app.waitLogin({ type: 1 }).then(() => {
app.mpBehavior({ PageName: 'PG_LATESTRECHECKRECORD_VISIT' }) app.mpBehavior({ PageName: 'PG_LATESTRECHECKRECORD_VISIT' })
this.getDict() this.getDict()

3
src/patient/pages/lastDiagnosisReport/index.wxml

@ -7,7 +7,7 @@
<view class="range"> <view class="range">
<picker <picker
class="picker" class="picker"
end="{{endDate}}" end="{{endDate || allEndDate}}"
model:value="{{beginDate}}" model:value="{{beginDate}}"
mode="date" mode="date"
bind:change="updateSave" bind:change="updateSave"
@ -22,6 +22,7 @@
<picker <picker
class="picker" class="picker"
start="{{beginDate}}" start="{{beginDate}}"
end="{{allEndDate}}"
model:value="{{endDate}}" model:value="{{endDate}}"
mode="date" mode="date"
bind:change="updateSave" bind:change="updateSave"

11
src/patient/pages/preDiagnosisReport/index.ts

@ -1,3 +1,5 @@
import dayjs from 'dayjs'
const app = getApp<IAppOption>() const app = getApp<IAppOption>()
Page({ Page({
@ -23,6 +25,8 @@ Page({
examId: '', examId: '',
period: '1', period: '1',
allEndDate: dayjs().format('YYYY-MM-DD'),
beginDate: '', beginDate: '',
endDate: '', endDate: '',
isBloodRoutine: 2, isBloodRoutine: 2,
@ -274,6 +278,13 @@ Page({
const { back } = (e as any).currentTarget.dataset const { back } = (e as any).currentTarget.dataset
isBack = back == 1 isBack = back == 1
} }
if (isBack && !this.data.beginDate && !this.data.endDate) {
wx.showToast({
title: '请选择开始和结束日期',
icon: 'none',
})
return
}
const { formKeys, period, examId, ...reset } = this.data const { formKeys, period, examId, ...reset } = this.data
const form = formKeys.reduce((pre, cur) => { const form = formKeys.reduce((pre, cur) => {
pre[cur] = reset[cur] pre[cur] = reset[cur]

3
src/patient/pages/preDiagnosisReport/index.wxml

@ -7,7 +7,7 @@
<view class="range"> <view class="range">
<picker <picker
class="picker" class="picker"
end="{{endDate}}" end="{{endDate || allEndDate}}"
model:value="{{beginDate}}" model:value="{{beginDate}}"
mode="date" mode="date"
bind:change="updateSave" bind:change="updateSave"
@ -22,6 +22,7 @@
<picker <picker
class="picker" class="picker"
start="{{beginDate}}" start="{{beginDate}}"
end="{{allEndDate}}"
model:value="{{endDate}}" model:value="{{endDate}}"
mode="date" mode="date"
bind:change="updateSave" bind:change="updateSave"

Loading…
Cancel
Save