diff --git a/src/api/points/balance.js b/src/api/points/balance.js index 56522f6..2f154c0 100644 --- a/src/api/points/balance.js +++ b/src/api/points/balance.js @@ -10,3 +10,13 @@ export function adjustPoints(params) { export function getBalanceByUserId(userId) { return request({ url: '/business/points/balance/getByUserId/' + userId, method: 'get' }) } + +// 积分账户分页查询(管理端);仅返回 userId,无姓名/单位,需前端关联用户目录 +export function listBalances(params) { + return request({ url: '/business/points/balance/getListByPage', method: 'get', params }) +} + +// 查询全部积分账户(无分页、无条件);配合用户目录做「查看所有用户积分」 +export function listAllBalances() { + return request({ url: '/business/points/balance/getAll', method: 'get' }) +} diff --git a/src/views/points/query/index.vue b/src/views/points/query/index.vue new file mode 100644 index 0000000..f99a454 --- /dev/null +++ b/src/views/points/query/index.vue @@ -0,0 +1,417 @@ + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 刷新 + + + + + 积分查询 + + 查看所有用户的积分账户(含未开通账户的用户);可按用户/单位/关键字筛选,点「明细」查看该用户的积分流水。 + + + + + + + {{ userLabel(scope.row) }} + + + + {{ scope.row.deptName || '—' }} + + + + {{ numberText(scope.row.availableBalance) }} + + + + {{ numberText(scope.row.frozenBalance) }} + + + + {{ numberText(scope.row.totalIncome) }} + + + + + {{ numberText(scope.row.totalOutcome) }} + + + + + + {{ scope.row.hasAccount ? '已开通' : '未开通' }} + + + + + {{ formatTime(scope.row.updateTime) }} + + + + 明细 + + + + + + + + 共 {{ filteredList.length }} 人 · 已开通账户 {{ openedCount }} 人 · 可用积分合计 {{ totalAvailable }} + + + + + + + + {{ userLabel(detailUser) }} + {{ detailUser.userName || '—' }} + {{ detailUser.deptName || '—' }} + {{ numberText(detailUser.availableBalance) }} + {{ numberText(detailUser.frozenBalance) }} + {{ numberText(detailUser.totalIncome) }} / {{ numberText(detailUser.totalOutcome) }} + + + + + + {{ bizTypeLabel(scope.row) }} + + + + + {{ amountLabel(scope.row) }} + + + + {{ balanceText(scope.row) }} + + + + {{ statusLabel(scope.row) }} + + + + + {{ formatTime(scope.row.createTime) }} + + + + + 关闭 + + + + + + + +