/*******************************************************************************
 * Copyright(c) 2024 dongke All rights reserved. / Confidential
 * 类的信息：
 *		1.程序名称：
 *		2.功能描述：销售订单查询方法
 * 编辑履历：
 *		作者				日期					版本				修改内容
 *		于继渤		  	     2024-1-19       			1.00		       	新建
 *******************************************************************************/
module.exports = {
  orderService: {
    // 前缀
    prefix: 'mdm-server/sale/order/',
    purSaleListBy: 'purchase_based_on_sales_list_by',
    getOrderForUpdate: 'get_order_for_update',
    selectOrderInfoById: 'select_order_info_by_id',
    selectTotalSingleTapeDetailPage: 'select_total_single_tape_detail_page', //总单带明显
    getOrderForOut: 'get_order_for_out', //总单带明显
    getOrderForReturn: 'get_order_for_return',
    countOrderByCond:'count_order_by_cond',
    invalid: 'invalid'
  },

  routeUrl: {
    order: {
      add: { key: 'add', url: '/package-sales/pages/order-billing/add/add' },
      editOrder: { key: 'editOrder', url: '/package-sales/pages/order-billing/add/add', idKey: 'orderId', formMode: 'edit' },
      invalid: { key: 'invalid', method: 'invalid', primaryKey: 'orderId' },
      openPurchase: { key: 'openPurchase', url: '/package-purchase/pages/purchase-order/add/add' },
      selectCustomers: { key: 'add', url: '/package-base-select/pages/select-customers/select-customers' },
      edit: { key: 'edit', url: '/package-sales/pages/order-billing/detail/detail', formMode: 'other', idKey: 'orderId' },
      openingInventory: { key: 'openingInventory', url: '/package-base-select/pages/select-data/select-data', type: 'warehouse' },
      saleOutBound: { key: 'saleOutBound', url: '/package-sales/pages/sales-outbound/add/add' },
      chooseSaleOrder: { key: 'chooseSaleOrder', url: '/package-base-select/pages/select-source-sale-order/select-source-sale-order' },
      saleOrderReturn: { key: 'saleOrderReturn', url: '/package-sales/pages/order-return/add/add' },
      selectCollectionConfirm: { key: 'selectCollectionConfirm', url: '/package-base-select/pages/select-collection_confirm/select-collection_confirm' },
      chooseChannel: { key: 'chooseChannel', url: '/package-base-select/pages/select-data/select-data', type: 'saleChannel' },
      choosecusFrom: { key: 'choosecusFrom', url: '/package-base-select/pages/select-data/select-data', type: 'customerFrom' },
      collection:{ key: 'collection', url: '/package-sales/pages/customer-collection/customer-collection', formMode: 'index', idKey: 'cusId' } //跳转客户收款
    }

  }
};