/**
 * @desc   : 采购入库服务
 * @author : 付斌
 * @date   : 2024-01-31 14:37
 */
export default {
  purEnterService:{
    prefix: '/mdm-server/ivt/inbound_purchase/',
    //采购入库预览页查询明细
    selectPurchaseInboundItemInfoById: 'select_purchase_inbound_item_info_by_id',
    //采购入库新建
    purchaseInboundInsert: 'inbound_insert',
    //采购入库编辑
    purchaseInboundUpdate:'inbound_update',
    //采购入库办理
    purchaseHandleInbound:'inbound_handle',
    //采购入库根据总单id查询总单和明细  入库办理用
    selectByUpdate: 'select_by_update',
    //入库撤回
    purchaseInboundCancel: 'inbound_cancel',
    //作废
    purchaseInboundRepeal:'repeal',
    selectTotalDetail:'select_total_detail',

  }
}

/**
 * @desc   : 采购入库路由
 * @author : 付斌
 * @date   : 2024-02-01 16:03
 */
export const routeUrl = {
  purEnter: {
    //新建
    add: {key: 'add', routeName: 'pur-enter-add'},
    //选择来源单
    choosePurchase:{key: 'choosePurchase', method: 'choosePurchase'},
    //清空明细
    clearDetail:{key: 'clearDetail', method: 'clearDetail'},
    //入库办理
    entryHandle: {key: 'entryHandle', routeName: 'pur-enter-handle',chooseFlag:true},
    //入库撤回
    entryBack: {key: 'entryBack', method: 'entryBack'},
    //作废
    invalid: {key: 'invalid', method: 'invalid'},
    //编辑
    edit: {key: 'edit', routeName: 'pur-enter-edit'},
  }
}
