gaoluyang
3 小时以前 e449a5408265e4bd1f6c66f5be28a42efac444ee
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
import request from "@/utils/request";
 
// 分页查询(投标日期区间参数为 bidDateStart / bidDateEnd)
export function biddingListPage(query) {
  return request({
    url: "/sales/bidding/listPage",
    method: "get",
    params: query,
  });
}
 
export function getBiddingDetail(id) {
  return request({
    url: "/sales/bidding/getDetail",
    method: "get",
    params: { id },
  });
}
 
// 新增与修改共用,靠 id 是否存在区分
export function addOrUpdateBidding(data) {
  return request({
    url: "/sales/bidding/addOrUpdate",
    method: "post",
    data,
  });
}
 
// 删除:body 为 id 数组
export function delBidding(ids) {
  return request({
    url: "/sales/bidding/del",
    method: "delete",
    data: Array.isArray(ids) ? ids : [ids],
  });
}