| | |
| | | |
| | | //$("#orderDialog .modal-title").text("订单明细"); |
| | | //$("#orderDialog #action").val("detail"); |
| | | $("#orderDialog #orderId").val(r.Message.OrderId).attr("readonly", false); |
| | | $("#orderDialog #spId").val(r.Message.SpId).attr("readonly", false); |
| | | $("#orderDialog #clientId").val(r.Message.ClientId).attr("readonly", false); |
| | | $("#orderDialog #productId").val(r.Message.ProductId).attr("readonly", false); |
| | | $("#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 #basicNum").val(r.Message.BasicNum, 0); |
| | | $("#orderDialog #givingNum").val(r.Message.GivingNum, 0); |
| | | $("#orderDialog #price").val(r.Message.Price / 1000, 0.00); |
| | | $("#orderDialog #orderNumTotal").val(r.Message.OrderNumTotal, 0); |
| | | $("#orderDialog #orderAmountTotal").val(r.Message.OrderAmountTotal / 1000, 0); |
| | | $("#orderDialog #beforeBalanceNum").val(r.Message.BeforeBalanceNum, 0); |
| | | $("#orderDialog #creator").val(r.Message.Creator); |
| | | $("#orderDialog #createTime").val(r.Message.CreateTime); |
| | | $("#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 #orderNumTotal").val(r.Message.OrderNumTotal, 0).attr("readonly", "readonly"); |
| | | $("#orderDialog #orderAmountTotal").val(r.Message.OrderAmountTotal / 1000, 0).attr("readonly", "readonly"); |
| | | $("#orderDialog #payAmount").val(r.Message.PayAmount / 1000, 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 #auditor").valval(r.Message.Auditor); |
| | | //$("#orderDialog #auditTime").val(r.Message.AuditTime); |
| | | $("#orderDialog #status").val(r.Message.Status).attr("readonly", false); |
| | | $("#orderDialog #remark").val(r.Message.Remark).attr("readonly", false); |
| | | $("#orderDialog #status").val(r.Message.Status).attr("disabled", "disabled"); |
| | | $("#orderDialog #remark").val(r.Message.Remark).attr("disabled", "disabled"); |
| | | |
| | | |
| | | $("#orderDialog #auditInfo-1").css("display", "none"); |
| | | |
| | | $("#orderDialog #auditPass").css("display", "none"); |
| | | $("#orderDialog #auditNoPass").css("display", "none"); |
| | |
| | | |
| | | //$("#orderDialog .modal-title").text("订单明细"); |
| | | //$("#orderDialog #action").val("detail"); |
| | | $("#orderDialog #orderId").val(r.Message.OrderId).attr("readonly", false); |
| | | $("#orderDialog #spId").val(r.Message.SpId).attr("readonly", false); |
| | | $("#orderDialog #clientId").val(r.Message.ClientId).attr("readonly", false); |
| | | $("#orderDialog #productId").val(r.Message.ProductId).attr("readonly", false); |
| | | $("#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 #basicNum").val(r.Message.BasicNum, 0); |
| | | $("#orderDialog #givingNum").val(r.Message.GivingNum, 0); |
| | | $("#orderDialog #price").val(r.Message.Price / 1000, 0.00); |
| | | $("#orderDialog #orderNumTotal").val(r.Message.OrderNumTotal, 0); |
| | | $("#orderDialog #orderAmountTotal").val(r.Message.OrderAmountTotal / 1000, 0); |
| | | $("#orderDialog #beforeBalanceNum").val(r.Message.BeforeBalanceNum, 0); |
| | | $("#orderDialog #creator").val(r.Message.Creator); |
| | | $("#orderDialog #createTime").val(r.Message.CreateTime); |
| | | $("#orderDialog #basicNum").val(r.Message.BasicNum, 0).attr("readonly", false); |
| | | $("#orderDialog #givingNum").val(r.Message.GivingNum, 0).attr("readonly", false); |
| | | $("#orderDialog #price").val(r.Message.Price / 1000, 0.00).attr("readonly", "readonly"); |
| | | $("#orderDialog #orderNumTotal").val(r.Message.OrderNumTotal, 0).attr("readonly", "readonly"); |
| | | $("#orderDialog #orderAmountTotal").val(r.Message.OrderAmountTotal / 1000, 0).attr("readonly", "readonly"); |
| | | $("#orderDialog #payAmount").val(r.Message.PayAmount / 1000, 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 #auditor").valval(r.Message.Auditor); |
| | | //$("#orderDialog #auditTime").val(r.Message.AuditTime); |
| | | $("#orderDialog #status").val(r.Message.Status); |
| | | $("#orderDialog #remark").val(r.Message.Remark); |
| | | $("#orderDialog #status").val(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", ""); |
| | | |
| | | $("#orderDialog #auditPass").css("display", ""); |
| | | $("#orderDialog #auditNoPass").css("display", ""); |
| | |
| | | |
| | | $(document).on("click", ".action-modal-cancel", function () { |
| | | var orderId = $(this).data("orderid"); |
| | | var auditReason = $(this).data("auditReason"); |
| | | mytek.confirm("是否确定取消该信息?", "数据取消后将无法恢复,请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $.post("gwOrder.ashx", { "action": "cancel", status: 4, orderId: orderId }, function (result) { |
| | | $.post("gwOrder.ashx", { "action": "cancel", status: 4, orderId: orderId, auditReason: auditReason }, function (result) { |
| | | mytek.alert(result.Message, result.OK, function () { |
| | | loadPageList(); |
| | | }); |
| | |
| | | |
| | | //审核通过 |
| | | $(document).on("click", ".action-auditPass", function () { |
| | | var orderId = $(this).data("orderid"); |
| | | var spId = $("#spId").val(); |
| | | var orderId = $("#orderId").val(); |
| | | var basicNum = $("#basicNum").val(); |
| | | var givingNum = $("#givingNum").val(); |
| | | var payAmount = $("#payAmount").val(); |
| | | var price = $("#price").val(); |
| | | var auditReason = $("#auditReason").val(); |
| | | mytek.confirm("是否确定审核通过该信息?", "数据更新后将无法恢复,请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $.post("gwOrder.ashx", { "action": "audit", status: 1, orderId: orderId }, function (result) { |
| | | $.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(); |
| | | }); |
| | |
| | | |
| | | //审核不通过 |
| | | $(document).on("click", ".action-auditNoPass", function () { |
| | | var orderId = $(this).data("orderid"); |
| | | var spId = $("#spId").val(); |
| | | var orderId = $("#orderId").val(); |
| | | var basicNum = $("#basicNum").val(); |
| | | var givingNum = $("#givingNum").val(); |
| | | var payAmount = $("#payAmount").val(); |
| | | var price = $("#price").val(); |
| | | var auditReason = $("#auditReason").val(); |
| | | mytek.confirm("是否确定审核不通过该信息?", "数据更新后将无法恢复,请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $.post("gwOrder.ashx", { "action": "audit", status: 0, orderId: orderId }, function (result) { |
| | | $.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 () { |
| | | loadPageList(); |
| | | }); |
| | |
| | | 订单基本条数</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="basicNum" id="basicNum" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="basicNum" id="basicNum" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | 订单赠送条数</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | 单价</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="price" id="price" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="price" id="price" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">元/条 </span> |
| | | </div> |
| | |
| | | 订单总条数</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="orderNumTotal" id="orderNumTotal" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="orderNumTotal" id="orderNumTotal" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | 订单总金额</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="orderAmountTotal" id="orderAmountTotal" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="orderAmountTotal" id="orderAmountTotal" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">元 </span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 充值金额</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="payAmount" id="payAmount" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">元 </span> |
| | | </div> |
| | |
| | | 充值前账号余额</label> |
| | | <div class="col-sm-4"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="beforeBalanceNum" id="beforeBalanceNum" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="beforeBalanceNum" id="beforeBalanceNum" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | <label class="col-sm-2 control-label"> |
| | | 状态</label> |
| | | <div class="col-sm-4 "> |
| | | <input type="text" class="form-control" name="status" id="status" value="" /> |
| | | <select name="status" id="status" class="form-control"> |
| | | <option value=""></option> |
| | | <option value="0">待审核</option> |
| | | <option value="1">审核中</option> |
| | | <option value="2">审核通过</option> |
| | | <option value="3">审核不通过</option> |
| | | <option value="4">取消</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | |
| | | <input type="text" class="form-control" name="remark" id="remark" value="" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group" id="auditInfo-1"> |
| | | <label class="col-sm-2 control-label"> |
| | | 不通过原因</label> |
| | | <div class="col-sm-10 input-group m-b"> |
| | | <input type="text" class="form-control" name="auditReason" id="auditReason" value="" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <button class="action-auditPass btn btn-primary" data-dismiss="modal" aria-hidden="true" id="auditPass"> |