qukaidi 4 years ago
parent
commit
037eb79c68
2 changed files with 23 additions and 7 deletions
  1. 7 2
      src/views/index.vue
  2. 16 5
      src/views/track/cabinet/index.vue

+ 7 - 2
src/views/index.vue

@@ -439,9 +439,8 @@
               :style="{
                 backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
               }"
-              @click="jump('/track/cabinet')"
             >
-              <div style="width: 30%">{{ item.mblno }}</div>
+              <div style="width: 30%" @click="goPage(item.id)"><el-link type="primary" :underline="false">{{ item.mblno }}</el-link></div>
               <div style="width: 20%">{{ item.carregNo }}</div>
               <div style="width: 15%; color: #67c23a">
                 {{ item.orderStatus | statusType }}
@@ -603,6 +602,12 @@ export default {
     this.inquiry();
   },
   methods: {
+    goPage(id){
+        this.$router.push({
+            path: "/track/cabinet",
+            query: { id: id },
+          });
+    },
     //跳转审批页面
     approval(row) {
       switch (row.refno2) {

+ 16 - 5
src/views/track/cabinet/index.vue

@@ -231,15 +231,13 @@
         >
       </el-col>
       <el-col :span="1.5">
-<!--        <el-button size="mini" @click="handleQuery(null)">全 部</el-button>-->
+        <!--        <el-button size="mini" @click="handleQuery(null)">全 部</el-button>-->
         <el-badge
           :value="buttonValue.quantity"
           type="warning"
           style="margin-right: 10px"
         >
-          <el-button size="mini" @click="handleQuery()"
-          >全 部</el-button
-          >
+          <el-button size="mini" @click="handleQuery()">全 部</el-button>
         </el-badge>
       </el-col>
       <el-col :span="1.5">
@@ -411,7 +409,7 @@
         fixed="left"
       >
         <template slot-scope="scope">
-            <el-link :underline="false" type="primary"
+          <el-link :underline="false" type="primary"
             ><div @click="handleUpdate(scope.row)">
               {{ scope.row.mblno }}
             </div></el-link
@@ -860,6 +858,19 @@ export default {
       this.fMblnoOptions = response.rows;
     });
     this.getRow();
+    if (this.$route.query.id) {
+      this.reset();
+      const data = { id: this.$route.query.id, billStatus: 1060 };
+      selectDriverFtmsorderbillscars(data).then((response) => {
+        if (response.data.cars.billType) {
+          response.data.cars.billType = response.data.cars.billType.toString();
+        }
+        this.title = "查看详情页";
+        this.form = response.data.cars;
+        this.relevantAttachments = response.data.attachs;
+        this.addOrUpdateVisible = !this.addOrUpdateVisible;
+      });
+    }
   },
   methods: {
     //列设置全选