package com.openhis.web.pharmacyWarehousemanage.appservice;

import com.core.common.core.domain.R;
import com.openhis.web.pharmacyWarehousemanage.dto.PharmacyWarehouseDetailDto;
import com.openhis.web.pharmacyWarehousemanage.dto.PharmacyWarehouseSearchParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 药库订货单
 *
 * @author yuxj
 * @date 2025-07-22
 */
public interface IPharmacyWarehousePurchaseOrderService {
    /**
     * 单据初始化
     *
     * @return 初始化信息
     */
    R<?> init();

    /**
     * 订货单单据详情
     *
     * @param busNo 单据号
     * @param pageNo 当前页码
     * @param pageSize 查询条数
     * @return 订货单单据详情
     */
    R<?> getDetailPage(String busNo, Integer pageNo, Integer pageSize);

    /**
     * 获取单据号
     *
     * @return 初始化信息
     */
    R<?> getBusNo();

    /**
     * 添加/编辑采购单
     *
     * @param purchaseOrderDtoList 采购信息
     * @return 操作结果
     */
    R<?> addOrEditPurchaseOrder(List<PharmacyWarehouseDetailDto> purchaseOrderDtoList);

}
