| | |
| | | |
| | | $(".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 #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 #clientId").val(r.Message.ClientId).attr("disabled", "disabled"); |
| | | $("#orderDialog #clientId").val(r.Message.ClientId); |
| | | $("#orderDialog #clientCompany").val(r.Message.Company).attr("readonly", "readonly"); //转换名称 |
| | | //$("#orderDialog #productId").val(r.Message.ProductId).attr("disabled", "disabled"); |
| | | $("#orderDialog #productId").val(r.Message.ProductId); |
| | | $("#orderDialog #productName").val(r.Message.ProductName).attr("readonly", "readonly"); //转换名称 |
| | | //$("#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 #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 #auditInfo-1").css("display", "none"); |
| | | |
| | | $(".auditInfo-color").css("color", ""); |
| | | |
| | | $("#orderDialog #auditPass").css("display", "none"); |
| | | $("#orderDialog #auditNoPass").css("display", "none"); |
| | |
| | | //$("#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 #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", false); |
| | | $("#orderDialog #givingNum").val(r.Message.GivingNum, 0).attr("readonly", false); |
| | |
| | | $("#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 #auditReason").val(r.Message.AuditReason); |
| | | $("#orderDialog #auditInfo-1").css("display", ""); |
| | | |
| | | $(".auditInfo-color").css("color", "red"); //可填项 |
| | | |
| | | $("#orderDialog #auditPass").css("display", ""); |
| | | $("#orderDialog #auditNoPass").css("display", ""); |
| | |
| | | var payAmount = $("#payAmount").val(); |
| | | var price = $("#price").val(); |
| | | var auditReason = $("#auditReason").val(); |
| | | mytek.confirm("是否确定审核通过该信息?", "数据更新后将无法恢复,请谨慎操作!", function (b) { |
| | | mytek.confirm("是否确定【审核通过】该信息?", "数据更新后将无法恢复,请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $.post("gwOrder.ashx", { "action": "audit", status: 1, spId: spId, orderId: orderId, basicNum: basicNum, givingNum: givingNum, payAmount: payAmount, price: price, auditReason: auditReason }, function (result) { |
| | | mytek.alert(result.Message, result.OK, function () { |
| | | loadPageList(); |
| | | }); |
| | | }, |
| | | "json"); |
| | | }, "json"); |
| | | } |
| | | }); |
| | | }); |
| | |
| | | var payAmount = $("#payAmount").val(); |
| | | var price = $("#price").val(); |
| | | var auditReason = $("#auditReason").val(); |
| | | mytek.confirm("是否确定审核不通过该信息?", "数据更新后将无法恢复,请谨慎操作!", function (b) { |
| | | mytek.confirm("是否确定【审核不通过】该信息?", "数据更新后将无法恢复,请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $.post("gwOrder.ashx", { "action": "audit", status: 0, spId: spId, orderId: orderId, basicNum: basicNum, givingNum: givingNum, payAmount: payAmount, price: price, auditReason: auditReason }, function (result) { |
| | | mytek.alert(result.Message, result.OK, function () { |
| | |
| | | <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 class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">SP账号</span> |
| | | <span class="input-group-addon">短信账号</span> |
| | | <input type="text" name="SpId" id="SpId" 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> |
| | |
| | | <th>充值金额(元) |
| | | </th> |
| | | <th>充值前账号余额(条) |
| | | </th> |
| | | <th>审核人(多级按“,”分隔) |
| | | </th> |
| | | <th>创建人 |
| | | </th> |
| | |
| | | <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> |
| | | <%-- |
| | |
| | | </div> |
| | | --%> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | <label class="col-sm-2 control-label auditInfo-color"> |
| | | 订单基本条数</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | <label class="col-sm-2 control-label auditInfo-color"> |
| | | 订单赠送条数</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | <label class="col-sm-2 control-label auditInfo-color"> |
| | | 充值金额</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | |
| | | <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"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="form-group" id="auditInfo-1"> |
| | | <label class="col-sm-2 control-label"> |
| | | <label class="col-sm-2 control-label auditInfo-color"> |
| | | 不通过原因</label> |
| | | <div class="col-sm-10 input-group m-b"> |
| | | <input type="text" class="form-control" name="auditReason" id="auditReason" value="" /> |