qcPersonal.zml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. ${Styles.htmlOverflowHidden()}
  2. ${Scripts.src("/zinc/chart/highcharts.js")}
  3. ${Scripts.src("/zinc/chart/exporting.js")}
  4. ${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
  5. <script>
  6. Z.onload(function()
  7. {
  8. var chart = Highcharts.chart('container',
  9. {
  10. plotBackgroundColor: null,
  11. plotBorderWidth: null,
  12. plotShadow: false,
  13. type: 'pie',
  14. title: {text: '质检违规原因分析'},
  15. tooltip: {headerFormat: '{series.name}<br>',pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'},
  16. plotOptions:
  17. {
  18. pie:
  19. {
  20. allowPointSelect: true, // 可以被选择
  21. cursor: 'pointer', // 鼠标样式
  22. dataLabels:
  23. {
  24. enabled: true,
  25. useHTML: true,
  26. format: '<span style=" white-space:normal;">{point.name}</span>'
  27. + '<span style="display:block;">订单数量:{point.y}</span>'
  28. + '<span style="display:block;">占比:{point.percentage:.1f} % </span>',
  29. }
  30. }
  31. },
  32. series:
  33. [{
  34. type: 'pie',
  35. name: '质检原因占比',
  36. data:
  37. [
  38. <#for item : map.entrySet()>
  39. ['${item.getKey()}', ${item.getValue()}],
  40. </#for>
  41. ]
  42. }]
  43. });
  44. });
  45. function doApply()
  46. {
  47. var designer = '${request.getSessionName()}';
  48. var dialog = new Z.Dialog();
  49. dialog.title = "申请加分(截图粘贴在下方空白区域)";
  50. dialog.url = "/qcApplyScore.htm?designer=" + designer;
  51. dialog.width = 800;
  52. dialog.height = 600;
  53. dialog.execute();
  54. }
  55. function doViewDetail(designId)
  56. {
  57. var dialog = new Z.Dialog();
  58. dialog.title = "质检违规详情";
  59. dialog.url = "/qcViolationsDetail.htm?designId=" + designId;
  60. dialog.width = 800;
  61. dialog.height = 600;
  62. dialog.execute();
  63. }
  64. function doViewApplyDetail(applyId)
  65. {
  66. var dialog = new Z.Dialog();
  67. dialog.title = "申请加分凭证";
  68. dialog.url = "/qcApplyDetail.htm?applyId=" + applyId + '&readonly=true';
  69. dialog.width = 800;
  70. dialog.height = 600;
  71. dialog.execute();
  72. }
  73. </script>
  74. ${zhiqim_manager_breadcrumb("我的质检")}
  75. ${zhiqim_manager_content()}
  76. <#-- 导航 -->
  77. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  78. <nav>
  79. <ul>
  80. <li class="z-active">我的质检</li>
  81. </ul>
  82. <div class="z-float-left z-mg10 z-lh30">
  83. <form name="theForm" action="/qcPersonal.htm" method="post">
  84. &nbsp;质检日期:
  85. <select name="year" class="z-select z-w110" data-role="z-select" data-class="${zmr_color_class}" value="${year}">
  86. <#for item : yearList>
  87. <option value="${item}" <#if item==year>selected</#if>>${item}</option>
  88. </#for>
  89. </select>
  90. <select name="month" class="z-select z-w110" data-role="z-select" data-class="${zmr_color_class}" value="${month}">
  91. <option value="1" <#if month==1>selected</#if>>1</option>
  92. <option value="2" <#if month==2>selected</#if>>2</option>
  93. <option value="3" <#if month==3>selected</#if>>3</option>
  94. <option value="4" <#if month==4>selected</#if>>4</option>
  95. <option value="5" <#if month==5>selected</#if>>5</option>
  96. <option value="6" <#if month==6>selected</#if>>6</option>
  97. <option value="7" <#if month==7>selected</#if>>7</option>
  98. <option value="8" <#if month==8>selected</#if>>8</option>
  99. <option value="9" <#if month==9>selected</#if>>9</option>
  100. <option value="10" <#if month==10>selected</#if>>10</option>
  101. <option value="11" <#if month==11>selected</#if>>11</option>
  102. <option value="12" <#if month==12>selected</#if>>12</option>
  103. </select>
  104. <button class="z-button z-w80 z-blue z-mg-l5"><i class="z-font z-query"></i>查询</button>
  105. <button type="button" class="z-button z-mg-l5 ${zmr_color_class}" onclick="doApply();"><i class="z-font z-add"></i>申请加分</button>
  106. <span class="z-mg-l5 z-bold">当前质检分数:</span><span class="z-text-red">${score}</span>
  107. </form>
  108. </div>
  109. </nav>
  110. </div>
  111. <table class="z-table z-bordered z-pd6 z-bg-white">
  112. <tr>
  113. <td width="50%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
  114. <td width="*">
  115. <table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
  116. <tr bgcolor="${zmr_thead_bgcolor}">
  117. <td colspan="5"><span class="z-bold z-float-left">设计师[${designer}]质检扣分表</span></td>
  118. </tr>
  119. <tr bgcolor="${zmr_thead_bgcolor}">
  120. <td width="15%">违规单号</td>
  121. <td width="*%">违规原因</td>
  122. <td width="10%">违规扣分</td>
  123. <td width="100">质检时间</td>
  124. <td width="15%">操作</td>
  125. </tr>
  126. <#for item : pageResult.list()>
  127. <tr>
  128. <td>${item.getDesignId()}</td>
  129. <td>${item.getReason()}</td>
  130. <td>-${item.getScore()}</td>
  131. <td>${item.getQcTime()}</td>
  132. <td><button class="z-button z-w90 z-blue" onclick="doViewDetail(${item.getDesignId()})">详情</button></td>
  133. </tr>
  134. </#for>
  135. ${zhiqim_manager_tr_no_record(pageResult, 20, "没有质检扣分订单")}
  136. </table>
  137. ${zhiqim_manager_paging(pageResult, "/qcPersonal.htm")}
  138. <table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center z-mg-t10">
  139. <tr bgcolor="${zmr_thead_bgcolor}">
  140. <td colspan="5"><span class="z-bold z-float-left">设计师[${designer}]质检加分表</span></td>
  141. </tr>
  142. <tr bgcolor="${zmr_thead_bgcolor}">
  143. <td width="15%">申请ID</td>
  144. <td width="*">申请原因</td>
  145. <td width="100">退回原因</td>
  146. <td width="10%">质检加分</td>
  147. <td width="100">申请时间</td>
  148. <td width="100">申请状态</td>
  149. <td width="15%">操作</td>
  150. </tr>
  151. <#for item : result.list()>
  152. <tr>
  153. <td>${item.getApplyId()}</td>
  154. <td>${item.getApplyReason()}</td>
  155. <td>${item.getApplyBackReason()}</td>
  156. <td>+${item.getScore()}</td>
  157. <td>${item.getApplyTime()}</td>
  158. <td>
  159. <#if item.getApplyFlag()==0>申请中</#if>
  160. <#if item.getApplyFlag()==1><span class="z-text-blue">申请成功</span></#if>
  161. <#if item.getApplyFlag()==2><span class="z-text-red">申请失败</span></#if>
  162. </td>
  163. <td><button class="z-button z-w90 z-blue" onclick="doViewApplyDetail(${item.getApplyId()})">详情</button></td>
  164. </tr>
  165. </#for>
  166. ${zhiqim_manager_tr_no_record(result, 20, "没有申请加分")}
  167. </table>
  168. ${zhiqim_manager_paging(result, "/qcPersonal.htm")}
  169. </td>
  170. </tr>
  171. </table>
  172. ${zhiqim_manager_content_end()}