Explorar el Código

分仓申请机具添加运营中心编号

DuGuYang hace 3 años
padre
commit
2eebb1faae

+ 4 - 0
Areas/Admin/Controllers/MainServer/StoreMachineApplyController.cs

@@ -102,6 +102,10 @@ namespace MySystem.Areas.Admin.Controllers
                 dic["UserIdMakerCode"] = userid_Users.MakerCode;
                 dic.Remove("UserId");
 
+                int OpId = int.Parse(function.CheckInt(dic["QueryCount"].ToString()));
+                var opInfo = opdb.SysAdmin.FirstOrDefault( m => m.UserId == OpId && m.QueryCount == 1 && m.Status > -1) ?? new OpModels.SysAdmin();
+                dic["OpCode"] = opInfo.OpCode;
+
             }
             return Json(obj);
         }

+ 1 - 0
wwwroot/layuiadmin/modules_main/StoreMachineApply_Admin.js

@@ -99,6 +99,7 @@ layui.config({
             { type: 'checkbox', fixed: 'left' }
             , { field: 'CreateDate', width: 200, title: '创建时间', sort: true }
             , { field: 'StatusName', width: 200, title: '状态', sort: true }
+            , { field: 'OpCode', width: 200, title: '运营中心', sort: true }
             , { field: 'ApplyNo', width: 200, title: '申请单号', sort: true }
             , { field: 'ApplyNum', width: 200, title: '申请台数', sort: true }
             , { field: 'SendNum', width: 200, title: '发货台数', sort: true }