/** 单证 -- 成本分配汇总 **/

import { getAction, postAction, deleteAction } from '@/api/manage'

// 分页列表查询
const costList = params => getAction('/cost/syCostAllocation/list', params)

// 详情
const costByPlanNum = params => getAction('/cost/syCostAllocation/queryByPlanNum', params)

//审核
const itemCheck = params => getAction('/cost/syCostAllocation/approveByPlanNum', params)

//取消审核
const cancelItemCheck = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)


// == 公共部分  start============================
// 人民币费用支出 弹框
// const cancelItemCheck = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)

// 美元费用支出 弹框
// const cancelItemCheck = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)

// 面料转入数量 弹框
// const facInData = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)

//  面料余下数量 弹框
// const facRemData = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)

//  辅料转入数量 弹框
// const ingInData = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)

// 辅料余下数量 弹框
// const ingRemData = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)

// 事故单 单号 弹框
// const itemAccByNum = params => getAction('/cost/syCostAllocation/dApproveByPlanNum', params)

// == 公共部分  end=========================================

// 搜索订单号
const seachPlanNum = params => getAction('/cost/syCostAllocation/queryByPlanNum', params)

//保存 到单证汇总列表
// const addHalfInfo = params => postAction('/cost/syCostAllocation/queryByPlanNum', params)

export { costList, costByPlanNum, itemCheck, cancelItemCheck, seachPlanNum }
