Ver código fonte

销售配置完成

zouzhd 3 anos atrás
pai
commit
dc2edc7cea
100 arquivos alterados com 6419 adições e 110 exclusões
  1. 3 11
      config/index.js
  2. 1 1
      src/components/DilCommonUI/packages/table/src/table.js
  3. 1 1
      src/views/RMS/app.js
  4. 1 1
      src/views/RMS/components/addCapacity.vue
  5. 1 1
      src/views/RMS/components/addCarDriver.vue
  6. 1 1
      src/views/RMS/components/addCarrier.vue
  7. 1 1
      src/views/RMS/components/addGatepost.vue
  8. 1 1
      src/views/RMS/components/addMaterial.vue
  9. 1 1
      src/views/RMS/components/addOilPrice.vue
  10. 1 1
      src/views/RMS/components/addPersonnel.vue
  11. 1 1
      src/views/RMS/components/addPier.vue
  12. 1 1
      src/views/RMS/components/addPort.vue
  13. 1 1
      src/views/RMS/components/addRawWarehouse.vue
  14. 1 1
      src/views/RMS/components/addRmsShipper.vue
  15. 1 1
      src/views/RMS/components/addSupplier.vue
  16. 1 1
      src/views/RMS/components/addTruckCalculate.vue
  17. 3 3
      src/views/RMS/components/capacity.vue
  18. 3 3
      src/views/RMS/components/carDriver.vue
  19. 3 3
      src/views/RMS/components/carrier.vue
  20. 2 2
      src/views/RMS/components/editCapacity.vue
  21. 2 2
      src/views/RMS/components/editCarDriver.vue
  22. 2 2
      src/views/RMS/components/editCarrier.vue
  23. 3 3
      src/views/RMS/components/editGatepost.vue
  24. 2 2
      src/views/RMS/components/editMaterial.vue
  25. 2 2
      src/views/RMS/components/editOilPrice.vue
  26. 2 2
      src/views/RMS/components/editPersonnel.vue
  27. 2 2
      src/views/RMS/components/editRawWarehouse.vue
  28. 2 2
      src/views/RMS/components/editRmsShipper.vue
  29. 2 2
      src/views/RMS/components/editSupplier.vue
  30. 4 4
      src/views/RMS/components/editTruckCalculate.vue
  31. 3 3
      src/views/RMS/components/gatepost.vue
  32. 3 3
      src/views/RMS/components/material.vue
  33. 3 3
      src/views/RMS/components/oilPrice.vue
  34. 3 3
      src/views/RMS/components/personnel.vue
  35. 2 2
      src/views/RMS/components/pier.vue
  36. 2 2
      src/views/RMS/components/port.vue
  37. 2 2
      src/views/RMS/components/portStorageYard.vue
  38. 3 3
      src/views/RMS/components/rawMaterialManufacturer.vue
  39. 3 3
      src/views/RMS/components/rawWarehouse.vue
  40. 3 3
      src/views/RMS/components/rmsShipper.vue
  41. 3 3
      src/views/RMS/components/supplier.vue
  42. 2 2
      src/views/RMS/components/transitRoute.vue
  43. 4 4
      src/views/RMS/components/transitRouteAdd.vue
  44. 3 3
      src/views/RMS/components/truckCalculate.vue
  45. 11 11
      src/views/RMS/router/index.js
  46. 21 0
      src/views/TMS/app.html
  47. 28 0
      src/views/TMS/app.js
  48. 91 0
      src/views/TMS/bmsport/components/addHandlingFee.vue
  49. 97 0
      src/views/TMS/bmsport/components/handlingFee.vue
  50. 95 0
      src/views/TMS/bmsport/components/updateHandlingFee.vue
  51. 46 0
      src/views/TMS/bmsship/components/detailsOrder.vue
  52. 68 0
      src/views/TMS/bmsship/components/detailsStatement.vue
  53. 84 0
      src/views/TMS/bmsship/components/lossDetailsStatement.vue
  54. 132 0
      src/views/TMS/bmsship/components/shipBillingFormula.vue
  55. 84 0
      src/views/TMS/bmsship/components/shipResult.vue
  56. 69 0
      src/views/TMS/bmsship/components/statementDetailsOrder.vue
  57. 98 0
      src/views/TMS/bmsship/components/toBeStatement.vue
  58. 91 0
      src/views/TMS/bmsship/components/uncomplateDetails.vue
  59. 91 0
      src/views/TMS/bmsship/components/uncomplateWater.vue
  60. 95 0
      src/views/TMS/bmstrain/components/addTrainDetails.vue
  61. 51 0
      src/views/TMS/bmstrain/components/detailsTrainOrder.vue
  62. 88 0
      src/views/TMS/bmstrain/components/detailsTrainStatement.vue
  63. 69 0
      src/views/TMS/bmstrain/components/statementDetailsOrder.vue
  64. 48 0
      src/views/TMS/bmstrain/components/trainResult.vue
  65. 91 0
      src/views/TMS/bmstrain/components/uncomplateTrainDetails.vue
  66. 60 0
      src/views/TMS/bmstruck/components/detailsTruckOrder.vue
  67. 48 0
      src/views/TMS/bmstruck/components/truckResult.vue
  68. 62 0
      src/views/TMS/domesticMine/components/approveWagonPlease.vue
  69. 118 0
      src/views/TMS/domesticMine/components/approveWagonPleaseAdd.vue
  70. 99 0
      src/views/TMS/domesticMine/components/approveWagonPleaseEdit.vue
  71. 77 0
      src/views/TMS/domesticMine/components/entrust.vue
  72. 100 0
      src/views/TMS/domesticMine/components/wagonLoad.vue
  73. 435 0
      src/views/TMS/domesticMine/components/wagonLoadAdd.vue
  74. 103 0
      src/views/TMS/domesticMine/components/wagonLoadEdit.vue
  75. 290 0
      src/views/TMS/domesticMine/components/wagonLoadbu.vue
  76. 151 0
      src/views/TMS/domesticMine/components/wagonPlease.vue
  77. 94 0
      src/views/TMS/domesticMine/components/wagonPleaseAdd.vue
  78. 100 0
      src/views/TMS/domesticMine/components/wagonPleaseEdit.vue
  79. 92 0
      src/views/TMS/domesticMine/components/wagonUnLoad.vue
  80. 100 0
      src/views/TMS/domesticMine/components/wagonUnLoadAdd.vue
  81. 99 0
      src/views/TMS/domesticMine/components/wagonUnLoadEdit.vue
  82. 75 0
      src/views/TMS/download/index.vue
  83. 466 0
      src/views/TMS/importedEmergency/addWagonLoad.vue
  84. 105 0
      src/views/TMS/importedEmergency/addWagonUnLoad.vue
  85. 102 0
      src/views/TMS/importedEmergency/editWagonLoad.vue
  86. 100 0
      src/views/TMS/importedEmergency/editWagonUnLoad.vue
  87. 63 0
      src/views/TMS/importedEmergency/entrust.vue
  88. 93 0
      src/views/TMS/importedEmergency/trainDetails.vue
  89. 89 0
      src/views/TMS/importedEmergency/wagonLoad.vue
  90. 96 0
      src/views/TMS/importedEmergency/wagonUnLoad.vue
  91. 375 0
      src/views/TMS/importedFuel/transportReserveFuAdd.vue
  92. 178 0
      src/views/TMS/importedFuel/transportReserveRan.vue
  93. 581 0
      src/views/TMS/importedFuel/transportReserveRanAdd.vue
  94. 83 0
      src/views/TMS/importedFuel/transportReserveRanEdit.vue
  95. 60 0
      src/views/TMS/importedFuel/truckDriverReceiveRan.vue
  96. 78 0
      src/views/TMS/importedFuel/truckEnfactoryRanLaoResult.vue
  97. 78 0
      src/views/TMS/importedFuel/truckEnfactoryRanXingResult.vue
  98. 43 0
      src/views/TMS/importedFuel/truckJiMaoRanLaoResult.vue
  99. 43 0
      src/views/TMS/importedFuel/truckJiMaoRanXingResult.vue
  100. 44 0
      src/views/TMS/importedFuel/truckJiPiRanLaoResult.vue

+ 3 - 11
config/index.js

@@ -56,17 +56,9 @@ let proxyTable = {
   "/api/v1": {
     target: "http://172.16.33.166:8080",
     ws: true,
-    pathRewrite: {
-      '^/api/v1': '/api/v1'
-    }
-  },
-  
-  '/api/v1/oms/': {
-    target: 'http://172.16.33.166:9001', 
-    changeOrigin: true,
-    pathRewrite: {
-      '^/icore.icp.web/pass/logout': '/'
-    }
+    // pathRewrite: {
+    //   "^/api/v1": "/"
+    // }
   },
   '/icore.icp.web/pass/logout': {
     target: 'http://172.16.33.161:9001/logout',

+ 1 - 1
src/components/DilCommonUI/packages/table/src/table.js

@@ -84,7 +84,7 @@ export default {
           }
         
           // 发送请求
-          this.$axios
+          this.axios
             .post(url, data, {
               // 请求地址 中
               params: {

+ 1 - 1
src/views/RMS/app.js

@@ -21,7 +21,7 @@ Vue.config.productionTip = false;
 Vue.use(VueApollo)
 
 // 注册表格的全局组件
-import DilCommonUI from "./components/DilCommonUI";
+import DilCommonUI from "@/components/DilCommonUI";
 Vue.use(DilCommonUI);
 
 const apolloProvider = new VueApollo({

+ 1 - 1
src/views/RMS/components/addCapacity.vue

@@ -38,7 +38,7 @@ export default {
          capacityBlacklist:this.form1.capacityBlacklist,
          carrierId:this.form1.carrierId,
        } 
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertCapacity", RmsCapacity
         )

+ 1 - 1
src/views/RMS/components/addCarDriver.vue

@@ -68,7 +68,7 @@ export default {
        driverLicence:this.form1.driverLicence,
       }
       
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertCarDriver" , RmsCarDriver
         )

+ 1 - 1
src/views/RMS/components/addCarrier.vue

@@ -54,7 +54,7 @@ export default {
         carrierType:this.form1.carrierType,
         carrierTransportType:this.form1.carrierTransportType
       }
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertCarrier",
            RmsCarrier

+ 1 - 1
src/views/RMS/components/addGatepost.vue

@@ -45,7 +45,7 @@ export default {
           gatepostPriority:this.form1.gatepostPriority
       }
       console.log(mapValue);
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertGatepost",
            RmsGatepost

+ 1 - 1
src/views/RMS/components/addMaterial.vue

@@ -76,7 +76,7 @@ export default {
         materialTheoreticalWeight:this.form1.materialTheoreticalWeight,
       }
       console.log(RmsMaterial)
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertMaterial",
            RmsMaterial

+ 1 - 1
src/views/RMS/components/addOilPrice.vue

@@ -34,7 +34,7 @@ export default {
         priceDate:this.form1.priceDate,
         priceValue:this.form1.priceValue,
       }
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertOilPrice" , RmsOilPrice
         )

+ 1 - 1
src/views/RMS/components/addPersonnel.vue

@@ -38,7 +38,7 @@ export default {
         departmentId: this.form1.shipperId
       };
       console.log(RmsPersonnel)
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertPersonnel",
            RmsPersonnel

+ 1 - 1
src/views/RMS/components/addPier.vue

@@ -38,7 +38,7 @@ export default {
         
       ) this.$message.error("存在空值!");
       else 
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertPier",
            RmsCapacity

+ 1 - 1
src/views/RMS/components/addPort.vue

@@ -39,7 +39,7 @@ export default {
         
       ) this.$message.error("存在空值!");
       else 
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertPort",
            RmsCapacity

+ 1 - 1
src/views/RMS/components/addRawWarehouse.vue

@@ -33,7 +33,7 @@ export default {
          warehouseName:this.form1.warehouseName, 
        }
     //  console.log(this.RmsWarehouse)
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertWarehouse", RmsWarehouse
         )

+ 1 - 1
src/views/RMS/components/addRmsShipper.vue

@@ -37,7 +37,7 @@ export default {
       //   shipperName: this.from1.shipperName,
       //   shipperAbbreviation: this.from1.shipperAbbreviation,
       // };
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertShipper",
            RmsShipper

+ 1 - 1
src/views/RMS/components/addSupplier.vue

@@ -35,7 +35,7 @@ export default {
         supplierContactsName: this.form1.supplierContactsName,
         supplierContactNumber: this.form1.supplierContactNumber
       };
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertSupplier",
            RmsSupplier

+ 1 - 1
src/views/RMS/components/addTruckCalculate.vue

@@ -78,7 +78,7 @@ export default {
       }
       console.log(map)
       // console.log(RmsTruckCalculate)
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertTruckCalculate",map
         )

+ 3 - 3
src/views/RMS/components/capacity.vue

@@ -56,11 +56,11 @@ export default {
       this.options.requestUrl = "/api/v1/rms/getCapacityList?apiId=336&con=" +this.textInput;
     },
      toInsert() {
-      this.$router.push("/resouse/addCapacity");
+      this.$router.push("/addCapacity");
 
     },
     updateCapacity(capacityId){
-      this.$router.push("/resouse/editCapacity/" + capacityId)
+      this.$router.push("/editCapacity/" + capacityId)
     },
     deleteCapacity(scope){
       this.$confirm("是否删除", "提示", {
@@ -70,7 +70,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteCapacity/" + scope.row.capacityId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/carDriver.vue

@@ -57,12 +57,12 @@ export default {
       },
 
      toInsert() {
-      this.$router.push("/resouse/addCarDriver");
+      this.$router.push("/addCarDriver");
 
     },
     updateCarDriver(scope){
       console.log(scope.row.driverId)
-      this.$router.push("/resouse/editCarDriver/"+scope.row.driverId)
+      this.$router.push("/editCarDriver/"+scope.row.driverId)
     },
     deleteCarDriver(scope){
       this.$confirm("是否删除", "提示", {
@@ -72,7 +72,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteCarDriver/" + scope.row.driverId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/carrier.vue

@@ -56,12 +56,12 @@ export default {
       console.log(this.textInput)
     },
      toInsert() {
-      this.$router.push("/resouse/addCarrier");
+      this.$router.push("/addCarrier");
 
     },
     updateCarrier(scope){
       console.log(scope.row.settlementId)
-      this.$router.push("/resouse/editCarrier/"+scope.row.carrierId)
+      this.$router.push("/editCarrier/"+scope.row.carrierId)
     },
     deleteCarrier(scope){
       this.$confirm("是否删除", "提示", {
@@ -71,7 +71,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteCarrier/" + scope.row.carrierId)
             .then((res) => {
               if (res.data.code == 200) {

+ 2 - 2
src/views/RMS/components/editCapacity.vue

@@ -39,7 +39,7 @@ export default {
       //编辑 
 console.log(this.$route.params)            
 
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getCapacityById/" +
             this.$route.params.capacityId
@@ -73,7 +73,7 @@ console.log(this.$route.params)
          carrierId:this.form1.carrierId,
        }  
         console.log( this.$route.params.capacityId);
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateCapacity",
            RmsCapacity

+ 2 - 2
src/views/RMS/components/editCarDriver.vue

@@ -37,7 +37,7 @@ export default {
   methods: {
     information() {
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getCarDriverById/" +
             this.$route.params.driverId
@@ -73,7 +73,7 @@ export default {
        driverLicence:this.form1.driverLicence,
        driverLicence:this.form1.driverLicence,
       }
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateCarDriver",
             RmsCarDriver

+ 2 - 2
src/views/RMS/components/editCarrier.vue

@@ -38,7 +38,7 @@ export default {
   methods: {
     information() {
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getCarrierById/" +
             this.$route.params.carrierId
@@ -84,7 +84,7 @@ export default {
         carrierType:this.form1.carrierType,
         carrierTransportType:this.form1.carrierTransportType
       };
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateCarrier",
             RmsCarrier

+ 3 - 3
src/views/RMS/components/editGatepost.vue

@@ -130,7 +130,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteGatepostRules/" + scope.row.rulesId)
             .then((res) => {
               if (res.data.code == 200) {
@@ -193,7 +193,7 @@ export default {
     },
     information() {
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getGatepostById/" +
             this.$route.params.rulesId
@@ -233,7 +233,7 @@ export default {
         entityOutTypeLists:entityOutTypeLists,
         material:this.materialList
       }
-      this.$axios
+      this.axios
           .post(
             "/api/v1/rms/updateGatepost",
             mapValue

+ 2 - 2
src/views/RMS/components/editMaterial.vue

@@ -38,7 +38,7 @@ export default {
   methods: {  
     information() {
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getMaterialById/" +
             this.$route.params.materialId
@@ -70,7 +70,7 @@ export default {
         unitOfMeasureId:this.form1.unitOfMeasureId,
         materialTheoreticalWeight:this.form1.materialTheoreticalWeight,
       };
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateMaterial",
             RmsMaterial

+ 2 - 2
src/views/RMS/components/editOilPrice.vue

@@ -38,7 +38,7 @@ export default {
   methods: {
     information() {
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getOilPriceById/" +
           this.$route.params.priceId
@@ -67,7 +67,7 @@ export default {
         priceOilName:this.form1.priceOilName,
 
       };
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/updateOilPrice",
           RmsOilPrice

+ 2 - 2
src/views/RMS/components/editPersonnel.vue

@@ -37,7 +37,7 @@ export default {
     information() {
       //编辑 
    console.log(this.$route.params)
-      this.$axios
+      this.axios
         .post(
             "/api/v1/rms/getPersonnelById/" +
                this.$route.params.personnelId
@@ -66,7 +66,7 @@ export default {
          personnelShifts: this.form1.personnelShifts,
          shipperId: this.form1.shipperId,
        }  
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updatePersonnel",
             RmsPersonnel

+ 2 - 2
src/views/RMS/components/editRawWarehouse.vue

@@ -37,7 +37,7 @@ export default {
   methods: {
     information() {
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getWarehouseById/" +
             this.$route.params.warehouseId
@@ -60,7 +60,7 @@ export default {
     onClickConfirm() {
       console.log(this.form1)
        let RmsWarehouse=this.form1;
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateWarehouse",
            RmsWarehouse 

+ 2 - 2
src/views/RMS/components/editRmsShipper.vue

@@ -38,7 +38,7 @@ export default {
   methods: {
     information() {
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getShipperById/" +
             this.$route.params.shipperId
@@ -65,7 +65,7 @@ export default {
         shipperName: this.form1.shipperName,
         shipperAbbreviation: this.form1.shipperAbbreviation
       };
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateShipper",
             RmsShipper

+ 2 - 2
src/views/RMS/components/editSupplier.vue

@@ -39,7 +39,7 @@ export default {
     information() {
       console.log("supplierId",this.$router.params);
       //编辑
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getSupplierById/" +
             this.$route.params.supplierId
@@ -69,7 +69,7 @@ export default {
         supplierContactsName: this.form1.supplierContactsName,
         supplierContactNumber: this.form1.supplierContactNumber
       };
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateSupplier",
             RmsSupplier

+ 4 - 4
src/views/RMS/components/editTruckCalculate.vue

@@ -100,7 +100,7 @@ export default {
       //编辑 
    console.log(this.$route.params)            
    console.log("truckCalculateId",this.$route.params.truckCalulateId);  
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/getTruckCalculateById/" +
             this.$route.params.truckCalulateId
@@ -135,7 +135,7 @@ export default {
          calculateType:this.form1.calculateType,
        }
     
-        this.$axios
+        this.axios
           .post(
             "/api/v1/rms/updateTruckCalculate",
           map
@@ -153,7 +153,7 @@ makeSure() {
         materialId:this.mapList.materialId,
       }
 
-      this.$axios
+      this.axios
         .post(
           "/api/v1/rms/insertTruckCalculateOfMaterial",
            rmsTruckCalculateMaterial
@@ -177,7 +177,7 @@ makeSure() {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteTruckCalculateMaterial/" + scope.row.truckCalculateMaterialId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/gatepost.vue

@@ -56,12 +56,12 @@ export default {
       console.log(this.textInput)
     },
      toInsert() {
-      this.$router.push("/resouse/addGatepost");
+      this.$router.push("/addGatepost");
 
     },
     updateGatepostRules(scope){
       console.log(scope.row.gatepostId)
-      this.$router.push("/resouse/editGatepost/"+ scope.row.gatepostId)
+      this.$router.push("/editGatepost/"+ scope.row.gatepostId)
     },
     deleteGatepost(scope){
       this.$confirm("是否删除", "提示", {
@@ -71,7 +71,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteGatepost/" + scope.row.gatepostId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/material.vue

@@ -56,12 +56,12 @@ export default {
       console.log(this.inputText)
     },
     toInsert() {
-      this.$router.push("/resouse/addMaterial");
+      this.$router.push("/addMaterial");
 
     },
     updateMaterial(scope){
       console.log(scope.row.materialId)
-      this.$router.push("/resouse/editMaterial/"+scope.row.materialId)
+      this.$router.push("/editMaterial/"+scope.row.materialId)
     },
     deleteMaterial(scope){
       this.$confirm("是否删除", "提示", {
@@ -71,7 +71,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteMaterial/" + scope.row.materialId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/oilPrice.vue

@@ -57,13 +57,13 @@ export default {
     },
 
     toInsert() {
-      this.$router.push("/resouse/addOilPrice");
+      this.$router.push("/addOilPrice");
 
     },
     /*这里要改一改*/
     updateOilPrice(scope){
       console.log(scope.row.priceId)
-      this.$router.push("/resouse/editOilPrice/"+scope.row.priceId)
+      this.$router.push("/editOilPrice/"+scope.row.priceId)
     },
     deleteOilPrice(scope){
       this.$confirm("是否删除", "提示", {
@@ -73,7 +73,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteOilPrice/" + scope.row.priceId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/personnel.vue

@@ -57,12 +57,12 @@ export default {
       console.log(this.textInput)
     },
     toInsert() {
-      this.$router.push("/resouse/addPersonnel");
+      this.$router.push("/addPersonnel");
 
     },
     updatePersonnel(scope){
       console.log(scope.row.personnelId)
-      this.$router.push("/resouse/editPersonnel/"+scope.row.personnelId)
+      this.$router.push("/editPersonnel/"+scope.row.personnelId)
     },
     deletePersonnel(scope){
       this.$confirm("是否删除", "提示", {
@@ -72,7 +72,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deletePersonnel/" + scope.row.personnelId)
             .then((res) => {
               if (res.data.code == 200) {

+ 2 - 2
src/views/RMS/components/pier.vue

@@ -45,7 +45,7 @@ export default {
   },
   methods:{
      toInsert() {
-      this.$router.push("/resouse/addPier");
+      this.$router.push("/addPier");
     },
     deleteBmsTrainFreight(scope){
       this.$confirm("是否删除", "提示", {
@@ -55,7 +55,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deletePier/" + scope.row.pierId)
             .then((res) => {
               if (res.data.code == 200) {

+ 2 - 2
src/views/RMS/components/port.vue

@@ -45,7 +45,7 @@ export default {
   },
   methods:{
      toInsert() {
-      this.$router.push("/resouse/addPort");
+      this.$router.push("/addPort");
 
     },
 
@@ -57,7 +57,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deletePort/" + scope.row.portId)
             .then((res) => {
               if (res.data.code == 200) {

+ 2 - 2
src/views/RMS/components/portStorageYard.vue

@@ -45,7 +45,7 @@ export default {
   },
   methods:{
      toInsert() {
-      this.$router.push("/resouse/addPort");
+      this.$router.push("/addPort");
 
     },
 
@@ -57,7 +57,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deletePort/" + scope.row.portId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/rawMaterialManufacturer.vue

@@ -52,12 +52,12 @@ export default {
   },
   methods:{
      toInsert() {
-      this.$router.push("/resouse/addRawMaterialManufacturer");
+      this.$router.push("/addRawMaterialManufacturer");
 
     },
     updateBmsTrainFreight(scope){
       console.log(scope.row.settlementId)
-      this.$router.push("/resouse/addPort/"+scope.row.settlementId)
+      this.$router.push("/addPort/"+scope.row.settlementId)
     },
     deleteBmsTrainFreight(scope){
       this.$confirm("是否删除", "提示", {
@@ -67,7 +67,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/bms/deleteTrainSettlement/" + scope.row.settlementId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/rawWarehouse.vue

@@ -55,12 +55,12 @@ export default {
       this.options.requestUrl="/api/v1/rms/getWarehouseList?apiId=345&con="+this.inputText;
     },
      toInsert() {
-      this.$router.push("/resouse/addRawWarehouse");
+      this.$router.push("/addRawWarehouse");
 
     },
     updateWarehouse(warehouseId){
       // console.log(scope.row.warehouseId)
-      this.$router.push("/resouse/editRawWarehouse/" +warehouseId)
+      this.$router.push("/editRawWarehouse/" +warehouseId)
     },
     deleteWarehouse(scope){
       this.$confirm("是否删除", "提示", {
@@ -70,7 +70,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteWarehouse/" + scope.row.warehouseId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/rmsShipper.vue

@@ -56,12 +56,12 @@ export default {
       console.log(this.textInput)
     },
     toInsert() {
-      this.$router.push("/resouse/addRmsShipper");
+      this.$router.push("/addRmsShipper");
 
     },
     updateShipper(scope){
       console.log(scope.row.shipperId)
-      this.$router.push("/resouse/editRmsShipper/"+scope.row.shipperId)
+      this.$router.push("/editRmsShipper/"+scope.row.shipperId)
     },
     deleteShipper(scope){
       this.$confirm("是否删除", "提示", {
@@ -71,7 +71,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteShipper/" + scope.row.shipperId)
             .then((res) => {
               if (res.data.code == 200) {

+ 3 - 3
src/views/RMS/components/supplier.vue

@@ -56,12 +56,12 @@ export default {
       console.log(this.textInput)
     },
      toInsert() {
-      this.$router.push("/resouse/addSupplier");
+      this.$router.push("/addSupplier");
 
     },
     updateSupplier(scope){
       console.log(scope.row.supplierId)
-      this.$router.push("/resouse/editSupplier/"+scope.row.supplierId)
+      this.$router.push("/editSupplier/"+scope.row.supplierId)
     },
     deleteSupplier(scope){
       this.$confirm("是否删除", "提示", {
@@ -71,7 +71,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteSupplier/" + scope.row.supplierId)
             .then((res) => {
               if (res.data.code == 200) {

+ 2 - 2
src/views/RMS/components/transitRoute.vue

@@ -88,7 +88,7 @@ export default {
                   });
               } else if (num == 1) {
                 this.$router.push({
-                  path: "/resouse/transitRouteAdd/" + lineId,
+                  path: "/transitRouteAdd/" + lineId,
                 });
               }
             }
@@ -103,7 +103,7 @@ export default {
     // 跳转新增运输路线页面
     AddClick() {
       this.$router.push({
-        path: "/resouse/transitRouteAdd/0",
+        path: "/transitRouteAdd/0",
       });
     },
     //跳转修改界面

+ 4 - 4
src/views/RMS/components/transitRouteAdd.vue

@@ -122,7 +122,7 @@ export default {
   methods: {
     A(){
  // 获取所有的作业环节
-            this.$axios.post("/api/v1/rms/getLink").then((res) => {
+            this.axios.post("/api/v1/rms/getLink").then((res) => {
               if (res.data.code == "200") {
                 this.btnList = res.data.data;
               }
@@ -136,7 +136,7 @@ export default {
     onBlur() {
       console.log(this.inputValue);
       if (this.inputValue) {
-        this.$axios.post('/api/v1/rms/LinkInsertSelective',
+        this.axios.post('/api/v1/rms/LinkInsertSelective',
         {
           linkName:this.inputValue,
           userName:""
@@ -157,7 +157,7 @@ export default {
       if (this.state == 0) {
         console.log("新增");
       } else {
-        this.$axios
+        this.axios
           .post("/api/v1/rms/getLinkToUpdate?lineId=" + this.state)
           .then((res) => {
             if (res.data.code == "200") {
@@ -221,7 +221,7 @@ export default {
           URL = "/api/v1/rms/updateByPrimaryKeySelective";
           messageText = "修改成功!";
         }
-        this.$axios.post(URL, map).then((res) => {
+        this.axios.post(URL, map).then((res) => {
           if ((res.data.code = "200")) {
             this.$message({
               showClose: true,

+ 3 - 3
src/views/RMS/components/truckCalculate.vue

@@ -54,11 +54,11 @@ export default {
         this.options.requestUrl="/api/v1/rms/getTruckCalculateList?apiId=346&con="+this.inputText;
       },
      toInsert() {
-      this.$router.push("/resouse/addTruckCalculate");
+      this.$router.push("/addTruckCalculate");
 
     },
    updateTruckCalculate(truckCalculateId){
-      this.$router.push("/resouse/editTruckCalculate/" + truckCalculateId)
+      this.$router.push("/editTruckCalculate/" + truckCalculateId)
     },
    deleteTruckCalculate(scope){
       this.$confirm("是否删除", "提示", {
@@ -68,7 +68,7 @@ export default {
         center: true,
       })
         .then(() => {
-          this.$axios
+          this.axios
             .post("/api/v1/rms/deleteTruckCalculate/" + scope.row.truckCalculateId)
             .then((res) => {
               if (res.data.code == 200) {

+ 11 - 11
src/views/RMS/router/index.js

@@ -80,19 +80,19 @@ const constantRouterMap = [
 		{path: 'carDriver', name: 'carDriver', meta: {code: 'xtpzgl-yhgl'}, component: carDriver},
 		{path: 'carrier', name: 'carrier', meta: {code: 'xtpzgl-yhgl'}, component: carrier},
 		{path: 'addPidetailsTruckCalculateer', name: 'addPidetailsTruckCalculateer', meta: {code: 'xtpzgl-yhgl'}, component: addPidetailsTruckCalculateer},
-		{path: 'editCapacity', name: 'editCapacity', meta: {code: 'xtpzgl-yhgl'}, component: editCapacity},
-		{path: 'editCarDriver', name: 'editCarDriver', meta: {code: 'xtpzgl-yhgl'}, component: editCarDriver},
-		{path: 'editCarrier', name: 'editCarrier', meta: {code: 'xtpzgl-yhgl'}, component: editCarrier},
-		{path: 'editGatepost', name: 'editGatepost', meta: {code: 'xtpzgl-yhgl'}, component: editGatepost},
-		{path: 'editMaterial', name: 'editMaterial', meta: {code: 'xtpzgl-yhgl'}, component: editMaterial},
-		{path: 'editOilPrice', name: 'editOilPrice', meta: {code: 'xtpzgl-yhgl'}, component: editOilPrice},
-		{path: 'editPersonnel', name: 'editPersonnel', meta: {code: 'xtpzgl-yhgl'}, component: editPersonnel},
+		{path: 'editCapacity/:capacityId', name: 'editCapacity', meta: {code: 'xtpzgl-yhgl'}, component: editCapacity},
+		{path: 'editCarDriver/:driverId', name: 'editCarDriver', meta: {code: 'xtpzgl-yhgl'}, component: editCarDriver},
+		{path: 'editCarrier/:carrierId', name: 'editCarrier', meta: {code: 'xtpzgl-yhgl'}, component: editCarrier},
+		{path: 'editGatepost/:gatepostId', name: 'editGatepost', meta: {code: 'xtpzgl-yhgl'}, component: editGatepost},
+		{path: 'editMaterial/:materialId', name: 'editMaterial', meta: {code: 'xtpzgl-yhgl'}, component: editMaterial},
+		{path: 'editOilPrice/:priceId', name: 'editOilPrice', meta: {code: 'xtpzgl-yhgl'}, component: editOilPrice},
+		{path: 'editPersonnel/:personnelId', name: 'editPersonnel', meta: {code: 'xtpzgl-yhgl'}, component: editPersonnel},
 		{path: 'editPier', name: 'editPier', meta: {code: 'xtpzgl-yhgl'}, component: editPier},
 		{path: 'editPortStorageYard', name: 'editPortStorageYard', meta: {code: 'xtpzgl-yhgl'}, component: editPortStorageYard},
 		{path: 'editRawMaterialManufacturer', name: 'editRawMaterialManufacturer', meta: {code: 'xtpzgl-yhgl'}, component: editRawMaterialManufacturer},
-		{path: 'editRawWarehouse', name: 'editRawWarehouse', meta: {code: 'xtpzgl-yhgl'}, component: editRawWarehouse},
-		{path: 'editRmsShipper', name: 'editRmsShipper', meta: {code: 'xtpzgl-yhgl'}, component: editRmsShipper},
-		{path: 'editSupplier', name: 'editSupplier', meta: {code: 'xtpzgl-yhgl'}, component: editSupplier},
+		{path: 'editRawWarehouse/:warehouseId', name: 'editRawWarehouse', meta: {code: 'xtpzgl-yhgl'}, component: editRawWarehouse},
+		{path: 'editRmsShipper/:shipperId', name: 'editRmsShipper', meta: {code: 'xtpzgl-yhgl'}, component: editRmsShipper},
+		{path: 'editSupplier/:supplierId', name: 'editSupplier', meta: {code: 'xtpzgl-yhgl'}, component: editSupplier},
 		{path: 'editTruckCalculate', name: 'editTruckCalculate', meta: {code: 'xtpzgl-yhgl'}, component: editTruckCalculate},
 		{path: 'gatepost', name: 'gatepost', meta: {code: 'xtpzgl-yhgl'}, component: gatepost},
 		{path: 'material', name: 'material', meta: {code: 'xtpzgl-yhgl'}, component: material},
@@ -106,7 +106,7 @@ const constantRouterMap = [
 		{path: 'rmsShipper', name: 'rmsShipper', meta: {code: 'xtpzgl-yhgl'}, component: rmsShipper},
 		{path: 'supplier', name: 'supplier', meta: {code: 'xtpzgl-yhgl'}, component: supplier},
 		{path: 'transitRoute', name: 'transitRoute', meta: {code: 'xtpzgl-yhgl'}, component: transitRoute},
-		{path: 'transitRouteAdd', name: 'transitRouteAdd', meta: {code: 'xtpzgl-yhgl'}, component: transitRouteAdd},
+		{path: 'transitRouteAdd/:addup', name: 'transitRouteAdd', meta: {code: 'xtpzgl-yhgl'}, component: transitRouteAdd},
 		{path: 'truckCalculate', name: 'truckCalculate', meta: {code: 'xtpzgl-yhgl'}, component: truckCalculate},
 	  ]
 	}

+ 21 - 0
src/views/TMS/app.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="renderer" content="webkit">
+    <meta content="工业互联网平台 iCore-ICP" name="keywords">
+    <meta content="工业互联网平台 iCore-ICP" name="description">
+    <title>加载中... - 工业互联网平台 iCore-ICP</title>
+    <link href="../static/css/common.css" rel="stylesheet"/>
+    <link href="../static/img/favicon.ico" rel="shortcut icon"/>
+    <script src="../static/lib/jquery/jquery.min.js" type="text/javascript"></script>
+    <script src="../static/lib/jquery/jquery.PrintArea.js" type="text/javascript"></script>
+    <script src="../static/lib/qrcode.min.js" type="text/javascript"></script>
+    <script src='../static/lib/XLSX/xlsx.core.min.js' type='text/javascript'></script>
+    <script src="../static/js/common.js" type="text/javascript"></script>
+  </head>
+  <body>
+    <div id="app"></div>
+  </body>
+</html>

+ 28 - 0
src/views/TMS/app.js

@@ -0,0 +1,28 @@
+// The Vue build version to load with the `import` command
+// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
+import Vue from 'vue';
+import App from '@/components/App.vue';
+// include
+import '@/config/include.js';
+// 通用store
+import store from '@/store/index.js';
+
+// router
+// import router from '../router/index.js';
+
+
+// 注册表格的全局组件
+import DilCommonUI from "@/components/DilCommonUI";
+Vue.use(DilCommonUI);
+
+// 关闭生产模式下给出的提示
+Vue.config.productionTip = false;
+
+/* eslint-disable no-new */
+new Vue({
+  el: '#app',
+  router,
+  store,
+  components: { App },
+  template: '<App/>'
+});

+ 91 - 0
src/views/TMS/bmsport/components/addHandlingFee.vue

@@ -0,0 +1,91 @@
+<template>
+  <!-- 船只信息页面 -->
+  <div class="homeworkPath">
+    <page-title>港口装卸费</page-title>
+    <div class="main">
+      <span class="text">港口装卸费新增</span>
+      <span class="a"></span>
+    </div>
+    <div>
+      <div class="form-box" style="margin-left: 5rem">
+        <el-form ><dil-form :formId="222" v-model="form"></dil-form></el-form>
+      </div>
+    </div>
+    <div class="button-ins">
+      <el-button type="primary" @click="makeSure">新增港口装卸费</el-button>
+    </div>
+    <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
+    </dilTable>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      restaurants: [],
+      state: "",
+      form: {},
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getBatch?apiId=115",
+        // 控制显示当选列
+        selectionType: "radio",
+        rowMap:{},
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+    currentRadioChange(row) {
+      this.rowMap=row
+      console.log(this.rowMap);
+    },
+    // 新增
+    makeSure() {
+      let mapVal = {
+        feeMaterialTonnage: this.form.feeMaterialTonnage,
+      };
+      console.log(mapVal);
+      if (
+      mapVal.feeMaterialTonnage==null
+      ) this.$message.error("存在空值!");
+      else
+      this.$axios
+        .post(
+          "/api/v1/bms/addPortHandlingFee",
+          {
+           mapVal:mapVal,
+           rowMap:this.rowMap
+          }
+        )
+        .then((res) => {
+          if (res.data.code == 200) {
+            this.$message({
+              type: "success",
+              message: "新增成功!",
+            });
+            // this.$refs.table.refreshData();
+            this.$router.go(-1);
+          } else {
+            this.$message.error("新增失败!");
+          }
+          this.$refs['table'].resetField();
+        });
+    },
+    handleSelect(item) {
+      console.log(item);
+    },
+    onclick() {
+      console.log(1);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+@import "@/styles/appoint/contract/ContractInsert.scss";
+</style>

+ 97 - 0
src/views/TMS/bmsport/components/handlingFee.vue

@@ -0,0 +1,97 @@
+<template>
+  <!-- 港口装卸费页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" class="btn" @click="addclick">
+        新增
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" align="center" width="100">
+        <template slot-scope="scope">
+          <el-button @click="click(scope.row.feeId)" type="text" size="small"
+            >编辑</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.feeId)"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "homeworkPath",
+  data() {
+    return {
+      input:"",
+      restaurants: [],
+      state: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getPortHandlingFeeList?apiId=151"
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+    handleSelect(item) {
+      console.log(item);
+    },
+    onclick() {
+      this.option.requestUrl = "/api/v1/bms/getPortHandlingFeeList?apiId=151&con="+this.input;
+    },
+    click(feeId) {
+      this.$router.push("/updateHandlingFee/" + feeId);
+    },
+    addclick() {
+      this.$router.push("/addHandlingFee");
+    },
+    deleteclick(scope) {
+      let feeId = scope;
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$axios
+            .post(
+              "/api/v1/bms/deletePortHandlingFee/" + feeId
+            )
+            .then(() => {
+                        this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 95 - 0
src/views/TMS/bmsport/components/updateHandlingFee.vue

@@ -0,0 +1,95 @@
+<template>
+  <!-- 修改港口装卸费 -->
+  <div id="contractDetails">
+    <page-title>编辑</page-title>
+    <div class="main">
+      <span class="text">港口装卸费</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="223" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>
+
+    <div class="button-box">
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+      <el-button @click="onClickCancel">返回</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+export default {
+  components: { PageTitle },
+ data(){
+     return {
+      form1: {},
+  }
+ },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      //编辑位置作业
+      this.$axios
+        .post("/api/v1/bms/getFeeToUpdate/" + this.$route.params.feeId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+            // console.log(e);
+            // console.log(this.form1);
+            // console.log(this.$route.params.loadingId);
+          });
+        });
+    },
+    handleCheckedCitiesChange(value) {
+      console.log(value);
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    currentRadioChange(row) {
+      this.aaaa = row;
+    },
+    // 确认
+    onClickConfirm() {
+      let mapVal = {
+        feeId: this.$route.params.feeId,
+        materialId: this.form1.materialId,
+        feeForeignShipName: this.form1.feeForeignShipName,
+        feeMaterialTonnage: this.form1.feeMaterialTonnage,
+        priceId: this.form1.priceId,
+        feeValue: this.form1.feeValue,
+      };
+      console.log(mapVal);
+      this.$axios
+        .post(
+          "/api/v1/bms/updatePortHandlingFee",
+          mapVal
+        )
+        .then((res) => {
+          if (res.data.code == 200) {
+            this.$message({
+              type: "success",
+              message: "修改成功!",
+            });
+            // this.$refs.table.refreshData();
+            this.$router.go(-1);
+          } else {
+            this.$message.error("修改失败!");
+          }
+          this.$refs['table'].resetField();
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/appoint/contract/ContractInsert.scss";
+</style>

+ 46 - 0
src/views/TMS/bmsship/components/detailsOrder.vue

@@ -0,0 +1,46 @@
+<template>
+  <!-- 船运计费账单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+
+    </div>
+    <dilTable v-bind.sync="option" class="table">
+      
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      restaurants: [],
+      state: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getDetailsOrderList?apiId=93",
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/bms/getDetailsOrderList?apiId=93&con="+this.input;
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 68 - 0
src/views/TMS/bmsship/components/detailsStatement.vue

@@ -0,0 +1,68 @@
+<template>
+  <!-- 船运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="shipclick">
+        生成水运费账单
+      </el-button>
+      <el-button type="primary" @click="waterclick">
+        生成水分检测费账单
+      </el-button>
+      <el-button type="primary" @click="click()">
+        生成途损费账单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option" >
+      <el-table-column fixed="right" label="操作" width="100">
+        <template slot-scope="scope">
+          <el-button @click="btnclick(scope.row)" type="text" size="small"
+            >详情</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getStatementList?apiId=113",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/bms/getStatementList?apiId=113&con="+this.input;
+    },
+    btnclick(row) {
+      this.$router.push("/bmsship/statementDetailsOrder/" + row.batchId + "?statementId=" + row.statementId);
+    },
+    shipclick() {
+      this.$router.push("/bmsship/uncomplateDetails");
+    },
+    waterclick() {
+      this.$router.push("/bmsship/uncomplateWater");
+    },
+    click() {
+      this.$router.push("/bmsship/toBeStatement");
+    }
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 84 - 0
src/views/TMS/bmsship/components/lossDetailsStatement.vue

@@ -0,0 +1,84 @@
+<template>
+  <!-- 船运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <!-- <el-button type="primary" @click="click()">
+        生成途损费账单
+      </el-button> -->
+    </div>
+    <dilTable v-bind.sync="option">
+      <!-- <el-table-column fixed="right" label="操作" width="100">
+        <template slot-scope="scope">
+          <el-button @click="btnclick(scope.row)" type="text" size="small"
+            >详情</el-button
+          >
+        </template>
+      </el-table-column> -->
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getLossStatementList?apiId=113",
+        // // 控制显示多选列
+        // selectionType: "select",
+        // mapList:[],
+      },
+    };
+  },
+  methods: {
+    // selectionChange(selection) { 
+    //   this.mapList=selection
+    // },
+    onclick() {
+      this.option.requestUrl = "/api/v1/bms/getLossStatementList?apiId=113&con="+this.input;
+    },
+    // btnclick(row) {
+    //   this.$router.push("/bmsship/statementDetailsOrder/" + row.batchId + "?statementId=" + row.statementId);
+    // },
+    // click() {
+    //   this.$confirm("是否生成", "提示", {
+    //     confirmButtonText: "确定",
+    //     cancelButtonText: "取消",
+    //     type: "warning",
+    //     center: true,
+    //   })
+    //     .then(() => {
+    //       this.$message({
+    //         type: "success",
+    //         message: "生成途损账单成功!",
+    //       });
+    //   this.$axios.post("/api/v1/bmsship/bmsshipstatement/addLossStatement",this.mapList)
+    //               .then(() => {
+    //           this.$router.go(0);
+    //         });
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: "info",
+    //         message: "取消生成!",
+    //       });
+    //     });
+      // this.$router.push("/path/addHomeworkPath/");
+    // },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 132 - 0
src/views/TMS/bmsship/components/shipBillingFormula.vue

@@ -0,0 +1,132 @@
+<template>
+  <!-- 计费公式页面 -->
+  <div id="expression">
+    <!-- 计算公式 -->
+    <div>
+      <img src="@/assets/img/min.png" alt="" />
+      <span>水运费计算公式</span>
+    </div>
+    <hr />
+    <table>
+      <!-- <tr v-for="(item, i) in shipFeesFormula" :key="i"> -->
+        <td class="left">{{ shipFeesFormula.formula_name }} :</td>
+        <td>
+          <span>{{ shipFeesFormula.formula_string }}</span>
+        </td>
+      <!-- </tr> -->
+    </table>
+        <!-- 计算公式 -->
+    <div>
+      <img src="@/assets/img/min.png" alt="" />
+      <span>水分检测费计算公式</span>
+    </div>
+    <hr />
+    <table>
+      <!-- <tr v-for="(item, i) in waterFeesFormula" :key="i"> -->
+        <td class="left">{{ waterFeesFormula.formula_name }} :</td>
+        <td>
+          <span>{{ waterFeesFormula.formula_string }}</span>
+        </td>
+      <!-- </tr> -->
+    </table>
+        <!-- 计算公式 -->
+    <div>
+      <img src="@/assets/img/min.png" alt="" />
+      <span>途损费计算公式</span>
+    </div>
+    <hr />
+    <table>
+      <!-- <tr v-for="(item, i) in lossFeesFormula" :key="i"> -->
+        <td class="left">{{ lossFeesFormula.formula_name }} :</td>
+        <td>
+          <span>{{ lossFeesFormula.formula_string }}</span>
+        </td>
+      <!-- </tr> -->
+    </table>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      shipFeesFormula: {},
+      lossFeesFormula: {},
+      waterFeesFormula: {},
+    };
+  },
+  created() {
+    // 获取水运费计算公式
+    this.$axios
+      .post("/api/v1/bms/getShipFeesFormula")
+      .then((res) => {
+        this.shipFeesFormula = res.data.data;
+        console.log(this.shipFeesFormula);
+      });
+    // 获取油价
+    this.$axios
+      .post("/api/v1/bms/getLossFeesFormula")
+      .then((res) => {
+        this.lossFeesFormula = res.data.data;
+        console.log(this.lossFeesFormula);
+      });
+      // 获取油价
+    this.$axios
+      .post("/api/v1/bms/getWaterFeesFormula")
+      .then((res) => {
+        this.waterFeesFormula = res.data.data;
+        console.log(this.waterFeesFormula);
+      });
+  },
+};
+</script>
+
+<style scoped>
+#expression {
+  margin-top: 4.375rem;
+  margin-left: 1.875rem;
+}
+#oilPrice {
+  margin-top: 4.375rem;
+}
+img {
+  width: 1rem;
+}
+span {
+  margin-left: 0.625rem;
+}
+hr {
+  margin: -0.5rem 1.875rem 0 7.5rem;
+  background-color: rgb(220, 223, 231);
+  height: 0.0625rem;
+  border: none;
+}
+table {
+  margin-top: 3.125rem;
+  margin-left: 3.125rem;
+  width: 93.75rem;
+  border: 0.0625rem solid rgb(220, 223, 231);
+  border-collapse: collapse;
+}
+.left {
+  width: 10.25rem;
+  background: #f0f7ff;
+  text-align: center;
+}
+.right {
+  text-align: left;
+}
+tr {
+  height: 2.875rem;
+}
+td {
+  height: 6.25rem ; text-align:initial; border: 0.0625rem solid rgb(220, 223, 231);
+}
+.el-input {
+  width: 6.25rem;
+  text-align: center;
+}
+.oil {
+  margin-left: 0.625rem;
+}
+</style>

+ 84 - 0
src/views/TMS/bmsship/components/shipResult.vue

@@ -0,0 +1,84 @@
+<template>
+  <!-- 船运实绩页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search" ></i>查询
+      </el-button>
+      <!-- <el-button type="primary" @click="click">
+        生成水分检测账单
+      </el-button> -->
+    </div>
+    <dilTable v-bind.sync="option">
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      restaurants: [],
+      state: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getShipResult?apiId=112&batchId="
+        + this.$route.params.batchId,
+        //         // 控制显示多选列
+        // selectionType: "select",
+        // mapList:[],
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+  //  selectionChange(selection) { 
+  //     this.mapList=selection
+  //   }, 
+    onclick() {
+      console.log(1);
+    },
+    // click() {
+    //   console.log(this.mapList);
+    //   this.$confirm("是否生成", "提示", {
+    //     confirmButtonText: "确定",
+    //     cancelButtonText: "取消",
+    //     type: "warning",
+    //     center: true,
+    //   })
+    //     .then(() => {
+    //       this.$message({
+    //         type: "success",
+    //         message: "生成水分检测账单成功!",
+    //       });
+    //   this.$axios.post("/api/v1/bmsship/bmsshipstatement/addWaterStatement",this.mapList)
+    //               .then(() => {
+    //           console.log(this.mapList);
+    //           this.$router.go(0);
+    //         });
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: "info",
+    //         message: "取消生成!",
+    //       });
+    //     });
+    // }
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 69 - 0
src/views/TMS/bmsship/components/statementDetailsOrder.vue

@@ -0,0 +1,69 @@
+<template>
+  <!-- 船运计费账单所属详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+    </div>
+     <el-divider content-position="left">计费详单</el-divider>
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" align="center" width="100">
+        <template slot-scope="scope">
+          <el-button @click="btnclick(scope.row.batchId)" type="text" size="small"
+            >船运实绩</el-button
+          >
+          <!-- <el-button @click="onclick(scope.row.batchId)" type="text" size="small"
+            >汽运实绩</el-button
+          > -->
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getStatementDetailsOrderList?apiId=93&batchId="
+          + this.$route.params.batchId + "&statementId=" + this.$route.query.statementId,
+      },
+      tableData: [{
+            shipperName: '',
+            shipCost: '',
+            lossCost: '',
+            waterFees: '',
+            statementTotalAmount: ''
+          }]
+    };
+  },
+  mounted(){
+    // this.initialization();
+  },
+  methods: {
+    // initialization(){
+    //   this.$axios.post('/api/v1/bmsship/bmsshipstatement/getAllCost?batchId='+this.$route.params.batchId).then((res)=>{
+    //     this.tableData = res.data.data
+    //   })
+    // },
+    // onclick(batchId) {
+    //   this.$route.push("/bmsship/shipResult/" + batchId)
+    // },
+    btnclick(batchId) {
+      this.$router.push("/bmsship/shipResult/" + batchId);
+    },
+    // click(batchId) {
+    //   this.$route.push("/bmsship/shipResult/" + batchId)
+    // },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 98 - 0
src/views/TMS/bmsship/components/toBeStatement.vue

@@ -0,0 +1,98 @@
+<template>
+  <!-- 船运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick">
+        生成途损费账单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option"  @radio-change="currentRadioChange">
+      <!-- <el-table-column fixed="right" label="操作" width="100"> -->
+        <!-- <template slot-scope="scope">
+          <el-button @click="click(scope.row.pathId)" type="text" size="small"
+            >编辑</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.pathId)"
+            >删除</el-button
+          >
+        </template> -->
+      <!-- </el-table-column> -->
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getBatch?apiId=115",
+        // 控制显示当选列
+        selectionType: "radio",
+        map:{},
+      },
+    };
+  },
+  methods: {
+    currentRadioChange(row) {
+      this.map=row
+      console.log(row);
+    },
+    onclick() {
+      this.option.requestUrl = "/api/v1/bms/getBatch?apiId=115&con="+this.input;
+    },
+    btnclick() {
+      this.$confirm("是否生成", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+         
+      this.$axios.post("/api/v1/bms/addLossStatement",this.map)
+                  .then((res) => {
+                    var  num = res.data.data;
+                    console.log(num,"num");
+                    if( num > 0){
+                       this.$message({
+                          type: "success",
+                          message: "生成账单成功!",
+                        });
+                    }else{
+                       this.$message({
+                          type: "warning",
+                          message: "未产生途损费用!",
+                        });
+                    }
+              this.$router.go(-1);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消生成!",
+          });
+        });
+      // this.$router.push("/path/addHomeworkPath/");
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 91 - 0
src/views/TMS/bmsship/components/uncomplateDetails.vue

@@ -0,0 +1,91 @@
+<template>
+  <!-- 船运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick">
+        生成水运费账单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option" @selection-change="selectionChange">
+      <!-- <el-table-column fixed="right" label="操作" width="100"> -->
+        <!-- <template slot-scope="scope">
+          <el-button @click="click(scope.row.pathId)" type="text" size="small"
+            >编辑</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.pathId)"
+            >删除</el-button
+          >
+        </template> -->
+      <!-- </el-table-column> -->
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getUncomplateDetailsOrderList?apiId=93",
+        // 控制显示多选列
+        selectionType: "select",
+        mapList:[],
+      },
+    };
+  },
+  methods: {
+    selectionChange(selection) { 
+      this.mapList=selection
+    },
+    onclick() {
+      console.log(1);
+    },
+    btnclick() {
+      this.$confirm("是否生成", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "生成账单成功!",
+          });
+      this.$axios.post("/api/v1/bms/addStatement",this.mapList)
+                  .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消生成!",
+          });
+        });
+      // this.$router.push("/path/addHomeworkPath/");
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 91 - 0
src/views/TMS/bmsship/components/uncomplateWater.vue

@@ -0,0 +1,91 @@
+<template>
+  <!-- 船运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick">
+        生成水分检测费账单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option" @selection-change="selectionChange">
+      <!-- <el-table-column fixed="right" label="操作" width="100"> -->
+        <!-- <template slot-scope="scope">
+          <el-button @click="click(scope.row.pathId)" type="text" size="small"
+            >编辑</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.pathId)"
+            >删除</el-button
+          >
+        </template> -->
+      <!-- </el-table-column> -->
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getWaterResult?apiId=114",
+        // 控制显示多选列
+        selectionType: "select",
+        mapList:[],
+      },
+    };
+  },
+  methods: {
+    selectionChange(selection) { 
+      this.mapList=selection
+    },
+    onclick() {
+      console.log(1);
+    },
+    btnclick() {
+      this.$confirm("是否生成", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "生成账单成功!",
+          });
+      this.$axios.post("/api/v1/bms/addWaterStatement",this.mapList)
+                  .then(() => {
+              this.$router.go(-1);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消生成!",
+          });
+        });
+      // this.$router.push("/path/addHomeworkPath/");
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 95 - 0
src/views/TMS/bmstrain/components/addTrainDetails.vue

@@ -0,0 +1,95 @@
+<template>
+  <!-- 火运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick">
+        生成火运详单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option" @radio-change="currentRadioChange">
+      <!-- <el-table-column fixed="right" label="操作" width="100"> -->
+        <!-- <template slot-scope="scope">
+          <el-button @click="click(scope.row.pathId)" type="text" size="small"
+            >编辑</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.pathId)"
+            >删除</el-button
+          >
+        </template> -->
+      <!-- </el-table-column> -->
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getTrainResultList?apiId=122",
+        // 控制显示当选列
+        selectionType: "radio",
+        map:{},
+      },
+    };
+  },
+  methods: {
+    // selectionChange(selection) { 
+    //   this.mapList=selection
+    // },
+    currentRadioChange(row) {
+      this.map=row
+      console.log(row);
+    },
+    onclick() {
+      console.log(1);
+    },
+    btnclick() {
+      this.$confirm("是否生成", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "生成详单成功!",
+          });
+      this.$axios.post("/api/v1/bms/addTrainDetails",this.map)
+                  .then(() => {
+              this.$router.go(-1);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消生成!",
+          });
+        });
+      // this.$router.push("/path/addHomeworkPath/");
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 51 - 0
src/views/TMS/bmstrain/components/detailsTrainOrder.vue

@@ -0,0 +1,51 @@
+<template>
+  <!-- 火运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="detailsclick">
+        生成详单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      restaurants: [],
+      state: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getTrainDetailsOrderList?apiId=118",
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/bms/getTrainDetailsOrderList?apiId=118&con="+this.input;
+    },
+    detailsclick() {
+        this.$router.push("/bmstrain/addTrainDetails");
+    }
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 88 - 0
src/views/TMS/bmstrain/components/detailsTrainStatement.vue

@@ -0,0 +1,88 @@
+<template>
+  <!-- 火运费账单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="trainclick">
+        生成火运费账单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" width="100">
+        <template slot-scope="scope">
+          <el-button @click="btnclick(scope.row)" type="text" size="small"
+            >详情</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getTrainStatementList?apiId=121",
+
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/bms/getTrainStatementList?apiId=121&con="+this.input;
+    },
+    btnclick(row) {
+      this.$router.push("/bmstrain/statementDetailsOrder/" + row.batchId + "?statementId=" + row.statementId);
+    },
+    trainclick() {
+      this.$router.push("/bmstrain/uncomplateTrainDetails");
+    },
+    // waterclick() {
+    //   this.$router.push("/bmsship/uncomplateWater");
+    // },
+    // click() {
+    //   this.$confirm("是否生成", "提示", {
+    //     confirmButtonText: "确定",
+    //     cancelButtonText: "取消",
+    //     type: "warning",
+    //     center: true,
+    //   })
+    //     .then(() => {
+    //       this.$message({
+    //         type: "success",
+    //         message: "生成途损账单成功!",
+    //       });
+    //   this.$axios.post("/api/v1/bmsship/bmsshipstatement/addLossStatement",this.mapList)
+    //               .then(() => {
+    //           this.$router.go(-1);
+    //         });
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: "info",
+    //         message: "取消生成!",
+    //       });
+    //     });
+    //   // this.$router.push("/path/addHomeworkPath/");
+    // },
+    // click() {
+    //   this.$router.push("/bmsship/toBeStatement");
+    // }
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 69 - 0
src/views/TMS/bmstrain/components/statementDetailsOrder.vue

@@ -0,0 +1,69 @@
+<template>
+  <!-- 火运计费账单所属详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+    </div>
+     <el-divider content-position="left">计费详单</el-divider>
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" align="center" width="100">
+        <template slot-scope="scope">
+          <el-button @click="btnclick(scope.row.detailsId)" type="text" size="small"
+            >火运实绩</el-button
+          >
+          <!-- <el-button @click="onclick(scope.row.batchId)" type="text" size="small"
+            >汽运实绩</el-button
+          > -->
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getComplateTrainDetailsList?apiId=118&batchId="
+          + this.$route.params.batchId + "&statementId=" + this.$route.query.statementId,
+      },
+      tableData: [{
+            shipperName: '',
+            shipCost: '',
+            lossCost: '',
+            waterFees: '',
+            statementTotalAmount: ''
+          }]
+    };
+  },
+  mounted(){
+    // this.initialization();
+  },
+  methods: {
+    // initialization(){
+    //   this.$axios.post('/api/v1/bmsship/bmsshipstatement/getAllCost?batchId='+this.$route.params.batchId).then((res)=>{
+    //     this.tableData = res.data.data
+    //   })
+    // },
+    // onclick(batchId) {
+    //   this.$route.push("/bmsship/shipResult/" + batchId)
+    // },
+    btnclick(detailsId) {
+      this.$router.push("/bmstrain/trainResult/" + detailsId);
+    },
+    // click(batchId) {
+    //   this.$route.push("/bmsship/shipResult/" + batchId)
+    // },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 48 - 0
src/views/TMS/bmstrain/components/trainResult.vue

@@ -0,0 +1,48 @@
+<template>
+  <!-- 火运实绩页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search" ></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      restaurants: [],
+      state: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getStatementTrainResultList?apiId=122&detailsId="
+        + this.$route.params.detailsId
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+    onclick() {
+      console.log(1);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 91 - 0
src/views/TMS/bmstrain/components/uncomplateTrainDetails.vue

@@ -0,0 +1,91 @@
+<template>
+  <!-- 火运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick">
+        生成火运费账单
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option" @selection-change="selectionChange">
+      <!-- <el-table-column fixed="right" label="操作" width="100"> -->
+        <!-- <template slot-scope="scope">
+          <el-button @click="click(scope.row.pathId)" type="text" size="small"
+            >编辑</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.pathId)"
+            >删除</el-button
+          >
+        </template> -->
+      <!-- </el-table-column> -->
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getUncomplateTrainDetailsList?apiId=118",
+        // 控制显示多选列
+        selectionType: "select",
+        mapList:[],
+      },
+    };
+  },
+  methods: {
+    selectionChange(selection) { 
+      this.mapList=selection
+    },
+    onclick() {
+      console.log(1);
+    },
+    btnclick() {
+      this.$confirm("是否生成", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "生成账单成功!",
+          });
+      this.$axios.post("/api/v1/bms/addTrainStatement",this.mapList)
+                  .then(() => {
+              this.$router.go(-1);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消生成!",
+          });
+        });
+      // this.$router.push("/path/addHomeworkPath/");
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 60 - 0
src/views/TMS/bmstruck/components/detailsTruckOrder.vue

@@ -0,0 +1,60 @@
+<template>
+  <!-- 汽运计费详单页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+
+    </div>
+    <dilTable v-bind.sync="options">
+      <el-table-column fixed="right" label="操作" align="center" width="100">
+        <template slot-scope="scope">
+          <el-button @click="btnclick(scope.row.orderId)" type="text" size="small"
+            >汽运实绩</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      input:"",
+      restaurants: [],
+      state: "",
+      options: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getTruckDetailsOrderList?apiId=140&orderType=3",
+      },
+    };
+  },
+  mounted() {
+  },
+  watch:{
+        // value1(){
+        //   this.option.requestUrl="/api/v1/bmsship/bmsshipdetailsorder/getDetailsOrderList/93?con="+this.value1
+        // }
+      },
+  methods: {
+    onclick() {
+        this.options.requestUrl = "/api/v1/bms/getTruckDetailsOrderList?apiId=140&orderType=3&con="+this.input;
+    },
+    btnclick(orderId) {
+      this.$router.push("/bmstruck/truckResult/" + orderId);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 48 - 0
src/views/TMS/bmstruck/components/truckResult.vue

@@ -0,0 +1,48 @@
+<template>
+  <!-- 汽运实绩页面 -->
+  <div class="purchaseOrder">
+    <div class="top">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search" ></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "purchaseOrder",
+  data() {
+    return {
+      restaurants: [],
+      state: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/bms/getTruckResultList?apiId=142&orderId="
+        + this.$route.params.orderId
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+    onclick() {
+      console.log(1);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.purchaseOrder {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 62 - 0
src/views/TMS/domesticMine/components/approveWagonPlease.vue

@@ -0,0 +1,62 @@
+<template>
+  <!-- 批车作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+    </div>
+
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" width="50">
+        <template slot-scope="scope">
+          <el-button
+            @click="updateClick(scope.row.resultId)"
+            type="text"
+            size="small"
+          >
+            修改
+          </el-button>
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+
+<script>
+export default {
+  name: "wagonPlease",
+  data() {
+    return {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        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;
+    },
+    btnclick() {
+      this.$router.push("/domesticMine/approveWagonPleaseAdd");
+    },
+    updateClick(resultId) {
+      this.$router.push("/domesticMine/approveWagonPleaseEdit/" + resultId);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 118 - 0
src/views/TMS/domesticMine/components/approveWagonPleaseAdd.vue

@@ -0,0 +1,118 @@
+<template>
+  <!-- 新增批车作业页面 -->
+  <div id="contractDetails">
+    <page-title>批车作业</page-title>
+
+    <div class="main">
+      <span class="text">选择已下发请车作业</span>
+      <span class="a"></span>
+    </div>
+ 
+  <div>
+      <dilTable
+        v-bind.sync="option"
+        v-model="table1"
+        @change="handleCheckedCitiesChange"
+        ref="table"
+        @radio-change="currentRadioChange"
+      >
+    
+      </dilTable>
+    </div>
+    <div class="main">
+      <span class="text">新增批车作业</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="105" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>
+    <div class="button-box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+      
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      option: {
+        // 表格请求数据的地址
+        requestUrl:
+          "/api/v1/tms/getAllWagonPlease?apiId=57&status=1&resultType=3",
+        // 控制显示当选列
+        selectionType: "radio",
+      },
+      // 表单
+      form1: {},
+      // 表格
+      table1: {},
+      contractId: "",
+      inf: {},
+    };
+  },
+  mounted() {
+    // this.unit();
+  },
+  methods: {
+    handleCheckedCitiesChange(value) {
+      console.log(value);
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    currentRadioChange(row) {
+      this.inf = row;
+    },
+    // 确认
+    onClickConfirm() {
+      let approveWagonPlease = {
+        resultId: this.inf.resultId,
+        resultApproveDate: sjTime(this.form1.resultApproveDate),
+        resultApproveNumber: this.form1.resultApproveNumber
+      };
+      function isNumber() {
+        var value = approveWagonPlease.resultApproveNumber;
+        //验证是否为数字
+        var patrn = /^(-)?\d+(\.\d+)?$/;
+        if (patrn.exec(value) == null || value == "") {
+          return false;
+        } else {
+          return true;
+        }
+      }
+      var val = this.value;
+      if (
+        approveWagonPlease.resultId==null||
+        approveWagonPlease.resultApproveDate==null||
+        approveWagonPlease.resultApproveNumber==null
+      ) this.$message.error("存在空值!");
+      else
+      if (!isNumber(val)) this.$message.error("请车数量必须是数字!");
+      else
+      this.$axios
+        .post("/api/v1/tms/addApproveWagonPlease", approveWagonPlease)
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "新增成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/appoint/contract/ContractInsert.scss";
+</style>

+ 99 - 0
src/views/TMS/domesticMine/components/approveWagonPleaseEdit.vue

@@ -0,0 +1,99 @@
+<template>
+  <!-- 修改批车作业页面 -->
+  <div id="contractDetails">
+    <page-title>批车作业</page-title>
+    <div class="main">
+      <span class="text">修改批车车作业</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="140" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>  
+ 
+    <div class="button-box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+export default {
+  components: { PageTitle },
+    data(){
+          return {
+          form1: {},
+        }
+    },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      //编辑批车作业 渲染数据
+      this.$axios
+        .post("/api/v1/tms/getApproveWagonPleaseById/" + this.$route.params.resultId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+          });
+        });
+    },
+     // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    // 确认
+    onClickConfirm() {
+      let approveWagonPlease = {
+        resultId: this.$route.params.resultId,
+        resultApproveDate: this.form1.resultApproveDate,
+        resultApproveNumber: this.form1.resultApproveNumber,
+        shipperId: this.form1.shipperId,
+        resultCategory: this.form1.resultCategory,
+        sendStationId: this.form1.sendStationId,
+        toTheStationId: this.form1.toTheStationId
+      };
+      function isNumber() {
+        var value = approveWagonPlease.resultApproveNumber;
+        //验证是否为数字
+        var patrn = /^(-)?\d+(\.\d+)?$/;
+        if (patrn.exec(value) == null || value == "") {
+          return false;
+        } else {
+          return true;
+        }
+      }
+      var val = this.value;
+      if (
+        approveWagonPlease.resultApproveDate==null||
+        approveWagonPlease.resultApproveNumber==null||
+        approveWagonPlease.shipperId==null||
+        approveWagonPlease.resultCategory==null||
+        approveWagonPlease.sendStationId==null||
+        approveWagonPlease.toTheStationId==null
+      ) this.$message.error("存在空值!");
+      else
+      if (!isNumber(val)) this.$message.error("请车数必须是数字!");
+      else
+      this.$axios
+        .post("/api/v1/tms/updateApproveWagonPlease", approveWagonPlease)
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "修改成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/appoint/contract/ContractInsert.scss";
+</style>

+ 77 - 0
src/views/TMS/domesticMine/components/entrust.vue

@@ -0,0 +1,77 @@
+<template>
+  <!-- 计量委托 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick(0)">
+        <i class="el-icon-s-promotion"></i>发送
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option" @selection-change="selectionChange">
+    </dilTable>
+  </div>
+</template>
+
+
+<script>
+export default {
+  data() {
+    return {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=3",
+        // 控制显示多选列
+        selectionType: "select",
+      },
+      selectionListMap: [],
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl =
+        "/api/v1/tms/getLoadResultToSendMC?apiId=209&resultType=1&con=" +
+        this.input;
+    },
+    btnclick() {
+      if (this.selectionListMap.length == 0) {
+        this.$message({
+          message: "请勾选要发送计量委托的实绩!",
+          type: "warning",
+        });
+      } else {
+        this.$axios
+          .post("/api/v1/tms/batchSendMeasureCommission", {
+            resultIdList: this.selectionListMap,
+          })
+          .then((res) => {
+            if (res.data.code == "200") {
+              this.$message({
+                type: "success",
+                message: "发送成功",
+              });
+              this.option.requestUrl =
+                "/api/v1/tms/getLoadResultToSendMC?apiId=209&resultType=3";
+            }
+          });
+      }
+    },
+    selectionChange(selection) {
+      this.selectionListMap = [];
+      selection.forEach((element) => {
+        this.selectionListMap.push(element.resultId);
+      });
+    },
+  },
+};
+</script>
+<style lang='scss'>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 100 - 0
src/views/TMS/domesticMine/components/wagonLoad.vue

@@ -0,0 +1,100 @@
+<template>
+  <!-- 装车作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick(0)">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+      <el-button type="primary" @click="btnclick(1)">
+        <i class="el-icon-edit-outline"></i>补录
+      </el-button>
+    </div>
+
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" width="100">
+        <template slot-scope="scope">
+          <el-button @click="click(scope.row.resultId)" type="text" size="small"
+            >修改</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.resultId)"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+<script>
+export default {
+  name: "wagonload",
+  data() {
+    return {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=3",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl =
+        "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=3&con=" +
+        this.input;
+    },
+    btnclick(index) {
+      if(index == 0){
+        this.$router.push("/domesticMine/wagonLoadAdd");
+      }else if(index == 1){
+        this.$router.push("/domesticMine/wagonLoadbu");
+      }
+    },
+    click(resultId) {
+      this.$router.push("/domesticMine/wagonLoadEdit/" + resultId);
+    },
+    deleteclick(scope) {
+      let resultId = scope;
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          this.$axios
+            .post(
+              "/api/v1/tms/deleteTmstrainLoadingResultByResultId?resultId=" +
+                resultId
+            )
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 435 - 0
src/views/TMS/domesticMine/components/wagonLoadAdd.vue

@@ -0,0 +1,435 @@
+<template>
+  <!-- 添加车皮装车实绩 -->
+  <div class="addWagonLoad">
+    <page-title>新增</page-title>
+    <el-divider content-position="left">车皮装车实绩</el-divider>
+    <div class="cp">
+      <span>车皮号:</span>
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        @change="onchang"
+        clearable
+      >
+      </el-input>
+    </div>
+    <div class="cpList">
+      <div class="list">
+        <span class="cpList1" v-for="(item, i) in list" :key="i">
+          {{ item }}
+          <i class="el-icon-close itu" @click="onclick(i)"></i>
+        </span>
+      </div>
+    </div>
+
+    <div class="material from">
+      <span class="text">物资:</span>
+      <el-input v-model="materialName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
+    </div>
+
+    <div class="forwardingUnit from">
+      <span class="text">发货单位:</span>
+      <el-input v-model="supplierName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
+    </div>
+    <div class="remark from">
+      <span class="text">船名:</span>
+      <el-input v-model="remark" @blur="onBlur"> </el-input>
+      <span class="span"></span>
+    </div>
+    <div class="forwardingUnit from">
+      <span class="text">卸货点:</span>
+      <el-input v-model="unloadPointName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
+    </div>
+    <div class="form">
+      <div class="form-box" style="margin-right: 10rem">
+        <dil-form :formId="254" v-model="form1" ref="from1"></dil-form>
+      </div>
+    </div>
+    <div class="button-box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+    <!-- 模态窗口 -->
+    <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
+      <el-input
+        placeholder="请输入内容"
+        v-model="inputText"
+        style="margin-top: 0.625rem; margin-left: 1.25rem"
+        clearable
+      ></el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="onClick(a)"
+        style="margin-bottom: 0.9375rem"
+      >
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <div v-show="a == 1">
+        <dilTable
+          v-bind.sync="frist"
+          @radio-change="currentRadioChange1"
+        ></dilTable>
+      </div>
+      <div v-show="a == 2">
+        <dilTable
+          v-bind.sync="secend"
+          @radio-change="currentRadioChange2"
+        ></dilTable>
+      </div>
+      <div v-show="a == 4">
+        <dilTable
+          v-bind.sync="unloadPoint"
+          @radio-change="currentRadioChange4"
+        ></dilTable>
+      </div>
+    </el-drawer>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      list: [],
+      form1: {},
+      input: "",
+      value: undefined,
+      //船名
+      remark: null,
+      //采购订单id
+      purchaseOrderId: null,
+      //物资名称
+      materialName: null,
+      //发货单位名称
+      supplierName: null,
+      //发货单位id
+      supplierId: null,
+      //物资id
+      materialId: null,
+      //是否需要打开模态窗口
+      drawer: false,
+      //卸货点id
+      unloadPointId: null,
+      //卸货点名称
+      unloadPointName: null,
+      a: 1,
+      direction: "rtl",
+      inputText: "",
+      frist: {
+        requestUrl: "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050",
+        selectionType: "radio",
+        mapList1: [],
+      },
+      secend: {
+        requestUrl:
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=",
+        selectionType: "radio",
+        mapList2: [],
+      },
+      unloadPoint: {
+        requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
+        selectionType: "radio",
+      },
+    };
+  },
+  created() {
+    this.form1 = {
+      arrivalStationId: 2,
+    };
+  },
+  methods: {
+    currentRadioChange1(selection) {
+      this.input = null;
+      this.materialName = selection.materialName;
+      this.materialId = selection.materialId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange2(selection) {
+      this.supplierName = selection.supplierName;
+      this.supplierId = selection.supplierId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange4(selection) {
+      this.unloadPointId = selection.warehouseId;
+      this.unloadPointName = selection.warehouseName;
+    },
+    ondrawer(num) {
+      this.drawer = true;
+      this.a = num;
+      if (num == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId;
+      }
+    },
+    onBlur() {
+      this.getPurchaseOrderNo();
+    },
+    getPurchaseOrderNo() {
+      let map = {
+        materialId: this.materialId,
+        supplierId: this.supplierId,
+      };
+      if (this.remark) {
+        map.remark = this.remark;
+      }
+      console.log(this.map);
+      if (this.materialId && this.supplierId) {
+        this.$axios.post("/api/v1/oms/selectNewOrderId", map).then((res) => {
+          console.log(res);
+          if (res.data.code == "200") {
+            if (res.data.data == null) {
+              this.$message({
+                message: "没有匹配的采购订单号!",
+                type: "warning",
+              });
+              this.form1 = [];
+            } else {
+              this.remark = res.data.data.remark;
+              this.purchaseOrderId = res.data.data.purchaseOrderId;
+              this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
+            }
+          } else {
+            this.$message.error("请求失败");
+          }
+        });
+      }
+    },
+    onClick(a) {
+      if (a == 1) {
+        this.frist.requestUrl =
+          "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+          this.inputText;
+      } else if (a == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId +
+          "&index=" +
+          this.inputText;
+      } else if (a == 4) {
+        this.unloadPoint.requestUrl =
+          "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.inputText;
+      }
+    },
+    onchang() {
+      var state = false;
+      var cptop = this.input.substring(0, 2);
+      var cptop1 = this.input.substring(0, 3);
+      if (
+        cptop == "45" ||
+        cptop == "46" ||
+        cptop == "42" ||
+        cptop == "47" ||
+        cptop == "15" ||
+        cptop == "16" ||
+        cptop == "17" ||
+        cptop == "18"
+      ) {
+        state = true;
+      } else if (
+        cptop1 == "140" ||
+        cptop1 == "141" ||
+        cptop1 == "142" ||
+        cptop1 == "143" ||
+        cptop1 == "145"
+      ) {
+        state = true;
+      } else {
+        this.$message({
+          type: "warning",
+          message: "车皮号格式不对,请重新输入!",
+        });
+      }
+      if (state) {
+        if (this.input.length == 7) {
+          this.list.push(this.input);
+          this.input = "";
+        } else {
+          this.$message({
+            type: "warning",
+            message: "车皮号长度不足7位数,请重新输入!",
+          });
+        }
+      }
+    },
+    onclick(index) {
+      this.list.splice(index, 1);
+    },
+    // 确定
+    makeSure() {
+      let state = 0;
+      if (
+        this.list.length > 0 &&
+        this.form1.resultClass &&
+        this.form1.sendStationId &&
+        this.form1.arrivalStationId &&
+        this.form1.resultLoadingDate
+      ) {
+        state = 1;
+      } else {
+        console.log(this.list.length);
+        if (this.list.length == 0) {
+          this.$message({
+            type: "warning",
+            message: "请输入车皮号!",
+          });
+        } else {
+          if (this.form1.resultClass) {
+            if (this.form1.sendStationId) {
+              if (this.form1.arrivalStationId) {
+                if (this.form1.resultLoadingDate) {
+                } else {
+                  this.$message({
+                    type: "warning",
+                    message: "请选择装车时间!",
+                  });
+                }
+              } else {
+                this.$message({
+                  type: "warning",
+                  message: "请选择到站!",
+                });
+              }
+            } else {
+              this.$message({
+                type: "warning",
+                message: "请选择发站!",
+              });
+            }
+          } else {
+            this.$message({
+              type: "warning",
+              message: "请选择班别!",
+            });
+          }
+        }
+      }
+      if (state == 1) {
+        let map = {
+          wagonNoList: this.list,
+          unloadPointId: this.unloadPointId,
+          purchaseOrderRailPlanId: this.purchaseOrderId,
+          resultClass: this.form1.resultClass,
+          sendStationId: this.form1.sendStationId,
+          arrivalStationId: this.form1.arrivalStationId,
+          resultLoadingDate: sjTime(this.form1.resultLoadingDate),
+          resultRemarks: this.form1.resultRemarks,
+          resultType: 3,
+        };
+        this.$axios
+          .post("/api/v1/tms/addDomesticLoadResult", map)
+          .then((res) => {
+            console.log(res);
+            if (res.data.code == "200") {
+              this.$message({
+                type: "success",
+                message: "新增成功",
+              });
+              this.$router.push("/domesticMine/wagonLoad");
+            }
+          });
+      }
+    },
+    // 取消
+    cancel() {
+      this.$router.go(-1);
+    },
+  },
+};
+</script>
+<style lang='scss'>
+.addWagonLoad {
+  .cp {
+    width: 100%;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    padding-top: 0.625rem;
+    padding-bottom: 0.625rem;
+    .cp_title {
+      .cp_top {
+        width: 3.125rem;
+        padding-right: 1.25rem;
+      }
+    }
+  }
+  .cpList {
+    display: flex;
+    justify-content: center;
+    width: 100%;
+    height: 10rem;
+    .list {
+      width: 45%;
+      border: #000 0.0625rem solid;
+      padding: 0.625rem;
+      display: flex;
+      flex-wrap: wrap;
+      .cpList1 {
+        background-color: #c9c7c7;
+        height: 1.875rem;
+        margin-right: 0.5rem;
+        padding: 0.625rem;
+        display: flex;
+        align-items: center;
+        justify-content: center;
+        position: relative;
+        .itu {
+          position: absolute;
+          top: -0.125rem;
+          right: 0.0625rem;
+          width: 0.625rem;
+          height: 0.625rem;
+        }
+      }
+    }
+  }
+  .material {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 8.125rem;
+    }
+  }
+  .forwardingUnit {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 8.125rem;
+    }
+  }
+  .remark {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 60px;
+    }
+  }
+  .form {
+    margin-top: 1.25rem;
+    display: flex;
+    justify-content: center;
+    padding-left: 9.375rem;
+  }
+  .button-box {
+    display: flex;
+    justify-content: center;
+  }
+}
+</style>
+

+ 103 - 0
src/views/TMS/domesticMine/components/wagonLoadEdit.vue

@@ -0,0 +1,103 @@
+<template>
+  <!-- 修改车皮装车实绩 -->
+  <div id="contractDetails">
+    <page-title>编辑</page-title>
+    <div class="main">
+      <span class="text">车皮装车实绩</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="254" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>
+
+    <div class="button-box">
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+      <el-button @click="onClickCancel">返回</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+ data(){
+     return {
+      form1: {},
+  }
+ },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      //编辑车皮装车作业
+      this.$axios
+        .post("/api/v1/tms/getTmstrainLoadingResultByResultId/" + this.$route.params.resultId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+            console.log(e);
+            console.log(this.form1);
+            console.log(this.$route.params.resultId);
+          });
+        });
+    },
+    handleCheckedCitiesChange(value) {
+      console.log(value);
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    currentRadioChange(row) {
+      this.aaaa = row;
+    },
+    // 确认
+    onClickConfirm() {
+      let tmstrainLoadingResult = {
+        resultId: this.$route.params.resultId,
+        resultWagonNo: this.form1.resultWagonNo,
+        resultBillableTonnage: this.form1.resultBillableTonnage,
+        resultClass: this.form1.resultClass,
+        sendStationId: this.form1.sendStationId,
+        arrivalStationId: this.form1.arrivalStationId,
+        resultLoadingDate: sjTime(this.form1.resultLoadingDate),
+        batchId: this.form1.batchId,
+        capacityId: this.form1.capacityId,
+        resultMaterialNumber: this.form1.resultMaterialNumber,
+        resultMaterialTheoryweight: this.form1.resultMaterialTheoryweight,
+        resultRemarks: this.form1.resultRemarks
+      };
+      if (
+      tmstrainLoadingResult.resultWagonNo==null||
+      tmstrainLoadingResult.resultBillableTonnage==null||
+      tmstrainLoadingResult.resultClass==null||
+      tmstrainLoadingResult.sendStationId==null||
+      tmstrainLoadingResult.arrivalStationId==null||
+      tmstrainLoadingResult.resultLoadingDate==null||
+      tmstrainLoadingResult.batchId==null
+      ) this.$message.error("必填项存在空值!");
+      else
+      this.$axios
+        .post("/api/v1/tms/upadteTmstrainLoadingResultByResultId",
+          tmstrainLoadingResult)
+         .then(() => {
+          this.$message({
+            type: "success",  
+            message: "修改成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/TMS/addwagonload.scss";
+</style>

+ 290 - 0
src/views/TMS/domesticMine/components/wagonLoadbu.vue

@@ -0,0 +1,290 @@
+<template>
+  <div class="wagonLoadbu">
+    <el-divider content-position="left">选择需要补录的装车信息</el-divider>
+    <div class="wagonLoadbu_table">
+      <dilTable
+        v-bind.sync="option"
+        @selection-change="selectionChange"
+      ></dilTable>
+    </div>
+
+    <div class="material from">
+      <span class="text">物资:</span>
+      <el-input v-model="materialName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
+    </div>
+
+    <div class="forwardingUnit from">
+      <span class="text">发货单位:</span>
+      <el-input v-model="supplierName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
+    </div>
+    <div class="remark from">
+      <span class="text">船名:</span>
+      <el-input v-model="remark" @blur="onBlur"> </el-input>
+      <span class="span"></span>
+    </div>
+    <div class="forwardingUnit from">
+      <span class="text">卸货点:</span>
+      <el-input v-model="unloadPointName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
+    </div>
+    <div class="form">
+      <dil-form :formId="361" v-model="form1" ref="from1"></dil-form>
+    </div>
+    <div class="button_box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+    <!-- 模态窗口 -->
+    <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
+      <el-input
+        placeholder="请输入内容"
+        v-model="inputText"
+        style="margin-top: 10px; margin-left: 20px"
+        clearable
+      ></el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="onClick(a)"
+        style="margin-bottom: 15px"
+      >
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <div v-show="a == 1">
+        <dilTable
+          v-bind.sync="frist"
+          @radio-change="currentRadioChange1"
+        ></dilTable>
+      </div>
+      <div v-show="a == 2">
+        <dilTable
+          v-bind.sync="secend"
+          @radio-change="currentRadioChange2"
+        ></dilTable>
+      </div>
+      <div v-show="a == 4">
+        <dilTable
+          v-bind.sync="unloadPoint"
+          @radio-change="currentRadioChange4"
+        ></dilTable>
+      </div>
+    </el-drawer>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      form1: {},
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10",
+        // 控制显示多选列
+        selectionType: "select",
+      },
+      //多选选中的数据
+      selecTionListMap: [],
+      //船名
+      remark: null,
+      //采购订单id
+      purchaseOrderId: null,
+      //物资名称
+      materialName: null,
+      //发货单位名称
+      supplierName: null,
+      //发货单位id
+      supplierId: null,
+      //物资id
+      materialId: null,
+      //是否需要打开模态窗口
+      drawer: false,
+      //卸货点id
+      unloadPointId: null,
+      //卸货点名称
+      unloadPointName: null,
+      a: 1,
+      direction: "rtl",
+      inputText: "",
+      frist: {
+        requestUrl: "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050",
+        selectionType: "radio",
+        mapList1: [],
+      },
+      secend: {
+        requestUrl:
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=",
+        selectionType: "radio",
+        mapList2: [],
+      },
+      unloadPoint: {
+        requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
+        selectionType: "radio",
+      },
+    };
+  },
+  methods: {
+    //确定
+    makeSure() {
+      if(this.selecTionListMap.length <= 0){
+        this.$message({
+          message: "请选择需要补录的装车信息!",
+          type: "warning",
+        });
+      }else{
+        let map = {
+          resultIdList:this.selecTionListMap,
+          unloadPointId:this.unloadPointId,
+          purchaseOrderId:this.purchaseOrderId,
+          insertUpdateRemark: this.form1.insertUpdateRemark
+        }
+        this.$axios.post('/api/v1/tms/updateDomesticLoadResult',map).then((res)=>{
+          console.log(res.data.data)
+          if(res.data.code == "200"){
+            this.$message({
+              message: "补录成功!",
+              type: "success",
+            });
+            this.cancel();
+          }
+        })
+      }
+      
+    },
+    //取消
+    cancel() {
+      this.$router.push("/domesticMine/wagonLoad");
+    },
+    //表格选中
+    selectionChange(selection) {
+      this.selecTionListMap = [];
+      selection.forEach(element => {
+          this.selecTionListMap.push(element.resultId)
+      });
+      console.log( this.selecTionListMap)
+    },
+    currentRadioChange1(selection) {
+      this.input = null;
+      this.materialName = selection.materialName;
+      this.materialId = selection.materialId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange2(selection) {
+      this.supplierName = selection.supplierName;
+      this.supplierId = selection.supplierId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange4(selection) {
+      this.unloadPointId = selection.warehouseId;
+      this.unloadPointName = selection.warehouseName;
+    },
+    ondrawer(num) {
+      this.drawer = true;
+      this.a = num;
+      if (num == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId;
+      }
+    },
+    onBlur() {
+      this.getPurchaseOrderNo();
+    },
+    getPurchaseOrderNo() {
+      let map = {
+        materialId: this.materialId,
+        supplierId: this.supplierId,
+      };
+      if (this.remark) {
+        map.remark = this.remark;
+      }
+      console.log(this.map);
+      if (this.materialId && this.supplierId) {
+        this.$axios.post("/api/v1/oms/selectNewOrderId", map).then((res) => {
+          console.log(res);
+          if (res.data.code == "200") {
+            if (res.data.data == null) {
+              this.$message({
+                message: "没有匹配的采购订单号!",
+                type: "warning",
+              });
+              this.form1 = [];
+            } else {
+              this.remark = res.data.data.remark;
+              this.purchaseOrderId = res.data.data.purchaseOrderId;
+              this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
+            }
+          } else {
+            this.$message.error("请求失败");
+          }
+        });
+      }
+    },
+    onClick(a) {
+      if (a == 1) {
+        this.frist.requestUrl =
+          "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+          this.inputText;
+      } else if (a == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId +
+          "&index=" +
+          this.inputText;
+      } else if (a == 4) {
+        this.third.requestUrl =
+          "/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.inputText;
+      }
+    },
+  },
+};
+</script>
+
+<style lang="scss">
+.wagonLoadbu {
+  .material {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 150px;
+    }
+  }
+  .forwardingUnit {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 9.375rem;
+    }
+  }
+  .remark {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 80px;
+    }
+  }
+  .form {
+    margin-top: 1.25rem;
+    display: flex;
+    justify-content: center;
+  }
+  .button_box {
+    width: 100%;
+    height: 6.25rem;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+}
+</style>

+ 151 - 0
src/views/TMS/domesticMine/components/wagonPlease.vue

@@ -0,0 +1,151 @@
+<template>
+  <!-- 请车作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="insertClick">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+    </div>
+    <el-tabs v-model="activeName">
+      <!-- 未下发 -->
+      <el-tab-pane label="未下发" name="first">
+        <dilTable v-bind.sync="option1" ref="table">
+          <el-table-column fixed="right" label="操作" width="120">
+            <template slot-scope="scope">
+              <el-button
+                @click="updateClick(scope.row.resultId)"
+                type="text"
+                size="small"
+              >
+                修改
+              </el-button>
+              <el-button
+                @click="deleteClick(scope.row.resultId)"
+                type="text"
+                size="small"
+              >
+                删除
+              </el-button>
+              <el-button
+                @click="sendClick(scope.row.resultId)"
+                type="text"
+                size="small"
+              >
+                下发
+              </el-button>
+            </template>
+          </el-table-column>
+        </dilTable>
+      </el-tab-pane>
+      <!-- 已下发 -->
+      <el-tab-pane label="已下发" name="second">
+        <dilTable v-bind.sync="option2"> </dilTable>
+      </el-tab-pane>
+    </el-tabs>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "inplantTMS",
+  data() {
+    return {
+      input: "",
+      activeName: "first",
+      option1: {
+        // 表格请求数据的地址
+        requestUrl:
+          "/api/v1/tms/getAllWagonPlease?apiId=57&status=0&resultType=3",
+      },
+      option2: {
+        // 表格请求数据的地址
+        requestUrl:
+          "/api/v1/tms/getAllWagonPlease?apiId=57&status=1&resultType=3",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      if(this.activeName == "first"){
+        this.option1.requestUrl = "/api/v1/tms/getAllWagonPlease?apiId=57&status=0&resultType=3&con=" +this.input;
+      }else{
+        this.option2.requestUrl = "/api/v1/tms/getAllWagonPlease?apiId=57&status=1&resultType=3&con=" +this.input;
+      }
+    },
+    // 删除
+    deleteClick(resultId) {
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          // console.log(this.arr[0].text_prop);
+          this.$axios
+            .post("/api/v1/tms/deleteApproveWagonPlease/" + resultId)
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+    // 下发
+    sendClick(resultId) {
+      this.$confirm("是否下发", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "下发成功!",
+          });
+          // console.log(this.arr[0].text_prop);
+          this.$axios
+            .post("/api/v1/tms/sendWagonPlease/" + resultId)
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消下发!",
+          });
+        });
+    },
+
+    //新增
+    insertClick() {
+      this.$router.push("/domesticMine/wagonPleaseAdd");
+    },
+    //修改
+    updateClick(resultId) {
+      this.$router.push("/domesticMine/wagonPleaseEdit/" + resultId);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 94 - 0
src/views/TMS/domesticMine/components/wagonPleaseAdd.vue

@@ -0,0 +1,94 @@
+<template>
+  <!-- 新增请作业页面 -->
+  <div id="contractDetails">
+    <page-title>请车作业</page-title>
+    <div class="main">
+      <span class="text">新增请车作业</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="122" v-model="form1" ></dil-form>
+        </div>
+      </div>
+    </div>
+    <div class="button-box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm" >确认</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      // 表单
+      form1: {},
+    };
+  },
+  mounted() {
+    // this.unit();
+  },
+  methods: {
+    handleCheckedCitiesChange(value) {
+      console.log(value);
+    },
+    
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+     // 确认
+    onClickConfirm() {
+      let tmstrainPleaseApproveResult = {
+        resultPlanDate: sjTime(this.form1.resultPlanDate),
+        resultCategory: this.form1.resultCategory,
+        shipperId: this.form1.shipperId,
+        sendStationId: this.form1.sendStationId,
+        toTheStationId: this.form1.toTheStationId,
+        resultPleaseNumber: this.form1.resultPleaseNumber,
+        resultType: 3
+      };
+      function isNumber() {
+        var value = tmstrainPleaseApproveResult.resultPleaseNumber;
+        //验证是否为数字
+        var patrn = /^(-)?\d+(\.\d+)?$/;
+        if (patrn.exec(value) == null || value == "") {
+          return false;
+        } else {
+          return true;
+        }
+      }
+      var val = this.value;
+      if (
+        tmstrainPleaseApproveResult.resultPlanDate==null||
+        tmstrainPleaseApproveResult.resultCategory==null||
+        tmstrainPleaseApproveResult.shipperId==null||
+        tmstrainPleaseApproveResult.sendStationId==null||
+        tmstrainPleaseApproveResult.toTheStationId==null||
+        tmstrainPleaseApproveResult.resultPleaseNumber==null
+      ) this.$message.error("存在空值!");
+      else
+      if (!isNumber(val)) this.$message.error("请车数量必须是数字!");
+      else
+      this.$axios
+        .post("/api/v1/tms/addWagonPlease", tmstrainPleaseApproveResult)
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "新增成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/appoint/contract/ContractInsert.scss";
+</style>

+ 100 - 0
src/views/TMS/domesticMine/components/wagonPleaseEdit.vue

@@ -0,0 +1,100 @@
+<template>
+  <!-- 修改请车作业页面 -->
+  <div id="contractDetails">
+    <page-title>请车作业</page-title>
+    <div class="main">
+      <span class="text">修改请车作业</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="117" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>  
+ 
+    <div class="button-box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+    data(){
+          return {
+          form1: {},
+        }
+    },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      //编辑请车作业
+      this.$axios
+        .post("/api/v1/tms/getWagonPleaseById/" + this.$route.params.resultId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+          });
+        });
+    },
+     // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+     // 确认
+    onClickConfirm() {
+      let tmstrainPleaseApproveResult = {
+        resultId: this.$route.params.resultId,
+        resultPlanDate: sjTime(this.form1.resultPlanDate),
+        resultCategory: this.form1.resultCategory,
+        shipperId: this.form1.shipperId,
+        sendStationId: this.form1.sendStationId,
+        toTheStationId: this.form1.toTheStationId,
+        resultPleaseNumber: this.form1.resultPleaseNumber
+      };
+      function isNumber() {
+        var value = tmstrainPleaseApproveResult.resultPleaseNumber;
+        //验证是否为数字
+        var patrn = /^(-)?\d+(\.\d+)?$/;
+        if (patrn.exec(value) == null || value == "") {
+          return false;
+        } else {
+          return true;
+        }
+      }
+      var val = this.value;
+      if (
+        tmstrainPleaseApproveResult.resultPlanDate==null||
+        tmstrainPleaseApproveResult.resultCategory==null||
+        tmstrainPleaseApproveResult.shipperId==null||
+        tmstrainPleaseApproveResult.sendStationId==null||
+        tmstrainPleaseApproveResult.toTheStationId==null||
+        tmstrainPleaseApproveResult.resultPleaseNumber==null
+      ) this.$message.error("存在空值!");
+      else
+      if (!isNumber(val)) this.$message.error("请车数必须是数字!");
+      else
+      this.$axios
+        .post("/api/v1/tms/updateApproveWagonPlease", tmstrainPleaseApproveResult)
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "修改成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/appoint/contract/ContractInsert.scss";
+</style>

+ 92 - 0
src/views/TMS/domesticMine/components/wagonUnLoad.vue

@@ -0,0 +1,92 @@
+<template>
+  <!-- 卸车作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+       <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick(0)">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+    </div>
+    
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" width="100">
+        <template slot-scope="scope">
+          <el-button @click="click(scope.row.unloadingId)" type="text" size="small"
+            >修改</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.unloadingId)"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+
+<script>
+export default {
+  name: "wagonUnload",
+  data() {
+    return {
+      input: "",
+      option: {       
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getTmstrainWagonUnLoad?apiId=214&resultType=3",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getTmstrainWagonUnLoad?apiId=60&resultType=3&con="+this.input;
+    },
+    btnclick() {
+      this.$router.push("/domesticMine/wagonUnLoadAdd");
+    },
+    click(unloadingId) {
+      this.$router.push("/domesticMine/wagonUnLoadEdit/" + unloadingId);
+    },
+    deleteclick(scope) {
+      let unloadingId = scope;
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          this.$axios
+            .post(
+             "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" + unloadingId
+            )
+            .then(() => {
+               this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 100 - 0
src/views/TMS/domesticMine/components/wagonUnLoadAdd.vue

@@ -0,0 +1,100 @@
+<template>
+  <!-- 添加车皮卸车实绩 -->
+  <div class="addWagonLoad">
+    <page-title>新增</page-title>
+    <div class="main">
+      <el-divider content-position="left">选择已装车实绩</el-divider>
+    </div>
+    <div>
+      <dilTable
+        v-bind.sync="option"
+        ref="table"
+        @selection-change="selectionChange"
+      >
+      </dilTable>
+    </div>
+    <el-divider content-position="left">车皮卸车实绩</el-divider>
+    <div class="form-box" style="margin-right: 10rem">
+      <dil-form :formId="255" v-model="form1" ref="from1"></dil-form>
+    </div>
+    <div class="button-box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+  </div>
+</template>
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      form1: {},
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getWagonNo/3?apiId=213",
+        // 控制显示当选列
+        selectionType: "select",
+      },
+      value: undefined,
+      list: [],
+    };
+  },
+  mounted() {},
+  methods: {
+    selectionChange(selection) {
+      this.list = [];
+      selection.forEach((e) => {
+        this.list.push({
+          resultWagonNo: e.resultWagonNo,
+          resultId: e.resultId,
+        });
+      });
+    },
+    // 确定
+    makeSure() {
+      let tmstrainWagonUnloadResult = {
+        wagonNoList: this.list,
+        resultArrivalDate: sjTime(this.form1.resultArrivalDate),
+        resultUnloadTime: sjTime(this.form1.resultUnloadTime),
+        unloadingPointId: this.form1.unloadingPointId,
+        resultBigTicketWeight: this.form1.resultBigTicketWeight,
+        resultRailHorizontalWeight: this.form1.resultRailHorizontalWeight,
+        resultRemark: this.form1.resultRemark,
+        resultType: 3,
+      };
+      console.log(tmstrainWagonUnloadResult);
+      if (
+        tmstrainWagonUnloadResult.wagonNoList == null ||
+        tmstrainWagonUnloadResult.resultArrivalDate == null ||
+        tmstrainWagonUnloadResult.resultUnloadTime == null ||
+        tmstrainWagonUnloadResult.unloadingPointId == null ||
+        tmstrainWagonUnloadResult.resultBigTicketWeight == null ||
+        tmstrainWagonUnloadResult.resultRailHorizontalWeight == null
+      )
+        this.$message.error("存在空值!");
+      else
+        this.$axios
+          .post(
+            "/api/v1/tms/insertTmstrainWagonUnLoadResult",
+            tmstrainWagonUnloadResult
+          )
+          .then(() => {
+            this.$message({
+              type: "success",
+              message: "新增成功!",
+            });
+            this.$router.go(-1);
+          });
+    },
+    // 取消
+    cancel() {
+      this.$router.go(-1);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+@import "@/styles/TMS/addWagonUnLoed.scss";
+</style>

+ 99 - 0
src/views/TMS/domesticMine/components/wagonUnLoadEdit.vue

@@ -0,0 +1,99 @@
+<template>
+  <!-- 修改车皮装车实绩 -->
+  <div id="contractDetails">
+    <page-title>编辑</page-title>
+    <div class="main">
+      <span class="text">车皮卸车实绩</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="118" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>
+
+    <div class="button-box">
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+      <el-button @click="onClickCancel">返回</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+ data(){
+     return {
+      form1: {},
+  }
+ },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      //编辑车皮装车作业
+      this.$axios
+        .post("/api/v1/tms/getTmstrainWagonUnLoadResultByUnLoadingId/" + this.$route.params.unloadingId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+            console.log(e);
+            console.log(this.form1);
+            console.log(this.$route.params.unloadingId);
+          });
+        });
+    },
+    handleCheckedCitiesChange(value) {
+      console.log(value);
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    currentRadioChange(row) {
+      this.aaaa = row;
+    },
+    //确定
+    onClickConfirm() {
+      let tmstrainWagonUnloadResult = {
+        unloadingId: this.$route.params.unloadingId,
+        resultArrivalDate: sjTime(this.form1.resultArrivalDate),
+        resultUnloadTime: sjTime(this.form1.resultUnloadTime),
+        unloadingPointId: this.form1.unloadingPointId,
+        resultBigTicketWeight: this.form1.resultBigTicketWeight,
+        resultRailHorizontalWeight: this.form1.resultRailHorizontalWeight,
+        resultRemark: this.form1.resultRemark
+      };
+      console.log(tmstrainWagonUnloadResult);
+      if (
+        tmstrainWagonUnloadResult.resultArrivalDate==null||
+      tmstrainWagonUnloadResult.resultUnloadTime==null||
+      tmstrainWagonUnloadResult.unloadingPointId==null||
+      tmstrainWagonUnloadResult.resultBigTicketWeight==null||
+      tmstrainWagonUnloadResult.resultRailHorizontalWeight==null
+      ) this.$message.error("存在空值!");
+      else
+      this.$axios
+        .post(
+          "/api/v1/tms/upadteTmstrainWagonUnLoadResultByUnLoadingId",
+          tmstrainWagonUnloadResult
+        )
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "修改成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/TMS/addwagonload.scss";
+</style>

+ 75 - 0
src/views/TMS/download/index.vue

@@ -0,0 +1,75 @@
+<template>
+     <div class="content" v-bind:style="{backgroundImage:'url(' + bg + ')'}" iud="body">
+        <img v-show="show_wx" :src="wx"   width="100%"  /> 
+        <img  :src="logo" style="margin:100px auto auto 150px;text-align:center; height:100px; width:85px;"  /> 
+        <img   style="margin:100px auto auto 110px; height:50px; width:220;"  :src="btn" id="btn_img" @click="download()"/>
+    </div> 
+</template>
+<script>
+export default {
+    data() {
+        return {
+            type : "android",
+            logo:require('@/assets/img/logoApp.png'),
+            wx:require('@/assets/img/image.png'),
+            btn:require('@/assets/img/down.png'),
+            show_wx :false,
+             bg: require('@/assets/homepageimg/backgroud.jpg'),
+        };
+    },
+    created() {
+        let ua = navigator.userAgent.toLowerCase();
+        if (/iphone|ipad|ipod/.test(ua)) {
+            this.type = "ios";
+
+        } else if (/android/.test(ua)) {
+            this.type = "android";
+        }
+
+        if(isWeixinBrowser()){
+            this.show_wx = true;
+        }
+        function isWeixinBrowser() {
+            return (/micromessenger/.test(ua)) ? true : false;
+        }
+    },
+
+    methods: {
+
+        download() {
+
+            const that = this;
+
+            if(that.type == 'android') {
+                window.location.href = 'https://wl.dasteel.cn:32322/%E6%95%B0%E8%A3%81%E7%89%A9%E6%B5%81.apk';
+
+            } else {
+
+                window.location.href = 'IOS下载地址';
+
+            }
+
+        },
+
+    }
+
+};
+
+</script>
+<style>
+    .content {
+        position:relative;
+        margin:0px auto;
+        background-size: cover;
+        width: 100%;
+        height: 100%;
+ }
+
+
+
+
+div img:first-of-type { 
+    position: absolute; 
+   
+} 
+</style>

+ 466 - 0
src/views/TMS/importedEmergency/addWagonLoad.vue

@@ -0,0 +1,466 @@
+<template>
+  <!-- 添加车皮装车实绩 -->
+  <div class="addWagonLoad">
+    <page-title>新增</page-title>
+    <el-divider content-position="left">车皮装车实绩</el-divider>
+    <div class="cp">
+      <span>车皮号:</span>
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        @change="onchang"
+        clearable
+      >
+      </el-input>
+    </div>
+    <div class="cpList">
+      <div class="list">
+        <span class="cpList1" v-for="(item, i) in list" :key="i">
+          {{ item }}
+          <i class="el-icon-close itu" @click="onclick(i)"></i>
+        </span>
+      </div>
+    </div>
+
+    <div class="material from">
+      <span class="text">物资:</span>
+      <el-input v-model="materialName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
+    </div>
+
+    <div class="forwardingUnit from">
+      <span class="text">发货单位:</span>
+      <el-input v-model="supplierName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
+    </div>
+    <div class="remark from">
+      <span class="text">船名:</span>
+      <el-input v-model="remark" @blur="onBlur"> </el-input>
+      <span class="span"></span>
+    </div>
+    <div class="forwardingUnit from">
+      <span class="text">卸货点:</span>
+      <el-input v-model="unloadPointName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
+    </div>
+    <div class="form">
+      <div class="form-box" style="margin-right: 10rem">
+        <dil-form :formId="254" v-model="form1" ref="from1"></dil-form>
+      </div>
+    </div>
+    <div class="button-box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+    <!-- 模态窗口 -->
+    <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
+      <el-input
+        placeholder="请输入内容"
+        v-model="inputText"
+        style="margin-top: 0.625rem; margin-left: 1.25rem"
+        clearable
+      ></el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="onClick(a)"
+        style="margin-bottom: 0.9375rem"
+      >
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <div v-show="a == 1">
+        <dilTable
+          v-bind.sync="frist"
+          @radio-change="currentRadioChange1"
+        ></dilTable>
+      </div>
+      <div v-show="a == 2">
+        <dilTable
+          v-bind.sync="secend"
+          @radio-change="currentRadioChange2"
+        ></dilTable>
+      </div>
+      <div v-show="a == 4">
+        <dilTable
+          v-bind.sync="unloadPoint"
+          @radio-change="currentRadioChange4"
+        ></dilTable>
+      </div>
+    </el-drawer>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      list: [],
+      form1: {},
+      input: "",
+      value: undefined,
+      //船名
+      remark: null,
+      //采购订单id
+      purchaseOrderId: null,
+      //物资名称
+      materialName: null,
+      //发货单位名称
+      supplierName: null,
+      //发货单位id
+      supplierId: null,
+      //物资id
+      materialId: null,
+      //是否需要打开模态窗口
+      drawer: false,
+      //卸货点id
+      unloadPointId: null,
+      //卸货点名称
+      unloadPointName: null,
+      a: 1,
+      direction: "rtl",
+      inputText: "",
+      frist: {
+        requestUrl: "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050",
+        selectionType: "radio",
+        mapList1: [],
+      },
+      secend: {
+        requestUrl:
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=",
+        selectionType: "radio",
+        mapList2: [],
+      },
+      unloadPoint: {
+        requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
+        selectionType: "radio",
+      },
+    };
+  },
+  created(){
+    this.form1 = {
+      sendStationId:1,
+      arrivalStationId:2,
+    }
+  },
+  methods: {
+    currentRadioChange1(selection) {
+      this.input = null;
+      this.materialName = selection.materialName;
+      this.materialId = selection.materialId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange2(selection) {
+      this.supplierName = selection.supplierName;
+      this.supplierId = selection.supplierId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange4(selection) {
+      this.unloadPointId = selection.warehouseId;
+      this.unloadPointName = selection.warehouseName;
+    },
+    ondrawer(num) {
+      this.drawer = true;
+      this.a = num;
+      if (num == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId;
+      }
+    },
+    onBlur() {
+      this.getPurchaseOrderNo();
+    },
+    getPurchaseOrderNo() {
+      let map = {
+        materialId: this.materialId,
+        supplierId: this.supplierId,
+      };
+      if (this.remark) {
+        map.remark = this.remark;
+      }
+      console.log(this.map);
+      if (this.materialId && this.supplierId) {
+        this.$axios.post("/api/v1/oms/selectNewOrderId", map).then((res) => {
+          console.log(res);
+          if (res.data.code == "200") {
+            if (res.data.data == null) {
+              this.$message({
+                message: "没有匹配的采购订单号!",
+                type: "warning",
+              });
+              this.form1 = [];
+            } else {
+              this.remark = res.data.data.remark;
+              this.purchaseOrderId = res.data.data.purchaseOrderId;
+              this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
+            }
+          } else {
+            this.$message.error("请求失败");
+          }
+        });
+      }
+    },
+    onClick(a) {
+      if (a == 1) {
+        this.frist.requestUrl =
+          "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+          this.inputText;
+      } else if (a == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId +
+          "&index=" +
+          this.inputText;
+      } else if (a == 4) {
+        this.unloadPoint.requestUrl =
+          "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.inputText;
+      }
+    },
+    onchang() {
+      var state = false;
+      var cptop = this.input.substring(0, 2);
+      var cptop1 = this.input.substring(0, 3);
+      if (
+        cptop == "45" ||
+        cptop == "46" ||
+        cptop == "42" ||
+        cptop == "47" ||
+        cptop == "15" ||
+        cptop == "16" ||
+        cptop == "17" ||
+        cptop == "18"
+      ) {
+        state = true;
+      } else if (
+        cptop1 == "140" ||
+        cptop1 == "141" ||
+        cptop1 == "142" ||
+        cptop1 == "143" ||
+        cptop1 == "145"
+      ) {
+        state = true;
+      } else {
+        this.$message({
+          type: "warning",
+          message: "车皮号格式不对,请重新输入!",
+        });
+      }
+      if (state) {
+        if (this.input.length == 7) {
+          this.list.push(this.input);
+          this.input = "";
+        } else {
+          this.$message({
+            type: "warning",
+            message: "车皮号长度不足7位数,请重新输入!",
+          });
+        }
+      }
+    },
+    onclick(index) {
+      this.list.splice(index, 1);
+    },
+    // 确定
+    makeSure() {
+      let state = 0;
+      if (
+        this.list.length > 0 &&
+        this.materialId &&
+        this.supplierId &&
+        this.unloadPointId &&
+        this.purchaseOrderId &&
+        this.form1.resultClass &&
+        this.form1.sendStationId &&
+        this.form1.arrivalStationId &&
+        this.form1.resultLoadingDate
+      ) {
+        state = 1;
+      } else {
+        console.log(this.list.length);
+        if (this.list.length == 0) {
+          this.$message({
+            type: "warning",
+            message: "请输入车皮号!",
+          });
+        } else {
+          if (this.materialId) {
+            if (this.supplierId) {
+              if (this.unloadPointId) {
+                if (this.purchaseOrderId) {
+                    if (this.form1.resultClass) {
+                      if (this.form1.sendStationId) {
+                        if (this.form1.arrivalStationId) {
+                          if (this.form1.resultLoadingDate) {
+                          } else {
+                            this.$message({
+                              type: "warning",
+                              message: "请选择装车时间!",
+                            });
+                          }
+                        } else {
+                          this.$message({
+                            type: "warning",
+                            message: "请选择到站!",
+                          });
+                        }
+                      } else {
+                        this.$message({
+                          type: "warning",
+                          message: "请选择发站!",
+                        });
+                      }
+                    } else {
+                      this.$message({
+                        type: "warning",
+                        message: "请选择班别!",
+                      });
+                    }
+                  } else {
+                  this.$message({
+                    type: "warning",
+                    message: "该物资没有采购订单号!",
+                  });
+                }
+              } else {
+                this.$message({
+                  type: "warning",
+                  message: "请选择卸货地点!",
+                });
+              }
+            } else {
+              this.$message({
+                type: "warning",
+                message: "请选择发货单位!",
+              });
+            }
+          } else {
+            this.$message({
+              type: "warning",
+              message: "请选择物资!",
+            });
+          }
+        }
+      }
+      if(state == 1){
+        let map = {
+          wagonNoList:this.list,
+          unloadPointId:this.unloadPointId,
+          purchaseOrderRailPlanId:this.purchaseOrderId,
+          resultClass: this.form1.resultClass,
+          sendStationId: this.form1.sendStationId,
+          arrivalStationId: this.form1.arrivalStationId,
+          resultLoadingDate: sjTime(this.form1.resultLoadingDate),
+          resultRemarks: this.form1.resultRemarks,
+          resultType:2,
+        }
+        this.$axios.post('/api/v1/tms/insertTmstrainLoadingResult',map).then((res)=>{
+          console.log(res);
+          if(res.data.code == "200"){
+            this.$message({
+              type: "success",
+              message: "新增成功",
+            });
+            this.$router.push("/importedEmergency/wagonLoad");
+          }
+        })
+      }
+    },
+    // 取消
+    cancel() {
+      this.$router.go(-1);
+    },
+  },
+};
+</script>
+<style lang='scss'>
+.addWagonLoad {
+  .cp {
+    width: 100%;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    padding-top: 0.625rem;
+    padding-bottom: 0.625rem;
+    .cp_title {
+      .cp_top {
+        width: 3.125rem;
+        padding-right: 1.25rem;
+      }
+    }
+  }
+  .cpList {
+    display: flex;
+    justify-content: center;
+    width: 100%;
+    height: 10rem;
+    .list {
+      width: 45%;
+      border: #000 0.0625rem solid;
+      padding: 0.625rem;
+      display: flex;
+      flex-wrap: wrap;
+      .cpList1 {
+        background-color: #c9c7c7;
+        height: 1.875rem;
+        margin-right: 0.5rem;
+        padding: 0.625rem;
+        display: flex;
+        align-items: center;
+        justify-content: center;
+        position: relative;
+        .itu {
+          position: absolute;
+          top: -0.125rem;
+          right: 0.0625rem;
+          width: 0.625rem;
+          height: 0.625rem;
+        }
+      }
+    }
+  }
+  .material {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 8.125rem;
+    }
+  }
+  .forwardingUnit {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 8.125rem;
+    }
+  }
+  .remark {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 3.75rem;
+    .text {
+      text-align: right;
+      width: 60px;
+    }
+  }
+  .form {
+    margin-top: 1.25rem;
+    display: flex;
+    justify-content: center;
+    padding-left: 9.375rem;
+  }
+  .button-box {
+    display: flex;
+    justify-content: center;
+  }
+}
+</style>
+

+ 105 - 0
src/views/TMS/importedEmergency/addWagonUnLoad.vue

@@ -0,0 +1,105 @@
+<template>
+  <!-- 添加车皮卸车实绩 -->
+  <div class="addWagonLoad">
+    <page-title>新增</page-title>
+
+    <div class="main">
+      <el-divider content-position="left">选择已装车实绩</el-divider>
+    </div>
+
+    <div>
+      <dilTable
+        v-bind.sync="option"
+        ref="table"
+        @selection-change="selectionChange"
+      >
+      </dilTable>
+    </div>
+
+    <el-divider content-position="left">车皮卸车实绩</el-divider>
+     <div class="form-box" style="margin-right: 10rem">
+        <dil-form :formId="255" v-model="form1" ref="from1"></dil-form>
+      </div>
+    <div class="button-box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+    
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      form1: {},
+       option: {
+        // 表格请求数据的地址
+        requestUrl:
+          "/api/v1/tms/getWagonNo/2?apiId=213",
+        // 控制显示当选列
+        selectionType: "select",
+      },
+      value: undefined,
+      list: [],
+    };
+  },
+  mounted() {},
+  methods: {
+    selectionChange(selection){
+      this.list = [];
+      selection.forEach(e => {
+        this.list.push(
+          {
+            resultWagonNo:e.resultWagonNo,
+            resultId:e.resultId
+          })
+      });
+    },
+    // 确定
+    makeSure() {
+      let tmstrainWagonUnloadResult = {
+        wagonNoList: this.list,
+        resultArrivalDate: sjTime(this.form1.resultArrivalDate),
+        resultUnloadTime: sjTime(this.form1.resultUnloadTime),
+        unloadingPointId: this.form1.unloadingPointId,
+        resultBigTicketWeight: this.form1.resultBigTicketWeight,
+        resultRailHorizontalWeight: this.form1.resultRailHorizontalWeight,
+        resultRemark: this.form1.resultRemark,
+        resultType: 2
+      };
+      console.log(tmstrainWagonUnloadResult);
+      if (tmstrainWagonUnloadResult.wagonNoList==null
+      ||tmstrainWagonUnloadResult.resultArrivalDate==null||
+      tmstrainWagonUnloadResult.resultUnloadTime==null||
+      tmstrainWagonUnloadResult.unloadingPointId==null||
+      tmstrainWagonUnloadResult.resultBigTicketWeight==null||
+      tmstrainWagonUnloadResult.resultRailHorizontalWeight==null
+      ) this.$message.error("存在空值!");
+      else
+      this.$axios
+        .post(
+          "/api/v1/tms/insertTmstrainWagonUnLoadResult",
+          tmstrainWagonUnloadResult
+        )
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "新增成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+    // 取消
+    cancel() {
+      this.$router.go(-1);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+@import "@/styles/TMS/addWagonUnLoed.scss";
+</style>

+ 102 - 0
src/views/TMS/importedEmergency/editWagonLoad.vue

@@ -0,0 +1,102 @@
+<template>
+  <!-- 修改车皮装车实绩 -->
+  <div id="contractDetails">
+    <page-title>编辑</page-title>
+    <div class="main">
+      <span class="text">车皮装车实绩</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="254" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>
+
+    <div class="button-box">
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+      <el-button @click="onClickCancel">返回</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+ data(){
+     return {
+      form1: {},
+  }
+ },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      //编辑车皮装车作业
+      this.$axios
+        .post("/api/v1/tms/getTmstrainLoadingResultByResultId/" + this.$route.params.resultId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+            console.log(e);
+            console.log(this.form1);
+            console.log(this.$route.params.resultId);
+          });
+        });
+    },
+    handleCheckedCitiesChange(value) {
+      console.log(value);
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    currentRadioChange(row) {
+      this.aaaa = row;
+    },
+    // 确认
+    onClickConfirm() {
+      let tmstrainLoadingResult = {
+        resultId: this.$route.params.resultId,
+        resultWagonNo: this.form1.resultWagonNo,
+        resultBillableTonnage: this.form1.resultBillableTonnage,
+        resultClass: this.form1.resultClass,
+        sendStationId: this.form1.sendStationId,
+        arrivalStationId: this.form1.arrivalStationId,
+        resultLoadingDate: sjTime(this.form1.resultLoadingDate),
+        batchId: this.form1.batchId,
+        capacityId: this.form1.capacityId,
+        resultMaterialNumber: this.form1.resultMaterialNumber,
+        resultMaterialTheoryweight: this.form1.resultMaterialTheoryweight,
+        resultRemarks: this.form1.resultRemarks
+      };
+      if (
+      tmstrainLoadingResult.resultWagonNo==null||
+      tmstrainLoadingResult.resultBillableTonnage==null||
+      tmstrainLoadingResult.resultClass==null||
+      tmstrainLoadingResult.sendStationId==null||
+      tmstrainLoadingResult.arrivalStationId==null||
+      tmstrainLoadingResult.resultLoadingDate==null||
+      tmstrainLoadingResult.batchId==null
+      ) this.$message.error("必填项存在空值!");
+      else
+      this.$axios
+        .post("/api/v1/tms/upadteTmstrainLoadingResultByResultId",tmstrainLoadingResult)
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "修改成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/TMS/addwagonload.scss";
+</style>

+ 100 - 0
src/views/TMS/importedEmergency/editWagonUnLoad.vue

@@ -0,0 +1,100 @@
+<template>
+  <!-- 修改车皮装车实绩 -->
+  <div id="contractDetails">
+    <page-title>编辑</page-title>
+    <div class="main">
+      <span class="text">车皮卸车实绩</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="118" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>
+      
+    <div class="button-box">
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+      <el-button @click="onClickCancel">返回</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+ data(){
+     return {
+      form1: {},
+  }
+ },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      //编辑车皮装车作业
+      this.$axios
+        .post("/api/v1/tms/getTmstrainWagonUnLoadResultByUnLoadingId/" + this.$route.params.unloadingId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+            console.log(e);
+            console.log(this.form1);
+            console.log(this.$route.params.unloadingId);
+          });
+        });
+    },
+    handleCheckedCitiesChange(value) {
+      console.log(value);
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    currentRadioChange(row) {
+      this.aaaa = row;
+    },
+    //确定
+    onClickConfirm() {
+      let tmstrainWagonUnloadResult = {
+        unloadingId: this.$route.params.unloadingId,
+        resultWagonNo: this.form1.resultWagonNo,
+        resultArrivalDate: sjTime(this.form1.resultArrivalDate),
+        resultUnloadTime: sjTime(this.form1.resultUnloadTime),
+        unloadingPointId: this.form1.unloadingPointId,
+        resultBigTicketWeight: this.form1.resultBigTicketWeight,
+        resultRailHorizontalWeight: this.form1.resultRailHorizontalWeight,
+        resultRemark: this.form1.resultRemark
+      };
+      console.log(tmstrainWagonUnloadResult);
+      if (tmstrainWagonUnloadResult.resultWagonNo==null
+      ||tmstrainWagonUnloadResult.resultArrivalDate==null||
+      tmstrainWagonUnloadResult.resultUnloadTime==null||
+      tmstrainWagonUnloadResult.unloadingPointId==null||
+      tmstrainWagonUnloadResult.resultBigTicketWeight==null||
+      tmstrainWagonUnloadResult.resultRailHorizontalWeight==null
+      ) this.$message.error("存在空值!");
+      else
+      this.$axios
+        .post(
+          "/api/v1/tms/upadteTmstrainWagonUnLoadResultByUnLoadingId",
+          tmstrainWagonUnloadResult
+        )
+       .then(() => {
+          this.$message({
+            type: "success",  
+            message: "修改成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/TMS/addwagonload.scss";
+</style>

+ 63 - 0
src/views/TMS/importedEmergency/entrust.vue

@@ -0,0 +1,63 @@
+<template>
+  <!-- 计量委托 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick(0)">
+        <i class="el-icon-s-promotion"></i>发送
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option" @selection-change="selectionChange">
+    </dilTable>
+  </div>
+</template>
+
+
+<script>
+export default {
+  data() {
+    return {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=2",
+        // 控制显示多选列
+        selectionType: "select",
+      },
+      selectionListMap:[],
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getTmstrainWagonLoad?apiId=58&resultType=1&con="+this.input;
+    },
+    btnclick() {
+      this.$axios.post('/api/v1/tms/batchSendMeasureCommission',{resultIdList:this.selectionListMap}).then((res)=>{
+        if(res.data.code == "200"){
+          this.$message({
+            type: "success",
+            message: "发送成功",
+          });
+          this.option.requestUrl = "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=2";
+        }
+      })
+    },
+    selectionChange(selection) {
+      this.selectionListMap = [] 
+      selection.forEach(element => {
+        this.selectionListMap.push(element.resultId);
+      });
+    },
+  },
+};
+</script>
+<style lang='scss'>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 93 - 0
src/views/TMS/importedEmergency/trainDetails.vue

@@ -0,0 +1,93 @@
+<template>
+  <!-- 火运实绩页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <span class="top_title">车皮号 : </span>
+      <el-autocomplete
+        popper-class="my-autocomplete"
+        v-model="state"
+        :fetch-suggestions="querySearch"
+        placeholder="请输入内容"
+        @select="handleSelect"
+      >
+        <i class="el-icon-edit el-input__icon" slot="suffix"> </i>
+        <template slot-scope="{ item }">
+          <div class="name">{{ item.value }}</div>
+          <span class="addr">{{ item.address }}</span>
+        </template> 
+      </el-autocomplete>
+
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      
+    </div>
+    <dilTable v-bind.sync="option">
+      
+    </dilTable>
+  </div>
+</template>
+
+
+<script>
+export default {
+  name: "wagonUnload",
+  data() {
+    return {
+      status: "",
+      state: "",
+      option: {       
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getTmstrainresult?apiId=65",
+      },
+    };
+  },
+  mounted() {
+      debugger
+    this.restaurants = this.loadAll();
+  },
+  methods: {
+    querySearch(queryString, cb) {
+      var restaurants = this.restaurants;
+      var results = queryString
+        ? restaurants.filter(this.createFilter(queryString))
+        : restaurants;
+      cb(results);
+    },
+    createFilter(queryString) {
+      return (restaurant) => {
+        return (
+          restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) ===
+          0
+        );
+      };
+    },
+    loadAll() {
+      return [
+        { value: "三全鲜食(北新泾店)", address: "长宁区新渔路144号" },
+        {
+          value: "Hot honey 首尔炸鸡(仙霞路)",
+          address: "上海市长宁区淞虹路661号",
+        },
+        {
+          value: "新旺角茶餐厅",
+          address: "上海市普陀区真北路988号创邑金沙谷6号楼113",
+        },
+      ];
+    },
+    handleSelect(item) {
+      console.log(item);
+    },
+    onclick() {
+      console.log(1);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 89 - 0
src/views/TMS/importedEmergency/wagonLoad.vue

@@ -0,0 +1,89 @@
+<template>
+  <!-- 装车作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick(0)">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="onclick(1)">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" width="100">
+        <template slot-scope="scope">
+          <el-button @click="onclick(2,scope.row.resultId)" type="text" size="small"
+            >修改</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.resultId)"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+<script>
+export default {
+  name: "wagonload",
+  data() {
+    return {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=2",
+      },
+    };
+  },
+  methods: {
+    onclick(num,resultId) {
+      if (num == 0) {
+        this.option.requestUrl = "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=2&con="+this.input
+      } else if (num == 1) {
+        this.$router.push("/importedEmergency/addWagonLoad")
+      } else if (num == 2) {
+         this.$router.push("/importedEmergency/editWagonLoad/" + resultId)
+      }
+    },
+    deleteclick(resultId) {
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          this.$axios
+            .post(
+              "/api/v1/tms/deleteTmstrainLoadingResultByResultId?resultId=" +
+                resultId
+            )
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 96 - 0
src/views/TMS/importedEmergency/wagonUnLoad.vue

@@ -0,0 +1,96 @@
+<template>
+  <!-- 卸车作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="btnclick(0)">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="btnclick(1)">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+    </div>
+
+    <dilTable v-bind.sync="option">
+      <el-table-column fixed="right" label="操作" width="100">
+        <template slot-scope="scope">
+          <el-button
+            @click="btnclick(2,scope.row.unloadingId)"
+            type="text"
+            size="small"
+            >修改</el-button
+          >
+          <el-button
+            type="text"
+            size="small"
+            @click="deleteclick(scope.row.unloadingId)"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+
+<script>
+export default {
+  name: "wagonUnload",
+  data() {
+    return {
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getTmstrainWagonUnLoad?apiId=214&resultType=2",
+      },
+      input:''
+    };
+  },
+  methods: {
+    btnclick(num,unloadingId) {
+      if ( num == 0 ) {
+        this.option.requestUrl = '/api/v1/tms/getTmstrainWagonUnLoad?apiId=60&resultType=2&con='+this.input;
+      } else if (num == 1 ) {
+        this.$router.push("/importedEmergency/addWagonUnLoad")
+      }else if (num == 2) {
+        this.$router.push("/importedEmergency/editWagonUnLoad/" + unloadingId);
+      }
+    },
+    deleteclick(scope) {
+      let unloadingId = scope;
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          this.$axios
+            .post(
+              "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" +
+                unloadingId
+            )
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 375 - 0
src/views/TMS/importedFuel/transportReserveFuAdd.vue

@@ -0,0 +1,375 @@
+<template>
+  <!-- 新增运输作业页面 -->
+  <div id="contractDetails">
+    <page-title>运输预约</page-title>
+
+    <div class="main">
+      <el-divider content-position="left">新增运输预约</el-divider>
+    </div>
+
+    <div class="material from">
+      <span class="text">物资:</span>
+      <el-input v-model="materialName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
+    </div>
+
+    <div class="forwardingUnit from">
+      <span class="text">发货单位:</span>
+      <el-input v-model="supplierName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
+    </div>
+
+    <div class="contractTitle from">
+      <dil-form :formId="219" v-model="form1"></dil-form>
+    </div>
+    <div class="truckList1">
+      <div class="truckList from">
+        <span class="text">选择车辆:</span>
+        <el-button type="primary" @click="ondrawer(3)" class="truckBtn"
+          >浏览</el-button
+        >
+      </div>
+    </div>
+    <!-- 车辆表格 -->
+    <div class="truckListTable">
+      <el-table
+        :data="selectionList"
+        border
+        style="width: 100%"
+        highlight-current-row
+      >
+        <el-table-column type="index" width="50" label="序号" align="center">
+        </el-table-column>
+        <el-table-column
+          v-for="(item, i) in tableTop"
+          :key="i"
+          :prop="item.prop"
+          :label="item.label"
+          align="center"
+          show-overflow-tooltip
+        >
+          <template slot="scope" v-if="item.th_name !== '件数'">
+            <span>{{ item.label }}</span>
+          </template>
+          <!-- 插入输入框 -->
+          <template slot-scope="scope">
+            <template v-if="item.slot">
+              <template v-if="item.prop == 'orderMaterialNumber'">
+                <el-input v-model.number="scope.row.orderMaterialNumber"></el-input>
+              </template>
+            </template>
+            <template v-else>
+              <span>{{ scope.row[item.prop] }}</span>
+            </template>
+          </template>
+        </el-table-column>
+      </el-table>
+    </div>
+    <!-- 模态窗口 -->
+    <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        style="margin-top: 0.625rem; margin-left: 1.25rem"
+        clearable
+      ></el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="onclick(a)"
+        style="margin-bottom: 0.9375rem"
+      >
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <div v-show="a == 1">
+        <dilTable
+          v-bind.sync="frist"
+          @radio-change="currentRadioChange1"
+        ></dilTable>
+      </div>
+      <div v-show="a == 2">
+        <dilTable
+          v-bind.sync="secend"
+          @radio-change="currentRadioChange2"
+        ></dilTable>
+      </div>
+      <div v-show="a == 3">
+        <dilTable
+          v-bind.sync="third"
+          @selection-change="currentRadioChange3"
+        ></dilTable>
+      </div>
+    </el-drawer>
+    <div class="button_box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+    </div>
+  </div>
+</template>
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime, isNumber, isIntegerNumber } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      // 车辆表格表头
+      tableTop: [
+        {
+          prop: "capacityNumber",
+          label: "车牌号",
+          width: "140",
+        },
+        {
+          prop: "carrierName",
+          label: "承运商",
+          width: "140",
+        },
+        {
+          prop: "driverName",
+          label: "司机",
+          width: "140",
+        },
+        {
+          prop: "orderMaterialNumber",
+          label: "件数",
+          slot: true,
+        },
+      ],
+      //车辆表格数据
+      selectionList: [],
+      // 表单
+      form1: {},
+      purchaseOrderId: "",
+      materialName: "",
+      supplierName: "",
+      supplierId: null,
+      materialId: null,
+      drawer: false,
+      a: 1,
+      direction: "rtl",
+      input: "",
+      frist: {
+        requestUrl: "/api/v1/uc/queryMaterialByLike?apiId=244&startNum=010",
+        selectionType: "radio",
+        mapList1: [],
+      },
+      secend: {
+        requestUrl: "/api/v1/uc/querySupplierByLike?apiId=247",
+        selectionType: "radio",
+        mapList2: [],
+      },
+      third: {
+        requestUrl: "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248",
+        selectionType: "select",
+        mapList3: [],
+      },
+    };
+  },
+  methods: {
+    getPurchaseOrderNo() {
+      console.log(this.materialId, "materialId");
+      console.log(this.supplierId, "supplierId");
+      if (this.materialId && this.supplierId) {
+        this.$axios
+          .post("/api/v1/oms/selectNewOrderId", {
+            materialId: this.materialId,
+            supplierId: this.supplierId,
+          })
+          .then((res) => {
+            console.log(res);
+            if (res.data.code == "200") {
+              if (res.data.data == null) {
+                this.$message({
+                  message: "没有匹配的采购订单号!",
+                  type: "warning",
+                });
+              } else {
+                this.purchaseOrderId = res.data.data.purchaseOrderId;
+                this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
+              }
+            } else {
+              this.$message.error("请求失败");
+            }
+          });
+      }
+    },
+    onclick(a) {
+      if (a == 1) {
+        this.frist.requestUrl =
+          "/api/v1/uc/queryMaterialByLike?apiId=244&startNum=010&index=" + this.input;
+      } else if (a == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/querySupplierByLike?apiId=247&index=" + this.input;
+      } else {
+        this.third.requestUrl =
+          "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&index=" +
+          this.input;
+      }
+    },
+    ondrawer(num) {
+      this.drawer = true;
+      this.a = num;
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+    currentRadioChange1(selection) {
+      this.materialName = selection.materialName;
+      this.materialId = selection.materialId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange2(selection) {
+      this.supplierName = selection.supplierName;
+      this.supplierId = selection.supplierId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange3(selection) {
+      console.log(selection,"selection");
+      this.selectionList = [];
+      this.selectionList = selection;
+    },
+    // 确认
+    onClickConfirm() {
+      var state = 0;
+      if (
+        this.materialId &&
+        this.supplierId &&
+        this.form1.purchaseOrderId &&
+        this.form1.unloadPointId &&
+        sjTime(this.form1.orderEntryTime)
+      ) {
+        state = 1;
+      } else {
+        if (!this.materialId) {
+          this.$message({
+            message: "请选择物资!",
+            type: "warning",
+          });
+          if (!this.supplierId) {
+            this.$message({
+              message: "请选择发货单位!",
+              type: "warning",
+            });
+            if (!this.form1.purchaseOrderId) {
+              this.$message({
+                message: "没有匹配的采购订单号!",
+                type: "warning",
+              });
+              if (!this.form1.unloadPointId) {
+                this.$message({
+                  message: "请选择卸货地点!",
+                  type: "warning",
+                });
+                if (!sjTime(this.form1.orderEntryTime)) {
+                  this.$message({
+                    message: "请选择预估进厂时间!",
+                    type: "warning",
+                  });
+                }
+              }
+            }
+          }
+        }
+      }
+      this.selectionList.forEach((e) => {
+        if (e.orderMaterialNumber) {
+          if (isNumber(e.orderMaterialNumber)) {
+            if (isIntegerNumber(e.orderMaterialNumber)) {
+              state = 1;
+            } else {
+              this.$message({
+                message: "件数只能是整数!",
+                type: "warning",
+              });
+              state = 0;
+            }
+          } else {
+            this.$message({
+              message: "件数只能是数字!",
+              type: "warning",
+            });
+            state = 0;
+          }
+        } else {
+          this.$message({
+            message: "件数不能为空!",
+            type: "warning",
+          });
+          state = 0;
+        }
+      });
+      if (state == 1) {
+        let map = {
+          materialId: this.materialId,
+          supplierId: this.supplierId,
+          purchaseOrderId: this.purchaseOrderId,
+          unloadPointId: this.form1.unloadPointId,
+          orderEntryTime: sjTime(this.form1.orderEntryTime),
+          driverCapacityIdList: this.selectionList,
+          orderType: 5
+        };
+        console.log(map);
+        this.$axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
+          if (res.data.code == "200") {
+            this.$message({
+              message: "添加成功!",
+              type: "success",
+            });
+            this.$store.go(-1);
+          }
+        });
+      }
+    },
+  },
+};
+</script>
+
+<style lang="scss" >
+.contractDetails {
+  width: 100%;
+}
+.from {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.material {
+  .text {
+    display: inline-block;
+    width: 10rem;
+    text-align: right;
+  }
+}
+.forwardingUnit {
+  .text {
+    display: inline-block;
+    width: 10rem;
+    text-align: right;
+  }
+}
+.truckList1 {
+  width: 100%;
+  .truckList {
+    width: 96%;
+    .text {
+      display: inline-block;
+      width: 9.375rem;
+      text-align: right;
+    }
+    .truckBtn {
+      width: 17.5rem;
+    }
+  }
+}
+.button_box {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  width: 100%;
+  height: 6.25rem;
+}
+</style>

+ 178 - 0
src/views/TMS/importedFuel/transportReserveRan.vue

@@ -0,0 +1,178 @@
+<template>
+  <!-- 燃料运输预约 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" @click="insertClick">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+       <el-button type="primary" @click="issue">
+        <i class="el-icon-plus"></i>下发
+      </el-button>
+    </div>
+    <el-tabs v-model="activeName">
+      <!-- 未下发 -->
+      <el-tab-pane label="未下发" name="first">
+        <dilTable v-bind.sync="option1" ref="table" @selection-change="selectionChange">
+          <el-table-column
+            fixed="right"
+            align="center"
+            label="操作"
+            width="120"
+          >
+            <template slot-scope="scope">
+              <el-button
+                @click="sendClick(scope.row.orderId)"
+                type="text"
+                size="small"
+              >
+                下发
+              </el-button>
+              <el-button
+                @click="updateClick(scope.row.orderId)"
+                type="text"
+                size="small"
+              >
+                修改
+              </el-button>
+              <el-button
+                @click="
+                  deleteClick(scope.row.orderId, scope.row.capacityNumber)
+                "
+                type="text"
+                size="small"
+              >
+                删除
+              </el-button>
+            </template>
+          </el-table-column>
+        </dilTable>
+      </el-tab-pane>
+      <!-- 已下发 -->
+      <el-tab-pane label="已下发" name="second">
+        <dilTable v-bind.sync="option2"> </dilTable>
+      </el-tab-pane>
+    </el-tabs>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "inplantTMS",
+  data() {
+    return {
+      input: "",
+      Time: "",
+      activeName: "first",
+      option1: {
+        // 表格请求数据的地址
+        requestUrl:
+          "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=1",
+          selectionType:"select",
+          mapList:[]
+      },
+      option2: {
+        // 表格请求数据的地址
+        requestUrl:
+          "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=4&fuelOrder=1",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      if (this.activeName == "first") {
+        this.option1.requestUrl =
+          "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&fuelOrder=1&con=" +
+          this.input;
+      } else {
+        this.option2.requestUrl =
+          "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=4&fuelOrder=1&con=" +
+          this.input;
+      }
+    },
+    selectionChange(selection){
+        this.mapList = selection
+    },
+    issue(){
+      let mapvalue = {
+        mapList : this.mapList
+      }
+      this.$axios.post("/api/v1/oms/dispatchOrder", mapvalue)},
+    // 下发
+    sendClick(orderId) {
+      this.$confirm("是否下发", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "下发成功!",
+          });
+          this.$axios
+            .post("/api/v1/oms/dispatchOrder", {
+              orderId: orderId,
+            })
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消下发!",
+          });
+        });
+    },
+    // 删除
+    deleteClick(orderId, capacityNumber) {
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          this.$axios
+            .post("/api/v1/oms/deleteOrder", {
+              orderId: orderId,
+              capacityNumber: capacityNumber,
+            })
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+    //新增
+    insertClick() {
+      this.$router.push("/importedFuel/transportReserveRanAdd");
+    },
+    //修改
+    updateClick(orderId) {
+      this.$router.push("/importedFuel/transportReserveRanEdit/" + orderId);
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 581 - 0
src/views/TMS/importedFuel/transportReserveRanAdd.vue

@@ -0,0 +1,581 @@
+<template>
+  <!-- 新增运输作业页面 -->
+  <div id="contractDetails">
+    <page-title>运输预约</page-title>
+
+    <div class="main">
+      <el-divider content-position="left">新增运输预约</el-divider>
+    </div>
+
+    <div class="material from">
+      <span class="text">物资:</span>
+      <el-input v-model="materialName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
+    </div>
+
+    <div class="forwardingUnit from">
+      <span class="text">发货单位:</span>
+      <el-input v-model="supplierName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
+    </div>
+    <div class="remark from">
+      <span class="text">船名:</span>
+      <el-input v-model="remark" @blur="onBlur"> </el-input>
+      <span class="span"></span>
+    </div>
+    <div class="forwardingUnit from">
+      <span class="text">卸货点:</span>
+      <el-input v-model="unloadPointName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
+    </div>
+    <div class="lineId from">
+      <span class="text">选择路线:</span>
+      <el-input v-model="lineName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(5)">浏览</el-button>
+    </div>
+    <div class="orderType from">
+      <span class="text">订单类别:</span>
+      <el-select v-model="orderType" placeholder="请选择">
+        <el-option
+          v-for="item in orderTypeList"
+          :key="item.value"
+          :label="item.label" 
+          :value="item.value"
+        >
+        </el-option>
+      </el-select>
+    </div>
+    <div class="contractTitle from">
+      <dil-form :formId="219" v-model="form1"></dil-form>
+    </div>
+    <div class="truckList1">
+      <div class="truckList from">
+        <span class="text">选择车辆:</span>
+        <el-button type="primary" @click="ondrawer(3)" class="truckBtn"
+          >浏览</el-button
+        >
+      </div>
+    </div>
+    <!-- 车辆表格 -->
+    <div class="switch" v-if="selectionList.length > 0">
+      <el-tooltip placement="top">
+        <div slot="content">下面表格已有数据,不能进行更改!!!</div>
+        <el-switch
+          v-model="value"
+          active-text="重量"
+          inactive-text="件数"
+          disabled
+        >
+        </el-switch>
+      </el-tooltip>
+    </div>
+    <div class="switch" v-else>
+      <el-tooltip placement="top">
+        <div slot="content">当下面表格有数据之后,将不能进行更改!!!</div>
+        <el-switch v-model="value" active-text="重量" inactive-text="件数">
+        </el-switch>
+      </el-tooltip>
+    </div>
+    <div class="truckListTable">
+      <el-table
+        :data="selectionList"
+        border
+        style="width: 100%"
+        highlight-current-row
+      >
+        <el-table-column type="index" width="50" label="序号" align="center">
+        </el-table-column>
+        <el-table-column
+          v-for="(item, i) in tableTop"
+          :key="i"
+          :prop="item.prop"
+          :label="item.label"
+          align="center"
+          show-overflow-tooltip
+        >
+          <template slot="scope" v-if="item.th_name !== '件数'">
+            <span>{{ item.label }}</span>
+          </template>
+          <template slot="scope" v-if="item.th_name !== '重量'">
+            <span>{{ item.label }}</span>
+          </template>
+          <!-- 插入输入框 -->
+          <template slot-scope="scope">
+            <template v-if="item.slot">
+              <template v-if="item.prop == 'orderMaterialNumber'">
+                <el-input
+                  v-model.number="scope.row.orderMaterialNumber"
+                ></el-input>
+              </template>
+              <template v-if="item.prop == 'orderMaterialWeight'">
+                <el-input
+                  v-model.number="scope.row.orderMaterialWeight"
+                ></el-input>
+              </template>
+            </template>
+            <template v-else>
+              <span>{{ scope.row[item.prop] }}</span>
+            </template>
+          </template>
+        </el-table-column>
+
+        <el-table-column fixed="right" label="操作" width="100">
+          <template slot-scope="scope">
+            <el-button type="text" size="small" @click="onClick(scope.$index)"
+              >删除</el-button
+            >
+          </template>
+        </el-table-column>
+      </el-table>
+    </div>
+    <!-- 模态窗口 -->
+    <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
+      <el-input
+        placeholder="请输入内容"
+        v-model="input"
+        style="margin-top: 0.625rem; margin-left: 1.25rem"
+        clearable
+      ></el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="onclick(a)"
+        style="margin-bottom: 0.9375rem"
+      >
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <div v-show="a == 1">
+        <dilTable
+          v-bind.sync="frist"
+          @radio-change="currentRadioChange1"
+        ></dilTable>
+      </div>
+      <div v-show="a == 2">
+        <dilTable
+          v-bind.sync="secend"
+          @radio-change="currentRadioChange2"
+        ></dilTable>
+      </div>
+      <div v-show="a == 3">
+        <dilTable
+          v-bind.sync="third"
+          @selection-change="currentRadioChange3"
+        ></dilTable>
+      </div>
+      <div v-show="a == 4">
+        <dilTable
+          v-bind.sync="unloadPoint"
+          @radio-change="currentRadioChange4"
+        ></dilTable>
+      </div>
+      <div v-show="a == 5">
+        <dilTable
+          v-bind.sync="line"
+          @radio-change="currentRadioChange5"
+        ></dilTable>
+      </div>
+    </el-drawer>
+    <div class="button_box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+    </div>
+  </div>
+</template>
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime, isNumber, isIntegerNumber } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      //订单类别
+      orderTypeList:[
+        {
+          value:6,
+          label:'老厂区'
+        },{
+          value:7,
+          label:'新厂区'
+        }
+      ],
+      // 线路名称
+      lineName: "",
+      //线路id
+      lineId: null,
+      // 件数与重量的开关
+      value: false,
+      //船名
+      remark: null,
+      // 车辆表格表头
+      tableTop: [
+        {
+          prop: "capacityNumber",
+          label: "车牌号",
+          width: "140",
+        },
+        {
+          prop: "carrierName",
+          label: "承运商",
+          width: "140",
+        },
+        {
+          prop: "orderMaterialNumber",
+          label: "件数",
+          slot: true,
+        },
+      ],
+      //车辆表格数据
+      selectionList: [],
+      // 表单
+      form1: {},
+      //采购订单id
+      purchaseOrderId: "",
+      //物资名称
+      materialName: "",
+      //发货单位名称
+      supplierName: "",
+      //发货单位id
+      supplierId: null,
+      //物资id
+      materialId: null,
+      //是否需要打开模态窗口
+      drawer: false,
+      //卸货点id
+      unloadPointId: "",
+      //卸货点名称
+      unloadPointName: "",
+      //订单类别
+      orderType:6,
+      a: 1,
+      direction: "rtl",
+      input: "",
+      frist: {
+        requestUrl: "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050",
+        selectionType: "radio",
+        mapList1: [],
+      },
+      secend: {
+        requestUrl:
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=",
+        selectionType: "radio",
+        mapList2: [],
+      },
+      third: {
+        requestUrl: "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248",
+        selectionType: "select",
+        mapList3: [],
+      },
+      unloadPoint: {
+        requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
+        selectionType: "radio",
+      },
+      line: {
+        requestUrl: "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3",
+        selectionType: "radio",
+      },
+    };
+  },
+  watch: {
+    value() {
+      if (this.value) {
+        this.tableTop.splice(this.tableTop.length - 1, 1);
+        this.tableTop.push({
+          prop: "orderMaterialWeight",
+          label: "重量",
+          slot: true,
+        });
+      } else {
+        this.tableTop.splice(this.tableTop.length - 1, 1);
+        this.tableTop.push({
+          prop: "orderMaterialNumber",
+          label: "件数",
+          slot: true,
+        });
+      }
+    },
+  },
+  methods: {
+    onClick(index) {
+      this.selectionList.splice(index, 1);
+    },
+    onBlur() {
+      this.getPurchaseOrderNo();
+    },
+    getPurchaseOrderNo() {
+      let map = {
+        materialId: this.materialId,
+        supplierId: this.supplierId,
+      };
+      if (this.remark) {
+        map.remark = this.remark;
+      }
+      console.log(this.map);
+      if (this.materialId && this.supplierId) {
+        this.$axios.post("/api/v1/oms/selectNewOrderId", map).then((res) => {
+          console.log(res);
+          if (res.data.code == "200") {
+            if (res.data.data == null) {
+              this.$message({
+                message: "没有匹配的采购订单号!",
+                type: "warning",
+              });
+              this.form1 = [];
+            } else {
+              this.remark = res.data.data.remark;
+              this.purchaseOrderId = res.data.data.purchaseOrderId;
+              this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
+            }
+          } else {
+            this.$message.error("请求失败");
+          }
+        });
+      }
+    },
+    onclick(a) {
+      if (a == 1) {
+        this.frist.requestUrl =
+          "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+          this.input;
+      } else if (a == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId +
+          "&index=" +
+          this.input;
+      } else if (a == 3) {
+        this.third.requestUrl =
+          "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&index=" +
+          this.input;
+      } else if (a == 4) {
+        this.third.requestUrl =
+          "/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.input;
+      } else if (a == 5) {
+        this.option.requestUrl =
+          "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
+      }
+    },
+    ondrawer(num) {
+      this.drawer = true;
+      this.a = num;
+      if (num == 2) {
+        this.secend.requestUrl =
+          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+          this.materialId;
+      }
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.push("/importedFuel/transportReserveRan");
+    },
+    currentRadioChange1(selection) {
+      this.materialName = selection.materialName;
+      this.materialId = selection.materialId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange2(selection) {
+      this.supplierName = selection.supplierName;
+      this.supplierId = selection.supplierId;
+      this.getPurchaseOrderNo();
+    },
+    currentRadioChange4(selection) {
+      this.unloadPointId = selection.warehouseId;
+      this.unloadPointName = selection.warehouseName;
+    },
+    currentRadioChange5(selection) {
+      this.lineName = selection.lineName;
+      this.lineId = selection.lineId;
+    },
+    currentRadioChange3(selection) {
+      this.selectionList = [];
+      this.selectionList = selection;
+    },
+    // 确认
+    onClickConfirm() {
+      var state = 0;
+      if (
+        this.materialId &&
+        this.supplierId &&
+        this.form1.purchaseOrderId &&
+        this.unloadPointId &&
+        sjTime(this.form1.orderEntryTime) &&
+        this.lineId
+      ) {
+        state = 1;
+      } else {
+        if (!this.materialId) {
+          this.$message({
+            message: "请选择物资!",
+            type: "warning",
+          });
+        } else if (!this.supplierId) {
+          this.$message({
+            message: "请选择发货单位!",
+            type: "warning",
+          });
+        } else if (!this.purchaseOrderId) {
+          this.$message({
+            message: "没有匹配的采购订单号!",
+            type: "warning",
+          });
+        } else if (!this.unloadPointId) {
+          this.$message({
+            message: "请选择卸货地点!",
+            type: "warning",
+          });
+        } else if (!this.lineId) {
+          this.$message({
+            message: "请选择运输路线!",
+            type: "warning",
+          });
+        } else if (!sjTime(this.form1.orderEntryTime)) {
+          this.$message({
+            message: "请选择预估进厂时间!",
+            type: "warning",
+          });
+        }
+      }
+      if (this.selectionList.length == 0) {
+        this.$message({
+          message: "请选择车辆!",
+          type: "warning",
+        });
+        state = 0;
+      } else {
+        this.selectionList.forEach((e) => {
+          if (e.orderMaterialNumber || e.orderMaterialWeight) {
+            if (
+              isNumber(e.orderMaterialNumber) ||
+              isNumber(e.orderMaterialWeight)
+            ) {
+              if (
+                isIntegerNumber(e.orderMaterialNumber) ||
+                isIntegerNumber(e.orderMaterialWeight)
+              ) {
+                state = 1;
+              } else {
+                this.$message({
+                  message: "件数(重量)只能是整数!",
+                  type: "warning",
+                });
+                state = 0;
+              }
+            } else {
+              this.$message({
+                message: "件数(重量)只能是数字!",
+                type: "warning",
+              });
+              state = 0;
+            }
+          } else {
+            this.$message({
+              message: "件数(重量)不能为空!",
+              type: "warning",
+            });
+            state = 0;
+          }
+        });
+      }
+
+      if (state == 1) {
+        let map = {
+          materialId: this.materialId,
+          supplierId: this.supplierId,
+          purchaseOrderId: this.purchaseOrderId,
+          unloadPointId: this.unloadPointId,
+          orderEntryTime: sjTime(this.form1.orderEntryTime),
+          driverCapacityIdList: this.selectionList,
+          orderType: this.orderType,
+          lineId: this.lineId,
+        };
+        console.log(map, map);
+        this.$axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
+          if (res.data.code == "200") {
+            this.$message({
+              message: "添加成功!",
+              type: "success",
+            });
+            this.$router.push("/importedFuel/transportReserveRan");
+          }
+        });
+      }
+    },
+  },
+};
+</script>
+
+<style lang="scss" >
+.contractDetails {
+  width: 100%;
+}
+.from {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.remark {
+  .text {
+    display: inline-block;
+    width: 5.625rem;
+    text-align: right;
+  }
+}
+.lineId {
+  .text {
+    display: inline-block;
+    width: 10rem;
+    text-align: right;
+  }
+}
+.material {
+  .text {
+    display: inline-block;
+    width: 10rem;
+    text-align: right;
+  }
+}
+.orderType{
+  .text{
+    display: inline-block;
+    width: 5.625rem;
+    text-align: right;
+  }
+}
+.switch {
+  width: 100%;
+  height: 2.5rem;
+  display: flex;
+  align-items: center;
+  justify-content: flex-end;
+  padding-right: 6.875rem;
+}
+.forwardingUnit {
+  .text {
+    display: inline-block;
+    width: 10rem;
+    text-align: right;
+  }
+}
+.truckList1 {
+  width: 100%;
+  .truckList {
+    width: 96%;
+    .text {
+      display: inline-block;
+      width: 9.375rem;
+      text-align: right;
+    }
+    .truckBtn {
+      width: 17.5rem;
+    }
+  }
+}
+.button_box {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  width: 100%;
+  height: 6.25rem;
+}
+</style>

+ 83 - 0
src/views/TMS/importedFuel/transportReserveRanEdit.vue

@@ -0,0 +1,83 @@
+<template>
+  <!-- 修改运输预约页面 -->
+  <div id="contractDetails">
+    <page-title>运输预约</page-title>
+    <div class="main">
+      <span class="text">修改运输预约</span>
+      <span class="a"></span>
+    </div>
+    <div class="contractTitle">
+      <div class="form-box">
+        <div class="form-one">
+          <dil-form :formId="220" v-model="form1"></dil-form>
+        </div>
+      </div>
+    </div>  
+ 
+    <div class="button-box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+    </div>
+  </div>
+</template>
+
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime } from "@/js/sharedJsFile";
+export default {
+  components: { PageTitle },
+    data(){
+          return {
+          form1: {},
+        }
+    },
+  mounted() {
+    this.information();
+  },
+  methods: {
+    information() {
+      this.$axios
+        .post("/api/v1/oms/selectOrderByOrderId/" + this.$route.params.orderId)
+        .then((res) => {
+          res.data.data.forEach((e) => {
+            this.form1 = e;
+          });
+        });
+    },
+     // 返回
+    onClickCancel() {
+      this.$router.go(-1);
+    },
+     // 确认
+    onClickConfirm() {
+      let obj = {
+        orderId: this.$route.params.orderId,
+        materialId: this.form1.materialId,
+        orderEntryTime: sjTime(this.form1.orderEntryTime),
+        unloadPointId: this.form1.unloadPointId,
+        orderType: this.form1.orderType
+      };
+
+      if (
+        obj.orderId==null||
+        obj.materialId==null||
+        obj.unloadPointId==null||
+        obj.orderEntryTime==null
+      ) this.$message.error("存在空值!");
+      else
+      this.$axios
+        .post("/api/v1/oms/updateOrder", obj)
+        .then(() => {
+          this.$message({
+            type: "success",  
+            message: "修改成功!",
+          });
+          this.$router.go(-1);
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+@import "@/styles/appoint/contract/ContractInsert.scss";
+</style>

+ 60 - 0
src/views/TMS/importedFuel/truckDriverReceiveRan.vue

@@ -0,0 +1,60 @@
+<template>
+  <!-- 燃料运输派单 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+    </div>
+    <el-tabs v-model="activeName">
+      <!-- 未下发 -->
+      <el-tab-pane label="已接收" name="first">
+        <dilTable v-bind.sync="option1" ref="table">
+        </dilTable>
+      </el-tab-pane>
+      <!-- 已下发 -->
+      <el-tab-pane label="已拒绝" name="second">
+        <dilTable v-bind.sync="option2">
+        </dilTable>
+      </el-tab-pane>
+    </el-tabs>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "inplantTMS",
+  data() {
+    return {
+      input: "",
+      Time: "",
+      activeName: "first",
+      option1: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/oms/getTransportDispatch?apiId=148&fuelOrder=1&orderStatus=5"
+      },
+      option2: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=1&orderStatus=6"
+      }
+    };
+  },
+  methods: {
+    onclick() {
+      if(this.activeName == "first"){
+        this.option1.requestUrl = "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=1&orderStatus=5&con=" + this.input;
+      }else{
+        this.option2.requestUrl = "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=1&orderStatus=6&con=" + this.input;
+      }
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+   .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 78 - 0
src/views/TMS/importedFuel/truckEnfactoryRanLaoResult.vue

@@ -0,0 +1,78 @@
+<template>
+  <!-- 辅料进厂作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "homeworkPath",
+  data() {
+    return {
+      restaurants: [],
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=6",
+      },
+    };
+  },
+
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=6&con=" + this.input;
+    },
+    updateClick(resultId) {
+      this.$router.push("/tmsTruck/truckLoadResultEdit/" + resultId);
+    },
+    //新增
+    insertClick() {
+      this.$router.push("/tmsTruck/truckLoadResultAdd/");
+    },
+    deleteClick(resultId) {
+      
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          this.$axios
+            .post(
+              "/api/v1/tms/deleteLoadResult/" + resultId
+            )
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 78 - 0
src/views/TMS/importedFuel/truckEnfactoryRanXingResult.vue

@@ -0,0 +1,78 @@
+<template>
+  <!-- 辅料进厂作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "homeworkPath",
+  data() {
+    return {
+      restaurants: [],
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=7",
+      },
+    };
+  },
+ 
+  methods: {
+    onclick() {
+            this.option.requestUrl = "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=7&con=" + this.input;
+    },
+    updateClick(resultId) {
+      this.$router.push("/tmsTruck/truckLoadResultEdit/" + resultId);
+    },
+    //新增
+    insertClick() {
+      this.$router.push("/tmsTruck/truckLoadResultAdd/");
+    },
+    deleteClick(resultId) {
+      
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+          this.$axios
+            .post(
+              "/api/v1/tms/deleteLoadResult/" + resultId
+            )
+            .then(() => {
+              this.$router.go(0);
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消删除!",
+          });
+        });
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 43 - 0
src/views/TMS/importedFuel/truckJiMaoRanLaoResult.vue

@@ -0,0 +1,43 @@
+<template>
+  <!-- 辅料计毛实绩页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "homeworkPath",
+  data() {
+    return {
+      restaurants: [],
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllJiMaoResult?apiId=102&orderType=6",
+      },
+    };
+  },
+
+  methods: {
+    onclick() {
+     this.option.requestUrl = "/api/v1/tms/getAllJiMaoResult?apiId=102&orderType=6&con=" + this.input;
+    },
+   }
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 43 - 0
src/views/TMS/importedFuel/truckJiMaoRanXingResult.vue

@@ -0,0 +1,43 @@
+<template>
+  <!-- 辅料计毛实绩页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "homeworkPath",
+  data() {
+    return {
+      restaurants: [],
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllJiMaoResult?apiId=102&orderType=7",
+      },
+    };
+  },
+
+  methods: {
+    onclick() {
+     this.option.requestUrl = "/api/v1/tms/getAllJiMaoResult?apiId=102&orderType=7&con=" + this.input;
+    },
+   }
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

+ 44 - 0
src/views/TMS/importedFuel/truckJiPiRanLaoResult.vue

@@ -0,0 +1,44 @@
+<template>
+  <!-- 辅料计皮实绩页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+      
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "homeworkPath",
+  data() {
+    return {
+      restaurants: [],
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllJiPiResult?apiId=146&orderType=6",
+      },
+    };
+  },
+
+  methods: {
+
+    onclick() {
+     this.option.requestUrl = "/api/v1/tms/getAllJiPiResult?apiId=146&orderType=6&con=" + this.input;
+    },
+   }
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+  }
+}
+</style>

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff