/**
* @desc   : 出库办理服务
* @author : 常皓宁
* @date   : 2024/2/20 9:24
*/
export default {
  otherOutboundService:{
    prefix: '/mdm-server/ivt/outbound_other/',
    //其他出库预览页查询明细
    selectItemInfoById: 'select_item_info_by_id',
    //其他出库新建
    outboundInsert: 'outbound_insert',
    //其他出库办理
    handleOutbound:'outbound_handle',
    //其他出库根据总单id查询总单和明细  出库办理用
    selectByUpdate: 'select_by_update',
    //出库撤回
    outboundCancel: 'outbound_cancel',
    //预览页查询
    selectOutbound:'select_outbound',
    //其他出库预览页查询明细
    selectOutboundItem: 'select_outbound_item',
    //编辑
    outboundUpdate: 'outbound_update',
    //作废
    outboundRepeal: 'repeal',
    //首页-查询出库-待办事项个数
    selectWaitOutboundCount: 'select_wait_outbound_count',
  }
}

/**
* @desc   : 出库办理路由
* @author : 常皓宁
* @date   : 2024/2/20 9:25
*/
export const routeUrl = {
  otherOutbound:{
    //新建
    add: {key: 'add', routeName:'out-handle-add'},
    //编辑
    edit: {key: 'edit', method: 'edit'},
    //其他出库编辑
    updateOther: {key: 'updateOther', routeName:'out-handle-edit', chooseFlag: true},
    //销售出库编辑
    updateOrder: {key: 'updateOrder', routeName: 'order-out-edit', chooseFlag: true},
    //采购退货出库编辑
    updatePurReturn: {key: 'updatePurReturn', routeName: 'pur-return-edit', chooseFlag: true},
    //出库办理方法
    outHandle: {key: 'outHandle', method: 'outHandle'},
    //其他出库办理
    outHandleOther: {key: 'outHandleOther', routeName:'out-handle-handle', chooseFlag: true},
    //销售出库办理
    outHandleOrder: {key: 'outHandleOrder', routeName: 'order-out-handle', chooseFlag: true},
    //采购退货出库办理
    outHandlePurReturn: {key: 'outHandlePurReturn', routeName: 'pur-return-handle', chooseFlag: true},
    //出库撤回
    outBack: {key: 'outBack', method: 'outBack'},
    //作废
    invalid: {key: 'invalid', method: 'invalid'},
  }
}
