|
|
@@ -23,84 +23,71 @@
|
|
|
|
|
|
</style>
|
|
|
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-3">{:__('Bach')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-6" id="c_bach" >
|
|
|
- <input id="c-bach" data-rule="required" class="form-control" name="row[bach]" type="text">
|
|
|
- </div>
|
|
|
|
|
|
- <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Bach')}:</label>-->
|
|
|
- <!-- <div class="col-xs-12 col-sm-3" id="c_bach" >-->
|
|
|
- <!-- <input id="c-bach" data-rule="required" class="form-control" name="row[bach]" type="text">-->
|
|
|
- <!-- </div>-->
|
|
|
- <!-- <label class="control-label col-xs-12 col-sm-2">选择电子秤</label>-->
|
|
|
- <!-- <div class="col-xs-12 col-sm-3">-->
|
|
|
- <!-- <select id="dzc" class="control-label col-xs-12 col-sm-8 form-control" style="width: 100%;">-->
|
|
|
- <!-- <option value= "" selected disabled>请选择电子秤</option>-->
|
|
|
- <!-- <option value="COM1">电子秤一号</option>-->
|
|
|
- <!-- <option value="COM2">电子秤二号</option>-->
|
|
|
- <!-- <option value="COM3">电子秤三号</option>-->
|
|
|
- <!-- <option value="COM4">电子秤四号</option>-->
|
|
|
- <!-- <option value="COM5">电子秤五号</option>-->
|
|
|
- <!-- <option value="COM6">电子秤六号</option>-->
|
|
|
- <!-- <option value="COM7">电子秤七号</option>-->
|
|
|
- <!-- <option value="COM8">电子秤八号</option>-->
|
|
|
- <!-- <option value="COM9">电子秤九号</option>-->
|
|
|
- <!-- <option value="COM10">电子秤十号</option>-->
|
|
|
- <!-- <option value="COM11">电子秤十一号</option>-->
|
|
|
- <!-- </select>-->
|
|
|
- <!-- </div>-->
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">日期:</label>
|
|
|
- <div class="col-xs-12 col-sm-3">
|
|
|
- <input id="c-date" readonly value="{:date('Y-m-d')}" class="form-control" name="row[date]" type="text">
|
|
|
- </div>
|
|
|
- <label class="control-label col-xs-12 col-sm-2">开票人:</label>
|
|
|
- <div class="col-xs-12 col-sm-3">
|
|
|
- <input id="c-specifications" readonly class="form-control" name="row[specifications]" type="text">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">名称:</label>
|
|
|
- <div class="col-xs-12 col-sm-3">
|
|
|
- <input id="c-name" data-rule="required" readonly class="form-control" type="text">
|
|
|
- </div>
|
|
|
- <label class="control-label col-xs-12 col-sm-2">审核:</label>
|
|
|
- <div class="col-xs-12 col-sm-3">
|
|
|
- <input id="c-unit" class="form-control" readonly name="row[unit]" type="text">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">操作人员:</label>
|
|
|
- <div class="col-xs-12 col-sm-3">
|
|
|
- <select style="text-align: left;" id="c-operator" class="control-label col-xs-12 col-sm-8 form-control" name="row[operator]">
|
|
|
- <option></option>
|
|
|
- {foreach $cjcz as $key=>$vv}
|
|
|
- <option value="{$vv.name}">{$vv.name}</option>
|
|
|
- {/foreach}
|
|
|
- </select>
|
|
|
- <!--<input id="c-operator" data-rule="required" class="form-control" name="row[operator]" type="text">-->
|
|
|
- </div>
|
|
|
- <label class="control-label col-xs-12 col-sm-2">检验人员:</label>
|
|
|
- <div class="col-xs-12 col-sm-3">
|
|
|
- <select style="text-align: left" id="c-inspector" class="control-label col-xs-12 col-sm-8 form-control" name="row[inspector]">
|
|
|
- <option></option>
|
|
|
- {foreach $cjjy as $key=>$vvv}
|
|
|
- <option value="{$vvv.name}">{$vvv.name}</option>
|
|
|
- {/foreach}
|
|
|
- </select>
|
|
|
- <!--<input id="c-inspector" class="form-control" data-rule="required" name="row[inspector]" type="text">-->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <div class="col-xs-12 col-sm-2">
|
|
|
- 扫描物料<input class="form-control" id="wuliao" name="123" type="text">
|
|
|
+ <div style="width: 100%; display: flex; justify-content: space-between;">
|
|
|
+ <div style="width: 59%; height: auto; border: 1px solid black; margin: 0 auto; padding: 10px;">
|
|
|
+ <!-- 第一行:批次号 -->
|
|
|
+ <div style="display: flex; align-items: center; margin-bottom: 10px;">
|
|
|
+ <label style="width: 100px;font-size: 24px">批次号:</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; flex-grow: 1;">
|
|
|
+ </div>
|
|
|
+ <!-- 第二行:名称、日期 -->
|
|
|
+ <div style="display: flex; align-items: center; margin-bottom: 10px;">
|
|
|
+ <label style="width: 100px;">名称:</label>
|
|
|
+ <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;">
|
|
|
+ </div>
|
|
|
+ <!-- 第三行:开票人、审核人 -->
|
|
|
+ <div style="display: flex; align-items: center; margin-bottom: 10px;">
|
|
|
+ <label style="width: 160px;">日期:</label>
|
|
|
+ <input id="c-date" readonly value="{:date('Y-m-d')}" class="form-control" name="row[date]" type="text" style="flex-grow: 1;width: 40%;">
|
|
|
+ <label style="width: 100px; margin-left: 10px;">开票人:</label>
|
|
|
+ <input id="c-specifications" readonly class="form-control" name="row[specifications]" type="text" style="flex-grow: 1;width: 30%;">
|
|
|
+ <label style="width: 100px; margin-left: 10px;">审核人:</label>
|
|
|
+ <input id="c-unit" class="form-control" readonly name="row[unit]" type="text" style="flex-grow: 1;width: 30%;">
|
|
|
+ </div>
|
|
|
+ <!-- 第四行:操作人员、检验人员 -->
|
|
|
+ <div style="display: flex; align-items: center;">
|
|
|
+ <label style="width: 100px;">操作人员:</label>
|
|
|
+ <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]">
|
|
|
+ <option value="车间二号机">车间二号机</option>
|
|
|
+ {foreach $cjcz as $key=>$vv}
|
|
|
+ <option value="{$vv.name}">{$vv.name}</option>
|
|
|
+ {/foreach}
|
|
|
+ </select>
|
|
|
+ <label style="width: 100px; margin-left: 10px;">检验人员:</label>
|
|
|
+ <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]">
|
|
|
+ <option value="车间二号机">车间二号机</option>
|
|
|
+ {foreach $cjjy as $key=>$vvv}
|
|
|
+ <option value="{$vvv.name}">{$vvv.name}</option>
|
|
|
+ {/foreach}
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <br>
|
|
|
+ <div style="display: flex; align-items: center; margin-bottom: 10px;margin-top: 70px">
|
|
|
+ <label style="margin-right: 20px; font-size: 24px;width: 130px;">扫描物料:</label>
|
|
|
+ <input class="form-control" id="wuliao" name="123" type="text" style="font-size: 18px; height: 44px; width: 60%;">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="col-xs-12 col-sm-6" style="margin-top: 25px;font-size: 18px">
|
|
|
- <span>您本次扫描的物料是:</span><span id="input" style="color: red"></span>
|
|
|
+
|
|
|
+ <div style="width: 40%; height: auto; border: 1px solid black; margin: 0 auto; padding: 10px; text-align: left;">
|
|
|
+ <!-- 右侧内容:扫描物料、获取电子秤数据 -->
|
|
|
+ <div style="display: flex; flex-direction: column; justify-content: center; align-items: flex-start;">
|
|
|
+ <label style="width: 150px; font-size: larger; font-weight: bold; text-align: left;">当前扫描物料是:</label>
|
|
|
+ <div id="input" style="display: flex; height: 150px; justify-content: flex-start; align-items: center; margin-bottom: 10px; color: red;">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div style="display: flex; align-items: center; margin-bottom: 10px;">
|
|
|
+ <label style="width: 150px; font-size: larger; font-weight: bold; text-align: left;">应投重量:</label>
|
|
|
+ <div id="ytzl" style="display: flex; height: 80px; justify-content: flex-start; align-items: center; font-size: 60px; margin-bottom: 10px; color: red;"></div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex; align-items: center; margin-bottom: 10px;">
|
|
|
+ <label style="width: 100px; font-size: larger; font-weight: bold; text-align: left;">投入重量:</label>
|
|
|
+ <input id="dzcshuju" class="form-control" name="" placeholder="扫描二维码可保存" type="text" style="font-size: 24px; height: 44px; width: 230px;">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<style>
|
|
|
th,tr{
|
|
|
text-align: center;
|
|
|
@@ -112,12 +99,12 @@
|
|
|
<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-3">{:__('Material')}</th>
|
|
|
- <th class="col-xs-12 col-sm-1">{:__('Nweight')}</th>
|
|
|
- <th class="col-xs-12 col-sm-1">{:__('Weight')}</th>
|
|
|
- <th class="col-xs-12 col-sm-1">操作</th>
|
|
|
- <th class="col-xs-12 col-sm-1">原材料批次号</th>
|
|
|
- <th class="col-xs-12 col-sm-4">操作记录</th>
|
|
|
+ <th class="col-xs-12 col-sm-3" style="font-size: larger; font-weight: bold;">{:__('Material')}</th>
|
|
|
+ <th class="col-xs-12 col-sm-2" style="font-size: larger; font-weight: bold;">{:__('Nweight')}</th>
|
|
|
+ <th class="col-xs-12 col-sm-2" style="font-size: larger; 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-1" style="font-size: larger; font-weight: bold;">原材料批次号</th>
|
|
|
+ <th class="col-xs-12 col-sm-2" style="font-size: larger; font-weight: bold;">操作记录</th>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
@@ -125,7 +112,7 @@
|
|
|
<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>
|
|
|
+ <!-- <button type="button" class="btn btn-default btn-embossed print-link">打印预览</button>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--==============================================================================-->
|