index.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% extends "../theme.html" %}
  2. {% block content %}
  3. <link href="{{static_url('pc/css/sy_cplb.css')}}" rel="stylesheet">
  4. <div class="crumbs">
  5. <h2><i class="icons ico-dt"></i>食品溯源 <a style="margin-left:10px;" href="/origin/update" class="btn">添加</a></h2>
  6. </div>
  7. <div class="pannel">
  8. <div class="ul7">
  9. <dl>
  10. <dt>添加日期</dt>
  11. <dt>批次名称</dt>
  12. <dt>产品名称</dt>
  13. <dt>批号</dt>
  14. <dt>开始种植</dt>
  15. <dt>采收时间</dt>
  16. <dt>采收产量</dt>
  17. <dt>溯源码</dt>
  18. <dt>管理</dt>
  19. </dl>
  20. {% for v in data['list'] %}
  21. <dl>
  22. <dd><p>{{v['cdates']}}</p></dd>
  23. <dd><p>{{v['name']}}</p></dd>
  24. <dd><p>{{v['product']}}</p></dd>
  25. <dd><p>{{v['number']}}</p></dd>
  26. <dd><p>{{v['zzdates']}}</p></dd>
  27. <dd><p>{{v['csdates']}}</p></dd>
  28. <dd><p>{{v['amount']}}</p></dd>
  29. <dd><p><a style="display:none;" href="javascript:;" onclick="Farm.Alert('<img src={{v['url']}}/>')">查看</a><a href="{{v['url']}}" target="_blank">查看</a></p></dd>
  30. <dd><p><a href="/origin/update?id={{v['id']}}">修改</a><a style="display:none;" href="javascript:;" onclick="Farm.Page('打印溯源码', '/origin/printer?table_id={{v['id']}}')">打印溯源码</a><a href="/origin/update?copy_id={{v['id']}}">复制添加</a></p></dd>
  31. </dl>
  32. {% end %}
  33. </div>
  34. </div>
  35. {%set url = '/origin' %}
  36. {%include '../inc/page.html'%}
  37. {% end %}
  38. {% block script %}
  39. {% end %}