123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import { axios } from '@/utils/request'
- // 更新结算账户功能状态
- export const updateAccountMangeState = params => {
- return axios({
- url: `/settleAccount/updateFunctionState/${params.enableFlag}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('启用禁用资金账户功能')
- }
- })
- }
- // 查询结算账户功能状态
- export const queryAccountMangeState = params => {
- return axios({
- url: `/settleAccount/queryFunctionState`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('结算账户功能状态查询')
- }
- })
- }
- // 分页查找结算账户列表
- export const settleAccountList = (params) => {
- const url = `/settleAccount/queryPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('列表查询')
- }
- })
- }
- // 查询资金明细
- export const findSettleFlowPage = (params) => {
- const url = `/settleAccount/findSettleFlowPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('资金明细列表查询')
- }
- })
- }
- // 保存结算账户信息
- export const settleAccountSave = params => {
- return axios({
- url: '/settleAccount/save',
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent(params.id?'编辑':'新增')
- }
- })
- }
- // 根据sn查找结算账户信息
- export const settleAccountDetail = params => {
- return axios({
- url: `/settleAccount/findBySn/${params.settleAccountSn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('结算账户信息')
- }
- })
- }
- // 启禁用结算账户信息
- export const settleAccountEnable = params => {
- return axios({
- url: `/settleAccount/enable/${params.settleAccountSn}/${params.enableFlag}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent(params.enableFlag=='ENABLE' ? '启用' : '禁用')
- }
- })
- }
- // 删除结算账户信息
- export const settleAccountDelete = params => {
- return axios({
- url: `/settleAccount/delete/${params.settleAccountSn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('删除')
- }
- })
- }
- // 审核结算账户信息
- export const settleAccountAudit = params => {
- return axios({
- url: `/settleAccount/audit/${params.settleAccountSn}/${params.auditState}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('审核')
- }
- })
- }
|