From ce2570f8555ff6668da4f149521b4620bdd9d8bf Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期三, 23 九月 2026 15:25:22 +0800
Subject: [PATCH] feat(order): 添加订单委托要求字段并优化界面流程 - 新增分包内容、样品处置、结果评价、报告交付方式等委托要求字段 - 添加分包单位信息、报告寄送地址、收件人电话等关联信息录入功能 - 更新订单状态标签,新增作废状态和全部状态页签 - 调整报告准备页面审批流程,防止审核人和批准人为同一人

---
 src/main.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main.js b/src/main.js
index adbeaf1..8cc126f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,7 +1,5 @@
 import Vue from "vue";
 
-import Cookies from "js-cookie";
-
 import Element from "element-ui";
 import "./assets/styles/element-variables.scss";
 
@@ -51,8 +49,9 @@
 import { getToken } from "@/utils/auth";
 // 鏃堕棿杞崲
 import Moment from "moment";
-
+import Big from 'big.js'
 // 鍏ㄥ眬鏂规硶鎸傝浇
+Vue.prototype.$Big = Big;
 Vue.prototype.getDicts = getDicts;
 Vue.prototype.getConfigKey = getConfigKey;
 Vue.prototype.parseTime = parseTime;
@@ -66,9 +65,10 @@
 Vue.prototype.HaveJson = (val) => {
   return JSON.parse(JSON.stringify(val));
 };
-Vue.prototype.javaApi = process.env.VUE_APP_BASE_API
-  ? process.env.VUE_APP_BASE_API
-  : "http://localhost:8001";
+const apiBase = process.env.VUE_APP_BASE_URL || process.env.VUE_APP_BASE_API;
+Vue.prototype.javaApi = /^https?:\/\//i.test(apiBase)
+  ? apiBase.replace(/\/$/, "")
+  : window.location.origin + "/" + apiBase.replace(/^\/+|\/+$/g, "");
 Vue.prototype.checkPermi = checkPermi;
 Vue.prototype.uploadHeader = {
   Authorization: "Bearer " + getToken(),
@@ -110,7 +110,7 @@
  */
 
 Vue.use(Element, {
-  size: Cookies.get("size") || "medium", // set element-ui default size
+  size: localStorage.getItem("size") || "medium", // set element-ui default size
 });
 
 Vue.config.productionTip = false;

--
Gitblit v1.9.3