rk
2025-09-22 cf2391a86bdea88196d49cd33949570f74c0985d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import request from '../../utils/request'
 
// 查询
export function fetchList (data) {
  return request.post('/business/declareHistory/page', data, {
    trim: true
  })
}
export function getListByDeclareId (data) {
  return request.post('/business/declareHistory/getListByDeclareId', data, {
    trim: true
  })
}
 
// 导出Excel
export function exportExcel (data) {
  return request.post('/business/declareHistory/exportExcel', data, {
    trim: true,
    download: true
  })
}
 
// 创建
export function create (data) {
  return request.post('/business/declareHistory/create', data)
}
 
// 修改
export function updateById (data) {
  return request.post('/business/declareHistory/updateById', data)
}
 
// 删除
export function deleteById (id) {
  return request.get(`/business/declareHistory/delete/${id}`)
}
 
// 批量删除
export function deleteByIdInBatch (ids) {
  return request.get('/business/declareHistory/delete/batch', {
    params: {
      ids
    }
  })
}