|
@@ -3,7 +3,7 @@
|
|
|
<div class="bgimg"></div>
|
|
|
<div class="content">
|
|
|
<div class="title">注射记录</div>
|
|
|
- <div v-if='id' class="title" style="font-size: 1rem;">姓名:{{recordsList[0].name}}</div>
|
|
|
+ <div v-if='id &&recordsList.length>0' class="title" style="font-size: 1rem;">姓名:{{recordsList[0].name}}</div>
|
|
|
<div class="injectionListForm baseInfo">
|
|
|
<div class="listItemContainer">
|
|
|
<div class="listItem listHeader" style="width:80%;background:#6DA2FE;color:#fff;">打卡时间</div>
|
|
@@ -14,7 +14,7 @@
|
|
|
<div class="listItem" style="width:80%;">{{item.zssjt0}}</div>
|
|
|
<div class="listItem">{{item.mpro}}</div>
|
|
|
<div class="listItem">{{item.mdose}}</div>
|
|
|
- <img v-if="item.candel==1" src="../assets/images/delete.png" style="position:absolute;right:-5px;top:14px;" alt="" width="20px"
|
|
|
+ <img v-if="item.candel==1 && patinfo.role !='1'" src="../assets/images/delete.png" style="position:absolute;right:-5px;top:14px;" alt="" width="20px"
|
|
|
@click="delRecord(item)" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -33,7 +33,8 @@
|
|
|
Picker,
|
|
|
Search,
|
|
|
Button,
|
|
|
- Toast
|
|
|
+ Toast,
|
|
|
+ MessageBox
|
|
|
} from 'mint-ui'
|
|
|
|
|
|
export default {
|
|
@@ -43,6 +44,7 @@
|
|
|
Picker,
|
|
|
Search,
|
|
|
Button,
|
|
|
+ MessageBox,
|
|
|
Toast
|
|
|
},
|
|
|
data() {
|
|
@@ -75,6 +77,12 @@
|
|
|
this.$api.getPatientRecordsList(queryForm).then(res => {
|
|
|
if (!res.data.code) {
|
|
|
this.recordsList = res.data.data.list
|
|
|
+ if(this.recordsList.length<=0){
|
|
|
+ MessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '该患者尚未进行注射打卡'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
this.$api.getAccountInfo().then(res => {
|