Keine Beschreibung

product.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>化肥市场投诉</title>
  7. <!--[if lt IE 9]>
  8. <meta http-equiv="refresh" content="0;ie.html" />
  9. <![endif]-->
  10. <script src="../Script/Common/huayi.load.js"></script>
  11. <script src="../Script/Common/huayi.config.js"></script>
  12. <link rel="stylesheet" href="../js/layui/css/layui.css" />
  13. <link rel="stylesheet" href="../css/init.css" />
  14. <style>
  15. .zxt-top {
  16. background: #f3f3f4;
  17. height: 60px;
  18. padding: 10px 20px;
  19. }
  20. .topCon {
  21. float: right;
  22. margin-right: 45px;
  23. }
  24. .zxt-content {
  25. width: 90%;
  26. margin: 20px auto 0 auto;
  27. }
  28. .select2-container--default .select2-selection--single{
  29. border-color: #e5e6e7;
  30. }
  31. .time-box select{
  32. height: 32px;
  33. line-height: 32px;
  34. }
  35. .time-box select option{
  36. line-height: 32px;
  37. }
  38. </style>
  39. </head>
  40. <body class="gray-bg" style="background: #fefefe;">
  41. <div class="zxtable">
  42. <div class="daoHang clearfix">
  43. <div class="dhLeft">
  44. <sapn><i class="syIcon"></i>位置:
  45. <a id="ReIndex" href="javaScript:;">首页</a>&gt;
  46. <a href="javaScript:;">报表分析</a>&gt;
  47. <a href="javaScript:;">业务数据分析</a>&gt;
  48. <a href="" class="nowPosition">化肥市场投诉</a>
  49. </sapn>
  50. </div>
  51. <div class="dhRight">
  52. <a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
  53. </div>
  54. </div>
  55. <div class="zxt-top clearfix">
  56. <div class="topCon">
  57. <div class="form-inline th-bar clearfix">
  58. <div class="time-box form-group">
  59. <i class="tub fa fa-calendar"></i>
  60. <input class="form-control" type="text" id="startTime" placeholder="请选择起止时间" style="width: 228px;">
  61. </div>
  62. <div class="time-box form-group">
  63. 部门:
  64. <select id="bumen">
  65. <option value="">请选择</option>
  66. </select>
  67. </div>
  68. <div class="time-box form-group">
  69. 渠道类型:
  70. <select id="channel">
  71. <option value="">请选择</option>
  72. </select>
  73. </div>
  74. <div class="form-group tool_bars pull-right">
  75. <button class="btns sear">搜索</button>
  76. <a class="btns export">导出</a>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="zxt-content">
  82. <table class="layui-hide" id="t_callTotal"></table>
  83. </div>
  84. </div>
  85. <script src="../js/layui/layui.js"></script>
  86. <script>
  87. var token = $.cookie("token");
  88. var stime = ''; //开始时间
  89. var endtime = ''; //结束时间
  90. var dpt = ''; //部门
  91. var channel = '';
  92. $(function() {
  93. var regNum = /^[0-9]+$/;
  94. layui.use('laydate', function() {
  95. var laydate = layui.laydate;
  96. //日期
  97. laydate.render({
  98. elem: '#startTime',
  99. range: '~',
  100. theme: '#1ab394',
  101. calendar: 'true'
  102. });
  103. });
  104. getDept(); //获取部门下拉
  105. getTableDataList(); //获取表格数据
  106. //搜索事件
  107. $(".sear").click(function() {
  108. dpt = $('#bumen').val();
  109. channel = $('#channel').val();
  110. dpt = dpt === null ? '' : dpt;
  111. channel = channel === null ? '' : channel;
  112. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  113. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  114. getTableDataList(); //获取表格数据
  115. });
  116. //导出
  117. $('.export').click(function() {
  118. dpt = $('#bumen').val();
  119. channel = $('#channel').val();
  120. //dpt = dpt === null ? '' : dpt;
  121. //channel = channel === null ? '' : channel;
  122. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  123. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  124. dcexcel(this);
  125. });
  126. });
  127. function dcexcel(obj) {
  128. var url = huayi.config.callcenter_url + "WOReport/ExptComplaintList?token=" + token;
  129. url += "&stime=" + stime + "&endtime=" + endtime + "&dpt=" + dpt + "&channel=" + channel;
  130. obj.href = url;
  131. }
  132. //加载表格
  133. function getTableDataList() {
  134. layui.use('table', function() {
  135. var table = layui.table;
  136. //方法级渲染
  137. table.render({
  138. elem: '#t_callTotal',
  139. url: huayi.config.callcenter_url + "WOReport/GetComplaintList",
  140. method: 'get', //如果无需自定义HTTP类型,可不加该参数
  141. skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
  142. even: true, //开启隔行背景
  143. size: 'md', //sm,lg,md尺寸的表格
  144. cellMinWidth: 160,
  145. where: {
  146. stime: stime,
  147. endtime: endtime,
  148. salesBase: $('#bumen').val(),
  149. channel: $('#channel').val(),
  150. token: token
  151. }, //如果无需传递额外参数,可不加该参数
  152. //request: {}, //如果无需自定义请求参数,可不加该参数
  153. response: {
  154. statusName: 'state', //数据状态的字段名称,默认:code
  155. statusCode: 'success', //成功的状态码,默认:0
  156. msgName: 'message', //状态信息的字段名称,默认:msg
  157. countName: 'total', //数据总数的字段名称,默认:count
  158. dataName: 'rows', //数据列表的字段名称,默认:data
  159. }, //如果无需自定义数据响应名称,可不加该参数
  160. page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
  161. layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
  162. },
  163. page:true,
  164. cols: [
  165. [{
  166. field: 'F_CusName',
  167. title: '客户姓名',
  168. align: 'center',
  169. fixed: true,
  170. width: 150,
  171. }, {
  172. field: 'F_CusPhone',
  173. title: '客户电话',
  174. align: 'center',
  175. width: '',
  176. },
  177. {
  178. field: 'F_CompanyName',
  179. title: '公司名称',
  180. align: 'center',
  181. width: '',
  182. },
  183. {
  184. field: 'F_IncidentProvince',
  185. title: '事发地-省',
  186. align: 'center',
  187. width: '',
  188. },
  189. {
  190. field: 'F_IncidentCity',
  191. title: '事发地-市',
  192. align: 'center',
  193. width: '',
  194. },
  195. {
  196. field: 'F_IncidentDetailed',
  197. title: '事发地-详细',
  198. align: 'center',
  199. width: '',
  200. },
  201. {
  202. field: 'F_SalesBase',
  203. title: '销售基地',
  204. align: 'center',
  205. width: '',
  206. },
  207. {
  208. field: 'F_AreaName',
  209. title: '大区名称',
  210. align: 'center',
  211. width: '',
  212. },
  213. {
  214. field: 'F_BranchName',
  215. title: '分公司名称',
  216. align: 'center',
  217. width: '',
  218. },
  219. {
  220. field: 'F_Salesman',
  221. title: '业务员',
  222. align: 'center',
  223. width: '',
  224. },
  225. {
  226. field: 'F_Description',
  227. title: '问题描述',
  228. align: 'center',
  229. width: '',
  230. },
  231. {
  232. field: 'F_QuestionTypeone',
  233. title: '问题类别1',
  234. align: 'center',
  235. width: '',
  236. },
  237. {
  238. field: 'F_QuestionTypetwo',
  239. title: '问题类别2',
  240. align: 'center',
  241. width: '',
  242. },
  243. {
  244. field: 'F_QuestionTypethree',
  245. title: '问题类别3',
  246. align: 'center',
  247. width: '',
  248. },
  249. {
  250. field: 'F_CustomerID',
  251. title: '客户编号',
  252. align: 'center',
  253. width: '',
  254. },
  255. {
  256. field: 'F_MaterialID',
  257. title: '物料编码',
  258. align: 'center',
  259. width: '',
  260. },
  261. {
  262. field: 'F_MaterialName',
  263. title: '物料名称',
  264. align: 'center',
  265. width: '',
  266. },
  267. {
  268. field: 'F_Model',
  269. title: '型号',
  270. align: 'center',
  271. width: '',
  272. },
  273. {
  274. field: 'F_Specs',
  275. title: '规格',
  276. align: 'center',
  277. width: '',
  278. },
  279. {
  280. field: 'F_Level1',
  281. title: '一级分类',
  282. align: 'center',
  283. width: '',
  284. },
  285. {
  286. field: 'F_Level2',
  287. title: '二级分类',
  288. align: 'center',
  289. width: '',
  290. },
  291. {
  292. field: 'F_Level3',
  293. title: '三级分类',
  294. align: 'center',
  295. width: '',
  296. },
  297. {
  298. field: 'F_Brand',
  299. title: '品牌',
  300. align: 'center',
  301. width: '',
  302. },
  303. {
  304. field: 'F_MaterialEffect',
  305. title: '复合肥肥效',
  306. align: 'center',
  307. width: '',
  308. },
  309. {
  310. field: 'F_Pipeline',
  311. title: '产品线',
  312. align: 'center',
  313. width: '',
  314. }, {
  315. field: 'F_Craft',
  316. title: '工艺',
  317. align: 'center',
  318. width: '',
  319. },
  320. {
  321. field: 'F_BatchNumber',
  322. title: '生产批次号',
  323. align: 'center',
  324. width: '',
  325. },
  326. {
  327. field: 'F_TS_Quantity',
  328. title: '投诉-问题数量',
  329. align: 'center',
  330. width: '',
  331. },
  332. {
  333. field: 'F_SC_ProductBase',
  334. title: '市场管理科-生产基地-市',
  335. align: 'center',
  336. width: '',
  337. },
  338. {
  339. field: 'F_SC_PreliminaryOpinion',
  340. title: '市场管理科-初审意见',
  341. align: 'center',
  342. width: '',
  343. },
  344. {
  345. field: 'F_SC_QualityMonth',
  346. title: '市场管理科-超出质保期限',
  347. align: 'center',
  348. width: '',
  349. },
  350. {
  351. field: 'F_ZL_QualityEventLevel',
  352. title: '质量管理科-质量事件等级',
  353. align: 'center',
  354. width: '',
  355. },
  356. {
  357. field: 'F_ZL_ClaimAmount',
  358. title: '质量管理科-索赔金额',
  359. align: 'center',
  360. width: '',
  361. },
  362. {
  363. field: 'F_ZL_ResponsibleUnit',
  364. title: '质量管理科-责任单位',
  365. align: 'center',
  366. width: '',
  367. },
  368. {
  369. field: 'F_ZL_ApprovalOpinions',
  370. title: '质量管理科-审批意见',
  371. align: 'center',
  372. width: '',
  373. },
  374. {
  375. field: 'F_ZL_ApprovalDisagree',
  376. title: '质量管理科-审批不同意意见',
  377. align: 'center',
  378. width: '',
  379. },
  380. {
  381. field: 'F_ZL_CompensationMethod',
  382. title: '质量管理科-补偿方式',
  383. align: 'center',
  384. width: '',
  385. },
  386. {
  387. field: 'F_ZL_CompensationMoney',
  388. title: '质量管理科-补偿钱款',
  389. align: 'center',
  390. width: '',
  391. },
  392. {
  393. field: 'F_ZL_CResponsibleUnits',
  394. title: '质量管理科-对应责任单位',
  395. align: 'center',
  396. width: '',
  397. },
  398. {
  399. field: 'F_ZL_Fquantity',
  400. title: '质量管理科-确认实收数量(吨)',
  401. align: 'center',
  402. width: '',
  403. },
  404. {
  405. field: 'F_ZL_ImprovementRequirements',
  406. title: '质量管理科-改进要求',
  407. align: 'center',
  408. width: '',
  409. },
  410. {
  411. field: 'F_ZL_CApprovalNo',
  412. title: '质量管理科-对应审批',
  413. align: 'center',
  414. width: '',
  415. },
  416. {
  417. field: 'F_DealType',
  418. title: '处理方式',
  419. align: 'center',
  420. width: '',
  421. },
  422. {
  423. field: 'F_DealBy',
  424. title: '处理人',
  425. align: 'center',
  426. width: '',
  427. },
  428. {
  429. field: 'F_DealTime',
  430. title: '处理时间',
  431. align: 'center',
  432. width: '',
  433. },
  434. {
  435. field: 'F_DealContent',
  436. title: '处理内容',
  437. align: 'center',
  438. width: '',
  439. },
  440. {
  441. field: 'F_DealResult',
  442. title: '处理结果',
  443. align: 'center',
  444. width: '',
  445. },
  446. {
  447. field: 'F_DealReasons',
  448. title: '未处理原因',
  449. align: 'center',
  450. width: '',
  451. },
  452. {
  453. field: 'F_CreateOn',
  454. title: '添加时间',
  455. align: 'center',
  456. width: '',
  457. }
  458. ]
  459. ],
  460. });
  461. });
  462. }
  463. function getDept() {
  464. $.getJSON( huayi.config.callcenter_url +"Dictionary/GetDicValueListByFlag",
  465. {
  466. flag: 'XSJD',
  467. token: token
  468. },
  469. function(result) {
  470. if(result.state.toLowerCase() == "success") {
  471. goodslist = result.data;
  472. $("#bumen").empty();
  473. $('<option value="">请选择部门</option>').appendTo($("#bumen"));
  474. $(goodslist).each(function(i, n) {
  475. $('<option value="' + n.F_Name
  476. + '">' + n.F_Name
  477. + '</option>').appendTo($("#bumen"));
  478. })
  479. }
  480. })
  481. $.getJSON( huayi.config.callcenter_url +"Dictionary/GetDicValueListByFlag",
  482. {
  483. flag: 'QDLX',
  484. token: token
  485. },
  486. function(result) {
  487. if(result.state.toLowerCase() == "success") {
  488. goodslist = result.data;
  489. $("#channel").empty();
  490. $('<option value="">请选择部门</option>').appendTo($("#channel"));
  491. $(goodslist).each(function(i, n) {
  492. $('<option value="' + n.F_Name
  493. + '">' + n.F_Name
  494. + '</option>').appendTo($("#channel"));
  495. })
  496. }
  497. })
  498. }
  499. </script>
  500. </body>
  501. </html>