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";
|
| // 分页查询(发货日期区间参数为 beginShippingDate / endShippingDate)
| export function deliveryLedgerListPage(query) {
| return request({
| url: "/shippingInfo/listPage",
| method: "get",
| params: query,
| });
| }
|
| // 详情(后端路径就是 getDateil,勿"纠正"成 getDetail)
| export function getDeliveryDetail(id) {
| return request({
| url: `/shippingInfo/getDateil/${id}`,
| method: "get",
| });
| }
|
| // 发货台账修改
| export function addOrUpdateDeliveryLedger(data) {
| return request({
| url: "/shippingInfo/update",
| method: "post",
| data,
| });
| }
|
| // 补充发货信息后提交(会扣减库存)
| export function deductStock(data) {
| return request({
| url: "/shippingInfo/deductStock",
| method: "post",
| data,
| });
| }
|
| // 删除:body 为 id 数组
| export function delDeliveryLedger(ids) {
| return request({
| url: "/shippingInfo/delete",
| method: "delete",
| data: Array.isArray(ids) ? ids : [ids],
| });
| }
|
|