| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <style type="text/css">
- .tg {border-collapse:collapse;border-spacing:0;}
- .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
- overflow:hidden;padding:10px 5px;word-break:normal;}
- .tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
- font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
- .tg .tg-ub5w{font-size:36px;text-align:center;vertical-align:middle;border: none}
- .tg .tg-x1hj{font-size:22px;text-align:left;vertical-align:top;}
- .tg .tg-kghl{font-size:22px;text-align:left;vertical-align:middle;}
- .tg .tg-z7m5{font-size:22px;text-align:left;text-decoration:underline;vertical-align:top;border: none}
- .tg .tg-s5vw{font-size:22px;font-weight:bold;text-align:center;vertical-align:bottom;border: none}
- .tg .tg-v8dz{font-size:24px;text-align:left;vertical-align:top;border: none}
- .tg .tg-svyg{font-size:22px;font-weight:bold;text-align:left;text-decoration:underline;vertical-align:bottom;border: none}
- .tg .tg-4qqe{font-size:22px;font-weight:bold;text-align:center;vertical-align:top;border: none}
- .tg .tg-9d8n{font-size:22px;text-align:left;vertical-align:top;}
- .tg .tg-0pky{text-align:left;vertical-align:top;border: none}
- .layui-layer-dialog .layui-layer-content {
- font-size: 35px;
- line-height: 110px;
- color: red;
- text-align: center;
- }
- .content{
- padding: 0px;
- }
- </style>
- <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <!--左侧-->
- <div style="width: 100%; display: flex; justify-content: space-between;">
- <div style="width: 59%; height: 137px; margin: 0 auto; ">
- <!-- 第一行:批次号 -->
- <div style="display: flex; align-items: center; margin-bottom: 2px;">
- <label style="width: 63px; font-size: 20px;">批次号</label>
- <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;">
- <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;">
- </div>
- <div style="display: flex; align-items: center;">
- <label style="width: 60px;">日期</label>
- <input id="c-date" readonly value="{:date('Y-m-d')}" class="form-control" name="row[date]" type="text" style="flex-grow: 1; width: 25%;">
- <label style="width: 90px; margin-left: 10px;">操作人员</label>
- <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]">
- <option value="{$jinayan}">{$jinayan}</option>
- {foreach $cjcz as $key=>$vv}
- <option value="{$vv.name}">{$vv.name}</option>
- {/foreach}
- </select>
- <label style="width: 90px; margin-left: 10px;">检验人员</label>
- <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]">
- <option value="{$jinayan}">{$jinayan}</option>
- {foreach $cjjy as $key=>$vvv}
- <option value="{$vvv.name}">{$vvv.name}</option>
- {/foreach}
- </select>
- </div>
- <div style="display: flex;margin-top: 10px">
- <label style="font-size: 20px; width: 85px;">扫描物料</label>
- <input class="form-control" id="wuliao" name="123" type="text" style="font-size: 18px; height: 44px; width: 33%;">
- <label style="width: 70px; font-size: larger; font-weight: bold; text-align: left; margin-left: 5px;">应投重量</label>
- <div id="ytzl" style="display: flex; height: 40px; justify-content: flex-start; align-items: center; font-size: 60px; color: red;"></div>
- </div>
- </div>
- <!-- 右侧 -->
- <div style="width: 40%; height: 137px; margin: 0 auto; padding: 0px; text-align: left;">
- <div style="display: flex; flex-direction: row;">
- <label style="width: 150px; font-size: larger; font-weight: bold; text-align: left;">当前扫描物料</label>
- <div id="input" style="display: flex; height: 67px; justify-content: flex-start;font-size: 60px; align-items: center; color: red;"></div>
- </div>
- <div style="display: flex; flex-direction: row; justify-content: flex-start;">
- <label style="width: 150px; font-size: larger; font-weight: bold; text-align: left; display: flex; align-items: center;">投入重量</label>
- <div id="dzcshuju" style="display: flex; height: 80px; justify-content: flex-start; align-items: center; font-size: 60px; color: red;"></div>
- </div>
- </div>
- </div>
- <style>
- th,tr{
- text-align: center;
- }
- .table_bottom tr{
- text-align: left;
- }
- </style>
- <div class="form-group">
- <table class="table table-striped table-bordered table-hover table-nowrap" id="table">
- <tr>
- <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">{:__('Material')}</th>
- <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">{:__('Nweight')}</th>
- <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">{:__('Weight')}</th>
- <!-- <th class="col-xs-12 col-sm-1" style="font-size: larger; font-weight: bold;display:none;">操作</th>-->
- <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">原材料批次号</th>
- <th class="col-xs-12 col-sm-2" style="font-size: larger;margin: 0px;padding: 0px; font-weight: bold;">操作记录</th>
- </tr>
- </table>
- </div>
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <!-- <button type="submit" class="btn btn-primary btn-embossed disabled option">{:__('OK')}</button>-->
- <!-- <button type="button" class="btn btn-default btn-embossed print-link">打印预览</button>-->
- </div>
- </div>
- <!--==============================================================================-->
- <div style="display: none">
- <div class="form-group" id="print_area" >
- <div id="head">
- <table class="tg" style="width: 800px;">
- <thead>
- <!--<div id="qrcode" style="margin:0 0 -450px 500px;width: 80px;height: 80px;">-->
- <!--<img src="" id="myImage" alt=""/>-->
- <!--</div>-->
- <!--<div id="qrcode" style="width: 80px;height: 80px;border: 1px pink solid">-->
- <img src="" id="myImage" class="qrcode" alt="" style="margin:0 0 -130px 500px;"/>
- <!--</div>-->
- <tr>
- <th class="tg-v8dz" colspan="6" >
- <!--<p id="formula_no"></p>-->
- <!--<hr style="border: 1px solid;margin-top: -5px">-->
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td class="tg-s5vw"></td>
- <td class="tg-svyg"></td>
- <td class="tg-ub5w" colspan="3" rowspan="2">
- 作业票</td>
- <td class="tg-4qqe"></td>
- <td class="tg-s5vw"></td>
- </tr>
- <tr>
- <td class="tg-9d8n" style="border: none;width: 80px;">日期:</td>
- <td class="tg-z7m5" style="width:134px" id="date">{:date("Y-m-d")}</td>
- <td class="tg-9d8n" style="width:100px">开票人</td>
- <td class="tg-9d8n" style="width:100px">审核</td>
- </tr>
- <tr>
- <td class="tg-9d8n" style="border: none">批号:</td>
- <td class="tg-z7m5" style="text-decoration: underline" id="bach"></td>
- <td class="tg-kghl" style="border: none;text-align: center"><input style="text-align: center;width: 100%;" type="text" id="formula"></td>
- <td class="tg-0pky"></td>
- <td class="tg-0pky"></td>
- <td class="tg-x1hj" id="specifications"></td>
- <td class="tg-x1hj" id="unit"></td>
- </tr>
- </tbody>
- </table>
- </div>
- <div style="height: 20px;"></div>
- <!--打印 整体下部分-->
- <div id="body">
- <!--打印表格部分-->
- <table class="tg" style="width: 840px;" id="print_gy">
- <tr>
- <th style="text-align: center">原材料</th>
- <!--<th style="text-align: center">百分比</th>-->
- <th style="text-align: center">应加量(KG)</th>
- <th style="text-align: center;min-width: 100px;">实加量(KG)</th>
- <th style="text-align: center">操作记录</th>
- </tr>
- <!--<tr>
- <td style="width: 100px;text-align: center">总计</td>
- <td class="total" style="width: 100px;text-align: center"></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td colspan="5" class="remark"></td>
- </tr>-->
- </table>
- <div style="height: 5px;"></div>
- <table class="tg table_bottom" style="width: 800px;">
- <tr>
- <td style="border: none">
- <span>包装规格:</span>
- <hr style="border: 1px solid;width: 150px;margin-top: -5px;">
- <div style="position: absolute;margin-left: 270px;margin-top: -36px;">KG/桶</div>
- </td>
- <td style="border: none">作业票回收日期:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
- </tr>
- <tr>
- <td style="border: none">操作人员:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
- <td style="border: none">检验签字:<hr style="border: 1px solid;width: 150px;margin-top: -5px;"></td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </form>
- <script type='text/javascript' src='__CDN__/assets/js/jquery2.1.1.min.js'></script>
- <script type="text/javascript" src="__CDN__/assets/js/jquery.qrcode.min.js"></script>
- <script type="text/javascript" src="__CDN__/assets/js/jQuery.print.js"></script>
- <script>
- </script>
|