From 050d8fde17d71d0e5d3353984a55838903abbe36 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 10 七月 2023 13:43:56 +0800 Subject: [PATCH] 增加制单人查询条件 --- zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml index 03924b8..a920611 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>"; } } @@ -264,7 +269,7 @@ { label: '璁㈠崟鐘舵��', name: 'ShouliStatus', labtype: 'combox', hidden: false, data: JSON.parse(ShouliStatus), cwidth: '5%', cccwidth: '8%' }, - + { label: '鍒跺崟浜�', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(users), cwidth: '5%', cccwidth: '8%' }, @@ -323,7 +328,7 @@ } function chedan(id) { - OpenWindow("鎾ゅ崟", "20%", "30%", "/CooperOrder/Chedan?id=" + id); + OpenWindow("鎾ゅ崟", "50%", "60%", "/CooperOrder/Chedan?id=" + id); } function huifang(id) { @@ -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