From 908ce43ff21c2068ef5148b0a417423c8ed9eae5 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 12 三月 2025 16:37:32 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit

---
 admin/src/views/platform/LogisticsRecord/waybill.vue |  109 ++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 72 insertions(+), 37 deletions(-)

diff --git a/admin/src/views/platform/LogisticsRecord/waybill.vue b/admin/src/views/platform/LogisticsRecord/waybill.vue
index a86666b..802fd43 100644
--- a/admin/src/views/platform/LogisticsRecord/waybill.vue
+++ b/admin/src/views/platform/LogisticsRecord/waybill.vue
@@ -14,7 +14,7 @@
       <el-button :loading="exLoading" @click="handleEx"
         v-permissions="['business:platformjob:exportExcel']">瀵煎嚭</el-button>
     </div>
-    <el-table class="mb20" v-loading="loading" :data="list" stripe>
+    <el-table :height="tableHeightNew" v-loading="loading" :data="list" stripe>
       <el-table-column prop="billCode" label="杩愬崟鍙�" min-width="100" show-overflow-tooltip />
       <el-table-column prop="carCodeFront" label="杞︾墝鍓嶇収鍙�" min-width="100" show-overflow-tooltip />
       <!-- <el-table-column prop="carCodeBack" label="杞︾墝鍚庣収鍙�" min-width="100" show-overflow-tooltip /> -->
@@ -22,6 +22,11 @@
       <el-table-column prop="carrierName" label="杩愯緭鍏徃" min-width="100" show-overflow-tooltip />
       <el-table-column prop="driverName" label="鍙告満" min-width="100" show-overflow-tooltip />
       <el-table-column prop="drivierPhone" label="鍙告満鐢佃瘽" min-width="100" show-overflow-tooltip />
+<!--      <el-table-column prop="wmsContractNum" label="WMS鍚堝悓鍙�" min-width="100" show-overflow-tooltip >
+      <template v-slot="scope">
+        <span v-if="scope.row.platformWmsJob">{{ scope.row.platformWmsJob.contractNum }}</span>
+      </template>
+      </el-table-column>-->
       <el-table-column prop="inTypeTemp" label="浣滀笟绫诲瀷" min-width="100" show-overflow-tooltip>
         <template v-slot="scope">
           <span v-if="scope.row.type == '0'">鑷湁杞﹀嵏璐�</span>
@@ -31,7 +36,7 @@
           <span v-if="scope.row.type == '4'">甯傚叕鍙稿鍗忚溅鍗歌揣</span>
         </template>
       </el-table-column>
-      <el-table-column prop="createDate" label="鍒涘缓鏃堕棿" min-width="150" show-overflow-tooltip />
+      <el-table-column prop="ioCreatedate" label="鍒涘缓鏃堕棿" min-width="150" show-overflow-tooltip />
       <el-table-column prop="name" label="浣滀笟鐘舵��" min-width="100" show-overflow-tooltip>
         <template v-slot="scope">
           <span>{{ statusMap[scope.row.status] }}</span>
@@ -39,8 +44,8 @@
       </el-table-column>
       <el-table-column prop="name" label="鎿嶄綔" min-width="120" align="center" fixed="right" show-overflow-tooltip>
         <template v-slot="scope">
-          <el-button v-if="scope.row.status == '12'" type="text" class="red" v-permissions="['business:platformjob:delete']"
-            @click="handleDel(scope.row)">鍒犻櫎</el-button>
+          <el-button v-if="scope.row.status == '12'" type="text" class="red"
+            v-permissions="['business:platformjob:delete']" @click="handleDel(scope.row)">鍒犻櫎</el-button>
           <el-button v-if="scope.row != 12" type="text" v-permissions="['business:platformjob:query']"
             @click="handleDetail(scope.row)">杩愬崟璇︽儏</el-button>
         </template>
@@ -49,7 +54,7 @@
     <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" />
     <!--  -->
     <!--  -->
-    <DriverDetail v-if="isShowDriver" ref="DriverDetailRef" />
+    <WaybillDetailRef v-if="isShowDetail" ref="WaybillDetailRef" />
   </div>
 </template>
 
@@ -58,23 +63,25 @@
 import QueryForm from '@/components/common/QueryForm'
 import { platformJobPage, platformJobExport, platformJobDel } from '@/api'
 import { statusMap } from '../config'
-import DriverDetail from "@/views/task/driverDetail"
+import WaybillDetailRef from "../components/WaybillDetail.vue"
 import GlobalWindow from '@/components/common/GlobalWindow'
 import UploadFaceImg from '@/components/common/UploadFaceImg'
 import { Message } from 'element-ui'
 import dayjs from 'dayjs'
+import BaseComputHeight from "@/components/base/BaseComputHeight";
 export default {
+  extends: BaseComputHeight,
   components: {
     Pagination,
     QueryForm,
-    DriverDetail,
+    WaybillDetailRef,
     GlobalWindow,
     UploadFaceImg
   },
   data() {
     return {
       statusMap,
-      isShowDriver: false,
+      isShowDetail: false,
       exLoading: false,
       loading: false,
       pagination: {
@@ -84,13 +91,15 @@
       },
       filters: {
         selDate: [],
-        fastdate: 0
+        fastdate: 0,
+        createDateStart: '',
+        createDateEnd: ''
       },
       list: [],
       queryFormConfig: {
         formItems: [
           {
-            filed: 'code',
+            filed: 'billCode',
             type: 'input',
             label: '杩愬崟鍙�'
           },
@@ -100,15 +109,40 @@
             label: '椹鹃┒鍛�'
           },
           {
+            filed: 'wmsContractNum',
+            type: 'input',
+            label: '鍚堝悓鍙�'
+          },
+          {
             filed: 'carCodeFront',
             type: 'input',
             label: '杞︾墝鍙�'
           },
           {
-            filed: 'selDate',
-            type: 'datetimerange',
-            label: '鎿嶄綔鏃堕棿',
-            pickerOptions: {}
+            filed: 'status',
+            type: 'select',
+            label: '浣滀笟鐘舵��',
+            options: [
+              { value: 0, label: '寰呯‘璁�' },
+              { value: 1, label: '寰呯鍒�' },
+              { value: 2, label: '绛夊緟鍙彿' },
+              { value: 3, label: '鍏ュ洯绛夊緟' },
+              { value: 4, label: '鏈堝彴绛夊緟' },
+              { value: 5, label: '浣滀笟涓�' },
+              { value: 6, label: '浣滀笟瀹屾垚' },
+              { value: 7, label: '杞Щ涓�' },
+              { value: 8, label: '寮傚父鎸傝捣' },
+              { value: 9, label: '宸叉巿鏉冪鍥�' },
+              { value: 10, label: '宸茬鍥�' },
+              { value: 11, label: '宸茶繃鍙�' },
+              { value: 12, label: '宸插彇娑�' },
+            ]
+          },
+          {
+            filed1: 'createDateStart',
+            filed2: 'createDateEnd',
+            type: 'datetime',
+            label: '鎿嶄綔鏃堕棿'
           },
           {
             type: 'slot',
@@ -122,19 +156,20 @@
   },
   created() {
     this.changeRadio('0')
-    this.getList()
   },
   methods: {
     changeRadio(day) {
       const arr = [dayjs().subtract(day, 'day').format('YYYY-MM-DD') + ' 00:00:00', dayjs().format('YYYY-MM-DD') + ' 23:59:59']
-      this.$set(this.filters, 'selDate', arr)
-      this.getList()
+      this.filters.createDateStart = arr[0]
+      this.filters.createDateEnd = arr[1]
+      this.getList(1)
     },
     changeForm(str) {
-      if (str === 'selDate') {
-        this.$set(this.filters, 'fastdate', null)
-        this.getList()
+      if(this.filters.createDateStart > this.filters.createDateEnd){
+        this.filters.createDateStart = this.filters.createDateEnd
+        return this.$message.error('寮�濮嬫椂闂翠笉鑳藉ぇ浜庣粨鏉熸椂闂�')
       }
+      this.getList()
     },
     getList(page) {
       const { pagination, filters } = this
@@ -142,10 +177,8 @@
       platformJobPage({
         model: {
           ...filters,
-          jobType: '0',
-          createDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
-          createDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null,
-        },
+          jobType: '0'
+         },
         capacity: pagination.pageSize,
         page: page || pagination.page,
       }).then(res => {
@@ -161,7 +194,7 @@
       })
     },
     handleDel(row) {
-      this.$dialog.exportConfirm('纭鍒犻櫎鍚楋紵').then(() => {
+      this.$dialog.deleteConfirm('纭鍒犻櫎鍚楋紵').then(() => {
         platformJobDel(row.id).then(res => {
           Message.success('鍒犻櫎鎴愬姛')
           this.getList()
@@ -172,11 +205,15 @@
       this.$dialog.exportConfirm('纭瀵煎嚭鍚楋紵')
         .then(() => {
           this.exLoading = true
+          const { filters } = this
           platformJobExport({
             page: this.pagination.page,
             capacity: 1000000,
             jobType: '0',
-            model: this.filters
+            model: {
+              ...filters,
+              jobType: '0'
+            }
           })
             .then(response => {
               this.download(response)
@@ -191,23 +228,21 @@
     },
     clear() {
       this.pagination.page = 1
-      this.filters = {
-        selDate: [],
-        fastdate: 0
-      }
-      this.getList()
+      this.filters = {}
+      this.getList(0)
+      // this.changeRadio('0')
     },
     handleDetail(row) {
-      this.isShowDriver = true
+      this.isShowDetail = true
       this.$nextTick(() => {
-        this.$refs.DriverDetailRef.id = row.id
-        this.$refs.DriverDetailRef.type = 6
-        this.$refs.DriverDetailRef.getDetail()
-        this.$refs.DriverDetailRef.isShowModal = true
+        this.$refs.WaybillDetailRef.isShowModal = true
+        this.$refs.WaybillDetailRef.id = row.id
+        this.$refs.WaybillDetailRef.getDetail()
       })
     },
     handleSizeChange(capacity) {
       this.pagination.pageSize = capacity
+      this.getList()
     }
   }
 }
@@ -219,4 +254,4 @@
   color: #000000;
   margin-bottom: 15px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3