| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>化肥市场投诉</title>
- <!--[if lt IE 9]>
- <meta http-equiv="refresh" content="0;ie.html" />
- <![endif]-->
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../js/layui/css/layui.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <style>
- .zxt-top {
- background: #f3f3f4;
- height: 60px;
- padding: 10px 20px;
- }
-
- .topCon {
- float: right;
- margin-right: 45px;
- }
-
- .zxt-content {
- width: 90%;
- margin: 20px auto 0 auto;
- }
- .select2-container--default .select2-selection--single{
- border-color: #e5e6e7;
- }
- .time-box select{
- height: 32px;
- line-height: 32px;
- }
- .time-box select option{
- line-height: 32px;
- }
- </style>
- </head>
- <body class="gray-bg" style="background: #fefefe;">
- <div class="zxtable">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn><i class="syIcon"></i>位置:
- <a id="ReIndex" href="javaScript:;">首页</a>>
- <a href="javaScript:;">报表分析</a>>
- <a href="javaScript:;">业务数据分析</a>>
- <a href="" class="nowPosition">化肥市场投诉</a>
- </sapn>
- </div>
- <div class="dhRight">
- <a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div class="zxt-top clearfix">
- <div class="topCon">
- <div class="form-inline th-bar clearfix">
- <div class="time-box form-group">
- <i class="tub fa fa-calendar"></i>
- <input class="form-control" type="text" id="startTime" placeholder="请选择起止时间" style="width: 228px;">
- </div>
- <div class="time-box form-group">
- 部门:
- <select id="bumen">
- <option value="">请选择</option>
- </select>
- </div>
- <div class="time-box form-group">
- 渠道类型:
- <select id="channel">
- <option value="">请选择</option>
- </select>
- </div>
- <div class="form-group tool_bars pull-right">
- <button class="btns sear">搜索</button>
- <a class="btns export">导出</a>
- </div>
- </div>
- </div>
- </div>
- <div class="zxt-content">
- <table class="layui-hide" id="t_callTotal"></table>
- </div>
- </div>
- <script src="../js/layui/layui.js"></script>
- <script>
- var token = $.cookie("token");
- var stime = ''; //开始时间
- var endtime = ''; //结束时间
- var dpt = ''; //部门
- var channel = '';
- $(function() {
- var regNum = /^[0-9]+$/;
- layui.use('laydate', function() {
- var laydate = layui.laydate;
- //日期
- laydate.render({
- elem: '#startTime',
- range: '~',
- theme: '#1ab394',
- calendar: 'true'
- });
- });
- getDept(); //获取部门下拉
- getTableDataList(); //获取表格数据
- //搜索事件
- $(".sear").click(function() {
- dpt = $('#bumen').val();
- channel = $('#channel').val();
- dpt = dpt === null ? '' : dpt;
- channel = channel === null ? '' : channel;
- stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
- endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
- getTableDataList(); //获取表格数据
- });
- //导出
- $('.export').click(function() {
- dpt = $('#bumen').val();
- channel = $('#channel').val();
- //dpt = dpt === null ? '' : dpt;
- //channel = channel === null ? '' : channel;
- stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
- endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
- dcexcel(this);
- });
- });
- function dcexcel(obj) {
- var url = huayi.config.callcenter_url + "WOReport/ExptComplaintList?token=" + token;
- url += "&stime=" + stime + "&endtime=" + endtime + "&dpt=" + dpt + "&channel=" + channel;
- obj.href = url;
- }
- //加载表格
- function getTableDataList() {
- layui.use('table', function() {
- var table = layui.table;
- //方法级渲染
- table.render({
- elem: '#t_callTotal',
- url: huayi.config.callcenter_url + "WOReport/GetComplaintList",
- method: 'get', //如果无需自定义HTTP类型,可不加该参数
- skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
- even: true, //开启隔行背景
- size: 'md', //sm,lg,md尺寸的表格
- cellMinWidth: 160,
- where: {
- stime: stime,
- endtime: endtime,
- salesBase: $('#bumen').val(),
- channel: $('#channel').val(),
- token: token
- }, //如果无需传递额外参数,可不加该参数
- //request: {}, //如果无需自定义请求参数,可不加该参数
- response: {
- statusName: 'state', //数据状态的字段名称,默认:code
- statusCode: 'success', //成功的状态码,默认:0
- msgName: 'message', //状态信息的字段名称,默认:msg
- countName: 'total', //数据总数的字段名称,默认:count
- dataName: 'rows', //数据列表的字段名称,默认:data
- }, //如果无需自定义数据响应名称,可不加该参数
- page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
- layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
- },
- page:true,
- cols: [
- [{
- field: 'F_CusName',
- title: '客户姓名',
- align: 'center',
- fixed: true,
- width: 150,
- }, {
- field: 'F_CusPhone',
- title: '客户电话',
- align: 'center',
- width: '',
- },
- {
- field: 'F_CompanyName',
- title: '公司名称',
- align: 'center',
- width: '',
- },
- {
- field: 'F_IncidentProvince',
- title: '事发地-省',
- align: 'center',
- width: '',
- },
- {
- field: 'F_IncidentCity',
- title: '事发地-市',
- align: 'center',
- width: '',
- },
- {
- field: 'F_IncidentDetailed',
- title: '事发地-详细',
- align: 'center',
- width: '',
- },
- {
- field: 'F_SalesBase',
- title: '销售基地',
- align: 'center',
- width: '',
- },
- {
- field: 'F_AreaName',
- title: '大区名称',
- align: 'center',
- width: '',
- },
- {
- field: 'F_BranchName',
- title: '分公司名称',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Salesman',
- title: '业务员',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Description',
- title: '问题描述',
- align: 'center',
- width: '',
- },
- {
- field: 'F_QuestionTypeone',
- title: '问题类别1',
- align: 'center',
- width: '',
- },
- {
- field: 'F_QuestionTypetwo',
- title: '问题类别2',
- align: 'center',
- width: '',
- },
- {
- field: 'F_QuestionTypethree',
- title: '问题类别3',
- align: 'center',
- width: '',
- },
- {
- field: 'F_CustomerID',
- title: '客户编号',
- align: 'center',
- width: '',
- },
- {
- field: 'F_MaterialID',
- title: '物料编码',
- align: 'center',
- width: '',
- },
- {
- field: 'F_MaterialName',
- title: '物料名称',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Model',
- title: '型号',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Specs',
- title: '规格',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Level1',
- title: '一级分类',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Level2',
- title: '二级分类',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Level3',
- title: '三级分类',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Brand',
- title: '品牌',
- align: 'center',
- width: '',
- },
- {
- field: 'F_MaterialEffect',
- title: '复合肥肥效',
- align: 'center',
- width: '',
- },
- {
- field: 'F_Pipeline',
- title: '产品线',
- align: 'center',
- width: '',
- }, {
- field: 'F_Craft',
- title: '工艺',
- align: 'center',
- width: '',
- },
- {
- field: 'F_BatchNumber',
- title: '生产批次号',
- align: 'center',
- width: '',
- },
- {
- field: 'F_TS_Quantity',
- title: '投诉-问题数量',
- align: 'center',
- width: '',
- },
- {
- field: 'F_SC_ProductBase',
- title: '市场管理科-生产基地-市',
- align: 'center',
- width: '',
- },
- {
- field: 'F_SC_PreliminaryOpinion',
- title: '市场管理科-初审意见',
- align: 'center',
- width: '',
- },
- {
- field: 'F_SC_QualityMonth',
- title: '市场管理科-超出质保期限',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_QualityEventLevel',
- title: '质量管理科-质量事件等级',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_ClaimAmount',
- title: '质量管理科-索赔金额',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_ResponsibleUnit',
- title: '质量管理科-责任单位',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_ApprovalOpinions',
- title: '质量管理科-审批意见',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_ApprovalDisagree',
- title: '质量管理科-审批不同意意见',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_CompensationMethod',
- title: '质量管理科-补偿方式',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_CompensationMoney',
- title: '质量管理科-补偿钱款',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_CResponsibleUnits',
- title: '质量管理科-对应责任单位',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_Fquantity',
- title: '质量管理科-确认实收数量(吨)',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_ImprovementRequirements',
- title: '质量管理科-改进要求',
- align: 'center',
- width: '',
- },
- {
- field: 'F_ZL_CApprovalNo',
- title: '质量管理科-对应审批',
- align: 'center',
- width: '',
- },
- {
- field: 'F_DealType',
- title: '处理方式',
- align: 'center',
- width: '',
- },
- {
- field: 'F_DealBy',
- title: '处理人',
- align: 'center',
- width: '',
- },
- {
- field: 'F_DealTime',
- title: '处理时间',
- align: 'center',
- width: '',
- },
- {
- field: 'F_DealContent',
- title: '处理内容',
- align: 'center',
- width: '',
- },
- {
- field: 'F_DealResult',
- title: '处理结果',
- align: 'center',
- width: '',
- },
- {
- field: 'F_DealReasons',
- title: '未处理原因',
- align: 'center',
- width: '',
- },
- {
- field: 'F_CreateOn',
- title: '添加时间',
- align: 'center',
- width: '',
- }
- ]
- ],
- });
- });
- }
- function getDept() {
- $.getJSON( huayi.config.callcenter_url +"Dictionary/GetDicValueListByFlag",
- {
- flag: 'XSJD',
- token: token
- },
- function(result) {
- if(result.state.toLowerCase() == "success") {
- goodslist = result.data;
- $("#bumen").empty();
- $('<option value="">请选择部门</option>').appendTo($("#bumen"));
- $(goodslist).each(function(i, n) {
- $('<option value="' + n.F_Name
- + '">' + n.F_Name
- + '</option>').appendTo($("#bumen"));
- })
- }
- })
- $.getJSON( huayi.config.callcenter_url +"Dictionary/GetDicValueListByFlag",
- {
- flag: 'QDLX',
- token: token
- },
- function(result) {
- if(result.state.toLowerCase() == "success") {
- goodslist = result.data;
- $("#channel").empty();
- $('<option value="">请选择部门</option>').appendTo($("#channel"));
- $(goodslist).each(function(i, n) {
- $('<option value="' + n.F_Name
- + '">' + n.F_Name
- + '</option>').appendTo($("#channel"));
- })
- }
- })
- }
- </script>
- </body>
- </html>
|