|
@ -37,15 +37,13 @@
|
|
|
<label class="c-999 required" style="font-weight: normal;">诊断结果:</label>
|
|
|
<div class="flex1">
|
|
|
<div class="flex">
|
|
|
<el-select v-model="diagnosisValue" filterable placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="(item, index) in diseaseData"
|
|
|
:key="index"
|
|
|
:label="item.name"
|
|
|
:value="item.value"
|
|
|
clearable>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<el-autocomplete
|
|
|
class="w-220"
|
|
|
v-model="diagnosisValue"
|
|
|
:fetch-suggestions="getIcd10Info"
|
|
|
placeholder="请输入内容"
|
|
|
@select="handleSelect"
|
|
|
></el-autocomplete>
|
|
|
<button type="button" class="btn btn-12B7F5 btn-size-s ml15" style="border-radius: 0;" @click="saveDiagnosisWrap">+ 添加</button>
|
|
|
</div>
|
|
|
<div>
|
|
@ -134,7 +132,6 @@
|
|
|
medicalRecordsId: '',
|
|
|
},
|
|
|
mounted: function() {
|
|
|
this.getIcd10Info()
|
|
|
if(httpData['medicalRecordsId']){
|
|
|
this.medicalRecordsId = httpData['medicalRecordsId']
|
|
|
var curMedicalRecords = JSON.parse(window.localStorage.getItem('curMedicalRecords'))
|
|
@ -172,22 +169,21 @@
|
|
|
closeTag: function(i){
|
|
|
this.tags.splice(i, 1)
|
|
|
},
|
|
|
getIcd10Info: function(){
|
|
|
var vm = this, nameKey='',
|
|
|
loadding = layer.load(0, {shade: false}),
|
|
|
getIcd10Info: function(queryString, cb){
|
|
|
var vm = this,nameKey = queryString,
|
|
|
params = {
|
|
|
nameKey:nameKey,
|
|
|
page: 1,
|
|
|
pageSize: 10000
|
|
|
}
|
|
|
rehaAPI.getIcd10Info(params).then(function(res){
|
|
|
layer.close(loadding)
|
|
|
if(res.status == 200) {
|
|
|
vm.diseaseData = $.each(res.data, function(i, o){
|
|
|
vm.diagnosisObj[o.code]=o.name
|
|
|
o.value = o.name
|
|
|
o.value = o.name
|
|
|
return o
|
|
|
})
|
|
|
cb(vm.diseaseData);
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
|
}
|