瀏覽代碼

后台仓库管理增加小分仓数量显示

lichunlei 3 年之前
父節點
當前提交
7c71737c56

+ 4 - 1
Areas/Admin/Controllers/MainServer/StoreHouseController.cs

@@ -131,7 +131,10 @@ namespace MySystem.Areas.Admin.Controllers
                 int StoreKind = int.Parse(dic["StoreKind"].ToString());
                 if (StoreKind == 0) dic["StoreKind"] = "分仓";
                 if (StoreKind == 1) dic["StoreKind"] = "总仓";
-
+                //小分仓
+                int Id = int.Parse(function.CheckInt(dic["Id"].ToString()));
+                int PreCount = db.PreSendStockDetail.Count(m => m.FromStoreId == Id && m.ApplyFlag == 0 && m.Status >= 0 && m.Status <= 1);
+                dic["PreNum"] = PreCount.ToString();
             }
             return Json(obj);
         }

+ 5 - 0
wwwroot/layuiadmin/modules_main/StoreHouse_Admin.js

@@ -202,6 +202,11 @@ layui.config({
                 width: 120,
                 title: '剩余库存数',
                 sort: true
+            }, {
+                field: 'PreNum',
+                width: 120,
+                title: '小分仓数',
+                sort: true
             }, {
                 field: 'OutNum',
                 width: 100,