From b1b02fa51d145183af4bafce19aa8e6ff95c826d Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 26 Mar 2024 09:26:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B8=82=E9=85=8D=E5=8F=B8?= =?UTF-8?q?=E6=9C=BA=E9=80=89=E6=8B=A9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/distribution/turndelivery/deliveryMarket.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/distribution/turndelivery/deliveryMarket.vue b/src/views/distribution/turndelivery/deliveryMarket.vue index 9dec9ea5..5f1e5ddf 100644 --- a/src/views/distribution/turndelivery/deliveryMarket.vue +++ b/src/views/distribution/turndelivery/deliveryMarket.vue @@ -1275,7 +1275,7 @@ export default { }, /** 返回上一页 */ back() { - this.$router.back(); + this.$router.push('/distribution/reservation/reservation'); this.$store.commit('DEL_TAG_CURRENT'); }, // 提交(配送内容) @@ -1553,6 +1553,8 @@ export default { a.push(item); // 主司机赋值 if (i === 0) this.driverForm.masterDriverName = item.name; + if (!this.driverForm.masterVehicleNub) + this.driverForm.masterVehicleNub = item.vehicleVOList[0].vehicleNub; // 车辆赋值, 当司机数大于车辆数时, 取最后一位司机的车辆 if (i === params.length - 1) { @@ -1578,7 +1580,8 @@ export default { ); // this.vehticleList.push(id); - this.vehicleIds.push(id); + this.vehticleList = [...new Set([...this.vehticleList, id])]; + this.vehicleIds = [...new Set([...this.vehicleIds, id])]; } } }