From c06eb4d284a80dbee4a2d040046c37bf73dcfcd5 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 29 八月 2022 09:50:58 +0800 Subject: [PATCH] 风险代理确认订单后计算业绩 --- zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml | 27 ++++++++++++++++----------- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml index 03924b8..ee001a8 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml @@ -35,7 +35,7 @@ shoulibool = false; } else if (pageEntitiesJson[i].PageName == "鎾ゅ崟") { chedanbool = false; - } else if (pageEntitiesJson[i].PageName == "瀹屽伐") { + } else if (pageEntitiesJson[i].PageName == "纭璁㈠崟") { wangongbool = false; } else if (pageEntitiesJson[i].PageName == "閫佽揣") { songhuobool = false; @@ -55,10 +55,15 @@ { label: '璁㈠崟鍙�', name: 'OrderNo', labtype: 'txt', hidden: false, width: 100, formatter: function (cellvalue, options, rowObject) { + var color = ""; + if (rowObject.OrderType == '08') { + color = "red"; + } + if (rowObject.ShouliStatus == "A") { - return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" >" + cellvalue + "</a>"; + return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" ><span style='color:" + color + ";'>" + cellvalue + "</span></a>"; } else { - return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" >" + cellvalue + "</a>"; + return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" ><span style='color:" + color + ";'>" + cellvalue + "</span></a>"; } } @@ -111,15 +116,15 @@ } }, { - label: '瀹屽伐', name: 'WangongStatusName', labtype: 'txt', hidden: true, width: 60, + label: '纭璁㈠崟', name: 'WangongStatusName', labtype: 'txt', hidden: false, width: 60, formatter: function (cellvalue, options, rowObject) { - if (rowObject.ShouliStatus == '4' || rowObject.ShouliStatus == '5' ) { + if (rowObject.WangongStatus == 'A' ) { return "鈭�"; } else { - if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A') { + if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A' || rowObject.OrderType != '08' ) { return ""; } else { - return "<a onclick=\"wangong('" + rowObject.Id + "')\" >瀹屽伐</a>"; + return "<a onclick=\"wangong('" + rowObject.Id + "')\" >纭璁㈠崟</a>"; } } @@ -385,7 +390,7 @@ var index = layer.open({ type: 1,銆�銆�//鍩烘湰灞傜被鍨� icon: 0, //鍥炬爣 - content: '纭瀹屽伐锛�', //鍐呭 + content: '纭璁㈠崟锛�', //鍐呭 shade: 0.3, //閬僵,濡傛灉鎯冲畾涔夊埆鐨勯鑹�,鍙互shade:[0.5,'#fff'] shadeClose: 1, //鏄惁鐐瑰嚮閬僵鍏抽棴 skin: 'demoClass', //鏍峰紡绫诲悕 @@ -404,16 +409,16 @@ success: function (data) { if (data.Result) { - toastr.success("瀹屽伐鎴愬姛"); + toastr.success("纭璁㈠崟"); window._reloadPageData(); } else { - toastr.error("瀹屽伐澶辫触" + data.Message); + toastr.error("纭璁㈠崟澶辫触" + data.Message); } }, error: function () { - toastr.error("瀹屽伐澶辫触"); + toastr.error("纭璁㈠崟澶辫触"); } }); }, -- Gitblit v1.9.1