Commit ab1102a4 by 李伟康

feat(RecordList): 增加轻改场景的跳转逻辑

- 在跳转详情页面前,增加了对场景类型的判断
- 如果是轻改场景(sceneType == 1),则不进行跳转
- 仅当记录已上传且为新质检时,才执行此判断逻辑
1 parent fef944d8
...@@ -274,7 +274,9 @@ export default { ...@@ -274,7 +274,9 @@ export default {
await this.getPreRecordFail() await this.getPreRecordFail()
}, },
jumpDetail (item) { jumpDetail (item) {
if (this.firstIndex == 0) { if (this.firstIndex == 0 && item.checkHistoryFlag == 0) { // 已上传 && 新质检
const { sceneType } = uni.$storage.get("userInfo");
if (sceneType == 1) return //轻改不跳转
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!