tasklist.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <extend name="$_admin_public_layout"/>
  2. <block name="style">
  3. <link rel="stylesheet" href="__PUBLIC__/libs/layui/css/layui.css" media="all">
  4. </block>
  5. <block name="script">
  6. <script src="__PUBLIC__/libs/guide/bootstrap-tour.js"></script>
  7. <script src="__PUBLIC__/libs/guide/guide.js?_t=2016121401"></script>
  8. </block>
  9. <block name="main">
  10. <fieldset name="meta_title" class="layui-elem-field layui-field-title" style="margin-top: 20px;margin-bottom: 0;">
  11. <legend style="margin-bottom: 0;">{$meta_title}</legend>
  12. </fieldset>
  13. <div style="margin: 20px">
  14. <button class="layui-btn layui-btn-normal" id="return_task_button"><a style="text-decoration: none;" href="{:U('ApplyBatch/applylist')}">返回</a>
  15. </button>
  16. </div>
  17. <div class="builder-table">
  18. <!-- 列表 -->
  19. <table class="layui-table">
  20. <colgroup>
  21. <col width="150">
  22. <col width="200">
  23. <col>
  24. </colgroup>
  25. <thead>
  26. <tr>
  27. <th>序号</th>
  28. <th>校验类型</th>
  29. <!--<th id="task_list_name">订单编号</th>-->
  30. <th>卷烟厂名称</th>
  31. <th>产品名称</th>
  32. <th>盒型</th>
  33. <th>数量(万张)</th>
  34. <th>印刷厂</th>
  35. <th>下达日期</th>
  36. <th>状态</th>
  37. <if condition="getUserGroup(session('user_auth.uid')) neq 3">
  38. <th>下载</th>
  39. </if>
  40. <th id="caozuo">操作</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <volist name="task_list" id="v">
  45. <tr>
  46. <td>{$v.task_id}</td>
  47. <td>
  48. <if condition="$v.is_verif eq 0 ">没有验证码
  49. <elseif condition="$v.is_verif eq 1 "/>
  50. 有验证码
  51. </if>
  52. </td>
  53. <td>{$v.factory_name}</td>
  54. <td>{$v.product_name}</td>
  55. <td>{$v.box_type_name}</td>
  56. <td>{$v.quality}</td>
  57. <td>{$v.printer_name}</td>
  58. <td>{$v.add_time|date="Y-m-d H:i:s",###}</td>
  59. <td>
  60. <switch name="v.status">
  61. <case value="0">码包生成中</case>
  62. <case value="1">待印刷厂下载</case>
  63. <case value="2">印刷厂校验中</case>
  64. <case value="3">码包校验完成</case>
  65. </switch>
  66. </td>
  67. <if condition="getUserGroup(session('user_auth.uid')) neq 3">
  68. <td>
  69. <if condition="$v.quality eq $v.checked_num and $v.wrong_num eq 0">
  70. <button class="layui-btn layui-btn-normal" id="download_button">
  71. <a style="text-decoration: none;color: white" href="{:U('ApplyBatch/downloadzip',array('bach_name'=>$v['task_name'].'_'.$v['task_id'],'printer_id'=>$v['printer_id']))}">码包下载</a>
  72. </button>
  73. </if>
  74. </td>
  75. </if>
  76. <td>
  77. <a href="{:U('ApplyBatch/taskdetail',array('task_id'=>$v['task_id']))}">详情</a>
  78. </td>
  79. </tr>
  80. </volist>
  81. </tbody>
  82. </table>
  83. <notempty name="task_page">
  84. <ul class="pagination">{$task_page}</ul>
  85. </notempty>
  86. </div>
  87. <script src="__PUBLIC__/libs/layui/layui.js"></script>
  88. <script src="__PUBLIC__/libs/jquery/2.x/jquery.js"></script>
  89. <script>
  90. layui.use('form', function () {
  91. var form = layui.form;
  92. });
  93. </script>
  94. </block>