From 4a4ecbc2965b7cf9548c5fb4925a17018fe79c33 Mon Sep 17 00:00:00 2001
From: Sliverber <2622874537@qq.com>
Date: Tue, 28 May 2024 13:53:17 +0800
Subject: [PATCH] 11
---
src/views/system/fee/index.vue | 59 +++++++++++++++++++---------------
src/views/user/user/index.vue | 2 +-
2 files changed, 34 insertions(+), 27 deletions(-)
diff --git a/src/views/system/fee/index.vue b/src/views/system/fee/index.vue
index b594bcb..7539922 100644
--- a/src/views/system/fee/index.vue
+++ b/src/views/system/fee/index.vue
@@ -43,8 +43,8 @@
-
-
+
@@ -133,13 +133,13 @@
-
+
元(含
-
+
{{ timeUnit }})
@@ -149,13 +149,13 @@
-
+
元/
-
+
{{ timeUnit }}(超出起步价后)
@@ -339,10 +339,10 @@ export default {
// chargingCycle: 1, // 默认选择第一个选项
// chargingCycleValue: '', // 对应的值
},
- exceedTime: '',
- startPrice: '',
- startTime: '',
- exceedPrice: '',
+ timeoutTime: '',
+ startingPrice: '',
+ startingTime: '',
+ timeoutPrice: '',
enablelnterval: false,
rule: [{ start: '', end: '', eachUnit: '', fee: '' }],
more: { start: '', end: '9999', eachUnit: '', fee: '' },
@@ -452,10 +452,10 @@ export default {
this.enablelnterval = false,
this.more = { start: '', end: '9999', eachUnit: '', fee: '' }
this.rule = [{ start: '', end: '', eachUnit: '', fee: '' }],
- this.exceedTime = '',
- this.startPrice = '',
- this.startTime = '',
- this.exceedPrice = '',
+ this.timeoutTime = '',
+ this.startingPrice = '',
+ this.startingTime = '',
+ this.timeoutPrice = '',
this.resetForm("form")
},
handleQuery() {
@@ -481,13 +481,20 @@ export default {
const ruleId = row.ruleId || this.ids;
getFee(ruleId).then(response => {
this.form = response.data;
+ if(this.form.rentalUnit=='minutes'){
+ this.timeUnit='分钟'
+ }else if(this.form.rentalUnit=='hours'){
+ this.timeUnit='小时'
+ }else if(this.form.rentalUnit=='day'){
+ this.timeUnit='天'
+ }
// delete this.form.ridingRuleJson;
let json = JSON.parse(response.data.ridingRuleJson)
if (this.form.ridingRule == 1) {
- this.exceedTime = json.exceedTime
- this.startPrice = json.startPrice
- this.startTime = json.startTime
- this.exceedPrice = json.exceedPrice
+ this.timeoutTime = json.timeoutTime
+ this.startingPrice = json.startingPrice
+ this.startingTime = json.startingTime
+ this.timeoutPrice = json.timeoutPrice
} else {
this.rule = json.rule.slice(0, -1);
@@ -514,10 +521,10 @@ export default {
data.ridingRuleJson.enablelnterval = this.enablelnterval
} else {
- data.ridingRuleJson.exceedTime = this.exceedTime
- data.ridingRuleJson.startPrice = this.startPrice
- data.ridingRuleJson.startTime = this.startTime
- data.ridingRuleJson.exceedPrice = this.exceedPrice
+ data.ridingRuleJson.timeoutTime = this.timeoutTime
+ data.ridingRuleJson.startingPrice = this.startingPrice
+ data.ridingRuleJson.startingTime = this.startingTime
+ data.ridingRuleJson.timeoutPrice = this.timeoutPrice
}
data.ridingRuleJson = JSON.stringify(data.ridingRuleJson);
@@ -566,10 +573,10 @@ export default {
this.enablelnterval = false
this.rule = [{ start: '', end: '', eachUnit: '', fee: '' }]
- this.exceedTime = ''
- this.startPrice = ''
- this.startTime = ''
- this.exceedPrice = ''
+ this.timeoutTime = ''
+ this.startingPrice = ''
+ this.startingTime = ''
+ this.timeoutPrice = ''
}
},
}
diff --git a/src/views/user/user/index.vue b/src/views/user/user/index.vue
index f38d3ee..c8e5442 100644
--- a/src/views/user/user/index.vue
+++ b/src/views/user/user/index.vue
@@ -549,7 +549,7 @@ export default {
handleBandSysUser(row){
this.reset();
const userId = row.userId || this.ids;
- getSysUserList(userId).then(response => {
+ getSysUserList({"userType":"00"}).then(response => {
this.sysUserOptions = response.rows;
this.form.userId = userId;
this.open2 = true;