From d2bb73b0ef9a0e123b687c9beea5bbeb3b19b375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=B8=85?= <3115919733@qq.com> Date: Wed, 23 Apr 2025 15:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=8A=9F=E8=83=BD=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/TmsIogisticsPriceForm.vue | 116 +++++++++++++++--- .../modules/LogisticsRouteForm.vue | 2 +- .../modules/TmsVehicleOperatorForm.vue | 6 +- .../modules/TakeDeliveryPlanForm.vue | 3 +- .../vehicleinout/modules/VehicleInOutForm.vue | 6 +- 5 files changed, 106 insertions(+), 27 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/tms/basicdata/iogisticsprice/modules/TmsIogisticsPriceForm.vue b/ant-design-vue-jeecg/src/views/tms/basicdata/iogisticsprice/modules/TmsIogisticsPriceForm.vue index ec4024d..91ec961 100644 --- a/ant-design-vue-jeecg/src/views/tms/basicdata/iogisticsprice/modules/TmsIogisticsPriceForm.vue +++ b/ant-design-vue-jeecg/src/views/tms/basicdata/iogisticsprice/modules/TmsIogisticsPriceForm.vue @@ -3,44 +3,46 @@ - + - + + - + - + - + - - - - - - + - + + + + + + + - + @@ -48,19 +50,20 @@ + + + + + + - - - - - - + @@ -113,6 +116,12 @@ }, data () { return { + areaCityList:[], + startAreaList:[], + carTypeLongList:[], + carTypeList:[], + supplierCodeNameList:[], + supplierCodeList:[], model:{ }, labelCol: { @@ -129,7 +138,10 @@ url: { add: "/iogisticsprice/tmsIogisticsPrice/add", edit: "/iogisticsprice/tmsIogisticsPrice/edit", - queryById: "/iogisticsprice/tmsIogisticsPrice/queryById" + queryById: "/iogisticsprice/tmsIogisticsPrice/queryById", + getAreaCity: "/logisticsroute/logisticsRoute/getAreaCity", + getCarTypeLong: "/vehiclepallet/vehiclePallet/getCarTypeLong", + getSupplierCodeName: "/vehicleoperator/tmsVehicleOperator/getSupplierCodeName" } } }, @@ -141,6 +153,9 @@ created () { //备份model原始值 this.modelDefault = JSON.parse(JSON.stringify(this.model)); + this.getAreaCity(); + this.getCarTypeLong(); + this.getSupplierCodeName(); }, methods: { add () { @@ -179,6 +194,67 @@ }) }, + getAreaCity(){ + getAction(this.url.getAreaCity).then(res => { + if (res.success) { + this.areaCityList = res.result; + this.startAreaList = res.result; + } + }) + }, + startAreaSelect(){ + let startArea = this.startAreaList.filter(x=>x.includes(this.model.startArea))[0].split('&-')[0]; + let startCity = this.startAreaList.filter(x=>x.includes(this.model.startArea))[0].split('&-')[1]; + let targetArea = this.startAreaList.filter(x=>x.includes(this.model.startArea))[0].split('&-')[2]; + let targetCity = this.startAreaList.filter(x=>x.includes(this.model.startArea))[0].split('&-')[3]; + let route = this.startAreaList.filter(x=>x.includes(this.model.startArea))[0].split('&-')[4]; + let kilometers = this.startAreaList.filter(x=>x.includes(this.model.startArea))[0].split('&-')[5]; + this.model.startArea = startArea; + this.model.startCity = startCity; + this.model.targetArea = targetArea; + this.model.targetCity = targetCity; + this.model.route = route; + this.model.kilometers = kilometers; + }, + startAreaChange(val){ + this.startAreaList = this.areaCityList.filter(x => x.includes(val)); + }, + + getCarTypeLong(){ + getAction(this.url.getCarTypeLong).then(res => { + if (res.success) { + this.carTypeLongList = res.result; + this.carTypeList = res.result; + } + }) + }, + carTypeSelect(){ + let carType = this.carTypeList.filter(x=>x.includes(this.model.carType))[0].split('&-')[0]; + let carLong = this.carTypeList.filter(x=>x.includes(this.model.carType))[0].split('&-')[1]; + this.model.carType = carType; + this.model.carLong = carLong; + }, + carTypeChange(val){ + this.carTypeList = this.carTypeLongList.filter(x => x.includes(val)); + }, + + getSupplierCodeName(){ + getAction(this.url.getSupplierCodeName).then(res => { + if (res.success) { + this.supplierCodeNameList = res.result; + this.supplierCodeList = res.result; + } + }) + }, + supplierCodeSelect(){ + let supplierCode = this.supplierCodeList.filter(x=>x.includes(this.model.supplierCode))[0].split('&-')[0]; + let supplierName = this.supplierCodeList.filter(x=>x.includes(this.model.supplierCode))[0].split('&-')[1]; + this.model.supplierCode = supplierCode; + this.model.supplierName = supplierName; + }, + supplierCodeChange(val){ + this.supplierCodeList = this.supplierCodeNameList.filter(x => x.includes(val)); + }, } } \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/tms/basicdata/logisticsroute/modules/LogisticsRouteForm.vue b/ant-design-vue-jeecg/src/views/tms/basicdata/logisticsroute/modules/LogisticsRouteForm.vue index 1008d9f..558a54b 100644 --- a/ant-design-vue-jeecg/src/views/tms/basicdata/logisticsroute/modules/LogisticsRouteForm.vue +++ b/ant-design-vue-jeecg/src/views/tms/basicdata/logisticsroute/modules/LogisticsRouteForm.vue @@ -25,7 +25,7 @@ - + diff --git a/ant-design-vue-jeecg/src/views/tms/basicdata/vehicleoperator/modules/TmsVehicleOperatorForm.vue b/ant-design-vue-jeecg/src/views/tms/basicdata/vehicleoperator/modules/TmsVehicleOperatorForm.vue index 9e1bed8..b621c00 100644 --- a/ant-design-vue-jeecg/src/views/tms/basicdata/vehicleoperator/modules/TmsVehicleOperatorForm.vue +++ b/ant-design-vue-jeecg/src/views/tms/basicdata/vehicleoperator/modules/TmsVehicleOperatorForm.vue @@ -5,12 +5,12 @@ - + - + @@ -20,7 +20,7 @@ - + diff --git a/ant-design-vue-jeecg/src/views/tms/carinout/takedeliveryplan/modules/TakeDeliveryPlanForm.vue b/ant-design-vue-jeecg/src/views/tms/carinout/takedeliveryplan/modules/TakeDeliveryPlanForm.vue index 553aee6..586649d 100644 --- a/ant-design-vue-jeecg/src/views/tms/carinout/takedeliveryplan/modules/TakeDeliveryPlanForm.vue +++ b/ant-design-vue-jeecg/src/views/tms/carinout/takedeliveryplan/modules/TakeDeliveryPlanForm.vue @@ -5,7 +5,8 @@ - + + diff --git a/ant-design-vue-jeecg/src/views/tms/carinout/vehicleinout/modules/VehicleInOutForm.vue b/ant-design-vue-jeecg/src/views/tms/carinout/vehicleinout/modules/VehicleInOutForm.vue index a48890d..5cf8815 100644 --- a/ant-design-vue-jeecg/src/views/tms/carinout/vehicleinout/modules/VehicleInOutForm.vue +++ b/ant-design-vue-jeecg/src/views/tms/carinout/vehicleinout/modules/VehicleInOutForm.vue @@ -10,7 +10,8 @@ - + + @@ -20,7 +21,8 @@ - + +