From 4eb311a9fa66acbfb504da6b771baee4cbd6b88e Mon Sep 17 00:00:00 2001
From: tx <2622874537@qq.com>
Date: Wed, 23 Oct 2024 18:03:25 +0800
Subject: [PATCH] 11
---
App.vue | 81 +----
{pages => page_user}/my.vue | 0
pages.json | 42 +--
pages/index/index.vue | 349 ++-------------------
pages_admin/admin_order.vue | 494 ++++++++++++++++++------------
pages_adminSet/ChargingDetail.vue | 89 +++++-
pages_adminSet/modelMt.vue | 148 +++++++--
pages_adminSet/sysSet.vue | 57 ++++
8 files changed, 593 insertions(+), 667 deletions(-)
rename {pages => page_user}/my.vue (100%)
diff --git a/App.vue b/App.vue
index 3143ca6..3136d6a 100644
--- a/App.vue
+++ b/App.vue
@@ -7,86 +7,7 @@
// #endif
},
- // onLaunch: function() {
- // uni.removeStorageSync('userInfo');
- // const updateManager = uni.getUpdateManager(); //本API返回全局唯一的版本更新管理器对象: updateManager,用于管理小程序更新。
- // console.log('---------------------');
- // console.log(updateManager);
- // updateManager.onCheckForUpdate((res) => { //当向小程序后台请求完新版本信息,进行回调方法
- // if (res.hasUpdate) {
- // updateManager.onUpdateReady((res) => { //当新版本下载完成,会进行回调
- // uni.showModal({
- // title: '更新提示',
- // content: '新版本已经准备好,是否重启应用?',
- // success(res) {
- // if (res.confirm) {
- // // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
- // updateManager.applyUpdate();
- // }
- // }
- // });
- // });
- // updateManager.onUpdateFailed((res) => {
- // // 新的版本下载失败
- // uni.showModal({
- // title: '更新提示',
- // content: '检查到有新版本,但下载失败,请检查网络设置',
- // success(res) {
- // if (res.confirm) {
- // // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
- // updateManager.applyUpdate();
- // }
- // }
- // });
- // });
- // }
- // })
-
- // // #ifdef APP-PLUS
- // let userInfo = uni.getStorageSync('userInfo') || '';
- // console.log("看看缓存",uni.getStorageInfoSync())
- // console.log("看看缓存token",uni.getStorageSync('token'))
- // console.log("看看缓存userInfo",uni.getStorageSync('userInfo'))
- // if(userInfo.id){
- // uni.getStorage({
- // key:"token",
- // success: (res) => {
- // this.globalData.token = res.token
- // },
- // fail: (res) => {
- // console.log("获取token时出错",res)
- // }
- // })
- // uni.getStorage({
- // key: 'userInfo',
- // success: (res) => {
- // // this.login(res.data)
- // this.globalData.userInfo = res.userInfo
- // uni.redirectTo({
- // url:"/pages/speakingPage/speakingPage",
- // fail: (res) => {
- // console.log("页面跳转失败",res)
- // }
- // })
- // },
- // fail: (res) => {
- // console.log("获取userInfo时出错",res)
- // }
- // })
-
- // }else{
- // uni.redirectTo({
- // url:"/pages/login/login",
- // fail:function(mes){
- // console.log(mes)
- // },
- // success:function(mes){
- // console.log(mes)
- // }
- // })
- // }
- // // #endif
- // },
+
onLaunch(options) {
uni.setInnerAudioOption({
obeyMuteSwitch: false
diff --git a/pages/my.vue b/page_user/my.vue
similarity index 100%
rename from pages/my.vue
rename to page_user/my.vue
diff --git a/pages.json b/pages.json
index 04d7eb8..6b0bfbd 100644
--- a/pages.json
+++ b/pages.json
@@ -21,16 +21,9 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
- },
- {
- "path": "pages/my",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
}
+
],
@@ -415,30 +408,7 @@
"navigationStyle": "custom"
}
},
- // {
- // "path": "cktcd",
- // "style": {
- // "navigationBarTitleText": "上传",
- // "enablePullDownRefresh": false,
- // "navigationStyle": "custom"
- // }
- // },
- // {
- // "path": "qrks",
- // "style": {
- // "navigationBarTitleText": "上传",
- // "enablePullDownRefresh": false,
- // "navigationStyle": "custom"
- // }
- // },
- // {
- // "path": "ks",
- // "style": {
- // "navigationBarTitleText": "上传",
- // "enablePullDownRefresh": false,
- // "navigationStyle": "custom"
- // }
- // },
+
{
"path": "xcjs",
"style": {
@@ -549,6 +519,14 @@
"enablePullDownRefresh" : false,
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "my",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
}
// 其他 userpages 目录下的页面...
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 458f93d..b3b2ae9 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -2383,11 +2383,7 @@
setTimeout(() => {
// uni.hideLoading()
if (this.devicesList.length == 0) {
- // uni.showToast({
- // title: '暂无发现对应设备,请靠近设备',
- // icon: 'none',
- // duration: 1500
- // });
+
this.maskepage = 5
} else {
let uniqueDevicesList = Array.from(new Set(this.devicesList));
@@ -2573,44 +2569,7 @@
}
} else {
that.maskepage = 2
- // if(that.OrderdeviceInfos.onlineStatus == 1){
- // // 设备未离线
- // that.maskepage=2
- // }else{
- // // if (that.carstause) {
-
- // // that.$u.post('/appVerify/device/return?returnType=1&orderNo=' + that.orderinfo
- // // .orderNo + '&isBluetooth=true' + '&lon=' + that.backgps.longitude + '&lat=' + that.backgps
- // // .latitude).then((
- // // res) => {
-
- // // if (res.code === 200) {
- // // that.reboot()
- // // that.isbackdevice = false
-
- // // that.loadimg = 'https://lxnapi.ccttiot.com/bike/img/static/ukD735zCS1yQXw2aGun8';
- // // that.toploadtxt = '还车成功!';
- // // setTimeout(() => {
- // // that.maskloading = false;
- // // that.getisInOrder();
- // // }, 1000);
- // // // that.close()
- // // // that.getisInOrder()
-
- // // } else {
- // // uni.showToast({
- // // title: res.msg,
- // // icon: 'none',
- // // duration: 2000
- // // });
- // // }
- // // })
- // // } else {
- // // that.maskepage=3
- // // // that.isbackdevice = false
- // // // that.isnoline = true
- // // }
- // // }
+
}
}
@@ -2783,15 +2742,7 @@
this.backfalse = this.backfalse + 1
this.cheackgps()
- // this.toploadtxt = '还车失败';
- // setTimeout(() => {
- // this.maskloading = false;
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
- // }, 1000);
+
}
})
@@ -3077,17 +3028,7 @@
- // this.setMapScale()
- // if(!hasShownPopup){
- // console.log(typeof(hasShownPopup),'hasShownPopuphasShownPopup');
- // this.showTips=uni.getStorageSync('hasShownPopup')
- // }else{
- // this.showTips=true
- // uni.setStorageSync('hasShownPopup', true);
- // }
-
- // this.$store.commit('SET_SHOWTIPS', true);
- // console.log(this.polyline);
+
} else {
uni.showToast({
title: res.msg,
@@ -3259,25 +3200,7 @@
} else {
this.backfalse = this.backfalse + 1
this.unloackdevices()
- // this.toploadtxt = '开锁失败';
- // setTimeout(() => {
- // this.maskloading = false;
- // }, 1000);
- // if (res.msg == '10500-----') {
-
- // uni.showToast({
- // title: '系统异常,请重新尝试',
- // icon: 'none',
- // duration: 2000
- // });
- // } else {
-
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
- // }
+
}
})
@@ -3390,29 +3313,7 @@
} else {
this.backfalse = this.backfalse + 1
this.loackdevice()
- // this.toploadtxt = '锁车失败';
- // setTimeout(() => {
- // this.maskloading = false;
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
- // }, 1000);
-
- // if (res.msg == '10500-----') {
- // uni.showToast({
- // title: '系统异常,请重新尝试',
- // icon: 'none',
- // duration: 2000
- // });
- // } else {
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
- // }
+
}
})
@@ -3465,32 +3366,14 @@
}, 1000);
- // if (res.msg == '10500-----') {
- // uni.showToast({
- // title: '系统异常,请重新尝试',
- // icon: 'none',
- // duration: 2000
- // });
- // } else {
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
- // }
+
}
})
},
fail: function(error) {
- // uni.showToast({
- // title: '未获取到定位信息,请点击设置勾选允许位置信息,即可使用全部功能',
- // icon: 'none',
- // duration: 2000
- // });
- // that.getmarks()
- // 在这里处理获取位置信息失败的情况
+
}
})
@@ -3545,25 +3428,13 @@
deviceId: options.data.deviceId
});
- // xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvents);
-
- // this.deviceIds = options.data.deviceId
- // this.name = options.data.name
- // 连接成功绑定设备
- // let params = {
- // mac: this.Bluetoothmac,
- // userId: this.$store.state.user.userId
- // }
+
let systemInfo = uni.getSystemInfoSync();
if (systemInfo.platform === 'android') {
// 当前设备是 Android
} else if (systemInfo.platform === 'ios') {
- // 当前设备是 iOS
- // uni.navigateTo({
- // url: '/pages/wifilist/index?deviceId=' + options
- // .data.deviceId + '&name=' + options.data.name
- // })
+
}
}
if (options.result == false) {
@@ -3578,18 +3449,7 @@
}, 800)
}
- // uni.showModal({
- // title: '很抱歉提醒你!',
- // content: '小程序与设备异常断开',
- // showCancel: false,
- // success: function(res) {
- // // uni.navigateBack({
- // // url: '../search/search'
- // // });
- // }
- // });
- // this.statusflag = false
- // uni.hideLoading();
+
}
break;
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA:
@@ -3663,22 +3523,7 @@
this.maskepage = 5
}, 800)
}
- // uni.showToast({
- // title: '设备断开链接,请重新点击蓝牙链接',
- // icon: 'none'
- // });
- // uni.showModal({
- // title: '很抱歉提醒你!',
- // content: '小程序与设备异常断开',
- // showCancel: false,
- // success: function(res) {
- // // uni.navigateBack({
- // // url: '../search/search'
- // // });
- // }
- // });
- // this.statusflag = false
- // uni.hideLoading();
+
}
}
break;
@@ -3711,12 +3556,7 @@
//4、建立连接
createBLEConnection(e) {
- // this.loadingmask = true
-
- // uni.showLoading({
- // title: '绑定中..'
- // })
- // console.log('调用了');
+
xBlufi.notifyStartDiscoverBle({
'isStart': false
});
@@ -3731,17 +3571,7 @@
deviceId: e.deviceId,
name
});
- // setTimeout(() => {
- // uni.hideLoading()
- // }, 3000)
- // for (var i = 0; i < this.devicesList.length; i++) {
- // if (e.deviceId === this.devicesList[i].deviceId) {
-
- // uni.showLoading({
- // title: '连接蓝牙设备中...'
- // });
- // }
- // }
+
},
@@ -3953,24 +3783,6 @@
})
},
- // lockDevice() {
- // if (this.orderinfo.status) {
- // this.showtcs = true
- // } else {
- // if (this.deviceInfos.status != 1) {
- // uni.showToast({
- // title: '车辆正在使用中,请使用其他车辆',
- // icon: 'none',
- // duration: 2000
- // });
- // } else {
- // this.showdevice = true;
- // this.type = 1;
- // this.deviceIndex = 1;
- // }
- // }
-
- // },
changetips() {
if (this.countdown <= 0) {
if (this.showTips) {
@@ -4310,11 +4122,7 @@
if (res.code == 200) {
} else {
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
+
}
});
},
@@ -4706,12 +4514,7 @@
this.freeInfo = this.freList[0]
this.freeListIndex = 1
console.log(this.freList, this.freeInfo, ' this.freList this.freList');
- // setTimeout(()=>{
-
- // console.log(this.freeListIndex,'this.freeListIndexthis.freeListIndexthis.freeListIndex');
- // },300)
-
-
+
} else {
uni.showToast({
title: '未登录,请登录后尝试',
@@ -4729,13 +4532,7 @@
this.showtcs = true
} else {
if (this.$store.getters.userId == undefined) {
- // this.$u.get("/getAppInfo").then((res) => {
- // console.log('进入跳转');
- // if(res.code==200){
- // this.$store.commit('SET_USERID', res.user.userId);
-
- // }
- // });
+
this.$store.dispatch('userInfo', this.$u).then(() => {
this.deviceIndex = 1
this.type = 2
@@ -4785,11 +4582,7 @@
uni.showLoading({
})
- // uni.showToast({
- // title: '响铃请求发送成功',
- // icon: 'none',
- // duration: 2000
- // });
+
this.$u.post('/app/device/ring?sn=' + this.sn).then((res) => {
if (res.code === 200) {
uni.hideLoading()
@@ -5008,109 +4801,7 @@
uni.navigateTo({
url: '/pages/login/login?isindex=true'
});
- // wx.login({
- // success(res) {
- // if (res.code) {
- // console.log('登录成功!', res);
- // let areaId = uni.getStorageSync('areaId');
- // uni.showLoading({
- // title: '登录中...'
- // });
- // that.$u.post('/loginByopenid?jsCode=' + res.code + '&areaId=' +
- // areaId)
- // .then(res => {
- // uni.hideLoading();
- // if (res.code == 200) {
- // uni.setStorageSync('token', res.token);
- // if (that.areaInfo.authentication == 1) {
- // that.$u.get("/getAppInfo").then(res => {
- // if (res.code == 200) {
- // that.userinfo = res.user;
- // that.$store.commit(
- // 'SET_USERID', res
- // .user.userId);
- // if (res.user
- // .isAuthentication == 0) {
- // uni.hideLoading()
- // that.seeDetail = true;
- // that.tozf = true
- // uni.navigateTo({
- // url: "/page_user/idcard_test"
- // });
- // } else {
- // that.seeDetail = true;
- // that.tozf = true
- // uni.hideLoading()
- // console.log('跳转3');
- // uni.navigateTo({
- // url: '/page_user/yj?isback=' +
- // that
- // .showYjTip
- // });
- // that.showYjTip = false
- // }
- // } else {
- // uni.hideLoading()
- // uni.showToast({
- // title: '未登录,请登录后尝试',
- // icon: 'none',
- // duration: 2000
- // });
- // }
- // });
- // } else {
- // that.tozf = true
- // that.seeDetail = true;
- // uni.hideLoading()
- // console.log('跳转4');
- // uni.navigateTo({
- // url: '/page_user/yj?isback=' + that
- // .showYjTip
- // });
- // that.showYjTip = false
- // }
- // } else if (res.code == 501) {
- // uni.hideLoading()
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
- // } else {
- // uni.hideLoading()
- // uni.redirectTo({
- // url: '/pages/login/login'
- // });
- // }
- // }).catch(err => {
- // uni.hideLoading();
- // uni.showToast({
- // title: '请求失败,请稍后重试',
- // icon: 'none',
- // duration: 2000
- // });
- // console.error('请求失败:', err);
- // });
- // } else {
- // uni.hideLoading()
- // uni.showToast({
- // title: '登录失败,请重试',
- // icon: 'none',
- // duration: 2000
- // });
- // console.error('微信登录失败:', res);
- // }
- // },
- // fail(err) {
- // uni.hideLoading()
- // uni.showToast({
- // title: '微信登录接口调用失败',
- // icon: 'none',
- // duration: 2000
- // });
- // console.error('微信登录接口调用失败:', err);
- // }
- // });
+
this.showYjTip = false
@@ -5150,7 +4841,7 @@
// console.log('点击了');
this.sn = ''
uni.navigateTo({
- url: '/pages/my'
+ url: '/page_user/my'
})
} else if (num == 7) {
diff --git a/pages_admin/admin_order.vue b/pages_admin/admin_order.vue
index 9291a4d..d89591e 100644
--- a/pages_admin/admin_order.vue
+++ b/pages_admin/admin_order.vue
@@ -45,11 +45,12 @@
待支付
-
+
已完成
-
+
待审核
@@ -60,8 +61,8 @@
-
+
@@ -159,10 +160,12 @@
退款
-
+
-
+
查看详情
@@ -221,12 +224,12 @@
订单费用:{{item.totalFee}}元
-
-
+
+
有无退款:无
有
-
+
@@ -254,10 +257,12 @@
退款
-
-
+
+
-
+
查看详情
@@ -292,17 +297,17 @@
-
-
- 租赁用户:{{item.phonenumber}}
+
+
+ 租赁用户:{{item.phonenumber}}
+
+
+ 用户姓名:{{item.realName}}
+
+
+ 用户姓名:--
+
-
- 用户姓名:{{item.realName}}
-
-
- 用户姓名:--
-
-
车辆编号:{{item.sn}}
@@ -315,12 +320,12 @@
订单费用:{{item.totalFee}}元
-
-
+
+
有无退款:无
有
-
+
@@ -348,10 +353,12 @@
退款
-
-
+
+
-
+
查看详情
@@ -410,12 +417,12 @@
订单费用:{{item.totalFee}}元
-
-
+
+
有无退款:无
有
-
+
@@ -440,10 +447,12 @@
退款
-
-
+
+
-
+
查看详情
@@ -487,7 +496,7 @@
待官方审核
-
+
@@ -181,7 +181,7 @@
timeoutPrice: '',
timeoutTime: '',
data: {
- name: '111',
+ name: '',
instructions: '按小时计费',
status: "0",
autoRefundDeposit: '0',
@@ -294,6 +294,87 @@
}
},
sub() {
+ if (!this.data.name) {
+ uni.showToast({
+ title: '请填写套餐名称',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.data.instructions) {
+ uni.showToast({
+ title: '请填写套餐说明',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.data.freeRideTime) {
+ uni.showToast({
+ title: '请填写免费骑行时间',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.data.autoRefundDeposit) {
+ uni.showToast({
+ title: '请填写换车结算时间',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.startingPrice) {
+ uni.showToast({
+ title: '请填写起步价',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.startingTime) {
+ uni.showToast({
+ title: '请填写起步价包含的时间',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+
+ if (!this.timeoutPrice) {
+ uni.showToast({
+ title: '请填写超出价',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.timeoutTime) {
+ uni.showToast({
+ title: '请填写超出价的时间',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.data.chargingCycleValue) {
+ uni.showToast({
+ title: '请填写计费周期',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.data.cappedAmount) {
+ uni.showToast({
+ title: '请填写封顶金额',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
if (!/^\d+$/.test(this.startingTime)) {
uni.showToast({
title: '起步时间必须为正整数',
diff --git a/pages_adminSet/modelMt.vue b/pages_adminSet/modelMt.vue
index 0050f35..b5b7a76 100644
--- a/pages_adminSet/modelMt.vue
+++ b/pages_adminSet/modelMt.vue
@@ -106,34 +106,51 @@
-->
-
-
- 收费模版
-
-
-
- {{getAccessoryNames()}}
-
-
+
+
+
+
+ 收费模版
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ name }}
+
+
+
+
-
-
+
选择收费方式
-
- {{item.name}}
-
-
-
+
+
+ {{item.name}}
+
+
+
+
+
确定
@@ -199,6 +216,9 @@
},
methods: {
+ closepart(){
+ this.showpart=false
+ },
getmodelInfo() {
@@ -213,10 +233,12 @@
},
backpage(){
uni.redirectTo({
- url:'/pages_admin/worke/CarModel'
+ url:'/pages_adminSet/CarModel'
})
},
sub() {
+
+
if (!this.data.model) {
uni.showToast({
title: '请填写车型名称',
@@ -243,7 +265,15 @@
}
if (!this.data.fullEndurance) {
uni.showToast({
- title: '请填写亏电电压',
+ title: '请填写续航公里数',
+ icon: 'none',
+ duration: 2000
+ });
+ return;
+ }
+ if (this.data.ruleIds.length<1) {
+ uni.showToast({
+ title: '请选择收费模版',
icon: 'none',
duration: 2000
});
@@ -302,14 +332,23 @@
getAccessoryNames(accessoryIds) {
// 根据 accessoryIds 找到 Accessorylist 中对应的 name 字段
// 遍历 accessoryIds 数组,根据每个 id 找到 Accessorylist 中对应的 name 字段
- const accessoryNames = this.data.ruleIds.map(id => {
- console.log(id);
- const item = this.Accessorylist.find(accessory => accessory.ruleId === id);
- return item ? item.name : '';
- });
+ // const accessoryNames = this.data.ruleIds.map(id => {
+ // console.log(id);
+ // const item = this.Accessorylist.find(accessory => accessory.ruleId === id);
+ // return item ? item.name : '';
+ // });
- // 拼接 name 字符串,过滤掉空值
- return accessoryNames.filter(name => name).join(', ');
+ // // 拼接 name 字符串,过滤掉空值
+ // return accessoryNames.filter(name => name).join(', ');
+
+ // 根据 accessoryIds 找到 Accessorylist 中对应的 name 字段
+ const accessoryNames = this.data.ruleIds.map(id => {
+ const item = this.Accessorylist.find(accessory => accessory.ruleId === id);
+ return item ? item.name : '';
+ });
+
+ // 过滤掉空值并返回数组
+ return accessoryNames.filter(name => name);
},
getAccessorylist() {
let data ={
@@ -374,7 +413,7 @@
justify-content: center;
// width: 160rpx;
// height: 60rpx;
- padding: 4rpx 8rpx;
+ padding: 10rpx 20rpx;
background: #F0F0F0;
border-radius: 6rpx 6rpx 6rpx 6rpx;
border: 1rpx solid #F0F0F0;
@@ -472,7 +511,58 @@
.card_li:last-child {
border-bottom: 1rpx solid #fff;
}
-
+ .card_li1{
+ padding-top: 24rpx;
+ display: flex;
+ flex-wrap: wrap;
+ .taocan{
+ margin-top: 10rpx;
+ padding-bottom: 20rpx;
+ display: flex;
+ flex-wrap: wrap;
+ .tc_li{
+ padding: 8rpx 14rpx;
+ margin-right: 20rpx;
+
+ background: #DCEDFF;
+ border-radius: 6rpx 6rpx 6rpx 6rpx;
+ font-weight: 400;
+ font-size: 26rpx;
+ color: #4297F3;
+ }
+ }
+ .card_top{
+ display: flex;
+ flex-wrap: nowrap;
+ align-content: center;
+ justify-content: space-between;
+ width: 100%;
+ border-bottom: 1rpx solid #D8D8D8;
+ padding-bottom: 18rpx;
+ .card_left {
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #3D3D3D;
+ }
+
+ .card_right {
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+
+ span {
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #3D3D3D;
+ }
+
+ .input {
+ text-align: right;
+ /* 输入框内容靠右显示 */
+ }
+ }
+ }
+ }
.card_li {
padding-top: 24rpx;
display: flex;
diff --git a/pages_adminSet/sysSet.vue b/pages_adminSet/sysSet.vue
index d8ba7a2..134c4da 100644
--- a/pages_adminSet/sysSet.vue
+++ b/pages_adminSet/sysSet.vue
@@ -463,6 +463,63 @@
}
},
sub() {
+ if (!this.form.areaName) {
+ uni.showToast({
+ title: '请填写运营期名称',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.form.dispatchFee) {
+ uni.showToast({
+ title: '请填写运营区外调度费',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+
+ if (!this.form.vehicleManagementFee) {
+ uni.showToast({
+ title: '请填写停车点外调度费',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.form.error) {
+ uni.showToast({
+ title: '请填写还车误差',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.form.deposit) {
+ uni.showToast({
+ title: '请填写骑行押金',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.form.undercharge) {
+ uni.showToast({
+ title: '请填写骑行最低电量',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
+ if (!this.form.autoReplacementOrder) {
+ uni.showToast({
+ title: '请填写自动生成换电工单电量',
+ icon: 'none',
+ duration: 2000
+ });
+ return; // 阻止请求继续执行
+ }
let data = {
...this.form
};