| | |
| | | |
| | | $(".input-daterange").datepicker({ keyboardNavigation: !1, forceParse: !1, autoclose: !0 }); |
| | | |
| | | //状态转换名称 |
| | | function statusToName(status) { |
| | | if (status == "") { |
| | | return ""; |
| | | } |
| | | else if (status == 0) { |
| | | return "待审核"; |
| | | } |
| | | else if (status == 1) { |
| | | return "审核中"; |
| | | } |
| | | else if (status == 2) { |
| | | return "审核通过"; |
| | | } |
| | | else if (status == 3) { |
| | | return "审核不通过"; |
| | | } |
| | | else if (status == 4) { |
| | | return "取消"; |
| | | } |
| | | else { |
| | | return status; |
| | | } |
| | | } |
| | | |
| | | $(document).on("click", ".action-modal-detail", function () { |
| | | |
| | | var orderId = $(this).data("orderid"); |
| | | $("#orderDialog .modal-title").text("订单明细"); |
| | | |
| | | $.get("gwOrder.ashx", { "action": "get", orderId: orderId }, function (r) { |
| | | |
| | | //$("#orderDialog .modal-title").text("订单明细"); |
| | | //$("#orderDialog #action").val("detail"); |
| | | ////$("#orderDialog .modal-title").text("订单明细"); |
| | | ////$("#orderDialog #action").val("detail"); |
| | | $("#orderDialog #orderId").val(r.Message.OrderId).attr("readonly", "readonly"); |
| | | $("#orderDialog #spId").val(r.Message.SpId).attr("readonly", "readonly"); |
| | | $("#orderDialog #clientId").val(r.Message.ClientId).attr("disabled", "disabled"); |
| | | $("#orderDialog #productId").val(r.Message.ProductId).attr("disabled", "disabled"); |
| | | //$("#orderDialog #comboId").val(r.Message.ComboId); |
| | | ////$("#orderDialog #clientId").val(r.Message.ClientId).attr("disabled", "disabled"); |
| | | $("#orderDialog #clientId").val(r.Message.ClientId); |
| | | $("#orderDialog #clientCompany").val(r.Message.Company).attr("disabled", "disabled"); //转换名称 |
| | | //$("#orderDialog #productId").val(r.Message.ProductId).attr("disabled", "disabled"); |
| | | $("#orderDialog #productId").val(r.Message.ProductId); |
| | | $("#orderDialog #productName").val(r.Message.ProductName).attr("disabled", "disabled"); //转换名称 |
| | | ////$("#orderDialog #comboId").val(r.Message.ComboId); |
| | | $("#orderDialog #basicNum").val(r.Message.BasicNum, 0).attr("readonly", "readonly"); |
| | | $("#orderDialog #givingNum").val(r.Message.GivingNum, 0).attr("readonly", "readonly"); |
| | | $("#orderDialog #price").val(r.Message.Price / 1000, 0.00).attr("readonly", "readonly"); |
| | |
| | | $("#orderDialog #beforeBalanceNum").val(r.Message.BeforeBalanceNum, 0).attr("readonly", "readonly"); |
| | | $("#orderDialog #creator").val(r.Message.Creator).attr("readonly", "readonly"); |
| | | $("#orderDialog #createTime").val(r.Message.CreateTime).attr("readonly", "readonly"); |
| | | $("#orderDialog #status").val(r.Message.Status).attr("disabled", "disabled"); |
| | | //$("#orderDialog #status").val(r.Message.Status).attr("disabled", "disabled"); |
| | | $("#orderDialog #status").val(r.Message.Status); |
| | | $("#orderDialog #statusName").val(statusToName(r.Message.Status)).attr("disabled", "disabled"); //转换名称 |
| | | $("#orderDialog #remark").val(r.Message.Remark).attr("disabled", "disabled"); |
| | | |
| | | $("#orderDialog").modal("show"); |
| | |
| | | <div class="m-b"> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">客户账户</span> |
| | | <span class="input-group-addon">客户账号</span> |
| | | <input type="text" name="ClientId" id="ClientId" class="form-control col-md-2" /> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group"> |
| | | <div class="input-group m-b"> |
| | | <input type="button" value="查询" class="btn btn-primary action-btn-GwOrderQuery" /> |
| | | </div> |
| | | </div> |
| | |
| | | <table class="table table-striped table-bordered table-hover" id="orderTable"> |
| | | <thead> |
| | | <tr class="header"> |
| | | <!-- |
| | | |
| | | <th>订单ID |
| | | </th> |
| | | --> |
| | | |
| | | <th>短信账号 |
| | | </th> |
| | | <th>客户账号 |
| | |
| | | </th> |
| | | <th>充值前账号余额(条) |
| | | </th> |
| | | <th>审核人(多级按“,”分隔) |
| | | </th> |
| | | <th>创建人 |
| | | </th> |
| | | <th>创建时间 |
| | |
| | | <div id="pagination"> |
| | | </div> |
| | | <div class="footBar"> |
| | | |
| | | </div> |
| | | |
| | | <div class="modal inmodal fade" id="orderDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | |
| | | <label class="col-sm-2 control-label"> |
| | | 客户账号</label> |
| | | <div class="col-sm-4 "> |
| | | <!-- |
| | | <select name="clientId" id="clientId" class="form-control"> |
| | | <%=GetClientOptions("0")%> |
| | | <!%=GetClientOptions("0")%> |
| | | </select> |
| | | --> |
| | | <input type="text" class="form-control" name="clientId" id="clientId" value="" readonly="readonly" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 公司名称</label> |
| | | <div class="col-sm-4 "> |
| | | <input type="text" class="form-control" name="clientCompany" id="clientCompany" value="" readonly="readonly" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 产品名称</label> |
| | | <div class="col-sm-4 "> |
| | | <!-- |
| | | <select name="productId" id="productId" class="form-control"> |
| | | <%=GetProductOptions("0")%> |
| | | <!%=GetProductOptions("0")%> |
| | | </select> |
| | | --> |
| | | <input type="text" class="form-control" name="productName" id="productName" value="" readonly="readonly" /> |
| | | <input type="hidden" class="form-control" name="productId" id="productId" value="" /> |
| | | </div> |
| | | </div> |
| | | <%-- |
| | |
| | | <label class="col-sm-2 control-label"> |
| | | 状态</label> |
| | | <div class="col-sm-4 "> |
| | | <!-- |
| | | <select name="status" id="status" class="form-control"> |
| | | <option value=""></option> |
| | | <option value="0">待审核</option> |
| | |
| | | <option value="3">审核不通过</option> |
| | | <option value="4">取消</option> |
| | | </select> |
| | | --> |
| | | <input type="text" class="form-control" name="statusName" id="statusName" value="" /> |
| | | <input type="hidden" class="form-control" name="status" id="status" value="" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |