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. 43
      src/doctor/pages/file/index.ts
  4. 5
      src/doctor/pages/followPlan/index.ts
  5. 2
      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. 44
      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 @@ @@ -41,7 +41,7 @@
padding: 18rpx 30rpx;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.11);
border-radius: 12rpx 12rpx 12rpx 12rpx;
border: 2rpx solid #e04775;
border: 2rpx solid #f23a2f;
display: flex;
align-items: center;
justify-content: space-between;
@ -69,7 +69,7 @@ @@ -69,7 +69,7 @@
display: flex;
align-items: center;
justify-content: center;
background: #e04775;
background: #f23a2f;
border-radius: 12rpx 12rpx 12rpx 12rpx;
}
}
@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
background: #f7f8f9;
&.active {
color: #fff;
background-color: rgba(224, 71, 117, 1);
background-color: #f23a2f;
}
}
}
@ -118,9 +118,9 @@ @@ -118,9 +118,9 @@
height: 36rpx;
}
&.active {
color: rgba(224, 71, 117, 1);
color: #f23a2f;
.word {
color: rgba(224, 71, 117, 1);
color: #f23a2f;
}
}
}

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

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

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

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

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

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

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<view class="page">
<view class="date-card" bind:tap="handleInject">
<view class="date-card">
<image class="icon" src="{{imageUrl}}icon107.png?t={{Timestamp}}"></image>
<view class="content">注射日:{{injectionDate || '未录入'}}</view>
</view>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
import dayjs from 'dayjs'
const app = getApp<IAppOption>()
Page({
@ -23,6 +25,8 @@ Page({ @@ -23,6 +25,8 @@ Page({
examId: '',
period: '1',
allEndDate: dayjs().format('YYYY-MM-DD'),
beginDate: '',
endDate: '',
isBloodRoutine: 2,
@ -274,6 +278,13 @@ Page({ @@ -274,6 +278,13 @@ Page({
const { back } = (e as any).currentTarget.dataset
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 form = formKeys.reduce((pre, cur) => {
pre[cur] = reset[cur]

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

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

Loading…
Cancel
Save