From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/views/platform/queueUp.vue |   86 +++++++++++++++++++++++++++++++++---------
 1 files changed, 67 insertions(+), 19 deletions(-)

diff --git a/admin/src/views/platform/queueUp.vue b/admin/src/views/platform/queueUp.vue
index 6b4a9b1..eb4b0b1 100644
--- a/admin/src/views/platform/queueUp.vue
+++ b/admin/src/views/platform/queueUp.vue
@@ -33,13 +33,22 @@
           </div>
         </template>
       </el-table-column>
-      <el-table-column v-if="activeGroup.type == 2" prop="contractNum" label="鍚堝悓鍗曞彿" min-width="120" />
-      <template v-else>
-        <el-table-column prop="carrierName" label="杩愯緭鍏徃" min-width="120" />
-        <el-table-column prop="billCode" label="杩愬崟鍙�" min-width="120" />
-      </template>
-      <el-table-column prop="totalNum" label="鎬昏繍杈撻噺(涓囨敮)" min-width="110" />
-      <el-table-column prop="driverName" label="椹鹃┒鍛�" min-width="130">
+      <el-table-column prop="carrierName" label="杩愯緭鍏徃" min-width="120">
+        <template v-slot="scope">
+          <span>{{ scope.row.carrierName || '-' }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column prop="contractNum" label="杩愯緭鍗曞彿/鍚堝悓鍙�" min-width="120">
+        <template v-slot="scope">
+          <span>{{ scope.row.billCode || scope.row.contractNum || '-' }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column prop="totalNum" label="鎬昏繍杈撻噺(涓囨敮)" min-width="110">
+        <template v-slot="scope">
+          <span>{{ scope.row.totalNum || '-' }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="椹鹃┒鍛�" min-width="130">
         <template slot-scope="{ row }">
           <span class="mr10">{{ row.driverName }}</span>
           <span>{{ row.drivierPhone }}</span>
@@ -48,11 +57,41 @@
       <el-table-column prop="signDate" label="绛惧埌鏃堕棿" min-width="150" />
       <el-table-column label="鎿嶄綔" align="center" width="100" fixed="right">
         <template slot-scope="{ row }">
-          <el-button v-if="activeGroup != 2" type="text" @click="handleDetail(row)" v-permissions="['business:company:update']">杩愬崟璇︽儏</el-button>
-          <el-button v-if="activeGroup == 2" type="text" @click="subDetail(row)" v-permissions="['business:company:update']">棰勭害璇︽儏</el-button>
+          <el-button v-if="row.billCode" type="text" @click="handleDetail(row)"
+            v-permissions="['business:company:update']">杩愬崟璇︽儏</el-button>
+          <el-button v-else type="text" @click="subDetail(row)">棰勭害璇︽儏</el-button>
         </template>
       </el-table-column>
     </el-table>
+    <!-- <el-table v-else class="mb20" v-loading="loading" :data="dataList" stripe row-key="id" default-expand-all>
+      <el-table-column type="index" label="搴忓彿" width="80" />
+      <el-table-column label="杞︾墝鍙�" width="130">
+        <template slot-scope="{ row }">
+          <div class="plate_id">
+            <span>{{ row.carCodeFront.slice(0, 1) }}</span>
+            <span>{{ row.carCodeFront.slice(1, 2) }}</span>
+            <span>路</span>
+            <span>{{ row.carCodeFront.slice(2) }}</span>
+          </div>
+        </template>
+      </el-table-column>
+      <el-table-column prop="carrierName" label="杩愯緭鍏徃" min-width="120" />
+      <el-table-column prop="totalNum" label="鎬昏繍杈撻噺(涓囨敮)" min-width="110" />
+      <el-table-column label="椹鹃┒鍛�" min-width="130">
+        <template slot-scope="{ row }">
+          <span class="mr10">{{ row.driverName }}</span>
+          <span>{{ row.drivierPhone }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column prop="signDate" label="绛惧埌鏃堕棿" min-width="150" />
+      <el-table-column label="鎿嶄綔" align="center" width="100" fixed="right">
+        <template slot-scope="{ row }">
+          <el-button v-if="row.billCode" type="text" @click="handleDetail(row)"
+            v-permissions="['business:company:update']">杩愬崟璇︽儏</el-button>
+          <el-button v-else type="text" @click="subDetail(row)">棰勭害璇︽儏</el-button>
+        </template>
+      </el-table-column>
+    </el-table> -->
     <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="pagination" />
 
     <!--  -->
@@ -66,7 +105,6 @@
 <script>
 import Pagination from '@/components/common/Pagination'
 import QueryForm from '@/components/common/QueryForm'
-import DriverDetail from "@/views/task/driverDetail.vue"
 import {
   getPlatformGroupList,
   platformLineUpPage,
@@ -74,6 +112,7 @@
 } from '@/api'
 import { queryQueueUpConfig } from './config'
 import WaybillDetail from './components/WaybillDetail.vue'
+import DriverDetail from "@/views/task/driverDetail.vue"
 import PlatformSign from './components/PlatformSign.vue'
 export default {
   components: {
@@ -86,7 +125,9 @@
   data() {
     return {
       filters: {},
-      activeGroup: {},
+      activeGroup: {
+        type: 2
+      },
       PlatGroupList: [],
       staticParam: {},
       dataList: [],
@@ -112,6 +153,12 @@
       this.$nextTick(() => {
         this.$refs.PlatformSignRef.isShowModal = true
         this.$refs.PlatformSignRef.activePlat = this.activeGroup
+        this.$refs.PlatformSignRef.carCodeFront = ''
+        this.$refs.PlatformSignRef.pagination = {
+          total: 0,
+          pageSize: 10,
+          page: 1
+        }
         this.$refs.PlatformSignRef.getList()
       })
     },
@@ -127,6 +174,7 @@
           } else {
             this.activeGroup = res[0]
           }
+
           this.getPlatformGroupWork()
           this.getList()
         }
@@ -174,13 +222,13 @@
       this.getList()
     },
     subDetail(row) {
-        this.isShowDriver = true
-        this.$nextTick(() => {
-          this.$refs.DriverDetailRef.id = row.objId
-          this.$refs.DriverDetailRef.type = row.objType
-          this.$refs.DriverDetailRef.getDetail()
-          this.$refs.DriverDetailRef.isShowModal = true
-        })
+      this.isShowDriver = true
+      this.$nextTick(() => {
+        this.$refs.DriverDetailRef.id = row.bookId
+        this.$refs.DriverDetailRef.type = row.objType
+        this.$refs.DriverDetailRef.getDetail()
+        this.$refs.DriverDetailRef.isShowModal = true
+      })
     },
     handleDetail(row) {
       this.isShowDetail = true
@@ -223,7 +271,7 @@
 
 .plate_id {
   display: flex;
-  width: 110px;
+  width: 120px;
   font-weight: 600;
   height: 30px;
   line-height: 30px;

--
Gitblit v1.9.3