diff --git a/.env.development b/.env.development
index c755677..dd4d3cb 100644
--- a/.env.development
+++ b/.env.development
@@ -6,5 +6,6 @@ VITE_APP_ENV = 'development'
# 开发环境
VITE_APP_BASE_API = 'http://192.168.5.213:9100/gateway'
+#VITE_APP_BASE_API = 'http://192.168.5.14:9100/gateway'
#VITE_APP_BASE_API = '/dev-api'
#VITE_APP_BASE_API = 'https://api.evo-techina.com'
diff --git a/src/api/order/account.ts b/src/api/order/account.ts
index 8faca85..8860233 100644
--- a/src/api/order/account.ts
+++ b/src/api/order/account.ts
@@ -4,7 +4,8 @@ import server from '@/utils/request'
interface Addobj{
ownerType:String //户主类型:1-个人,2-企业
ownerId:String //户主ID
- stationCode:String //引入站点
+ accName?:String //户主名称
+ stationCode?:String //引入站点
pkId?:String
totalAmount?:String|Number //账户总金额,分:总金额=充值金额+赠送金额
rechargeAmount?:String|Number //充值余额,分
diff --git a/src/api/swapstation/hdz.ts b/src/api/swapstation/hdz.ts
index fc4fb7a..8996ec9 100644
--- a/src/api/swapstation/hdz.ts
+++ b/src/api/swapstation/hdz.ts
@@ -90,4 +90,15 @@ export function getqrcode(params:Codeqs) {
params,
responseType:'blob'
})
-}
\ No newline at end of file
+}
+
+//生成站点公钥
+export function publicKey(stationCode:any) {
+ return server.request({
+ url: '/cloud/batterystation/rsa_secret_key',
+ method: 'post',
+ data:{
+ stationCode
+ }
+ })
+}
diff --git a/src/utils/validate.ts b/src/utils/validate.ts
index 26a88f4..174b28b 100644
--- a/src/utils/validate.ts
+++ b/src/utils/validate.ts
@@ -109,10 +109,10 @@ export function setNum(v?:any){
//只能输入两个小数
v = v.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')
- if(/^0+[1-9]$/.test(v) || /^0+\d+\./.test(v)) {
+ if(/^0+[1-9]\d*\.*/.test(v)) {
v = v.replace(/^0+/,'')
}
- if(/^(0+\.)/.test(v) || /^0+\.$/.test(v) || /^0+$/.test(v)) {
+ if(/^0+\.*/.test(v)) {
v = v.replace(/^0+/,'0')
}
return v
@@ -123,6 +123,7 @@ export function setNum(v?:any){
export function carNum(rule:any, value:any, callback:any) {
if(value.length > 0){
const regExp = new RegExp(/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF][A-HJ-NP-Z0-9][0-9]{4}))$/)
+ //const regExp = new RegExp(/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[0-9][A-Z]$/)
if (!regExp.test(value)) {
return callback(new Error('车牌号格式不正确'))
}
diff --git a/src/views/components/detailstit.vue b/src/views/components/detailstit.vue
index 8f0a819..983ab01 100644
--- a/src/views/components/detailstit.vue
+++ b/src/views/components/detailstit.vue
@@ -10,8 +10,12 @@
-
-
查看小程序码
+
+
+
+
@@ -20,6 +24,24 @@
+
+
+
+
+
+
+
+
+
+ 下载
+
\ No newline at end of file
diff --git a/src/views/order/account/baldetails.vue b/src/views/order/account/baldetails.vue
index 156e6ff..a997f12 100644
--- a/src/views/order/account/baldetails.vue
+++ b/src/views/order/account/baldetails.vue
@@ -1,11 +1,11 @@
-
新增
+ @click="showpop(1)">新增 -->
-
+
+
+
+ 充值
+ 支付
+ 提现
+
+
+
+
{{scope.row.preTotalAmount/100}}
-
+
{{scope.row.preRechargeAmount/100}}
-
+
{{scope.row.preGiftAmount/100}}
-
+
{{scope.row.tradeTotalAmount/100}}
-
+
{{scope.row.tradeRechargeAmount/100}}
-
+
{{scope.row.tradeGiftAmount/100}}
-
+
{{scope.row.afterTotalAmount/100}}
-
+
{{scope.row.afterRechargeAmount/100}}
-
+
{{scope.row.afterGiftAmount/100}}
-
+
删除
-
+ -->
diff --git a/src/views/order/account/index.vue b/src/views/order/account/index.vue
index a855d7c..91ada9d 100644
--- a/src/views/order/account/index.vue
+++ b/src/views/order/account/index.vue
@@ -12,6 +12,13 @@
+
+
+
@@ -24,7 +31,7 @@
-
+
-
-
- {{scope.row.code}}
-
-
+
+
+ {{scope.row.accName?scope.row.accName:'暂未设置'}}
+
+
-
- 个人
- 企业
-
-
+
+ 个人
+ 企业
+
+
+
+
-
+
{{scope.row.totalAmount/100}}
-
+
{{scope.row.rechargeAmount/100}}
-
+
{{scope.row.giftAmount/100}}
-
+
{{scope.row.point/100}}
-
+
{{scope.row.deposit/100}}
-
+
{{scope.row.rent/100}}
-
+
-
删除
-
+ -->
-
+
+
@@ -256,7 +264,7 @@
@@ -268,6 +276,7 @@
:model="addata"
:rules="rules"
label-width="120px">
+
@@ -287,7 +296,15 @@
-
+
+
+
+
+
-
({
pkId:'',
- ownerType:'2', //户主类型:1-个人,2-企业
+ ownerType:'2', //户主类型:1-个人,2-企业
ownerId:'', //户主ID
+ accName:'', //户主名称
stationCode:'', //引入站点
stationName:'', //换电站名称 ??
totalAmount:'', //账户总金额,分:总金额=充值金额+赠送金额
@@ -562,16 +588,17 @@
addata.pkId = row.pkId
addata.ownerType = row.ownerType+''
- addata.ownerId = row.ownerId
+ addata.ownerId = row.ownerId
+ addata.accName = row.accName
addata.stationCode = row.stationCode
addata.stationName = row.stationName
addata.totalAmount = row.totalAmount?row.totalAmount/100:0
addata.rechargeAmount = row.rechargeAmount?row.rechargeAmount/100:0
addata.giftAmount = row.giftAmount?row.giftAmount/100:0
- addata.point = row.point
- addata.deposit = row.deposit
+ addata.point = row.point?row.point/100:0
+ addata.deposit = row.deposit?row.deposit/100:0
addata.snCode = row.snCode?row.snCode:''
- addata.rent = row.rent
+ addata.rent = row.rent?row.rent/100:0
standardId.value = row.pkId
bzName.value = row.name
@@ -581,7 +608,8 @@
}else{
addata.pkId = ''
addata.ownerType = '2'
- addata.ownerId = ''
+ addata.ownerId = ''
+ addata.accName = ''
addata.stationCode = ''
addata.stationName = ''
addata.totalAmount = ''
@@ -590,14 +618,21 @@
addata.point = ''
addata.deposit = ''
addata.snCode = ''
- addata.rent = ''
+ addata.rent = ''
+
+ qswxuser.value = ''
}
}
function savehand() {
+ let objData = Object.assign({},addata,{
+ totalAmount:addata.totalAmount*100,
+ rechargeAmount:addata.rechargeAmount*100,
+ giftAmount:addata.giftAmount*100
+ })
if(type.value == 1){
- return addhdz(addata)
+ return addhdz(objData)
}
- return update(addata)
+ return update(objData)
}
//保存
@@ -605,10 +640,7 @@
yysRef.value?.validate((valid:Boolean) => {
if (valid) {
- addata.totalAmount = addata.totalAmount*100
-
- addata.rechargeAmount = addata.rechargeAmount*100
- addata.giftAmount = addata.giftAmount*100
+
savehand().then(() => {
ElMessage({
@@ -682,6 +714,7 @@
function changetype() {
qswxuser.value = ''
addata.ownerId = ''
+ addata.accName = ''
}
//获取微信用户
function getuser(v:any) {
@@ -716,6 +749,7 @@
}
return {
value: n.cname,
+ name:n.cname,
id: n.ccode
}
@@ -732,18 +766,21 @@
}
function qsautoblur() {
- if(addata.ownerId === ''){
- qswxuser.value = ''
- }
- }
+ if(addata.ownerId === ''){
+ qswxuser.value = ''
+ addata.accName = ''
+ }
+ }
- function qsautoclear() {
- addata.ownerId = ''
- }
+ function qsautoclear() {
+ addata.ownerId = ''
+ addata.accName = ''
+ }
- function qshandleSelect(v: any) {
- addata.ownerId = v.id
- }
+ function qshandleSelect(v: any) {
+ addata.ownerId = v.id
+ addata.accName = v.name
+ }
getyys()
diff --git a/src/views/order/replabatt/index.vue b/src/views/order/replabatt/index.vue
index 18761d4..b4ca0d5 100644
--- a/src/views/order/replabatt/index.vue
+++ b/src/views/order/replabatt/index.vue
@@ -61,11 +61,11 @@
-
新增
+ @click="showpop(1)">新增 -->
+
+
@@ -162,12 +164,11 @@
-
+
删除
-
+ -->
-
+
@@ -487,6 +488,27 @@
+
+
+
+ 预约人:
+ {{xqobj.orderPreUname}}
+
+
+
+
+ 预约人电话:
+ {{xqobj.orderPrePhone?xqobj.orderPrePhone:''}}
+
+
+
+
+ 交易编码:
+ {{xqobj.tradeNo}}
+
+
+
+
@@ -503,7 +525,7 @@
基础费用:
- {{xqobj.basicFee}}元
+ {{xqobj.basicFee/100}}元
@@ -524,7 +546,7 @@
服务费:
- {{xqobj.serviceFee}}元
+ {{xqobj.serviceFee/100}}元
@@ -626,33 +648,27 @@
{{xqobj.changeLane == 1?'A车道':'B车道'}}
-
-
- 交易编码:
- {{xqobj.tradeNo}}
-
-
-
+
+
换电步骤
diff --git a/src/views/order/reservation/index.vue b/src/views/order/reservation/index.vue
index 38aedfa..2d5975e 100644
--- a/src/views/order/reservation/index.vue
+++ b/src/views/order/reservation/index.vue
@@ -106,6 +106,7 @@
已过期
+
@@ -219,16 +220,31 @@
/> -->
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index fe6b296..56c0d7d 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -380,11 +380,14 @@
}
}
- function treecheck(){
- checkArr.value = menutree.value.getCheckedNodes(true,true)
- let ids = checkArr.value.map((n:any) => {
- return n.pkId
- })
+ function treecheck(n:any,v:any){
+ //checkArr.value = menutree.value.getCheckedNodes(true,true)
+ console.log(v,2) //.checkedKeys
+
+ // let ids = checkArr.value.map((n:any) => {
+ // return n.pkId
+ // })
+ let ids = [...v.checkedKeys,...v.halfCheckedKeys]
quanxpar.sourceIds = ids.join(',')
}
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 69b5eb5..602ffcd 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -65,12 +65,12 @@
-
+
@@ -166,14 +166,14 @@
-
+
@@ -302,6 +302,7 @@
let userRef = ref()
let usertit = ref('添加用户')
let userform = reactive({
+ pkId:'',
uname:'', //账号
type:'', //账号类型:1-开发者,2-运营方,3-客户
password:'', // 密码
@@ -311,7 +312,7 @@
name:'', //姓名
email:'', //邮箱
phone:'', //手机号码
- sex:'', //性别
+ //sex:'', //性别
readonly:'', //是否内置账号,内置账号不允许动
avatar:'' //头像
})
@@ -363,6 +364,7 @@
usertit.value = type == 1?'添加用户':'修改用户'
userRef.value?.resetFields()
if(row){
+ userform.pkId = row.pkId
userform.uid = row.uid
userform.uname = row.uname
userform.type = row.type+''
@@ -372,10 +374,11 @@
userform.name = row.name
userform.email = row.email
userform.phone = row.phone
- userform.sex = row.sex+''
+ //userform.sex = row.sex+''
userform.readonly = row.readonly+''
userform.avatar = row.avatar
}else{
+ userform.pkId = ''
userform.uid = ''
userform.uname = ''
userform.type = ''
@@ -385,7 +388,7 @@
userform.name = ''
userform.email = ''
userform.phone = ''
- userform.sex = ''
+ //userform.sex = ''
userform.readonly = ''
userform.avatar = ''
}
@@ -409,6 +412,8 @@
})
setTimeout(()=> {
openpop.value = false
+ resetQuery()
+ handBtnqu()
},600)
})
}
@@ -533,11 +538,10 @@
})
}else{
ElMessage({
- type: 'warning',
- message: '请选择角色'
- })
+ type: 'warning',
+ message: '请选择角色'
+ })
}
-
}
diff --git a/src/views/vehicle/car/index.vue b/src/views/vehicle/car/index.vue
index 838563c..de63120 100644
--- a/src/views/vehicle/car/index.vue
+++ b/src/views/vehicle/car/index.vue
@@ -599,8 +599,16 @@
-
-
+
+
+ {{scope.row.phoneNumber?scope.row.phoneNumber:'暂未设置'}}
+
+
+
+
+ {{scope.row.phoneNumber?scope.row.name:'暂未设置'}}
+
+