|
|
@@ -4,34 +4,56 @@
|
|
|
<div class="content">
|
|
|
<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 class="inputDisable" disabled label="注射时间t0" placeholder="请选择注射时间" v-model="form.zssjt0"
|
|
|
- @click.native="$refs.t0Picker.open()">
|
|
|
- <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
- </mt-field>
|
|
|
- <mt-field label="基础活性%" placeholder="请输入基础活性(2位小数)" v-model="form.jchx"></mt-field>
|
|
|
- <mt-field label="注射后半小时内活性%" placeholder="请输入半小时内活性%" v-model="form.zs30hx"></mt-field>
|
|
|
- <mt-field class="inputDisable" disabled label="采血时间t1" placeholder="请输入采血时间t1" v-model="form.cxsjt1"
|
|
|
- @click.native="$refs.t1Picker.open()">
|
|
|
- <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
- </mt-field>
|
|
|
- <mt-field label="t1点活性%" placeholder="请输入t1点活性%(2位小数)" v-model="form.t1hx"></mt-field>
|
|
|
- <mt-field class="inputDisable" disabled label="采血时间t2" placeholder="请输入采血时间t2" v-model="form.cxsjt2"
|
|
|
- @click.native="$refs.t2Picker.open()">
|
|
|
- <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
- </mt-field>
|
|
|
- <mt-field label="t2点活性%" placeholder="请输入t2点活性%(2位小数)" v-model="form.t2hx"></mt-field>
|
|
|
- <mt-field class="inputDisable" disabled label="采血时间t3" placeholder="请输入采血时间t3" v-model="form.cxsjt3"
|
|
|
- @click.native="$refs.t3Picker.open()">
|
|
|
- <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
- </mt-field>
|
|
|
- <mt-field label="t3点活性%" placeholder="请输入t3点活性%(2位小数)" v-model="form.t3hx"></mt-field>
|
|
|
+ <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>
|
|
|
+ <div class="numSubTitle">
|
|
|
+ <mt-field class="inputDisable" disabled placeholder="请选择时间" v-model="form.zssjt0"
|
|
|
+ @click.native="$refs.t0Picker.open()">
|
|
|
+ <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
+ </mt-field>
|
|
|
+ <span>注射时间t<sub>0</sub></span>
|
|
|
+ </div>
|
|
|
+ <mt-field label="基础活性%" placeholder="请输入2位小数" v-model="form.jchx"></mt-field>
|
|
|
+ <mt-field label="注射后半小时内活性%" placeholder="请输入2位小数" v-model="form.zs30hx"></mt-field>
|
|
|
+ <div class="numSubTitle">
|
|
|
+ <mt-field class="inputDisable" disabled placeholder="请选择时间" v-model="form.cxsjt1"
|
|
|
+ @click.native="$refs.t1Picker.open()">
|
|
|
+ <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
+ </mt-field>
|
|
|
+ <span>采血时间t<sub>1</sub></span>
|
|
|
+ </div>
|
|
|
+ <div class="numSubTitle">
|
|
|
+ <mt-field placeholder="请输入2位小数" v-model="form.t1hx"></mt-field>
|
|
|
+ <span>t<sub>1</sub>点活性%</span>
|
|
|
+ </div>
|
|
|
+ <div class="numSubTitle">
|
|
|
+ <mt-field class="inputDisable" disabled placeholder="请选择时间" v-model="form.cxsjt2"
|
|
|
+ @click.native="$refs.t2Picker.open()">
|
|
|
+ <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
+ </mt-field>
|
|
|
+ <span>采血时间t<sub>2</sub></span>
|
|
|
+ </div>
|
|
|
+ <div class="numSubTitle">
|
|
|
+ <mt-field placeholder="请输入2位小数" v-model="form.t2hx"></mt-field>
|
|
|
+ <span>t<sub>2</sub>点活性%</span>
|
|
|
+ </div>
|
|
|
+ <div class="numSubTitle">
|
|
|
+ <mt-field class="inputDisable" disabled placeholder="请选择时间" v-model="form.cxsjt3"
|
|
|
+ @click.native="$refs.t3Picker.open()">
|
|
|
+ <img src="../assets/images/down.png" alt="" width="16px">
|
|
|
+ </mt-field>
|
|
|
+ <span>采血时间t<sub>3</sub></span>
|
|
|
+ </div>
|
|
|
+ <div class="numSubTitle">
|
|
|
+ <mt-field placeholder="请输入2位小数" v-model="form.t3hx"></mt-field>
|
|
|
+ <span>t<sub>3</sub>点活性%</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="diagForm">
|
|
|
<div class="formTitle">血友病治疗方案</div>
|
|
|
- <mt-field label="预防谷活性" type="number" placeholder="请输入预防谷活性(2位小数)" v-model="form.yfghx"></mt-field>
|
|
|
- <mt-field class="inputDisable" disabled label="注射频次" placeholder="请选择注射频次" v-model="form.zspc" @click.native="mfreqFlag=true">
|
|
|
+ <mt-field label="预防谷活性" type="number" placeholder="请输入2位小数" 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>
|
|
|
@@ -41,27 +63,19 @@
|
|
|
</div>
|
|
|
<!-- 注射时间t0 -->
|
|
|
<mt-datetime-picker ref="t0Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" @confirm='changeTime0'
|
|
|
- :endDate = 'endDate'
|
|
|
- >
|
|
|
+ date-format="{value} 日" @confirm='changeTime0' :endDate='endDate'>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 采血时间t1 -->
|
|
|
<mt-datetime-picker ref="t1Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" @confirm='changeTime1'
|
|
|
- :endDate = 'endDate'
|
|
|
- >
|
|
|
+ date-format="{value} 日" @confirm='changeTime1' :endDate='endDate'>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 采血时间t2 -->
|
|
|
<mt-datetime-picker ref="t2Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" @confirm='changeTime2'
|
|
|
- :endDate = 'endDate'
|
|
|
- >
|
|
|
+ date-format="{value} 日" @confirm='changeTime2' :endDate='endDate'>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 采血时间t3 -->
|
|
|
<mt-datetime-picker ref="t3Picker" type="datetime" year-format="{value} 年" month-format="{value} 月"
|
|
|
- date-format="{value} 日" @confirm='changeTime3'
|
|
|
- :endDate = 'endDate'
|
|
|
- >
|
|
|
+ date-format="{value} 日" @confirm='changeTime3' :endDate='endDate'>
|
|
|
</mt-datetime-picker>
|
|
|
<!-- 注射频次 -->
|
|
|
<mt-picker @change="onValuesChange1" v-if="mfreqFlag" :slots="slots1" ref="sexPicker1" class="sexPicker"
|
|
|
@@ -90,7 +104,7 @@
|
|
|
msg: 'Welcome to Your Vue.js App',
|
|
|
mfreqFlag: false,
|
|
|
form: {
|
|
|
- jchx:1,
|
|
|
+ jchx: 1,
|
|
|
zssjt0: '',
|
|
|
cxsjt1: '',
|
|
|
cxsjt2: '',
|
|
|
@@ -102,7 +116,7 @@
|
|
|
className: 'slot1',
|
|
|
textAlign: 'center'
|
|
|
}],
|
|
|
- endDate:new Date(this.$datetime.formatDateTime(new Date())),
|
|
|
+ endDate: new Date(this.$datetime.formatDateTime(new Date())),
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -135,8 +149,8 @@
|
|
|
message: '请输入病例体重'
|
|
|
})
|
|
|
return
|
|
|
- }else{
|
|
|
- if(!this.$recheck.checkIntFloat1(this.form.bltz)){
|
|
|
+ } else {
|
|
|
+ if (!this.$recheck.checkIntFloat1(this.form.bltz)) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: '病例体重请输入整数或1位小数'
|
|
|
@@ -150,8 +164,8 @@
|
|
|
message: '请输入注射剂量'
|
|
|
})
|
|
|
return
|
|
|
- }else{
|
|
|
- if(!this.$recheck.checkInt(this.form.zsjl)){
|
|
|
+ } else {
|
|
|
+ if (!this.$recheck.checkInt(this.form.zsjl)) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: '注射剂量请输入整数'
|
|
|
@@ -166,21 +180,21 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.form.jchx) {
|
|
|
- // MessageBox({
|
|
|
- // title: '提示',
|
|
|
- // message: '请输入手机号?'
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (!this.$recheck.checkIntFloat12(this.form.jchx)) {
|
|
|
+ MessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '请输入整数或2位小数?'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.form.zs30hx) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: '请输入注射后半小时内活性?'
|
|
|
})
|
|
|
return
|
|
|
- }else{
|
|
|
- if(!this.$recheck.checkIntFloat12(this.form.zs30hx)){
|
|
|
+ } else {
|
|
|
+ if (!this.$recheck.checkIntFloat12(this.form.zs30hx)) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: '注射后半小时内活性请输入整数或2位小数'
|
|
|
@@ -201,8 +215,8 @@
|
|
|
message: '请输入t1点活性'
|
|
|
})
|
|
|
return
|
|
|
- }else{
|
|
|
- if(!this.$recheck.checkIntFloat12(this.form.t1hx)){
|
|
|
+ } else {
|
|
|
+ if (!this.$recheck.checkIntFloat12(this.form.t1hx)) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: 't1点活性请输入整数或2位小数'
|
|
|
@@ -223,8 +237,8 @@
|
|
|
message: '请输入t2点活性'
|
|
|
})
|
|
|
return
|
|
|
- }else{
|
|
|
- if(!this.$recheck.checkIntFloat12(this.form.t2hx)){
|
|
|
+ } else {
|
|
|
+ if (!this.$recheck.checkIntFloat12(this.form.t2hx)) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: 't2点活性请输入整数或2位小数'
|
|
|
@@ -245,8 +259,8 @@
|
|
|
message: '请输入t3点活性'
|
|
|
})
|
|
|
return
|
|
|
- }else{
|
|
|
- if(!this.$recheck.checkIntFloat12(this.form.t3hx)){
|
|
|
+ } else {
|
|
|
+ if (!this.$recheck.checkIntFloat12(this.form.t3hx)) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: 't3点活性请输入整数或2位小数'
|
|
|
@@ -260,8 +274,8 @@
|
|
|
message: '请输入预防谷活性'
|
|
|
})
|
|
|
return
|
|
|
- }else{
|
|
|
- if(!this.$recheck.checkIntFloat12(this.form.yfghx)){
|
|
|
+ } else {
|
|
|
+ if (!this.$recheck.checkIntFloat12(this.form.yfghx)) {
|
|
|
MessageBox({
|
|
|
title: '提示',
|
|
|
message: '预防谷活性请输入整数或2位小数'
|
|
|
@@ -279,13 +293,13 @@
|
|
|
MessageBox.confirm('请您再次确认录入信息是否有误?').then(action => {
|
|
|
let params = this.form
|
|
|
let patientCase = localStorage.getItem("patientCase")
|
|
|
- if(patientCase){
|
|
|
+ if (patientCase) {
|
|
|
patientCase = JSON.parse(patientCase)
|
|
|
- Object.keys(patientCase).forEach(function(item){
|
|
|
+ Object.keys(patientCase).forEach(function (item) {
|
|
|
console.log(item)
|
|
|
params[item] = patientCase[item]
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
patientCase = params
|
|
|
this.goPage("/regpatinfo")
|
|
|
}
|
|
|
@@ -293,8 +307,13 @@
|
|
|
if (!res.data.code) {
|
|
|
let id = res.data.data.id
|
|
|
localStorage.removeItem("patientCase")
|
|
|
- this.$router.push({path:'diagcalcshow',query:{id:id}})
|
|
|
- }else{
|
|
|
+ this.$router.push({
|
|
|
+ path: 'diagcalcshow',
|
|
|
+ query: {
|
|
|
+ id: id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
Toast(res.data.message)
|
|
|
}
|
|
|
})
|
|
|
@@ -345,4 +364,18 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .numSubTitle {
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ span {
|
|
|
+ position: absolute;
|
|
|
+ left: 25px;
|
|
|
+ top: 5px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/ .numSubTitle .mint-field-core {
|
|
|
+ margin-left: 105px;
|
|
|
+ }
|
|
|
+
|
|
|
</style>
|