|
@@ -4,13 +4,21 @@
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
<div class="title">注射打卡</div>
|
|
<div class="title">注射打卡</div>
|
|
|
<div class="loginForm">
|
|
<div class="loginForm">
|
|
|
- <mt-field class="inputDisable" disabled label="产品选择" v-model="form.mpro" @click.native="mproFlag=true;mfreqFlag=false" placeholder="请选择使用的产品">
|
|
|
|
|
|
|
+ <mt-field class="inputDisable" disabled label="产品选择" v-model="form.mpro"
|
|
|
|
|
+ @click.native="mproFlag=true;mfreqFlag=false" placeholder="请选择使用的产品">
|
|
|
<img src="../assets/images/down.png" alt="" width="16px">
|
|
<img src="../assets/images/down.png" alt="" width="16px">
|
|
|
</mt-field>
|
|
</mt-field>
|
|
|
<!-- <mt-field class="inputDisable" disabled label="注射频次" v-model="form.mfreq" @click.native="mfreqFlag=true;mproFlag=false" placeholder="请选择使用的剂量">
|
|
<!-- <mt-field class="inputDisable" disabled label="注射频次" v-model="form.mfreq" @click.native="mfreqFlag=true;mproFlag=false" placeholder="请选择使用的剂量">
|
|
|
<img src="../assets/images/down.png" alt="" width="16px">
|
|
<img src="../assets/images/down.png" alt="" width="16px">
|
|
|
</mt-field> -->
|
|
</mt-field> -->
|
|
|
<mt-field label="注射剂量" placeholder="整数" type="number" v-model="form.mdose"></mt-field>
|
|
<mt-field label="注射剂量" placeholder="整数" type="number" v-model="form.mdose"></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>注射时间</span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="footer">
|
|
<div class="footer">
|
|
|
<div class="jbbtn" @click="submit">确定并提交</div>
|
|
<div class="jbbtn" @click="submit">确定并提交</div>
|
|
@@ -25,6 +33,13 @@
|
|
|
:showToolbar="true">
|
|
:showToolbar="true">
|
|
|
<div class="pickerConfirm" @click="mfreqFlag=false">确认</div>
|
|
<div class="pickerConfirm" @click="mfreqFlag=false">确认</div>
|
|
|
</mt-picker>
|
|
</mt-picker>
|
|
|
|
|
+ <!-- 注射时间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'
|
|
|
|
|
+ @touchmove.native.stop.prevent>
|
|
|
|
|
+ </mt-datetime-picker>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -44,12 +59,15 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- form: {},
|
|
|
|
|
|
|
+ form: {zssjt0:''},
|
|
|
mproFlag: false,
|
|
mproFlag: false,
|
|
|
mfreqFlag: false,
|
|
mfreqFlag: false,
|
|
|
|
|
+ proList: [],
|
|
|
|
|
+ startDate:new Date(this.$datetime.formatDateTime(new Date("2022-01-01 00:00:00"))),
|
|
|
|
|
+ endDate: new Date(this.$datetime.formatDateTime(new Date())),
|
|
|
slots: [{
|
|
slots: [{
|
|
|
flex: 1,
|
|
flex: 1,
|
|
|
- values: this.$const.mprolist,
|
|
|
|
|
|
|
+ values: [],
|
|
|
className: 'slot1',
|
|
className: 'slot1',
|
|
|
textAlign: 'center'
|
|
textAlign: 'center'
|
|
|
}],
|
|
}],
|
|
@@ -65,11 +83,14 @@
|
|
|
goPage(path) {
|
|
goPage(path) {
|
|
|
this.$router.push(path)
|
|
this.$router.push(path)
|
|
|
},
|
|
},
|
|
|
|
|
+ changeTime0(value) {
|
|
|
|
|
+ this.form.zssjt0 = this.$datetime.formatDateTime(value)
|
|
|
|
|
+ },
|
|
|
onValuesChange(picker, values) {
|
|
onValuesChange(picker, values) {
|
|
|
if (picker.getSlotValue(0)) {
|
|
if (picker.getSlotValue(0)) {
|
|
|
this.form.mpro = picker.getSlotValue(0)
|
|
this.form.mpro = picker.getSlotValue(0)
|
|
|
} else {
|
|
} else {
|
|
|
- this.form.mpro = "人血FVIII"
|
|
|
|
|
|
|
+ this.form.mpro = this.slots[0].values[0]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onValuesChange1(picker, values) {
|
|
onValuesChange1(picker, values) {
|
|
@@ -93,7 +114,7 @@
|
|
|
message: '请输入注射剂量'
|
|
message: '请输入注射剂量'
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
if (!this.$recheck.checkInt(this.form.mdose)) {
|
|
if (!this.$recheck.checkInt(this.form.mdose)) {
|
|
|
MessageBox({
|
|
MessageBox({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -102,6 +123,13 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!this.form.zssjt0) {
|
|
|
|
|
+ MessageBox({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: '请选择注射时间'
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
let params = this.form
|
|
let params = this.form
|
|
|
this.$api.regPatientRecords(params).then(res => {
|
|
this.$api.regPatientRecords(params).then(res => {
|
|
|
if (!res.data.code) {
|
|
if (!res.data.code) {
|
|
@@ -109,7 +137,13 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ this.$api.getPatientProList().then(res => {
|
|
|
|
|
+ _this.slots[0].values = res.data.data
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
@@ -134,5 +168,17 @@
|
|
|
min-height: 2.12rem;
|
|
min-height: 2.12rem;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .numSubTitle {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+
|
|
|
|
|
+ span {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 25px;
|
|
|
|
|
+ top: 15px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ /deep/ .numSubTitle .mint-field-core {
|
|
|
|
|
+ margin-left: 105px;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
</style>
|
|
</style>
|