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({ return request({
url: `/system/specialDiseaseRoute/departmentRouteCount?departmentName=${departmentName}&releaseStatus=PUBLISHED&servicePackageId=${servicePackageId}`, url: `/system/specialDiseaseRoute/departmentRouteCount?departmentName=${departmentName}&releaseStatus=${releaseStatus}&servicePackageId=${servicePackageId}`,
method: 'get', method: 'get',
}) })

View File

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

View File

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

View File

@ -30,7 +30,7 @@
</el-descriptions> </el-descriptions>
<el-form :model="form" :rules="rules" ref="form" label-width="110px" class="demo-ruleForm" :inline="true" <el-form :model="form" :rules="rules" ref="form" label-width="110px" class="demo-ruleForm" :inline="true"
style="padding-left:40px"> style="padding-left:40px">
<el-form-item label="健康管理师" prop="healthManageId"> <el-form-item label="健康管理师" required>
<el-select v-model="form.record.healthManageId" filterable placeholder="请选择健康管理师" <el-select v-model="form.record.healthManageId" filterable placeholder="请选择健康管理师"
style="width:300px" clearable> style="width:300px" clearable>
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName" <el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
@ -94,7 +94,8 @@
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"> :servicePackageId="signPackage.servicePackageId" :routeName="route.routeName"
:routeId="route.routeId">
</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">
@ -236,6 +237,8 @@ export default {
this.route.routeName = item.routeName this.route.routeName = item.routeName
}, },
tappackage(id) { tappackage(id) {
this.route.routeId = ''
this.route.routeName = ''
let item = this.packagelist.find(e => e.id == id) let item = this.packagelist.find(e => e.id == id)
this.signPackage = { ...this.signPackage, ...item } this.signPackage = { ...this.signPackage, ...item }
let datetime = new Date(); let datetime = new Date();

View File

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