|
|
@@ -51,18 +51,16 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 机具申请订单列表
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public JsonResult IndexData(MachineApply data,string ApplyNo, string MakerCode, string RealName, string StoreNo, string StoreName, string StoreMakerCode, string StatusSelect, string ApplyTimeData, string SendStatusSelect, string StoreTypeSelect, int page = 1, int limit = 30)
|
|
|
+ public JsonResult IndexData(MachineApply data,string ApplyNo, string MakerCode, string RealName, string StoreNo, string StoreName, string StoreMakerCode, string StatusSelect, string ApplyTimeData, string SendDateData, string SendStatusSelect, string StoreTypeSelect, int page = 1, int limit = 30)
|
|
|
{
|
|
|
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
|
|
|
Fields.Add("ApplyNo", "1"); //申请单号
|
|
|
Fields.Add("BrandId", "1"); //品牌
|
|
|
- Fields.Add("ApplyTime", "3"); //申请时间
|
|
|
Fields.Add("ExpressNo", "1"); //快递单号
|
|
|
Fields.Add("DeliveryType", "0"); //提货类型
|
|
|
Fields.Add("StoreManager", "1"); //仓库联系人
|
|
|
- Fields.Add("SendDate", "3"); //发货时间
|
|
|
Fields.Add("TopUserId", "0"); //顶级创客
|
|
|
Fields.Add("SwapSnExpand", "1"); //兑换SN
|
|
|
Fields.Add("SendSn", "1"); //发货SN
|
|
|
@@ -122,6 +120,14 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
condition += " and ApplyTime>='" + start + " 00:00:00' and ApplyTime<='" + end + " 23:59:59'";
|
|
|
}
|
|
|
|
|
|
+ if(!string.IsNullOrEmpty(SendDateData))
|
|
|
+ {
|
|
|
+ string[] datelist = SendDateData.Split(new string[] { " - " }, StringSplitOptions.None);
|
|
|
+ string start = datelist[0];
|
|
|
+ string end = datelist[1];
|
|
|
+ condition += " and SendDate>='" + start + " 00:00:00' and SendDate<='" + end + " 23:59:59'";
|
|
|
+ }
|
|
|
+
|
|
|
Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("MachineApply", Fields, "Id desc", "0", page, limit, condition);
|
|
|
List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
|
foreach (Dictionary<string, object> dic in diclist)
|