提交 54d0d3a1 编写于 作者: 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
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<div> <div>
<el-form-item style="width: 100px;" prop="sex"> <el-form-item style="width: 100px;" prop="sex">
<el-select <el-select
style="width: 100px;"
v-model="searchData.sex" v-model="searchData.sex"
placeholder="请选择性别" placeholder="请选择性别"
clearable> clearable>
...@@ -42,6 +43,7 @@ ...@@ -42,6 +43,7 @@
collapse-tags collapse-tags
filterable filterable
placeholder="请选择年龄段" placeholder="请选择年龄段"
style="width: 100px;"
clearable> clearable>
<el-option <el-option
v-for="(item,index) in ageOptions" v-for="(item,index) in ageOptions"
...@@ -51,7 +53,7 @@ ...@@ -51,7 +53,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="diseaseId"> <el-form-item prop="diseaseId" style="width: 150px;">
<el-select <el-select
v-model="searchData.diseaseId" v-model="searchData.diseaseId"
multiple multiple
...@@ -67,7 +69,7 @@ ...@@ -67,7 +69,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="labelId"> <el-form-item prop="labelId" style="width: 150px;">
<el-select <el-select
v-model="searchData.labelId" v-model="searchData.labelId"
multiple multiple
...@@ -84,7 +86,7 @@ ...@@ -84,7 +86,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="fuPlanIdList" v-if="selectPatientType == 1"> <el-form-item prop="fuPlanIdList" v-if="selectPatientType == 1" style="width: 150px;">
<el-select <el-select
v-model="searchData.fuPlanIdList" v-model="searchData.fuPlanIdList"
multiple multiple
...@@ -101,7 +103,7 @@ ...@@ -101,7 +103,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="searchCondition"> <el-form-item prop="searchCondition" style="width:150px;">
<el-input <el-input
v-model="searchData.searchCondition" v-model="searchData.searchCondition"
placeholder="请输入姓名,手机号,身份证" placeholder="请输入姓名,手机号,身份证"
...@@ -162,7 +164,7 @@ ...@@ -162,7 +164,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="showDiseaseNames" prop="showDiseaseNames"
label="基础疾病" label="诊断"
align="center" align="center"
width="180" width="180"
:show-overflow-tooltip="true"> :show-overflow-tooltip="true">
...@@ -204,6 +206,18 @@ ...@@ -204,6 +206,18 @@
<el-button type="primary" size="small" @click="sureClick">确 定</el-button> <el-button type="primary" size="small" @click="sureClick">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog
class="reload-label-modal"
:visible.sync="showReloadModal"
width="320px"
:show-close="false"
:close-on-click-modal="false"
center>
<p class="tips">您刚才跳转到新增居民页面进行新增居民,请点击下方按钮刷新数据</p>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleReload">重新加载</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -251,6 +265,7 @@ ...@@ -251,6 +265,7 @@
fuPlanOptions: [], fuPlanOptions: [],
newSelects: [], //新选中的人 newSelects: [], //新选中的人
oldPatientList: [], oldPatientList: [],
showReloadModal: false,
getRowKeys(row) { getRowKeys(row) {
return row.patientId; return row.patientId;
}, },
...@@ -444,9 +459,16 @@ ...@@ -444,9 +459,16 @@
this.getPatientsList(); this.getPatientsList();
}, },
goAddPatient() { goAddPatient() {
this.$router.push({ // this.$router.push({
path: '/patients-manage/new-manage/new-patient' // path: '/patients-manage/new-manage/new-patient'
}) // })
let routeData = this.$router.resolve({ path: '/patients-manage/new-manage/new-patient' });
window.open(routeData.href, '_blank');
this.showReloadModal = true;
},
handleReload() {
this.getPatientsList();
this.showReloadModal = false;
}, },
ageDate(val){ ageDate(val){
let ageObj; let ageObj;
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
v-model="diseaseIdList" v-model="diseaseIdList"
multiple multiple
@change="changeDiseases" @change="changeDiseases"
:popper-append-to-body="false"
placeholder="请选择居民疾病诊断"> placeholder="请选择居民疾病诊断">
<el-option <el-option
v-for="(item, index) in diseasesList" v-for="(item, index) in diseasesList"
...@@ -57,6 +58,7 @@ ...@@ -57,6 +58,7 @@
v-model="labelIdList" v-model="labelIdList"
multiple multiple
@change="changeLabels" @change="changeLabels"
:popper-append-to-body="false"
placeholder="请选择居民分组"> placeholder="请选择居民分组">
<el-option <el-option
v-for="(item, index) in labelsList" v-for="(item, index) in labelsList"
...@@ -92,6 +94,7 @@ ...@@ -92,6 +94,7 @@
value="yyyy-MM-dd" value="yyyy-MM-dd"
@change="getAge" @change="getAge"
:picker-options="setPickerOption" :picker-options="setPickerOption"
:editable="false"
style="width:250px" style="width:250px"
clearable> clearable>
</el-date-picker> </el-date-picker>
...@@ -119,6 +122,7 @@ ...@@ -119,6 +122,7 @@
<el-select <el-select
v-model="patientInfoForm.permanentResidence" v-model="patientInfoForm.permanentResidence"
placeholder="请选择居民常驻类型" placeholder="请选择居民常驻类型"
:popper-append-to-body="false"
clearable> clearable>
<el-option <el-option
v-for="(item, index) in residenceList" v-for="(item, index) in residenceList"
...@@ -134,6 +138,7 @@ ...@@ -134,6 +138,7 @@
<el-select <el-select
v-model="patientInfoForm.nationality" v-model="patientInfoForm.nationality"
placeholder="请选择民族" placeholder="请选择民族"
:popper-append-to-body="false"
clearable> clearable>
<el-option <el-option
v-for="(item, index) in nationsList" v-for="(item, index) in nationsList"
...@@ -300,7 +305,7 @@ ...@@ -300,7 +305,7 @@
customLabels: [], customLabels: [],
idNo: '', idNo: '',
birthTime: '', birthTime: '',
age: '', age: null,
sex: null, sex: null,
permanentResidence: '', permanentResidence: '',
nationality: '', nationality: '',
...@@ -415,6 +420,9 @@ ...@@ -415,6 +420,9 @@
this.initForm(); this.initForm();
} }
}, },
// 'patientInfoForm.age'(val) {
// console.log('年龄',val)
// },
checkForm(val){ checkForm(val){
if(val){// 触发校验 if(val){// 触发校验
this.saveInfoData(); this.saveInfoData();
...@@ -451,7 +459,7 @@ ...@@ -451,7 +459,7 @@
customLabels: [], customLabels: [],
idNo: '', idNo: '',
birthTime: '', birthTime: '',
age: '', age: null,
sex: null, sex: null,
permanentResidence: '', permanentResidence: '',
nationality: '', nationality: '',
...@@ -477,7 +485,7 @@ ...@@ -477,7 +485,7 @@
} }
}); });
getLabelList({ getLabelList({
type: 1, type: 2,
token: this._token, token: this._token,
}).then((data) => { }).then((data) => {
if(data.code == '000000') { if(data.code == '000000') {
...@@ -753,6 +761,9 @@ ...@@ -753,6 +761,9 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.screenSet{
overflow: visible!important;
}
.el-input{ .el-input{
width: 250px; width: 250px;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
:curmbSecond="curmbSecond"> :curmbSecond="curmbSecond">
</bread-crumb> </bread-crumb>
<section class="not-complete-content screenSet"> <section class="not-complete-content screenSet">
<h1 class="page-title">我的居民:共{{pagination.totalRows}}</h1> <h1 class="page-title">我的居民:共{{pagination.totalRows ? pagination.totalRows : 0}}</h1>
<div class="search-div"> <div class="search-div">
<div class="search-input"> <div class="search-input">
<el-form :model="searchData" ref="searchData" :inline="true" label-width="100px"> <el-form :model="searchData" ref="searchData" :inline="true" label-width="100px">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册