using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.UI;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using static CoreCms.Net.Configuration.GlobalEnumVars;
|
|
namespace CoreCms.Net.IServices.baifenbingfa
|
{
|
/// <summary>
|
/// 经销商发货相关服务
|
/// </summary>
|
public interface IDistributorDeliveryServices
|
{
|
/// <summary>
|
/// 获取经销商发货未处理订单
|
/// </summary>
|
/// <returns></returns>
|
Task< int> GetNoAcceptedDeliveryCount();
|
|
/// <summary>
|
/// 是否显示经销商菜单项
|
/// </summary>
|
/// <returns></returns>
|
Task<bool> GetShowDelivery();
|
|
/// <summary>
|
/// 获取所有详单
|
/// </summary>
|
/// <param name="Param"></param>
|
/// <returns>
|
/// </returns>
|
Task<(List<CoreCmsBillDelivery>, int)> GetDeliveryList(GetDeliveryListPost Param);
|
/// <summary>
|
/// 设置订单状态
|
/// </summary>
|
/// <param name="acceptType"> 同意类型</param>
|
/// <param name="DeliveryID">配送单ID</param>
|
/// <param name="CancelledDec">取消原因</param>
|
/// <returns></returns>
|
Task<WebApiCallBack> SetDeliveryAccepted(sendDistributionAcceptType acceptType,string DeliveryID,string CancelledDec= null);
|
}
|
|
|
public class GetDeliveryListPost
|
{
|
/// <summary>
|
/// 每页数量
|
/// </summary>
|
public int limit { get; set; } = 5;
|
|
/// <summary>
|
/// 页码
|
/// </summary>
|
public int page { get; set; } = 1;
|
|
/// <summary>
|
/// 经销商确认状态
|
/// </summary>
|
public sendDistributionAcceptType? distributionAcceptStatus { get; set; }
|
/// <summary>
|
/// 订单状态
|
/// </summary>
|
public BillDeliveryStatus? Status { get; set; }
|
}
|
}
|