add.html 12 KB

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