324 lines
5.0 KiB
JavaScript
324 lines
5.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
//补贴设置
|
|
export function queryAccBaseSubApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/acc/metadata/query/acc-sub',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//补贴设置
|
|
export function saveAccBaseSubApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/acc/metadata/save/acc-sub',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// // 用户类型
|
|
// export function queryPsnTypeByPageApi(data) {
|
|
// return request({
|
|
// url: '/smart-canteen/api/v1/cust/psntype/queryPsnTypeByPage',
|
|
// method: 'get',
|
|
// headers: {
|
|
// "merchant-id":"378915229716713472",
|
|
// },
|
|
// params: data
|
|
// })
|
|
// }
|
|
|
|
// 个人补贴-单个补贴
|
|
export function updateAccRechargeSingleApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/acc/subsidy/add',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: 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/acc/subsidy/batch/add',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 个人补贴-单个补贴清空
|
|
export function clearAccRechargeSingleApi(data) {
|
|
return request({
|
|
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",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 个人补贴-批量补贴清空
|
|
export function clearAccRechargeBatchApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/acc/subsidy/batch/clear',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
//补贴明细页面
|
|
//补贴明细
|
|
export function accSubsidyRechargePageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/acc/subsidy/add/history',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//补贴明细-撤销操作
|
|
export function repealSubsidyRechargeApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v3/acc/subsidy/recharge/single/repeal',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//补贴明细-撤销操作
|
|
export function batchRepealSubsidyRechargeApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v3/acc/subsidy/recharge/batch/repeal',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
//补贴清空明细
|
|
export function accSubsidyClearPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/acc/subsidy/clear/history',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//补贴撤销明细
|
|
export function accSubsidyRepealPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v3/acc/subsidy/repeal/page',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//补贴未到账明细
|
|
export function accSubsidyHandReceivePageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v3/acc/subsidy/hand-receive/query/page',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//补贴未到账明细-批量到账操作
|
|
export function accSubsidyHandReceiveBatchGrantApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v3/acc/subsidy/hand-receive/batch/grant',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//补贴未到账明细-批量撤销操作
|
|
export function batchAccSubsidyRepealApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v3/acc/subsidy/hand-receive/batch/repeal',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// 补贴汇总-用户个人type=0,用户类别type=1,用户组织type=2
|
|
export function accountSubsidyCustPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v3/acc/subsidy/recharge/collect/page',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|