huk 3 роки тому
батько
коміт
ef06d5d5dd

+ 2 - 2
src/views/TMS/components/domesticMine/approveWagonPlease.vue

@@ -36,13 +36,13 @@ export default {
       input: "",
       option: {
         // 表格请求数据的地址
-        requestUrl: "api/v1/tms/getApproveAllWagonPlease?apiId=70&resultType=3",
+        requestUrl: "/api/v1/tms/getApproveAllWagonPlease?apiId=70&resultType=3",
       },
     };
   },
   methods: {
     onclick() {
-      this.option.requestUrl = "api/v1/tms/getApproveAllWagonPlease?apiId=70&resultType=3&con="+this.input;
+      this.option.requestUrl = "/api/v1/tms/getApproveAllWagonPlease?apiId=70&resultType=3&con="+this.input;
     },
     btnclick() {
       this.$router.push("/approveWagonPleaseAdd");

+ 4 - 10
src/views/TMS/components/importedTruck/breakdownPlanCheck.vue

@@ -63,13 +63,13 @@ export default {
       option1: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/oms/getAllTruckOrder?apiId=89&orderStatus=3&orderType=8&planId=null" ,
+          "/api/v1/oms/getAllTruckOrder?apiId=89&orderStatus=3&orderType=8" ,
           mapList: [],
       },
       option2: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/oms/getAllTruckOrder?apiId=86&orderStatus=8&orderType=8&planId=null",
+          "/api/v1/oms/getAllTruckOrder?apiId=86&orderStatus=8&orderType=8",
       },
       form1: [],
       orderId: 0,
@@ -91,16 +91,10 @@ export default {
     onclick() {
       if (this.activeName == "first") {
         this.option1.requestUrl =
-          "/api/v1/oms/selectAllOrderForSale?apiId=168/1&orderStatus=3&orderType=1" +
-          this.$route.params.planId +
-          "&con=" +
-          this.input;
+          "/api/v1/oms/selectAllOrderForSale?apiId=168/1&orderStatus=3&orderType=1&con=" +this.input;
       } else {
         this.option2.requestUrl =
-          "/api/v1/oms/selectAllOrderForSale?apiId=168/1&orderStatus=8&orderType=1" +
-          this.$route.params.planId +
-          "&con=" +
-          this.input;
+          "/api/v1/oms/selectAllOrderForSale?apiId=168/1&orderStatus=8&orderType=1&con=" +this.input;
       }
     },
      

+ 15 - 2
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsNEW/exFactoryNew.vue

@@ -14,6 +14,7 @@
 </template>
 
 <script>
+import { getCookie } from "@/utils/util.js";
 export default {
   name: "homeworkPath",
   data() {
@@ -22,13 +23,25 @@ export default {
       input: "",
       option: {
         // 表格请求数据的地址
-        requestUrl: "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=18",
+        requestUrl: "",
       },
     };
   },
+  created(){
+    
+     if (getCookie("orgCode") == "chengyunshang") {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=18&carrierSsoId=" + getCookie("userId");
+      } else {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=18&carrierSsoId=" + null ;
+      }
+  },
   methods: {
     onclick() {
-      this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=18&con=" + this.input;
+      if (getCookie("orgCode") == "chengyunshang") {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=18&carrierSsoId=" + getCookie("userId")+"&con=" + this.input;;
+      } else {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=18&carrierSsoId=" + null +"&con=" + this.input;
+      }
     },
    }
 };