add.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <style type="text/css">
  2. .tg {border-collapse:collapse;border-spacing:0;}
  3. .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
  4. overflow:hidden;padding:10px 5px;word-break:normal;}
  5. .tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
  6. font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
  7. .tg .tg-ub5w{font-size:36px;text-align:center;vertical-align:middle;border: none}
  8. .tg .tg-x1hj{font-size:22px;text-align:left;vertical-align:top;}
  9. .tg .tg-kghl{font-size:22px;text-align:left;vertical-align:middle;}
  10. .tg .tg-z7m5{font-size:22px;text-align:left;text-decoration:underline;vertical-align:top;border: none}
  11. .tg .tg-s5vw{font-size:22px;font-weight:bold;text-align:center;vertical-align:bottom;border: none}
  12. .tg .tg-v8dz{font-size:24px;text-align:left;vertical-align:top;border: none}
  13. .tg .tg-svyg{font-size:22px;font-weight:bold;text-align:left;text-decoration:underline;vertical-align:bottom;border: none}
  14. .tg .tg-4qqe{font-size:22px;font-weight:bold;text-align:center;vertical-align:top;border: none}
  15. .tg .tg-9d8n{font-size:22px;text-align:left;vertical-align:top;}
  16. .tg .tg-0pky{text-align:left;vertical-align:top;border: none}
  17. .layui-layer-dialog .layui-layer-content {
  18. font-size: 35px;
  19. line-height: 110px;
  20. color: red;
  21. text-align: center;
  22. }
  23. .content{
  24. padding: 0px;
  25. }
  26. </style>
  27. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  28. <!--左侧-->
  29. <div style="width: 100%; display: flex; justify-content: space-between;">
  30. <div style="width: 59%; height: 137px; margin: 0 auto; ">
  31. <!-- 第一行:批次号 -->
  32. <div style="display: flex; align-items: center; margin-bottom: 2px;">
  33. <label style="width: 63px; font-size: 20px;">批次号</label>
  34. <input id="c-bach" data-rule="required" class="form-control" name="row[bach]" type="number" style="font-size: larger; font-weight: bold; height: 44px; width: 5%; flex-grow: 1;">
  35. <input id="c-name" data-rule="required" class="form-control" readonly name="row[name]" type="text" style="font-size: larger; font-weight: bold; height: 44px; width: 40%; flex-grow: 2;">
  36. </div>
  37. <div style="display: flex; align-items: center;">
  38. <label style="width: 60px;">日期</label>
  39. <input id="c-date" readonly value="{:date('Y-m-d')}" class="form-control" name="row[date]" type="text" style="flex-grow: 1; width: 25%;">
  40. <label style="width: 90px; margin-left: 10px;">操作人员</label>
  41. <select style="text-align: left; flex-grow: 1; width: 35%; margin: 0 auto; padding: 0px;" id="c-operator" class="control-label col-xs-12 col-sm-8 form-control" name="row[operator]">
  42. <option value="{$jinayan}">{$jinayan}</option>
  43. {foreach $cjcz as $key=>$vv}
  44. <option value="{$vv.name}">{$vv.name}</option>
  45. {/foreach}
  46. </select>
  47. <label style="width: 90px; margin-left: 10px;">检验人员</label>
  48. <select style="text-align: left; flex-grow: 1; width: 35%; margin: 0 auto; padding: 0px;" id="c-inspector" class="control-label col-xs-12 col-sm-8 form-control" name="row[inspector]">
  49. <option value="{$jinayan}">{$jinayan}</option>
  50. {foreach $cjjy as $key=>$vvv}
  51. <option value="{$vvv.name}">{$vvv.name}</option>
  52. {/foreach}
  53. </select>
  54. </div>
  55. <div style="display: flex;margin-top: 10px">
  56. <label style="font-size: 20px; width: 85px;">扫描物料</label>
  57. <input class="form-control" id="wuliao" name="123" type="text" style="font-size: 18px; height: 44px; width: 33%;">
  58. <label style="width: 70px; font-size: larger; font-weight: bold; text-align: left; margin-left: 5px;">应投重量</label>
  59. <div id="ytzl" style="display: flex; height: 40px; justify-content: flex-start; align-items: center; font-size: 60px; color: red;"></div>
  60. </div>
  61. </div>
  62. <!-- 右侧 -->
  63. <div style="width: 40%; height: 137px; margin: 0 auto; padding: 0px; text-align: left;">
  64. <div style="display: flex; flex-direction: row;">
  65. <label style="width: 150px; font-size: larger; font-weight: bold; text-align: left;">当前扫描物料</label>
  66. <div id="input" style="display: flex; height: 67px; justify-content: flex-start;font-size: 60px; align-items: center; color: red;"></div>
  67. </div>
  68. <div style="display: flex; flex-direction: row; justify-content: flex-start;">
  69. <label style="width: 150px; font-size: larger; font-weight: bold; text-align: left; display: flex; align-items: center;">投入重量</label>
  70. <div id="dzcshuju" style="display: flex; height: 80px; justify-content: flex-start; align-items: center; font-size: 60px; color: red;"></div>
  71. </div>
  72. </div>
  73. </div>
  74. <style>
  75. th,tr{
  76. text-align: center;
  77. }
  78. .table_bottom tr{
  79. text-align: left;
  80. }
  81. </style>
  82. <div class="form-group">
  83. <table class="table table-striped table-bordered table-hover table-nowrap" id="table">
  84. <tr>
  85. <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">{:__('Material')}</th>
  86. <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">{:__('Nweight')}</th>
  87. <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">{:__('Weight')}</th>
  88. <!-- <th class="col-xs-12 col-sm-1" style="font-size: larger; font-weight: bold;display:none;">操作</th>-->
  89. <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">原材料批次号</th>
  90. <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">操作记录</th>
  91. </tr>
  92. </table>
  93. </div>
  94. <div class="form-group layer-footer">
  95. <label class="control-label col-xs-12 col-sm-2"></label>
  96. <div class="col-xs-12 col-sm-8">
  97. <!-- <button type="submit" class="btn btn-primary btn-embossed disabled option">{:__('OK')}</button>-->
  98. <!-- <button type="button" class="btn btn-default btn-embossed print-link">打印预览</button>-->
  99. </div>
  100. </div>
  101. <!--==============================================================================-->
  102. <div style="display: none">
  103. <div class="form-group" id="print_area" >
  104. <div id="head">
  105. <table class="tg" style="width: 800px;">
  106. <thead>
  107. <!--<div id="qrcode" style="margin:0 0 -450px 500px;width: 80px;height: 80px;">-->
  108. <!--<img src="" id="myImage" alt=""/>-->
  109. <!--</div>-->
  110. <!--<div id="qrcode" style="width: 80px;height: 80px;border: 1px pink solid">-->
  111. <img src="" id="myImage" class="qrcode" alt="" style="margin:0 0 -130px 500px;"/>
  112. <!--</div>-->
  113. <tr>
  114. <th class="tg-v8dz" colspan="6" >
  115. <!--<p id="formula_no"></p>-->
  116. <!--<hr style="border: 1px solid;margin-top: -5px">-->
  117. </th>
  118. </tr>
  119. </thead>
  120. <tbody>
  121. <tr>
  122. <td class="tg-s5vw"></td>
  123. <td class="tg-svyg"></td>
  124. <td class="tg-ub5w" colspan="3" rowspan="2">
  125. 作业票</td>
  126. <td class="tg-4qqe"></td>
  127. <td class="tg-s5vw"></td>
  128. </tr>
  129. <tr>
  130. <td class="tg-9d8n" style="border: none;width: 80px;">日期:</td>
  131. <td class="tg-z7m5" style="width:134px" id="date">{:date("Y-m-d")}</td>
  132. <td class="tg-9d8n" style="width:100px">开票人</td>
  133. <td class="tg-9d8n" style="width:100px">审核</td>
  134. </tr>
  135. <tr>
  136. <td class="tg-9d8n" style="border: none">批号:</td>
  137. <td class="tg-z7m5" style="text-decoration: underline" id="bach"></td>
  138. <td class="tg-kghl" style="border: none;text-align: center"><input style="text-align: center;width: 100%;" type="text" id="formula"></td>
  139. <td class="tg-0pky"></td>
  140. <td class="tg-0pky"></td>
  141. <td class="tg-x1hj" id="specifications"></td>
  142. <td class="tg-x1hj" id="unit"></td>
  143. </tr>
  144. </tbody>
  145. </table>
  146. </div>
  147. <div style="height: 20px;"></div>
  148. <!--打印 整体下部分-->
  149. <div id="body">
  150. <!--打印表格部分-->
  151. <table class="tg" style="width: 840px;" id="print_gy">
  152. <tr>
  153. <th style="text-align: center">原材料</th>
  154. <!--<th style="text-align: center">百分比</th>-->
  155. <th style="text-align: center">应加量(KG)</th>
  156. <th style="text-align: center;min-width: 100px;">实加量(KG)</th>
  157. <th style="text-align: center">操作记录</th>
  158. </tr>
  159. <!--<tr>
  160. <td style="width: 100px;text-align: center">总计</td>
  161. <td class="total" style="width: 100px;text-align: center"></td>
  162. <td></td>
  163. <td></td>
  164. </tr>
  165. <tr>
  166. <td colspan="5" class="remark"></td>
  167. </tr>-->
  168. </table>
  169. <div style="height: 5px;"></div>
  170. <table class="tg table_bottom" style="width: 800px;">
  171. <tr>
  172. <td style="border: none">
  173. <span>包装规格:</span>
  174. <hr style="border: 1px solid;width: 150px;margin-top: -5px;">
  175. <div style="position: absolute;margin-left: 270px;margin-top: -36px;">KG/桶</div>
  176. </td>
  177. <td style="border: none">作业票回收日期:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
  178. </tr>
  179. <tr>
  180. <td style="border: none">操作人员:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
  181. <td style="border: none">检验签字:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
  182. </tr>
  183. </table>
  184. </div>
  185. </div>
  186. </div>
  187. </form>
  188. <script type='text/javascript' src='__CDN__/assets/js/jquery2.1.1.min.js'></script>
  189. <script type="text/javascript" src="__CDN__/assets/js/jquery.qrcode.min.js"></script>
  190. <script type="text/javascript" src="__CDN__/assets/js/jQuery.print.js"></script>
  191. <script>
  192. </script>