liyong
16 小时以前 93b8ceac34e2fbd5c57fe5ab4f5bac32c85408aa
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
import request from "@/utils/request";
 
/** 新增销项发票 */
export function addAccountSalesInvoice(data) {
  return request({
    url: "/accountSalesInvoice/addAccountSalesInvoice",
    method: "post",
    data,
  });
}
 
/** 销项发票分页列表 */
export function listPageAccountSalesInvoice(params) {
  return request({
    url: "/accountSalesInvoice/listPageAccountSalesInvoice",
    method: "get",
    params,
  });
}
 
/** 作废销项发票 */
export function cancelAccountSalesInvoice(data) {
  return request({
    url: "/accountSalesInvoice/cancelAccountSalesInvoice",
    method: "put",
    data,
  });
}
 
/** 删除销项发票(Spring 要求 ids=1&ids=2 查询参数) */
export function deleteAccountSalesInvoice(ids) {
  const idList = Array.isArray(ids) ? ids : [ids];
  const query = idList
    .filter((id) => id !== undefined && id !== null && id !== "")
    .map((id) => `ids=${encodeURIComponent(id)}`)
    .join("&");
  return request({
    url: `/accountSalesInvoice/deleteAccountSalesInvoice?${query}`,
    method: "delete",
  });
}