/*******************************************************************************
 * Copyright(c) 2024 dongke All rights reserved. / Confidential
 * 类的信息：
 *		1.程序名称：
 *		2.功能描述：采购
 * 编辑履历：
 *		作者				日期					版本				修改内容
 *		于继渤		  	     2024-1-19       			1.00		       	新建
 *******************************************************************************/
module.exports = {
  purchaseService: {
      // 前缀
      prefix: 'mdm-server/pur/purchase/', 
      noStoredlistBy :'no_storedlist_by',
      selectListByItem :'list_by_item', //查询采购订单（入库来源单）
      invalid:'invalid/',//作废
      purSelectId:'pur_select_id/'//转入库 查询采购订单 总单带明细(过滤明细已入库数据)
  },

  routeUrl: { 
    purchase: { 
      docName:{key:'purchase_order' ,title:'采购订单'},
      purchaseCancellation: { key: 'purchaseCancellation', method: 'purchaseCancellation',  image:'btn-void.png',question:true  },//采购作废  
      printedBill: { key: 'printedBill', method: 'printedBill', image:'btn-printing.png' },//打印
      transferToWarehouse:{
        key:'transferToWarehouse',url:'/package-purchase/pages/purchase-receipt/add/add', image:'btn-transfer-warehouse.png'
      }, //转入库
      editPur: { key: 'editPur', method: 'editPur', primaryKey: 'purId', image: 'btn-edit.png'}, //编辑
      add: { key: 'add', url: '/package-purchase/pages/purchase-order/add/add' }, 
      chooseSupplier: { key: 'chooseSupplier', url: '/package-base-select/pages/select-data/select-data',type:'supplier'  },
      chooseWh: { key: 'chooseWh', url: '/package-base-select/pages/select-data/select-data',type:'warehouse'  },
      chooseSaleOrder: { key: 'chooseSaleOrder', url: '/package-purchase/pages/purchase-based-sales/purchase-based-sales'  },
      detail: { key: 'detail', url: '/package-purchase/pages/purchase-order/purchase-order-detail/purchase-order-detail' },  
      selectSourcePurchaseOrder:{  key:'selectSourcePurchaseOrder',url:'/package-base-select/pages/select-source-purchase-order/select-source-purchase-order',image:'btn-purchase-return.png'},     
      inventoryQty: { key: 'inventoryQty', url: '/package-purchase/pages/purchase-receipt/purchase-receipt' }, 
      returnQty: { key: 'returnQty', url: '/package-purchase/pages/purchase-return/purchase-return' }, 
      returnAndOutbound: { key: 'returnAndOutbound', url: '/package-inventory/pages/outbound-processing/outbound-processing' }, 
    }
  } 
};