/**
 * @desc   : 销售出库服务
 * @author : 付斌
 * @date   : 2024-01-31 14:37
 */
export default {
  orderOutService: {
    prefix: '/mdm-server/ivt/outbound_sale_order/',
    selectOutboundInfoById: 'select_outbound_info_by_id',
    getOutboundForUpdate: 'get_outbound_for_update',
    getOutboundTogetherForUpdate: 'get_outbound_together_for_update',
    getOutForReturn: 'get_out_for_return',
    outboundInsert: 'outbound_insert',
    outboundUpdate: 'outbound_update',
    handleOutbound: 'handle_outbound',
    repeal: 'repeal',
    saleOrderOutboundCancel: 'sale_order_outbound_cancel',
  }
}

/**
 * @desc   : 销售出库路由
 * @author : 付斌
 * @date   : 2024-02-01 16:03
 */
export const routeUrl = {
  orderOut: {
    add: {key: 'add', routeName: 'order-out-add'},
    editForm: {key: 'editForm', routeName: 'order-out-edit', chooseFlag: true},
    editOrderOutForm: {key: 'editOrderOutForm', routeName: 'order-out-edit', togetherFlag: true, chooseFlag: true},
    outHandle: {key: 'outHandle', routeName: 'order-out-handle', chooseFlag:true},
    outBack: {key: 'outBack', method: 'outBack'},
    outReverse: {key: 'outReverse', method: 'outReverse'},
    outReturn: {key: 'outReturn', routeName: 'order-out-add-return', chooseFlag: true},
    invalid: {key: 'invalid', method: 'invalid'},
  }
}
