From fb941952ff7d5c03bc2251ec7e5ba0b498987894 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 14 三月 2025 19:31:31 +0800
Subject: [PATCH] 检验任务搬迁
---
src/views/business/inspectionOrder/add.vue | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/views/business/inspectionOrder/add.vue b/src/views/business/inspectionOrder/add.vue
index 27f393d..c46e5fa 100644
--- a/src/views/business/inspectionOrder/add.vue
+++ b/src/views/business/inspectionOrder/add.vue
@@ -77,10 +77,7 @@
v-show="active == 3 && addObj.companyId"
>閫氳繃</el-button
>
- <el-button
- size="medium"
- @click="$router.push('/business/inspectionOrder')"
- >
+ <el-button size="medium" @click="goBack">
<span style="color: #3a7bfa">杩斿洖</span>
</el-button>
</el-col>
@@ -1916,6 +1913,12 @@
}
},
methods: {
+ goBack() {
+ let path = this.$route.query.isPlan
+ ? "/business/inspectionTask"
+ : "/business/inspectionOrder";
+ this.$router.push(path);
+ },
//涓嬫鏍告煡鏃ユ湡:绂佺敤鍦ㄦ牳鏌ユ棩鏈熷墠鐨勬棩鏈�
disabledDate(time) {
if (time) {
@@ -3363,7 +3366,7 @@
if (res.code === 200) {
this.$message.success("宸叉彁浜�");
this.bsm3Dia = false;
- this.$router.push("/business/inspectionOrder");
+ this.goBack();
}
this.saveLoad = false;
})
@@ -3533,7 +3536,7 @@
this.$message.success("鎻愪氦鎴愬姛");
this.issuedDialogVisible = false;
this.upLoad = false;
- this.$router.replace("/business/inspectionOrder");
+ this.goBack();
//瀹℃牳閫氳繃鍚庯紝鑷姩鎵撳嵃浜岀淮鐮�
//TODO: 鐢靛姏璇曢獙瀹ゆ殏鏃朵笉鐢ㄦ爣绛炬墦鍗�
if (
@@ -4624,7 +4627,7 @@
this.tell = "";
this.$message.success("鎻愪氦鎴愬姛");
this.issuedDialogVisible = false;
- this.$router.push("/business/inspectionOrder");
+ this.goBack();
}
})
.catch((error) => {
--
Gitblit v1.9.3