From d4a6d65f5e449c3e5464aa18ae97bf8953987217 Mon Sep 17 00:00:00 2001 From: LR-20210131IOQH\Administrator <jackcold@163.com> Date: 星期二, 10 八月 2021 15:44:14 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa --- zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml | 164 +++++++++++++++++++++++++++++++++--------------------- 1 files changed, 101 insertions(+), 63 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml index 8ff8474..e5199a7 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml @@ -10,6 +10,8 @@ var Khlx = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Khlx))'; var HuifangStatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.HuifangStatus))'; var PingjiaStatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.PingjiaStatus))'; + var ShouliStatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShouliStatus))'; + var pageEntities = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.pageEntities))'; var pageEntitiesJson = JSON.parse(pageEntities); @@ -38,9 +40,9 @@ pingjiabool = false; } else if (pageEntitiesJson[i].PageName == "浼樻儬") { youhuibool = false; - } + } } - + //gridConfig = { multiselect: true, selectcol: "Id" }; loseherght = 60; dataCol = [ { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, @@ -57,7 +59,18 @@ } }, - { label: '璁㈠崟绫诲埆', name: 'OrderTypeName', labtype: 'txt', hidden: false, width: 100 }, + { + label: '璁㈠崟绫诲埆', name: 'OrderTypeName', labtype: 'txt', hidden: false, width: 100, + formatter: function (cellvalue, options, rowObject) { + var OrderTypea = rowObject.OrderTypeName; + if (rowObject.OrderType1Name != null && rowObject.OrderType1Name != '') { + OrderTypea += '-' + rowObject.OrderType1Name; + } + if (rowObject.OrderType2 != null && rowObject.OrderType2 != '') { + OrderTypea += '-' + rowObject.OrderType2; + } + return OrderTypea; + } }, { label: '瀹㈡埛鍚嶇О', name: 'KhdwName', labtype: 'txt', hidden: false, width: 200 }, { label: '鏁伴噺', name: 'OrderNum', labtype: 'txt', hidden: false, width: 60 }, @@ -110,7 +123,7 @@ label: '閫佽揣', name: 'SonghuoStatusName', labtype: 'txt', hidden: songhuobool, width: 60, formatter: function (cellvalue, options, rowObject) { if (rowObject.ShouliStatus == '5') { - return "鈭�"; + return "<a onclick=\"songhuo('" + rowObject.Id + "')\" >鈭�</a>"; } else { if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A') { return ""; @@ -132,12 +145,12 @@ } } else { - return "鈭�"; + return "<a onclick=\"huifang('" + rowObject.Id + "')\" >鈭�</a>"; } } }, { - label: '璇勪环', name: 'PingjiaStatusName', labtype: 'txt', hidden: pingjiabool, width: 60, + label: '璇勪环', name: 'PingjiaStatusName', labtype: 'txt', hidden: true, width: 60, formatter: function (cellvalue, options, rowObject) { if (rowObject.PingjiaStatus == 'D') { if (rowObject.ShouliStatus == '1') { @@ -153,23 +166,24 @@ }, { label: '浼樻儬/鍏�', name: 'Youhui', labtype: 'txt', hidden: youhuibool, width: 60, - formatter: function (cellvalue, options, rowObject) { - if (rowObject.YouhuiStatus == null || rowObject.YouhuiStatus == 'null' || rowObject.YouhuiStatus == '') { - if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A' ) { - if (rowObject.ChedanStatus == 'A') { - return cellvalue; - } else { - return ""; - } + //formatter: function (cellvalue, options, rowObject) { + // if (rowObject.YouhuiStatus == null || rowObject.YouhuiStatus == 'null' || rowObject.YouhuiStatus == '') { + // if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A' ) { + // if (rowObject.ChedanStatus == 'A') { + // return cellvalue; + // } else { + // return ""; + // } - } else { - return "<a onclick=\"youhui('" + rowObject.Id + "')\" >浼樻儬</a>"; - } + // } else { + // return "<a onclick=\"youhui('" + rowObject.Id + "')\" >浼樻儬</a>"; + // } - } else { - return cellvalue; - } - } }, + // } else { + // return cellvalue; + // } + //} + }, { label: '鎵撳嵃', name: 'OrderType', labtype: 'txt', hidden: false, width: 60, formatter: function (cellvalue, options, rowObject) { @@ -182,7 +196,7 @@ ]; - + dataUrl = "/CooperOrder/GetList"; @@ -196,8 +210,8 @@ { label: '鍥炶', name: 'HuifangStatus', labtype: 'combox', hidden: false, data: JSON.parse(HuifangStatus), cwidth: '5%', cccwidth: '8%' }, { label: '璇勪环', name: 'PingjiaStatus', labtype: 'combox', hidden: false, data: JSON.parse(PingjiaStatus), cwidth: '5%', cccwidth: '8%' }, - - + { label: '璁㈠崟鐘舵��', name: 'ShouliStatus', labtype: 'combox', hidden: false, data: JSON.parse(ShouliStatus), cwidth: '5%', cccwidth: '8%' }, + @@ -230,7 +244,7 @@ global: false, data: "", success: function (data) { - + if (data.Result) { toastr.success("鍙楃悊鎴愬姛"); window._reloadPageData(); @@ -261,7 +275,7 @@ } function huifang(id) { - OpenWindow("鍥炶", "20%", "30%", "/CooperOrder/Huifang?id=" + id); + OpenWindow("鍥炶", "50%", "60%", "/CooperOrder/Huifang?id=" + id); } function pingjia(id) { @@ -270,47 +284,47 @@ function songhuo(id) { + OpenWindow("閫佽揣", "50%", "60%", "/CooperOrder/Songhuo?id=" + id); + //// 1銆佹墦寮�寮瑰嚭灞� + //var index = layer.open({ + // type: 1,銆�銆�//鍩烘湰灞傜被鍨� + // icon: 0, //鍥炬爣 + // content: '纭閫佽揣锛�', //鍐呭 + // shade: 0.3, //閬僵,濡傛灉鎯冲畾涔夊埆鐨勯鑹�,鍙互shade:[0.5,'#fff'] + // shadeClose: 1, //鏄惁鐐瑰嚮閬僵鍏抽棴 + // skin: 'demoClass', //鏍峰紡绫诲悕 + // moveType: 1, //鎷栨嫿椋庢牸,榛樿涓�0(浼氭湁涓繃搴︾殑閫忔槑妗�) + // btn: ['纭畾', '鍙栨秷'], //鎸夐挳 + // btn1: function () { //鎸夐挳涓�鐨勫洖璋� - // 1銆佹墦寮�寮瑰嚭灞� - var index = layer.open({ - type: 1,銆�銆�//鍩烘湰灞傜被鍨� - icon: 0, //鍥炬爣 - content: '纭閫佽揣锛�', //鍐呭 - shade: 0.3, //閬僵,濡傛灉鎯冲畾涔夊埆鐨勯鑹�,鍙互shade:[0.5,'#fff'] - shadeClose: 1, //鏄惁鐐瑰嚮閬僵鍏抽棴 - skin: 'demoClass', //鏍峰紡绫诲悕 - moveType: 1, //鎷栨嫿椋庢牸,榛樿涓�0(浼氭湁涓繃搴︾殑閫忔槑妗�) - btn: ['纭畾', '鍙栨秷'], //鎸夐挳 - btn1: function () { //鎸夐挳涓�鐨勫洖璋� + // layer.close(index); - layer.close(index); + // $.ajax({ + // type: "GET", + // url: "/CooperOrder/Songhuo?id=" + id, + // dataType: "json", + // global: false, + // data: "", + // success: function (data) { - $.ajax({ - type: "GET", - url: "/CooperOrder/Songhuo?id=" + id, - dataType: "json", - global: false, - data: "", - success: function (data) { - - if (data.Result) { - toastr.success("閫佽揣鎴愬姛"); - window._reloadPageData(); - } else { - toastr.error("閫佽揣澶辫触" + data.Message); - } - }, - error: function () { + // if (data.Result) { + // toastr.success("閫佽揣鎴愬姛"); + // window._reloadPageData(); + // } else { + // toastr.error("閫佽揣澶辫触" + data.Message); + // } + // }, + // error: function () { - toastr.error("閫佽揣澶辫触"); - } - }); - }, - // btn2:function(){ //鎸夐挳浜岀殑鍥炶皟 - // - // } - }); + // toastr.error("閫佽揣澶辫触"); + // } + // }); + // }, + // // btn2:function(){ //鎸夐挳浜岀殑鍥炶皟 + // // + // // } + //}); } function wangong(id) { @@ -336,7 +350,7 @@ global: false, data: "", success: function (data) { - + if (data.Result) { toastr.success("瀹屽伐鎴愬姛"); window._reloadPageData(); @@ -356,6 +370,30 @@ // } }); } + + var _pagePrint = function () { + + var XdTime = $("#PBSXdTime").val(); + var OrderNo = $("#PBSOrderNo").val(); + var OrderType = $("#PBSOrderType").val(); + var Ywjl = $("#PBSYwjl").val(); + var KhdwName = $("#PBSKhdwName").val(); + + + var Khlx = $("#PBSKhlx").val(); + var HuifangStatus = $("#PBSHuifangStatus").val(); + var PingjiaStatus = $("#PBSPingjiaStatus").val(); + + + + var url = "/CooperOrder/printList?XdTime=" + XdTime + "&OrderNo=" + OrderNo + "&OrderType=" + OrderType + "&Ywjl=" + Ywjl + "&KhdwName=" + KhdwName + "&Khlx=" + Khlx + "&HuifangStatus=" + HuifangStatus + "&PingjiaStatus=" + PingjiaStatus; + var me = window.open(url, "鎵撳嵃"); //鎵撳紑鏂扮獥鍙� + + + } + + + var _afterSave = function (result) { if (result) { toastr.success("淇濆瓨鎴愬姛"); -- Gitblit v1.9.1