Commit c9a608fe by 李伟康

fix(RecordList): 优化 jumpDetail 方法的判断逻辑

- 修改了进入详情页的条件,只要 firstIndex 为 0 就允许跳转
- 增加了对 checkHistoryFlag 的判断,不为 0 时不允许跳转
- 场景类型为 1 时,无论 checkHistoryFlag 为何值都不允许跳转
- 不允许跳转时显示提示信息 '该接待尚不支持复盘'
1 parent 9556dac7
...@@ -274,9 +274,12 @@ export default { ...@@ -274,9 +274,12 @@ export default {
await this.getPreRecordFail() await this.getPreRecordFail()
}, },
jumpDetail (item) { jumpDetail (item) {
if (this.firstIndex == 0 && item.checkHistoryFlag == 0) { // 已上传 && 新质检 if (this.firstIndex == 0) { // 已上传 && 新质检
const { sceneType } = uni.$storage.get("userInfo"); const { sceneType } = uni.$storage.get("userInfo");
if (sceneType == 1) return //轻改不跳转 if (sceneType == 1 || item.checkHistoryFlag != 0) return uni.showToast({
title: '该接待尚不支持复盘',
icon: "none"
})
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/receptionDetail/index`, url: `/pages/common/receptionDetail/index`,
success (res) { success (res) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!