index.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_SALE_ORDER_LIST,
  5. API_POST_SALE_ORDER_DEAL,
  6. API_POST_SALE_CLOSEPOSITION,
  7. API_POST_ADUIT_SALE,
  8. API_GET_ADUIT_CONTRACTNO,
  9. API_POST_EDITSTATUS,
  10. API_POST_DELETESALE,
  11. API_GET_SALEPLAN_LIST,
  12. API_GET_SALEPLAN_LOOK,
  13. API_POST_SALEPLAN_ADD,
  14. API_POST_SALEPLAN_EDIT,
  15. API_POST_SALEPLAN_DELETE,
  16. API_POST_SALEPLAN_EDITSTATUS,
  17. API_GET_GETPRICELIST,
  18. } from '@/api/V2/salesManagement'
  19. // import { API_GET_PROCUREMENT_LOOK } from '../../api/V2/purchasingManagement'
  20. //销售订单列表
  21. export const detailsList = appRx.get(API_GET_SALE_ORDER_LIST, errorCatcher, errorHandle, filter)
  22. //销售订单成交
  23. export const chengList = appRx.post(API_POST_SALE_ORDER_DEAL, errorCatcher, errorHandle, filter)
  24. //销售订单平仓
  25. export const closePositionList = appRx.post(API_POST_SALE_CLOSEPOSITION, errorCatcher, errorHandle,filter)
  26. //销售计划列表
  27. export const salePlan = appRx.get(API_GET_SALEPLAN_LIST,errorCatcher, errorHandle, filter)
  28. //销售计划查看
  29. export const saleLook = appRx.get(API_GET_SALEPLAN_LOOK, errorCatcher, errorHandle,filter)
  30. //销售计划添加
  31. export const saleAdd = appRx.post(API_POST_SALEPLAN_ADD, errorCatcher, errorHandle,filter)
  32. //销售计划编辑
  33. export const saleEdit = appRx.post(API_POST_SALEPLAN_EDIT, errorCatcher, errorHandle,filter)
  34. //销售计划删除
  35. export const saleDel = appRx.post(API_POST_SALEPLAN_DELETE, errorCatcher,errorHandle,filter)
  36. //销售状态,基差,单价修改
  37. export const saleEditOther = appRx.post(API_POST_SALEPLAN_EDITSTATUS, errorCatcher,errorHandle,filter)
  38. //销售订单审核
  39. export const aduitsale = appRx.post(API_POST_ADUIT_SALE, errorCatcher,errorHandle,filter)
  40. //销售订单合同编号下拉列表
  41. export const aduitcontractno = appRx.get(API_GET_ADUIT_CONTRACTNO, errorCatcher,errorHandle,filter)
  42. //销售订单flag0 补充定金 1解冻定金 2完成 3更改基差
  43. export const editStatus = appRx.post(API_POST_EDITSTATUS, errorCatcher,errorHandle,filter)
  44. //销售订单删除
  45. export const deletesale = appRx.post(API_POST_DELETESALE, errorCatcher,errorHandle,filter)
  46. //成交价列表
  47. export const getpricelist = appRx.get(API_GET_GETPRICELIST, errorCatcher,errorHandle,filter)