This commit is contained in:
2024-04-16 15:15:06 +08:00
parent d97af31c58
commit 876132a32c
4 changed files with 16 additions and 13 deletions

View File

@ -43,9 +43,9 @@ export function delSpecialDiseaseRoute(id) {
}) })
} }
//科室 //科室
export function selectDiseaseCount(departmentName) { export function selectDiseaseCount(departmentName, servicePackageId) {
return request({ return request({
url: `/system/specialDiseaseRoute/departmentRouteCount?departmentName=${departmentName}&releaseStatus=PUBLISHED`, url: `/system/specialDiseaseRoute/departmentRouteCount?departmentName=${departmentName}&releaseStatus=PUBLISHED&servicePackageId=${servicePackageId}`,
method: 'get', method: 'get',
}) })

View File

@ -50,11 +50,6 @@
{{ scope.row.routeClassify == 'SPECIAL_DIEASE_MANAGE_PATH' ? '专病管理路径' : '' }} {{ scope.row.routeClassify == 'SPECIAL_DIEASE_MANAGE_PATH' ? '专病管理路径' : '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="发布状态" align="center" prop="releaseStatus">
<template slot-scope="scope">
{{ scope.row.releaseStatus == 'PUBLISHED' ? '已发布' : '未发布' }}
</template>
</el-table-column>
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" /> <el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
@ -79,7 +74,7 @@ import {
selectDiseaseCount, selectDiseaseCount,
} from "@/api/system/specialDiseaseRoute"; } from "@/api/system/specialDiseaseRoute";
export default { export default {
props: ['routeId', 'routeName'], props: ['routeId', 'routeName', 'servicePackageId'],
name: "SpecialDiseaseRoute", name: "SpecialDiseaseRoute",
data() { data() {
return { return {
@ -117,6 +112,7 @@ export default {
suitRange: null, suitRange: null,
routeSort: null, routeSort: null,
routeRemark: null, routeRemark: null,
servicePackageId: null,
}, },
// //
rules: {}, rules: {},
@ -127,11 +123,12 @@ export default {
}; };
}, },
created() { created() {
this.queryParams.servicePackageId = this.servicePackageId
this.handleselectId = this.routeId
this.handleselectName = this.routeName
this.getList(); this.getList();
}, },
mounted() { mounted() {
this.handleselectId = this.routeId
this.handleselectName = this.routeName
}, },
watch: { watch: {
departmentName(val) { departmentName(val) {
@ -142,6 +139,11 @@ export default {
this.handleselectId = newValue; this.handleselectId = newValue;
} }
}, },
servicePackageId(newValue, oldValue) {
if (newValue) {
this.queryParams.servicePackageId = newValue;
}
},
routeName(newValue, oldValue) { routeName(newValue, oldValue) {
if (newValue) { if (newValue) {
this.handleselectName = newValue; this.handleselectName = newValue;
@ -167,8 +169,7 @@ export default {
}, },
// //
infolists() { infolists() {
this.DepartmentoList.releaseStatus = 'PUBLISHED' selectDiseaseCount(this.departmentName, this.queryParams.servicePackageId).then((res) => {
selectDiseaseCount(this.departmentName).then((res) => {
this.DepartmentoList = res.data; this.DepartmentoList = res.data;
}); });
}, },

View File

@ -101,6 +101,7 @@
:inline="true" style="padding-left:40px"> :inline="true" style="padding-left:40px">
<el-form-item label="专病管理路径" prop="routeId"> <el-form-item label="专病管理路径" prop="routeId">
<specialDiseaseRoute @on-template="onroute" :routeId="signPackage.routeId" <specialDiseaseRoute @on-template="onroute" :routeId="signPackage.routeId"
v-if="signPackage.servicePackageId" :servicePackageId="signPackage.servicePackageId"
:routeName="signPackage.routeName"> :routeName="signPackage.routeName">
</specialDiseaseRoute> </specialDiseaseRoute>
</el-form-item> </el-form-item>

View File

@ -93,7 +93,8 @@
<el-form :model="route" :rules="rules" ref="route" label-width="110px" class="demo-ruleForm" :inline="true" <el-form :model="route" :rules="rules" ref="route" label-width="110px" class="demo-ruleForm" :inline="true"
style="padding-left:40px"> style="padding-left:40px">
<el-form-item label="专病管理路径" prop="routeId"> <el-form-item label="专病管理路径" prop="routeId">
<specialDiseaseRoute @on-template="ontemplate" v-if="signPackage.servicePackageId"> <specialDiseaseRoute @on-template="ontemplate" v-if="signPackage.servicePackageId"
:servicePackageId="signPackage.servicePackageId">
</specialDiseaseRoute> </specialDiseaseRoute>
<el-button size="small" @click="noservicePackageId" v-else <el-button size="small" @click="noservicePackageId" v-else
style="width: 200px;font-size:14px;color:#C0C4CC;text-align:left"> style="width: 200px;font-size:14px;color:#C0C4CC;text-align:left">