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 @@ @@ -101,11 +101,11 @@ {{ (scope.row.subsidyBal/100).toFixed(2) }} - + - + - - - - - + + + + + - +
- + + + +
总人数: {{resultData.totalUserSum || '--' }} , 补贴人数:{{resultData.validCount || '--' }}, 补贴总额:{{(resultData.validTotalAmount/100) || '--' }}, 无效人数:{{resultData.invalidCount || '--'}}
+ + + + + + + + + + + + +
+ -
+
- {{form.custNum}} + {{form.userId}} - {{ form.custName }} + {{ form.nickName }} - {{ form.orgFullName }} + {{ form.deptName }} - {{ form.mobile }} + {{ form.phoneNumber }} @@ -306,7 +326,7 @@ - {{ form.psnTypeName }} + {{ form.userTypeName }} @@ -328,17 +348,17 @@ {{ (form.subsidyBal/100).toFixed(2) }} - + {{ (form.accFreezeBalTotal/100).toFixed(2) }} -
- + +
-
提示:清空多少元。例如填20,则清空20元
-
提示:清空至多少元。例如填20,则清空超出20元的部分
+ @@ -428,9 +428,9 @@ queryParams1: { pageNum: 1, pageSize: 10, - keyword:null, - orgIdList:[], - crBy:null, + searchValue:null, + deptIds:[], + createBy:null, accTradeId:null, }, // 总条数 total1: 0, @@ -443,9 +443,9 @@ queryParams2: { pageNum: 1, pageSize: 10, - keyword:null, - orgIdList:[], - crBy:null, + searchValue:null, + deptIds:[], + createBy:null, accTradeId:null, }, // 总条数 total2: 0, @@ -456,7 +456,7 @@ queryParams3: { pageNum: 1, pageSize: 10, - keyword:null, + searchValue:null, accTradeId:null }, // 总条数 total3: 0, @@ -467,9 +467,9 @@ queryParams4: { pageNum: 1, pageSize: 10, - keyword:null, - orgIdList:[], - crBy:null, + searchValue:null, + deptIds:[], + createBy:null, receiveStateList:[], psnTypeList:[] }, // 总条数 @@ -527,9 +527,9 @@ this.queryParams1 = { pageNum: 1, pageSize: 10, - keyword:null, - orgIdList:[], - crBy:null, + searchValue:null, + deptIds:[], + createBy:null, accTradeId:null } this.resetForm("queryForm1"); @@ -537,9 +537,9 @@ this.queryParams2 = { pageNum: 1, pageSize: 10, - keyword:null, - orgIdList:[], - crBy:null, + searchValue:null, + deptIds:[], + createBy:null, accTradeId:null } this.resetForm("queryForm2"); @@ -547,7 +547,7 @@ this.queryParams3 = { pageNum: 1, pageSize: 10, - keyword:null, + searchValue:null, accTradeId:null } this.resetForm("queryForm3"); @@ -555,9 +555,9 @@ this.queryParams4 = { pageNum: 1, pageSize: 10, - keyword:null, - orgIdList:[], - crBy:null, + searchValue:null, + deptIds:[], + createBy:null, receiveStateList:[], psnTypeList:[] } @@ -570,8 +570,8 @@ this.loading = true; let param = { ...this.queryParams1, - "current": this.queryParams1.pageNum, - "size": this.queryParams1.pageSize, + // "current": this.queryParams1.pageNum, + // "size": this.queryParams1.pageSize, "startDateTime":this.formatDate(this.dateRange[0]), "endDateTime":this.formatDate(this.dateRange[1]) } @@ -579,11 +579,11 @@ this.tableListData1 = [] this.total1 = 0 accSubsidyRechargePageApi(param).then(response => { - this.tableListData1 = response.data.pageVO.records; - this.total1 = Number(response.data.pageVO.total); - if(this.tableListData1.length>0){ - this.tableListData1.push(response.data.sumVO) - } + this.tableListData1 = response.rows; + this.total1 = Number(response.total); + // if(this.tableListData1.length>0){ + // this.tableListData1.push(response.data.sumVO) + // } this.loading = false; }).catch(() => { this.loading = false; @@ -629,20 +629,20 @@ this.loading = true; let param = { ...this.queryParams2, - "current": this.queryParams2.pageNum, - "size": this.queryParams2.pageSize, + // "current": this.queryParams2.pageNum, + // "size": this.queryParams2.pageSize, "startDateTime":this.formatDate(this.dateRange[0]), "endDateTime":this.formatDate(this.dateRange[1]) } - param.type=2 + // param.type=2 this.tableListData2 = [] this.total2 = 0 accSubsidyClearPageApi(param).then(response => { - this.tableListData2 = response.data.pageVO.records; - this.total2 = Number(response.data.pageVO.total); - if(this.tableListData2.length>0){ - this.tableListData2.push(response.data.sumVO) - } + this.tableListData2 = response.rows; + this.total2 = Number(response.total); + // if(this.tableListData2.length>0){ + // this.tableListData2.push(response.data.sumVO) + // } this.loading = false; }).catch(() => { this.loading = false; diff --git a/src/views/accountCenter/consume/deduct/index.vue b/src/views/accountCenter/consume/deduct/index.vue index b49d7e72..dd3c0472 100644 --- a/src/views/accountCenter/consume/deduct/index.vue +++ b/src/views/accountCenter/consume/deduct/index.vue @@ -1,8 +1,8 @@ - +