From 98c69759053dc21db1a22216b1dd97cd58c16bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 29 Jul 2024 14:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=BE=E7=BA=A6=E4=B8=93?= =?UTF-8?q?=E7=97=85=E8=B7=AF=E5=BE=84=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/Auditing.js | 15 + .../manage/components/specialDiseaseRoute.vue | 816 ++++++++++++++++-- src/views/manage/newSigning/index.vue | 80 +- 3 files changed, 845 insertions(+), 66 deletions(-) diff --git a/src/api/manage/Auditing.js b/src/api/manage/Auditing.js index 1f55d42..087b58c 100644 --- a/src/api/manage/Auditing.js +++ b/src/api/manage/Auditing.js @@ -33,7 +33,22 @@ export function getRouteAuditinfo(signRecordId) { method: 'get', }) } +//路径信息2 +export function getRouteInfo(id) { + return request({ + url: `/system/specialDiseaseRoute/getRouteInfo/${id}`, + method: 'get', + }) +} +//路径任务2 + +export function getRouteNodeInfos(id) { + return request({ + url: `/system/specialDiseaseRoute/getRouteNodeInfo/${id}`, + method: 'get', + }) +} //路径任务 export function getRouteNodeInfo(signRecordId) { return request({ diff --git a/src/views/manage/components/specialDiseaseRoute.vue b/src/views/manage/components/specialDiseaseRoute.vue index ba2448c..e912982 100644 --- a/src/views/manage/components/specialDiseaseRoute.vue +++ b/src/views/manage/components/specialDiseaseRoute.vue @@ -1,60 +1,366 @@ @@ -63,17 +369,33 @@ import { listSpecialDiseaseRoute, selectDiseaseCount, } from "@/api/system/specialDiseaseRoute"; -import DepartmentList from '../../components/DepartmentList.vue' +import DepartmentList from "../../components/DepartmentList.vue"; +import questionopennew from "./questionopennew.vue"; +import Scriptpreview from "./Scriptpreviewopen.vue"; +import { getRouteNodeInfos, getRouteInfo } from "@/api/manage/Auditing.js"; export default { components: { - DepartmentList + DepartmentList, + questionopennew, + Scriptpreview, }, - props: ['routeId', 'routeName', 'servicePackageId'], + props: ["routeId", "routeName", "servicePackageId"], name: "SpecialDiseaseRoute", data() { return { // 遮罩层 + // informationlist:[], + baseUrl: process.env.VUE_APP_BASE_API, + tab: 1, + activeNames: ["1", "2"], + informationlist: { + routeName: "", + diseaseTypeName: "", + nodeList: [], + childRouteList: [], + }, loading: true, + routeOpen: false, // 选中数组 ids: [], // 非单个禁用 @@ -102,7 +424,7 @@ export default { routeCode: null, version: null, routeClassify: null, - releaseStatus: 'PUBLISHED', + releaseStatus: "PUBLISHED", suitRange: null, routeSort: null, routeRemark: null, @@ -110,17 +432,26 @@ export default { }, // 表单校验 rules: {}, - handleselectName: '', - handleselectId: '', + handleselectName: "", + handleselectId: "", + routelist: [], + allroutelist: [], + id:'', + phoneNodeContent: { + scriptInfoId: null, + flowScheme: null, + nodes: [], + edges: [], + }, }; }, created() { - this.queryParams.servicePackageId = this.servicePackageId - // this.getList(); + this.queryParams.servicePackageId = this.servicePackageId; + // this.info(); }, mounted() { - this.handleselectId = this.routeId - this.handleselectName = this.routeName + this.handleselectId = this.routeId; + this.handleselectName = this.routeName; }, watch: { routeId(newValue, oldValue) { @@ -134,36 +465,114 @@ export default { }, routeName(newValue, oldValue) { this.handleselectName = newValue; - } + }, }, methods: { + // changeswitch(e) { + // if (e) { + // this.routelist = this.allroutelist.filter( + // (item) => item.conditionSatisfyStatus + // ); + // } else { + // this.routelist = this.allroutelist; + // } + // }, + // 专病路径详情 + handleselectdetal(row) {}, + getlists() { + console.log(this.id,'idddddd') + if (this.routelist.length == 0) { + // const loading = this.$loading({ + // lock: true, + // text: "加载中", + // spinner: "el-icon-loading", + // background: "rgba(255, 255, 255, 0.7)", + // }); + getRouteNodeInfos(this.id) + .then((res) => { + this.allroutelist = res.data; + this.routelist = res.data; + this.tab = 2; + loading.close(); + }) + .catch((err) => { + // loading.close(); + }); + } else { + this.tab = 2; + } + }, + handleselectdetal(row) { + this.routeOpen = true; + + this.tab = 1; + // const loading = this.$loading({ + // lock: true, + // text: '加载中', + // spinner: 'el-icon-loading', + // background: 'rgba(255, 255, 255, 0.7)' + // }); + // getPortaitInfo(this.$route.query.patientId).then(res => { + // res.data.birthDate ? res.data.age = getAge(res.data.birthDate) : '' + // this.list = res.data + // }) + console.log(row, "row"); + this.id=row.id + getRouteInfo(this.id) + .then((res) => { + this.$emit("on-routeCheckStatus", { + routeCheckStatus: res.data.routeCheckStatus, + }); + res.data.nodeList?.forEach((e) => { + e.taskPartitionDictNames = e.taskPartitionDictNames.split(","); + }); + res.data.childRouteList?.forEach((e) => { + e.nodeList.forEach((el) => { + el.taskPartitionDictNames = el.taskPartitionDictNames.split(","); + }); + }); + this.informationlist = res.data; + loading.close(); + }) + .catch(() => { + // loading.close(); + }); + }, + // 关闭详情 + routeOpenfalse() { + this.routeOpen = false; + }, //接收科室列表传值 clickdepartment(item) { - this.queryParams.hospitalAgencyId = item.hospitalAgencyId - this.queryParams.hospitalAgencyName = item.hospitalAgencyName - this.queryParams.departmentId = item.itemid - this.queryParams.departmentName = item.itemName + this.queryParams.hospitalAgencyId = item.hospitalAgencyId; + this.queryParams.hospitalAgencyName = item.hospitalAgencyName; + this.queryParams.departmentId = item.itemid; + this.queryParams.departmentName = item.itemName; if (item.hospitalAgencyId) { this.handleQuery(); } - this.$forceUpdate() + this.$forceUpdate(); }, nohandleselect() { - this.handleselectId = '' - this.handleselectName = '' - this.$emit("on-template", { routeId: '', routeName: '' }); + this.handleselectId = ""; + this.handleselectName = ""; + this.$emit("on-template", { routeId: "", routeName: "" }); }, + handleselect(item) { - this.handleselectId = item.id - this.handleselectName = item.routeName - this.$emit("on-template", { routeId: item.id, routeName: item.routeName }); - this.classificationOpen = false + this.handleselectId = item.id; + this.handleselectName = item.routeName; + this.$emit("on-template", { + routeId: item.id, + routeName: item.routeName, + }); + this.classificationOpen = false; }, /** 查询专病路径信息列表 */ getList() { this.loading = true; - this.queryParams.releaseStatus = 'PUBLISHED' - listSpecialDiseaseRoute(this.queryParams).then(response => { + this.queryParams.releaseStatus = "PUBLISHED"; + listSpecialDiseaseRoute(this.queryParams).then((response) => { this.specialDiseaseRouteList = response.rows; this.total = response.total; this.loading = false; @@ -180,23 +589,310 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.$refs.DepartmentList.resetQuery() + this.$refs.DepartmentList.resetQuery(); this.resetForm("queryForm"); // this.handleQuery(); }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - this.single = selection.length !== 1 - this.multiple = !selection.length + this.ids = selection.map((item) => item.id); + this.single = selection.length !== 1; + this.multiple = !selection.length; }, classificationOpenfalse() { - this.classificationOpen = false + this.classificationOpen = false; }, - } + }, };