diff --git a/src/api/manage/Auditing.js b/src/api/manage/Auditing.js index 79259c2..8749412 100644 --- a/src/api/manage/Auditing.js +++ b/src/api/manage/Auditing.js @@ -24,4 +24,29 @@ export function audit(data) { method: 'post', data }) -} \ No newline at end of file +} + +//路径信息 +export function getRouteAuditinfo(signRecordId) { + return request({ + url: `/manage/signroute/getRouteAuditInfo/${signRecordId}`, + method: 'get', + }) +} + +//路径任务 +export function getRouteNodeInfo(signRecordId) { + return request({ + url: `/manage/signroute/getRouteNodeInfo/${signRecordId}`, + method: 'get', + }) +} + +//路径审核 +export function updateRouteCheckStatus(data) { + return request({ + url: `/manage/signRecord/updateRouteCheckStatus`, + method: 'post', + data + }) +} diff --git a/src/api/system/preview.js b/src/api/system/preview.js index 3e92caf..82ba112 100644 --- a/src/api/system/preview.js +++ b/src/api/system/preview.js @@ -2,17 +2,26 @@ import request from '@/utils/request' //新增 export function insertScriptEdgeNode(data) { - return request({ - url: '/manage/script/updateScriptEdgeNode', - method: 'post', - data: data - }) + return request({ + url: '/manage/script/updateScriptEdgeNode', + method: 'post', + data: data + }) } // 话术列表 export function selectScriptEdgeNode(id) { - return request({ - url: `/manage/script/selectScriptEdgeNode?id=${id}`, - method: 'get' - }) - } + return request({ + url: `/manage/script/selectScriptEdgeNode?id=${id}`, + method: 'get' + }) +} + + +//路径任务话术预览 +export function getFlowScheme(id) { + return request({ + url: `/manage/signroute/getFlowScheme/${id}`, + method: 'get' + }) +} diff --git a/src/views/manage/Auditing/index.vue b/src/views/manage/Auditing/index.vue index f928794..13f3ff3 100644 --- a/src/views/manage/Auditing/index.vue +++ b/src/views/manage/Auditing/index.vue @@ -100,7 +100,7 @@
- +
@@ -109,7 +109,8 @@ import { getRouteNodeList, getByPatientId, - audit + audit, + updateRouteCheckStatus } from '@/api/manage/Auditing.js' import { getAge } from "@/utils/age"; import portrait from '../components/portrait.vue' @@ -126,7 +127,7 @@ export default { baseUrl: process.env.VUE_APP_BASE_API, activeNames: ['-1', '-2', '-3'], list: {}, - nodelist: [], + // nodelist: [], lookitem: {}, }; }, @@ -142,10 +143,10 @@ export default { }, // 忽略 ignore() { - let manageRouteNodeIds = [] - this.nodelist.map(e => { - manageRouteNodeIds = [...manageRouteNodeIds, ...e.nodeList.map(el => el.id)] - }) + // let manageRouteNodeIds = [] + // this.nodelist.map(e => { + // manageRouteNodeIds = [...manageRouteNodeIds, ...e.nodeList.map(el => el.id)] + // }) this.$prompt('请输入忽略备注信息?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -154,7 +155,7 @@ export default { routeCheckPerson: JSON.parse(localStorage.getItem('user')).nickName, routeCheckRemark: value, routeCheckStatus: 'DISAGREE', - manageRouteNodeIds: manageRouteNodeIds + // manageRouteNodeIds: manageRouteNodeIds } audit(obj).then(res => { this.$notify({ @@ -176,36 +177,46 @@ export default { //审核 auditing() { let manageRouteNodeIds = [] - this.nodelist.map(e => { - manageRouteNodeIds = [...manageRouteNodeIds, ...e.nodeList.map(el => el.id)] - }) + // this.nodelist.map(e => { + // manageRouteNodeIds = [...manageRouteNodeIds, ...e.nodeList.map(el => el.id)] + // }) this.$prompt('请输入审核备注信息?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', }).then(({ value }) => { - let obj = { - routeCheckPerson: JSON.parse(localStorage.getItem('user')).nickName, - routeCheckRemark: value, - routeCheckStatus: 'AGREE', - manageRouteNodeIds: manageRouteNodeIds + if (this.activeNametab == 'route') { + let obj = { + routeCheckRemark: value, + routeCheckStatus: 'AGREE', + signPatientRecordId: this.$route.query.signRecordId + } + updateRouteCheckStatus(obj).then(res => { + this.$notify({ + type: 'success', + title: '提示', + message: '路径审核通过', + duration: 3000 + }); + setTimeout(() => { + this.$refs.PathReview.info(); + }, 1500); + }) + } else { + let obj = { + routeCheckPerson: JSON.parse(localStorage.getItem('user')).nickName, + routeCheckRemark: value, + routeCheckStatus: 'AGREE', + // manageRouteNodeIds: manageRouteNodeIds + } + audit(obj).then(res => { + this.$notify({ + type: 'success', + title: '提示', + message: '画像审核通过', + duration: 3000 + }); + }) } - console.log(obj) - // return - audit(obj).then(res => { - this.$notify({ - type: 'success', - title: '提示', - message: '审核通过,即将返回上一页', - duration: 3000 - }); - setTimeout(() => { - this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { - this.$router.push({ - path: "/task/manualReview", - }); - }) - }, 3000); - }) }) }, info() { @@ -213,9 +224,9 @@ export default { res.data.birthDate ? res.data.age = getAge(res.data.birthDate) : '' this.list = res.data }) - getRouteNodeList({ patientId: this.$route.query.patientId, taskCreateType: 'MANUAL_CREATE', routeCheckStatus: "UNAUDITED" }).then(res => { - this.nodelist = res.data - }) + // getRouteNodeList({ patientId: this.$route.query.patientId, taskCreateType: 'MANUAL_CREATE', routeCheckStatus: "UNAUDITED" }).then(res => { + // this.nodelist = res.data + // }) }, cancel() { this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { diff --git a/src/views/manage/components/PathReview.vue b/src/views/manage/components/PathReview.vue index 07bf5e8..73b50b5 100644 --- a/src/views/manage/components/PathReview.vue +++ b/src/views/manage/components/PathReview.vue @@ -88,7 +88,7 @@
- + 每日2次 1片 @@ -106,7 +106,7 @@
- + 每日2次 1片 @@ -160,12 +160,12 @@
-
主路径:
-
病种:
+
主路径:{{ informationlist.routeName }}
+
病种:{{ informationlist.diseaseTypeName }}
- + diff --git a/src/views/manage/components/questionopen.vue b/src/views/manage/components/questionopen.vue index ad7cd0b..80be8f5 100644 --- a/src/views/manage/components/questionopen.vue +++ b/src/views/manage/components/questionopen.vue @@ -133,12 +133,12 @@ export default { };