From 29978bcc31041b092edb93978c7dbc7ee34d48ed Mon Sep 17 00:00:00 2001 From: yzh <snbbt@21cn.com> Date: 星期六, 07 五月 2022 17:53:00 +0800 Subject: [PATCH] 添加客户时优化不添加账号产品记录 --- web/web/GwOrderAudit.aspx | 98 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 64 insertions(+), 34 deletions(-) diff --git a/web/web/GwOrderAudit.aspx b/web/web/GwOrderAudit.aspx index 3e759ca..738d998 100644 --- a/web/web/GwOrderAudit.aspx +++ b/web/web/GwOrderAudit.aspx @@ -41,24 +41,26 @@ //$("#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 #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"); @@ -76,23 +78,26 @@ //$("#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 #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", ""); @@ -117,9 +122,10 @@ $(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(); }); @@ -131,10 +137,15 @@ //瀹℃牳閫氳繃 $(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 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, price: price, auditReason: auditReason }, function (result) { mytek.alert(result.Message, result.OK, function () { loadPageList(); }); @@ -146,10 +157,15 @@ //瀹℃牳涓嶉�氳繃 $(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 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, price: price, auditReason: auditReason }, function (result) { mytek.alert(result.Message, result.OK, function () { loadPageList(); }); @@ -399,7 +415,14 @@ <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"> @@ -409,6 +432,13 @@ <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"> -- Gitblit v1.9.1