提交 2bc64e73 编写于 作者: chengxiang.li's avatar chengxiang.li

Merge branch 'dev-patients-20190513' of...

Merge branch 'dev-patients-20190513' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-patients-20190513
...@@ -88,7 +88,8 @@ export default { ...@@ -88,7 +88,8 @@ export default {
vm.token = paramMap["token"] vm.token = paramMap["token"]
localStorage.setItem('storageToken', vm.token) localStorage.setItem('storageToken', vm.token)
if(href.indexOf("mypatients-manage/patients-list") > -1) { if(href.indexOf("mypatients-manage/patients-list") > -1) {
vm.$router.push({ path: 'patients-manage/mypatients-manage/patients-list' }) // vm.$router.push({ path: 'patients-manage/mypatients-manage/patients-list' })
vm.$router.push({ path: 'patients-list' })
}else { }else {
vm.$router.push({ path: 'home' }) vm.$router.push({ path: 'home' })
} }
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
:patientIdList="baseInfo.patientIdList" :patientIdList="baseInfo.patientIdList"
@closeSelectPatient="closeSelectPatient" @closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)" @sureSelectPatient="sureSelectPatient(arguments)"
:selectPatientType="selectPatientType"
/> />
<has-selected-patient <has-selected-patient
v-if="isShowSelectedDialog" v-if="isShowSelectedDialog"
...@@ -109,7 +110,8 @@ ...@@ -109,7 +110,8 @@
<script> <script>
import BreadCrumb from '@/components/breadcrumb' import BreadCrumb from '@/components/breadcrumb'
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient'; // import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import SelectPatient from '@/views/patients/labels-manage/dialog/select-patitents';
import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient'; import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient';
import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node'; import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node';
import { createFollowPlan, getFollowupTableTemplate } from '@/utils/followup/followapis' import { createFollowPlan, getFollowupTableTemplate } from '@/utils/followup/followapis'
...@@ -151,6 +153,7 @@ ...@@ -151,6 +153,7 @@
}, },
isShowSelectPatient: false, isShowSelectPatient: false,
isShowSelectedDialog: false, isShowSelectedDialog: false,
selectPatientType: 1,
hasSelectedList: [], hasSelectedList: [],
rules: { rules: {
name: [{ required: true, message: '请输入随访计划名称', trigger: 'blur' }], name: [{ required: true, message: '请输入随访计划名称', trigger: 'blur' }],
......
...@@ -66,7 +66,8 @@ ...@@ -66,7 +66,8 @@
:patientIdList="planDetailData.patientIdList" :patientIdList="planDetailData.patientIdList"
:oldPatientIdList="selectResidentIdList" :oldPatientIdList="selectResidentIdList"
@closeSelectPatient="closeSelectPatient" @closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)"> @sureSelectPatient="sureSelectPatient(arguments)"
:selectPatientType="selectPatientType">
</select-patient> </select-patient>
<has-selected-patient <has-selected-patient
v-if="isShowSelectedDialog" v-if="isShowSelectedDialog"
...@@ -83,7 +84,8 @@ ...@@ -83,7 +84,8 @@
</template> </template>
<script> <script>
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient'; // import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import SelectPatient from '@/views/patients/labels-manage/dialog/select-patitents';
import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient'; import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient';
import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node'; import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node';
...@@ -144,6 +146,7 @@ ...@@ -144,6 +146,7 @@
newHasSelectedList: [], newHasSelectedList: [],
initResidentList: [], //重置需要的居民列表 initResidentList: [], //重置需要的居民列表
initResidentIdList: [], //重置需要的id initResidentIdList: [], //重置需要的id
selectPatientType: 1,
} }
}, },
created() { created() {
......
...@@ -136,7 +136,8 @@ ...@@ -136,7 +136,8 @@
:patientIdList="initialPatientIdList" :patientIdList="initialPatientIdList"
:oldPatientIdList="initialPatientIdList" :oldPatientIdList="initialPatientIdList"
@closeSelectPatient="closeSelectPatient" @closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)"> @sureSelectPatient="sureSelectPatient(arguments)"
:selectPatientType="selectPatientType">
</select-patient> </select-patient>
<add-patient-time <add-patient-time
:showThisPage="showAddPatientTime" :showThisPage="showAddPatientTime"
...@@ -151,7 +152,8 @@ ...@@ -151,7 +152,8 @@
//结束随访dialog //结束随访dialog
import FinishFollowup from '@/views/followup/plan-manage/dialog/finish-followup'; import FinishFollowup from '@/views/followup/plan-manage/dialog/finish-followup';
//添加居民 //添加居民
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient'; // import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import SelectPatient from '@/views/patients/labels-manage/dialog/select-patitents';
//添加居民选择随访时间 //添加居民选择随访时间
import addPatientTime from '@/views/followup/plan-manage/dialog/add-patient-time'; import addPatientTime from '@/views/followup/plan-manage/dialog/add-patient-time';
...@@ -189,6 +191,7 @@ ...@@ -189,6 +191,7 @@
statusTotal: null, //每种状态的总数 statusTotal: null, //每种状态的总数
planTitle: '', //随访计划名称 planTitle: '', //随访计划名称
residentCrumb: [], //面包屑 residentCrumb: [], //面包屑
selectPatientType: 1,
getRowKeys(row) { getRowKeys(row) {
return row.patientId; return row.patientId;
}, },
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
:inline="true" :inline="true"
class="select-width" class="select-width"
size="small"> size="small">
<div style="display: flex;justify-content: flex-end;margin-bottom: 10px"> <div style="display: flex;justify-content: flex-end;margin-bottom: 15px">
<el-button plain size="small" @click="goAddPatient">+ 新增居民</el-button> <el-button plain size="small" @click="goAddPatient">+ 新增居民</el-button>
</div> </div>
<div style="display: flex;justify-content: space-between;"> <div style="display: flex;justify-content: space-between;">
...@@ -35,11 +35,12 @@ ...@@ -35,11 +35,12 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item style="width: 140px;" prop="ageRange"> <el-form-item style="width: 100px;" prop="ageRange">
<el-select <el-select
v-model="searchData.ageRange" v-model="searchData.ageRange"
multiple multiple
collapse-tags collapse-tags
filterable
placeholder="请选择年龄段" placeholder="请选择年龄段"
clearable> clearable>
<el-option <el-option
...@@ -55,7 +56,7 @@ ...@@ -55,7 +56,7 @@
v-model="searchData.diseaseId" v-model="searchData.diseaseId"
multiple multiple
collapse-tags collapse-tags
style="width: 200px;" style="width: 150px;"
placeholder="请选择诊断" placeholder="请选择诊断"
clearable> clearable>
<el-option <el-option
...@@ -72,7 +73,7 @@ ...@@ -72,7 +73,7 @@
multiple multiple
collapse-tags collapse-tags
filterable filterable
style="width: 200px;" style="width: 150px;"
placeholder="请选择或搜索分组" placeholder="请选择或搜索分组"
clearable> clearable>
<el-option <el-option
...@@ -83,12 +84,29 @@ ...@@ -83,12 +84,29 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="fuPlanIdList" v-if="selectPatientType == 1">
<el-select
v-model="searchData.fuPlanIdList"
multiple
collapse-tags
filterable
style="width: 150px;"
placeholder="请选择随访计划"
clearable>
<el-option
v-for="(item,index) in fuPlanOptions"
:key="index"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="searchCondition"> <el-form-item prop="searchCondition">
<el-input <el-input
v-model="searchData.searchCondition" v-model="searchData.searchCondition"
placeholder="请输入姓名,手机号,身份证" placeholder="请输入姓名,手机号,身份证"
clearable clearable
style="width:200px;"> style="width:150px;">
<!--<i slot="prefix" class="el-input__icon el-icon-search" @click="searchHandler" style="cursor: pointer"></i>--> <!--<i slot="prefix" class="el-input__icon el-icon-search" @click="searchHandler" style="cursor: pointer"></i>-->
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -104,7 +122,7 @@ ...@@ -104,7 +122,7 @@
ref="multipleTable" ref="multipleTable"
center center
style="width: 100%;margin-top: 10px;" style="width: 100%;margin-top: 10px;"
height="280" height="250"
:row-key="getRowKeys" :row-key="getRowKeys"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column <el-table-column
...@@ -156,8 +174,18 @@ ...@@ -156,8 +174,18 @@
width="180" width="180"
:show-overflow-tooltip="true"> :show-overflow-tooltip="true">
</el-table-column> </el-table-column>
<el-table-column
v-if="selectPatientType == 1"
prop="fuPlanName"
label="随访计划"
align="center"
width="180"
:show-overflow-tooltip="true">
</el-table-column>
</el-table> </el-table>
<el-row type="flex" justify="end" class="margin-top15"> <el-row type="flex" justify="space-between" align="middle" class="margin-top15">
<!--<span>已选:{{newSelects.length}}</span>-->
<span></span>
<el-pagination <el-pagination
background background
v-if="patientsData.length" v-if="patientsData.length"
...@@ -182,6 +210,7 @@ ...@@ -182,6 +210,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 } from '@/utils/patients/patientsapi'
import { getPlanList } from '@/utils/followup/followapis'
export default { export default {
components: {}, components: {},
name: "select-patient", name: "select-patient",
...@@ -198,6 +227,7 @@ ...@@ -198,6 +227,7 @@
ageRange: [], ageRange: [],
diseaseId: [], diseaseId: [],
labelId: [], labelId: [],
fuPlanIdList: [],
searchCondition: '' searchCondition: ''
}, },
paginationSet: { paginationSet: {
...@@ -218,6 +248,7 @@ ...@@ -218,6 +248,7 @@
labelOptions: [ labelOptions: [
// {labelId: '', labelName: '分组'} // {labelId: '', labelName: '分组'}
], ],
fuPlanOptions: [],
newSelects: [], //新选中的人 newSelects: [], //新选中的人
getRowKeys(row) { getRowKeys(row) {
return row.patientId; return row.patientId;
...@@ -229,13 +260,13 @@ ...@@ -229,13 +260,13 @@
patientIdList: Array,// 确定已经选过的居民 patientIdList: Array,// 确定已经选过的居民
oldPatientIdList: Array,// 确定已经选过的居民 oldPatientIdList: Array,// 确定已经选过的居民
selectPatientType: Number, //获取居民列表所需字段,随访是1,分组是2,患教是3 selectPatientType: Number, //获取居民列表所需字段,随访是1,分组是2,患教是3
fuPlanIdList: { // fuPlanIdList: {
required: false, // required: false,
type: Array, // type: Array,
default: function () { // default: function () {
return []; // return [];
} // }
}, //获取居民列表所需字段,若是随访,则需要传值 // }, //获取居民列表所需字段,若是随访,则需要传值
}, },
watch: { watch: {
isShowSelectPatient(val){ isShowSelectPatient(val){
...@@ -254,7 +285,7 @@ ...@@ -254,7 +285,7 @@
// {no: '', value: '年龄范围'} // {no: '', value: '年龄范围'}
]; ];
this.ageOptions = this.ageOptions.concat(res.data.P057);//年龄段 this.ageOptions = this.ageOptions.concat(res.data.P057);//年龄段
}) });
// 获取所有疾病 // 获取所有疾病
getDiseasesList().then(res=>{ getDiseasesList().then(res=>{
...@@ -262,7 +293,7 @@ ...@@ -262,7 +293,7 @@
// {diseaseId: '', diseaseName: '基础疾病'} // {diseaseId: '', diseaseName: '基础疾病'}
]; ];
this.diseaseOptions = this.diseaseOptions.concat(res.data); this.diseaseOptions = this.diseaseOptions.concat(res.data);
}) });
// 获取所有分组 // 获取所有分组
getLabelList({type: 1}).then(res=>{ getLabelList({type: 1}).then(res=>{
...@@ -270,6 +301,15 @@ ...@@ -270,6 +301,15 @@
// {labelId: '', labelName: '分组'} // {labelId: '', labelName: '分组'}
] ]
this.labelOptions = this.labelOptions.concat(res.data.labelNameList); this.labelOptions = this.labelOptions.concat(res.data.labelNameList);
});
// 获取随访计划列表
getPlanList({
pageNo: -1,
}).then(res => {
if(res.code == '000000') {
this.fuPlanOptions = res.data.fPlanDtoList;
}
}) })
} }
}, },
...@@ -293,7 +333,7 @@ ...@@ -293,7 +333,7 @@
searchCondition:this.searchData.searchCondition, searchCondition:this.searchData.searchCondition,
srvPackageId:this.srvPackageId, srvPackageId:this.srvPackageId,
addType: this.selectPatientType, //随访是1,分组是2,患教是3 addType: this.selectPatientType, //随访是1,分组是2,患教是3
fuPlanIdList: this.fuPlanIdList, fuPlanIdList: this.searchData.fuPlanIdList || [],
} }
getPatientInfoList(data).then(res=>{ getPatientInfoList(data).then(res=>{
if(res.data.patientList){ if(res.data.patientList){
...@@ -443,7 +483,7 @@ ...@@ -443,7 +483,7 @@
.el-dialog__wrapper { .el-dialog__wrapper {
overflow: hidden; overflow: hidden;
.el-dialog--center { .el-dialog--center {
height: 580px; /*height: 580px;*/
.el-dialog__body{ .el-dialog__body{
padding: 10px 25px 15px; padding: 10px 25px 15px;
} }
...@@ -480,7 +520,17 @@ ...@@ -480,7 +520,17 @@
margin-top: 15px; margin-top: 15px;
} }
.el-form-item--mini.el-form-item, .el-form-item--small.el-form-item{ .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item{
margin-bottom: 8px; margin-bottom: 5px;
}
.el-select__tags-text{
display: inline-block;
max-width: 86px;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.el-select .el-tag__close.el-icon-close{
top: -5px;
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册