/**
 *   @desc   : 其他入库
 *   @date   : 2024/3/9 15:20
 *   @author : 寇珊珊
 */
export default {
  otherInboundService:{
    prefix: '/mdm-server/ivt/inbound_other/',
    //其他入库预览页查询明细
    selectItemInfoById: 'select_item_info_by_id',
    //其他入库新建
    inboundInsert: 'inbound_insert',
    //其他入库办理
    handleInbound:'inbound_handle',
    //其他入库根据总单id查询总单和明细  入库办理用
    selectByUpdate: 'select_by_update',
    //入库撤回
    inboundCancel: 'inbound_cancel',
    //预览页查询
    selectInbound:'select_inbound',
    //其他入库预览页查询明细
    selectInboundItem: 'select_inbound_item',
    //编辑
    inboundUpdate: 'inbound_update',
    //作废
    outboundRepeal: 'repeal',
    //首页-查询入库-待办事项个数
    selectWaitInboundCount: 'select_wait_inbound_count',
  }
}

/**
 * @desc   : 入库办理路由
 * @author : 常皓宁
 * @date   : 2024/1/31 10:25
 */
export const routeUrl = {
  otherInbound:{
    //新建
    add: {key: 'add', routeName:'entry-handle-add'},
    //编辑
    edit: {key: 'edit', method: 'edit'},
    //其他入库编辑
    updateOther: {key: 'updateOther', routeName:'entry-handle-edit', chooseFlag: true},
    //采购入库编辑
    updatePur: {key: 'updatePur', routeName: 'pur-enter-edit', chooseFlag: true},
    //销售退货入库编辑
    updateSaleReturn: {key: 'updateSaleReturn', routeName: 'order-return-edit', chooseFlag: true},
    //入库办理方法
    entryHandle: {key: 'entryHandle', method: 'entryHandle'},
    //其他入库办理
    entryHandleOther: {key: 'entryHandleOther', routeName:'entry-handle-handle', chooseFlag: true},
    //采购入库办理
    entryHandlePur: {key: 'entryHandlePur', routeName: 'pur-enter-handle', chooseFlag: true},
    //销售退货入库办理
    entryHandleSaleReturn: {key: 'entryHandleSaleReturn', routeName: 'out-return-handle', chooseFlag: true},
    //入库撤回
    entryBack: {key: 'entryBack', method: 'entryBack'},
    //作废
    invalid: {key: 'invalid', method: 'invalid'},
  }
}
