index.js 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_PURCHRECEIPT,
  5. API_GET_CONTRACTNO,
  6. API_POST_AMEND_PURCHRECEIPT,
  7. API_POST_REPLANISHENT,
  8. API_POST_AUDIT,
  9. API_POST_PAYMONEY,
  10. API_POST_SALE_EXAMINE,
  11. API_GET_SALE_LIST,
  12. API_POST_PAY_MONEY,
  13. API_POST_COLLECT_MONEY,
  14. API_GET_CLOSE,
  15. API_POST_CLOAEAUDIT,
  16. API_POST_CLOSEPAYMONEY,
  17. API_POST_CLOSECOLLMONEY,
  18. API_POST_OPENINVOICE,
  19. API_POST_BATCHOPENINVOICE,
  20. API_GET_SALELIST,
  21. API_POST_CASHIER_PAYMENT,
  22. API_POST_SALES_INVOICING,
  23. API_POST_SALES_BATCH_INVOICING,
  24. API_POST_FINAL_SETTLEMENT_PRICE,
  25. API_POST_ISSUE_APPROVAL
  26. } from '@/api/V2/statisticalReport'
  27. //采购入库报表
  28. export const getpurchreceipt = appRx.get(API_GET_PURCHRECEIPT, errorCatcher, errorHandle, filter)
  29. //采购合同
  30. export const getcontractno = appRx.get(API_GET_CONTRACTNO, errorCatcher, errorHandle, filter)
  31. //采购入库修改
  32. export const postamend = appRx.post(API_POST_AMEND_PURCHRECEIPT, errorCatcher, errorHandle, filter)
  33. //采购入库补货结转
  34. export const postreplanishent = appRx.post(API_POST_REPLANISHENT, errorCatcher, errorHandle, filter)
  35. //采购入库审核
  36. export const postaudit = appRx.post(API_POST_AUDIT, errorCatcher, errorHandle, filter)
  37. //采购入库付款
  38. export const postpaymoney = appRx.post(API_POST_PAYMONEY, errorCatcher, errorHandle, filter)
  39. //销售平仓审核
  40. export const postsaleaudit = appRx.post(API_POST_SALE_EXAMINE, errorCatcher, errorHandle, filter)
  41. //销售平仓列表
  42. export const getsalelist = appRx.get(API_GET_SALE_LIST, errorCatcher, errorHandle, filter)
  43. //销售平仓付款
  44. export const postsalepaymoney= appRx.post(API_POST_PAY_MONEY, errorCatcher, errorHandle, filter)
  45. //销售平仓收款
  46. export const postsalecollectmoney= appRx.post(API_POST_COLLECT_MONEY, errorCatcher, errorHandle, filter)
  47. //采购平仓报表
  48. export const getclose = appRx.get(API_GET_CLOSE, errorCatcher, errorHandle, filter)
  49. //采购平仓审核
  50. export const closeaudit = appRx.post(API_POST_CLOAEAUDIT, errorCatcher, errorHandle, filter)
  51. //采购平仓付款
  52. export const closepaymoney = appRx.post(API_POST_CLOSEPAYMONEY, errorCatcher, errorHandle, filter)
  53. //采购平仓收款
  54. export const closecollmoney = appRx.post(API_POST_CLOSECOLLMONEY, errorCatcher, errorHandle, filter)
  55. //采购入库开发票
  56. export const postopeninvoice = appRx.post(API_POST_OPENINVOICE, errorCatcher, errorHandle, filter)
  57. //采购入库批量开发票
  58. export const postbatchopeninvoice = appRx.post(API_POST_BATCHOPENINVOICE, errorCatcher, errorHandle, filter)
  59. //销售出库报表
  60. export const salelist = appRx.get(API_GET_SALELIST, errorCatcher, errorHandle, filter)
  61. //销售出库出纳收款
  62. export const cashierpayment = appRx.post(API_POST_CASHIER_PAYMENT, errorCatcher, errorHandle, filter)
  63. //销售出库开发票
  64. export const salesinvoicing = appRx.post(API_POST_SALES_INVOICING, errorCatcher, errorHandle, filter)
  65. //销售出库批量开发票
  66. export const salesbatchinvoicing = appRx.post(API_POST_SALES_BATCH_INVOICING, errorCatcher, errorHandle, filter)
  67. //销售出库最终结算价
  68. export const finalsettlementprice = appRx.post(API_POST_FINAL_SETTLEMENT_PRICE, errorCatcher, errorHandle, filter)
  69. //销售出库审核
  70. export const issueapproval = appRx.post(API_POST_ISSUE_APPROVAL, errorCatcher, errorHandle, filter)