info.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-content">
  7. <table class="table table-striped">
  8. <tr>
  9. <th style="width: 100px">编号</th><td>{$info['sn']}</td>
  10. </tr>
  11. <tr>
  12. <th>操作人</th><td>{$info['userName']}</td>
  13. </tr>
  14. <tr>
  15. <th>{if $info['type']==1}入库{else}出库{/if}人</th><td>{$info['name']}</td>
  16. </tr>
  17. <tr>
  18. <th>联系电话</th><td>{$info['phone']}</td>
  19. </tr>
  20. <tr>
  21. <th>时间</th><td>{$info['create_time']}</td>
  22. </tr>
  23. </table>
  24. {if !empty($info['goods'])}
  25. <table class="table table-bordered">
  26. <tr>
  27. <th>名称</th>
  28. <th>规格</th>
  29. <th>品牌</th>
  30. <th>单价</th>
  31. <th>{if $info['type']==1}入库{else}出库{/if}数量</th>
  32. </tr>
  33. {foreach $info['goods'] as $k=>$v}
  34. <tr>
  35. <td>{$v['title']}</td>
  36. <td>{$v['spec']}</td>
  37. <td>{$v['brand']}</td>
  38. <td>{$v['price']}/{$v['unit']}</td>
  39. <td>{$v['nums']}</td>
  40. </tr>
  41. {/foreach}
  42. </table>
  43. {/if}
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. {/block}
  49. {block name="script"}
  50. {/block}