|
|
@@ -51,7 +51,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 机具申请订单列表
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public JsonResult IndexData(MachineApply data, string MakerCode, string RealName, string StoreNo, string StoreName, string StoreMakerCode, string StatusSelect, 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 SendStatusSelect, string StoreTypeSelect, int page = 1, int limit = 30)
|
|
|
{
|
|
|
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
@@ -68,6 +68,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
Fields.Add("SendSn", "1"); //发货SN
|
|
|
|
|
|
string condition = " and Status>-1";
|
|
|
+ //申请单号
|
|
|
+ if (!string.IsNullOrEmpty(ApplyNo))
|
|
|
+ {
|
|
|
+ condition += " and ApplyNo like'" + ApplyNo + "' " ;
|
|
|
+ }
|
|
|
//创客编号
|
|
|
if (!string.IsNullOrEmpty(MakerCode))
|
|
|
{
|
|
|
@@ -108,6 +113,14 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
condition += " and StoreType=" + StoreTypeSelect;
|
|
|
}
|
|
|
+ //申请时间
|
|
|
+ if(!string.IsNullOrEmpty(ApplyTimeData))
|
|
|
+ {
|
|
|
+ string[] datelist = ApplyTimeData.Split(new string[] { " - " }, StringSplitOptions.None);
|
|
|
+ string start = datelist[0];
|
|
|
+ string end = datelist[1];
|
|
|
+ condition += " and ApplyTime>='" + start + " 00:00:00' and ApplyTime<='" + 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>>;
|