From f92ad48d8cbf30d5a9036a21f15f0f5792da6bf5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=B8=85?= <3115919733@qq.com>
Date: Thu, 24 Apr 2025 13:04:22 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E8=BD=A6=E9=9C=80=E6=B1=82=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../vehicledemand/VehicleDemandList.vue | 28 ++++++-------
.../modules/VehicleDemandForm.vue | 42 ++++++++++++++-----
.../VehicleDemandCountList.vue | 2 +-
3 files changed, 47 insertions(+), 25 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/VehicleDemandList.vue b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/VehicleDemandList.vue
index 9f2e7ed..878acc1 100644
--- a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/VehicleDemandList.vue
+++ b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/VehicleDemandList.vue
@@ -11,12 +11,12 @@
-
-
-
-
-
+
+
+
+
+
@@ -38,10 +38,12 @@
-
+
查询
重置
+ 新增
+ 导出
{{ toggleSearchStatus ? '收起' : '展开' }}
@@ -55,19 +57,17 @@
@@ -138,7 +138,7 @@
diff --git a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/modules/VehicleDemandForm.vue b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/modules/VehicleDemandForm.vue
index 8c499c6..4830a23 100644
--- a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/modules/VehicleDemandForm.vue
+++ b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemand/modules/VehicleDemandForm.vue
@@ -13,24 +13,25 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
+
+
@@ -63,6 +64,8 @@
},
data () {
return {
+ cityList:[],
+ pickUpHubList:[],
model:{
},
labelCol: {
@@ -79,7 +82,8 @@
url: {
add: "/vehicle_demand/vehicleDemand/add",
edit: "/vehicle_demand/vehicleDemand/edit",
- queryById: "/vehicle_demand/vehicleDemand/queryById"
+ queryById: "/vehicle_demand/vehicleDemand/queryById",
+ getCity: "/logisticsroute/logisticsRoute/getCity",
}
}
},
@@ -91,6 +95,7 @@
created () {
//备份model原始值
this.modelDefault = JSON.parse(JSON.stringify(this.model));
+ this.getCity();
},
methods: {
add () {
@@ -129,6 +134,23 @@
})
},
+ getCity(){
+ getAction(this.url.getCity).then(res => {
+ if (res.success) {
+ this.cityList = res.result;
+ this.pickUpHubList = res.result;
+ }
+ })
+ },
+ pickUpHubSelect(){
+ let pickUpHub = this.pickUpHubList.filter(x=>x.includes(this.model.pickUpHub))[0].split('&-')[0]
+ let deliveryAddress = this.pickUpHubList.filter(x=>x.includes(this.model.pickUpHub))[0].split('&-')[1]
+ this.model.pickUpHub = pickUpHub
+ this.model.deliveryAddress = deliveryAddress
+ },
+ pickUpHubChange(val){
+ this.pickUpHubList = this.cityList.filter(x => x.includes(val));
+ },
}
}
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue
index 071d7bd..1f17834 100644
--- a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue
+++ b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue
@@ -79,7 +79,7 @@