You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
3.5 KiB

7 months ago
​
​
​
​
5 months ago
​
​
7 months ago
5 months ago
​
​
7 months ago
​
​
​
​
5 months ago
​
​
​
​
​
4 months ago
​
​
​
​
3 months ago
​
​
​
4 months ago
​
​
​
​
​
​
​
​
​
4 months ago
​
​
​
​
​
4 months ago
​
​
​
​
​
4 months ago
​
​
​
​
​
  1. import { createAPI } from '@/utils/httpRequest.js'
  2. export const searchPoDetailList = (data) => createAPI(`/pODetail/list`, 'post', data)
  3. export const searchPoDetailPage = (data) => createAPI(`/pODetail/page`, 'post', data)
  4. /** PO 高级查询(动态条件 AND + 顶部基础筛选,独立于 searchPoDetailPage) */
  5. export const searchPoDetailAdvancedPage = (data) => createAPI(`/pODetail/advancedPage`, 'post', data)
  6. export const createPoDetail = (data) => createAPI(`/pODetail/save`, 'post', data)
  7. /** 手工新增 PO(自动生成 header + detail,order_no 走 TransNoControl PO) */
  8. export const createPoOrder = (data) => createAPI(`/pODetail/createPoOrder`, 'post', data)
  9. export const updatePoDetail = (data) => createAPI(`/pODetail/save`, 'post', data)
  10. export const deletePoDetail = (data) => createAPI(`/pODetail/delete`, 'post', data)
  11. //批量更新
  12. export const batchUpdatePoDetail = (data) => createAPI(`/pODetail/batchUpdatePoDetail`, 'post', data)
  13. /** 关闭 PO 订单行(status → 已关闭) */
  14. export const closePoDetail = (data) => createAPI(`/pODetail/closePoDetail`, 'post', data)
  15. /** 打开 PO 订单行(已关闭 → 按验货数量恢复状态) */
  16. export const openPoDetail = (data) => createAPI(`/pODetail/openPoDetail`, 'post', data)
  17. /** 下达 PO 订单行(草稿 → 已下达) */
  18. export const issuePoDetail = (data) => createAPI(`/pODetail/issuePoDetail`, 'post', data)
  19. /** 回滚 PO 订单行(已下达 → 草稿) */
  20. export const rollbackPoDetail = (data) => createAPI(`/pODetail/rollbackPoDetail`, 'post', data)
  21. /** 发货弹窗预览(返回订单数量、可发货数量、默认本次发货数量) */
  22. export const shipPoDetailPreview = (data) => createAPI(`/pODetail/shipPoDetailPreview`, 'post', data)
  23. /** 提交发货(回写 qty/c_ship_qty,并按规则判定部分发货或已发货) */
  24. export const shipPoDetail = (data) => createAPI(`/pODetail/shipPoDetail`, 'post', data)
  25. /** 提交拆分任务(同一 order_no 下复制行生成新行,后端自动分配新行号) */
  26. export const splitPoDetail = (data) => createAPI(`/pODetail/splitPoDetail`, 'post', data)
  27. /** 拆单到新 PO(将原行部分数量拆分到全新 PO,新行继承状态,验货记录不动) */
  28. export const splitToNewPo = (data) => createAPI(`/pODetail/splitToNewPo`, 'post', data)
  29. /** 打样单收货(回写 c_po_actual_ready_date,同事务自动生成已排程验货申请) */
  30. export const receivePoDetail = (data) => createAPI(`/pODetail/receivePoDetail`, 'post', data)
  31. // 根据PO订单查询验货申请明细
  32. export const getInspectionByPODetail = (data) => createAPI(`/pODetail/getInspectionByPODetail`, 'post', data)
  33. // Customer 下拉
  34. export const getPoCustomerOptions = (data) => createAPI(`/pODetail/customerOptions`, 'post', data)
  35. // Buyer 下拉
  36. export const getPoBuyerOptions = (data) => createAPI(`/pODetail/buyerOptions`, 'post', data)
  37. /** 当前账号可选 customer(按 po_customer_user_scope 过滤) */
  38. export const getPoCustomerScope = (data) => createAPI(`/pODetail/customerScope`, 'post', data)
  39. /** 按 customer + scene 获取字段 schema */
  40. export const getPoFieldSchema = (data) => createAPI(`/pODetail/fieldSchema`, 'post', data)
  41. /** 按供应商查询可供物料(SupplierforPart) */
  42. export const listPoSupplierPartOptions = (data) => createAPI(`/supplier/supplierPartMoqPrice/listSupplierPart`, 'post', data)
  43. /** 查询当前生效阶梯价(sp_current_tier_price) */
  44. export const listPoCurrentTierPrice = (data) => createAPI(`/supplier/supplierPartMoqPrice/listCurrentTierPrice`, 'post', data)