Bladeren bron

陆运首页增加跳转散货

caojunjie 3 jaren geleden
bovenliggende
commit
30e43e4561

+ 1 - 1
src/views/landTransportation/bulkCargo/index.vue

@@ -1271,7 +1271,7 @@ export default {
       if (type) {
         this.home = false
         this.$router.push({
-          path: '/landTransportation/placeAnOrder/index'
+          path: '/landTransportation/bulkCargo/index'
         });
       }
       this.id = ''

+ 12 - 0
src/views/wel/home/landTransportation/components/sales-trend.vue

@@ -25,6 +25,10 @@
                 <div style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{ row.unloadingPlace }}</div>
               </el-tooltip>
             </template>
+            <template slot="dispatchNumber" slot-scope="{row}">
+                <span class="el-button--text" style="cursor: pointer"
+                      @click="openTrackTwo(row,0)">{{ row.dispatchNumber }}</span>
+            </template>
             <template slot="menuLeft">
               <span>今日业务详情{{ mold == 1 ? '(集装箱)' : mold == 2 ? '(散货)' : mold == 3 ? '(特种)' : '' }}</span>
             </template>
@@ -816,6 +820,14 @@ export default {
         this.$refs[ref].$refs.dialogColumn.columnBox = false;
       }
     },
+    openTrackTwo(row, index){
+      if (index == 0){
+        this.$router.push({
+          path: '/landTransportation/bulkCargo/index',
+          query: {id: row.orderId},
+        });
+      }
+    },
     openTrack(row, index) {
       if (index == 0) {
         this.$router.push({