zhongtianhaoyuan hace 1 año
padre
commit
5f543719e1

+ 24 - 0
src/api/parkReportManagement.js

@@ -110,4 +110,28 @@ export function dailyReportBatchEscalation(data) {
     method: 'post',
     method: 'post',
     data: data,
     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-divider direction="vertical"></el-divider>
             <el-link target="_blank" @click="reportInfo(scope.row)" type="primary" :underline="false"
             <el-link target="_blank" @click="reportInfo(scope.row)" type="primary" :underline="false"
               :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过'">上报</el-link>
               :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-divider direction="vertical"></el-divider> -->
             <!-- <el-dropdown>
             <!-- <el-dropdown>
               <span class="btn_css">•••</span>
               <span class="btn_css">•••</span>
@@ -221,7 +223,8 @@
 import {
 import {
   getList,
   getList,
   report,
   report,
-  getInfo
+  getInfo,
+  driverReportResults
 } from "@/api/parkReportManagement";
 } from "@/api/parkReportManagement";
 export default {
 export default {
   components: {
   components: {
@@ -283,6 +286,25 @@ export default {
     this.getList();
     this.getList();
   },
   },
   methods: {
   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() {
     escalation() {
       let that = this
       let that = this

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

@@ -121,17 +121,19 @@
             <el-divider direction="vertical"></el-divider>
             <el-divider direction="vertical"></el-divider>
             <el-link target="_blank" @click="reportInfo(scope.row)" type="primary" :underline="false"
             <el-link target="_blank" @click="reportInfo(scope.row)" type="primary" :underline="false"
               :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过'">上报</el-link>
               :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-divider direction="vertical"></el-divider> -->
             <!-- <el-dropdown>
             <!-- <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>
           </template>
         </el-table-column>
         </el-table-column>
       </el-table>
       </el-table>
@@ -145,17 +147,17 @@
       <div class="file">
       <div class="file">
         <div class="fujian_css">
         <div class="fujian_css">
           <!-- <div class="fujian_item" :class="count == 1 ? 'file_btn' : ''" @click="btnChange(1)">
           <!-- <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 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 class="fujian_item" :class="count == 3 ? 'file_btn' : ''" @click="btnChange(3)">
             行驶证
             行驶证
           </div>
           </div>
           <!-- <div class="fujian_item" :class="count == 4 ? 'file_btn' : ''" @click="btnChange(4)">
           <!-- <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 class="fujian_item" :class="count == 5 ? 'file_btn' : ''" @click="btnChange(5)">
             挂车行驶证
             挂车行驶证
           </div>
           </div>
@@ -192,7 +194,7 @@
         <div class="right_title">使用性质</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_title">车辆识别代号</div>
-        <div class="right_item">{{costData.useNature}} </div> -->
+          <div class="right_item">{{costData.useNature}} </div> -->
         <div class="right_title">发证机关</div>
         <div class="right_title">发证机关</div>
         <div class="right_item">{{ costData.lssuingAuthority }} </div>
         <div class="right_item">{{ costData.lssuingAuthority }} </div>
         <div class="right_title">车长(毫米)</div>
         <div class="right_title">车长(毫米)</div>
@@ -222,8 +224,7 @@
         <img :src="costData.drivingLicenseBackPage" alt="" class="img_css"
         <img :src="costData.drivingLicenseBackPage" alt="" class="img_css"
           @click="enlarge(costData.drivingLicenseBackPage)">
           @click="enlarge(costData.drivingLicenseBackPage)">
         <div class="right_title">道路运输证照片</div>
         <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>
         <div class="right_title">挂车道路运输证照片</div>
         <img :src="costData.trailerOperationCertificate" alt="" class="img_css"
         <img :src="costData.trailerOperationCertificate" alt="" class="img_css"
           @click="enlarge(costData.trailerOperationCertificate)">
           @click="enlarge(costData.trailerOperationCertificate)">
@@ -238,7 +239,8 @@
 import {
 import {
   carGetList,
   carGetList,
   carReport,
   carReport,
-  carGetInfo
+  carGetInfo,
+  carReportResults
 } from "@/api/parkReportManagement";
 } from "@/api/parkReportManagement";
 export default {
 export default {
   components: {
   components: {
@@ -300,6 +302,25 @@ export default {
     this.getList();
     this.getList();
   },
   },
   methods: {
   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() {
     escalation() {
       let that = this
       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)"
             <el-link target="_blank" type="primary" :underline="false" @click="submission(scope.row)"
               :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过' && scope.row.escalationStatus != '暂缓中'">
               :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过' && scope.row.escalationStatus != '暂缓中'">
               上报</el-link>
               上报</el-link>
+            <el-divider direction="vertical" />
+            <el-link target="_blank" @click="resultClick(scope.row)" type="primary" :underline="false">上报结果</el-link>
           </template>
           </template>
         </el-table-column>
         </el-table-column>
       </el-table>
       </el-table>
@@ -144,7 +146,8 @@ import {
   waybillGetList,
   waybillGetList,
   waybillGetInfo,
   waybillGetInfo,
   deferEscalation,
   deferEscalation,
-  batchEscalation
+  batchEscalation,
+  reportResults
 } from '@/api/parkReportManagement'
 } from '@/api/parkReportManagement'
 export default {
 export default {
   data() {
   data() {
@@ -179,6 +182,25 @@ export default {
     this.getList()
     this.getList()
   },
   },
   methods: {
   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) {
     handleSelectionChange(val) {
       this.modification = val;
       this.modification = val;
     },
     },