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], }); }