diff --git a/src/api/accountCenter/butie.js b/src/api/accountCenter/butie.js
index 9506b129..03384b59 100644
--- a/src/api/accountCenter/butie.js
+++ b/src/api/accountCenter/butie.js
@@ -11,6 +11,7 @@ export function queryAccBaseSubApi(data) {
data: data
})
}
+//补贴设置
export function saveAccBaseSubApi(data) {
return request({
url: '/smart-canteen/api/v2/acc/metadata/save/acc-sub',
@@ -36,7 +37,7 @@ export function saveAccBaseSubApi(data) {
// 个人补贴-单个补贴
export function updateAccRechargeSingleApi(data) {
return request({
- url: '/smart-canteen/api/v3/acc/subsidy/recharge/single',
+ url: '/smart-canteen/acc/subsidy/add',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -45,10 +46,22 @@ export function updateAccRechargeSingleApi(data) {
})
}
- // 个人补贴-批量补贴
+// 个人补贴-批量补贴-校验
+export function checkAccRechargeBatchApi(data) {
+ return request({
+ url: '/smart-canteen/acc/subsidy/batch/add/check',
+ method: 'post',
+ headers: {
+ "merchant-id":"378915229716713472",
+ },
+ data: data
+ })
+}
+
+// 个人补贴-批量补贴
export function updateAccRechargeBatchApi(data) {
return request({
- url: '/smart-canteen/api/v3/acc/subsidy/recharge/batch',
+ url: '/smart-canteen/acc/subsidy/batch/add',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -60,7 +73,19 @@ export function updateAccRechargeBatchApi(data) {
// 个人补贴-单个补贴清空
export function clearAccRechargeSingleApi(data) {
return request({
- url: '/smart-canteen/api/v3/acc/subsidy/clear/single',
+ url: '/smart-canteen/acc/subsidy/clear',
+ method: 'post',
+ headers: {
+ "merchant-id":"378915229716713472",
+ },
+ data: data
+ })
+}
+
+// 个人补贴-批量补贴清空-校验
+export function checkClearAccRechargeBatchApi(data) {
+ return request({
+ url: '/smart-canteen/acc/subsidy/batch/clear/check',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -72,7 +97,7 @@ export function clearAccRechargeSingleApi(data) {
// 个人补贴-批量补贴清空
export function clearAccRechargeBatchApi(data) {
return request({
- url: '/smart-canteen/api/v3/acc/subsidy/clear/batch',
+ url: '/smart-canteen/acc/subsidy/batch/clear',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -86,7 +111,7 @@ export function clearAccRechargeBatchApi(data) {
//补贴明细
export function accSubsidyRechargePageApi(data) {
return request({
- url: '/smart-canteen/api/v3/acc/subsidy/recharge/page',
+ url: '/smart-canteen/acc/subsidy/add/history',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -121,7 +146,7 @@ export function batchRepealSubsidyRechargeApi(data) {
//补贴清空明细
export function accSubsidyClearPageApi(data) {
return request({
- url: '/smart-canteen/api/v3/acc/subsidy/clear/page',
+ url: '/smart-canteen/acc/subsidy/clear/history',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
diff --git a/src/api/accountCenter/manager.js b/src/api/accountCenter/manager.js
index 3307d758..6e252f8e 100644
--- a/src/api/accountCenter/manager.js
+++ b/src/api/accountCenter/manager.js
@@ -17,7 +17,7 @@ export function accInfoOperateCountApi(data) {
// 账户管理-列表
export function accInfoPageApi(data) {
return request({
- url: '/smart-canteen/api/v3/accInfo/page',
+ url: '/smart-canteen/acc_info/list',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -30,7 +30,7 @@ export function accInfoPageApi(data) {
// 账户管理-列表-总数
export function accInfoSumPageApi(data) {
return request({
- url: '/smart-canteen/api/v3/accInfo/page/sum',
+ url: '/smart-canteen/acc_info/balance/sum',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -64,10 +64,10 @@ export function updateAccInfoBatchApi(data) {
})
}
-// 账户管理-更改账户状态
+// 账户管理-更改账户状态-账户启用停用
export function updateAccStateApi(data) {
return request({
- url: '/smart-canteen/api/v3/accInfo/update/state',
+ url: '/smart-canteen/acc_info/status/edit',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
diff --git a/src/api/accountCenter/traderecords.js b/src/api/accountCenter/traderecords.js
index 7c48cc2f..67fd8f21 100644
--- a/src/api/accountCenter/traderecords.js
+++ b/src/api/accountCenter/traderecords.js
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 操作明细列表
export function accInfoOperationListApi(data) {
return request({
- url: '/smart-canteen/api/v3/accInfo/operation/list',
+ url: '/smart-canteen/acc_info/operation/record',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
diff --git a/src/views/accountCenter/account/accountManager/expired.vue b/src/views/accountCenter/account/accountManager/expired.vue
index 5dc5ebbd..a2807635 100644
--- a/src/views/accountCenter/account/accountManager/expired.vue
+++ b/src/views/accountCenter/account/accountManager/expired.vue
@@ -15,8 +15,8 @@
:picker-options="pickerOptions" >
-
-
+
-
-
+
+
@@ -71,7 +71,7 @@
- 合计:
+ 合计:
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
@@ -101,11 +101,11 @@
{{ (scope.row.subsidyBal/100).toFixed(2) }}
-
+
{{ (scope.row.accFreezeBalTotal/100).toFixed(2) }}
@@ -169,8 +169,8 @@
pageNum: 1,
pageSize: 10,
accStatusList:[4],
- orgIdList:[],
- keyword:null,
+ deptIdList:[],
+ searchValue:null,
walletType:null,
walletMinAmount:null,
walletMaxAmount:null,
@@ -247,24 +247,24 @@
console.log(this.queryParams)
this.loading = true;
let param = {
- "current": this.queryParams.pageNum,
- "size": this.queryParams.pageSize,
+ "pageNum": this.queryParams.pageNum,
+ "pageSize": this.queryParams.pageSize,
"accStatusList": this.queryParams.accStatusList,
- "orgIdList": this.queryParams.orgIdList,
- "keyword": this.queryParams.keyword,
+ "deptIdList": this.queryParams.deptIdList,
+ "searchValue": this.queryParams.searchValue,
"walletType": this.queryParams.walletType,
- "walletMinAmount": Number(this.queryParams.walletMinAmount)*100,
- "walletMaxAmount": Number(this.queryParams.walletMaxAmount)*100,
+ // "walletMinAmount": Number(this.queryParams.walletMinAmount)*100,
+ // "walletMaxAmount": Number(this.queryParams.walletMaxAmount)*100,
"startDateTime":this.formatDate(this.dateRange[0]),
"endDateTime":this.formatDate(this.dateRange[1])
}
accInfoPageApi(param).then(response => {
- this.tableListData = response.data.pageVO.records;
- this.total = Number(response.data.pageVO.total);
+ this.tableListData = response.rows;
+ this.total = Number(response.total);
this.loading = false;
});
accInfoSumPageApi(param).then(response => {
- this.tableListData.push(response.data.sumVO)
+ this.tableListData.push(response.data)
});
},
// 合并单元格 rowIndex=行数 columnIndex=列数
diff --git a/src/views/accountCenter/account/accountManager/index.vue b/src/views/accountCenter/account/accountManager/index.vue
index 27c65405..db8b0ec9 100644
--- a/src/views/accountCenter/account/accountManager/index.vue
+++ b/src/views/accountCenter/account/accountManager/index.vue
@@ -3,12 +3,12 @@
-
-
+
+
-
-
+
-
-
+
+
-
@@ -30,7 +29,7 @@
-
+
搜索
重置
@@ -72,15 +71,15 @@
- 合计:
+ 合计:
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
-
-
-
-
-
+
+
+
+
+
{{ (scope.row.accBalTotal/100).toFixed(2) }}
@@ -101,11 +100,11 @@
{{ (scope.row.subsidyBal/100).toFixed(2) }}
-
+
{{ (scope.row.accFreezeBalTotal/100).toFixed(2) }}
@@ -135,14 +134,14 @@
停用
启用
@@ -162,17 +161,17 @@
用户编号
- {{form.custNum}}
+ {{form.userId}}
用户姓名
- {{ form.custName }}
+ {{ form.nickName }}
用户手机号
- {{ form.mobile }}
+ {{ form.phoneNumber }}
账户状态
@@ -182,7 +181,7 @@
所属组织
- {{ form.orgFullName }}
+ {{ form.deptName }}
@@ -245,11 +244,11 @@
第一步:选择用户
-
-
+
+
-
-
+
-
-
-
-
-
+
+
+
+
+
node.status !== '1')
},
- //注销过期用户数量
- getAccOperateCount(){
- accInfoOperateCountApi().then(response => {
- this.cancelCount = response.data.cancelCount
- this.expiredCount = response.data.expiredCount
- });
- },
+ // //注销过期用户数量
+ // getAccOperateCount(){
+ // accInfoOperateCountApi().then(response => {
+ // this.cancelCount = response.data.cancelCount
+ // this.expiredCount = response.data.expiredCount
+ // });
+ // },
/** 搜索按钮操作 */
handleQuery() {
@@ -445,21 +444,21 @@
console.log(this.queryParams)
this.loading = true;
let param = {
- "current": this.queryParams.pageNum,
- "size": this.queryParams.pageSize,
+ "pageNum": this.queryParams.pageNum,
+ "pageSize": this.queryParams.pageSize,
"accStatusList": this.queryParams.accStatusList,
- "orgIdList": this.queryParams.orgIdList,
- "hasSum": this.queryParams.hasSum,
- "keyword": this.queryParams.keyword,
+ "deptIdList": this.queryParams.deptIdList,
+ // "hasSum": this.queryParams.hasSum,
+ "searchValue": this.queryParams.searchValue,
"walletType": this.queryParams.walletType,
- "walletMinAmount": Number(this.queryParams.walletMinAmount)*100,
- "walletMaxAmount": Number(this.queryParams.walletMaxAmount)*100
+ // "walletMinAmount": Number(this.queryParams.walletMinAmount)*100,
+ // "walletMaxAmount": Number(this.queryParams.walletMaxAmount)*100
}
accInfoPageApi(param).then(response => {
- this.tableListData = response.data.pageVO.records;
- this.total = Number(response.data.pageVO.total);
+ this.tableListData = response.rows;
+ this.total = Number(response.total);
accInfoSumPageApi(param).then(response => {
- this.tableListData.push(response.data.sumVO)
+ this.tableListData.push(response.data)
});
this.loading = false;
});
@@ -487,13 +486,13 @@
handleUpdateState(row,state){
let param = {
accStatus:state,
- custId:row.custId
+ userId:row.userId
}
let str = ''
- if(state==1){
+ if(state==0){
str = "是否确认启用账户?"
}
- if(state==2){
+ if(state==1){
str = "是否确认停用账户?"
}
this.$modal.confirm(str+'').then(function() {
@@ -563,22 +562,22 @@
//批量弹窗表格查询
getDialogList(){
let param = {
- "current": this.dialogParams.pageNum,
- "size": this.dialogParams.pageSize,
+ "pageNum": this.dialogParams.pageNum,
+ "pageSize": this.dialogParams.pageSize,
"accStatusList": this.dialogParams.accStatusList,
- "orgIdList": this.dialogParams.orgIdList,
- "hasSum": this.dialogParams.hasSum,
- "keyword": this.dialogParams.keyword,
+ "deptIdList": this.dialogParams.deptIdList,
+ // "hasSum": this.dialogParams.hasSum,
+ "searchValue": this.dialogParams.searchValue,
"psnType": this.dialogParams.psnType
}
accInfoPageApi(param).then(response => {
- this.dialogTableData = response.data.pageVO.records;
- this.dialogTotal = Number(response.data.pageVO.total);
+ this.dialogTableData = response.rows;
+ this.dialogTotal = Number(response.total);
});
},
//批量弹窗勾选
handleSelectionChange(selection){
- this.batchIds = selection.map((item) => item.custId)
+ this.batchIds = selection.map((item) => item.userId)
},
//批量修改提交
confirmBatchEdit(){
diff --git a/src/views/accountCenter/account/accountManager/logoff.vue b/src/views/accountCenter/account/accountManager/logoff.vue
index 461fbb60..e08960e2 100644
--- a/src/views/accountCenter/account/accountManager/logoff.vue
+++ b/src/views/accountCenter/account/accountManager/logoff.vue
@@ -15,8 +15,8 @@
:picker-options="pickerOptions" >
-
-
+
-
-
+
+
@@ -71,7 +71,7 @@
- 合计:
+ 合计:
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
@@ -101,11 +101,11 @@
{{ (scope.row.subsidyBal/100).toFixed(2) }}
-
+
{{ (scope.row.accFreezeBalTotal/100).toFixed(2) }}
@@ -169,8 +169,8 @@
pageNum: 1,
pageSize: 10,
accStatusList:[3],
- orgIdList:[],
- keyword:null,
+ deptIdList:[],
+ searchValue:null,
walletType:null,
walletMinAmount:null,
walletMaxAmount:null,
@@ -247,24 +247,24 @@
console.log(this.queryParams)
this.loading = true;
let param = {
- "current": this.queryParams.pageNum,
- "size": this.queryParams.pageSize,
+ "pageNum": this.queryParams.pageNum,
+ "pageSize": this.queryParams.pageSize,
"accStatusList": this.queryParams.accStatusList,
- "orgIdList": this.queryParams.orgIdList,
- "keyword": this.queryParams.keyword,
+ "deptIdList": this.queryParams.deptIdList,
+ "searchValue": this.queryParams.searchValue,
"walletType": this.queryParams.walletType,
- "walletMinAmount": Number(this.queryParams.walletMinAmount)*100,
- "walletMaxAmount": Number(this.queryParams.walletMaxAmount)*100,
+ // "walletMinAmount": Number(this.queryParams.walletMinAmount)*100,
+ // "walletMaxAmount": Number(this.queryParams.walletMaxAmount)*100,
"startDateTime":this.formatDate(this.dateRange[0]),
"endDateTime":this.formatDate(this.dateRange[1])
- }
+ }
accInfoPageApi(param).then(response => {
- this.tableListData = response.data.pageVO.records;
- this.total = Number(response.data.pageVO.total);
+ this.tableListData = response.rows;
+ this.total = Number(response.total);
this.loading = false;
});
accInfoSumPageApi(param).then(response => {
- this.tableListData.push(response.data.sumVO)
+ this.tableListData.push(response.data)
});
},
// 合并单元格 rowIndex=行数 columnIndex=列数
diff --git a/src/views/accountCenter/account/tradeRecords/index.vue b/src/views/accountCenter/account/tradeRecords/index.vue
index 7fe8dc15..ad76d5c1 100644
--- a/src/views/accountCenter/account/tradeRecords/index.vue
+++ b/src/views/accountCenter/account/tradeRecords/index.vue
@@ -22,10 +22,10 @@
-
+
-
-
+
-
+
@@ -77,13 +77,13 @@
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
-
-
-
-
-
+
+
+
+
+
-
+
{{ (scope.row.accFreezeBalTotal/100).toFixed(2) }}
@@ -110,20 +110,20 @@
用户编号
- {{form.custNum}}
+ {{form.userId}}
用户姓名
- {{ form.custName }}
+ {{ form.nickName }}
所属组织
- {{ form.orgFullName }}
+ {{ form.deptName }}
用户手机号
- {{ form.mobile }}
+ {{ form.phoneNumber }}
@@ -132,7 +132,7 @@
用户类别
- {{ form.psnTypeName }}
+ {{ form.userTypeName }}
@@ -154,10 +154,10 @@
补贴钱包余额
{{ (form.subsidyBal/100).toFixed(2) }}
-
+
冻结金额
{{ (form.accFreezeBalTotal/100).toFixed(2) }}
@@ -171,7 +171,7 @@
元
-
+