Browse Source

显示wifi押金可退金额

lcl 1 year ago
parent
commit
7369546f1e

BIN
.DS_Store


+ 5 - 1
Areas/Admin/Controllers/MainServer/OrdersController.cs

@@ -1046,9 +1046,13 @@ namespace MySystem.Areas.Admin.Controllers
             ViewBag.RightInfo = RightInfo;
             ViewBag.right = right;
 
-
             Orders editData = db.Orders.FirstOrDefault(m => m.Id == Id) ?? new Orders();
             ViewBag.data = editData;
+
+            decimal CurAmount = editData.TotalPrice - editData.RefundActAmount;
+
+            ViewBag.CurAmount = CurAmount.ToString();
+
             return View();
         }
 

+ 1 - 0
Areas/Admin/Views/MainServer/Orders/WifiReturn.cshtml

@@ -38,6 +38,7 @@
                                 <input class="layui-input" type="text" id="RefundActAmount" name="RefundActAmount" maxlength="30"
                                     lay-verify="required|number|" autocomplete="off" placeholder="请输入退款金额">
                             </div>
+                            <div class="layui-form-mid">可退金额:@(ViewBag.CurAmount)</div>
                         </div>
                         <div class="layui-form-item">
                             <label class="layui-form-label">*退款原因</label>

BIN
wwwroot/.DS_Store


BIN
wwwroot/admin/.DS_Store


BIN
wwwroot/layuiadmin/.DS_Store


+ 1 - 2
wwwroot/layuiadmin/modules_main/OrdersWifiDeposit_Admin.js

@@ -161,11 +161,10 @@ layui.config({
             , { field: 'TopUserInfo', width: 200, title: '顶级创客信息', sort: true }
             , { field: 'Address', width: 200, title: '收货地址', sort: true }
             , { field: 'RecieveInfo', width: 200, title: '收件人姓名-联系电话', sort: true }
+            , { field: 'RefundActAmount', width: 200, title: '已退金额', sort: true }
             , { field: 'PayMode', width: 200, title: '支付渠道', sort: true }
-            // , { field: 'PayStatusName', width: 200, title: '支付状态', sort: true }
             , { field: 'DeliveryType', width: 200, title: '提货类型', sort: true }
             , { field: 'Remark', width: 200, title: '订单备注', sort: true }
-            // , { field: 'RefundStatusName', width: 200, title: '退款状态', sort: true }
             , { field: 'ErpInfo', width: 200, title: '快递单号-快递名称', sort: true }
             , { field: 'CreateDate', width: 200, title: '下单时间', sort: true }
             , { field: 'PayDate', width: 200, title: '支付时间', sort: true }

BIN
wwwroot/other/.DS_Store


BIN
wwwroot/public/.DS_Store