zgq
2021-01-19 3e7ed40694050102fffa5b285a061e99ff025dfc
nothing
4个文件已修改
2个文件已添加
1464 ■■■■ 已修改文件
WebTM/Properties/PublishProfiles/webtm.pubxml.user 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_GetProductionResourcesList.html 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_WorkCenterList.html 100 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工序汇报/MES_StationInBill_PDA.html 226 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工序汇报/MES_StationOutBill_PDA.html 1017 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/webtm.pubxml.user
@@ -13,10 +13,10 @@
      <publishTime>01/14/2021 10:06:24</publishTime>
    </File>
    <File Include="bin/WebTM.dll">
      <publishTime>01/17/2021 21:24:39</publishTime>
      <publishTime>01/18/2021 10:04:21</publishTime>
    </File>
    <File Include="bin/WebTM.pdb">
      <publishTime>01/17/2021 21:24:39</publishTime>
      <publishTime>01/18/2021 10:04:21</publishTime>
    </File>
    <File Include="layuiadmin/config.js">
      <publishTime>01/14/2021 10:06:23</publishTime>
@@ -580,7 +580,7 @@
      <publishTime>01/14/2021 10:06:23</publishTime>
    </File>
    <File Include="layuiadmin/Scripts/webConfig.js">
      <publishTime>01/17/2021 21:24:22</publishTime>
      <publishTime>01/19/2021 14:13:36</publishTime>
    </File>
    <File Include="layuiadmin/style/admin.css">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -726,6 +726,9 @@
    <File Include="views/Baseset/基础资料/Gy_EmployeeList.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_GetProductionResourcesList.html">
      <publishTime>01/18/2021 09:49:20</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_GetProductionTeamList.html">
      <publishTime>01/14/2021 20:55:55</publishTime>
    </File>
@@ -737,6 +740,9 @@
    </File>
    <File Include="views/Baseset/基础资料/Gy_WarehouseList.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_WorkCenterList.html">
      <publishTime>01/19/2021 14:12:23</publishTime>
    </File>
    <File Include="views/component/anim/index.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -1081,7 +1087,7 @@
      <publishTime>01/14/2021 15:07:03</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationInBill_PDA.html">
      <publishTime>01/17/2021 23:20:25</publishTime>
      <publishTime>01/19/2021 15:03:45</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationOutBill.html">
      <publishTime>01/14/2021 15:28:59</publishTime>
@@ -1090,7 +1096,7 @@
      <publishTime>01/14/2021 15:07:10</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationOutBill_PDA.html">
      <publishTime>01/14/2021 17:17:09</publishTime>
      <publishTime>01/18/2021 14:39:27</publishTime>
    </File>
    <File Include="views/组装单/Sc_AssemblyBill_Fast.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -1204,7 +1210,7 @@
      <publishTime>05/08/2020 23:33:42</publishTime>
    </File>
    <File Include="Web.config">
      <publishTime>01/14/2021 23:06:12</publishTime>
      <publishTime>01/18/2021 08:57:06</publishTime>
    </File>
  </ItemGroup>
</Project>
WebTM/WebTM.csproj
@@ -299,6 +299,8 @@
    <Content Include="views\Baseset\基础资料\Gy_CustomerList.html" />
    <Content Include="views\Baseset\基础资料\Gy_DepartmentList.html" />
    <Content Include="views\Baseset\基础资料\Gy_EmployeeList.html" />
    <Content Include="views\Baseset\基础资料\Gy_GetProductionResourcesList.html" />
    <Content Include="views\Baseset\基础资料\Gy_WorkCenterList.html" />
    <Content Include="views\Baseset\基础资料\Gy_GetProductionTeamList.html" />
    <Content Include="views\Baseset\基础资料\Gy_StockPlaceList.html" />
    <Content Include="views\Baseset\基础资料\Gy_SupplierList.html" />
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_GetProductionResourcesList.html
New file
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</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">
                        <div class="layui-inline">
                            <label class="layui-form-label">过滤列</label>
                            <div class="layui-input-inline">
                                <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请输入过滤列" class="layui-input">
                            </div>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">快速查询</button>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <table class="layui-hide" id="ck-table"></table>
    <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>
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
            , layer = layui.layer;
            form.on('submit(HQuery)', function () {//选择仓库
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                RoadQuery($('#Value').val());
            });
            form.on('submit(FH)', function () {//选择仓库
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                var checkStatus = table.checkStatus('ck-table')
                 , data = checkStatus.data;
                parent.GetProductionResourcesValue(data);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
            RoadQuery($('#Value').val());
            table.render({
                elem: '#ck-table'
                // , url: '/demo/table/user/'
               , data: []
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'radio' }
                , { field: 'HItemID', width: 150, title: '生产资源ID', hide: true }
                , { field: '生产资源代码', width: 150, title: '生产资源代码' }
                , { field: '生产资源', width: 150, title: '生产资源', sort: true }
              ]]
              , page: true
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var Value = " and HNumber like '%" + Where + "%' or HName like '%" + Where + "%'";
                if (!Where) {
                    Value = '';
                }
                $.ajax({
                    type: "get",
                    url: GetWEBURL() + "/api/newBill/getSourceList",
                    async: true,
                    data: { "sWhere": Value },
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data.Gy_Source;
                        table.reload('ck-table', {
                            data: ajaxReturnData
                            , height: 'full-10'
                            , loading: false
                            , done: function (index, res) {
                            }
                        });
                    },
                    error: function (result) {
                        console.log(result);
                        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                    }
                });
            };
        });
    </script>
</body>
</html>
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_WorkCenterList.html
New file
@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</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">
                        <div class="layui-inline">
                            <label class="layui-form-label">过滤列</label>
                            <div class="layui-input-inline">
                                <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请输入过滤列" class="layui-input">
                            </div>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">快速查询</button>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <table class="layui-hide" id="ck-table"></table>
    <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>
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
            , layer = layui.layer;
            //快速查询
            form.on('submit(HQuery)', function () {
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                RoadQuery($('#Value').val());
            });
            //返回
            form.on('submit(FH)', function () {//选择
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                var checkStatus = table.checkStatus('ck-table')
                 , data = checkStatus.data;
                parent.GetWorkCenterValue(data);
            });
            RoadQuery($('#Value').val());
            table.render({
                elem: '#ck-table'
                // , url: '/demo/table/user/'
               , data: []
              //, cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'radio' }
                  , { field: 'HItemID', title: 'HItemID', hide: true }
                  , { field: '生产班组代码', width: 110, title: '生产班组代码' }
                  , { field: '生产班组', width: 110, title: '生产班组', sort: true }
              ]]
              , page: true
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var Value = " and HNumber like '%" + Where + "%' or HName like '%" + Where + "%'";
                if (!Where) {
                    Value = '';
                }
                $.ajax({
                    type: "get",
                    url: GetWEBURL() + "/api/newBill/getWorkCenterList",
                    async: true,
                    data: { "sWhere": Value },
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data.Gy_Source;
                        table.reload('ck-table', {
                            data: ajaxReturnData
                            //, height: 'full-10'
                            , loading: false
                            , done: function (index, res) {
                            }
                        });
                    },
                    error: function (result) {
                        console.log(result);
                        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                    }
                });
            };
        });
    </script>
</body>
</html>
WebTM/views/¹¤Ðò»ã±¨/MES_StationInBill_PDA.html
@@ -57,66 +57,67 @@
                                <tr>
                                    <th>条形码</th>
                                    <td class="t1_input">
                                        <input type="text" name="sBillBarCode" class="layui-input" id="sBillBarCode" placeholder="请输入条形码" style="border-radius: 50px;">
                                        <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请输入条形码" style="border-radius: 50px;">
                                    </td>
                                </tr>
                                <tr>
                                    <th>流转卡号</th>
                                    <td class="t1_input">
                                        <input type="text" name="流转卡号" class="layui-input" id="流转卡号" placeholder="流转卡号" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>流水号</th>
                                    <td class="t1_input">
                                        <input type="text" name="sProcNo" class="layui-input" id="sProcNo" placeholder="请输入流水号" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="请输入流水号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="工序代码" class="layui-input" id="工序代码" placeholder="请输入工序代码" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HProcID" class="layui-input" id="HProcID" placeholder="请输入工序代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="工序名称" class="layui-input" id="工序名称" placeholder="请输入工序名称" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HProc" class="layui-input" id="HProc" placeholder="请输入工序名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>创建人</th>
                                    <td class="t1_input">
                                        <input type="text" name="创建人" class="layui-input" id="创建人" placeholder="请输入创建人" style="background-color:#efefef4d;" readonly>
                                        <input type="text" class="layui-input" id="HEmp" placeholder="请输入创建人" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HEmpID" id="HEmpID" value="0" autocomplete="off" class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <th>进站数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="进站数量" class="layui-input" id="进站数量" placeholder="请输入进站数量" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请输入进站数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产资源</th>
                                    <td class="bz_td">
                                        <input type="text" name="生产班组" class="layui-input" id="ProductionResources" placeholder="选择生产资源" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="生产资源代码" id="ProductionResourcesID" value="0" autocomplete="off" class="layui-input">
                                        <input type="text" name="HSource" class="layui-input" id="HSource" placeholder="选择生产资源" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HSourceID" id="HSourceID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionResources-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产班组</th>
                                    <td class="bz_td">
                                        <input type="text" name="生产班组" class="layui-input" id="ProductionTeam" placeholder="选择生产班组" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="生产班组代码" id="ProductionTeamID" value="0" autocomplete="off" class="layui-input">
                                        <input type="text" name="HGroup" class="layui-input" id="HGroup" placeholder="选择生产班组" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HGroupID" id="HGroupID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionTeam-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工作中心</th>
                                    <td class="bz_td">
                                        <input type="text" name="工作中心" class="layui-input" id="HProcName" placeholder="选择工作中心" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="工作中心代码" id="HProcID" value="0" autocomplete="off" class="layui-input">
                                        <input type="text" name="HCenter" class="layui-input" id="HCenter" placeholder="选择工作中心" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HCenterID" id="HCenterID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HWorkingProcedure-BT">...</button>
                                    </td>
                                </tr>
@@ -130,43 +131,46 @@
                                <tr>
                                    <th>日期</th>
                                    <td class="t1_input">
                                        <input type="date" name="日期" class="layui-input HDateNow" id="HDateNow" placeholder="请选择日期">
                                        <input type="date" name="HStationInTime" class="layui-input" id="HStationInTime" placeholder="请选择日期">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单</th>
                                    <td class="t1_input">
                                        <input type="text" name="生产订单" class="layui-input" id="生产订单" placeholder="请输入生产订单" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="请输入生产订单" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="产品代码" class="layui-input" id="产品代码" placeholder="请输入产品代码" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HMaterID" class="layui-input" id="HMaterID" placeholder="请输入产品代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="产品名称" class="layui-input" id="产品名称" placeholder="请输入产品名称" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="请输入产品名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>规格型号</th>
                                    <td class="t1_input">
                                        <input type="text" name="规格型号" class="layui-input" id="规格型号" placeholder="请输入规格型号" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="请输入规格型号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>订单跟踪号</th>
                                    <td class="t1_input">
                                        <input type="text" name="订单跟踪号" class="layui-input" id="订单跟踪号" placeholder="请输入订单跟踪号" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HOrderProcNO" class="layui-input" id="HOrderProcNO" placeholder="请输入订单跟踪号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="生产订单数量" class="layui-input" id="生产订单数量" placeholder="请输入生产订单数量" style="background-color:#efefef4d;" readonly>
                                        <input type="text" name="HICMOQty" class="layui-input" id="HICMOQty" placeholder="请输入生产订单数量" style="background-color:#efefef4d;" readonly>
                                        <!--隐藏字段-->
                                        <input type="hidden" name="HICMOInterID" class="layui-input" id="HICMOInterID"><!--任务单号ID取hicmointerid-->
                                        <input type="hidden" name="HDeptID" class="layui-input" id="HDeptID"><!--生产车间id-->
                                    </td>
                                </tr>
                            </tbody>
@@ -209,8 +213,9 @@
                , form = layui.form;
            //获取当前时间处理
            $("#HDateNow").val(Format(new Date(), "yyyy-MM-dd"));
            $("#创建人").val(sessionStorage["HUserName"]);
            $("#HStationInTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);
            $("#HEmpID").val(sessionStorage["Czybm"]);
            //页面初始化赋值
            //获取单据号
@@ -226,8 +231,8 @@
                }
            });
            $("#sBillBarCode").focus();
            $("#sBillBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#HBarCode").focus();
            $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#Serial_number").attr("readonly", "readonly");//流水号只读
            $("#Serial_number").css("background-color", "#efefef4d");
            $("#Entrants_number").attr("readonly", "readonly");//进站数量只读
@@ -235,11 +240,11 @@
            //扫条形码方法
            $('#sBillBarCode').on('keydown', function (event) {   //扫条形码
                var sBillBarCode = $('#sBillBarCode').val();//条形码(流转卡号)(数据库中为单据号)
            $('#HBarCode').on('keydown', function (event) {   //扫条形码
                var HBarCode = $('#HBarCode').val();//条形码(流转卡号)(数据库中为单据号)
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (sBillBarCode == "") {
                    if (HBarCode == "") {
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
@@ -248,27 +253,34 @@
                        url: GetWEBURL() + "api/newBill/getHbarCodeDetail",
                        type: "GET",
                        data: {
                            "sBillBarCode": sBillBarCode
                            "sBillBarCode": HBarCode
                        },
                        success: function (result) {
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "流转卡号": $("#sBillBarCode").val()
                                    , "工序代码": data.工序代码
                                    , "工序名称": data.工序
                                    , "产品代码": data.产品代码
                                    , "产品名称": data.产品
                                    , "规格型号": data.规格型号
                                    , "生产订单数量": data.生产数量
                                    "HProcExchBillNo": $("#HBarCode").val()
                                    , "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                    , "HOrderProcNO":data.订单跟踪号
                                });
                                //$("#sBillBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#sBillBarCode").css("background-color", "#efefef4d");
                                $("#sBillBarCode").css("box-shadow", "none");
                                $("#sProcNo").removeAttr("readonly");//移除流水号只读
                                $("#sProcNo").css("background-color", "white");
                                $("#sProcNo").focus();
                                $("#sProcNo").css("box-shadow", "0 0 0 1px #00ff00");
                                //$("#HBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#HBarCode").css("background-color", "#efefef4d");
                                $("#HBarCode").css("box-shadow", "none");
                                $("#HProcNo").removeAttr("readonly");//移除流水号只读
                                $("#HProcNo").css("background-color", "white");
                                $("#HProcNo").focus();
                                $("#HProcNo").css("box-shadow", "0 0 0 1px #00ff00");
                            } else {
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
@@ -280,11 +292,11 @@
            });
            //流水号回车方法
            $('#sProcNo').on('keydown', function (event) {   //扫条形码
                var sProcNo = $('#sProcNo').val();
                var sBillNo = $('#sBillBarCode').val();
            $('#HProcNo').on('keydown', function (event) {   //扫条形码
                var HProcNo = $('#HProcNo').val();
                var HBarCode = $('#HBarCode').val();
                if (event.keyCode == 13) {
                    if (sProcNo == "" || sBillNo == "") {
                    if (HProcNo == "" || HBarCode == "") {
                        layer.alert("流水号或流转卡号为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
@@ -292,22 +304,28 @@
                        url: GetWEBURL() + "/api/newBill/getProcDetail",
                        type: "GET",
                        data: {
                            "sBillNo": sBillNo
                            , "sProcNo": sProcNo
                            "sBillNo": HBarCode
                            , "sProcNo": HProcNo
                        },
                        success: function (result) {
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "工序代码": data.工序代码
                                    , "工序名称": data.工序
                                    , "产品代码": data.产品代码
                                    , "产品名称": data.产品
                                    , "规格型号": data.规格型号
                                    , "生产订单数量": data.生产数量
                                     "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                });
                                $("#sProcNo").css("box-shadow", "none");
                                $("#ProductionResources").css("box-shadow", "0 0 1px 2px #00ff00");
                                $("#HProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
@@ -331,7 +349,7 @@
                    }
                }
            });
            //选择生产班组弹窗
            form.on('submit(ProductionTeam-BT)', function () {//选择生产班组
                layer.open({
@@ -364,33 +382,51 @@
                })
            });
            //选择工作中心弹窗
            form.on('submit(HWorkingProcedure-BT)', function () {//选择工作中心
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '工作中心'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_WorkCenterList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
            //保存按钮
            form.on('submit(Saver)', function (data) {//提交
                //debugger;
                var sMainStr = JSON.stringify(data.field);
                var sMainStr =data.field;
                console.log(sMainStr);
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/LEMS/Sub_SaveBill_Json", //方法所在页面和方法名
                        //url: GetWEBURL() + "/api/newBill/setStationInBill", //方法所在页面和方法名
                        url: "http://localhost:12761/api/newBill/setStationInBill",
                        async: true,
                        data: { "oMain": sMainStr },
                        data: sMainStr,
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                        success: function (result) {
                            console.log(result);
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#sHWHID").val("");
                                layer.alert(data.Message + $("#HBillNo").val(), { icon: 1 }, function () {
                                layer.alert(result.msg + "单号为:" + $("#HBillNo").val(), { icon: 1 }, function () {
                                    window.location.reload();//刷新页面
                                });
                            }
                            else {
                                layer.alert(data.Message, { icon: 5 });
                                layer.alert(result.msg, { icon: 5 });
                            }
                            layer.closeAll("loading");
                            layui.form.render();
                        },
                        error: function (err) {
                            layer.alert("错误:" + err, { icon: 5 });
                            layer.alert("接口请求失败:" + err, { icon: 5 });
                        }
                    });
            });
@@ -422,42 +458,54 @@
        });
        //校验是否选择弹窗事件
        function checkPopup() {
            if (!$("#HSource").val()) {
                $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#HGroup").val()) {
                $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#HCenter").val()) {
                $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00");
            }
        }
        //返回生产班组
        function GetProductionTeamValue(obj) {  //返回生产班组
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#ProductionTeam").val(obj[0].班组);
                $("#ProductionTeamID").val(obj[0].HItemID);
                $("#ProductionTeam").css("box-shadow", "none");
                if ($("#ProductionResources").val()) {
                    $("#ProductionResources").css("box-shadow", "none");
                } else {
                    $("#ProductionResources").css("box-shadow", "0 0 1px 2px #00ff00");
                }
                $("#HGroup").val(obj[0].班组);
                $("#HGroupID").val(obj[0].HItemID);
                $("#HGroup").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
        function GetProductionResourcesValue(obj) {  //返回生产资源
            if ($("#ProductionResources").val()) {
                $("#ProductionResources").css("box-shadow", "none");
            if ($("#HSource").val()) {
                $("#HSource").css("box-shadow", "none");
            }
            $("#ProductionResources").val(obj[0].生产资源);
            $("#ProductionResourcesID").val(obj[0].生产资源代码);
            $("#ProductionResources").css("box-shadow", "none");
            $("#HSource").val(obj[0].生产资源);
            $("#HSourceID").val(obj[0].HItemID);
            $("#HSource").css("box-shadow", "none");
            checkPopup();
        }
                            //function GetHEmpValue(obj)  //返回职员
                            //{
                            //    $("#HEmpName").val(obj[0].HName);
                            //    $("#HEmpID").val(obj[0].HItemID);
                            //}
                            //function GetHDeptNameValue(obj)  //返回部门
                            //{
                            //    $("#HDeptName").val(obj[0].HName);
                            //    $("#HDeptID").val(obj[0].HItemID);
                            //}
        //返回工作中心
        function GetWorkCenterValue(obj) {  //返回工作中心
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#HCenter").val(obj[0].生产班组);
                $("#HCenterID").val(obj[0].HItemID);
                $("#HCenter").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
    </script>
WebTM/views/¹¤Ðò»ã±¨/MES_StationOutBill_PDA.html
@@ -8,451 +8,197 @@
    <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">
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/webConfig.js"></script>
    <style>
        .layui-form-label {
            font-size: 14px;
            width: 85px;
            text-align: inherit;
        }
        /*全局设置输入框高度*/
        .layui-input {
            height: 30px;
        }
        /*设置表头输入框*/
        .t1_input {
            padding: 1%;
        }
        /*本站信息td*/
        .bz_td {
            display: -webkit-box; /*设置按钮不换行*/
            padding: 1%; /*设置输入框边距*/
        }
        /*设置本站信息按钮高度*/
        .bz_btu {
            height: 30px;
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 15px;">
            <div class="layui-card-body" style="padding: 0;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item" style="margin-bottom: 20px;">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>工序出站汇报单</span>
                    </div>
                    <div class="layui-form-item" style="margin: 1% 0;text-align: right;">
                        <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="" 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="Close" class="layui-btn layui-btn-radius layui-btn-danger">退出</button>
                        <button type="button" lay-submit="" onclick="check();">测试</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>
                        <table style="width:80%;">
                            <tbody>
                                <tr>
                                    <th>条形码</th>
                                    <td class="t1_input">
                                        <input type="text" name="条形码" class="layui-input" id="sBillBarCode" placeholder="请输入条形码" style="border-radius: 50px;">
                                    </td>
                                </tr>
                                <tr>
                                    <th>流转卡号</th>
                                    <td class="t1_input">
                                        <input type="text" name="流转卡号" class="layui-input" id="流转卡号" placeholder="流转卡号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>流水号</th>
                                    <td class="t1_input">
                                        <input type="text" name="流水号" class="layui-input" id="sProcNo" placeholder="请输入流水号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="工序代码" class="layui-input" id="工序代码" placeholder="请输入工序代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="工序名称" class="layui-input" id="工序名称" placeholder="请输入工序名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>创建人</th>
                                    <td class="t1_input">
                                        <input type="text" name="创建人" class="layui-input" id="创建人" placeholder="请输入创建人" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>合格数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="合格数量" class="layui-input" id="合格数量" placeholder="请输入合格数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>工时</th>
                                    <td class="t1_input">
                                        <input type="text" name="工时" class="layui-input" id="工时" placeholder="请输入工时">
                                    </td>
                                </tr>
                                <tr>
                                    <th>报废数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="报废数量" class="layui-input" id="报废数量" placeholder="请输入报废数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产资源</th>
                                    <td class="bz_td">
                                        <input type="text" name="生产班组" class="layui-input" id="ProductionResources" placeholder="选择生产资源" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="生产资源代码" id="ProductionResourcesID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionResources-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产班组</th>
                                    <td class="bz_td">
                                        <input type="text" name="生产班组" class="layui-input" id="ProductionTeam" placeholder="选择生产班组" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="生产班组代码" id="ProductionTeamID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionTeam-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工作中心</th>
                                    <td class="bz_td">
                                        <input type="text" name="工作中心" class="layui-input" id="WorkCenter" placeholder="选择工作中心" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="工作中心ID" id="WorkCenterID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HWorkingProcedure-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>检验员</th>
                                    <td class="bz_td">
                                        <input type="text" name="检验员" class="layui-input" id="Employee" placeholder="选择检验员" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="检验员ID" id="EmployeeID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HSecManagerID-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>出站单号</th>
                                    <td class="t1_input">
                                        <input type="text" name="出站单号" class="layui-input" id="HBillNo" placeholder="请输入出站单号" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="出站单号ID" class="layui-input" id="HInterID">
                                    </td>
                                </tr>
                                <tr>
                                    <th>日期</th>
                                    <td class="t1_input">
                                        <input type="date" name="日期" class="layui-input HDateNow" id="HDateNow" placeholder="请选择日期">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单</th>
                                    <td class="t1_input">
                                        <input type="text" name="生产订单" class="layui-input" id="生产订单" placeholder="请输入生产订单" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="产品代码" class="layui-input" id="产品代码" placeholder="请输入产品代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="产品名称" class="layui-input" id="产品名称" placeholder="请输入产品名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>规格型号</th>
                                    <td class="t1_input">
                                        <input type="text" name="规格型号" class="layui-input" id="规格型号" placeholder="请输入规格型号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>订单跟踪号</th>
                                    <td class="t1_input">
                                        <input type="text" name="订单跟踪号" class="layui-input" id="订单跟踪号" placeholder="请输入订单跟踪号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="生产订单数量" class="layui-input" id="生产订单数量" placeholder="请输入生产订单数量" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
        </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 src="../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <script>
        function getUrlVars() {
@@ -475,158 +221,116 @@
            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;
                , admin = layui.admin
                , element = layui.element
                , layer = layui.layer
                , table = layui.table
                , laydate = layui.laydate
                , 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;
            $("#HDateNow").val(Format(new Date(), "yyyy-MM-dd"));
            $("#创建人").val(sessionStorage["HUserName"]);
            //页面初始化赋值
            //获取单据号
            $.ajax({
                url: GetWEBURL() + "/Web/GetMAXNum",
                url: GetWEBURL() + "/api/newBill/getNewInterBillNo",
                type: "GET",
                data: { "HBillType": '3791' },
                //data: { "HBillType": '3790' },
                success: function (d) {
                    $("#HInterID").val(d.data[0].HInterID);
                    $("#HBillNo2").val(d.data[0].HBillNo);
                    $("#HBillNo").val(d.data.HBillNo);//进站单号
                    $("#HInterID").val(d.data.HInterID);//进站单号ID
                }, error: function () {
                    layer.alert("获取单据号失败!", { icon: 5 });
                }
            });
            $("#HDateNow").val(time);//加载当前时间
            $("#HFbarcode").focus();
            $("#HFbarcode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#sBillBarCode").focus();
            $("#sBillBarCode").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");
            $("#Entrants_number").attr("readonly", "readonly");//进站数量只读
            $("#Entrants_number").css("background-color", "#efefef4d");
            //扫条形码方法
            $('#HFbarcode').on('keydown', function (event) {   //扫条形码
                var HFbarcode = $('#HFbarcode').val();
            $('#sBillBarCode').on('keydown', function (event) {   //扫条形码
                var sBillBarCode = $('#sBillBarCode').val();//条形码(流转卡号)(数据库中为单据号)
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (HFbarcode == "") {
                    if (sBillBarCode == "") {
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    //
                    $.ajax({
                        url: GetWEBURL() + "/LEMS/TxtHBarCode_KeyDown",
                        url: GetWEBURL() + "api/newBill/getHbarCodeDetail",
                        type: "GET",
                        data: {
                            "sBillBarCode": HFbarcode
                            "sBillBarCode": sBillBarCode
                        },
                        success: function (result) {
                            var data = result.data;
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 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()
                                    "流转卡号": $("#sBillBarCode").val()
                                    , "工序代码": data.工序代码
                                    , "工序名称": data.工序
                                    , "合格数量": data.计划数量
                                    , "产品代码": data.产品代码
                                    , "产品名称": data.产品
                                    , "规格型号": data.规格型号
                                    , "生产订单数量": data.生产数量
                                });
                                $("#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");
                                //$("#sBillBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#sBillBarCode").css("background-color", "#efefef4d");
                                $("#sBillBarCode").css("box-shadow", "none");
                                $("#sProcNo").removeAttr("readonly");//移除流水号只读
                                $("#sProcNo").css("background-color", "white");
                                $("#sProcNo").focus();
                                $("#sProcNo").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();
            $('#sProcNo').on('keydown', function (event) {   //扫条形码
                var sProcNo = $('#sProcNo').val();
                var sBillNo = $('#sBillBarCode').val();
                if (event.keyCode == 13) {
                    if (sProcNo == "" || sBillNo == "") {
                        layer.alert("流水号或流转卡号为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    $.ajax({
                        url: GetWEBURL() + "/LEMS/TxtHProcNo_KeyDown",
                        url: GetWEBURL() + "/api/newBill/getProcDetail",
                        type: "GET",
                        data: {
                            "sProcNo": sProcNo
                            , "sBillNo": sBillNo
                            "sBillNo": sBillNo
                            , "sProcNo": sProcNo
                        },
                        success: function (result) {
                            var data = result.data;
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 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()
                                    "工序代码": data.工序代码
                                    , "工序名称": data.工序
                                    , "合格数量": data.计划数量
                                    , "产品代码": data.产品代码
                                    , "产品名称": data.产品
                                    , "规格型号": data.规格型号
                                    , "生产订单数量": data.生产数量
                                });
                                $("#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");
                                $("#sProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
@@ -636,42 +340,75 @@
                }
            });
            //合格数量回车方法
            $('#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");
                }
            //工时回车方法
            $('#工时').on('keydown', function (event) {
                checkPopup();
            });
            //报废数量回车方法
            $('#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");
                    }
                }
            $('#报废数量').on('keydown', function (event) {
                $('#报废数量').blur();
                checkPopup();
            });
            //选择操作员弹窗
            form.on('submit(Operator-BT)', function () {//选择仓位
            //选择生产班组弹窗
            form.on('submit(ProductionTeam-BT)', function () {//选择生产班组
                layer.open({
                    type: 2
                    , area: ['60%', '60%']
                    , title: '本站工序'
                    , area: ['80%', '80%']
                    , title: '生产班组'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_GetProductionTeamList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
            //选择生产资源弹窗
            form.on('submit(ProductionResources-BT)', function () {//生产资源
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '生产资源'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_GetProductionResourcesList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
            //选择工作中心弹窗
            form.on('submit(HWorkingProcedure-BT)', function () {//选择工作中心
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '工作中心'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_WorkCenterList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
            //选择检验员
            form.on('submit(HSecManagerID-BT)', function (data) {//选择检验员
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '检验员列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
                    , content: ['../Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -679,21 +416,35 @@
                })
            });
            //选择生产组织弹窗
            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(Saver)', function (data) {//提交
                //debugger;
                var sMainStr = JSON.stringify(data.field);
                console.log(sMainStr);
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/test", //方法所在页面和方法名
                        async: true,
                        data: { "oMain": sMainStr },
                        dataType: "json",
                        success: function (result) {
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#sHWHID").val("");
                                layer.alert(result.msg + "单号为:" + $("#HBillNo").val(), { icon: 1 }, function () {
                                    window.location.reload();//刷新页面
                                });
                            }
                            else {
                                layer.alert(result.msg, { icon: 5 });
                            }
                            layer.closeAll("loading");
                            layui.form.render();
                        },
                        error: function (err) {
                            layer.alert("接口请求失败:" + err, { icon: 5 });
                        }
                    });
            });
            //退出按钮
@@ -703,80 +454,100 @@
                });
            });
            //待接收工单页签
            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");
                }
            });
            //新增按钮
            //form.on('submit(HAddBT)', function (data) {//退出
            //    layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
            //        window.location.reload();
            //    });
            //});
            //以上为layui模块
        });
        //原生js初始化
        $(function () {
        });
        function GetOrgValue(obj)  //返回生产组织
        {
            $("#HOrganization").val(obj[0].HName);
            $("#HOrganizationID").val(obj[0].HNumber);
        //提示是否选择弹窗事件及是否输入工时和合格数量
        function checkPopup() {
            $("#工时").css("box-shadow", "none");
            $("#报废数量").css("box-shadow", "none");
            $("#ProductionResources").css("box-shadow", "none");
            $("#ProductionTeam").css("box-shadow", "none");
            $("#WorkCenter").css("box-shadow", "none");
            $("#Employee").css("box-shadow", "none");
            if (!$("#工时").val()) {
                $("#工时").focus();
                $("#工时").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#报废数量").val()) {
                $("#报废数量").focus();
                $("#报废数量").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#ProductionResources").val()) {
                $("#ProductionResources").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#ProductionTeam").val()) {
                $("#ProductionTeam").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#WorkCenter").val()) {
                $("#WorkCenter").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#Employee").val()) {
                $("#Employee").css("box-shadow", "0 0 1px 2px #00ff00");
            }
        }
        function GetHWorkerValue(obj)  //返回操作员
        {
            $("#Operator").val(obj[0].HName);
            $("#OperatorID").val(obj[0].HItemID);
        //返回生产班组
        function GetProductionTeamValue(obj) {  //返回生产班组
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#ProductionTeam").val(obj[0].班组);
                $("#ProductionTeamID").val(obj[0].HItemID);
                $("#ProductionTeam").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
        //function GetHDeptNameValue(obj)  //返回部门
        //{
        //    $("#HDeptName").val(obj[0].HName);
        //    $("#HDeptID").val(obj[0].HItemID);
        //}
        //返回生产资源
        function GetProductionResourcesValue(obj) {  //返回生产资源
            if ($("#ProductionResources").val()) {
                $("#ProductionResources").css("box-shadow", "none");
            }
            $("#ProductionResources").val(obj[0].生产资源);
            $("#ProductionResourcesID").val(obj[0].生产资源代码);
            $("#ProductionResources").css("box-shadow", "none");
            checkPopup();
        }
        //返回工作中心
        function GetWorkCenterValue(obj) {  //返回工作中心
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#WorkCenter").val(obj[0].生产班组);
                $("#WorkCenterID").val(obj[0].HItemID);
                $("#WorkCenter").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
        //返回检验员
        function GetHSecManagerValue(obj) {  //返回检验员
            $("#Employee").val(obj[0].HName);
            $("#EmployeeID").val(obj[0].HNumber);
            $("#Employee").css("box-shadow", "none");
            checkPopup();
        }
    </script>
</body>