From 442eb46108018f9cd83b3e5da999ea5094c27947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 27 Jun 2024 21:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E8=A1=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/allocation/allocationList.vue | 5 +- src/views/travelConf/add-or-update.vue | 41 +++++------- src/views/travelConf/index.vue | 83 +++++++++++++++---------- 3 files changed, 69 insertions(+), 60 deletions(-) diff --git a/src/views/allocation/allocationList.vue b/src/views/allocation/allocationList.vue index 1a6d831..6330fe5 100644 --- a/src/views/allocation/allocationList.vue +++ b/src/views/allocation/allocationList.vue @@ -559,7 +559,10 @@ - + diff --git a/src/views/travelConf/add-or-update.vue b/src/views/travelConf/add-or-update.vue index 343d66e..edfbf0b 100644 --- a/src/views/travelConf/add-or-update.vue +++ b/src/views/travelConf/add-or-update.vue @@ -35,28 +35,28 @@ - - - - - - - + + - + + + + + + - - + + + + + + 往返 @@ -64,7 +64,7 @@ - + @@ -161,19 +161,8 @@ let cleanField = []; if(saveData.pricingType == 1){ cleanField = [ 'seasonsType', 'timeIntervalType', 'startingPrice', 'freeKilometers', 'nightTravelExpenses', 'pricePerKilometer' ]; - if(saveData.travelType == 1) { - //免费的,重置价格 - saveData.fixedPrice = 0; - } }else if(saveData.pricingType == 2) { cleanField = [ 'fixedType', 'fixedPrice' ]; - if(saveData.travelType == 1) { - //免费的,重置价格 - saveData.startingPrice = 0; - saveData.freeKilometers = 0; - saveData.nightTravelExpenses = 0; - saveData.pricePerKilometer = 0; - } } if(cleanField.length){ cleanField.forEach(key => { diff --git a/src/views/travelConf/index.vue b/src/views/travelConf/index.vue index 2aed6a9..39130c6 100644 --- a/src/views/travelConf/index.vue +++ b/src/views/travelConf/index.vue @@ -33,7 +33,7 @@ 查询 - + @@ -66,14 +66,19 @@ 夜间 - - - - - - - + + + + + + + + +