/*******************************************************************************
 * Copyright(c) 2024 dongke All rights reserved. / Confidential
 * 类的信息：
 *		1.程序名称：
 *		2.功能描述：出库
 * 编辑履历：
 *		作者				日期					版本				修改内容
 *		于继渤		  	     2024-1-19       			1.00		       	新建
 *******************************************************************************/
module.exports = {
  saleOutBoundService: {
    // 前缀
    prefix: 'mdm-server/ivt/outbound_sale_order/',
    outboundInsert: 'outbound_insert',
    outboundUpdate: 'outbound_update',
    handleOutbound: 'handle_outbound',
    getOutboundForUpdate: 'get_outbound_for_update',
    repeal: 'repeal',
    selectByCondDetail: 'select_by_cond_detail', //总单带明细 
    outboundInsertCollection: 'outbound_insert_collection',
    saleOrderOutboundCancel: 'sale_order_outbound_cancel',
  },

  routeUrl: {
    saleOutBound: {
      docName: { key: 'order_out', title: '销售单' },
      add: { key: 'add', url: '/package-sales/pages/sales-outbound/add/add' },
      edit: { key: 'edit', url: '/package-sales/pages/sales-outbound/add/add', idKey: 'outId', formType: 'detail' },
      selectSourceSaleOrder: {
        key: 'selectSourceSaleOrder', url: '/package-base-select/pages/select-source-sale-order/select-source-sale-order'
      },

      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' },
      editInto: { key: 'editInto', method: 'editInto', primaryKey: 'outId', image: 'btn-edit.png' }, //编辑
      salesOutbound: { key: 'salesOutbound', method: 'toDetail', primaryKey: 'outId', image: 'btn-outbound-processing.png' },
      printedBill: { key: 'printedBill', method: 'printedBill', formMode: 'index', idKey: 'outId', image: 'btn-printing.png' },
      saleOrderReturn: { key: 'saleOrderReturn', url: '/package-sales/pages/order-return/add/add', image: 'btn-sales-returns.png', tipMethod: 'isAllowedSaleOrderReturn' },
      cusReturnCollection: { key: 'cusReturnCollection', url: '/package-sales/pages/customer-collection/refund/refund', idKey: 'rpId', formMode: 'edit', image: 'btn-customer-refund.png' },
      cusCollection: { key: 'cusCollection', url: '/package-sales/pages/customer-collection/add/add', idKey: 'receivableId', formMode: 'edit', image: 'btn-customer-collection.png' },
      detailCustomer: {
        key: 'detailCustomer', url: '/package-basic-data/pages/customer-list/detail/detail'
      },
    }
  }
};