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