add.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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; 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; 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: 100px; 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 id="dzcshuju" style="display: flex; height: 80px; justify-content: flex-start; align-items: center; font-size: 60px; margin-bottom: 10px; color: red;"></div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <style>
  88. th,tr{
  89. text-align: center;
  90. }
  91. .table_bottom tr{
  92. text-align: left;
  93. }
  94. </style>
  95. <div class="form-group">
  96. <table class="table table-striped table-bordered table-hover table-nowrap" id="table">
  97. <tr>
  98. <th class="col-xs-12 col-sm-3" style="font-size: larger; font-weight: bold;">{:__('Material')}</th>
  99. <th class="col-xs-12 col-sm-2" style="font-size: larger; font-weight: bold;">{:__('Nweight')}</th>
  100. <th class="col-xs-12 col-sm-2" style="font-size: larger; font-weight: bold;">{:__('Weight')}</th>
  101. <!-- <th class="col-xs-12 col-sm-1" style="font-size: larger; font-weight: bold;display:none;">操作</th>-->
  102. <th class="col-xs-12 col-sm-1" style="font-size: larger; font-weight: bold;">原材料批次号</th>
  103. <th class="col-xs-12 col-sm-2" style="font-size: larger; font-weight: bold;">操作记录</th>
  104. </tr>
  105. </table>
  106. </div>
  107. <div class="form-group layer-footer">
  108. <label class="control-label col-xs-12 col-sm-2"></label>
  109. <div class="col-xs-12 col-sm-8">
  110. <!-- <button type="submit" class="btn btn-primary btn-embossed disabled option">{:__('OK')}</button>-->
  111. <!-- <button type="button" class="btn btn-default btn-embossed print-link">打印预览</button>-->
  112. </div>
  113. </div>
  114. <!--==============================================================================-->
  115. <div style="display: none">
  116. <div class="form-group" id="print_area" >
  117. <div id="head">
  118. <table class="tg" style="width: 800px;">
  119. <thead>
  120. <!--<div id="qrcode" style="margin:0 0 -450px 500px;width: 80px;height: 80px;">-->
  121. <!--<img src="" id="myImage" alt=""/>-->
  122. <!--</div>-->
  123. <!--<div id="qrcode" style="width: 80px;height: 80px;border: 1px pink solid">-->
  124. <img src="" id="myImage" class="qrcode" alt="" style="margin:0 0 -130px 500px;"/>
  125. <!--</div>-->
  126. <tr>
  127. <th class="tg-v8dz" colspan="6" >
  128. <!--<p id="formula_no"></p>-->
  129. <!--<hr style="border: 1px solid;margin-top: -5px">-->
  130. </th>
  131. </tr>
  132. </thead>
  133. <tbody>
  134. <tr>
  135. <td class="tg-s5vw"></td>
  136. <td class="tg-svyg"></td>
  137. <td class="tg-ub5w" colspan="3" rowspan="2">
  138. 作业票</td>
  139. <td class="tg-4qqe"></td>
  140. <td class="tg-s5vw"></td>
  141. </tr>
  142. <tr>
  143. <td class="tg-9d8n" style="border: none;width: 80px;">日期:</td>
  144. <td class="tg-z7m5" style="width:134px" id="date">{:date("Y-m-d")}</td>
  145. <td class="tg-9d8n" style="width:100px">开票人</td>
  146. <td class="tg-9d8n" style="width:100px">审核</td>
  147. </tr>
  148. <tr>
  149. <td class="tg-9d8n" style="border: none">批号:</td>
  150. <td class="tg-z7m5" style="text-decoration: underline" id="bach"></td>
  151. <td class="tg-kghl" style="border: none;text-align: center"><input style="text-align: center;width: 100%;" type="text" id="formula"></td>
  152. <td class="tg-0pky"></td>
  153. <td class="tg-0pky"></td>
  154. <td class="tg-x1hj" id="specifications"></td>
  155. <td class="tg-x1hj" id="unit"></td>
  156. </tr>
  157. </tbody>
  158. </table>
  159. </div>
  160. <div style="height: 20px;"></div>
  161. <!--打印 整体下部分-->
  162. <div id="body">
  163. <!--打印表格部分-->
  164. <table class="tg" style="width: 840px;" id="print_gy">
  165. <tr>
  166. <th style="text-align: center">原材料</th>
  167. <!--<th style="text-align: center">百分比</th>-->
  168. <th style="text-align: center">应加量(KG)</th>
  169. <th style="text-align: center;min-width: 100px;">实加量(KG)</th>
  170. <th style="text-align: center">操作记录</th>
  171. </tr>
  172. <!--<tr>
  173. <td style="width: 100px;text-align: center">总计</td>
  174. <td class="total" style="width: 100px;text-align: center"></td>
  175. <td></td>
  176. <td></td>
  177. </tr>
  178. <tr>
  179. <td colspan="5" class="remark"></td>
  180. </tr>-->
  181. </table>
  182. <div style="height: 5px;"></div>
  183. <table class="tg table_bottom" style="width: 800px;">
  184. <tr>
  185. <td style="border: none">
  186. <span>包装规格:</span>
  187. <hr style="border: 1px solid;width: 150px;margin-top: -5px;">
  188. <div style="position: absolute;margin-left: 270px;margin-top: -36px;">KG/桶</div>
  189. </td>
  190. <td style="border: none">作业票回收日期:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
  191. </tr>
  192. <tr>
  193. <td style="border: none">操作人员:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
  194. <td style="border: none">检验签字:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
  195. </tr>
  196. </table>
  197. </div>
  198. </div>
  199. </div>
  200. </form>
  201. <script type='text/javascript' src='__CDN__/assets/js/jquery2.1.1.min.js'></script>
  202. <script type="text/javascript" src="__CDN__/assets/js/jquery.qrcode.min.js"></script>
  203. <script type="text/javascript" src="__CDN__/assets/js/jQuery.print.js"></script>
  204. <script>
  205. </script>