import { errorCatcher, errorHandle, filter } from 'base-core-lib' import { appRx } from '../defalutConfig/indexRx' import { API_GET_PURCHASING_LIST, API_POST_PURCHASING_LIST, API_POST_PURCHASING_CLOSEPOSITION, API_GET_PROCUREMENT_LIST, API_GET_PROCUREMENT_LOOK, API_POST_PROCUREMENT_ADD, API_POST_PROCUREMENT_EDIT, API_POST_PROCUREMENT_DELETE, API_POST_ADUIT_PURCHASE, API_GET_ADUIT_CONTRACTNO, API_POST_EDITSTATUS, API_POST_PROCUREMENT_EDITSTATUS, API_POST_DELETEPURCHASE, API_GET_PRICE_PURCHASE, API_POST_SUBMIT, API_POST_WORKFLOW_API_HANDLE, API_POST_QUERY_WORKFLOWINFO } from '@/api/V2/purchasingManagement' // import { API_GET_PROCUREMENT_LOOK } from '../../api/V2/purchasingManagement' //采购详情列表 export const detailsList = appRx.get(API_GET_PURCHASING_LIST, errorCatcher, errorHandle, filter) //采购详情成交 export const chengList = appRx.post(API_POST_PURCHASING_LIST, errorCatcher, errorHandle, filter) //采购详情平仓 export const closePositionList = appRx.post(API_POST_PURCHASING_CLOSEPOSITION, errorCatcher, errorHandle,filter) //采购计划列表 export const procurementPlan = appRx.get(API_GET_PROCUREMENT_LIST,errorCatcher, errorHandle, filter) //采购计划查看 export const procurementLook = appRx.get(API_GET_PROCUREMENT_LOOK, errorCatcher, errorHandle,filter) //采购计划添加 export const procurementAdd = appRx.post(API_POST_PROCUREMENT_ADD, errorCatcher, errorHandle,filter) //采购计划编辑 export const procurementEdit = appRx.post( API_POST_PROCUREMENT_EDIT, errorCatcher, errorHandle,filter) //采购计划删除 export const procurementDel = appRx.post(API_POST_PROCUREMENT_DELETE, errorCatcher,errorHandle,filter) //采购订单审核编辑 export const aduitpurchase = appRx.post(API_POST_ADUIT_PURCHASE, errorCatcher,errorHandle,filter) // 采购订单合同编号 export const aduitcontractno = appRx.get(API_GET_ADUIT_CONTRACTNO, errorCatcher,errorHandle,filter) // 采购订单flag0 补充定金 1解冻定金 2完成 3更改基差 export const editStatus = appRx.post(API_POST_EDITSTATUS, errorCatcher,errorHandle,filter) //采购状态,基差,单价修改 export const procurementEditOther = appRx.post(API_POST_PROCUREMENT_EDITSTATUS, errorCatcher,errorHandle,filter) //采购订单删除 export const deletepurchase = appRx.post(API_POST_DELETEPURCHASE, errorCatcher,errorHandle,filter) //采购订单平仓查看成交价 export const getTransactionPriceList = appRx.get(API_GET_PRICE_PURCHASE, errorCatcher,errorHandle,filter) //测试 export const postsubmit = appRx.post(API_POST_SUBMIT, errorCatcher,errorHandle,filter) // 审核通过不通过 export const posthandle = appRx.post(API_POST_WORKFLOW_API_HANDLE, errorCatcher,errorHandle,filter) // 审核之后调用 export const postqueryhandle = appRx.post(API_POST_QUERY_WORKFLOWINFO, errorCatcher,errorHandle,filter)