luobang 3 tahun lalu
induk
melakukan
dd6578b261

+ 2 - 2
build/utils.js

@@ -18,8 +18,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 
 
 
 
 
 
-//  let devModules = ['all']
-let devModules = ['index','inward','SporadicManage','RMS']
+ let devModules = ['all']
+// let devModules = ['index','inward','SporadicManage']
 // let devModules = ['index','inward']
 // let devModules = ['index','inward']
 // let devModules = ['index','SporadicManage','RMS','statisticalReport']
 // let devModules = ['index','SporadicManage','RMS','statisticalReport']
 // let devModules = ['index','inward','statisticalReport']
 // let devModules = ['index','inward','statisticalReport']

+ 6 - 3
config/index.js

@@ -65,8 +65,11 @@ let proxyTable = {
   // 所有数据的请求域名地址
   // 所有数据的请求域名地址
   "/api/v1": {
   "/api/v1": {
     target: "http://172.16.33.166:8080",
     target: "http://172.16.33.166:8080",
-    // target: "http://192.168.1.112:8019",
     // target: "http://localhost:8080",
     // target: "http://localhost:8080",
+    // target: "http://localhost:8019",
+    // target: "http://192.168.1.107:8019",
+    // target: "http://192.168.1.112:8019",
+    // target: "http://localhost:8019",
     // target: "http://192.168.1.107:8080",
     // target: "http://192.168.1.107:8080",
     ws: true,
     ws: true,
     pathRewrite: {
     pathRewrite: {
@@ -74,8 +77,8 @@ let proxyTable = {
     }
     }
   },
   },
   "/views/api/v1": {
   "/views/api/v1": {
-    target: "http://172.16.33.166:8080",
-    // target: "http://172.16.33.166:8080",
+    // target: "http://localhost:8080",
+     target: "http://172.16.33.166:8080",
     // target: "http://192.168.1.115:8080",
     // target: "http://192.168.1.115:8080",
     ws: true,
     ws: true,
     pathRewrite: {
     pathRewrite: {

TEMPAT SAMPAH
dist.rar


+ 10 - 7
src/views/RMS/components/addCarrier.vue

@@ -35,7 +35,7 @@
     <el-upload
     <el-upload
       class="upload-demo"
       class="upload-demo"
       ref="upload1"
       ref="upload1"
-      action="http://localhost:8014/api/v1/rms/rmscarrier/uploadCarrier1"
+      action="https://wl.dasteel.cn:32322/api/v1/rms/uploadCarrier1"
       :before-upload="beforeUpload"
       :before-upload="beforeUpload"
       :multiple="false"
       :multiple="false"
       list-type="picture"
       list-type="picture"
@@ -58,7 +58,7 @@
     <el-upload
     <el-upload
       class="upload-demo"
       class="upload-demo"
       ref="upload2"
       ref="upload2"
-      action="http://localhost:8014/api/v1/rms/rmscarrier/uploadCarrier1"
+      action="https://wl.dasteel.cn:32322/api/v1/rms/uploadCarrier1"
       :before-upload="beforeUpload"
       :before-upload="beforeUpload"
       :multiple="false"
       :multiple="false"
       list-type="picture"
       list-type="picture"
@@ -81,7 +81,7 @@
     <el-upload
     <el-upload
       class="upload-demo"
       class="upload-demo"
       ref="upload3"
       ref="upload3"
-      action="http://localhost:8014/api/v1/rms/rmscarrier/uploadCarrier1"
+      action="https://wl.dasteel.cn:32322/api/v1/rms/uploadCarrier1"
       :before-upload="beforeUpload"
       :before-upload="beforeUpload"
       :multiple="false"
       :multiple="false"
       list-type="picture"
       list-type="picture"
@@ -196,15 +196,15 @@ export default {
         if (this.num == 1) {
         if (this.num == 1) {
           this.shippingCertificate = null;
           this.shippingCertificate = null;
           this.imageUrl1 = null;
           this.imageUrl1 = null;
-          this.$message.error("上传失败");
+          // this.$message.error("上传失败");
         } else if (this.num == 2) {
         } else if (this.num == 2) {
           this.businessLicense = null;
           this.businessLicense = null;
           this.imageUrl2 = null;
           this.imageUrl2 = null;
-          this.$message.error("上传失败");
+          // this.$message.error("上传失败");
         } else if (this.num == 3) {
         } else if (this.num == 3) {
           this.businessLicense1 = null;
           this.businessLicense1 = null;
           this.imageUrl3 = null;
           this.imageUrl3 = null;
-          this.$message.error("上传失败");
+          // this.$message.error("上传失败");
         }
         }
       }
       }
     },
     },
@@ -358,6 +358,9 @@ export default {
       justify-content: center;
       justify-content: center;
       align-items: center;
       align-items: center;
       margin-right: 10px;
       margin-right: 10px;
+      width: 40px;
+      position: relative;
+      left: 40px;
     }
     }
     .input {
     .input {
       width: 250px;
       width: 250px;
@@ -410,7 +413,7 @@ export default {
   }
   }
   .site{
   .site{
     position: relative;
     position: relative;
-    left: 32px;
+    left: -50px;
   }
   }
   span.text {
   span.text {
     position: relative;
     position: relative;

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

@@ -1,7 +1,7 @@
 <template>
 <template>
   <!-- 修改承运商信息 -->
   <!-- 修改承运商信息 -->
   <div id="contractDetails">
   <div id="contractDetails">
-    <page-title>编辑</page-title>
+    <page-title>查看详情</page-title>
     <div class="main">
     <div class="main">
     </div>
     </div>
     <div class="contractimage">
     <div class="contractimage">

+ 11 - 6
src/views/appoint/components/saleContract/addSaleOrderCoproductSend.vue

@@ -565,7 +565,7 @@ export default {
               } 
               } 
             });
             });
         })
         })
-        .catch(() => {this.$message({ type: "info", message: "已取消删除",});});
+        .catch(() => {this.$message({ type: "info", message: "已取消",});});
     },
     },
     //失焦事件后确定车牌号与承运商是否有绑定关系
     //失焦事件后确定车牌号与承运商是否有绑定关系
     checkRelationship(index){
     checkRelationship(index){
@@ -682,11 +682,16 @@ export default {
     makeSure(){
     makeSure(){
       //获取当前派车的数量和预估吨位的总和
       //获取当前派车的数量和预估吨位的总和
       var sendCount = this.selectionList.length*this.uniteOrderPlanWeight;
       var sendCount = this.selectionList.length*this.uniteOrderPlanWeight;
-      //判断是否达到95%
-      var canDo = ((this.totalWeight+sendCount)/this.number).toFixed(2);
-      if(canDo>0.95){
-        var canSend = Math.floor(((this.number*0.95)-this.totalWeight)/this.uniteOrderPlanWeight);
+      //判断是否达到总重量减80吨的重量
+      var canDo = ((this.number-80)-(this.totalWeight+sendCount));
+      if(canDo<0&&this.number>=100){
+        var canSend = Math.floor(((this.number-80)-this.totalWeight)/this.uniteOrderPlanWeight);
+        if(canSend<0){
+          canSend = 0;
+        }
         this.$message.error('当前已派发吨数接近订单总吨数,最多还可派 ('+canSend+') 辆车!')
         this.$message.error('当前已派发吨数接近订单总吨数,最多还可派 ('+canSend+') 辆车!')
+      }else if(this.number<100&&this.totalWeight>20){
+        this.$message.error('当前可派发车数已用完!')
       }else{
       }else{
         let state = false;
         let state = false;
         var beReady = 0;
         var beReady = 0;
@@ -750,7 +755,7 @@ export default {
             this.cancel();
             this.cancel();
           }else{
           }else{
             //若该销售订单的净重已达到97%!
             //若该销售订单的净重已达到97%!
-            this.$confirm("该销售订单的净重已达到97%! 是否仍然派车", "提示", {
+            this.$confirm("当前已派发吨数接近订单总吨数! 是否仍然派车", "提示", {
               confirmButtonText: "确定",
               confirmButtonText: "确定",
               cancelButtonText: "取消",
               cancelButtonText: "取消",
               type: "warning",
               type: "warning",

+ 12 - 6
src/views/appoint/components/saleContract/addSaleOrderCoproductSendCarrier.vue

@@ -681,11 +681,16 @@ export default {
     makeSure(){
     makeSure(){
       //获取当前派车的数量和预估吨位的总和
       //获取当前派车的数量和预估吨位的总和
       var sendCount = this.selectionList.length*this.uniteOrderPlanWeight;
       var sendCount = this.selectionList.length*this.uniteOrderPlanWeight;
-      //判断是否达到95%
-      var canDo = ((this.totalWeight+sendCount)/this.number).toFixed(2);
-      if(canDo>0.95){
-        var canSend = Math.floor(((this.number*0.95)-this.totalWeight)/this.uniteOrderPlanWeight);
+      //判断是否达到总重量减80吨的重量
+      var canDo = ((this.number-80)-(this.totalWeight+sendCount));
+      if(canDo<0&&this.number>=100){
+        var canSend = Math.floor(((this.number-80)-this.totalWeight)/this.uniteOrderPlanWeight);
+        if(canSend<0){
+          canSend = 0;
+        }
         this.$message.error('当前已派发吨数接近订单总吨数,最多还可派 ('+canSend+') 辆车!')
         this.$message.error('当前已派发吨数接近订单总吨数,最多还可派 ('+canSend+') 辆车!')
+      }else if(this.number<100&&this.totalWeight>20){
+        this.$message.error('当前可派发车数已用完!')
       }else{
       }else{
         let state = false;
         let state = false;
         var beReady = 0;
         var beReady = 0;
@@ -740,6 +745,7 @@ export default {
     },
     },
     //发送请求
     //发送请求
     sendRequest(beReady){
     sendRequest(beReady){
+      console.log("send");
       if(beReady==this.selectionList.length){
       if(beReady==this.selectionList.length){
           this.axios.post('/api/v1/ams/dispatchTruckOrderBySale',{
           this.axios.post('/api/v1/ams/dispatchTruckOrderBySale',{
           saleOrderId:this.$route.params.saleOrderId,
           saleOrderId:this.$route.params.saleOrderId,
@@ -750,7 +756,7 @@ export default {
             this.cancel();
             this.cancel();
           }else{
           }else{
             //若该销售订单的净重已达到97%!
             //若该销售订单的净重已达到97%!
-            this.$confirm("该销售订单的净重已达到97%! 是否仍然派车", "提示", {
+            this.$confirm("当前已派发吨数接近订单总吨数! 是否仍然派车", "提示", {
               confirmButtonText: "确定",
               confirmButtonText: "确定",
               cancelButtonText: "取消",
               cancelButtonText: "取消",
               type: "warning",
               type: "warning",
@@ -931,7 +937,7 @@ export default {
             if(res.data.data==null){
             if(res.data.data==null){
               this.receiveCarrierId = null;
               this.receiveCarrierId = null;
               this.receiveCarrierName = null;
               this.receiveCarrierName = null;
-              this.$message.warning('该收货单位尚未注册为承运商!')
+              this.$message.warning('该账号未注册为承运商!')
             }else{
             }else{
               this.receiveCarrierId = res.data.data.carrierId;
               this.receiveCarrierId = res.data.data.carrierId;
               this.receiveCarrierName = res.data.data.carrierName;
               this.receiveCarrierName = res.data.data.carrierName;

+ 3 - 3
src/views/statisticalReport/components/inwardReport/inwardFactory.vue

@@ -46,7 +46,7 @@ export default {
     };
     };
   }, 
   }, 
   created(){
   created(){
-          this.option.requestUrl = '/api/v1/tms/getInwardReport?apiId=452&startTime=null&endTime=null&i=' +new Date()
+          this.option.requestUrl = '/api/v1/tms/getInwardReport?apiId=459&startTime=null&endTime=null&i=' +new Date()
   },
   },
   methods: {
   methods: {
     func(res){
     func(res){
@@ -61,7 +61,7 @@ export default {
         this.totalCapacity = currentCapacityTotal;
         this.totalCapacity = currentCapacityTotal;
     },
     },
     getRequestUrl(){
     getRequestUrl(){
-        this.option.requestUrl = '/api/v1/tms/getInwardReport?apiId=452&startTime=null&endTime=null&i=' +new Date();
+        this.option.requestUrl = '/api/v1/tms/getInwardReport?apiId=459&startTime=null&endTime=null&i=' +new Date();
      
      
     },
     },
     onclick() {
     onclick() {
@@ -75,7 +75,7 @@ export default {
       }
       }
       if(startTime && endTime){
       if(startTime && endTime){
         if(startTime < endTime){
         if(startTime < endTime){
-          this.option.requestUrl = '/api/v1/tms/getInwardReport?apiId=441' + "&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date(); 
+          this.option.requestUrl = '/api/v1/tms/getInwardReport?apiId=459' + "&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date(); 
         }else{
         }else{
           this.startTime = null;
           this.startTime = null;
           this.endTime = null;
           this.endTime = null;