diff --git a/src/views/canteen/accountCenter/account/accountManager/index.vue b/src/views/canteen/accountCenter/account/accountManager/index.vue
index f90cc22b..7f279ff0 100644
--- a/src/views/canteen/accountCenter/account/accountManager/index.vue
+++ b/src/views/canteen/accountCenter/account/accountManager/index.vue
@@ -187,11 +187,11 @@
(form.walletLimitBalance=v.replace(/[^\d.]/g,''))"/>
+ @input="(v)=>(form.walletLimitBalance=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
(form.subLimitBalance=v.replace(/[^\d.]/g,''))"/>
+ @input="(v)=>(form.subLimitBalance=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
(form.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -349,7 +349,7 @@
(batchForm.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -460,7 +460,7 @@
(form.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -529,7 +529,7 @@
(form.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -714,7 +714,7 @@
accountStatus:row.accountStatus,
userId:row.userId
}
- this.$modal.confirm('确认要"' + text + '吗?').then(function() {
+ this.$modal.confirm('确认要' + text + '吗?').then(function() {
return updateAccStateApi(param)
}).then(() => {
this.$modal.msgSuccess(text + '成功')
@@ -888,6 +888,11 @@
}
accInfoPageApi(param).then(response => {
this.dialogTableData = response.rows;
+ this.dialogTableData.forEach(item=>{
+ if(item.phoneNumber&&item.phoneNumber!=""){
+ this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
+ }
+ })
this.dialogTotal = Number(response.total);
});
},
diff --git a/src/views/canteen/accountCenter/account/wallet/index.vue b/src/views/canteen/accountCenter/account/wallet/index.vue
index dd8a8547..3089ae35 100644
--- a/src/views/canteen/accountCenter/account/wallet/index.vue
+++ b/src/views/canteen/accountCenter/account/wallet/index.vue
@@ -171,7 +171,7 @@
(form.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -241,7 +241,7 @@
(form.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
diff --git a/src/views/canteen/accountCenter/butie/butie/index.vue b/src/views/canteen/accountCenter/butie/butie/index.vue
index 5636dd79..86d74e09 100644
--- a/src/views/canteen/accountCenter/butie/butie/index.vue
+++ b/src/views/canteen/accountCenter/butie/butie/index.vue
@@ -179,7 +179,7 @@
(form.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -263,7 +263,7 @@
(batchForm.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -406,7 +406,7 @@
(form.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -482,7 +482,7 @@
(batchForm.amount=v.replace(/[^\d.]/g,''))">
+ @input="(v)=>(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
元
@@ -802,6 +802,11 @@
}
accInfoPageApi(param).then(response => {
this.dialogTableData = response.rows;
+ this.dialogTableData.forEach(item=>{
+ if(item.phoneNumber&&item.phoneNumber!=""){
+ this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
+ }
+ })
this.dialogTotal = Number(response.total);
});
},
diff --git a/src/views/canteen/base/canteenStall/area/index.vue b/src/views/canteen/base/canteenStall/area/index.vue
index 6969949e..4920051f 100644
--- a/src/views/canteen/base/canteenStall/area/index.vue
+++ b/src/views/canteen/base/canteenStall/area/index.vue
@@ -104,7 +104,7 @@
-
+
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
@@ -225,7 +225,7 @@
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { systemAreaTreeApi,getAreaListApi,addAreaApi,updateAreaApi,removeAreaApi } from "@/api/base/area";
-
+ import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
export default {
name: "ToolsType",
components: { Treeselect },
@@ -260,7 +260,7 @@
// 总条数
total: 0,
//列表数据
- typeList: undefined,
+ tableListData: undefined,
// 是否显示弹出层
open: false,
// 弹出层标题
@@ -352,8 +352,13 @@
"pagenation":true
}
getAreaListApi(params).then((response) => {
- this.typeList = response.rows;
+ this.tableListData = response.rows;
this.total = Number(response.total);
+ this.tableListData.forEach(item=>{
+ if(item.contactTel&&item.contactTel!=""){
+ this.$set(item,"contactTel",decryptWithSM4(item.contactTel))
+ }
+ })
this.loading = false;
});
},
@@ -427,15 +432,21 @@
console.log(this.form, "提交参数---");
this.$refs["form"].validate((valid) => {
if (valid) {
- if (this.form.areaId != undefined) {
- updateAreaApi(this.form).then((response) => {
- this.$modal.msgSuccess("修改成功");
- this.open = false;
- this.getList();
- this.getTreeData();
- });
+ let param = {
+ ...this.form
+ }
+ if(param.contactTel&¶m.contactTel!=""){
+ param.contactTel = encryptWithSM4(this.baseForm.contactTel)
+ }
+ if (param.areaId != undefined) {
+ updateAreaApi(param).then((response) => {
+ this.$modal.msgSuccess("修改成功");
+ this.open = false;
+ this.getList();
+ this.getTreeData();
+ });
}else {
- addAreaApi(this.form).then((response) => {
+ addAreaApi(param).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
diff --git a/src/views/canteen/base/canteenStall/canteen/index.vue b/src/views/canteen/base/canteenStall/canteen/index.vue
index 1cfbacca..81b45aac 100644
--- a/src/views/canteen/base/canteenStall/canteen/index.vue
+++ b/src/views/canteen/base/canteenStall/canteen/index.vue
@@ -211,7 +211,8 @@