stock.html 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
  2. <div class="layui-card-body padding-left-40">
  3. <div class="layui-form-item relative block">
  4. <span class="color-green font-w7">商品名称</span>
  5. <span class="color-desc margin-left-5">Goods Name</span>
  6. <div class="layui-input layui-bg-gray">{$vo.name|default=''}</div>
  7. </div>
  8. <div class="layui-form-item">
  9. <div class="relative block">
  10. <span class="color-green font-w7">库存数据</span>
  11. <span class="color-desc margin-left-5">Stock Data</span>
  12. <table class="layui-table border-0 margin-0" lay-skin="line">
  13. <colgroup>
  14. <col style="width:auto">
  15. <col style="width:80px">
  16. <col style="width:80px">
  17. <col style="width:80px">
  18. <col style="width:80px">
  19. <col style="width:80px">
  20. <col style="width:99px">
  21. <col style="width:18px">
  22. </colgroup>
  23. <thead>
  24. <tr class="layui-bg-cyan notselect">
  25. <th class="text-left nowrap">商品规格</th>
  26. <th class="text-center nowrap">市场价格</th>
  27. <th class="text-center nowrap">销售价格</th>
  28. <th class="text-center nowrap">库存统计</th>
  29. <th class="text-center nowrap">总销统计</th>
  30. <th class="text-center nowrap">库存剩余</th>
  31. <th class="text-center nowrap">入库数量</th>
  32. <th class="padding-0 nowrap"></th>
  33. </tr>
  34. </thead>
  35. </table>
  36. <div style="max-height:500px;overflow-y:scroll">
  37. <table class="layui-table margin-0" lay-skin="line">
  38. <colgroup>
  39. <col style="width:auto">
  40. <col style="width:80px">
  41. <col style="width:80px">
  42. <col style="width:80px">
  43. <col style="width:80px">
  44. <col style="width:80px">
  45. <col style="width:99px">
  46. </colgroup>
  47. <tbody>
  48. {foreach $vo.items as $goods}
  49. <tr>
  50. <td class="layui-bg-gray layui-elip">{$goods.goods_spec|show_goods_spec}</td>
  51. <td class="layui-bg-gray text-center">¥{$goods.price_market+0}</td>
  52. <td class="layui-bg-gray text-center">¥{$goods.price_selling+0}</td>
  53. <td class="layui-bg-gray text-center">{$goods.stock_total|default=0}</td>
  54. <td class="layui-bg-gray text-center">{$goods.stock_sales|default=0}</td>
  55. <td class="layui-bg-gray text-center">{$goods.stock_total-$goods.stock_sales}</td>
  56. <td class="padding-0 nowrap">
  57. <input type="hidden" name="goods_code[]" value="{$goods.goods_code|default=''}">
  58. <input type="hidden" name="goods_spec[]" value="{$goods.goods_spec|default=''}">
  59. <label>
  60. <input class="layui-input text-right border-0 padding-right-40" maxlength="20" data-blur-number="0" name="goods_stock[]" value="0">
  61. <span class="input-right-icon layui-bg-gray">件</span>
  62. </label>
  63. </td>
  64. </tr>
  65. {/foreach}
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="hr-line-dashed"></div>
  73. <div class="layui-form-item text-center">
  74. <button class="layui-btn" type='submit'>确定入库</button>
  75. <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消入库吗?" data-close>取消入库</button>
  76. </div>
  77. </form>