diff --git a/src/views/manage/Auditing/index.vue b/src/views/manage/Auditing/index.vue index 13f3ff3..8a6e57b 100644 --- a/src/views/manage/Auditing/index.vue +++ b/src/views/manage/Auditing/index.vue @@ -5,11 +5,18 @@ -
+
取 消 审核通过 忽略
+
+ 取 消 + 审核通过 + 忽略 +
@@ -100,7 +107,7 @@
- +
@@ -129,12 +136,17 @@ export default { list: {}, // nodelist: [], lookitem: {}, + routeCheckStatus: undefined, }; }, created() { this.info(); }, methods: { + //路径审核页面传值 + onrouteCheckStatus(e) { + this.routeCheckStatus = e.routeCheckStatus + }, portraitlist(val) { console.log(val, '999999999') }, @@ -151,27 +163,46 @@ export default { confirmButtonText: '确定', cancelButtonText: '取消', }).then(({ value }) => { - let obj = { - routeCheckPerson: JSON.parse(localStorage.getItem('user')).nickName, - routeCheckRemark: value, - routeCheckStatus: 'DISAGREE', - // manageRouteNodeIds: manageRouteNodeIds + if (this.activeNametab == 'route') { + let obj = { + routeCheckRemark: value, + routeCheckStatus: 'DISAGREE', + 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: 'DISAGREE', + // manageRouteNodeIds: manageRouteNodeIds + } + 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); + }) } - 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); - }) }) }, //审核 diff --git a/src/views/manage/components/PathReview.vue b/src/views/manage/components/PathReview.vue index 73b50b5..a6d1b75 100644 --- a/src/views/manage/components/PathReview.vue +++ b/src/views/manage/components/PathReview.vue @@ -152,7 +152,7 @@ 路径信息 -
+
路径任务 @@ -361,7 +361,7 @@ export default { nodeList: [], childRouteList: [] }, - routelist: [], + routelist: undefined, phoneNodeContent: { scriptInfoId: null, flowScheme: null, @@ -376,6 +376,7 @@ export default { }, methods: { info() { + this.tab = 1 const loading = this.$loading({ lock: true, text: '加载中', @@ -387,6 +388,9 @@ export default { this.list = res.data }) getRouteAuditinfo(this.$route.query.signRecordId).then(res => { + this.$emit("on-routeCheckStatus", { + routeCheckStatus: res.data.routeCheckStatus, + }); res.data.nodeList?.forEach(e => { e.taskPartitionDictNames = e.taskPartitionDictNames.split(',') }) @@ -398,9 +402,16 @@ export default { this.informationlist = res.data loading.close(); }) - getRouteNodeInfo(this.$route.query.signRecordId).then(res => { - this.routelist = res.data - }) + }, + getlist() { + if (!this.routelist) { + getRouteNodeInfo(this.$route.query.signRecordId).then(res => { + this.routelist = res.data + this.tab = 2 + }) + } else { + this.tab = 2 + } }, scriptlook(item) { this.phoneNodeContent = item.phoneNodeContent