zgq
2021-01-21 46b10d520f13e5aa34cc0b02bae3aff58166981a
登录用户信息增加工序号,工序汇报页面优化
11个文件已修改
2个文件已添加
2285 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/webtm.pubxml.user 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_WorkCenterList.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index.html 164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/user/login.html 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工序汇报/MES_StationInBillList.html 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工序汇报/MES_StationInBill_PDA.html 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工序汇报/MES_StationOutBill.html 1038 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工序汇报/MES_StationOutBillList.html 88 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工序汇报/MES_StationOutBill_PDA.html 284 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产任务单/Sc_ICMOBillList.html 259 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/计划管理/工艺路线/Gy_RoutingBillList.html 232 ●●●●● 补丁 | 查看 | 原始文档 | 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/18/2021 10:04:21</publishTime>
      <publishTime>01/21/2021 11:58:12</publishTime>
    </File>
    <File Include="bin/WebTM.pdb">
      <publishTime>01/18/2021 10:04:21</publishTime>
      <publishTime>01/21/2021 11:58:12</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/19/2021 14:13:36</publishTime>
      <publishTime>01/21/2021 11:35:01</publishTime>
    </File>
    <File Include="layuiadmin/style/admin.css">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -742,7 +742,7 @@
      <publishTime>01/14/2021 10:06:24</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_WorkCenterList.html">
      <publishTime>01/19/2021 14:12:23</publishTime>
      <publishTime>01/19/2021 22:26:49</publishTime>
    </File>
    <File Include="views/component/anim/index.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -952,7 +952,7 @@
      <publishTime>01/14/2021 10:06:24</publishTime>
    </File>
    <File Include="views/index.html">
      <publishTime>01/14/2021 17:44:54</publishTime>
      <publishTime>01/21/2021 20:23:40</publishTime>
    </File>
    <File Include="views/senior/echarts/bar.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -1051,7 +1051,7 @@
      <publishTime>01/14/2021 10:06:24</publishTime>
    </File>
    <File Include="views/user/login.html">
      <publishTime>01/15/2021 11:10:33</publishTime>
      <publishTime>01/21/2021 19:29:19</publishTime>
    </File>
    <File Include="views/user/reg.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -1084,22 +1084,28 @@
      <publishTime>01/14/2021 14:48:04</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationInBillList.html">
      <publishTime>01/14/2021 15:07:03</publishTime>
      <publishTime>01/21/2021 20:21:06</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationInBill_PDA.html">
      <publishTime>01/19/2021 15:03:45</publishTime>
      <publishTime>01/21/2021 20:16:54</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationOutBill.html">
      <publishTime>01/14/2021 15:28:59</publishTime>
      <publishTime>01/19/2021 22:22:31</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationOutBillList.html">
      <publishTime>01/14/2021 15:07:10</publishTime>
      <publishTime>01/21/2021 20:21:21</publishTime>
    </File>
    <File Include="views/工序汇报/MES_StationOutBill_PDA.html">
      <publishTime>01/18/2021 14:39:27</publishTime>
      <publishTime>01/21/2021 20:18:12</publishTime>
    </File>
    <File Include="views/生产管理/生产任务单/Sc_ICMOBillList.html">
      <publishTime>01/21/2021 15:23:36</publishTime>
    </File>
    <File Include="views/组装单/Sc_AssemblyBill_Fast.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
    </File>
    <File Include="views/计划管理/工艺路线/Gy_RoutingBillList.html">
      <publishTime>01/21/2021 15:28:28</publishTime>
    </File>
    <File Include="views/领料发货/其他出库/Kf_OtherOutBackBill_Fast.html">
      <publishTime>01/14/2021 10:06:24</publishTime>
@@ -1210,7 +1216,7 @@
      <publishTime>05/08/2020 23:33:42</publishTime>
    </File>
    <File Include="Web.config">
      <publishTime>01/18/2021 08:57:06</publishTime>
      <publishTime>01/21/2021 11:58:13</publishTime>
    </File>
  </ItemGroup>
</Project>
WebTM/WebTM.csproj
@@ -422,7 +422,9 @@
    <Content Include="views\工序汇报\MES_StationOutBill_PDA.html" />
    <Content Include="views\工序汇报\MES_StationOutBill.html" />
    <Content Include="views\工序汇报\MES_StationOutBillList.html" />
    <Content Include="views\生产管理\生产任务单\Sc_ICMOBillList.html" />
    <Content Include="views\组装单\Sc_AssemblyBill_Fast.html" />
    <Content Include="views\计划管理\工艺路线\Gy_RoutingBillList.html" />
    <Content Include="views\领料发货\其他出库\Kf_OtherOutBackBill_FastList.html" />
    <Content Include="views\领料发货\其他出库\Kf_OtherOutBill_FastList.html" />
    <Content Include="views\领料发货\其他出库\Kf_OtherOutBackBill_Fast.html" />
WebTM/layuiadmin/Scripts/webConfig.js
@@ -1,7 +1,7 @@
function GetWEBURL() {
    //var WEBURL = "http://192.168.16.80:8011/";          //办公室服务器
    //var WEBURL = "http://124.70.129.242/WebAPI/";          //雅琪诺
    var WEBURL = "http://localhost:8084/WebAPI/";
    var WEBURL = "http://124.70.129.242/WebAPI/";          //雅琪诺
    //var WEBURL = "http://localhost:8084/WebAPI/";
    //61.130.49.162:9090
    //WEBURL = "";
    return WEBURL
@@ -9,8 +9,8 @@
function GetWEBURL1() {
    //var WEBURL = 'http://192.168.16.80:8011/';           //办公室服务器
    //var WEBURL = 'http://124.70.129.242/WebAPI/';          //雅琪诺
    var WEBURL = 'http://localhost:8084/WebAPI/';
    var WEBURL = 'http://124.70.129.242/WebAPI/';          //雅琪诺
    //var WEBURL = 'http://localhost:8084/WebAPI/';
    //61.130.49.162:9090
    //WEBURL = "";
    return WEBURL
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_WorkCenterList.html
@@ -60,8 +60,8 @@
              , cols: [[
                  { type: 'radio' }
                  , { field: 'HItemID', title: 'HItemID', hide: true }
                  , { field: '生产班组代码', width: 110, title: '生产班组代码' }
                  , { field: '生产班组', width: 110, title: '生产班组', sort: true }
                  , { field: '工作中心代码', width: 110, title: '工作中心代码' }
                  , { field: '工作中心', width: 110, title: '工作中心', sort: true }
              ]]
              , page: true
            });
WebTM/views/index.html
@@ -4,7 +4,7 @@
<html>
<head>
    <meta charset="utf-8">
    <title>条码</title>
    <title>智云LMES管理系统</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">
@@ -99,43 +99,58 @@
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
          <div class="layui-logo" lay-href="home/console.html">
            <span>条码业务流程</span>
              <span>智云LMES管理系统</span>
          </div>
          
          <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
            <!--<li data-name="component" class="layui-nav-item">
                <a href="javascript:;" lay-tips="到货确认" lay-direction="2">
                    <i class="layui-icon layui-icon-home"></i>
                    <cite>到货确认</cite>
                </a>
            </li>-->
            <li data-name="template" class="layui-nav-item">
                <a href="javascript:;" lay-tips="验收入库" lay-direction="2">
                    <i class="layui-icon layui-icon-component"></i>
                    <cite>验收入库</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="验收入库/外购入库/Kf_POStockInBill_Fast.html" target="main_self_frame">外购入库</a></dd>
                    <!--<dd class="layui-this"><a href="验收入库/外购入库/Kf_POStockInBackBill.html" target="main_self_frame">外购入库(红字)</a></dd>-->
                    <dd><a href="验收入库/委外入库/Kf_EntrustInBill_Fast.html" target="main_self_frame">委外入库</a></dd>
                    <!--<dd class="layui-this"><a href="验收入库/委外入库/Kf_EntrustInBackBill.html" target="main_self_frame">委外入库(红字)</a></dd>-->
                    <dd><a href="验收入库/产品入库/Kf_ProductInBill_Fast.html" target="main_self_frame">产品入库</a></dd>
                    <!--<dd class="layui-this"><a href="验收入库/产品入库/Kf_ProductInBackBill.html" target="main_self_frame">产品入库(红字)</a></dd>-->
                    <!--<dd class="layui-this"><a href="验收入库/其他入库/Kf_OtherInBill_Fast.html" target="main_self_frame">其他入库</a></dd>
                    <dd class="layui-this"><a href="验收入库/其他入库/Kf_OtherInBackBill_Fast.html" target="main_self_frame">其他入库(红字)</a></dd>-->
                </dl>
            </li>
              <!--<li data-name="template" class="layui-nav-item">
                  <!--<a href="javascript:;" lay-tips="生产管理" lay-direction="2">
                      <i class="layui-icon layui-icon-template"></i>
                      <cite>生产管理</cite>
              <li data-name="set" class="layui-nav-item">
                  <a><i class="layui-icon layui-icon-set"></i><cite>计划管理</cite></a>
                  <dl class="layui-nav-child">
                      <dd class="layui-nav-itemed">
                          <a>工艺路线</a>
                          <dl class="layui-nav-child">
                              <dd><a lay-href="计划管理/工艺路线/Gy_RoutingBillList.html">工艺路线列表</a></dd>
                          </dl>
                      </dd>
                  </dl>
              </li>
              <li data-name="set" class="layui-nav-item">
                  <a><i class="layui-icon layui-icon-set"></i><cite>生产管理</cite></a>
                  <dl class="layui-nav-child">
                      <dd class="layui-nav-itemed">
                          <a>生产任务单</a>
                          <dl class="layui-nav-child">
                              <dd><a lay-href="生产管理/生产任务单/Sc_ICMOBillList.html">生产任务单列表</a></dd>
                          </dl>
                      </dd>
                  </dl>
              </li>
              <li data-name="template" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="验收入库" lay-direction="2">
                      <i class="layui-icon layui-icon-component"></i>
                      <cite>验收入库</cite>
                  </a>
                      <dl class="layui-nav-child">
                          <dd class="layui-this"><a href="组装单/Sc_AssemblyBill_Fast.html" target="main_self_frame">组装单</a></dd>
                          <dd class="layui-this"><a href="验收入库/产品入库/Xs_SeOrderPickUp_New.html" target="main_self_frame">不良汇报</a></dd>
                      </dl>-->
<!--</a>-->
                  <dl class="layui-nav-child">
                      <dd><a href="验收入库/外购入库/Kf_POStockInBill_Fast.html" target="main_self_frame">外购入库</a></dd>
                      <!--<dd class="layui-this"><a href="验收入库/外购入库/Kf_POStockInBackBill.html" target="main_self_frame">外购入库(红字)</a></dd>-->
                      <dd><a href="验收入库/委外入库/Kf_EntrustInBill_Fast.html" target="main_self_frame">委外入库</a></dd>
                      <!--<dd class="layui-this"><a href="验收入库/委外入库/Kf_EntrustInBackBill.html" target="main_self_frame">委外入库(红字)</a></dd>-->
                      <dd><a href="验收入库/产品入库/Kf_ProductInBill_Fast.html" target="main_self_frame">产品入库</a></dd>
                      <!--<dd class="layui-this"><a href="验收入库/产品入库/Kf_ProductInBackBill.html" target="main_self_frame">产品入库(红字)</a></dd>-->
                      <!--<dd class="layui-this"><a href="验收入库/其他入库/Kf_OtherInBill_Fast.html" target="main_self_frame">其他入库</a></dd>
            <dd class="layui-this"><a href="验收入库/其他入库/Kf_OtherInBackBill_Fast.html" target="main_self_frame">其他入库(红字)</a></dd>-->
                  </dl>
              </li>
              <!--<li data-name="template" class="layui-nav-item">
    <!--<a href="javascript:;" lay-tips="生产管理" lay-direction="2">
        <i class="layui-icon layui-icon-template"></i>
        <cite>生产管理</cite>
    </a>
        <dl class="layui-nav-child">
            <dd class="layui-this"><a href="组装单/Sc_AssemblyBill_Fast.html" target="main_self_frame">组装单</a></dd>
            <dd class="layui-this"><a href="验收入库/产品入库/Xs_SeOrderPickUp_New.html" target="main_self_frame">不良汇报</a></dd>
        </dl>-->
              <!--</a>-->
              </li>-->
              <li data-name="template" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="领料发货" lay-direction="2">
@@ -152,10 +167,9 @@
                      <dd><a href="领料发货/销售出库/Kf_SellOutBill_Fast.html" target="main_self_frame">销售出库</a></dd>
                      <!--<dd class="layui-this"><a href="领料发货/销售出库/Kf_SellOutBackBill_Fast.html" target="main_self_frame">销售出库(红字)</a></dd>-->
                      <!--<dd class ="layui-this"><a href="领料发货/其他出库/Kf_OtherOutBill_Fast.html" target="main_self_frame">其他出库</a></dd>
                      <dd class="layui-this"><a href="领料发货/其他出库/Kf_OtherOutBackBill_Fast.html" target="main_self_frame">其他出库(红字)</a></dd>-->
            <dd class="layui-this"><a href="领料发货/其他出库/Kf_OtherOutBackBill_Fast.html" target="main_self_frame">其他出库(红字)</a></dd>-->
                      <!--<dd><a lay-href="组装单/Sc_AssemblyBill_Fast.html">组装单</a></dd>-->
                     <!-- <dd><a>受托领料</a></dd>-->
                      <!-- <dd><a>受托领料</a></dd>-->
                  </dl>
              </li>
              <li data-name="template" class="layui-nav-item">
@@ -200,49 +214,49 @@
                      <dd><a href="验收入库/产品入库/Kf_ProductInBackBillList.html" target="main_self_frame">产品入库单红字缓存列表</a></dd>
                      <dd><a href="验收入库/其他入库/Kf_OtherInBackBill_FastList.html" target="main_self_frame">其他入库单红字缓存列表</a></dd>
                      <dd><a href="验收入库/外购入库/Kf_POStockInBackBillList.html" target="main_self_frame">外购入库单红字缓存列表</a></dd>
                      <dd><a href="验收入库/委外入库/Kf_EntrustInBackBillList.html" target="main_self_frame">委外入库单红字缓存列表</a></dd>
                      <dd><a href="验收入库/委外入库/Kf_EntrustInBackBillList.html" target="main_self_frame">委外入库单红字缓存列表</a></dd>
                  </dl>
              </li>
              <!--<li data-name="template" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="退货扫描" lay-direction="2">
                      <i class="layui-icon layui-icon-senior"></i>
                      <cite>退货扫描</cite>
                  </a>
              </li>-->
        <a href="javascript:;" lay-tips="退货扫描" lay-direction="2">
            <i class="layui-icon layui-icon-senior"></i>
            <cite>退货扫描</cite>
        </a>
    </li>-->
              <!--<li data-name="template" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="仓库调拨" lay-direction="2">
                      <i class="layui-icon layui-icon-user"></i>
                      <cite>仓库调拨</cite>
                  </a>
                  <dl class="layui-nav-child">
                      <dd><a href="仓库调拨/仓库调拨/Kf_MoveStockBill_Fast.html" target="main_self_frame">调拨单</a></dd>
                      <dd><a>领料调拨</a></dd>
                  </dl>
              </li>-->
        <a href="javascript:;" lay-tips="仓库调拨" lay-direction="2">
            <i class="layui-icon layui-icon-user"></i>
            <cite>仓库调拨</cite>
        </a>
        <dl class="layui-nav-child">
            <dd><a href="仓库调拨/仓库调拨/Kf_MoveStockBill_Fast.html" target="main_self_frame">调拨单</a></dd>
            <dd><a>领料调拨</a></dd>
        </dl>
    </li>-->
              <!--<li data-name="template" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="盘点调拨" lay-direction="2">
                      <i class="layui-icon layui-icon-set"></i>
                      <cite>盘点调拨</cite>
                  </a>
              </li>
              <li data-name="template" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="条码查询" lay-direction="2">
                      <i class="layui-icon layui-icon-template"></i>
                      <cite>条码查询</cite>
                  </a>
              </li>-->
            <!--<li data-name="set" class="layui-nav-item">
              <a href="javascript:;" lay-tips="设置" lay-direction="2">
                <i class="layui-icon layui-icon-set"></i>
                <cite>主控台</cite>
              </a>
            </li>-->
        <a href="javascript:;" lay-tips="盘点调拨" lay-direction="2">
            <i class="layui-icon layui-icon-set"></i>
            <cite>盘点调拨</cite>
        </a>
    </li>
    <li data-name="template" class="layui-nav-item">
        <a href="javascript:;" lay-tips="条码查询" lay-direction="2">
            <i class="layui-icon layui-icon-template"></i>
            <cite>条码查询</cite>
        </a>
    </li>-->
              <!--<li data-name="set" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="设置" lay-direction="2">
                      <i class="layui-icon layui-icon-set"></i>
                      <cite>基础资料</cite>
                  </a>
              </li>-->
      <a href="javascript:;" lay-tips="设置" lay-direction="2">
        <i class="layui-icon layui-icon-set"></i>
        <cite>主控台</cite>
      </a>
    </li>-->
              <!--<li data-name="set" class="layui-nav-item">
        <a href="javascript:;" lay-tips="设置" lay-direction="2">
            <i class="layui-icon layui-icon-set"></i>
            <cite>基础资料</cite>
        </a>
    </li>-->
              <li data-name="set" class="layui-nav-item">
                  <a href="javascript:;" lay-tips="设置" lay-direction="2">
                      <i class="layui-icon layui-icon-set"></i>
@@ -313,7 +327,7 @@
              var dd = '<dd><a href="工序汇报/MES_StationInBill_PDA.html">工序进站汇报单PDA</a ></dd > <dd><a href="工序汇报/MES_StationOutBill_PDA.html">工序出站汇报单PDA</a></dd>';
              $("#append").prepend(dd);
          } else {
              var dd = '<dd><a lay-href="工序汇报/MES_StationInBill.html" target="main_self_frame">工序进站汇报单</a ></dd > <dd><a lay-href="工序汇报/MES_StationOutBill.html" target="main_self_frame">工序出站汇报单</a></dd>';
              var dd = '<dd><a lay-href="工序汇报/MES_StationInBill_PDA.html" target="main_self_frame">工序进站汇报单</a ></dd > <dd><a lay-href="工序汇报/MES_StationOutBill_PDA.html" target="main_self_frame">工序出站汇报单</a></dd>';
              $("#append").prepend(dd);
          }
      });
WebTM/views/user/login.html
@@ -99,6 +99,16 @@
                                sessionStorage["HSupName"] = result.data[0].HSupName;
                                sessionStorage["Czmm"] = result.data[0].Czmm;
                                sessionStorage["Czybm"] = result.data[0].Czybm;
                                sessionStorage["HEmpID"] = result.data[0].HEmpID;
                                sessionStorage["HGroup"] = result.data[0].HGroup;
                                sessionStorage["HGroupID"] = result.data[0].HGroupID;
                                sessionStorage["HProc"] = result.data[0].HProc;
                                sessionStorage["HProcNo"] = result.data[0].HProcNo;
                                sessionStorage["HSource"] = result.data[0].HSource;
                                sessionStorage["HSourceID"] = result.data[0].HSourceID;
                                sessionStorage["HWorkCenter"] = result.data[0].HWorkCenter;
                                sessionStorage["HWorkCenterID"] = result.data[0].HWorkCenterID;
                                sessionStorage["HProcName"] = result.data[0].HProcName;
                                //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name");
                                window.location.href = '../../views/index.html'
@@ -132,7 +142,7 @@
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                layer.msg(result.Message, { icon: 1 });
                                sessionStorage["HUserName"] = UserName;
                                sessionStorage["HUserName"] = result.data[0].Czymc;;
                                sessionStorage["HBillerID"] = result.data[0].HK3UserID;
                                sessionStorage["SourceFlag"] = false;
                                sessionStorage["HKeeperID"] = result.data[0].HKeeperID;
@@ -149,6 +159,19 @@
                                sessionStorage["HSPName"] = result.data[0].HSPName;
                                sessionStorage["HSupID"] = result.data[0].HSupID;
                                sessionStorage["HSupName"] = result.data[0].HSupName;
                                sessionStorage["Czmm"] = result.data[0].Czmm;
                                sessionStorage["Czybm"] = result.data[0].Czybm;
                                sessionStorage["HEmpID"] = result.data[0].HEmpID;
                                sessionStorage["HGroup"] = result.data[0].HGroup;
                                sessionStorage["HGroupID"] = result.data[0].HGroupID;
                                sessionStorage["HProc"] = result.data[0].HProc;
                                sessionStorage["HProcNo"] = result.data[0].HProcNo;
                                sessionStorage["HSource"] = result.data[0].HSource;
                                sessionStorage["HSourceID"] = result.data[0].HSourceID;
                                sessionStorage["HWorkCenter"] = result.data[0].HWorkCenter;
                                sessionStorage["HWorkCenterID"] = result.data[0].HWorkCenterID;
                                sessionStorage["HProcName"] = result.data[0].HProcName;
                                //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name");
                                window.location.href = '../../views/index.html'
WebTM/views/¹¤Ðò»ã±¨/MES_StationInBillList.html
@@ -144,47 +144,44 @@
                ,height: 'full-50' 
                , page: true
                , cols: [[
                    //{ field: 'hmainid', title: 'hmainid', width: 85 }
                    { field: '日期', title: '日期', sort: true, width: 110 }
                    , { field: '订单跟踪号', title: '订单跟踪号', width: 110 }
                    , { field: '单据号', title: '单据号', sort: true, width: 165 }
                    , { field: '生产订单', title: '生产订单', width: 175 }
                    , { field: '流转卡号', title: '流转卡号', width: 170 }
                    //, { field: 'HMaterID', title: 'HMaterID', width: 95 }
                    , { field: '产品代码', title: '产品代码', width: 165 }
                    , { field: '产品名称', title: '产品名称', width: 160 }
                    , { field: '规格型号', title: '规格型号', width: 220 }
                    , { field: '计量单位', title: '计量单位', width: 95 }
                    , { field: '流水号', title: '流水号', width: 80 }
                    //, { field: 'HCenterID', title: 'HCenterID', width: 105 }
                    , { field: '工作中心', title: '工作中心', width: 95 }
                    //, { field: 'HProcID', title: 'HProcID', width: 90 }
                    , { field: '工序', title: '工序', width: 95 }
                    //, { field: 'HEmpID', title: 'HEmpID', width: 90 }
                    , { field: '接收人', title: '接收人', width: 80 }
                    , { field: '进站接收数量', title: '进站接收数量', width: 120 }
                    , { field: '进站时间', title: '进站时间', width: 182 }
                    , { field: '制单人', title: '制单人', width: 80 }
                    , { field: '制单日期', title: '制单日期', width: 182 }
                    , { field: '修改人', title: '修改人', width: 80 }
                    , { field: '修改日期', title: '修改日期', width: 182 }
                    , { field: '流转卡数量', title: '流转卡数量', width: 105 }
                    //{ field: 'HEmpID', title: 'HEmpID', sort: true, width: 110 }
                    //, { field: 'HGroupID', title: 'HGroupID', width: 110 }
                    //, { field: 'HMaterID', title: 'HMaterID', sort: true, width: 165 }
                    //, { field: 'HProcID', title: 'HProcID', width: 175 }
                    //, { field: 'HSourceID', title: 'HSourceID', width: 170 }
                    { field: '进站时间', title: '进站时间', width: 120 }
                    , { field: '任务单', title: '任务单', width: 80 }
                    , { field: '工序流转卡号', title: '工序流转卡号', width: 165 }
                    , { field: '产品代码', title: '产品代码', width: 100 }
                    , { field: '产品名称', title: '产品名称', width: 100 }
                    , { field: '规格型号', title: '规格型号', width: 100 }
                    , { field: '当前工序', title: '当前工序', width: 100 }
                    , { field: 'LOT数量', title: '订单数量', width: 100 }
                    , { field: '接收数量', title: '接收数量', width: 100 }
                    , { field: '生产班组', title: '生产班组', width: 100 }
                    , { field: '生产资源', title: '生产资源', width: 100 }
                    , { field: '操作员', title: '操作员', width: 100 }
                    //, { field: 'hmainid', title: 'hmainid', width: 160 }
                    //, { field: '当前工序代码', title: '当前工序代码', width: 80 }
                    //, { field: '操作员代码', title: '操作员代码', width: 80 }
                    //, { field: '生产班组代码', title: '生产班组代码', width: 80 }
                    //, { field: '生产资源代码', title: '生产资源代码', width: 105 }
                ]]
            };
            //进入页面显示的缓存列表
            $.ajax({
                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                url: GetWEBURL1() + '/LEMS/MES_StationInBillList_Json',
                url: GetWEBURL1() + '/api/newBill/getStationInBillList',
                type: "GET",
                data: { "sWhere": sWhere },
                success: function (data1) {
                    console.log(data1)
                    if (data1.count == 1) {
                        option.data = data1.data;
                    if (data1.code == 1) {
                        option.data = data1.data.h_v_MES_StationInBillList;
                        table.render(option);
                    } else {
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                        layer.alert(data1.code + data1.msg, { icon: 5 });
                    }
                }, error: function () {
                    layer.msg("接口请求失败!", {
@@ -248,16 +245,16 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/LEMS/MES_StationInBillList_Json',
                    url: GetWEBURL1() + '/api/newBill/getStationInBillList',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
                        if (data1.code == 1) {
                            option.data = data1.data.h_v_MES_StationInBillList;
                            table.render(option);
                            layer.alert("查询成功", { icon: 1 });
                        } else {
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                            layer.alert(data1.code + data1.msg, { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口失效!", { icon: 5 });
WebTM/views/¹¤Ðò»ã±¨/MES_StationInBill_PDA.html
@@ -97,7 +97,7 @@
                                        <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请输入进站数量">
                                    </td>
                                </tr>
                                <tr>
                                <tr style="display:none;">
                                    <th>生产资源</th>
                                    <td class="bz_td">
                                        <input type="text" name="HSource" class="layui-input" id="HSource" placeholder="选择生产资源" style="background-color:#efefef4d;" readonly>
@@ -214,15 +214,26 @@
            //获取当前时间处理
            $("#HStationInTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);
            $("#HEmpID").val(sessionStorage["Czybm"]);
            $("#HEmp").val(sessionStorage["HUserName"]);//创建人
            $("#HEmpID").val(sessionStorage["HEmpID"]);
            $("#HProc").val(sessionStorage["HProc"]);//工序
            $("#HProcID").val(sessionStorage["HProcName"]);
            $("#HSource").val(sessionStorage["HSource"]);//生产资源
            $("#HSourceID").val(sessionStorage["HSourceID"]);
            $("#HGroup").val(sessionStorage["HGroup"]);//生产班组
            $("#HGroupID").val(sessionStorage["HGroupID"]);
            $("#HCenter").val(sessionStorage["HWorkCenter"]);//工作中心
            $("#HCenterID").val(sessionStorage["HWorkCenterID"]);
            $("#HProcNo").val(sessionStorage["HProcNo"]);//流水号
            //页面初始化赋值
            //获取单据号
            $.ajax({
                url: GetWEBURL() + "/api/newBill/getNewInterBillNo",
                type: "GET",
                //data: { "HBillType": '3790' },
                data: { "billType": '3790' },
                success: function (d) {
                    $("#HBillNo").val(d.data.HBillNo);//进站单号
                    $("#HInterID").val(d.data.HInterID);//进站单号ID
@@ -233,10 +244,6 @@
            $("#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");//进站数量只读
            $("#Entrants_number").css("background-color", "#efefef4d");
            //扫条形码方法
@@ -248,7 +255,6 @@
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    //
                    $.ajax({
                        url: GetWEBURL() + "api/newBill/getHbarCodeDetail",
                        type: "GET",
@@ -256,19 +262,19 @@
                            "sBillBarCode": HBarCode
                        },
                        success: function (result) {
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "HProcExchBillNo": $("#HBarCode").val()
                                    , "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    //, "HProcID": data.HProcID
                                    //, "HProc": data.工序
                                    //, "HCenter": data.工作中心
                                    //, "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterID": data.HMaterID
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
@@ -277,12 +283,8 @@
                                //$("#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' });
                                layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("扫条形码方法发生错误!", { icon: 5 });
@@ -311,15 +313,15 @@
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                     "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                     //"HProcID": data.HProcID
                                    //, "HProc": data.工序
                                    //, "HCenter": data.工作中心
                                    //, "HCenterID": data.工作中心代码
                                     "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterID": data.HMaterID
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
@@ -327,7 +329,7 @@
                                $("#HProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                                layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("流水号方法发生错误!", { icon: 5 });
@@ -402,12 +404,10 @@
            form.on('submit(Saver)', function (data) {//提交
                //debugger;
                var sMainStr =data.field;
                console.log(sMainStr);
                $.ajax(
                    {
                        type: "POST",
                        //url: GetWEBURL() + "/api/newBill/setStationInBill", //方法所在页面和方法名
                        url: "http://localhost:12761/api/newBill/setStationInBill",
                        url: GetWEBURL() + "/api/newBill/setStationInBill", //方法所在页面和方法名
                        async: true,
                        data: sMainStr,
                        dataType: "json",
@@ -434,16 +434,16 @@
            //退出按钮
            form.on('submit(Close)', function (data) {//退出
                layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.layui.admin.events.closeThisTabs();
                    parent.location.href = "../../views/index.html";
                });
            });
            //新增按钮
            //form.on('submit(HAddBT)', function (data) {//退出
            //    layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
            //        window.location.reload();
            //    });
            //});
            form.on('submit(HAddBT)', function (data) {//退出
                layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
                    window.location.reload();
                });
            });
@@ -460,10 +460,11 @@
        //校验是否选择弹窗事件
        function checkPopup() {
            if (!$("#HSource").val()) {
                $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#HGroup").val()) {
            //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()) {
@@ -484,6 +485,7 @@
            }
        }
        //返回生产资源
        function GetProductionResourcesValue(obj) {  //返回生产资源
            if ($("#HSource").val()) {
                $("#HSource").css("box-shadow", "none");
@@ -497,9 +499,9 @@
        //返回工作中心
        function GetWorkCenterValue(obj) {  //返回工作中心
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
                layer.msg("请先选择工作中心", { index: 0 });
            } else {
                $("#HCenter").val(obj[0].生产班组);
                $("#HCenter").val(obj[0].工作中心);
                $("#HCenterID").val(obj[0].HItemID);
                $("#HCenter").css("box-shadow", "none");
                checkPopup();
WebTM/views/¹¤Ðò»ã±¨/MES_StationOutBill.html
@@ -8,451 +8,201 @@
    <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="HBarCode" class="layui-input" id="HBarCode" placeholder="请输入条形码" style="border-radius: 50px;">
                                    </td>
                                </tr>
                                <tr>
                                    <th>流转卡号</th>
                                    <td class="t1_input">
                                        <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="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="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="HProc" class="layui-input" id="HProc" placeholder="请输入工序名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>创建人</th>
                                    <td class="t1_input">
                                        <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="HQty" class="layui-input" id="HQty" placeholder="请输入合格数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>工时</th>
                                    <td class="t1_input">
                                        <input type="text" name="HWorkTimes" class="layui-input" id="HWorkTimes" placeholder="请输入工时">
                                    </td>
                                </tr>
                                <tr>
                                    <th>报废数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="HWasterQty" class="layui-input" id="HWasterQty" placeholder="请输入报废数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产资源</th>
                                    <td class="bz_td">
                                        <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="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="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>
                                <tr>
                                    <th>检验员</th>
                                    <td class="bz_td">
                                        <input type="text" name="HQCCheck" class="layui-input" id="HQCCheck" placeholder="选择检验员" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HQCCheckID" id="HQCCheckID" 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="HBillNo" class="layui-input" id="HBillNo" placeholder="请输入出站单号" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HInterID" class="layui-input" id="HInterID">
                                    </td>
                                </tr>
                                <tr>
                                    <th>日期</th>
                                    <td class="t1_input">
                                        <input type="date" name="HStationOutTime" class="layui-input" id="HStationOutTime" placeholder="请选择日期">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单</th>
                                    <td class="t1_input">
                                        <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="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="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="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="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="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>
                        </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 +225,128 @@
            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;
            $("#HStationOutTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);
            $("#HEmpID").val(sessionStorage["Czybm"]);
            //页面初始化赋值
            //获取单据号
            $.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");
            $("#HBarCode").focus();
            $("#HBarCode").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();
            $('#HBarCode').on('keydown', function (event) {   //扫条形码
                var HBarCode = $('#HBarCode').val();//条形码(流转卡号)(数据库中为单据号)
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (HFbarcode == "") {
                    if (HBarCode == "") {
                        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": HBarCode
                        },
                        success: function (result) {
                            var data = result.data;
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                                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()
                                    "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.订单跟踪号
                                });
                                $("#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");
                                //$("#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 {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                                layer.alert(result.msg, { 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();
            $('#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;
                    }
                    $.ajax({
                        url: GetWEBURL() + "/LEMS/TxtHProcNo_KeyDown",
                        url: GetWEBURL() + "/api/newBill/getProcDetail",
                        type: "GET",
                        data: {
                            "sProcNo": sProcNo
                            , "sBillNo": sBillNo
                            "sBillNo": HBarCode
                            , "sProcNo": HProcNo
                        },
                        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()
                                    "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.生产数量
                                });
                                $("#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");
                                $("#HProcNo").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 () {
@@ -637,41 +357,88 @@
            });
            //合格数量回车方法
            $('#QualifiedQuantity').on('keydown', function (event) {
            $('#HQty').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");
                    $("#HQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //工时回车方法
            $('#HWorkTimes').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWorkTimes").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //报废数量回车方法
            $('#ScrapQuantity').on('keydown', function (event) {
            $('#HWasterQty').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");
                    }
                    $("#HWasterQty").css("box-shadow", "none");
                    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) {//选择检验员
                var sMainStr = JSON.stringify(data.field);
                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,103 +446,136 @@
                })
            });
            //选择生产组织弹窗
            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 = data.field;
                console.log(sMainStr);
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/api/newBill/setStationOutBill", //方法所在页面和方法名
                        //url:"http://localhost:12761/api/newBill/setStationOutBill",
                        async: true,
                        data: sMainStr,
                        dataType: "json",
                        success: function (result) {
                            console.log(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 });
                        }
                    });
            });
            //退出按钮
            form.on('submit(Close)', function (data) {//退出
                layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.layui.admin.events.closeThisTabs();
                    parent.location.href = "../../views/index.html";
                });
            });
            //待接收工单页签
            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");
                }
            //新增按钮
            form.on('submit(HAddBT)', function (data) {//退出
                layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
                    window.location.reload();
                });
            });
            //今日进站页签
            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");
                }
            });
            //以上为layui模块
        });
        //原生js初始化
        $(function () {
        });
        function GetOrgValue(obj)  //返回生产组织
        {
            $("#HOrganization").val(obj[0].HName);
            $("#HOrganizationID").val(obj[0].HNumber);
        //校验是否选择弹窗事件
        function checkPopup() {
            if (!$("#HQty").val()) {
                $("#HQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HQty").focus();
            }
            else if (!$("#HWorkTimes").val()) {
                $("#HWorkTimes").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HWorkTimes").focus();
            }
            else if (!$("#HWasterQty").val()) {
                $("#HWasterQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HWasterQty").focus();
            }
            else if (!$("#HSource").val()) {
                $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HSource").focus();
            }
            else if (!$("#HGroup").val()) {
                $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HGroup").focus();
            }
            else if (!$("#HCenter").val()) {
                $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HCenter").focus();
            }
        }
        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 {
                $("#HGroup").val(obj[0].班组);
                $("#HGroupID").val(obj[0].HItemID);
                $("#HGroup").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
        //function GetHDeptNameValue(obj)  //返回部门
        //{
        //    $("#HDeptName").val(obj[0].HName);
        //    $("#HDeptID").val(obj[0].HItemID);
        //}
        //返回生产资源
        function GetProductionResourcesValue(obj) {  //返回生产资源
            if ($("#HSource").val()) {
                $("#HSource").css("box-shadow", "none");
            }
            $("#HSource").val(obj[0].生产资源);
            $("#HSourceID").val(obj[0].HItemID);
            $("#HSource").css("box-shadow", "none");
            checkPopup();
        }
        //返回工作中心
        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();
            }
        }
        //返回检验员
        function GetHSecManagerValue(obj) {  //返回检验员
            $("#HQCCheck").val(obj[0].HName);
            $("#HQCCheckID").val(obj[0].HItemID);
        }
    </script>
WebTM/views/¹¤Ðò»ã±¨/MES_StationOutBillList.html
@@ -106,68 +106,44 @@
                ,height: 'full-50' 
                , page: true
                , cols: [[
                    { field: '选择', title: '选择', width: 110 }
                    //, { field: 'hmainid', title: 'hmainid', width: 110 }
                    , { field: '日期', title: '日期', sort: true, width: 165 }
                    , { field: '审核人', title: '审核人', width: 175 }
                    , { field: '检验员', title: '检验员', width: 170 }
                    , { field: '任务单', title: '任务单', width: 165 }
                    , { field: '工序流转卡号', title: '工序流转卡号', width: 160 }
                    //, { field: 'HProcExchInterID', title: 'HProcExchInterID', width: 220 }
                    , { field: '客户条码', title: '客户条码', width: 95 }
                    , { field: '客户条码NEW', title: '客户条码NEW', width: 80 }
                    , { field: '批次号', title: '批次号', width: 95 }
                    , { field: '单据号', title: '单据号', width: 95 }
                    //, { field: 'HProcID', title: 'HProcID', width: 80 }
                    , { field: '当前工序代码', title: '当前工序代码', width: 120 }
                    , { field: '当前工序', title: '当前工序', width: 182 }
                    //, { field: 'HMaterID', title: 'HMaterID', width: 80 }
                    , { field: '产品代码', title: '产品代码', width: 182 }
                    , { field: '产品名称', title: '产品名称', width: 80 }
                    , { field: '规格型号', title: '规格型号', width: 182 }
                    //, { field: 'HunitID', title: 'HunitID', width: 105 }
                    , { field: '计量单位代码', title: '计量单位代码', width: 105 }
                    , { field: '计量单位', title: '计量单位', width: 105 }
                    , { field: '模穴号', title: '模穴号', width: 105 }
                    , { field: '物料辅助1', title: '物料辅助1', width: 105 }
                    , { field: '物料辅助2', title: '物料辅助2', width: 105 }
                    , { field: '出站时间', title: '出站时间', width: 105 }
                    //, { field: 'HEmpID', title: 'HEmpID', width: 105 }
                    , { field: '操作员代码', title: '操作员代码', width: 105 }
                    , { field: '操作员', title: '操作员', width: 105 }
                    //, { field: 'HSourceID', title: 'HSourceID', width: 105 }
                    , { field: '生产资源代码', title: '生产资源代码', width: 105 }
                    , { field: '生产资源', title: '生产资源', width: 105 }
                    //, { field: 'HGroupID', title: 'HGroupID', width: 105 }
                    , { field: '生产班组代码', title: '生产班组代码', width: 105 }
                    , { field: '生产班组', title: '生产班组', width: 105 }
                    , { field: '任务数量', title: '任务数量', width: 105 }
                    , { field: '数量', title: '数量', width: 105 }
                    , { field: '出站数量', title: '出站数量', width: 105 }
                    , { field: '工时', title: '工时', width: 105 }
                    , { field: '制单人', title: '制单人', width: 105 }
                    , { field: '制单日期', title: '制单日期', width: 105 }
                    , { field: '审核日期', title: '审核日期', width: 105 }
                    //, { field: 'HSubID', title: 'HSubID', width: 105 }
                    , { field: '表头备注', title: '表头备注', width: 105 }
                    //, { field: 'HBillType', title: 'HBillType', width: 105 }
                    , { field: '单据类型', title: '单据类型', width: 105 }
                    { field: '出站时间', title: '出站时间', width: 120 }
                    , { field: '任务单', title: '任务单', width: 80 }
                    , { field: '工序流转卡号', title: '工序流转卡号', width: 165 }
                    , { field: '产品代码', title: '产品代码', width: 100 }
                    , { field: '产品名称', title: '产品名称', width: 100 }
                    , { field: '规格型号', title: '规格型号', width: 100 }
                    , { field: '当前工序', title: '当前工序', width: 100 }
                    , { field: 'LOT数量', title: '订单数量', width: 100 }
                    , { field: '接收数量', title: '接收数量', width: 100 }
                    , { field: '生产班组', title: '生产班组', width: 100 }
                    , { field: '生产资源', title: '生产资源', width: 100 }
                    , { field: '操作员', title: '操作员', width: 100 }
                    //,{ field: 'HEmpID', title: 'HEmpID', width: 110 }
                    //, { field: 'HGroupID', title: 'HGroupID', sort: true, width: 165 }
                    //, { field: 'HMaterID', title: 'HMaterID', width: 175 }
                    //, { field: 'HProcID', title: 'HProcID', width: 170 }
                    //, { field: 'HSourceID', title: 'HSourceID', width: 165 }
                    //, { field: 'hmainid', title: 'hmainid', width: 95 }
                    //, { field: '当前工序代码', title: '当前工序代码', width: 80 }
                    //, { field: '接收数量', title: '接收数量', width: 182 }
                    //, { field: '操作员代码', title: '操作员代码', width: 105 }
                    //, { field: '生产班组代码', title: '生产班组代码', width: 105 }
                    //, { field: '生产资源代码', title: '生产资源代码', width: 105 }
                ]]
            };
            //进入页面显示的缓存列表
            $.ajax({
                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                url: GetWEBURL1() + '/LEMS/MES_StationOutBillList_Json',
                url: GetWEBURL1() + '/api/newBill/getStationOutBillList',
                type: "GET",
                data: { "sWhere": sWhere },
                success: function (data1) {
                    console.log(data1)
                    if (data1.count == 1) {
                        option.data = data1.data;
                    if (data1.code == 1) {
                        option.data = data1.data.h_v_MES_StationOutBillList;
                        table.render(option);
                    } else {
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                        layer.alert(data1.code + data1.msg, { icon: 5 });
                    }
                }, error: function () {
                    layer.msg("接口请求失败!", {
@@ -201,19 +177,19 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/LEMS/MES_StationOutBillList_Json',
                    url: GetWEBURL1() + '/api/newBill/getStationOutBillList',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
                        if (data1.code == 1) {
                            option.data = data1.data.h_v_MES_StationOutBillList;
                            table.render(option);
                            layer.alert("查询成功", { icon: 1 });
                        } else {
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                            layer.alert(data1.code + data1.msg, { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口失效!", { icon: 5 });
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
                sWhere = "";//调用接口后清空sWhere缓存
WebTM/views/¹¤Ðò»ã±¨/MES_StationOutBill_PDA.html
@@ -57,136 +57,140 @@
                                <tr>
                                    <th>条形码</th>
                                    <td class="t1_input">
                                        <input type="text" name="条形码" 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="流水号" 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="请输入合格数量">
                                        <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请输入合格数量">
                                    </td>
                                </tr>
                                <tr>
                                <tr style="display:none;">
                                    <th>工时</th>
                                    <td class="t1_input">
                                        <input type="text" name="工时" class="layui-input" id="工时" placeholder="请输入工时">
                                        <input type="text" name="HWorkTimes" class="layui-input" id="HWorkTimes" placeholder="请输入工时">
                                    </td>
                                </tr>
                                <tr>
                                <tr style="display:none;">
                                    <th>报废数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="报废数量" class="layui-input" id="报废数量" placeholder="请输入报废数量">
                                        <input type="text" name="HWasterQty" class="layui-input" id="HWasterQty" placeholder="请输入报废数量">
                                    </td>
                                </tr>
                                <tr>
                                <tr style="display:none;">
                                    <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="WorkCenter" placeholder="选择工作中心" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="工作中心ID" id="WorkCenterID" 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>
                                <tr>
                                <tr style="display:none;">
                                    <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">
                                        <input type="text" name="HQCCheck" class="layui-input" id="HQCCheck" placeholder="选择检验员" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HQCCheckID" id="HQCCheckID" 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">
                                        <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="请输入出站单号" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HInterID" 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="请选择日期">
                                        <input type="date" name="HStationOutTime" class="layui-input" id="HStationOutTime" 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>
@@ -229,15 +233,25 @@
                , form = layui.form;
            //获取当前时间处理
            $("#HDateNow").val(Format(new Date(), "yyyy-MM-dd"));
            $("#创建人").val(sessionStorage["HUserName"]);
            $("#HStationOutTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);//创建人
            $("#HEmpID").val(sessionStorage["HEmpID"]);
            $("#HProc").val(sessionStorage["HProc"]);//工序
            $("#HProcID").val(sessionStorage["HProcName"]);
            $("#HSource").val(sessionStorage["HSource"]);//生产资源
            $("#HSourceID").val(sessionStorage["HSourceID"]);
            $("#HGroup").val(sessionStorage["HGroup"]);//生产班组
            $("#HGroupID").val(sessionStorage["HGroupID"]);
            $("#HCenter").val(sessionStorage["HWorkCenter"]);//工作中心
            $("#HCenterID").val(sessionStorage["HWorkCenterID"]);
            $("#HProcNo").val(sessionStorage["HProcNo"]);//流水号
            //页面初始化赋值
            //获取单据号
            $.ajax({
                url: GetWEBURL() + "/api/newBill/getNewInterBillNo",
                type: "GET",
                //data: { "HBillType": '3790' },
                data: { "HBillType": '3791' },
                success: function (d) {
                    $("#HBillNo").val(d.data.HBillNo);//进站单号
                    $("#HInterID").val(d.data.HInterID);//进站单号ID
@@ -246,20 +260,16 @@
                }
            });
            $("#sBillBarCode").focus();
            $("#sBillBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#Serial_number").attr("readonly", "readonly");//流水号只读
            $("#Serial_number").css("background-color", "#efefef4d");
            $("#Entrants_number").attr("readonly", "readonly");//进站数量只读
            $("#Entrants_number").css("background-color", "#efefef4d");
            $("#HBarCode").focus();
            $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            //扫条形码方法
            $('#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;
                    }
@@ -268,30 +278,32 @@
                        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.规格型号
                                    , "生产订单数量": 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.HMaterID
                                    , "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");
                            } else {
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                                layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("扫条形码方法发生错误!", { icon: 5 });
@@ -301,11 +313,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;
                    }
@@ -313,22 +325,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) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "工序代码": data.工序代码
                                    , "工序名称": 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.HMaterID
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                });
                                $("#sProcNo").css("box-shadow", "none");
                                $("#HProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
@@ -340,15 +358,28 @@
                }
            });
            //合格数量回车方法
            $('#HQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //工时回车方法
            $('#工时').on('keydown', function (event) {
                checkPopup();
            $('#HWorkTimes').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWorkTimes").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //报废数量回车方法
            $('#报废数量').on('keydown', function (event) {
                $('#报废数量').blur();
                checkPopup();
            $('#HWasterQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWasterQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //选择生产班组弹窗
@@ -401,6 +432,7 @@
            //选择检验员
            form.on('submit(HSecManagerID-BT)', function (data) {//选择检验员
                var sMainStr = JSON.stringify(data.field);
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -419,16 +451,17 @@
            //保存按钮
            form.on('submit(Saver)', function (data) {//提交
                //debugger;
                var sMainStr = JSON.stringify(data.field);
                console.log(sMainStr);
                var sMainStr = data.field;
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/test", //方法所在页面和方法名
                        url: GetWEBURL() + "/api/newBill/setStationOutBill", //方法所在页面和方法名
                        //url:"http://localhost:12761/api/newBill/setStationOutBill",
                        async: true,
                        data: { "oMain": sMainStr },
                        data: sMainStr,
                        dataType: "json",
                        success: function (result) {
                            console.log(result);
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#sHWHID").val("");
                                layer.alert(result.msg + "单号为:" + $("#HBillNo").val(), { icon: 1 }, function () {
@@ -450,16 +483,16 @@
            //退出按钮
            form.on('submit(Close)', function (data) {//退出
                layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.layui.admin.events.closeThisTabs();
                    parent.location.href = "../../views/index.html";
                });
            });
            //新增按钮
            //form.on('submit(HAddBT)', function (data) {//退出
            //    layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
            //        window.location.reload();
            //    });
            //});
            form.on('submit(HAddBT)', function (data) {//退出
                layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
                    window.location.reload();
                });
            });
@@ -474,33 +507,31 @@
        });
        //提示是否选择弹窗事件及是否输入工时和合格数量
        //校验是否选择弹窗事件
        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");
            if (!$("#HQty").val()) {
                $("#HQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HQty").focus();
            }
            else if (!$("#报废数量").val()) {
                $("#报废数量").focus();
                $("#报废数量").css("box-shadow", "0 0 1px 2px #00ff00");
            //else if (!$("#HWorkTimes").val()) {//工时
            //    $("#HWorkTimes").css("box-shadow", "0 0 0 1px #00ff00");
            //    $("#HWorkTimes").focus();
            //}
            //else if (!$("#HWasterQty").val()) {//报废数量
            //    $("#HWasterQty").css("box-shadow", "0 0 0 1px #00ff00");
            //    $("#HWasterQty").focus();
            //}
            //else if (!$("#HSource").val()) {//生产资源
            //    $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00");
            //    $("#HSource").focus();
            //}
            else if (!$("#HGroup").val()) {
                $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HGroup").focus();
            }
            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");
            else if (!$("#HCenter").val()) {
                $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HCenter").focus();
            }
        }
@@ -509,9 +540,9 @@
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#ProductionTeam").val(obj[0].班组);
                $("#ProductionTeamID").val(obj[0].HItemID);
                $("#ProductionTeam").css("box-shadow", "none");
                $("#HGroup").val(obj[0].班组);
                $("#HGroupID").val(obj[0].HItemID);
                $("#HGroup").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
@@ -519,12 +550,12 @@
        //返回生产资源
        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();
        }
@@ -533,9 +564,9 @@
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#WorkCenter").val(obj[0].生产班组);
                $("#WorkCenterID").val(obj[0].HItemID);
                $("#WorkCenter").css("box-shadow", "none");
                $("#HCenter").val(obj[0].工作中心);
                $("#HCenterID").val(obj[0].HItemID);
                $("#HCenter").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
@@ -543,12 +574,11 @@
        //返回检验员
        function GetHSecManagerValue(obj) {  //返回检验员
            $("#Employee").val(obj[0].HName);
            $("#EmployeeID").val(obj[0].HNumber);
            $("#Employee").css("box-shadow", "none");
            checkPopup();
            $("#HQCCheck").val(obj[0].HName);
            $("#HQCCheckID").val(obj[0].HItemID);
        }
    </script>
</body>
</html>
WebTM/views/Éú²ú¹ÜÀí/Éú²úÈÎÎñµ¥/Sc_ICMOBillList.html
New file
@@ -0,0 +1,259 @@
<!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, 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>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-col-md12">
            <div class="layui-card" style="padding: 1px">
                <div class="layui-card-body" style="padding: 1px;">
                    <form class="layui-form" action="" lay-filter="component-form-group">
                        <div class="layui-collapse">
                            <div class="layui-colla-item">
                                <div class="layui-colla-title layui-inline">
                                    <div class="layui-inline">
                                        <span>更多</span>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">开始日期</label>
                                    <div class="layui-input-block">
                                        <input type="date" class="layui-input" id="HDate">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">结束日期</label>
                                    <div class="layui-input-block">
                                        <input type="date" class="layui-input" id="HDate1">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">订单跟踪号</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO">
                                    </div>
                                </div>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                </button>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                                <div class="layui-colla-content">
                                    <div class="layui-inline">
                                        <div class="layui-inline">
                                            <span>其他条件></span>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单据号</label>
                                        <div class="layui-input-block">
                                            <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <table class="" id="mainTable" lay-filter="mainTable"></table>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>预览</button>-->
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>刷新</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳回</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详情</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>生成送货单</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>退出</button>
                            </div>
                        </script>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage','laydate'], function () {
            var $ = layui.$
            , admin = layui.admin
            , layer = layui.layer
            , table = layui.table
            , form = layui.form
            , element = layui.element
            , laypage = layui.laypage
            , laydate = layui.laydate
            //var sWhere = " äº§å“ä»£ç  = 'BX0002'";
            var sWhere = "";
            var option = {
                elem: '#mainTable'
                //, toolbar: '#toolbarDemo'
                ,height: 'full-50'
                , page: true
                ,cellMinWidth: 90
                , cols: [[
                    //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
                    { field: '日期', title: '日期', sort: true, width: 120 }
                    , { field: '单据号', title: '单据号', sort: true, width: 170 }
                    , { field: '订单跟踪号', title: '订单跟踪号', width: 105 }
                    //, { field: 'HDeptID', title: 'HDeptID' }
                    , { field: '生产车间代码', title: '生产车间代码', width: 115 }
                    , { field: '生产车间', title: '生产车间', width: 115 }
                    //, { field: 'HMaterID', title: 'HMaterID' }
                    , { field: '产品代码', title: '产品代码', width: 160 }
                    , { field: '产品名称', title: '产品名称', width: 160 }
                    , { field: '规格型号', title: '规格型号', width: 215 }
                    //, { field: 'hunitid', title: 'hunitid' }
                    , { field: '计量单位代码', title: '计量单位代码', width: 115 }
                    , { field: '计量单位', title: '计量单位' }
                    //, { field: 'hempid', title: 'hempid' }
                    , { field: '业务员代码', title: '业务员代码', width: 100 }
                    , { field: '业务员', title: '业务员' }
                    , { field: 'hcusid', title: 'hcusid' }
                    , { field: '客户代码', title: '客户代码' }
                    , { field: '客户', title: '客户' }
                    //, { field: 'HCenterID', title: 'HCenterID' }
                    , { field: '工作中心代码', title: '工作中心代码' }
                    , { field: '工作中心', title: '工作中心' }
                    //, { field: 'hbomid', title: 'hbomid' }
                    , { field: 'BOM单编码', title: 'BOM单编码' }
                    //, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
                    , { field: '工艺路线代码', title: '工艺路线代码' }
                    , { field: '工艺路线', title: '工艺路线' }
                    , { field: '计划开工日期', title: '计划开工日期' }
                    , { field: '计划完工日期', title: '计划完工日期' }
                    , { field: '最迟开工日期', title: '最迟开工日期' }
                    , { field: '最迟完工日期', title: '最迟完工日期' }
                    , { field: '齐套数量', title: '齐套数量' }
                    , { field: '计划生产数量', title: '计划生产数量' }
                    , { field: '关联数量', title: '关联数量' }
                    , { field: '未关联数量', title: '未关联数量' }
                    , { field: '表头备注', title: '表头备注' }
                    //, { field: 'hsubid', title: 'hsubid' }
                    , { field: '源单单号', title: '源单单号' }
                    , { field: '源单主内码', title: '源单主内码' }
                    , { field: '源单子内码', title: '源单子内码' }
                    , { field: '制单人', title: '制单人' }
                    , { field: '制单日期', title: '制单日期' }
                    , { field: '审核人', title: '审核人' }
                    , { field: '审核日期', title: '审核日期' }
                    , { field: '修改人', title: '修改人' }
                    , { field: '修改日期', title: '修改日期' }
                    , { field: '关闭人', title: '关闭人' }
                    , { field: '关闭日期', title: '关闭日期' }
                    , { field: '作废人', title: '作废人' }
                    , { field: '作废日期', title: '作废日期' }
                    , { field: '行关闭人', title: '行关闭人' }
                    , { field: '关闭类型', title: '关闭类型' }
                    , { field: '单据类型', title: '单据类型' }
                    , { field: '计划跟踪号', title: '计划跟踪号' }
                ]]
            };
            //进入页面显示的缓存列表
            var index0 = layer.load(0, { shade: false });
            $.ajax({
                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                url: GetWEBURL() + '/LEMS/MES_IF_ICMOBillList_Json',
                type: "GET",
                data: { "sWhere": sWhere },
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
                        table.render(option);
                        layer.close(index0);
                    } else {
                        layer.close(index0);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(index0);
                    layer.alert("接口请求失败!", { icon: 5 });
                }
            });
            //重置按钮
            form.on('submit(btnReSearch)', function (data) {
                $("#HDate").val("");//开始日期
                $("#HDate1").val("");//结束日期
                $("#HOrderProcNO").val("");//订单跟踪号
                $("#WorkCenter").val("");//单据号
                $("#btnSearch").click();
            });
            //查询按钮
            form.on('submit(btnSearch)', function (data) {//选择仓位
                var HDate = $("#HDate").val();//开始日期
                var HDate1 = $("#HDate1").val();//结束日期
                var HOrderProcNO = $("#HOrderProcNO").val();//订单跟踪号
                var WorkCenter = $("#WorkCenter").val();//单据号
                if (HDate) {
                    sWhere += " and æ—¥æœŸ >= '" + HDate + "'";
                }
                if (HDate1) {
                    sWhere += " and æ—¥æœŸ <= '" + HDate1 + "'";
                }
                if (HOrderProcNO) {
                    sWhere += " and è®¢å•跟踪号 like '%" + HOrderProcNO + "%'";
                }
                if (WorkCenter) {
                    sWhere += " and å•据号 like '%" + WorkCenter + "%'";
                }
                var index = layer.load(0, { shade: false });
                $.ajax({
                    url: GetWEBURL() + '/LEMS/MES_IF_ICMOBillList_Json',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
                            table.render(option);
                            layer.close(index);
                            layer.alert("查询成功", { icon: 1 });
                        } else {
                            layer.close(index);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.close(index);
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
                sWhere = "";//调用接口后清空sWhere缓存
            });
            //laydate.render({
            //    elem: '#HDate'
            //    , type: 'datetime'
            //    , trigger: 'click'
            //    , format:'yyyy-MM-dd HH:mm'
            //});
            //以上是layui模块
        });
    </script>
</body>
</html>
WebTM/views/¼Æ»®¹ÜÀí/¹¤ÒÕ·Ïß/Gy_RoutingBillList.html
New file
@@ -0,0 +1,232 @@
<!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, 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>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-col-md12">
            <div class="layui-card" style="padding: 1px">
                <div class="layui-card-body" style="padding: 1px;">
                    <form class="layui-form" action="" lay-filter="component-form-group">
                        <div class="layui-collapse">
                            <div class="layui-colla-item">
                                <div class="layui-colla-title layui-inline">
                                    <div class="layui-inline">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">单据号</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">物料</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="hnumber" id="hnumber">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">单据类型</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO">
                                    </div>
                                </div>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                </button>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                            </div>
                        </div>
                        <table class="" id="mainTable" lay-filter="mainTable"></table>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>预览</button>-->
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>刷新</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳回</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详情</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>生成送货单</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>退出</button>
                            </div>
                        </script>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage','laydate'], function () {
            var $ = layui.$
            , admin = layui.admin
            , layer = layui.layer
            , table = layui.table
            , form = layui.form
            , element = layui.element
            , laypage = layui.laypage
            , laydate = layui.laydate
            //var sWhere = " äº§å“ä»£ç  = 'BX0002'";
            var sWhere = "";
            var option = {
                elem: '#mainTable'
                //, toolbar: '#toolbarDemo'
                ,height: 'full-50'
                , page: true
                ,cellMinWidth: 90
                , cols: [[
                    //{ field: 'hmainid', title: 'hmainid', width: 110 }
                    { field: '单据号', title: '单据号', sort: true, width: 165 }
                    , { field: '单据类型', title: '单据类型' }
                    , { field: '工艺名称', title: '工艺名称', width: 170 }
                    //, { field: 'hmaterid', title: 'hmaterid', width: 165 }
                    , { field: '物料代码', title: '物料代码', width: 160 }
                    , { field: '物料名称', title: '物料名称', width: 160 }
                    , { field: '规格型号', title: '规格型号', width: 215 }
                    , { field: '计量单位代码', title: '计量单位代码', width: 115 }
                    , { field: '计量单位', title: '计量单位' }
                    , { field: '默认工艺', title: '默认工艺' }
                    , { field: '表头备注', title: '表头备注' }
                    //, { field: 'hsubid', title: 'hsubid', width: 80 }
                    , { field: '工序号', title: '工序号' }
                    , { field: '委外标记', title: '委外标记' }
                    //, { field: 'hprocid', title: 'hprocid', width: 105 }
                    , { field: '工序代码', title: '工序代码' }
                    , { field: '工序', title: '工序' }
                    //, { field: 'HSupID', title: 'HSupID', width: 105 }
                    , { field: '供应商代码', title: '供应商代码' }
                    , { field: '供应商', title: '供应商' }
                    //, { field: 'HCenterID', title: 'HCenterID', width: 105 }
                    , { field: '工作中心代码', title: '工作中心代码', width: 115 }
                    , { field: '工作中心名称', title: '工作中心名称', width: 115 }
                    , { field: '时间单位', title: '时间单位' }
                    , { field: '运行时间', title: '运行时间' }
                    , { field: '加工数量', title: '加工数量' }
                    , { field: '准备时间', title: '准备时间' }
                    , { field: '排队时间', title: '排队时间' }
                    , { field: '转移时间', title: '转移时间' }
                    , { field: '良率', title: '良率' }
                    , { field: '累计良率', title: '累计良率' }
                    , { field: '表体备注', title: '表体备注' }
                    , { field: '制单人', title: '制单人' }
                    , { field: '制单日期', title: '制单日期' }
                    , { field: '审核人', title: '审核人' }
                    , { field: '审核日期', title: '审核日期' }
                    , { field: '修改人', title: '修改人' }
                    , { field: '修改日期', title: '修改日期' }
                    , { field: '作废人', title: '作废人' }
                    , { field: '作废日期', title: '作废日期' }
                    //, { field: 'HDayWorkQty', title: 'HDayWorkQty', width: 105 }
                    //, { field: 'HGroupID', title: 'HGroupID', width: 105 }
                    //, { field: 'HWorkerID', title: 'HWorkerID', width: 105 }
                    //, { field: 'HSourceID', title: 'HSourceID', width: 105 }
                    , { field: '加工单价', title: '加工单价' }
                    //, { field: 'HNextProcFlag', title: 'HNextProcFlag', width: 105 }
                    , { field: '下道流转工序', title: '下道流转工序'}
                    , { field: '流转工序', title: '流转工序' }
                ]]
            };
            var index = layer.load(0, { shade: false });
            //进入页面显示的缓存列表
            $.ajax({
                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                url: GetWEBURL() + '/LEMS/MES_Gy_RoutingBillList_Json',
                type: "GET",
                data: { "sWhere": sWhere },
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
                        table.render(option);
                        layer.close(index);
                    } else {
                        layer.close(index);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(index);
                    layer.alert("接口请求失败!", { icon: 5 });
                }
            });
            //重置按钮
            form.on('submit(btnReSearch)', function (data) {
                $("#WorkCenter").val("");//单据号
                $("#hnumber").val("");//物料
                $("#HOrderProcNO").val("");//单据类型
                $("#btnSearch").click();
            });
            //查询按钮
            form.on('submit(btnSearch)', function (data) {//选择仓位
                var HOrderProcNO = $("#HOrderProcNO").val();//单据类型
                var hnumber = $("#hnumber").val();//物料
                var WorkCenter = $("#WorkCenter").val();//单据号
                if (HOrderProcNO) {
                    sWhere += " and å•据类型 like '%" + HOrderProcNO + "%'";
                }
                if (hnumber) {
                    sWhere += " and ç‰©æ–™ä»£ç  like '%" + hnumber + "%' or ç‰©æ–™åç§° like '%" + hnumber + "%'"
                }
                if (WorkCenter) {
                    sWhere += " and å•据号 like '%" + WorkCenter + "%'";
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/LEMS/MES_Gy_RoutingBillList_Json',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
                            table.render(option);
                            layer.alert("查询成功", { icon: 1 });
                        } else {
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口失效!", { icon: 5 });
                    }
                });
                sWhere = "";//调用接口后清空sWhere缓存
            });
            //laydate.render({
            //    elem: '#HDate'
            //    , type: 'datetime'
            //    , trigger: 'click'
            //    , format:'yyyy-MM-dd HH:mm'
            //});
            //以上是layui模块
        });
    </script>
</body>
</html>