gaoluyang
2026-05-21 a2c33664f683aee11fdc62391c8d1e21cc74f5b2
src/api/salesManagement/deliveryLedger.js
@@ -11,9 +11,33 @@
}
// 修改发货台账
export function getDeliveryDetail(id) {
  return request({
    url: `/shippingInfo/getDateil/${id}`,
    method: "get",
  });
}
// 修改发货台账
export function getDeliveryDetailByShippingNo(query) {
  return request({
    url: "/shippingInfo/getDateilByShippingNo",
    method: "get",
    params: query,
  });
}
export function addOrUpdateDeliveryLedger(query) {
  return request({
    url: "/shippingInfo/update",
    method: "post",
    data: query,
  });
}
// 修改发货台账
export function deductStock(query) {
  return request({
    url: "/shippingInfo/deductStock",
    method: "post",
    data: query,
  });
@@ -37,3 +61,50 @@
  });
}
// 发货明细接口
// 分页查询发货明细
export function shippingInfoDetailListPage(query) {
  return request({
    url: "/shippingInfoDetail/listPage",
    method: "get",
    params: query,
  });
}
// 新增发货明细
export function addShippingInfoDetail(data) {
  return request({
    url: "/shippingInfoDetail/add",
    method: "post",
    data,
  });
}
// 修改发货明细
export function updateShippingInfoDetail(data) {
  return request({
    url: "/shippingInfoDetail/update",
    method: "post",
    data,
  });
}
// 删除发货明细
export function delShippingInfoDetail(ids) {
  return request({
    url: "/shippingInfoDetail/delete",
    method: "delete",
    data: ids,
  });
}
// 根据ID获取发货信息
export function getShippingInfoById(id) {
  return request({
    url: "/shippingInfo/getById",
    method: "get",
    params: { id },
  });
}