You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB

1 year ago
import request from '@/utils/request'
7 months ago
import { BUDGET_API_PREFIX } from './budgetBase'
1 year ago
/**
* 预算采集年份管理 API
*/
// 获取预算采集年份列表
export function getBudgetCollectionYearList(params) {
return request({
7 months ago
url: `${BUDGET_API_PREFIX}/budget-collection-year`,
1 year ago
method: 'get',
params
})
}
// 获取预算采集年份详情
export function getBudgetCollectionYearDetail(id) {
return request({
7 months ago
url: `${BUDGET_API_PREFIX}/budget-collection-year/${id}`,
1 year ago
method: 'get'
})
}
// 创建预算采集年份
export function createBudgetCollectionYear(data) {
return request({
7 months ago
url: `${BUDGET_API_PREFIX}/budget-collection-year`,
1 year ago
method: 'post',
data
})
}
// 更新预算采集年份
export function updateBudgetCollectionYear(id, data) {
return request({
7 months ago
url: `${BUDGET_API_PREFIX}/budget-collection-year/${id}`,
1 year ago
method: 'put',
data
})
}
// 删除预算采集年份
export function deleteBudgetCollectionYear(id) {
return request({
7 months ago
url: `${BUDGET_API_PREFIX}/budget-collection-year/${id}`,
1 year ago
method: 'delete'
})
}
// 批量删除预算采集年份
export function batchDeleteBudgetCollectionYear(ids) {
return request({
7 months ago
url: `${BUDGET_API_PREFIX}/budget-collection-year/batch-destroy`,
1 year ago
method: 'post',
data: { ids }
})
}
// 获取年度选择列表(用于下拉框)
export function getBudgetCollectionYearOptions() {
return request({
7 months ago
url: `${BUDGET_API_PREFIX}/budget-collection-year-options`,
1 year ago
method: 'get'
})
}