|
@ -12,8 +12,8 @@
|
|
<div id="app" style="height: 100%;" v-cloak>
|
|
<div id="app" style="height: 100%;" v-cloak>
|
|
<div class="plr20 ptb10 c-border-b">
|
|
<div class="plr20 ptb10 c-border-b">
|
|
<div class="clearfix c-border">
|
|
<div class="clearfix c-border">
|
|
<input class="fl search-input plr10" type="text" placeholder="输入居民姓名或身份证号码" :value="keyword" />
|
|
|
|
<span class="fr search-btn"></span>
|
|
|
|
|
|
<input class="fl search-input plr10" type="text" placeholder="输入居民姓名或身份证号码" v-model="keyword" />
|
|
|
|
<span class="fr search-btn" @click="getPatientInfoByDoctor()"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="overflow: hidden; height: calc(100% - 59px);">
|
|
<div style="overflow: hidden; height: calc(100% - 59px);">
|
|
@ -25,6 +25,7 @@
|
|
<span class="fl ml20 mr10 c-333 c-f16">{{pati.patientName}}</span>
|
|
<span class="fl ml20 mr10 c-333 c-f16">{{pati.patientName}}</span>
|
|
<span class="fl c-999">({{pati.sex}} {{pati.age}}岁)</span>
|
|
<span class="fl c-999">({{pati.sex}} {{pati.age}}岁)</span>
|
|
</li>
|
|
</li>
|
|
|
|
<li v-if="!patiList.length" class="c-t-center pt40 set-no-hover">无查询数据</li>
|
|
</ul>
|
|
</ul>
|
|
<ul class="label-list p0 m0" style="overflow: auto; height: 100%;" v-if="isLabel">
|
|
<ul class="label-list p0 m0" style="overflow: auto; height: 100%;" v-if="isLabel">
|
|
<li v-for="(label, index) in labelList" :key="index">
|
|
<li v-for="(label, index) in labelList" :key="index">
|
|
@ -158,7 +159,7 @@
|
|
params = {
|
|
params = {
|
|
doctor: doctorCode,
|
|
doctor: doctorCode,
|
|
patientInfo: this.keyword, // 居民身份证或者姓名
|
|
patientInfo: this.keyword, // 居民身份证或者姓名
|
|
disease: label.label,
|
|
|
|
|
|
disease: label ? label.label : "",
|
|
page: vm.page,
|
|
page: vm.page,
|
|
size: 50
|
|
size: 50
|
|
}
|
|
}
|
|
@ -166,6 +167,14 @@
|
|
layer.close(loadding)
|
|
layer.close(loadding)
|
|
if(res.status == 200) {
|
|
if(res.status == 200) {
|
|
vm.patiList = res.data
|
|
vm.patiList = res.data
|
|
|
|
if(!label) {
|
|
|
|
vm.isSearch = true
|
|
|
|
vm.isLabel = false
|
|
|
|
}
|
|
|
|
if(!vm.keyword) {
|
|
|
|
vm.isSearch = false
|
|
|
|
vm.isLabel = true
|
|
|
|
}
|
|
} else {
|
|
} else {
|
|
showErrorMessage(res.msg);
|
|
showErrorMessage(res.msg);
|
|
}
|
|
}
|