index.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_PURCHASING_LIST,
  5. API_POST_PURCHASING_LIST,
  6. API_POST_PURCHASING_CLOSEPOSITION,
  7. API_GET_PROCUREMENT_LIST,
  8. API_GET_PROCUREMENT_LOOK,
  9. API_POST_PROCUREMENT_ADD,
  10. API_POST_PROCUREMENT_EDIT,
  11. API_POST_PROCUREMENT_DELETE,
  12. API_POST_ADUIT_PURCHASE,
  13. API_GET_ADUIT_CONTRACTNO,
  14. API_POST_EDITSTATUS,
  15. API_POST_PROCUREMENT_EDITSTATUS,
  16. API_POST_DELETEPURCHASE,
  17. API_GET_PRICE_PURCHASE,
  18. API_POST_SUBMIT,
  19. API_POST_WORKFLOW_API_HANDLE,
  20. API_POST_QUERY_WORKFLOWINFO
  21. } from '@/api/V2/purchasingManagement'
  22. // import { API_GET_PROCUREMENT_LOOK } from '../../api/V2/purchasingManagement'
  23. //采购详情列表
  24. export const detailsList = appRx.get(API_GET_PURCHASING_LIST, errorCatcher, errorHandle, filter)
  25. //采购详情成交
  26. export const chengList = appRx.post(API_POST_PURCHASING_LIST, errorCatcher, errorHandle, filter)
  27. //采购详情平仓
  28. export const closePositionList = appRx.post(API_POST_PURCHASING_CLOSEPOSITION, errorCatcher, errorHandle,filter)
  29. //采购计划列表
  30. export const procurementPlan = appRx.get(API_GET_PROCUREMENT_LIST,errorCatcher, errorHandle, filter)
  31. //采购计划查看
  32. export const procurementLook = appRx.get(API_GET_PROCUREMENT_LOOK, errorCatcher, errorHandle,filter)
  33. //采购计划添加
  34. export const procurementAdd = appRx.post(API_POST_PROCUREMENT_ADD, errorCatcher, errorHandle,filter)
  35. //采购计划编辑
  36. export const procurementEdit = appRx.post( API_POST_PROCUREMENT_EDIT, errorCatcher, errorHandle,filter)
  37. //采购计划删除
  38. export const procurementDel = appRx.post(API_POST_PROCUREMENT_DELETE, errorCatcher,errorHandle,filter)
  39. //采购订单审核编辑
  40. export const aduitpurchase = appRx.post(API_POST_ADUIT_PURCHASE, errorCatcher,errorHandle,filter)
  41. // 采购订单合同编号
  42. export const aduitcontractno = appRx.get(API_GET_ADUIT_CONTRACTNO, errorCatcher,errorHandle,filter)
  43. // 采购订单flag0 补充定金 1解冻定金 2完成 3更改基差
  44. export const editStatus = appRx.post(API_POST_EDITSTATUS, errorCatcher,errorHandle,filter)
  45. //采购状态,基差,单价修改
  46. export const procurementEditOther = appRx.post(API_POST_PROCUREMENT_EDITSTATUS, errorCatcher,errorHandle,filter)
  47. //采购订单删除
  48. export const deletepurchase = appRx.post(API_POST_DELETEPURCHASE, errorCatcher,errorHandle,filter)
  49. //采购订单平仓查看成交价
  50. export const getTransactionPriceList = appRx.get(API_GET_PRICE_PURCHASE, errorCatcher,errorHandle,filter)
  51. //测试
  52. export const postsubmit = appRx.post(API_POST_SUBMIT, errorCatcher,errorHandle,filter)
  53. // 审核通过不通过
  54. export const posthandle = appRx.post(API_POST_WORKFLOW_API_HANDLE, errorCatcher,errorHandle,filter)
  55. // 审核之后调用
  56. export const postqueryhandle = appRx.post(API_POST_QUERY_WORKFLOWINFO, errorCatcher,errorHandle,filter)