|
@@ -5,7 +5,11 @@
|
|
|
<div class="title">FVIII药代动力学检测</div>
|
|
|
<div class="diagForm">
|
|
|
<mt-field label="病例体重(kg)" placeholder="整数或1位小数" type="number" v-model="form.bltz"></mt-field>
|
|
|
- <mt-field label="注射剂量" placeholder="请输入整数" v-model="form.zsjl" type="number"></mt-field>
|
|
|
+ <mt-field placeholder="请选择产品" class="inputDisable" disabled label="产品选择" v-model="form.mpro"
|
|
|
+ @click.native="mproFlag=true;mfreqFlag=false">
|
|
|
+ <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
+ </mt-field>
|
|
|
+ <mt-field label="注射剂量(IU)" placeholder="请输入整数" v-model="form.zsjl" type="number"></mt-field>
|
|
|
<div class="numSubTitle">
|
|
|
<mt-field class="inputDisable" disabled placeholder="请选择时间" v-model="form.zssjt0"
|
|
|
@click.native="$refs.t0Picker.open()">
|
|
@@ -14,7 +18,7 @@
|
|
|
<span>注射时间t<sub>0</sub></span>
|
|
|
</div>
|
|
|
<mt-field label="基础活性%" placeholder="请输入2位小数" v-model="form.jchx"></mt-field>
|
|
|
- <mt-field label="注射后半小时内活性%" placeholder="请输入2位小数" type="number" v-model="form.zs30hx"></mt-field>
|
|
|
+ <!-- <mt-field label="注射后半小时内活性%" placeholder="请输入2位小数" type="number" v-model="form.zs30hx"></mt-field> -->
|
|
|
<div class="numSubTitle">
|
|
|
<mt-field class="inputDisable" disabled placeholder="请选择时间" v-model="form.cxsjt1"
|
|
|
@click.native="$refs.t1Picker.open()">
|
|
@@ -49,61 +53,93 @@
|
|
|
<span>t<sub>3</sub>点活性%</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="diagForm">
|
|
|
+ <!-- <div class="diagForm">
|
|
|
<div class="formTitle">血友病治疗方案</div>
|
|
|
<mt-field label="预防谷活性" type="number" placeholder="请输入整数" v-model="form.yfghx"></mt-field>
|
|
|
<mt-field class="inputDisable" disabled label="注射频次" placeholder="请选择" v-model="form.zspc"
|
|
|
@click.native="mfreqFlag=true">
|
|
|
<img src="../assets/images/down.png" alt="" width="16px">
|
|
|
</mt-field>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="footer">
|
|
|
- <div class="jbbtn" @click="submit">提交</div>
|
|
|
+ <div class="jbbtn" @click="submit">确定</div>
|
|
|
+ <div class="jbbtn" @click="$router.go(-1)">返回</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 注射时间t0 -->
|
|
|
<mt-datetime-picker ref="t0Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime0'
|
|
|
- :endDate='endDate'
|
|
|
- :startDate='startDate'
|
|
|
- v-model="now"
|
|
|
- @touchmove.native.stop.prevent
|
|
|
- >
|
|
|
+ date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime0' :endDate='endDate'
|
|
|
+ :startDate='startDate' v-model="now" @touchmove.native.stop.prevent>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 采血时间t1 -->
|
|
|
<mt-datetime-picker ref="t1Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime1'
|
|
|
- :endDate='endDate'
|
|
|
- :startDate='startDate'
|
|
|
- v-model="now"
|
|
|
- @touchmove.native.stop.prevent
|
|
|
- >
|
|
|
+ date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime1' :endDate='endDate'
|
|
|
+ :startDate='startDate' v-model="now" @touchmove.native.stop.prevent>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 采血时间t2 -->
|
|
|
<mt-datetime-picker ref="t2Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime2'
|
|
|
- :endDate='endDate'
|
|
|
- :startDate='startDate'
|
|
|
- v-model="now"
|
|
|
- @touchmove.native.stop.prevent
|
|
|
- >
|
|
|
+ date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime2' :endDate='endDate'
|
|
|
+ :startDate='startDate' v-model="now" @touchmove.native.stop.prevent>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 采血时间t3 -->
|
|
|
<mt-datetime-picker ref="t3Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime3'
|
|
|
- :endDate='endDate'
|
|
|
- :startDate='startDate'
|
|
|
- v-model="now"
|
|
|
- @touchmove.native.stop.prevent
|
|
|
- >
|
|
|
+ date-format="{value} 日" hourFormat="{value}时" minuteFormat="{value}分" @confirm='changeTime3' :endDate='endDate'
|
|
|
+ :startDate='startDate' v-model="now" @touchmove.native.stop.prevent>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 注射频次 -->
|
|
|
<mt-picker @change="onValuesChange1" v-if="mfreqFlag" :slots="slots1" ref="sexPicker1" class="sexPicker"
|
|
|
- :showToolbar="true"
|
|
|
- @touchmove.native.stop.prevent
|
|
|
- >
|
|
|
- <div class="pickerConfirm" @click="mfreqFlag=false">确认</div>
|
|
|
+ :showToolbar="true" @touchmove.native.stop.prevent>
|
|
|
+ <div class="pickerConfirm" @click="mfreqFlag=false">确认</div>
|
|
|
+ </mt-picker>
|
|
|
+ <!-- 注射产品 -->
|
|
|
+ <mt-picker @change="onValuesChange" v-if="mproFlag" :slots="slots" ref="sexPicker" class="sexPicker"
|
|
|
+ :showToolbar="true">
|
|
|
+ <div class="pickerConfirm" @click="mproFlag=false">确认</div>
|
|
|
</mt-picker>
|
|
|
+ <!-- 试算弹出框 -->
|
|
|
+ <mt-popup v-model="popupVisible">
|
|
|
+ <div class="popupContainer">
|
|
|
+ <!-- 药代动力学参数 -->
|
|
|
+ <div class="diagShowForm">
|
|
|
+ <div class="formTitle">FVIII 药代动力学参数</div>
|
|
|
+ <div style="display:flex;">
|
|
|
+ <div class="rowfont" style="width:50%;">半衰期(小时)</div>
|
|
|
+ <div class="rowfont" style="width:50%;color:#888;">{{form.bsq}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display:flex;">
|
|
|
+ <div class="rowfont" style="width:50%;">利用率%</div>
|
|
|
+ <div class="rowfont" style="width:50%;color:#888;">{{form.lyl*100}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display:flex;">
|
|
|
+ <div class="rowfont" style="width:50%;">预期峰值活性%</div>
|
|
|
+ <div class="rowfont" style="width:50%;color:#888;">{{form.yqfzhx}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 血友病预防治疗剂量计算 -->
|
|
|
+ <div class="diagShowForm">
|
|
|
+ <div class="formTitle">血友病预防治疗剂量计算</div>
|
|
|
+ <div class="popupDiagForm">
|
|
|
+ <mt-field label="预防谷活性" type="number" placeholder="请输入整数" v-model="form.yfghx"></mt-field>
|
|
|
+ <mt-field class="inputDisable" disabled label="注射频次" placeholder="请选择" v-model="form.zspc"
|
|
|
+ @click.native="mfreqFlag=true">
|
|
|
+ <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
+ </mt-field>
|
|
|
+ <mt-field label="每次注射剂量" type="number" placeholder="请输入整数" v-model="form.yfghx"></mt-field>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="popupFooter">
|
|
|
+ <div class="jbbtn" @click="goback">返回</div>
|
|
|
+ <div class="jbbtn" @click="goSelect">确定</div>
|
|
|
+ <div class="jbbtn" @click="submit">计算</div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <!-- 注射频次 -->
|
|
|
+ <mt-picker @change="onValuesChange1" v-if="mfreqFlag" :slots="slots1" ref="sexPicker1" class="sexPicker"
|
|
|
+ :showToolbar="true" @touchmove.native.stop.prevent>
|
|
|
+ <div class="pickerConfirm" @click="mfreqFlag=false">确认</div>
|
|
|
+ </mt-picker>
|
|
|
+ </mt-popup>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -111,7 +147,8 @@
|
|
|
import {
|
|
|
Field,
|
|
|
MessageBox,
|
|
|
- Toast
|
|
|
+ Toast,
|
|
|
+ Popup
|
|
|
} from 'mint-ui'
|
|
|
|
|
|
export default {
|
|
@@ -119,14 +156,15 @@
|
|
|
components: {
|
|
|
Field,
|
|
|
MessageBox,
|
|
|
- Toast
|
|
|
+ Toast,
|
|
|
+ Popup
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
msg: 'Welcome to Your Vue.js App',
|
|
|
mfreqFlag: false,
|
|
|
form: {
|
|
|
- jchx: 1,
|
|
|
+ jchx: '',
|
|
|
zssjt0: '',
|
|
|
cxsjt1: '',
|
|
|
cxsjt2: '',
|
|
@@ -138,26 +176,50 @@
|
|
|
className: 'slot1',
|
|
|
textAlign: 'center'
|
|
|
}],
|
|
|
- startDate:new Date(this.$datetime.formatDateTime(new Date("2013-01-01 00:00:00"))),
|
|
|
+ startDate: new Date(this.$datetime.formatDateTime(new Date("2013-01-01 00:00:00"))),
|
|
|
endDate: new Date(this.$datetime.formatDateTime(new Date("2024-01-01 00:00:00"))),
|
|
|
- now:new Date(),
|
|
|
+ now: new Date(),
|
|
|
+ mproFlag: false,
|
|
|
+ slots: [{
|
|
|
+ flex: 1,
|
|
|
+ values: this.$const.mprolist,
|
|
|
+ className: 'slot1',
|
|
|
+ textAlign: 'center'
|
|
|
+ }],
|
|
|
+ popupVisible: this.$route.query.edit?true:false,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ goback(){
|
|
|
+ if(this.$route.query && this.$route.query.edit && this.$route.query.back){
|
|
|
+ this.$router.push({
|
|
|
+ path:this.$route.query.back
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.popupVisible = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
goPage() {
|
|
|
this.$router.push('/diagcalcshow')
|
|
|
},
|
|
|
changeTime0(value) {
|
|
|
- this.form.zssjt0 = this.$datetime.formatDateTime(value).replaceAll("/","-")
|
|
|
+ this.form.zssjt0 = this.$datetime.formatDateTime(value).replaceAll("/", "-")
|
|
|
},
|
|
|
changeTime1(value) {
|
|
|
- this.form.cxsjt1 = this.$datetime.formatDateTime(value).replaceAll("/","-")
|
|
|
+ this.form.cxsjt1 = this.$datetime.formatDateTime(value).replaceAll("/", "-")
|
|
|
},
|
|
|
changeTime2(value) {
|
|
|
- this.form.cxsjt2 = this.$datetime.formatDateTime(value).replaceAll("/","-")
|
|
|
+ this.form.cxsjt2 = this.$datetime.formatDateTime(value).replaceAll("/", "-")
|
|
|
},
|
|
|
changeTime3(value) {
|
|
|
- this.form.cxsjt3 = this.$datetime.formatDateTime(value).replaceAll("/","-")
|
|
|
+ this.form.cxsjt3 = this.$datetime.formatDateTime(value).replaceAll("/", "-")
|
|
|
+ },
|
|
|
+ onValuesChange(picker, values) {
|
|
|
+ if (picker.getSlotValue(0)) {
|
|
|
+ this.form.mpro = picker.getSlotValue(0)
|
|
|
+ } else {
|
|
|
+ this.form.mpro = "人血FVIII"
|
|
|
+ }
|
|
|
},
|
|
|
onValuesChange1(picker, values) {
|
|
|
if (picker.getSlotValue(0)) {
|
|
@@ -166,6 +228,14 @@
|
|
|
this.form.zspc = this.$const.zspc[0]
|
|
|
}
|
|
|
},
|
|
|
+ goSelect(){
|
|
|
+ this.$router.push({
|
|
|
+ path: 'pretraitcase',
|
|
|
+ query: {
|
|
|
+ id: 74
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
submit() {
|
|
|
if (!this.form.bltz) {
|
|
|
MessageBox({
|
|
@@ -211,21 +281,21 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.form.zs30hx) {
|
|
|
- MessageBox({
|
|
|
- title: '提示',
|
|
|
- message: '请输入注射后半小时内活性'
|
|
|
- })
|
|
|
- return
|
|
|
- } else {
|
|
|
- if (!this.$recheck.checkIntFloat12(this.form.zs30hx)) {
|
|
|
- MessageBox({
|
|
|
- title: '提示',
|
|
|
- message: '注射后半小时内活性请输入整数或2位小数'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (!this.form.zs30hx) {
|
|
|
+ // MessageBox({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '请输入注射后半小时内活性'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // } else {
|
|
|
+ // if (!this.$recheck.checkIntFloat12(this.form.zs30hx)) {
|
|
|
+ // MessageBox({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '注射后半小时内活性请输入整数或2位小数'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // }
|
|
|
if (!this.form.cxsjt1) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
@@ -292,28 +362,30 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if (!this.form.yfghx) {
|
|
|
- MessageBox({
|
|
|
- title: '提示',
|
|
|
- message: '请输入预防谷活性'
|
|
|
- })
|
|
|
- return
|
|
|
- } else {
|
|
|
- if (!this.$recheck.checkInt(this.form.yfghx)) {
|
|
|
- MessageBox({
|
|
|
- title: '提示',
|
|
|
- message: '预防谷活性请输入整数'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if (!this.form.zspc) {
|
|
|
- MessageBox({
|
|
|
- title: '提示',
|
|
|
- message: '请选择注射频次'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.form.yfghx) {
|
|
|
+ // MessageBox({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '请输入预防谷活性'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // } else {
|
|
|
+ // if (!this.$recheck.checkInt(this.form.yfghx)) {
|
|
|
+ // MessageBox({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '预防谷活性请输入整数'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (!this.form.zspc) {
|
|
|
+ // MessageBox({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '请选择注射频次'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ this.popupVisible = true;
|
|
|
+
|
|
|
MessageBox.confirm('请您再次确认录入信息是否有误?').then(action => {
|
|
|
let params = this.form
|
|
|
let patientCase = localStorage.getItem("patientCase")
|
|
@@ -332,7 +404,7 @@
|
|
|
let id = res.data.data.id
|
|
|
localStorage.removeItem("patientCase")
|
|
|
this.$router.push({
|
|
|
- path: 'diagcalcshow',
|
|
|
+ path: 'solutionpkline',
|
|
|
query: {
|
|
|
id: id
|
|
|
}
|
|
@@ -402,8 +474,64 @@
|
|
|
margin-left: 105px;
|
|
|
}
|
|
|
|
|
|
- /deep/ .picker-items{
|
|
|
- width:100%!important;
|
|
|
+ /deep/ .picker-items {
|
|
|
+ width: 100% !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 试算样式 */
|
|
|
+ /deep/ .mint-popup {
|
|
|
+ width: 90%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .diagShowForm {
|
|
|
+ width: 84%;
|
|
|
+ margin: auto;
|
|
|
+ margin-top: 1rem;
|
|
|
+ background: #fff;
|
|
|
+ padding: 1rem;
|
|
|
+ border-radius: 5px;
|
|
|
+
|
|
|
+ .formTitle {
|
|
|
+ height: 1rem;
|
|
|
+ line-height: 1rem;
|
|
|
+ text-align: left;
|
|
|
+ color: #2882F4;
|
|
|
+ padding-bottom: 0.5rem;
|
|
|
+ border-bottom: 1px solid #2882F4;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mint-cell {
|
|
|
+ min-height: 2.5rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/ .mint-cell .mint-cell-title {
|
|
|
+ width: 60%;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/ .mint-cell .mint-cell-value {
|
|
|
+ width: 40%;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .popupContainer {
|
|
|
+ background: #EFEFEF;
|
|
|
+ padding: 2px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .popupFooter {
|
|
|
+ display: flex;
|
|
|
+ /* padding: 2rem; */
|
|
|
+ background: #EFEFEF;
|
|
|
+
|
|
|
+
|
|
|
+ .jbbtn {
|
|
|
+ width: 26%;
|
|
|
+ margin-top: 1rem;
|
|
|
+ margin-bottom: 1rem;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
</style>
|