Commit b4f4843a authored by 任鸿志's avatar 任鸿志

feat(patientInfo): 为慢病病种添加选择功能

- 在慢病病种输入框旁边添加了选择框
- 实现了从响应数据中自动选择第一个慢
parent bb5db2a7
......@@ -132,6 +132,10 @@
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">慢病病种</el-tag>
<el-select v-model="manbing" placeholder="">
<el-option v-for="item in patientData.mzdbjbs_arr" :key="item.code" :label="item.name" :value="item.code">
</el-option>
</el-select>
<el-input v-model="patientData.mzdbjbs" disabled></el-input>
</div>
</el-form-item>
......@@ -175,6 +179,7 @@ export default {
},
data() {
return {
manbing:'',
patientData: {
family_data:[]
},
......@@ -239,6 +244,7 @@ export default {
p_sbm: e.ksbm,
})
.then(response => {
this.manbing=response.data.mzdbjbs_arr[0].code
this.allLoading=false
this.patientData = response.data
this.patientData.rqlbName == 'A' ? '职工' : '居民'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment