This commit is contained in:
2024-07-09 16:59:42 +08:00
parent 2632792567
commit a856d12426
2 changed files with 26 additions and 33 deletions

View File

@ -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 => {

View File

@ -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();
},