zhongtianhaoyuan 1 gadu atpakaļ
vecāks
revīzija
5f543719e1

+ 24 - 0
src/api/parkReportManagement.js

@@ -110,4 +110,28 @@ export function dailyReportBatchEscalation(data) {
     method: 'post',
     data: data,
   })
+}
+//运单查询上报结果
+export function reportResults(data) {
+  return request({
+    url: '/orderInfo/api/queryOrderResult',
+    method: 'post',
+    data: data,
+  })
+}
+//司机运单查询上报结果
+export function driverReportResults(data) {
+  return request({
+    url: '/driverInfo/api/queryDriverResult',
+    method: 'post',
+    data: data,
+  })
+}
+//车辆运单查询上报结果
+export function carReportResults(data) {
+  return request({
+    url: '/driverCarInfo/api/queryCarResult',
+    method: 'post',
+    data: data,
+  })
 }

+ 23 - 1
src/views/parkReportManagement/driverInformationReporting.vue

@@ -116,6 +116,8 @@
             <el-divider direction="vertical"></el-divider>
             <el-link target="_blank" @click="reportInfo(scope.row)" type="primary" :underline="false"
               :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过'">上报</el-link>
+              <el-divider direction="vertical" />
+            <el-link target="_blank" @click="resultClick(scope.row)" type="primary" :underline="false">上报结果</el-link>
             <!-- <el-divider direction="vertical"></el-divider> -->
             <!-- <el-dropdown>
               <span class="btn_css">•••</span>
@@ -221,7 +223,8 @@
 import {
   getList,
   report,
-  getInfo
+  getInfo,
+  driverReportResults
 } from "@/api/parkReportManagement";
 export default {
   components: {
@@ -283,6 +286,25 @@ export default {
     this.getList();
   },
   methods: {
+    resultClick(row) {
+      driverReportResults(row)
+        .then(response => {
+          if (response.code == 200) {
+            this.$notify({
+              title: '成功',
+              message: '操作成功!',
+              type: 'success'
+            })
+            this.getList()
+          }
+        }).catch(() => {
+          this.$notify({
+              title: '失败',
+              message: response.message,
+              type: 'error'
+            })
+          })
+    },
     //上报
     escalation() {
       let that = this

+ 40 - 19
src/views/parkReportManagement/vehicleInformationReporting.vue

@@ -121,17 +121,19 @@
             <el-divider direction="vertical"></el-divider>
             <el-link target="_blank" @click="reportInfo(scope.row)" type="primary" :underline="false"
               :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过'">上报</el-link>
+            <el-divider direction="vertical" />
+            <el-link target="_blank" @click="resultClick(scope.row)" type="primary" :underline="false">上报结果</el-link>
             <!-- <el-divider direction="vertical"></el-divider> -->
             <!-- <el-dropdown>
-              <span class="btn_css">•••</span>
-              <el-dropdown-menu slot="dropdown">
-                <el-dropdown-item :disabled="
-                    scope.row.authenticationStatus == '已禁用' &&
-                    scope.row.authenticationStatus != '审核中'
-                  "><span @click="switchChange(scope.row, '1')">禁用</span>
-                </el-dropdown-item>
-              </el-dropdown-menu>
-            </el-dropdown> -->
+                <span class="btn_css">•••</span>
+                <el-dropdown-menu slot="dropdown">
+                  <el-dropdown-item :disabled="
+                      scope.row.authenticationStatus == '已禁用' &&
+                      scope.row.authenticationStatus != '审核中'
+                    "><span @click="switchChange(scope.row, '1')">禁用</span>
+                  </el-dropdown-item>
+                </el-dropdown-menu>
+              </el-dropdown> -->
           </template>
         </el-table-column>
       </el-table>
@@ -145,17 +147,17 @@
       <div class="file">
         <div class="fujian_css">
           <!-- <div class="fujian_item" :class="count == 1 ? 'file_btn' : ''" @click="btnChange(1)">
-            身份证
-          </div> -->
+              身份证
+            </div> -->
           <!-- <div class="fujian_item" :class="count == 2 ? 'file_btn' : ''" @click="btnChange(2)">
-            驾驶证
-          </div> -->
+              驾驶证
+            </div> -->
           <div class="fujian_item" :class="count == 3 ? 'file_btn' : ''" @click="btnChange(3)">
             行驶证
           </div>
           <!-- <div class="fujian_item" :class="count == 4 ? 'file_btn' : ''" @click="btnChange(4)">
-            从业资格证
-          </div> -->
+              从业资格证
+            </div> -->
           <div class="fujian_item" :class="count == 5 ? 'file_btn' : ''" @click="btnChange(5)">
             挂车行驶证
           </div>
@@ -192,7 +194,7 @@
         <div class="right_title">使用性质</div>
         <div class="right_item">{{ costData.useNature }} </div>
         <!-- <div class="right_title">车辆识别代号</div>
-        <div class="right_item">{{costData.useNature}} </div> -->
+          <div class="right_item">{{costData.useNature}} </div> -->
         <div class="right_title">发证机关</div>
         <div class="right_item">{{ costData.lssuingAuthority }} </div>
         <div class="right_title">车长(毫米)</div>
@@ -222,8 +224,7 @@
         <img :src="costData.drivingLicenseBackPage" alt="" class="img_css"
           @click="enlarge(costData.drivingLicenseBackPage)">
         <div class="right_title">道路运输证照片</div>
-        <img :src="costData.operationCertificate" alt="" class="img_css"
-          @click="enlarge(costData.operationCertificate)">
+        <img :src="costData.operationCertificate" alt="" class="img_css" @click="enlarge(costData.operationCertificate)">
         <div class="right_title">挂车道路运输证照片</div>
         <img :src="costData.trailerOperationCertificate" alt="" class="img_css"
           @click="enlarge(costData.trailerOperationCertificate)">
@@ -238,7 +239,8 @@
 import {
   carGetList,
   carReport,
-  carGetInfo
+  carGetInfo,
+  carReportResults
 } from "@/api/parkReportManagement";
 export default {
   components: {
@@ -300,6 +302,25 @@ export default {
     this.getList();
   },
   methods: {
+    resultClick(row) {
+      carReportResults(row)
+        .then(response => {
+          if (response.code == 200) {
+            this.$notify({
+              title: '成功',
+              message: '操作成功!',
+              type: 'success'
+            })
+            this.getList()
+          }
+        }).catch(() => {
+          this.$notify({
+            title: '失败',
+            message: response.message,
+            type: 'error'
+          })
+        })
+    },
     //上报
     escalation() {
       let that = this

+ 23 - 1
src/views/parkReportManagement/waybillReporting.vue

@@ -75,6 +75,8 @@
             <el-link target="_blank" type="primary" :underline="false" @click="submission(scope.row)"
               :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过' && scope.row.escalationStatus != '暂缓中'">
               上报</el-link>
+            <el-divider direction="vertical" />
+            <el-link target="_blank" @click="resultClick(scope.row)" type="primary" :underline="false">上报结果</el-link>
           </template>
         </el-table-column>
       </el-table>
@@ -144,7 +146,8 @@ import {
   waybillGetList,
   waybillGetInfo,
   deferEscalation,
-  batchEscalation
+  batchEscalation,
+  reportResults
 } from '@/api/parkReportManagement'
 export default {
   data() {
@@ -179,6 +182,25 @@ export default {
     this.getList()
   },
   methods: {
+    resultClick(row) {
+      reportResults(row)
+        .then(response => {
+          if (response.code == 200) {
+            this.$notify({
+              title: '成功',
+              message: '操作成功!',
+              type: 'success'
+            })
+            this.getList()
+          }
+        }).catch(() => {
+          this.$notify({
+            title: '失败',
+            message: response.message,
+            type: 'error'
+          })
+        })
+    },
     handleSelectionChange(val) {
       this.modification = val;
     },