This commit is contained in:
2024-04-16 15:37:25 +08:00
parent 685f4ead43
commit 5bb5eceb2c
5 changed files with 14 additions and 15 deletions

View File

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

View File

@ -2,7 +2,6 @@
function obtainendtime(starttime, item) {
let currentDate = new Date(starttime)
let nextDate
console.log(item)
if (item.packageTermUnit == '年') {
currentDate.setFullYear(currentDate.getFullYear() + Number(item.packageTerm));
currentDate.setDate(currentDate.getDate() - 1);

View File

@ -124,30 +124,27 @@ export default {
},
created() {
this.queryParams.servicePackageId = this.servicePackageId
this.handleselectId = this.routeId
this.handleselectName = this.routeName
this.getList();
},
mounted() {
this.handleselectId = this.routeId
this.handleselectName = this.routeName
},
watch: {
departmentName(val) {
this.infolists();
},
routeId(newValue, oldValue) {
if (newValue) {
this.handleselectId = newValue;
}
this.handleselectId = newValue;
},
servicePackageId(newValue, oldValue) {
if (newValue) {
this.queryParams.servicePackageId = newValue;
this.getList();
}
},
routeName(newValue, oldValue) {
if (newValue) {
this.handleselectName = newValue;
}
this.handleselectName = newValue;
}
},
methods: {
@ -169,7 +166,7 @@ export default {
},
//
infolists() {
selectDiseaseCount(this.departmentName, this.queryParams.servicePackageId).then((res) => {
selectDiseaseCount(this.departmentName, 'PUBLISHED', this.queryParams.servicePackageId).then((res) => {
this.DepartmentoList = res.data;
});
},

View File

@ -30,7 +30,7 @@
</el-descriptions>
<el-form :model="form" :rules="rules" ref="form" label-width="110px" class="demo-ruleForm" :inline="true"
style="padding-left:40px">
<el-form-item label="健康管理师" prop="healthManageId">
<el-form-item label="健康管理师" required>
<el-select v-model="form.record.healthManageId" filterable placeholder="请选择健康管理师"
style="width:300px" clearable>
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
@ -94,7 +94,8 @@
style="padding-left:40px">
<el-form-item label="专病管理路径" prop="routeId">
<specialDiseaseRoute @on-template="ontemplate" v-if="signPackage.servicePackageId"
:servicePackageId="signPackage.servicePackageId">
:servicePackageId="signPackage.servicePackageId" :routeName="route.routeName"
:routeId="route.routeId">
</specialDiseaseRoute>
<el-button size="small" @click="noservicePackageId" v-else
style="width: 200px;font-size:14px;color:#C0C4CC;text-align:left">
@ -236,6 +237,8 @@ export default {
this.route.routeName = item.routeName
},
tappackage(id) {
this.route.routeId = ''
this.route.routeName = ''
let item = this.packagelist.find(e => e.id == id)
this.signPackage = { ...this.signPackage, ...item }
let datetime = new Date();

View File

@ -305,7 +305,7 @@ export default {
},
//
infolists() {
selectDiseaseCount(this.departmentName).then((res) => {
selectDiseaseCount(this.departmentName, '', '').then((res) => {
this.DepartmentoList = res.data;
});
},