修改
This commit is contained in:
parent
2632792567
commit
a856d12426
@ -69,7 +69,7 @@ import {
|
||||
selectDiseaseCount
|
||||
} from "@/api/system/specialDiseaseRoute";
|
||||
export default {
|
||||
props: ['methods', 'modal'],
|
||||
props: ['methods', 'modal', 'servicePackageId'],
|
||||
name: "DepartmentList",
|
||||
data() {
|
||||
return {
|
||||
@ -216,6 +216,10 @@ export default {
|
||||
method = getDepartmentList(this.querydepartmen)
|
||||
} else if (this.methods == 'selectDiseaseCount') {
|
||||
method = selectDiseaseCount(this.querydepartmen)
|
||||
} else if (this.methods == 'selectDiseaseCounttwo') {
|
||||
this.querydepartmen.releaseStatus = 'PUBLISHED'
|
||||
this.querydepartmen.servicePackageId = this.servicePackageId
|
||||
method = selectDiseaseCount(this.querydepartmen)
|
||||
}
|
||||
this.DepartmentoList = []
|
||||
method.then(response => {
|
||||
|
||||
@ -5,20 +5,10 @@
|
||||
'请选择专病管理路径' }}</el-button>
|
||||
<el-dialog title="专病管理路径选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<div class="left" ref="box">
|
||||
<div class="name">科室名称</div>
|
||||
<div style="padding: 10px 0;">
|
||||
<el-input v-model="departmentName" placeholder="请输入科室名称" clearable @keyup.enter.native="handleQuery" />
|
||||
</div>
|
||||
<div class="listitem" v-for="(item, index) in DepartmentoList" :key="index"
|
||||
@click="clickDepartmenitem(item)">
|
||||
<div :class="queryParams.departmentId == item.id ? 'allactive' : 'all'">
|
||||
{{ item.departmentName }}
|
||||
</div>
|
||||
<span class="count">{{ item.countNum }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<el-col :span="6" :xs="24">
|
||||
<DepartmentList ref="DepartmentList" :modal="true" @clickdepartment="clickdepartment"
|
||||
:servicePackageId="servicePackageId" :methods="'selectDiseaseCounttwo'">
|
||||
</DepartmentList>
|
||||
</el-col>
|
||||
<el-col :span="18">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||
@ -73,7 +63,11 @@ import {
|
||||
listSpecialDiseaseRoute,
|
||||
selectDiseaseCount,
|
||||
} from "@/api/system/specialDiseaseRoute";
|
||||
import DepartmentList from '../../components/DepartmentList.vue'
|
||||
export default {
|
||||
components: {
|
||||
DepartmentList
|
||||
},
|
||||
props: ['routeId', 'routeName', 'servicePackageId'],
|
||||
name: "SpecialDiseaseRoute",
|
||||
data() {
|
||||
@ -116,24 +110,19 @@ export default {
|
||||
},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
DepartmentoList: [],
|
||||
departmentName: '',
|
||||
handleselectName: '',
|
||||
handleselectId: '',
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.queryParams.servicePackageId = this.servicePackageId
|
||||
this.getList();
|
||||
// this.getList();
|
||||
},
|
||||
mounted() {
|
||||
this.handleselectId = this.routeId
|
||||
this.handleselectName = this.routeName
|
||||
},
|
||||
watch: {
|
||||
departmentName(val) {
|
||||
this.infolists();
|
||||
},
|
||||
routeId(newValue, oldValue) {
|
||||
this.handleselectId = newValue;
|
||||
},
|
||||
@ -148,6 +137,17 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//接收科室列表传值
|
||||
clickdepartment(item) {
|
||||
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
||||
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
|
||||
this.queryParams.departmentId = item.itemid
|
||||
this.queryParams.departmentName = item.itemName
|
||||
if (item.hospitalAgencyId) {
|
||||
this.getList();
|
||||
}
|
||||
this.$forceUpdate()
|
||||
},
|
||||
nohandleselect() {
|
||||
this.handleselectId = ''
|
||||
this.handleselectName = ''
|
||||
@ -159,17 +159,6 @@ export default {
|
||||
this.$emit("on-template", { routeId: item.id, routeName: item.routeName });
|
||||
this.classificationOpen = false
|
||||
},
|
||||
clickDepartmenitem(item) {
|
||||
this.loading = true;
|
||||
this.queryParams.departmentId = item.id;
|
||||
this.getList();
|
||||
},
|
||||
//科室
|
||||
infolists() {
|
||||
selectDiseaseCount(this.departmentName, 'PUBLISHED', this.queryParams.servicePackageId).then((res) => {
|
||||
this.DepartmentoList = res.data;
|
||||
});
|
||||
},
|
||||
/** 查询专病路径信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
@ -179,7 +168,6 @@ export default {
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.infolists();
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
@ -192,6 +180,7 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user