username@email.com
2022-12-30 13ca8b4cab099521fc95d551c4b21c1a7ae5984d
zhengcaioa/zhengcaioa/Views/CooperatecustomCustomer/Index.cshtml
@@ -17,6 +17,9 @@
        var shengDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShengDropDown))';
        var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))';
        var Baomingtimebegin = '@Html.Raw(ViewBag.Baomingtimebegin)';
        var Baomingtimeend = '@Html.Raw(ViewBag.Baomingtimeend)';
        loseherght = 60;
        gridConfig = { multiselect: true, selectcol: "Id" };
        dataCol = [
@@ -30,11 +33,12 @@
            },
            { label: '联系电话', name: 'Tel', labtype: 'txt', hidden: false, width: 100 },
            { label: '所属区域', name: 'ShengName', labtype: 'txt', hidden: false, width: 100  },
            { label: '客户来源', name: 'KhlyName', labtype: 'txt', hidden: false, width: 100  },
            { label: '行业分类', name: 'HyflName', labtype: 'txt', hidden: false, width: 100 },
            { label: '客户类型', name: 'KhlxName', labtype: 'txt', hidden: false, width: 100},
            //{ label: '客户来源', name: 'KhlyName', labtype: 'txt', hidden: false, width: 100  },
            //{ label: '行业分类', name: 'HyflName', labtype: 'txt', hidden: false, width: 100 },
            //{ label: '客户类型', name: 'KhlxName', labtype: 'txt', hidden: false, width: 100},
            { label: '业务经理', name: 'YwjlName', labtype: 'txt', hidden: false, width: 100 },
            { label: '订单数量', name: 'Ordercount', labtype: 'txt', hidden: false, width: 100 },
            { label: '合作业务', name: 'Hezuoyewu', labtype: 'txt', hidden: false, width: 300 },
          /*  { label: '订单数量', name: 'Ordercount', labtype: 'txt', hidden: false, width: 100 },*/
            { label: '订单产值', name: 'Moneycount', labtype: 'txt', hidden: false, width: 100 },
            { label: '剩余套餐件数', name: 'Taocanjianshu', labtype: 'txt', hidden: false, width: 100 },
            {
@@ -50,7 +54,7 @@
                }
            },
        ];
        dataUrl = "/CooperatecustomCustomer/GetList"+"@(string.IsNullOrEmpty(Creater)?"": "?Ywjl=" + Creater)";
        dataUrl = "/CooperatecustomCustomer/GetList?Createtime=" + Baomingtimebegin + "|" + Baomingtimeend +"@(string.IsNullOrEmpty(Creater)?"": "&Ywjl=" + Creater)";
        searchCol = [
            { label: '客户来源', name: 'Khly', labtype: 'combox', hidden: false, data: JSON.parse(khlys), cwidth: '5%', cccwidth: '8%' },
@@ -69,6 +73,19 @@
        var _pageAdd = function () {
            OpenWindow("新增合作客户", "98%", "100%", "/CooperatecustomCustomer/Edit/");
        }
         var _pageSearch = function () {
            $("#jqGrid").jqGrid('setGridParam', {
                url: dataUrl = "/CooperatecustomCustomer/GetList"+"@(string.IsNullOrEmpty(Creater) ?"": "?Ywjl=" + Creater)", postData: jsons, page: 1
            }); //重新载入
            var jsons = GetSearchEnd();
            if (jsons == false) {
                msg.info("请录入查询条件");
                return false;
            }
            LoadGrid(jsons);
        }
        var _pagePrint = function () {
@@ -282,7 +299,17 @@
            }
        };
        $(function () {
            $("#PBSCreatetimeend").val(Baomingtimeend);
            $("#PBSCreatetimestart").val(Baomingtimebegin);
        });
    </script>
}