Просмотр исходного кода

创客机具申请订单权限功能显示调整
辅助工具消息推送调整

“DuGuYang” 4 лет назад
Родитель
Сommit
6ca7e29355

+ 4 - 4
Areas/Admin/Controllers/MainServer/MachineApplyController.cs

@@ -166,9 +166,9 @@ namespace MySystem.Areas.Admin.Controllers
 
                 //订单状态
                 int Status = int.Parse(dic["Status"].ToString());
-                if(Status == 0) dic["Status"] = "待审核";
-                if(Status == 1) dic["Status"] = "申请成功";
-                if(Status == 2) dic["Status"] = "申请失败";
+                if(Status == 0) dic["StatusName"] = "待审核";
+                if(Status == 1) dic["StatusName"] = "申请成功";
+                if(Status == 2) dic["StatusName"] = "申请失败";
 
                 //提货方式
                 int DeliveryType = int.Parse(dic["DeliveryType"].ToString());
@@ -177,7 +177,7 @@ namespace MySystem.Areas.Admin.Controllers
                 if(DeliveryType == 2) dic["DeliveryType"] = "上门自提";
 
                 //发货状态
-                int SendStatus = int.Parse(dic["SendStatus"].ToString());
+                int SendStatus = int.Parse(dic["Status"].ToString());
                 if(SendStatus == 0) dic["SendStatus"] = "未发货";
                 if(SendStatus == 1) dic["SendStatus"] = "已发货";
                 

+ 8 - 8
Areas/Admin/Controllers/MainServer/SysToolsController.cs

@@ -244,9 +244,9 @@ namespace MySystem.Areas.Admin.Controllers
                             RedisDbconn.Instance.AddList("MsgPersonalQueue", Newtonsoft.Json.JsonConvert.SerializeObject(new MsgPersonal()
                             {
                                 UserId = user.Id, //接收创客
+                                MsgType = 2,
                                 Title = "补录成功通知", //标题
-                                // Content = "<div class='f16'>您的 " + kqProducts.Name + " SN:<br/>" + pos.PosSn + "<br/>已经成功补录,请查收。</div>", //内容
-                                Summary = "您的 " + kqProducts.Name + " SN:<br/>" + pos.PosSn + "<br/>已经成功补录,请查收。",
+                                Summary = "您的 " + kqProducts.Name + " SN:" + pos.PosSn + "已经成功补录,请查收。",
                                 CreateDate = DateTime.Now,
 
                             }));
@@ -813,9 +813,9 @@ namespace MySystem.Areas.Admin.Controllers
                     RedisDbconn.Instance.AddList("MsgPersonalQueue", Newtonsoft.Json.JsonConvert.SerializeObject(new MsgPersonal()
                     {
                         UserId = pos.UserId, //接收创客
+                        MsgType = 2,
                         Title = "商户型代理设置成功", //标题
-                        // Content = "<div class='f16'>您的 " + kqProducts.Name + " SN:<br/>" + pos.PosSn + "<br/>已经成功补录,请查收。</div>", //内容
-                        Summary = "您的 " + kqProducts.Name + " SN:<br/>" + pos.PosSn + "<br/>已经成功给下级代理" + user.RealName + "" + MakerCode + "<br/>,设置为商户型代理,设置成功后的新增交易的分润归商户型代理所有",
+                        Summary = "您的 " + kqProducts.Name + " SN:" + pos.PosSn + "已经成功给下级代理" + user.RealName + "" + MakerCode + ",设置为商户型代理,设置成功后的新增交易的分润归商户型代理所有",
                         CreateDate = DateTime.Now,
 
                     }));
@@ -1358,9 +1358,9 @@ namespace MySystem.Areas.Admin.Controllers
                 RedisDbconn.Instance.AddList("MsgPersonalQueue", Newtonsoft.Json.JsonConvert.SerializeObject(new MsgPersonal()
                 {
                     UserId = OutStore.UserId, //接收创客
+                    MsgType = 2,
                     Title = "换绑成功通知", //标题
-                    // Content = "<div class='f16'>您的 " + kqProducts.Name + " SN:<br/>" + pos.PosSn + "<br/>已经成功补录,请查收。</div>", //内容
-                    Summary = "您的 " + oldPosBrand.Name + " SN:<br/>" + OldSn + "<br/>已经成功为客户换绑为" + newPosBrand.Name + "SN:<br/>" + NewSn + "<br/>已经成功补录,请查收。",
+                    Summary = "您的 " + oldPosBrand.Name + " SN:" + OldSn + "已经成功为客户换绑为" + newPosBrand.Name + "SN:" + NewSn + "请告知客户进行绑定。",
                     CreateDate = DateTime.Now,
 
                 }));
@@ -1464,9 +1464,9 @@ namespace MySystem.Areas.Admin.Controllers
                 RedisDbconn.Instance.AddList("MsgPersonalQueue", Newtonsoft.Json.JsonConvert.SerializeObject(new MsgPersonal()
                 {
                     UserId = forMakerCode.UserId, //接收创客
+                    MsgType = 2,
                     Title = "解绑成功通知", //标题
-                    // Content = "<div class='f16'>您的 " + kqProducts.Name + " SN:<br/>" + pos.PosSn + "<br/>已经成功补录,请查收。</div>", //内容
-                    Summary = "" + PosSn + "<br/>机具已成功解绑,当前机具如需绑定同一客户请再2个工作日后再进行绑定,<br/>直接绑定会导致数控异常,相关损失由您本人承担。",
+                    Summary = "" + PosSn + "机具已成功解绑,当前机具如需绑定同一客户请再2个工作日后再进行绑定,直接绑定会导致数控异常,相关损失由您本人承担。",
                     CreateDate = DateTime.Now,
 
                 }));

+ 6 - 0
Areas/Admin/Views/MainServer/MachineApply/Index.cshtml

@@ -214,11 +214,17 @@
                     <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="detail"><i class="layui-icon layui-icon-form"></i>详情</a>
                     @if (RightInfo.Contains("," + right + "_audit,"))
                     {
+                        @* <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="send"><i class="layui-icon layui-icon-edit"></i>审核发货</a> *@
+                        @("{{#if (d.Status == 0){ }}")
                         <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="send"><i class="layui-icon layui-icon-edit"></i>审核发货</a>
+                        @("{{#} }}")
                     }
                     @if (RightInfo.Contains("," + right + "_cancel,"))
                     {
+                        @* <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="cancel"><i class="layui-icon layui-icon-edit"></i>取消订单</a> *@
+                        @("{{#if (d.Status == 0){ }}")
                         <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="cancel"><i class="layui-icon layui-icon-edit"></i>取消订单</a>
+                        @("{{#} }}")
                     }
                 </script>
             </div>

+ 1 - 1
wwwroot/layuiadmin/modules_main/MachineApply_Admin.js

@@ -203,7 +203,7 @@ layui.config({
                 title: '收件人姓名-联系电话',
                 sort: true
             }, {
-                field: 'Status',
+                field: 'StatusName',
                 width: 200,
                 title: '订单状态',
                 sort: true