username@email.com
2022-07-07 c54d598cc71ca26f262d498e034b64627d7b6616
zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml
@@ -166,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) {
@@ -191,6 +192,31 @@
                }
            },
            {
                label: '打印合同', name: 'OrderType', labtype: 'txt', hidden: false, width: 60,
                formatter: function (cellvalue, options, rowObject) {
                    if (rowObject.OrderType == '03') {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printbiaoshuhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else if (rowObject.OrderType == '02' && (rowObject.OrderType1 == '代拟质疑函' || rowObject.OrderType1 == '代拟投诉书')) {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printzhiyitousuhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else if (rowObject.OrderType == '05') {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printhuiyuanhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else if (rowObject.OrderType == '08') {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printfengxianhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else {
                        return "";
                    }
                }
            },
        ];