|
|
|
using DS.Module.Core;
|
|
|
|
using DS.WMS.Core.Fee.Dtos;
|
|
|
|
using DS.WMS.Core.Fee.Entity;
|
|
|
|
using DS.WMS.Core.Op.Entity;
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Fee.Interface;
|
|
|
|
|
|
|
|
public interface IFeeRecordService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult<List<FeeRecordRes>>> GetListByPageAsync(PageRequest request);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="query">查询条件</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult<List<FeeRecord>>> GetListAsync(string query);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 提交
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="items">要提交的费用记录</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> SaveAsync(IEnumerable<FeeRecord> items);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 根据费用模板引入
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="bid">业务ID</param>
|
|
|
|
/// <param name="type">业务类型</param>
|
|
|
|
/// <param name="tidArray">模板ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> CreateByTemplateAsync(long bid, BusinessType type, params long[] tidArray);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 删除
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ids"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> DeleteAsync(params long[] ids);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发起审批工作流
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="auditType">审批类型</param>
|
|
|
|
/// <param name="remark">备注</param>
|
|
|
|
/// <param name="idArray">费用记录ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> SubmitForApprovalAsync(AuditType auditType, string remark, params long[] idArray);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发起费用修改申请
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="items">费用修改信息</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> SubmitForModificationAsync(IEnumerable<FeeModification> items);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 撤销审批
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ids">费用记录ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> WithdrawAsync(params long[] ids);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发起整单审核
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="bid">业务ID</param>
|
|
|
|
/// <param name="type">业务类型</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> SubmitBusinessAuditAsync(long bid, BusinessType type);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 回写业务表费用状态
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="tenantDb"></param>
|
|
|
|
/// <param name="businessId">业务ID</param>
|
|
|
|
/// <param name="businessType">业务类型</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task WriteBackStatusAsync(long businessId, BusinessType businessType);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取费用核算单打印信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="businessType">业务类型</param>
|
|
|
|
/// <param name="idArray">费用记录ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult<CostAccountingForm>> GetPrintInfoAsync(BusinessType businessType, params long[] idArray);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 设置发票启用状态
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="enabled">是否启用</param>
|
|
|
|
/// <param name="idArray">费用记录ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<DataResult> SetInvoiceEnabledAsync(bool enabled, params long[] idArray);
|
|
|
|
}
|