Selaa lähdekoodia

Merge branch 'master' of http://git.zthymaoyi.com/gongdecai/wangluohuoyun-htqd

gjy 3 vuotta sitten
vanhempi
commit
9fb0040220

+ 1 - 1
README.md

@@ -34,7 +34,7 @@ npm install
 npm run dev
 ```
 
-This will automatically open http://localhost:9528
+This will automatically open http://0.0.0.0:9528
 
 ## Build
 

+ 16 - 0
src/api/orderManagement.js

@@ -57,4 +57,20 @@ export function travelpath(data) {
     method: 'get',
     params: data,
   })
+}
+//预付
+export function preMoney(data) {
+  return request({
+    url: '/freightInfo/api/advance',
+    method: 'post',
+    data: data,
+  })
+}
+//尾款
+export function tailMoney(data) {
+  return request({
+    url: '/freightInfo/api/balance',
+    method: 'post',
+    data: data,
+  })
 }

+ 172 - 166
src/components/mapdrag/indexMap.vue

@@ -4,202 +4,208 @@
   </div>
 </template>
 <script>
-  import {
-    travelpath
-  } from '@/api/orderManagement'
-  import AMapLoader from "@amap/amap-jsapi-loader";
-  export default {
-    name: "app",
-    data() {
-      return {
-        map: null,
-        path:[],
-        path1: [
-          [116.405289, 39.904987],
-          [113.964458, 40.54664],
-          [111.47836, 41.135964],
-          [108.949297, 41.670904],
-          [106.380111, 42.149509],
-          [103.774185, 42.56996],
-          [101.135432, 42.930601],
-          [98.46826, 43.229964],
-          [95.777529, 43.466798],
-          [93.068486, 43.64009],
-          [90.34669, 43.749086],
-          [87.61792, 43.793308]
-        ],
-        path2: [
-          [117.405289, 40.904987],
-          [114.964458, 41.54664],
-          [112.47836, 42.135964],
-          [109.949297, 43.670904],
-          [107.380111, 44.149509],
-          [104.774185, 43.56996],
-          [102.135432, 43.930601],
-          [99.46826, 44.229964],
-          [96.777529, 44.466798],
-          [94.068486, 44.64009],
-          [91.34669, 44.749086],
-          [88.61792, 44.793308]
-        ],
-      };
-    },
-    props: ['radio','orderid'],
-    watch: {
-      radio: function(val1, val2) {
-        if(val1==1) {
-          var that=this
-          travelpath({orderId:that.orderid}).then(response => {
-            that.path1=[]
-            var patharr=JSON.parse(response.data.longitudeLatitude)
+import { travelpath } from "@/api/orderManagement";
+import AMapLoader from "@amap/amap-jsapi-loader";
+export default {
+  name: "app",
+  data() {
+    return {
+      map: null,
+      path: [],
+      path1: [
+        [116.405289, 39.904987],
+        [113.964458, 40.54664],
+        [111.47836, 41.135964],
+        [108.949297, 41.670904],
+        [106.380111, 42.149509],
+        [103.774185, 42.56996],
+        [101.135432, 42.930601],
+        [98.46826, 43.229964],
+        [95.777529, 43.466798],
+        [93.068486, 43.64009],
+        [90.34669, 43.749086],
+        [87.61792, 43.793308],
+      ],
+      path2: [
+        [117.405289, 40.904987],
+        [114.964458, 41.54664],
+        [112.47836, 42.135964],
+        [109.949297, 43.670904],
+        [107.380111, 44.149509],
+        [104.774185, 43.56996],
+        [102.135432, 43.930601],
+        [99.46826, 44.229964],
+        [96.777529, 44.466798],
+        [94.068486, 44.64009],
+        [91.34669, 44.749086],
+        [88.61792, 44.793308],
+      ],
+    };
+  },
+  props: ["radio", "orderid"],
+  watch: {
+    radio: function (val1, val2) {
+      debugger;
+      if (val1 == 1) {
+        var that = this;
+        travelpath({ orderId: that.orderid })
+          .then((response) => {
+            that.path1 = [];
+            var patharr = JSON.parse(response.data.longitudeLatitude);
             // console.log(JSON.parse(response.data.longitudeLatitude),11111111)
             for (let i = 0; i < patharr.length; i++) {
-              that.path1.push([patharr[i].longitude,patharr[i].latitude])
+              that.path1.push([patharr[i].longitude, patharr[i].latitude]);
             }
-            that.path = that.path1
+            that.path = that.path1;
             that.loadmap();
           })
           .catch(() => {
             // console.log(121212)
-          })
-          // this.path = this.path1
-        }else{
-          var that=this
-          travelpath({orderId:that.orderid}).then(response => {
-            that.path2=[]
-            var patharr=JSON.parse(response.data.longitudeLatitude)
+          });
+        // this.path = this.path1
+      } else {
+        var that = this;
+        travelpath({ orderId: that.orderid })
+          .then((response) => {
+            that.path2 = [];
+            var patharr = JSON.parse(response.data.longitudeLatitude);
             // console.log(JSON.parse(response.data.longitudeLatitude),11111111)
             for (let i = 0; i < patharr.length; i++) {
-              that.path2.push([patharr[i].longitude,patharr[i].latitude])
+              that.path2.push([patharr[i].longitude, patharr[i].latitude]);
             }
-            that.path = that.path2
+            that.path = that.path2;
             that.loadmap();
           })
           .catch(() => {
             // console.log(121212)
-          })
-          // travelpath({orderId:this.orderid}).then(response => {
-          //   console.log(response)
-          // })
-          // .catch(() => {
-          // })
-          // this.path = this.path2
-        }
-        // this.loadmap();
+          });
+        // travelpath({orderId:this.orderid}).then(response => {
+        //   console.log(response)
+        // })
+        // .catch(() => {
+        // })
+        // this.path = this.path2
       }
+      // this.loadmap();
     },
-    methods: {
-      loadmap() {
-        return new Promise((reslove, reject) => {
-          AMapLoader.load({
-              key: "211dd6f989e719022aaf47ddb0659c47", // 申请好的Web端开发者Key,首次调用 load 时必填
-              // version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
-              plugins: ["AMap.ToolBar", "AMap.Scale", "AMap.Geocoder"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
-              AMapUI: {
-                // 是否加载 AMapUI,缺省不加载
-                version: "1.1", // AMapUI 缺省 1.1
-                plugins: [] // 需要加载的 AMapUI ui插件
-              }
-            }).then(AMap => {
-              this.map = new AMap.Map("allmap", {
-                resizeEnable: true,
-                zoom: 10,
-                // center: [116.397428, 39.90923] //中心点坐标
-              });
-
-              //地图控件
-              this.map.addControl(new AMap.Scale());
-              this.map.addControl(new AMap.ToolBar());
-              this.map.setZoom(14); //设置缩放大小
-              this.trajectory();
-              reslove();
-            })
-            .catch(e => {
-              console.log(e, "高德地图加载失败");
-              reject(e);
+  },
+  methods: {
+    loadmap() {
+      return new Promise((reslove, reject) => {
+        AMapLoader.load({
+          key: "211dd6f989e719022aaf47ddb0659c47", // 申请好的Web端开发者Key,首次调用 load 时必填
+          // version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
+          plugins: ["AMap.ToolBar", "AMap.Scale", "AMap.Geocoder"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
+          AMapUI: {
+            // 是否加载 AMapUI,缺省不加载
+            version: "1.1", // AMapUI 缺省 1.1
+            plugins: [], // 需要加载的 AMapUI ui插件
+          },
+        })
+          .then((AMap) => {
+            this.map = new AMap.Map("allmap", {
+              resizeEnable: true,
+              zoom: 10,
+              // center: [116.397428, 39.90923] //中心点坐标
             });
-        });
-      },
-      // 轨迹
-      trajectory() {
-        AMapUI.load(["ui/misc/PathSimplifier", "lib/$"], (PathSimplifier, $) => {
-          if (!PathSimplifier.supportCanvas) {
-            alert("当前环境不支持 Canvas!");
-            return;
-          }
 
-          let pathSimplifierIns = new PathSimplifier({
-            zIndex: 100,
-            //autoSetFitView:false,
-            map: this.map, //所属的地图实例
+            //地图控件
+            this.map.addControl(new AMap.Scale());
+            this.map.addControl(new AMap.ToolBar());
+            this.map.setZoom(14); //设置缩放大小
+            this.trajectory();
+            reslove();
+          })
+          .catch((e) => {
+            console.log(e, "高德地图加载失败");
+            reject(e);
+          });
+      });
+    },
+    // 轨迹
+    trajectory() {
+      AMapUI.load(["ui/misc/PathSimplifier", "lib/$"], (PathSimplifier, $) => {
+        if (!PathSimplifier.supportCanvas) {
+          alert("当前环境不支持 Canvas!");
+          return;
+        }
 
-            getPath: function(pathData, pathIndex) {
-              return pathData.path;
-            },
-            getHoverTitle: function(pathData, pathIndex, pointIndex) {
-              if (pointIndex >= 0) {
-                //point
-                return (
-                  pathData.name +
-                  ",点:" +
-                  pointIndex +
-                  "/" +
-                  pathData.path.length
-                );
-              }
+        let pathSimplifierIns = new PathSimplifier({
+          zIndex: 100,
+          //autoSetFitView:false,
+          map: this.map, //所属的地图实例
 
-              return pathData.name + ",点数量" + pathData.path.length;
-            },
-            renderOptions: {
-              renderAllPointsIfNumberBelow: 100 //绘制路线节点,如不需要可设置为-1
+          getPath: function (pathData, pathIndex) {
+            return pathData.path;
+          },
+          getHoverTitle: function (pathData, pathIndex, pointIndex) {
+            if (pointIndex >= 0) {
+              //point
+              return (
+                pathData.name +
+                ",点:" +
+                pointIndex +
+                "/" +
+                pathData.path.length
+              );
             }
-          });
 
-          window.pathSimplifierIns = pathSimplifierIns;
+            return pathData.name + ",点数量" + pathData.path.length;
+          },
+          renderOptions: {
+            renderAllPointsIfNumberBelow: 100, //绘制路线节点,如不需要可设置为-1
+          },
+        });
 
-          //设置数据
-          pathSimplifierIns.setData([{
-            name: "路线0",
-            path: this.path
-          }]);
+        window.pathSimplifierIns = pathSimplifierIns;
 
-          //对第一条线路(即索引 0)创建一个巡航器
-          let trajectory = pathSimplifierIns.createPathNavigator(0, {
-            loop: true, //循环播放
-            speed: 100 //巡航速度,单位千米/小时
-          });
+        //设置数据
+        pathSimplifierIns.setData([
+          {
+            name: "路线0",
+            path: this.path,
+          },
+        ]);
 
-          trajectory.start();
+        //对第一条线路(即索引 0)创建一个巡航器
+        let trajectory = pathSimplifierIns.createPathNavigator(0, {
+          loop: true, //循环播放
+          speed: 100, //巡航速度,单位千米/小时
         });
-      }
+
+        trajectory.start();
+      });
     },
-    mounted() {
-      var that=this
-      // console.log(this.orderid)
-      this.$nextTick(function(){
-        travelpath({orderId:that.orderid}).then(response => {
-            that.path1=[]
-            var patharr=JSON.parse(response.data.longitudeLatitude)
+  },
+  mounted() {
+    var that = this;
+    // console.log(this.orderid)
+    this.$nextTick(function () {
+      travelpath({ orderId: that.orderid })
+        .then((response) => {
+          that.path1 = [];
+          if (response.data) {
+            var patharr = JSON.parse(response.data.longitudeLatitude);
             // console.log(JSON.parse(response.data.longitudeLatitude),11111111)
             for (let i = 0; i < patharr.length; i++) {
-              that.path1.push([patharr[i].longitude,patharr[i].latitude])
+              that.path1.push([patharr[i].longitude, patharr[i].latitude]);
             }
-            
-            that.path = that.path1
-            that.loadmap();
-          })
-          .catch(() => {
-            // console.log(121212)
-          })
-      })
-      
-       
-    }
-  };
+
+            that.path = that.path1;
+          }
+
+          that.loadmap();
+        })
+        .catch(() => {
+          // console.log(121212)
+        });
+    });
+  },
+};
 </script>
 <style scoped>
-  #allmap {
-    width: 100%;
-    height:calc(100vh  - 150px);
-  }
+#allmap {
+  width: 100%;
+  height: calc(100vh - 150px);
+}
 </style>

+ 1 - 1
src/views/cargoOwnerManagement/empowerExamine.vue

@@ -9,7 +9,7 @@
           </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input placeholder="可按货主姓名、账号查找" v-model="searchkeyWord" clearable></el-input>
+              <el-input placeholder="可按货主姓名、账号查找" v-model="searchkeyWord" clearable @change="find"></el-input>
               <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
                   src="../../../public/img/sousuo.png" /></el-button>
             </div>

+ 3 - 3
src/views/cargoOwnerManagement/merchantVerification.vue

@@ -9,7 +9,7 @@
 					</el-col>
 					<el-col :span="10">
 						<div class="screen">
-							<el-input placeholder="可按货主姓名、账号和企业名称查找" v-model="searchkeyWord" clearable></el-input>
+							<el-input placeholder="可按货主姓名、账号和企业名称查找" v-model="searchkeyWord" clearable @change="find"></el-input>
 							<el-button class="search" @click="find"><img width="16" height="16"
 									style="margin-left: -8px" src="../../../public/img/sousuo.png" /></el-button><span
 								class="count_css">共{{ deptBudgetTotal }}条</span>
@@ -51,9 +51,9 @@
 				<el-table-column prop="status" label="状态"></el-table-column>
 				<el-table-column label="操作" min-width="350">
 					<template slot-scope="scope">
-						<el-link  target="_blank" @click="adopt(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '审核中'">通过</el-link>
+						<el-link  target="_blank" @click="adopt(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '平台审核中'">通过</el-link>
 						<el-divider direction="vertical"></el-divider>
-						<el-link target="_blank" @click="reject(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '审核中'">驳回</el-link>
+						<el-link target="_blank" @click="reject(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '平台审核中'">驳回</el-link>
 					</template>
 				</el-table-column>
 			</el-table>

+ 1 - 1
src/views/cargoOwnerManagement/taskAudit.vue

@@ -9,7 +9,7 @@
 					</el-col>
 					<el-col :span="10">
 						<div class="screen">
-							<el-input placeholder="可按货主姓名、账号查找" v-model="searchkeyWord" clearable></el-input>
+							<el-input placeholder="可按货主姓名、账号查找" v-model="searchkeyWord" clearable @change="find"></el-input>
 							<el-button class="search" @click="find"><img width="16" height="16"
 									style="margin-left: -8px" src="../../../public/img/sousuo.png" /></el-button><span
 								class="count_css">共{{ deptBudgetTotal }}条</span>

+ 1 - 1
src/views/driverManagement/fleetInfo.vue

@@ -7,7 +7,7 @@
           <el-col :span="14" style="height: 45px"> </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input placeholder="可按队长姓名、账号、车队名称查找" v-model="searchkeyWord" clearable></el-input>
+              <el-input placeholder="可按队长姓名、账号、车队名称查找" v-model="searchkeyWord" clearable @change="find"></el-input>
               <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
                   src="../../../public/img/sousuo.png" /></el-button><span
                 class="count_css">共{{ deptBudgetTotal }}条</span>

+ 1 - 1
src/views/driverManagement/identityExamine.vue

@@ -9,7 +9,7 @@
           </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input placeholder="可按司机姓名、账号、身份证号查找" v-model="searchkeyWord" clearable></el-input>
+              <el-input placeholder="可按司机姓名、账号、身份证号查找" v-model="searchkeyWord" clearable @change="find"></el-input>
               <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
                   src="../../../public/img/sousuo.png" /></el-button><span
                 class="count_css">共{{ deptBudgetTotal }}条</span>

+ 1 - 1
src/views/driverManagement/vehicleExamine.vue

@@ -9,7 +9,7 @@
           </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input placeholder="可按司机姓名、账号、车牌号查找" v-model="searchkeyWord" clearable></el-input>
+              <el-input placeholder="可按司机姓名、账号、车牌号查找" v-model="searchkeyWord" clearable @change="find"></el-input>
               <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
                   src="../../../public/img/sousuo.png" /></el-button><span
                 class="count_css">共{{ deptBudgetTotal }}条</span>

+ 11 - 1
src/views/enterpriseManagement/enterpriseAudit.vue

@@ -9,7 +9,7 @@
           </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input placeholder="可按法人姓名、账号、企业名称查找" v-model="searchkeyWord" clearable></el-input>
+              <el-input placeholder="可按法人姓名、账号、企业名称查找" v-model="searchkeyWord" clearable @change="find"></el-input>
               <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
                   src="../../../public/img/sousuo.png" /></el-button><span
                 class="count_css">共{{ deptBudgetTotal }}条</span>
@@ -138,6 +138,16 @@
         <div class="right_item">{{infoData.businessTermDate}}</div>
         <div class="right_title">统一社会信用代码</div>
         <div class="right_item">{{infoData.unifiedSocialCreditCode}}</div>
+        <div class="right_title">身份证正反面</div>
+        <div class="right_item" >
+          <img :src="infoData.cardAddressUrl" class="right_img" @click="enlarge(infoData.cardAddressUrl)">
+          <img :src="infoData.cardBackAddressUrl" class="right_img" @click="enlarge(infoData.cardBackAddressUrl)">
+        </div>
+          <div class="right_title">身份证号</div>
+        <div class="right_item">{{infoData.cardNumber}}</div>
+          <div class="right_title">身份证有效期</div>
+        <div class="right_item">{{infoData.cardValidityDate}}</div>
+
         <div class="right_title">{{infoData.landOwnership == 0 ? "房产证":"租赁合同"}}</div>
         <div class="right_item"  v-for="(item , index) in infoData.imgs" :key="index">
           <img :src="item" class="right_img" @click="enlarge(item)">

+ 1 - 1
src/views/feedbackManagement/userFeedback.vue

@@ -9,7 +9,7 @@
           </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input placeholder="可按工单编号、姓名、账号和反馈信息查找" v-model="searchkeyWord" clearable></el-input>
+              <el-input placeholder="可按工单编号、姓名、账号和反馈信息查找" v-model="searchkeyWord" clearable @change="find"></el-input>
               <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
                   src="../../../public/img/sousuo.png" /></el-button><span
                 class="count_css">共{{ deptBudgetTotal }}条</span>

+ 69 - 21
src/views/orderManagement/orderAudit.vue

@@ -12,7 +12,7 @@
           </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input placeholder="可按订单编号、姓名、账号查找" v-model="searchkeyWord" clearable></el-input>
+              <el-input placeholder="可按订单编号、姓名、账号查找" v-model="searchkeyWord" clearable @change="find"></el-input>
               <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
                   src="../../../public/img/sousuo.png" /></el-button><span
                 class="count_css">共{{ deptBudgetTotal }}条</span>
@@ -75,32 +75,23 @@
         <el-table-column prop="amountMoney" label="司机费用结算">
           <el-table-column prop="driverServiceCharge" label="服务费(元)"></el-table-column>
           <el-table-column prop="payable" label="应付(元)"></el-table-column>
-          <el-table-column prop="payabled" label="已付(元)">
-            <template slot-scope="scope">
-              <span>{{scope.row.freightAdvance == 0 ? "" : scope.row.alreadyRepaid}}</span>
-            </template>
-          </el-table-column>
+          <el-table-column prop="payabled" label="已付(元)"></el-table-column>
           <el-table-column prop="nopayable" label="未付(元)"></el-table-column>
         </el-table-column>
         <el-table-column prop="amountMoney" label="货主费用结算">
           <el-table-column prop="ownerServiceCharge" label="服务费(元)"></el-table-column>
           <el-table-column prop="overdueFee" label="超期费(元)">
             <template slot-scope="scope">
-              <span class="btn_css" @click="costLook(scope.row)">{{scope.row.freightAdvance == 0 ? "" : 0}}</span>
+              <span class="btn_css" @click="costLook(scope.row)">{{scope.row.overdueFee }}</span>
             </template>
           </el-table-column>
           <el-table-column prop="receivable" label="应收(元)"></el-table-column>
-          <el-table-column prop="receivabled" label="已收(元)">
-            <template slot-scope="scope">
-              <span>{{scope.row.freightAdvance == 0 ? "" : scope.row.alreadyRepaid}}</span>
-            </template>
-          </el-table-column>
+          <el-table-column prop="receivabled" label="已收(元)"></el-table-column>
         </el-table-column>
-
         <el-table-column prop="invoicing" label="发票"></el-table-column>
         <el-table-column prop="driverContractUrl" label="合同">
           <template scope="scope">
-          <span @click="contract(scope.row)" class="btn_css">查看</span>
+          <span @click="contract(scope.row)" class="btn_css" v-if="scope.row.orderStatusKey>3 && scope.row.cargoOwnerStatus != '已终止'">查看</span>
          </template>
         </el-table-column>
         <el-table-column prop="updateDate" label="更新时间" min-width="160"></el-table-column>
@@ -144,18 +135,20 @@
                 </el-dropdown-item>
                 <el-dropdown-item>
                   <el-link target="_blank" @click="see(scope.row)" type="primary" :underline="false"
-                    :disabled="scope.row.cargoOwnerStatusKey != 29">完结</el-link>
+                    :disabled="scope.row.freightAdvance =='非垫付' && scope.row.cargoOwnerStatusKey != 29">完结</el-link>
                   <!-- 完结:支付完尾款后从未进行过完结操作前显示的操作。 -->
                 </el-dropdown-item>
                 <el-dropdown-item>
                   <!-- v-if="scope.row.freightAdvance == 1" -->
-                  <el-link target="_blank" type="primary" :underline="false"
-                    :disabled="scope.row.freightAdvance != 1 && scope.row.cargoOwnerStatusKey < 9">预付</el-link>
+                  <el-link target="_blank" type="primary" :underline="false" v-if="scope.row.freightAdvance == '垫付'"
+                    :disabled="scope.row.cargoOwnerStatusKey != 13  && scope.row.payabled " @click="preMoneyChange(scope.row)">预付{{scope.row.cargoOwnerStatusKey}}</el-link>
                   <!-- 垫付类型的订单,平台确认装车后从未进行过预付操作(即预付款=0)时显示的按钮。 -->
                 </el-dropdown-item>
+                <!-- 货主订单状态key(1待接单3未装车5待确认装车7已驳回装车信息9待平台确认装车11平台驳回装车信息13运输中15待收货17已驳回卸车信息19待平台确认卸车21平台驳回卸车信息
+                 * 23待结算25已结算27待还款29已还款31已完结33已终止) -->
                 <el-dropdown-item>
                   <el-link target="_blank" type="primary" :underline="false"
-                    :disabled="scope.row.freightAdvance != 1 && scope.row.cargoOwnerStatusKey < 19">尾款</el-link>
+                    :disabled="scope.row.freightAdvance == '非垫付' && scope.row.cargoOwnerStatusKey < 19 " @click="tailmoneyChange(scope.row)">尾款</el-link>
                   <!-- 垫付类型的订单,平台确认卸车后从未进行过尾款操作(即尾款=0)时显示的按钮。 -->
                 </el-dropdown-item>
                 <el-dropdown-item>
@@ -314,7 +307,9 @@
     auditData,
     endData,
     editEndData,
-    batchData
+    batchData,
+    preMoney,
+    tailMoney
   } from '@/api/orderManagement'
   export default {
     components: {
@@ -360,6 +355,60 @@
       
     },
     methods: {
+      //预付
+      preMoneyChange(val){
+        this.$confirm('垫付预付款'+val.advanceCharge+'元?', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning',
+          })
+          .then(() => {
+            this.listLoading = true
+            preMoney({
+                id: val.freightId,
+                prepaidFreight:val.advanceCharge
+              }).then(response => {
+                 this.$notify({
+                  title: '成功',
+                  message: '操作成功!',
+                  type: 'success'
+                });
+                this.getList()
+                this.listLoading = false
+              })
+              .catch(() => {
+                this.listLoading = false
+              })
+          })
+      },
+      tailmoneyChange(val){
+        // 合计运费-预付款-司机服务费=尾款
+        let money = Number(val.actualFreight) - Number(val.prepaidFreight) - Number(val.driverServiceCharge)
+        this.$confirm('确定垫付尾款:'+ money+'元?', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning',
+          })
+          .then(() => {
+            this.listLoading = true
+            tailMoney({
+                id: val.freightId,
+                freightBalance:money
+              }).then(response => {
+                 this.$notify({
+                  title: '成功',
+                  message: '操作成功!',
+                  type: 'success'
+                });
+                this.getList()
+                this.listLoading = false
+              })
+              .catch(() => {
+                this.listLoading = false
+              })
+          })
+
+      },
       closeImgViewer() {
         this.srcList = []
         this.imgsVisible = false;
@@ -369,7 +418,6 @@
         this.srcList.push(url)
       },
       toMapPage(row) {
-        debugger
         this.$router.push({
           path: 'trajectory',
           query: {
@@ -511,7 +559,7 @@
         this.getList()
       },
       contract(row) {
-        window.open(row.ownerContractUrl)
+        window.open(row.driverContractUrl)
         // this.userInfo = true;
       },
       userClose() {

+ 1 - 1
src/views/orderManagement/trajectory.vue

@@ -11,7 +11,7 @@
         </div>
       </div>
       <div class="map">
-        <map-drag :radio=' radio' :orderid='querydata.id'></map-drag>
+        <map-drag :radio='radio' :orderid='querydata.id'></map-drag>
       </div>
     </div>
   </div>

+ 1 - 1
src/views/platformManagement/specifiedRecords.vue

@@ -9,7 +9,7 @@
           </el-col>
           <el-col :span="10">
             <div class="screen">
-              <el-input v-model="searchkeyWord" placeholder="可按版本号、编写单位、编撰人员查找" clearable />
+              <el-input v-model="searchkeyWord" placeholder="可按版本号、编写单位、编撰人员查找" clearable @change="find" />
               <el-button class="search" @click="find"><img
                 width="16"
                 height="16"