yyb
13 小时以前 1ef08126ca554a8cd4b9ba47d19dc3b790e2c018
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import request from "@/utils/request";
 
/** 根据客户查询可开票出库单号列表 */
export function getOutboundBatchesByCustomer(params) {
  return request({
    url: "/accountInvoiceApplication/getOutboundBatchesByCustomer",
    method: "get",
    params,
  });
}
 
/** 新增开票申请 */
export function addAccountInvoiceApplication(data) {
  return request({
    url: "/accountInvoiceApplication/addAccountInvoiceApplication",
    method: "post",
    data,
  });
}
 
/** 开票申请分页列表 */
export function listPageAccountInvoiceApplication(params) {
  return request({
    url: "/accountInvoiceApplication/listPageAccountInvoiceApplication",
    method: "get",
    params,
  });
}
 
/** 开票申请审批 */
export function auditAccountInvoiceApplication(data) {
  return request({
    url: "/accountInvoiceApplication/auditAccountInvoiceApplication",
    method: "put",
    data,
  });
}
 
/** 修改开票申请 */
export function updateAccountInvoiceApplication(data) {
  return request({
    url: "/accountInvoiceApplication/updateAccountInvoiceApplication",
    method: "put",
    data,
  });
}
 
/** 删除开票申请(Spring 要求 ids=1&ids=2 查询参数) */
export function deleteAccountInvoiceApplication(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: `/accountInvoiceApplication/deleteAccountInvoiceApplication?${query}`,
    method: "delete",
  });
}