|
@@ -3,7 +3,14 @@
|
|
|
<crumbs title="查体模板维护">
|
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
|
<el-form-item label="科室名称:">
|
|
|
- <el-input size="mini" v-model="filter.proName" placeholder="科室名称"></el-input>
|
|
|
+ <el-select v-model="filter.deptId" clearable placeholder="请选择" size="mini">
|
|
|
+ <el-option
|
|
|
+ v-for="item in deptList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button size="mini" @click="filterDatas">确认</el-button>
|
|
@@ -48,7 +55,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" @click="toEditProduct(scope.row)">修改</el-button>
|
|
|
<span style="margin:0 3px;">|</span>
|
|
|
- <el-button type="text" size="small" class="delete" @click="showDelDialog(scope.row.id)">删除</el-button>
|
|
|
+ <el-button type="text" size="small" class="delete" @click="showDelDialog(scope.row.deptId)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -82,17 +89,19 @@
|
|
|
return {
|
|
|
list: [], //常见症状列表
|
|
|
cacheData: {},
|
|
|
+ deptList: [], //科室下拉列表
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
total: 0,
|
|
|
linkIn:[],
|
|
|
pays:[],
|
|
|
filter: {
|
|
|
- proName: ''
|
|
|
+ deptId: ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getDeptShortListSearh()
|
|
|
this.getDataList();
|
|
|
},
|
|
|
methods: {
|
|
@@ -100,7 +109,7 @@
|
|
|
this.getPhysicalExamTempByDepId('isEdit', row)
|
|
|
},
|
|
|
getPhysicalExamTempByDepId(type, row) {
|
|
|
- const param = {'deptId': row.id,};
|
|
|
+ const param = {'deptId': row.deptId,};
|
|
|
api.getPhysicalExamTempByDepId(param).then((res)=>{
|
|
|
const {code,data,msg} = res.data;
|
|
|
if(code=='0'){
|
|
@@ -119,6 +128,15 @@
|
|
|
this.currentPage = 1;
|
|
|
this.getDataList();
|
|
|
},
|
|
|
+ getDeptShortListSearh() {
|
|
|
+ api.getDeptShortListSearh().then((res) => {
|
|
|
+ const { data } = res
|
|
|
+ if(data.code == 0) {
|
|
|
+ this.deptList = data.data
|
|
|
+ console.log('this.deptList', this.deptList)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getDataList() {
|
|
|
const param = this.getFilterItems();
|
|
|
// const param = {
|
|
@@ -139,7 +157,7 @@
|
|
|
},
|
|
|
getFilterItems() {
|
|
|
const param = {
|
|
|
- deptName: this.filter.proName,
|
|
|
+ deptId: this.filter.deptId,
|
|
|
current: this.currentPage,
|
|
|
size: this.pageSize
|
|
|
};
|
|
@@ -171,9 +189,9 @@
|
|
|
resolve();
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
- showDelDialog(id){
|
|
|
+ showDelDialog(deptId){
|
|
|
this.showConfirmDialog('是否删除该科室查体模板?',()=>{
|
|
|
- api.delPhysicalExamTemp({'deptId':id}).then((res)=>{
|
|
|
+ api.delPhysicalExamTemp({'deptId':deptId}).then((res)=>{
|
|
|
if(res.data.code=='0'){
|
|
|
this.warning(res.data.msg||'操作成功','success');
|
|
|
this.getDataList();
|