/*******************************************************************************
 * Copyright(c) 2024 dongke All rights reserved. / Confidential
 * 类的信息：
 *		1.程序名称：
 *		2.功能描述：入库
 * 编辑履历：
 *		作者				日期					版本				修改内容
 *		于继渤		  	     2024-1-19       			1.00		       	新建
 *******************************************************************************/
module.exports = {
  saleOutBoundReturnService: {
    // 前缀
    prefix: 'mdm-server/ivt/outbound_sale_return/',
    outboundInsert: 'outbound_insert', //新建
    saleReturnHandleOutbound: 'handle_outbound', //办理
    saleReturnOutboundCancel: 'outbound_cancel',//撤销
    otherOutboundUpdate: 'outbound_update', //编辑
    repeal: 'repeal', //作废
    getOutReturnForUpdate: 'get_out_return_for_update', //作废
    saleReturnOutboundCancel: 'outbound_cancel',
    outboundInsertRefund: 'outbound_insert_refund',//新建销售退货 退款
    getOutReturnForUpdateWx: 'get_out_return_for_update_wx',//新建销售退货 退款
  },

  routeUrl: {
    saleOutBoundReturn: {
      add: { key: 'add', url: '/package-sales/pages/order-return/add/add' },
      edit: { key: 'edit', url: '/package-sales/pages/order-return/add/add', idKey: 'outId', formType: 'detail' },
      selectSourceSaleOrder: {
        key: 'selectSourceSaleOrder', url: '/package-base-select/pages/select-source-sale-out-order/select-source-sale-out-order', primaryKey: 'cusId'
      },
      selectCustomers: { key: 'selectCustomers', url: '/package-base-select/pages/select-customers/select-customers' },
      openingInventory: { key: 'openingInventory', url: '/package-base-select/pages/select-data/select-data', type: 'warehouse' },
      selectInventorySku: { key: 'selectInventorySku', url: '/package-base-select/pages/select-data/select-data', type: 'inventorySku' },
      invalid: { key: 'invalid', method: 'invalid', primaryKey: 'outId', image: 'btn-void.png' },
      salesOutReturnBound: { key: 'salesOutReturnBound', method: 'toDetail', primaryKey: 'outId', image: 'btn-outbound-processing.png' },
      printedBill: { key: 'printedBill', method: 'printedBill', formMode: 'index', idKey: 'cusId', image: 'btn-printing.png' },
      editInto: { key: 'editInto', method: 'editInto', primaryKey: 'outId', image: 'btn-edit.png' }, //编辑
      detailCustomer: {
        key: 'detailCustomer', url: '/package-basic-data/pages/customer-list/detail/detail'
      },
    }
  }
};