From ec90cbd7680a6f927cb1cea43f33ab7df6d0864c Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 11 十一月 2025 09:23:22 +0800
Subject: [PATCH] -

---
 src/pages/delivergoods/reservation.vue |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/src/pages/delivergoods/reservation.vue b/src/pages/delivergoods/reservation.vue
index b4aa18e..82b4225 100644
--- a/src/pages/delivergoods/reservation.vue
+++ b/src/pages/delivergoods/reservation.vue
@@ -171,7 +171,7 @@
 				show7: false,
 				arrangeInfo: {
 					deliverTime: this.$util.formatDate(new Date(), null, 1),
-					driverId: '',
+					// driverId: '',
 					buyerId: null,
 					dianhua: '',
 					remark: '',
@@ -197,7 +197,7 @@
 			this.init()
 		},
 		onLoad() {
-			this.Getdrivers()
+			this.GetCarList()
 			this.getCustomer()
 		},
 		onReady() {
@@ -232,10 +232,14 @@
 					this.arrangeInfo.companyName = item
 				}
 			},
-			Getdrivers() {
-				this.$api.Getdrivers().then(res => {
+			GetCarList() {
+				this.$api.GetCarList().then(res => {
 					if (res.code == 1) {
 						this.driverList = res.data
+						this.driverList.forEach(item => {
+							item.driverName = item.name
+							item.name = item.carNumber
+						})
 					}
 				})
 			},
@@ -250,7 +254,7 @@
 			cancelModal() {
 				this.arrangeInfo = {
 					deliverTime: this.$util.formatDate(new Date(), null, 1),
-					driverId: '',
+					// driverId: '',
 					buyerId: null,
 					dianhua: '',
 					remark: '',
@@ -295,8 +299,10 @@
 			},
 			selectItem(item) {
 				if (this.selectAc == 'driver') {
-					this.arrangeInfo.driverName = item.name
-					this.arrangeInfo.driverId = item.keyid
+					// this.arrangeInfo.driverName = item.driverName
+					this.arrangeInfo.driverName = item.carNumber
+					// this.arrangeInfo.driverId = item.keyid
+					this.arrangeInfo.carId = item.keyid
 				} else if (this.selectAc == 'driver7') {
 					this.deliverKeyID = item.keyid
 					this.deliverKeyName = item.name
@@ -334,7 +340,7 @@
 								this.isEdit = false
 								this.arrangeInfo = {
 									deliverTime: this.$util.formatDate(new Date(), null, 1),
-									driverId: '',
+									// driverId: '',
 									buyerId: null,
 									dianhua: '',
 									remark: '',
@@ -362,7 +368,7 @@
 						if (res.code == 1) {
 							this.arrangeInfo = {
 								deliverTime: this.$util.formatDate(new Date(), null, 1),
-								driverId: '',
+								// driverId: '',
 								buyerId: null,
 								dianhua: '',
 								remark: '',

--
Gitblit v1.9.1