index.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. API_GET_GETSALEPRICELIST
  19. } from '@/api/V2/salesManagement'
  20. // import { API_GET_PROCUREMENT_LOOK } from '../../api/V2/purchasingManagement'
  21. //销售订单列表
  22. export const detailsList = appRx.get(API_GET_SALE_ORDER_LIST, errorCatcher, errorHandle, filter)
  23. //销售订单成交
  24. export const chengList = appRx.post(API_POST_SALE_ORDER_DEAL, errorCatcher, errorHandle, filter)
  25. //销售订单平仓
  26. export const closePositionList = appRx.post(API_POST_SALE_CLOSEPOSITION, errorCatcher, errorHandle,filter)
  27. //销售计划列表
  28. export const salePlan = appRx.get(API_GET_SALEPLAN_LIST,errorCatcher, errorHandle, filter)
  29. //销售计划查看
  30. export const saleLook = appRx.get(API_GET_SALEPLAN_LOOK, errorCatcher, errorHandle,filter)
  31. //销售计划添加
  32. export const saleAdd = appRx.post(API_POST_SALEPLAN_ADD, errorCatcher, errorHandle,filter)
  33. //销售计划编辑
  34. export const saleEdit = appRx.post(API_POST_SALEPLAN_EDIT, errorCatcher, errorHandle,filter)
  35. //销售计划删除
  36. export const saleDel = appRx.post(API_POST_SALEPLAN_DELETE, errorCatcher,errorHandle,filter)
  37. //销售状态,基差,单价修改
  38. export const saleEditOther = appRx.post(API_POST_SALEPLAN_EDITSTATUS, errorCatcher,errorHandle,filter)
  39. //销售订单审核
  40. export const aduitsale = appRx.post(API_POST_ADUIT_SALE, 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 deletesale = appRx.post(API_POST_DELETESALE, errorCatcher,errorHandle,filter)
  47. //成交价列表
  48. export const getpricelist = appRx.get(API_GET_GETPRICELIST, errorCatcher,errorHandle,filter)
  49. //成交价列表销售
  50. export const getsalepricelist = appRx.get(API_GET_GETSALEPRICELIST, errorCatcher,errorHandle,filter)