This commit is contained in:
2024-06-27 09:18:42 +08:00
parent 4328c6c66e
commit eb1c01e5d7
2 changed files with 69 additions and 27 deletions

View File

@ -5,11 +5,18 @@
<el-tab-pane label="画像审核" name="portrait"></el-tab-pane>
<el-tab-pane label="路径审核" name="route"></el-tab-pane>
</el-tabs>
<div class="right">
<div class="right" v-if="activeNametab == 'portrait'">
<el-button size="mini" @click="cancel"> </el-button>
<el-button size="mini" type="primary" @click="auditing">审核通过</el-button>
<el-button size="mini" type="info" @click="ignore">忽略</el-button>
</div>
<div class="right" v-else>
<el-button size="mini" @click="cancel"> </el-button>
<el-button size="mini" type="primary" @click="auditing"
v-if="routeCheckStatus != 'AGREE' && routeCheckStatus != 'DISAGREE'">审核通过</el-button>
<el-button size="mini" type="info" @click="ignore"
v-if="routeCheckStatus != 'AGREE' && routeCheckStatus != 'DISAGREE'">忽略</el-button>
</div>
</div>
<!-- 画像审核 -->
<div class="card" v-if="activeNametab == 'portrait'">
@ -100,7 +107,7 @@
</div>
</div>
<div class="card" v-else>
<PathReview ref="PathReview"></PathReview>
<PathReview ref="PathReview" @on-routeCheckStatus="onrouteCheckStatus"></PathReview>
</div>
</div>
</template>
@ -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);
})
})
},
//

View File

@ -152,7 +152,7 @@
<img src="../../../assets/pathReview/bluexinxi.png" alt="" v-else>
<span>路径信息</span>
</div>
<div class="topbutton" :class="tab == 2 ? 'blue' : ''" @click="tab = 2">
<div class="topbutton" :class="tab == 2 ? 'blue' : ''" @click="getlist">
<img src="../../../assets/pathReview/blackrenwu.png" alt="" v-if="tab != 2">
<img src="../../../assets/pathReview/bluerenwu.png" alt="" v-else>
<span>路径任务</span>
@ -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