<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml" style="background-color:white;">
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<title>工序出站汇报单</title>
|
<meta name="renderer" content="webkit">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
|
<style>
|
.layui-form-label {
|
font-size: 14px;
|
width: 85px;
|
text-align: inherit;
|
}
|
</style>
|
</head>
|
<body>
|
<div class="layui-fluid">
|
<div class="layui-card">
|
<!--<div class="layui-card-header"></div>-->
|
<div class="layui-card-body" style="padding: 15px;">
|
<form class="layui-form" action="" lay-filter="component-form-group">
|
<div class="layui-form-item" style="margin-bottom: 20px;">
|
<button type="button" lay-submit="" lay-filter="HAddBT" class="layui-btn layui-btn-radius">新增</button>
|
<!--<button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">清空</button>-->
|
<!--<button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">品质判断</button>-->
|
<button type="button" lay-submit="" lay-filter="Refresh" class="layui-btn layui-btn-radius">保存</button>
|
<button type="button" lay-submit="" lay-filter="Close" class="layui-btn layui-btn-radius layui-btn-danger">退出</button>
|
</div>
|
<div class="layui-form-item">
|
<div class="layui-row" style="padding:10px 0">
|
<div class="layui-col-xs3 layui-inline">
|
<fieldset class="layui-elem-field layui-field-title" style="text-align:center;">
|
<legend>工序出站汇报单</legend>
|
</fieldset>
|
</div>
|
<div class="layui-col-xs1 layui-inline">
|
<img src="222.jpg" style="width:70%;height:50%;" />
|
</div>
|
<div class="layui-inline">
|
<div class="">
|
<label class="layui-inline" style="width:60px;">条形码</label>
|
<div class="layui-inline">
|
<input type="text" style="border-radius: 50px;width:254%" name="条形码" id="HFbarcode" lay-verify="HFbarcode" autocomplete="off" placeholder="请输入条形码" class="layui-input">
|
</div>
|
</div>
|
<div class="">
|
<label class="layui-inline" style="width:60px;">流水号</label>
|
<div class="layui-inline">
|
<input type="text" style="border-radius: 50px;" name="流水号" id="Serial_number" lay-verify="Serial_number" autocomplete="off" placeholder="请输入流水号" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-inline" style="width:60px;">合格数量</label>
|
<div class="layui-inline">
|
<input type="text" style="border-radius: 50px;" name="合格数量" id="QualifiedQuantity" lay-verify="sQty" autocomplete="off" placeholder="请输入流水号" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-inline" style="width:60px;">报废数量</label>
|
<div class="layui-inline">
|
<input type="text" style="border-radius: 50px;" name="报废数量" id="ScrapQuantity" lay-verify="HBarCode" autocomplete="off" placeholder="请输入进站数量" class="layui-input">
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<!--出站信息&其他信息-->
|
<div class="layui-form-item">
|
<div class="layui-col-md8 layui-card-body layui-inline">
|
<div class="layui-tab">
|
<ul class="layui-tab-title" lay-filter="tab-all">
|
<li data-status="" class="layui-this">出站信息</li>
|
<li data-status="2">其他信息</li>
|
</ul>
|
<div class="layui-tab-content">
|
<div class="layui-tab-item layui-show" style="height:250px;">
|
<table>
|
<tbody>
|
<tr>
|
<th style="width:80px;padding:10px">流转卡号</th>
|
<td>
|
<input type="text" name="流转卡号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="流转卡号号" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:90px;padding:10px">汇报时间</th>
|
<td>
|
<input type="text" class="layui-input" id="HDateNow" style="background-color:#efefef4d;width:120px" readonly>
|
</td>
|
<th style="width:80px;padding:10px">生产订单号</th>
|
<td>
|
<input type="text" name="生产订单号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站时间" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">产品代码</th>
|
<td>
|
<input type="text" name="产品代码" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品代码" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">产品名称</th>
|
<td>
|
<input type="text" name="产品名称" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品名称" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">规格型号</th>
|
<td>
|
<input type="text" name="规格型号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="规格型号" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">计量单位</th>
|
<td>
|
<input type="text" name="计量单位" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="计量单位" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">产品类型</th>
|
<td>
|
<input type="text" name="产品类型" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品类型" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">汇报类型</th>
|
<td>
|
<input type="text" name="汇报类型" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="汇报类型" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">流转卡数量</th>
|
<td>
|
<input type="text" name="流转卡数量" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="流转卡数量" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">生产订单数量</th>
|
<td>
|
<input type="text" name="生产订单数量" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="生产订单数量" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">单据号</th>
|
<td>
|
<input type="text" name="单据号" id="HBillNo2" lay-verify="HBillNo2" autocomplete="off" placeholder="单据号" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="单据号ID" id="HInterID" lay-verify="HInterID">
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">订单跟踪号</th>
|
<td>
|
<input type="text" name="订单跟踪号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="订单跟踪号" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">操作员2</th>
|
<td>
|
<input type="text" name="操作员2" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员2" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">操作员3</th>
|
<td>
|
<input type="text" name="操作员3" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员3" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">操作员4</th>
|
<td>
|
<input type="text" name="操作员4" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员4" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">操作员5</th>
|
<td>
|
<input type="text" name="操作员5" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员5" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</div>
|
<div class="layui-tab-item" style="height:250px;">
|
<table>
|
<tbody>
|
<tr>
|
<th style="width:80px;padding:10px">制单人</th>
|
<td>
|
<input type="text" name="制单人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="制单人" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">制单日期</th>
|
<td>
|
<input type="text" name="制单日期" class="layui-input" id="HDateNow" placeholder="制单日期" style="background-color:#efefef4d;" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">修改人</th>
|
<td>
|
<input type="text" name="修改人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="修改人" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">修改日期</th>
|
<td>
|
<input type="text" name="修改日期" class="layui-input" id="HDateNow" placeholder="修改日期" style="background-color:#efefef4d;" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">审核人</th>
|
<td>
|
<input type="text" name="审核人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="审核人" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">审核日期</th>
|
<td>
|
<input type="text" name="审核日期" class="layui-input" id="HDateNow" placeholder="审核日期" style="background-color:#efefef4d;" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px"></th>
|
<td></td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">进站PNL数</th>
|
<td>
|
<input type="text" name="进站PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">进站PSC数</th>
|
<td>
|
<input type="text" name="进站PSC数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站PSC数" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">报废PNL数</th>
|
<td>
|
<input type="text" name="报废PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="报废PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">机台</th>
|
<td>
|
<input type="text" name="机台" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="机台" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">折弯刀数</th>
|
<td>
|
<input type="text" name="折弯刀数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="折弯刀数" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">品质确认人</th>
|
<td>
|
<input type="text" name="品质确认人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="品质确认人" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">NCT冲次数</th>
|
<td>
|
<input type="text" name="NCT冲次数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="NCT冲次数" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">NCT单次</th>
|
<td>
|
<input type="text" name="NCT单次" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="NCT单次" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:80px;padding:10px">移交PNL数</th>
|
<td>
|
<input type="text" name="移交PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="移交PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
<th style="width:80px;padding:10px">系数</th>
|
<td>
|
<input type="text" name="系数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="系数" class="layui-input" style="background-color:#efefef4d" readonly>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<!--本站信息-->
|
<div class="layui-inline" style="padding-left:5px;border:1px solid #e6e6e6;width:28%">
|
<div class="layui-row">
|
<div class="layui-col-xs4">
|
<label class="layui-form-label">本站信息</label>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">当前工序</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="当前工序" id="HWorkShopName" lay-verify="HWorkShopName" autocomplete="off" placeholder="选择当前工序" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="当前工序代码" id="HWorkShopID" lay-verify="HWorkShopID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HWorkShop-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">工作中心</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="工作中心" id="HProcName" lay-verify="HProcName" autocomplete="off" placeholder="选择工作中心" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="工作中心代码" id="HProcID" lay-verify="HProcID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HWorkingProcedure-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">生产车间</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="生产车间" id="HScOrgName" lay-verify="HScOrgName" autocomplete="off" placeholder="选择生产车间" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="生产车间代码" id="HScOrgID" lay-verify="HScOrgID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOrganization-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">生产组织</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="生产组织" id="HOrganization" lay-verify="HOrganization" autocomplete="off" placeholder="选择生产组织" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="生产组织代码" id="HOrganizationID" lay-verify="HOrganizationID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOrganization-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">操作员</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="操作员" id="Operator" lay-verify="Operator" autocomplete="off" placeholder="选择操作员" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="操作员代码" id="OperatorID" lay-verify="OperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="Operator-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">生产班组</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="生产班组" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择生产班组" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="生产班组代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">生产资源</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="生产资源" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择生产资源" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="生产资源代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">核算工序</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="核算工序" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择核算工序" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="核算工序代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">检验员</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="检验员" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择检验员" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="检验员代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">工时</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择工时" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">设备清单</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择设备清单" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-col-xs3">
|
<label class="layui-form-label" style="width:60px;padding-left:0px;">模穴号</label>
|
</div>
|
<div class="layui-col-xs6">
|
<input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择模穴号" class="layui-input" style="background-color:#efefef4d" readonly>
|
<input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
|
</div>
|
<div class="">
|
<button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
<!--待出站工单&今日出站-->
|
<div class="layui-card">
|
<div class="layui-card-body">
|
<div class="layui-tab">
|
<ul class="layui-tab-title" lay-filter="tab-all">
|
<li data-status="" class="layui-this">待出站工单</li>
|
<li data-status="2">今日出站</li>
|
</ul>
|
<div class="layui-tab-content">
|
<div class="layui-tab-item layui-show">
|
<div class="layui-row">
|
<div class="layui-col-xs12">
|
<table class="layui-hide" id="djs-table" lay-filter="djs-table"></table>
|
</div>
|
</div>
|
</div>
|
<div class="layui-tab-item">
|
<div class="layui-row">
|
<div class="layui-col-xs12">
|
<table class="layui-hide" id="jr-table" lay-filter="jr-table"></table>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
|
|
<script src="../../layuiadmin/layui/layui.js"></script>
|
<script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
|
<script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
|
<script src="../../layuiadmin/Scripts/webConfig.js"></script>
|
<script type="text/html" id="wl-BT">
|
<a class="layui-btn layui-btn-xs HEdit" lay-event="DeleteOne">删除</a>
|
</script>
|
<script>
|
|
function getUrlVars() {
|
var vars = [], hash;
|
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
for (var i = 0; i < hashes.length; i++) {
|
hash = hashes[i].split('=');
|
vars.push(hash[0]);
|
vars[hash[0]] = hash[1];
|
}
|
return vars;
|
}
|
var params = getUrlVars();
|
var BillStatusjson = params[params[0]];
|
var InterID = params[params[1]];
|
|
layui.config({
|
base: '../../layuiadmin/' //静态资源所在路径
|
}).extend({
|
index: 'lib/index' //主入口模块
|
}).use(['index', 'form', 'laydate', 'table', 'element'], function () {
|
var $ = layui.$
|
, admin = layui.admin
|
, element = layui.element
|
, layer = layui.layer
|
, laydate = layui.laydate
|
, table = layui.table
|
, form = layui.form;
|
|
//获取当前时间处理
|
var data = new Date();
|
var year = data.getFullYear(); //获取年
|
var month = data.getMonth() + 1; //获取月
|
var day = data.getDate(); //获取日
|
var time = year + "-" + month + "-" + day;
|
|
//页面初始化赋值
|
//获取单据号
|
$.ajax({
|
url: GetWEBURL() + "/Web/GetMAXNum",
|
type: "GET",
|
data: { "HBillType": '3791' },
|
success: function (d) {
|
$("#HInterID").val(d.data[0].HInterID);
|
$("#HBillNo2").val(d.data[0].HBillNo);
|
}, error: function () {
|
layer.alert("获取单据号失败!", { icon: 5 });
|
}
|
});
|
|
$("#HDateNow").val(time);//加载当前时间
|
|
$("#HFbarcode").focus();
|
$("#HFbarcode").css("box-shadow", "0 0 0 1px #00ff00");
|
$("#Serial_number").attr("readonly", "readonly");//流水号只读
|
$("#Serial_number").css("background-color", "#efefef4d");
|
$("#QualifiedQuantity").attr("readonly", "readonly");//合格数量只读
|
$("#QualifiedQuantity").css("background-color", "#efefef4d");
|
$("#ScrapQuantity").attr("readonly", "readonly");//报废数量只读
|
$("#ScrapQuantity").css("background-color", "#efefef4d");
|
|
//扫条形码方法
|
$('#HFbarcode').on('keydown', function (event) { //扫条形码
|
var HFbarcode = $('#HFbarcode').val();
|
if (event.keyCode == 13) {
|
//判断文本框是否有数据 new
|
if (HFbarcode == "") {
|
layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
|
return;
|
}
|
//
|
$.ajax({
|
url: GetWEBURL() + "/LEMS/TxtHBarCode_KeyDown",
|
type: "GET",
|
data: {
|
"sBillBarCode": HFbarcode
|
},
|
success: function (result) {
|
var data = result.data;
|
if (result.count == 1) { // 说明验证成功了,
|
form.val("component-form-group", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
|
"订单跟踪号": data[0].订单跟踪号
|
, "产品代码": data[0].产品代码
|
, "产品名称": data[0].产品
|
, "规格型号": data[0].规格型号
|
, "流转卡数量": data[0].流转卡数量
|
, "制单人": data[0].制单人
|
, "制单日期": data[0].制单日期
|
, "修改人": data[0].修改人
|
, "修改日期": data[0].修改日期
|
, "审核人": data[0].审核人
|
, "审核日期": data[0].审核日期
|
, "生产订单号": data[0].源单单号
|
, "生产订单数量": data[0].生产数量
|
, "流转卡号": $("#HFbarcode").val()
|
});
|
$("#HFbarcode").attr("readonly", "readonly");//条形码只读
|
$("#HFbarcode").css("background-color", "#efefef4d");
|
$("#HFbarcode").css("box-shadow", "none");
|
$("#Serial_number").removeAttr("readonly");//移除流水号只读
|
$("#Serial_number").css("background-color", "white");
|
$("#Serial_number").focus();
|
$("#Serial_number").css("box-shadow", "0 0 0 1px #00ff00");
|
} else {
|
// $("#verifycode").click();
|
//layer.msg(result.Message, { icon: 5 });
|
layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
|
}
|
}, error: function () {
|
layer.alert("扫条形码方法发生错误!", { icon: 5 });
|
}
|
});
|
// layer.msg($('#HFbarcode').val(), { icon: 1 });
|
}
|
});
|
|
//流水号回车方法
|
$('#Serial_number').on('keydown', function (event) { //扫条形码
|
var sProcNo = $('#Serial_number').val();
|
var sBillNo = $('#HBillNo').val();
|
if (event.keyCode == 13) {
|
if (sProcNo == "" || sBillNo == "") {
|
layer.alert("流水号或流转卡号为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
|
return;
|
}
|
$.ajax({
|
url: GetWEBURL() + "/LEMS/TxtHProcNo_KeyDown",
|
type: "GET",
|
data: {
|
"sProcNo": sProcNo
|
, "sBillNo": sBillNo
|
},
|
success: function (result) {
|
var data = result.data;
|
if (result.count == 1) { // 说明验证成功了,
|
form.val("component-form-group", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
|
"订单跟踪号": data[0].订单跟踪号
|
, "产品代码": data[0].产品代码
|
, "产品名称": data[0].产品
|
, "规格型号": data[0].规格型号
|
, "流转卡数量": data[0].流转卡数量
|
, "工作中心": data[0].工作中心
|
, "工作中心代码": data[0].工作中心代码
|
, "当前工序": data[0].工序
|
, "当前工序代码": data[0].工序代码
|
, "生产车间": data[0].生产车间
|
, "生产车间代码": data[0].生产车间代码
|
, "操作员": data[0].操作工
|
, "操作员代码": data[0].操作工代码
|
, "生产班组": data[0].班组
|
, "生产班组代码": data[0].班组代码
|
, "生产资源": data[0].生产资源
|
, "生产资源代码": data[0].生产资源代码
|
, "制单人": data[0].制单人
|
, "制单日期": data[0].制单日期
|
, "修改人": data[0].修改人
|
, "修改日期": data[0].修改日期
|
, "审核人": data[0].审核人
|
, "审核日期": data[0].审核日期
|
, "生产订单号": data[0].源单单号
|
, "生产订单数量": data[0].生产数量
|
, "流转卡号": $("#HFbarcode").val()
|
});
|
$("#Serial_number").attr("readonly", "readonly");//流水号只读
|
$("#Serial_number").css("background-color", "#efefef4d");
|
$("#Serial_number").css("box-shadow", "none");
|
$("#QualifiedQuantity").removeAttr("readonly");//移除合格数量只读
|
$("#QualifiedQuantity").css("background-color", "white");
|
$("#QualifiedQuantity").focus();
|
$("#QualifiedQuantity").css("box-shadow", "0 0 0 1px #00ff00");
|
} else {
|
// $("#verifycode").click();
|
//layer.msg(result.Message, { icon: 5 });
|
layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
|
}
|
}, error: function () {
|
layer.alert("流水号方法发生错误!", { icon: 5 });
|
}
|
});
|
}
|
});
|
|
//合格数量回车方法
|
$('#QualifiedQuantity').on('keydown', function (event) {
|
if (event.keyCode == 13) {
|
$("#QualifiedQuantity").attr("readonly", "readonly");//合格数量只读
|
$("#QualifiedQuantity").css("background-color", "#efefef4d");
|
$("#QualifiedQuantity").css("box-shadow", "none");
|
$("#ScrapQuantity").removeAttr("readonly");//移除报废数量只读
|
$("#ScrapQuantity").focus();
|
$("#ScrapQuantity").css("box-shadow", "0 0 0 1px #00ff00");
|
}
|
});
|
|
//报废数量回车方法
|
$('#ScrapQuantity').on('keydown', function (event) {
|
if (event.keyCode == 13) {
|
$("#ScrapQuantity").attr("readonly", "readonly");//报废数量只读
|
$("#ScrapQuantity").css("background-color", "#efefef4d");
|
$("#ScrapQuantity").css("box-shadow", "none");
|
if ($("#Operator").val()) {
|
$("#Operator").css("box-shadow", "none");
|
} else {
|
$("#Operator").css("box-shadow", "1px 1px 1px 2px #00ff00");
|
}
|
}
|
});
|
|
//选择操作员弹窗
|
form.on('submit(Operator-BT)', function () {//选择仓位
|
layer.open({
|
type: 2
|
, area: ['60%', '60%']
|
, title: '本站工序'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
//选择生产组织弹窗
|
form.on('submit(HOrganization-BT)', function () {//选择生产组织
|
layer.open({
|
type: 2
|
, area: ['60%', '60%']
|
, title: '生产组织'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../Baseset/基础资料/Gy_OrgList.html', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
//退出按钮
|
form.on('submit(Close)', function (data) {//退出
|
layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
|
parent.layui.admin.events.closeThisTabs();
|
});
|
});
|
|
|
|
|
|
|
|
|
|
//待接收工单页签
|
table.render({
|
elem: '#djs-table'
|
, url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
|
, cols: [[
|
{ field: 'HInterID', title: '序号' }
|
, { field: 'HBillNo', title: '状态', sort: true }
|
, { field: 'HMaker', title: '生产订单' }
|
, { field: 'HMakeDate', title: '计划日期' }
|
, { field: 'HQty', title: '物料编码' }
|
, { field: 'HSourceBillNo', title: '物料名称' }
|
, { field: 'HRedBlueFlag', title: '规格型号' }
|
, { field: 'HSourceBillType', title: '计划数量' }
|
, { field: 'HSourceBillType', title: '已汇报数量' }
|
, { field: 'HSourceBillType', title: '已入库数量' }
|
]]
|
, height: 300
|
, done: function () {
|
layer.closeAll("loading");
|
}
|
});
|
|
//今日进站页签
|
table.render({
|
elem: '#jr-table'
|
, url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
|
, cellMinWidth: 100
|
, cols: [[
|
{ field: 'HInterID', title: '序号',width:80 }
|
, { field: 'HBillNo', title: '汇报日期', width: 110, sort: true }
|
, { field: 'HMaker', title: '生产汇报单号' }
|
, { field: 'HMakeDate', title: '生产订单号' }
|
, { field: 'HQty', title: '物料编码' }
|
, { field: 'HSourceBillNo', title: '物料名称' }
|
, { field: 'HRedBlueFlag', title: '规格型号' }
|
, { field: 'HSourceBillType', title: '计划数量' }
|
, { field: 'HSourceBillType', title: '汇报数量' }
|
, { field: 'HSourceBillType', title: '制单人' }
|
, { field: 'HSourceBillType', title: '制单日期' }
|
]]
|
, height: 300
|
, done: function () {
|
layer.closeAll("loading");
|
}
|
});
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
function GetOrgValue(obj) //返回生产组织
|
{
|
$("#HOrganization").val(obj[0].HName);
|
$("#HOrganizationID").val(obj[0].HNumber);
|
}
|
|
function GetHWorkerValue(obj) //返回操作员
|
{
|
$("#Operator").val(obj[0].HName);
|
$("#OperatorID").val(obj[0].HItemID);
|
}
|
//function GetHDeptNameValue(obj) //返回部门
|
//{
|
// $("#HDeptName").val(obj[0].HName);
|
// $("#HDeptID").val(obj[0].HItemID);
|
//}
|
|
|
</script>
|
</body>
|
</html>
|