scan_detail.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>任务详情</title>
  7. <link rel="stylesheet" href="/css/assist/successPage.css">
  8. <script src="/js/assist/drag.js" type="text/javascript"></script>
  9. <base href="./assets/svg/">
  10. </head>
  11. <body>
  12. <div class="hgc_layout">
  13. <div class="hgc_totalHeader">
  14. <?php
  15. if(Yii::app()->session['user']['role']==2){
  16. ?>
  17. <span ><a href="<?php echo $this->createUrl('assistTask/index'); ?>">素材切割任务</a></span>
  18. <?php
  19. }else{
  20. ?>
  21. <span ><a href="<?php echo $this->createUrl('assistTask/myTask'); ?>">素材切割任务</a></span>
  22. <?php
  23. }
  24. ?>
  25. <span class="active">扫描处理任务</span>
  26. </div>
  27. <div class="hgc_content">
  28. <div class="module backModule">
  29. <h2>
  30. <span>任务详情</span>
  31. <a href="javascript:history.back(-1);" class="backIcon"><img src="/images/assist/icon_hgc_backPrev.svg" /> 返回</a>
  32. </h2>
  33. </div>
  34. <div class="module artical">
  35. <h2>
  36. <span>任务基本信息</span>
  37. </h2>
  38. <div class="content">
  39. <span>考试名称:<?php echo $task['exam_name']?></span>
  40. <span>考试学科:<?php echo Yii::app()->params['subjectId'][$task['subject_id']]?></span>
  41. <span>学校名称:<?php echo $task['school_name']?></span>
  42. <span>学管姓名:<?php echo $task['coach_name']?></span>
  43. <span>学管手机号:<?php echo $task['coach_mobile']?></span>
  44. </div>
  45. </div>
  46. <div class="module abstract">
  47. <h2>
  48. <span>扫描上传摘要</span>
  49. </h2>
  50. <div class="content">
  51. <div class="item">
  52. <div class="pic">
  53. <img src="/images/assist/icon_hgc_plan.svg" alt="">
  54. </div>
  55. <div class="data">
  56. <h3><?php echo $task['count']['total']?></h3>
  57. <span>计划上传 (人)
  58. <strong>
  59. <img src="/images/assist/icon_hgc_notice.svg">
  60. <i>计划上传人数为实际参加考试的人数,不包含已删除的学生</i>
  61. </strong>
  62. </span>
  63. </div>
  64. </div>
  65. <div class="item">
  66. <div class="pic">
  67. <img src="/images/assist/icon_hgc_already.svg" alt="">
  68. </div>
  69. <div class="data">
  70. <h3><?php echo $task['count']['is_feedback']?></h3>
  71. <span>已上传 (人)</span>
  72. </div>
  73. </div>
  74. <div class="item">
  75. <div class="pic">
  76. <img src="/images/assist/icon_hgc_absent.svg" alt="">
  77. </div>
  78. <div class="data">
  79. <h3><?php echo $task['count']['is_del']?></h3>
  80. <span>缺考 (人)
  81. <strong>
  82. <img src="/images/assist/icon_hgc_notice.svg">
  83. <i>缺考人数包含扫描标记缺考的学生数与已删除的学生数</i>
  84. </strong>
  85. </span>
  86. </div>
  87. </div>
  88. <div class="item">
  89. <div class="pic">
  90. <img src="/images/assist/icon_hgc_abnormal.svg" alt="">
  91. </div>
  92. <div class="data">
  93. <h3><?php echo $task['count']['abnormal']?></h3>
  94. <span>
  95. 云端异常总量
  96. <strong>
  97. <img src="/images/assist/icon_hgc_notice.svg">
  98. <i>异常数量不是以“人”为单位,其包含了缺页、异常图像等异常数据</i>
  99. </strong>
  100. </span>
  101. </div>
  102. </div>
  103. <div class="item">
  104. <div class="pic">
  105. <img src="/images/assist/icon_hgc_surplus.svg" alt="">
  106. </div>
  107. <div class="data">
  108. <h3><?php echo $task['count']['surplus']?></h3>
  109. <span>
  110. 云端剩余异常
  111. <strong>
  112. <img src="/images/assist/icon_hgc_notice.svg">
  113. <i>异常数量不是以“人”为单位,其包含了缺页、异常图像等异常数据</i>
  114. </strong>
  115. </span>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="module artical">
  121. <h2>
  122. <span>云处理详情</span>
  123. <div class="btns">
  124. <?php
  125. if(Yii::app()->session['user']['role']==2){
  126. if($task['scan_task']==0 || $task['scan_task']==1){
  127. echo '<div class="hbtn apply">分配操作员</div>';
  128. }elseif($task['scan_task']==2){
  129. echo '<div class="hbtn apply">修改操作员</div>';
  130. }
  131. }else{
  132. if($task['count']['surplus']>0 && $task['scan_task']==2){
  133. echo '<div class="hbtn startScan">去处理</div>';
  134. }else{
  135. echo '<div class="hbtn disabled">去处理</div>';
  136. }
  137. }
  138. ?>
  139. </div>
  140. </h2>
  141. <div class="content">
  142. <?php
  143. if(isset($task['scan_task']) && $task['count']['abnormal']>0) {
  144. ?>
  145. <span>发送时间:<?php echo date('Y-m-d H:i:s',$task['scan_task_create_time'])?>
  146. <strong class="notice">
  147. <img src="/images/assist/icon_hgc_notice.svg">
  148. <i>
  149. <?php
  150. echo '首次:'.date('Y-m-d H:i:s',$task['scan_task_create_time']).'<br>';
  151. echo '最新:'.date('Y-m-d H:i:s',$task['resend_time'])
  152. ?>
  153. </i>
  154. </strong>
  155. </span>
  156. <span>状态:<i class="theme">
  157. <?php
  158. if($task['scan_task']==1){
  159. echo '排队中';
  160. }elseif($task['scan_task']==2){
  161. echo '受理中';
  162. }elseif($task['scan_task']==3){
  163. echo '已完成';
  164. }elseif($task['scan_task']==4){
  165. echo '已撤消';
  166. }
  167. ?>
  168. </i></span>
  169. <?php
  170. if(Yii::app()->session['user']['role']==2){
  171. ?>
  172. <span>受理专家:<?php echo $task['user']?></span>
  173. <?php
  174. }
  175. ?>
  176. <span>用时:<?php echo $task['AstConsuming']?></span>
  177. <?php
  178. }else{
  179. echo '<div style="text-align: center;width:100%;">本场考试无云端异常数据</div>';
  180. }
  181. ?>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="hgc_dialog" style="display: none">
  187. <div class="hgc_dialogContent">
  188. <h2>设置操作员 <i class="close btn-colse">x</i></h2>
  189. <div class="content">
  190. <p class="warning">注意:若更改操作员,该次任务的所有任务量统计将计入新的操作员账号下,请谨慎操作!</p>
  191. <div class="conditionItem">
  192. <em>选择操作员:</em>
  193. <select name="user_id" id="user_id" >
  194. <option value="0">请选择用户</option>
  195. <?php
  196. if($users){
  197. foreach ($users as $user){
  198. echo '<option value="'.$user['user_id'].'">'.$user['real_name'].'-'.$user['user_name'].'</option>';
  199. }
  200. }
  201. ?>
  202. </select>
  203. <input type="hidden" name="exam_group_id" value="0">
  204. </div>
  205. </div>
  206. <div class="btns">
  207. <input type="hidden" name="exam_id" value="0">
  208. <input type="hidden" name="file_type" value="">
  209. <div class="hbtn up-form" id="btnSubmit">确定</div>
  210. <div class="hbtn btn-colse" id="btnClose">取消</div>
  211. </div>
  212. </div>
  213. </div>
  214. </body>
  215. </html>
  216. <script>
  217. var mySignInfo='<?php echo $task['my_sign_info']?>';
  218. var examGroupId='<?php echo $task['exam_group_id']?>';
  219. var apiUrl='<?php echo $api_url ?>';
  220. $('.startScan').click(function(){
  221. $.ajax({
  222. url:'<?php echo $this->createUrl('assistTask/getSurplus')?>',
  223. type:'POST',
  224. dataType:'json',
  225. data:{exam_group_id:examGroupId},
  226. success:function(res){
  227. if(res.status==1){
  228. evaluationClient.HanlerExcPaper(examGroupId+","+mySignInfo+","+apiUrl);
  229. }else{
  230. if(res.msg!=undefined){
  231. layer.msg(res.msg);
  232. }else{
  233. res.msg('参数异常');
  234. }
  235. window.location.reload();
  236. }
  237. }
  238. });
  239. });
  240. //关闭弹窗
  241. $(".btn-colse").on("click", function () {
  242. $('.hgc_dialog').hide();
  243. });
  244. $('.apply').click(function(){
  245. if(examGroupId!=undefined && examGroupId!=''){
  246. $('input[name=exam_group_id]').val(examGroupId);
  247. $('.hgc_dialog').show();
  248. }
  249. });
  250. $('.up-form').click(function(){
  251. var examGroupId= $('input[name=exam_group_id]').val(),
  252. userId=$('#user_id').val();
  253. $.ajax({
  254. url:'<?php echo $this->createUrl('assistTask/applyScan')?>',
  255. type:'POST',
  256. dataType:'json',
  257. data:{exam_group_id:examGroupId,user_id:userId},
  258. success:function(res){
  259. if(res.status==1){
  260. layer.msg('操作成功');
  261. window.location.reload();
  262. }else{
  263. layer.msg('操作失败');
  264. }
  265. }
  266. });
  267. });
  268. </script>