add.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {extend name="public:base" /}
  2. {block name="style"}
  3. <style type="text/css">
  4. .goods-type { clear: both; margin-top: 10px;}
  5. .goods-type .item{display: inline-block;border: 1px solid #d6d6d6;margin-right: 5px;}
  6. .goods-type .item span{ padding: 0px 10px; border-right: 1px solid #d6d6d6;}
  7. .goods-type .layui-icon-close{cursor: pointer;}
  8. </style>
  9. {/block}
  10. {block name="body"}
  11. <div class="layui-fluid">
  12. <div class="layui-card">
  13. <div class="layui-card-body">
  14. <form class="layui-form">
  15. <div class="layui-form-item">
  16. <label class="layui-form-label">编码</label>
  17. <div class="layui-input-inline">
  18. <input type="text" name="no" autocomplete="off" class="layui-input">
  19. </div>
  20. </div>
  21. <div class="layui-form-item">
  22. <label class="layui-form-label">名称</label>
  23. <div class="layui-input-inline">
  24. <input type="text" name="cname" autocomplete="off" class="layui-input">
  25. </div>
  26. </div>
  27. <div class="layui-form-item">
  28. <label class="layui-form-label">类型</label>
  29. <div class="layui-input-inline">
  30. <select name="type_id" lay-verify="" lay-search>
  31. {volist name="types" id="type"}
  32. <option value="{$type.id}">{$type.cname}</option>
  33. {/volist}
  34. </select>
  35. </div>
  36. </div>
  37. <div class="layui-form-item">
  38. <label class="layui-form-label">供应商</label>
  39. <div class="layui-input-inline">
  40. <select name="supplier_id" lay-verify="" lay-search>
  41. {volist name="suppliers" id="supplier"}
  42. <option value="{$supplier.id}">{$supplier.cname}</option>
  43. {/volist}
  44. </select>
  45. </div>
  46. </div>
  47. <div class="layui-form-item">
  48. <label class="layui-form-label">供应价</label>
  49. <div class="layui-input-inline">
  50. <input type="number" name="supply_price" autocomplete="off" class="layui-input">
  51. </div>
  52. </div>
  53. <div class="layui-form-item">
  54. <label class="layui-form-label">销售价</label>
  55. <div class="layui-input-inline">
  56. <input type="number" name="sale_price" autocomplete="off" class="layui-input">
  57. </div>
  58. </div>
  59. <div class="layui-form-item">
  60. <label class="layui-form-label">销售时间</label>
  61. <div class="layui-input-inline" style="width:300px;">
  62. <input type="text" name="sale_time" autocomplete="off" class="layui-input">
  63. </div>
  64. </div>
  65. <div class="layui-form-item layui-layout-admin">
  66. <div class="layui-input-block">
  67. <div class="layui-footer" style="left: 0;">
  68. <button class="layui-btn" lay-submit lay-filter="LAY-coupon-add">立即提交</button>
  69. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  70. </div>
  71. </div>
  72. </div>
  73. </form>
  74. </div>
  75. </div>
  76. </div>
  77. {/block}
  78. {block name="script"}
  79. <script type="text/javascript">
  80. layui.config({
  81. base: '__JS__/'
  82. ,version:true
  83. }).extend({
  84. index: 'lib/index'
  85. }).use(['index', 'coupon']);
  86. </script>
  87. {/block}