From 45792b3776cda2e1ada31755ffc226a663f90b48 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 19 三月 2025 15:32:23 +0800
Subject: [PATCH] 锁屏功能

---
 src/views/business/inspectionOrder/add.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/src/views/business/inspectionOrder/add.vue b/src/views/business/inspectionOrder/add.vue
index 27f393d..1691fcb 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>
@@ -1568,6 +1565,7 @@
 import getLodop from "@/utils/lodop";
 import { bigEval } from "@/utils/bigEval";
 import { getDicts } from "@/api/system/dict/data";
+import Big from "big.js";
 export default {
   components: {
     fiberOpticConfig,
@@ -1916,6 +1914,12 @@
     }
   },
   methods: {
+    goBack() {
+      let path = this.$route.query.isPlan
+        ? "/business/inspectionTask"
+        : "/business/inspectionOrder";
+      this.$router.push(path);
+    },
     //涓嬫鏍告煡鏃ユ湡:绂佺敤鍦ㄦ牳鏌ユ棩鏈熷墠鐨勬棩鏈�
     disabledDate(time) {
       if (time) {
@@ -2449,10 +2453,9 @@
           let arr1 = [];
           arr0.forEach((m) => {
             let index = code.findIndex((b) => m.includes(b));
-            // console.log("index--銆�", index);
             if (index > -1) {
               let arr = m.split(code[index]).filter((b) => !!b);
-              let calcNum = this.$Big(
+              let calcNum = new Big(
                 bigEval(this.replaceAll(arr[0], symbolItem, value))
               );
               let num = calcNum.toFixed(
@@ -2471,7 +2474,7 @@
           if (index > -1) {
             let arr = ask.split(code[index]).filter((b) => !!b);
             console.log("鐗规畩鍊兼浛鎹�--銆�", arr);
-            let calcNum = this.$Big(
+            let calcNum = new Big(
               bigEval(this.replaceAll(arr[0], symbolItem, value))
             );
             let num = calcNum.toFixed(
@@ -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