Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
shidongli 2024-04-18 16:18:39 +08:00
commit 4bd8187770
8 changed files with 46 additions and 43 deletions

View File

@ -43,9 +43,9 @@ export function delSpecialDiseaseRoute(id) {
}) })
} }
//科室 //科室
export function selectDiseaseCount(departmentName) { export function selectDiseaseCount(departmentName, releaseStatus, servicePackageId) {
return request({ return request({
url: `/system/specialDiseaseRoute/departmentRouteCount?departmentName=${departmentName}&releaseStatus=PUBLISHED`, 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

@ -250,10 +250,10 @@ export default {
}); });
this.query.patientId = this.$route.query.patientId this.query.patientId = this.$route.query.patientId
getList(this.query).then(res => { getList(this.query).then(res => {
this.itemindex = index
this.loading.close();
if (res.data.length > 0) { if (res.data.length > 0) {
this.categorylist = res.data this.categorylist = res.data
this.itemindex = index
this.loading.close();
} }
}) })
}, },

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,6 +123,7 @@ export default {
}; };
}, },
created() { created() {
this.queryParams.servicePackageId = this.servicePackageId
this.getList(); this.getList();
}, },
mounted() { mounted() {
@ -138,14 +135,16 @@ export default {
this.infolists(); this.infolists();
}, },
routeId(newValue, oldValue) { routeId(newValue, oldValue) {
this.handleselectId = newValue;
},
servicePackageId(newValue, oldValue) {
if (newValue) { if (newValue) {
this.handleselectId = newValue; this.queryParams.servicePackageId = newValue;
this.getList();
} }
}, },
routeName(newValue, oldValue) { routeName(newValue, oldValue) {
if (newValue) { this.handleselectName = newValue;
this.handleselectName = newValue;
}
} }
}, },
methods: { methods: {
@ -167,8 +166,7 @@ export default {
}, },
// //
infolists() { infolists() {
this.DepartmentoList.releaseStatus = 'PUBLISHED' selectDiseaseCount(this.departmentName, 'PUBLISHED', 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

@ -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"
@ -93,7 +93,9 @@
<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" :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">
@ -235,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

@ -48,10 +48,10 @@
<el-card v-for="(uitem, uindex) in item.list" :key="uitem.id" <el-card v-for="(uitem, uindex) in item.list" :key="uitem.id"
@click.native='bottomclickevent(uitem, index, uindex)' @click.native='bottomclickevent(uitem, index, uindex)'
:class="listindex == index && itemindex == uindex ? 'cards' : ''"> :class="listindex == index && itemindex == uindex ? 'cards' : ''">
<h3 style="height: 20px;">{{ uitem.taskType }}</h3> <h3 style="height: 20px;">{{ uitem.taskTypeName }}</h3>
<el-tag v-if="uitem.routeCheckStatus == 'AGREE'" class="routeCheckStatus">已审核</el-tag> <el-tag v-if="uitem.routeCheckStatus == 'AGREE'" class="routeCheckStatus">已审核</el-tag>
<el-tag v-else type="warning" class="routeCheckStatus">未审核</el-tag> <el-tag v-else type="warning" class="routeCheckStatus">未审核</el-tag>
<p style="height: 16px;">{{ uitem.taskSubdivision }}</p> <p style="height: 16px;">{{ uitem.taskSubdivisionName }}</p>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
</el-timeline> </el-timeline>
@ -61,28 +61,28 @@
<el-form ref="form" :inline="true" :model="form" class="form"> <el-form ref="form" :inline="true" :model="form" class="form">
<el-form-item label="任务类型" prop=""> <el-form-item label="任务类型" prop="">
<el-select v-model="form.taskType" style="width:110px" @change="changeTaskType"> <el-select v-model="form.taskType" style="width:110px" @change="changeTaskType">
<el-option v-for="item in selectTaskTypeList" :key="item.id" :label="item.taskTypeName" <el-option v-for="item in selectTaskTypeList" :key="item.taskTypeCode"
:value="item.taskTypeName"> :label="item.taskTypeName" :value="item.taskTypeCode">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="任务细分" prop=""> <el-form-item label="任务细分" prop="">
<el-select v-model="form.taskSubdivision" style="width:110px" <el-select v-model="form.taskSubdivision" style="width:110px"
@change="changetaskSubdivision"> @change="changetaskSubdivision">
<el-option v-for="item in taskPartitionList" :key="item.id" :label="item.taskTypeName" <el-option v-for="item in taskPartitionList" :key="item.taskPartitionCode"
:value="item.taskTypeName"> :label="item.taskPartitionName" :value="item.taskPartitionCode">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="任务状态" prop=""> <el-form-item label="任务状态" prop="">
<el-select v-model="form.taskStatus" style="width:100px"> <el-select v-model="form.taskStatus" style="width:110px">
<el-option v-for="item in taskStatusDictList" :key="item.id" <el-option v-for="item in taskStatusDictList" :key="item.id"
:label="item.taskStatusName" :value="item.taskStatusName"> :label="item.taskStatusName" :value="item.taskStatusCode">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="二级分类描述" prop=""> <el-form-item label="二级分类描述" prop="">
<el-input v-model="form.secondClassifyDescribe" style="width:100px"></el-input> <el-input v-model="form.secondClassifyDescribe" style="width:110px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="执行时间" prop=""> <el-form-item label="执行时间" prop="">
<el-time-select v-model="form.executionTime" style="width:120px" placeholder="选择时间"> <el-time-select v-model="form.executionTime" style="width:120px" placeholder="选择时间">
@ -262,7 +262,9 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="TemporaryStorage"> </el-button> <el-button @click="TemporaryStorage"> </el-button>
<el-button type="primary" @click="dialogVisible = true">审核完成 {{ agreeNumber ? agreeNumber : '0' }} / {{ <el-button type="primary" @click="dialogVisible = true" v-if="form.specialDiseaseNodeId">审核完成 {{ agreeNumber
? agreeNumber :
'0' }} / {{
totalNumber ? totalNumber : '0' }}</el-button> totalNumber ? totalNumber : '0' }}</el-button>
</div> </div>
<el-dialog title="提交审核完成" :visible.sync="dialogVisible" width="30%" :before-close="handleClose"> <el-dialog title="提交审核完成" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
@ -351,7 +353,6 @@ export default {
}, },
created() { created() {
this.taskinfo(); this.taskinfo();
this.info();
}, },
beforeDestroy() { }, beforeDestroy() { },
watch: {}, watch: {},
@ -359,6 +360,7 @@ export default {
}, },
methods: { methods: {
info() { info() {
this.lists = []
if (this.$route.query) { if (this.$route.query) {
this.updata.suitRange = this.$route.query.suitRange this.updata.suitRange = this.$route.query.suitRange
this.updata.routeName = this.$route.query.routeName this.updata.routeName = this.$route.query.routeName
@ -489,33 +491,32 @@ export default {
taskinfo() { taskinfo() {
selectTaskTypeList().then(res => { selectTaskTypeList().then(res => {
this.selectTaskTypeList = res.data this.selectTaskTypeList = res.data
this.info();
}) })
taskStatusDictList().then(res => { taskStatusDictList().then(res => {
this.taskStatusDictList = res.data this.taskStatusDictList = res.data
}) })
}, },
// //
changeTaskType(name, taskSubdivision) { changeTaskType(code, taskSubdivision) {
let id = this.selectTaskTypeList?.find(e => e.taskTypeName == name).id let id = this.selectTaskTypeList?.find(e => e.taskTypeCode == code)?.id
this.form.taskTypeName = this.selectTaskTypeList?.find(e => e.taskTypeCode == code)?.taskTypeName
taskPartitionList(id).then(res => { taskPartitionList(id).then(res => {
this.taskPartitionList = res.data this.taskPartitionList = res.data
this.form.taskSubdivision = '' this.form.taskSubdivision = ''
this.form.taskSubdivisionName = '' this.form.taskSubdivisionName = ''
this.form.taskSubdivisiontemplateType = '' this.form.taskSubdivisiontemplateType = ''
this.selectTaskTypeList.forEach(el => {
if (name == el.taskTypeName) {
this.form.taskTypeId = el.id
}
})
if (taskSubdivision) { if (taskSubdivision) {
this.form.taskSubdivision = taskSubdivision
this.changetaskSubdivision(taskSubdivision, 1) this.changetaskSubdivision(taskSubdivision, 1)
} }
}) })
}, },
changetaskSubdivision(name, type) { //
this.form.taskSubdivision = name changetaskSubdivision(code, type) {
this.form.taskSubdivisionName = this.taskPartitionList?.find(e => e.taskPartitionCode == code).taskPartitionName
this.taskPartitionList.forEach(el => { this.taskPartitionList.forEach(el => {
if (name == el.taskTypeName) { if (code == el.taskPartitionCode) {
this.form.executionTime = el.executionTime this.form.executionTime = el.executionTime
this.form.taskSubdivisiontemplateType = el.templateType this.form.taskSubdivisiontemplateType = el.templateType
if (!type) { if (!type) {
@ -604,11 +605,11 @@ export default {
routeCheckRemark: this.routeform.routeCheckRemark, routeCheckRemark: this.routeform.routeCheckRemark,
routeCheckPerson: JSON.parse(localStorage.getItem('user')).nickName routeCheckPerson: JSON.parse(localStorage.getItem('user')).nickName
}).then(res => { }).then(res => {
loading.close();
if (res.data == 1) { if (res.data == 1) {
this.info(); this.info();
this.handleClose() this.handleClose()
this.$modal.msgSuccess("审核成功!"); this.$modal.msgSuccess("审核成功!");
loading.close();
} }
}) })
} }

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