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 selectDiseaseCount
} from "@/api/system/specialDiseaseRoute"; } from "@/api/system/specialDiseaseRoute";
export default { export default {
props: ['methods', 'modal'], props: ['methods', 'modal', 'servicePackageId'],
name: "DepartmentList", name: "DepartmentList",
data() { data() {
return { return {
@ -216,6 +216,10 @@ export default {
method = getDepartmentList(this.querydepartmen) method = getDepartmentList(this.querydepartmen)
} else if (this.methods == 'selectDiseaseCount') { } else if (this.methods == 'selectDiseaseCount') {
method = selectDiseaseCount(this.querydepartmen) method = selectDiseaseCount(this.querydepartmen)
} else if (this.methods == 'selectDiseaseCounttwo') {
this.querydepartmen.releaseStatus = 'PUBLISHED'
this.querydepartmen.servicePackageId = this.servicePackageId
method = selectDiseaseCount(this.querydepartmen)
} }
this.DepartmentoList = [] this.DepartmentoList = []
method.then(response => { method.then(response => {

View File

@ -5,20 +5,10 @@
'请选择专病管理路径' }}</el-button> '请选择专病管理路径' }}</el-button>
<el-dialog title="专病管理路径选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse"> <el-dialog title="专病管理路径选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"> <el-col :span="6" :xs="24">
<div class="left" ref="box"> <DepartmentList ref="DepartmentList" :modal="true" @clickdepartment="clickdepartment"
<div class="name">科室名称</div> :servicePackageId="servicePackageId" :methods="'selectDiseaseCounttwo'">
<div style="padding: 10px 0;"> </DepartmentList>
<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> </el-col>
<el-col :span="18"> <el-col :span="18">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
@ -73,7 +63,11 @@ import {
listSpecialDiseaseRoute, listSpecialDiseaseRoute,
selectDiseaseCount, selectDiseaseCount,
} from "@/api/system/specialDiseaseRoute"; } from "@/api/system/specialDiseaseRoute";
import DepartmentList from '../../components/DepartmentList.vue'
export default { export default {
components: {
DepartmentList
},
props: ['routeId', 'routeName', 'servicePackageId'], props: ['routeId', 'routeName', 'servicePackageId'],
name: "SpecialDiseaseRoute", name: "SpecialDiseaseRoute",
data() { data() {
@ -116,24 +110,19 @@ export default {
}, },
// //
rules: {}, rules: {},
DepartmentoList: [],
departmentName: '',
handleselectName: '', handleselectName: '',
handleselectId: '', handleselectId: '',
}; };
}, },
created() { created() {
this.queryParams.servicePackageId = this.servicePackageId this.queryParams.servicePackageId = this.servicePackageId
this.getList(); // this.getList();
}, },
mounted() { mounted() {
this.handleselectId = this.routeId this.handleselectId = this.routeId
this.handleselectName = this.routeName this.handleselectName = this.routeName
}, },
watch: { watch: {
departmentName(val) {
this.infolists();
},
routeId(newValue, oldValue) { routeId(newValue, oldValue) {
this.handleselectId = newValue; this.handleselectId = newValue;
}, },
@ -148,6 +137,17 @@ export default {
} }
}, },
methods: { 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() { nohandleselect() {
this.handleselectId = '' this.handleselectId = ''
this.handleselectName = '' this.handleselectName = ''
@ -159,17 +159,6 @@ export default {
this.$emit("on-template", { routeId: item.id, routeName: item.routeName }); this.$emit("on-template", { routeId: item.id, routeName: item.routeName });
this.classificationOpen = false 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() { getList() {
this.loading = true; this.loading = true;
@ -179,7 +168,6 @@ export default {
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
this.infolists();
}, },
// //
cancel() { cancel() {
@ -192,6 +180,7 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.$refs.DepartmentList.resetQuery()
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },