zouyu
2025-03-19 45792b3776cda2e1ada31755ffc226a663f90b48
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) => {