提交 3b5cff13 编写于 作者: chengxiang.li's avatar chengxiang.li

merge

此差异已折叠。
...@@ -4,6 +4,8 @@ import common from './education/common'; ...@@ -4,6 +4,8 @@ import common from './education/common';
//随访 //随访
import followModules from './followup/index'; import followModules from './followup/index';
import getters from './getters' import getters from './getters'
//居民诊断
import patientsDiagnose from './patientsManage/patientsDiagnose';
Vue.use(Vuex) Vue.use(Vuex)
...@@ -11,7 +13,8 @@ Vue.use(Vuex) ...@@ -11,7 +13,8 @@ Vue.use(Vuex)
export default new Vuex.Store({ export default new Vuex.Store({
modules: { modules: {
common, common,
...followModules ...followModules,
patientsDiagnose,
}, },
getters getters
}) })
......
const patientsDiagnose = {
namespaced: true,
state: {
selectedDiagList: [],
},
mutations: {
CHANGE_DIAGNOSE_LIST: (state, data) => {
state.selectedDiagList = data;
}
},
actions: {
changeDiagnoseList({ commit }, list) {
commit('CHANGE_DIAGNOSE_LIST', list);
}
}
}
export default patientsDiagnose;
\ No newline at end of file
...@@ -54,7 +54,9 @@ service.interceptors.request.use(config => { ...@@ -54,7 +54,9 @@ service.interceptors.request.use(config => {
} }
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境 if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV); // console.log('环境变量>>>> ', process.env.BUILD_ENV);
config.headers['token'] = 'D2E29BE9FF794703A482518A04D344E2'; // config.headers['token'] = 'BFD804F3A3194FBBBE113962222839F6';
config.headers['token'] = 'A97A609C1A98467C9372ACF55DD3BA35';
}else{ }else{
config.headers['token'] = localStorage.getItem('storageToken') config.headers['token'] = localStorage.getItem('storageToken')
} }
......
...@@ -377,6 +377,7 @@ export const getRemindPatient = (data) => { ...@@ -377,6 +377,7 @@ export const getRemindPatient = (data) => {
}) })
}; };
// 保存并新增
export const savePatientInfo = (data) => { export const savePatientInfo = (data) => {
return utils.checkAuth(()=>{ return utils.checkAuth(()=>{
return fetch({ return fetch({
...@@ -426,3 +427,38 @@ export const getPatientInfoList = (data) => { ...@@ -426,3 +427,38 @@ export const getPatientInfoList = (data) => {
}) })
}; };
// 添加诊断:获取常用诊断列表
export const getCommonDiagnoseList = params => {
return fetch({
headers,
url: getBaseUrl(`medicineDictionary/icdCommonDiagnosis`),
method: 'get',
params: params,
description: '获取常用诊断列表',
})
}
// 添加诊断:搜索
export const goToSearch = params => {
return fetch({
headers,
url: getBaseUrl(`medicineDictionary/icdContents`),
method: 'get',
params: params,
description: '常用诊断搜索',
})
}
// 选择或搜索诊断
export const getIcdList = params => {
return fetch({
headers,
url: getBaseUrl(`healths/icd/list`),
// url: 'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/46/healths/icd/list',
method: 'get',
params: params,
description: '选择或搜索诊断',
})
}
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="diseaseId"> <el-form-item prop="diseaseId">
<el-select <!--<el-select
v-model="searchData.diseaseId" v-model="searchData.diseaseId"
multiple multiple
collapse-tags collapse-tags
...@@ -67,8 +67,27 @@ ...@@ -67,8 +67,27 @@
:key="index" :key="index"
:label="item.diseaseName" :label="item.diseaseName"
:value="item.diseaseId"> :value="item.diseaseId">
</el-option> </el-option>-->
</el-select> <!--</el-select>-->
<el-select
v-model="searchData.icdCodeList"
multiple
collapse-tags
filterable
remote
reserve-keyword
placeholder="请选择或搜索诊断"
:remote-method="getDiseaseData"
:loading="loading"
class="set-width"
>
<el-option
v-for="item in icdOptions"
:key="item.icdCode"
:label="item.diseaseName"
:value="item.icdCode">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item prop="labelId"> <el-form-item prop="labelId">
<el-select <el-select
...@@ -229,7 +248,7 @@ ...@@ -229,7 +248,7 @@
<script> <script>
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
import { getConstants, getPatientInfoList, getDiseasesList, getLabelList } from '@/utils/patients/patientsapi' import { getConstants, getPatientInfoList, getDiseasesList, getLabelList, getIcdList } from '@/utils/patients/patientsapi'
import { getPlanList } from '@/utils/followup/followapis' import { getPlanList } from '@/utils/followup/followapis'
export default { export default {
components: {}, components: {},
...@@ -248,7 +267,8 @@ ...@@ -248,7 +267,8 @@
diseaseId: [], diseaseId: [],
labelId: [], labelId: [],
fuPlanIdList: [], fuPlanIdList: [],
searchCondition: '' searchCondition: '',
icdCodeList: [],
}, },
paginationSet: { paginationSet: {
pageNum: 1, pageNum: 1,
...@@ -272,6 +292,8 @@ ...@@ -272,6 +292,8 @@
newSelects: [], //新选中的人 newSelects: [], //新选中的人
oldPatientList: [], oldPatientList: [],
showReloadModal: false, showReloadModal: false,
loading: false,
icdOptions: [],
getRowKeys(row) { getRowKeys(row) {
return row.patientId; return row.patientId;
}, },
...@@ -292,6 +314,8 @@ ...@@ -292,6 +314,8 @@
isShowSelectPatient(val){ isShowSelectPatient(val){
if(val){ if(val){
this.getPatientsList() this.getPatientsList()
//获取搜索诊断
this.getDiseaseData();
// 获取常量 性别、年龄 // 获取常量 性别、年龄
getConstants({ getConstants({
numList: 'P057,P006' numList: 'P057,P006'
...@@ -342,6 +366,29 @@ ...@@ -342,6 +366,29 @@
return row.disableNum return row.disableNum
} }
}, },
getDiseaseData(query) {
// if (query !== '') {
let params = {
diseaseName: query ? query : '',
pageSize: 200,
pageNum: 1,
};
this.loading = true;
getIcdList(params).then(data => {
this.loading = false;
if(data.code == "000000") {
this.icdOptions = data.data;
}
}).catch((error) => {
this.$message({
message: error,
type: 'error'
});
});
// }else {
// this.icdOptions = [];
// }
},
getPatientsList(){ getPatientsList(){
const data = { const data = {
pageSize: this.paginationSet.pageSize, pageSize: this.paginationSet.pageSize,
...@@ -355,6 +402,7 @@ ...@@ -355,6 +402,7 @@
addType: this.selectPatientType, //随访是1,分组是2,患教是3 addType: this.selectPatientType, //随访是1,分组是2,患教是3
fuPlanIdList: this.searchData.fuPlanIdList || [], fuPlanIdList: this.searchData.fuPlanIdList || [],
sourceId: this.sourceId, //若是随访的话,传planId;若是分组的话,传labeledId; sourceId: this.sourceId, //若是随访的话,传planId;若是分组的话,传labeledId;
icdCodeList: this.searchData.icdCodeList
} }
getPatientInfoList(data).then(res=>{ getPatientInfoList(data).then(res=>{
if(res.data.patientList){ if(res.data.patientList){
...@@ -377,10 +425,10 @@ ...@@ -377,10 +425,10 @@
item.showLabelName = '-'; item.showLabelName = '-';
} }
//转化疾病 //转化诊断
if(item.patientTypeModels) { if(item.patientTypeModels) {
item.patientTypeModels.forEach(item => { item.patientTypeModels.forEach(item => {
diseaseNames.push(item.name) diseaseNames.push(item.diseaseName)
}) })
item.showDiseaseNames = diseaseNames.join('、'); item.showDiseaseNames = diseaseNames.join('、');
...@@ -486,7 +534,8 @@ ...@@ -486,7 +534,8 @@
diseaseId: [], diseaseId: [],
labelId: [], labelId: [],
fuPlanIdList: [], fuPlanIdList: [],
searchCondition: '' searchCondition: '',
icdCodeList: [],
} }
this.$emit('closeSelectPatient',false) this.$emit('closeSelectPatient',false)
}, },
...@@ -499,7 +548,8 @@ ...@@ -499,7 +548,8 @@
diseaseId: [], diseaseId: [],
labelId: [], labelId: [],
fuPlanIdList: [], fuPlanIdList: [],
searchCondition: '' searchCondition: '',
icdCodeList: [],
} }
this.$emit('sureSelectPatient',false,this.newSelects,this.oldPatientList) this.$emit('sureSelectPatient',false,this.newSelects,this.oldPatientList)
} else { } else {
......
<template> <template>
<div class="form-warp"> <div class="form-warp">
<addDiagnose ref="addDiagnose"></addDiagnose>
<el-form <el-form
:model="patientInfoForm" :model="patientInfoForm"
:rules="rules" :rules="rules"
...@@ -30,46 +31,53 @@ ...@@ -30,46 +31,53 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<!-- <div class="has-header">数据记录</div> -->
<el-row>
<el-col :span="12">
<el-form-item label="诊断" prop="diseaseIdList">
<!-- <el-select
v-model="diseaseIdList"
multiple
@change="changeDiseases"
:popper-append-to-body="false"
placeholder="请选择居民疾病诊断">
<el-option
v-for="(item, index) in diseasesList"
:key="item.diseaseId"
:label="item.diseaseName"
:value="item.diseaseId">
</el-option>
</el-select> -->
<el-button icon="el-icon-plus" @click="handleAddDiagnose">添加诊断</el-button>
<ul class="final-diagnose-list" v-if="selectedDiagList && selectedDiagList.length > 0">
<li v-for="diagnose in selectedDiagList" v-html="diagnose.alias ? diagnose.alias+'; ' : diagnose.diseaseName+'; '"></li>
</ul>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="分组" prop="labelIdList">
<el-select
v-model="labelIdList"
multiple
@change="changeLabels"
:popper-append-to-body="false"
placeholder="请选择居民分组">
<el-option
v-for="(item, index) in labelsList"
:key="index.labelId"
:label="item.labelName"
:value="item.labelId">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24" style="text-align: center;margin-top:15px;" v-show="!patientId"> <el-button plain size="small" @click="toggleClick">{{tipsText}}</el-button></el-col> <el-col :span="24" style="text-align: center;margin-top:15px;" v-show="!patientId"> <el-button plain size="small" @click="toggleClick">{{tipsText}}</el-button></el-col>
</el-row> </el-row>
<div v-show="isShowAll || patientId"> <div v-show="isShowAll || patientId">
<div class="has-header">数据记录</div>
<el-row>
<el-col :span="12">
<el-form-item label="诊断" prop="diseaseIdList">
<el-select
v-model="diseaseIdList"
multiple
@change="changeDiseases"
:popper-append-to-body="false"
placeholder="请选择居民疾病诊断">
<el-option
v-for="(item, index) in diseasesList"
:key="item.diseaseId"
:label="item.diseaseName"
:value="item.diseaseId">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="分组" prop="labelIdList">
<el-select
v-model="labelIdList"
multiple
@change="changeLabels"
:popper-append-to-body="false"
placeholder="请选择居民分组">
<el-option
v-for="(item, index) in labelsList"
:key="index.labelId"
:label="item.labelName"
:value="item.labelId">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<div class="has-header">基本信息</div> <div class="has-header">基本信息</div>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
...@@ -240,7 +248,7 @@ ...@@ -240,7 +248,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters, mapState } from 'vuex';
import { checkMobile } from '@/utils/patients/checkValid'; import { checkMobile } from '@/utils/patients/checkValid';
import { isCardNo, checkProvince, checkBirthday, checkParity, validateIdCard } from '@/utils/patients/checkCardNum'; import { isCardNo, checkProvince, checkBirthday, checkParity, validateIdCard } from '@/utils/patients/checkCardNum';
import { import {
...@@ -254,9 +262,10 @@ ...@@ -254,9 +262,10 @@
getCountyList, getCountyList,
getTownList } from '@/utils/patients/patientsapi'; getTownList } from '@/utils/patients/patientsapi';
let vm = null; let vm = null;
import addDiagnose from '@/components/icd/addDiagnose.vue';
export default { export default {
name: "basicInfo", name: "basicInfo",
components: {}, components: { addDiagnose },
data() { data() {
let validCode=(rule,value,callback)=>{ let validCode=(rule,value,callback)=>{
if(value) { if(value) {
...@@ -427,7 +436,8 @@ ...@@ -427,7 +436,8 @@
this.patientInfoForm = val; this.patientInfoForm = val;
this.baseInfoEdit = this.patientInfoForm.baseInfoEdit; this.baseInfoEdit = this.patientInfoForm.baseInfoEdit;
let customLabels = this.patientInfoForm.customLabels; let customLabels = this.patientInfoForm.customLabels;
let diseases = this.patientInfoForm.diseases; // let diseases = this.patientInfoForm.diseases;
let icdList = this.patientInfoForm.icdList;
if(customLabels && customLabels.length > 0){ if(customLabels && customLabels.length > 0){
customLabels.forEach((kkk)=>{ customLabels.forEach((kkk)=>{
this.labelIdList.push(Number(kkk.labelId)) this.labelIdList.push(Number(kkk.labelId))
...@@ -435,12 +445,17 @@ ...@@ -435,12 +445,17 @@
}else { }else {
this.labelIdList = []; this.labelIdList = [];
} }
if(diseases && diseases.length > 0) { // if(diseases && diseases.length > 0) {
diseases.forEach((dis)=>{ // diseases.forEach((dis)=>{
this.diseaseIdList.push(Number(dis.diseaseId)) // this.diseaseIdList.push(Number(dis.diseaseId))
}) // })
// }else {
// this.diseaseIdList = [];
// }
if(icdList && icdList.length > 0) {
this.$store.dispatch('patientsDiagnose/changeDiagnoseList', icdList)
}else { }else {
this.diseaseIdList = []; this.$store.dispatch('patientsDiagnose/changeDiagnoseList', [])
} }
if(this.patientInfoForm.idNo) { if(this.patientInfoForm.idNo) {
this.hasIdNo = true; this.hasIdNo = true;
...@@ -494,6 +509,9 @@ ...@@ -494,6 +509,9 @@
...mapGetters([ ...mapGetters([
'_token', '_token',
]), ]),
...mapState('patientsDiagnose', {
selectedDiagList: state => state.selectedDiagList
}),
currentCount(){ currentCount(){
if(this.patientInfoForm.remark) { if(this.patientInfoForm.remark) {
return this.patientInfoForm.remark.length return this.patientInfoForm.remark.length
...@@ -529,7 +547,12 @@ ...@@ -529,7 +547,12 @@
cityId: null, cityId: null,
countyId: null, countyId: null,
townId: null, townId: null,
} },
this.$store.dispatch('patientsDiagnose/changeDiagnoseList', [])
},
// 点击 添加诊断
handleAddDiagnose() {
this.$refs.addDiagnose.showSelf();
}, },
initConstant(){ initConstant(){
getDiseasesList().then((data) => { getDiseasesList().then((data) => {
...@@ -559,17 +582,18 @@ ...@@ -559,17 +582,18 @@
}); });
this.getProvinceLists(); this.getProvinceLists();
}, },
changeDiseases(val) { // changeDiseases(val) {
let newDiseaseList = []; // // 格式化数据 提交用
val.forEach((valItem) => { // let newDiseaseList = [];
this.diseasesList.forEach((item2) => { // val.forEach((valItem) => {
if(valItem == item2.diseaseId){ // this.diseasesList.forEach((item2) => {
newDiseaseList.push({parentDiseaseId: item2.diseaseId}); // if(valItem == item2.diseaseId){
} // newDiseaseList.push({parentDiseaseId: item2.diseaseId});
}) // }
}); // })
this.patientInfoForm.patientDiseases = newDiseaseList; // });
}, // this.patientInfoForm.patientDiseases = newDiseaseList;
// },
changeLabels(val){ changeLabels(val){
let newLabelsList = []; let newLabelsList = [];
val.forEach((valItem) => { val.forEach((valItem) => {
...@@ -654,6 +678,7 @@ ...@@ -654,6 +678,7 @@
status: true, status: true,
patientInfoForm: { patientInfoForm: {
...this.patientInfoForm, ...this.patientInfoForm,
icdList: this.selectedDiagList,
birthTime: this.patientInfoForm.birthTime ? `${this.patientInfoForm.birthTime} 00:00:00` : '', birthTime: this.patientInfoForm.birthTime ? `${this.patientInfoForm.birthTime} 00:00:00` : '',
} }
}) })
...@@ -663,6 +688,7 @@ ...@@ -663,6 +688,7 @@
// patientInfoForm: this.patientInfoForm, // patientInfoForm: this.patientInfoForm,
patientInfoForm: { patientInfoForm: {
...this.patientInfoForm, ...this.patientInfoForm,
icdList: this.selectedDiagList,
birthTime: this.patientInfoForm.birthTime ? `${this.patientInfoForm.birthTime} 00:00:00` : '', birthTime: this.patientInfoForm.birthTime ? `${this.patientInfoForm.birthTime} 00:00:00` : '',
} }
}) })
...@@ -871,5 +897,15 @@ ...@@ -871,5 +897,15 @@
.idNoTxt{ .idNoTxt{
display: inline-flex;color:#C0C4CC;line-height:20px;vertical-align: middle; display: inline-flex;color:#C0C4CC;line-height:20px;vertical-align: middle;
} }
.final-diagnose-list{
color: #BBB;
line-height: 20px;
margin-top: 15px;
overflow: hidden;
li{
float:left;
margin-right: 5px;
}
}
} }
</style> </style>
...@@ -35,11 +35,15 @@ ...@@ -35,11 +35,15 @@
<!--<div><p class="title">健康档案编号:</p><p class="info">{{patientInfo.fileLocator | emptyFilter}}</p></div>--> <!--<div><p class="title">健康档案编号:</p><p class="info">{{patientInfo.fileLocator | emptyFilter}}</p></div>-->
<!--<div><p class="title">医保号:</p><p class="info">{{patientInfo.socialCard | emptyFilter}}</p></div>--> <!--<div><p class="title">医保号:</p><p class="info">{{patientInfo.socialCard | emptyFilter}}</p></div>-->
<!--</div>--> <!--</div>-->
<div class="has-header">数据记录</div>
<div class="item wrap-p"> <div class="item wrap-p">
<div><p class="title">诊断:</p><p class="info">{{showDiseaseName | emptyFilter}}</p></div> <div><p class="title">诊断:</p><p class="info">{{showDiseaseName | emptyFilter}}</p></div>
<div><p class="title">分组:</p><p class="info">{{showLabelName | emptyFilter}}</p></div> <div><p class="title">分组:</p><p class="info">{{showLabelName | emptyFilter}}</p></div>
</div> </div>
<!-- <div class="has-header">数据记录</div>
<div class="item wrap-p">
<div><p class="title">诊断:</p><p class="info">{{showDiseaseName | emptyFilter}}</p></div>
<div><p class="title">分组:</p><p class="info">{{showLabelName | emptyFilter}}</p></div>
</div>-->
<div class="has-header">联系方式</div> <div class="has-header">联系方式</div>
<div class="item"> <div class="item">
<div><p class="title">手机号:</p><p class="info">{{patientInfo.mobilePhone | emptyFilter}}</p></div> <div><p class="title">手机号:</p><p class="info">{{patientInfo.mobilePhone | emptyFilter}}</p></div>
...@@ -180,7 +184,8 @@ ...@@ -180,7 +184,8 @@
if(this.patientInfo){ if(this.patientInfo){
this.doctorId = this.patientInfo.doctorId; this.doctorId = this.patientInfo.doctorId;
let customLabels = this.patientInfo.customLabels; let customLabels = this.patientInfo.customLabels;
let diseases = this.patientInfo.diseases; // let diseases = this.patientInfo.diseases;
let icdList = this.patientInfo.icdList;
let groupLabelNames = []; let groupLabelNames = [];
let groupDiseaseNames = []; let groupDiseaseNames = [];
//对出生日期的处理 //对出生日期的处理
...@@ -201,9 +206,18 @@ ...@@ -201,9 +206,18 @@
} else { } else {
this.showLabelName = ''; this.showLabelName = '';
} }
// 对诊断疾病的处理 // 对诊断疾病的处理(老版诊断)
if(diseases) { // if(diseases) {
diseases.forEach(item => { // diseases.forEach(item => {
// groupDiseaseNames.push(item.diseaseName)
// });
// this.showDiseaseName = groupDiseaseNames.join(';');
// } else {
// this.showDiseaseName = '';
// }
// 对诊断疾病的处理(新版诊断)
if(icdList) {
icdList.forEach(item => {
groupDiseaseNames.push(item.diseaseName) groupDiseaseNames.push(item.diseaseName)
}); });
this.showDiseaseName = groupDiseaseNames.join(';'); this.showDiseaseName = groupDiseaseNames.join(';');
......
...@@ -30,15 +30,37 @@ ...@@ -30,15 +30,37 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="诊断:" prop="startDate"> <el-form-item label="诊断:" prop="startDate" class="diagnose-select-style">
<el-select v-model="searchData.diseaseId" size="small" clearable :popper-append-to-body="false"> <!-- <el-select v-model="searchData.diseaseId" size="small" clearable :popper-append-to-body="false" placeholder="请选择或搜索诊断">
<el-option <el-option
v-for="item in diseaseList" v-for="item in diseaseList"
:key="item.diseaseId" :key="item.diseaseId"
:label="item.diseaseName" :label="item.diseaseName"
:value="item.diseaseId"> :value="item.diseaseId">
</el-option> </el-option>
</el-select> -->
<!-- new Start -->
<el-select
v-model="searchData.icdCodeList"
multiple
filterable
remote
size="small"
collapse-tags
reserve-keyword
placeholder="请选择或搜索诊断"
:remote-method="getDiseaseData"
:loading="loading"
:popper-append-to-body="false"
>
<el-option
v-for="item in options"
:key="item.icdCode"
:label="item.diseaseName"
:value="item.icdCode">
</el-option>
</el-select> </el-select>
<!-- new End -->
</el-form-item> </el-form-item>
<el-form-item label="分组:" prop="labelId"> <el-form-item label="分组:" prop="labelId">
<el-select v-model="searchData.labelId" size="small" clearable :popper-append-to-body="false"> <el-select v-model="searchData.labelId" size="small" clearable :popper-append-to-body="false">
...@@ -138,7 +160,8 @@ ...@@ -138,7 +160,8 @@
<script> <script>
import BreadCrumb from '../../../components/breadcrumb.vue' import BreadCrumb from '../../../components/breadcrumb.vue'
import { getConstants, import { getConstants,
getDiseasesList, // getDiseasesList,
getIcdList,
getLabelList, getLabelList,
getPatientList} from '../../../utils/patients/patientsapi' getPatientList} from '../../../utils/patients/patientsapi'
export default { export default {
...@@ -161,12 +184,14 @@ ...@@ -161,12 +184,14 @@
agesList: [], //年龄 agesList: [], //年龄
diseaseList: [], diseaseList: [],
groupList: [], groupList: [],
patientList: [] patientList: [],
options: [],
loading: false,
} }
}, },
mounted() { mounted() {
this.getConstantData(); //获取性别、年龄段常量 this.getConstantData(); //获取性别、年龄段常量
this.getDiseaseData(); //获取疾病种类 this.getDiseaseData(); //获取 搜索诊断
this.getGroupList(); //获取分组 this.getGroupList(); //获取分组
this.getPatients({ this.getPatients({
...this.searchData ...this.searchData
...@@ -188,10 +213,27 @@ ...@@ -188,10 +213,27 @@
}); });
}); });
}, },
getDiseaseData() { getDiseaseData(query) {
getDiseasesList().then((data) => { // getDiseasesList().then((data) => {
// if(data.code == "000000") {
// this.diseaseList = data.data;
// }
// }).catch((error) => {
// this.$message({
// message: error,
// type: 'error'
// });
// });
let params = {
diseaseName: query ? query : '',
pageNum: 1,
pageSize: 200,
};
this.loading = true;
getIcdList(params).then(data => {
this.loading = false;
if(data.code == "000000") { if(data.code == "000000") {
this.diseaseList = data.data; this.options = data.data;
} }
}).catch((error) => { }).catch((error) => {
this.$message({ this.$message({
...@@ -262,7 +304,7 @@ ...@@ -262,7 +304,7 @@
//转化疾病 //转化疾病
if (item.patientTypeModels) { if (item.patientTypeModels) {
item.patientTypeModels.forEach(item => { item.patientTypeModels.forEach(item => {
diseaseNames.push(item.name) diseaseNames.push(item.diseaseName)
}) })
item.showDiseaseNames = diseaseNames.join('、'); item.showDiseaseNames = diseaseNames.join('、');
} else { } else {
...@@ -337,6 +379,22 @@ ...@@ -337,6 +379,22 @@
border-bottom: 1px solid #efefef; border-bottom: 1px solid #efefef;
.search-input{ .search-input{
flex: 1; flex: 1;
.diagnose-select-style{
.el-input__inner{
height: 32px !important;
}
.el-select__tags-text{
display: inline-block;
max-width: 75px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.el-tag__close.el-icon-close{
top: -6px;
}
}
} }
.search-btn { .search-btn {
text-align: right; text-align: right;
......
...@@ -95,6 +95,9 @@ ...@@ -95,6 +95,9 @@
this.$refs.newForm.diseaseIdList = []; this.$refs.newForm.diseaseIdList = [];
this.$refs.newForm.labelIdList = []; this.$refs.newForm.labelIdList = [];
this.$refs.newForm.addressList = []; this.$refs.newForm.addressList = [];
// 清空已选的诊断列表
this.$store.dispatch('patientsDiagnose/changeDiagnoseList', []);
// this.$router.go(0);//体验不好 // this.$router.go(0);//体验不好
},500) },500)
}else { }else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册