WYB
2021-04-14 396b51916f549c937b45b32182df8feb1e9db8e0
不良评审新增设计以及选中不良评审原因框
2个文件已添加
3个文件已修改
506 ■■■■ 已修改文件
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_BadReasonList.html 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Sc_ProcessPlanViewList.html 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产工序管理/增加不良评审单/QC_Add_NoPassProdCheckBill.html 289 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -17,10 +17,10 @@
      <publishTime>03/23/2021 16:57:43</publishTime>
    </File>
    <File Include="bin/WebTM.dll">
      <publishTime>04/13/2021 15:07:44</publishTime>
      <publishTime>04/14/2021 19:13:34</publishTime>
    </File>
    <File Include="bin/WebTM.pdb">
      <publishTime>04/13/2021 15:07:44</publishTime>
      <publishTime>04/14/2021 19:13:34</publishTime>
    </File>
    <File Include="layuiadmin/config.js">
      <publishTime>03/23/2021 16:57:43</publishTime>
@@ -703,6 +703,9 @@
    <File Include="views/Baseset/SRM_OpenTmpList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_BadReasonList.html">
      <publishTime>04/14/2021 19:28:58</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_CustomerList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
    </File>
@@ -1172,7 +1175,7 @@
      <publishTime>04/08/2021 10:57:44</publishTime>
    </File>
    <File Include="views/生产工序管理/增加不良评审单/QC_Add_NoPassProdCheckBill.html">
      <publishTime>04/13/2021 17:39:51</publishTime>
      <publishTime>04/14/2021 19:28:40</publishTime>
    </File>
    <File Include="views/生产工序管理/增加不良评审单/QC_NoPassProdCheckBill.html">
      <publishTime>04/12/2021 19:50:54</publishTime>
WebTM/WebTM.csproj
@@ -299,6 +299,7 @@
    <Content Include="views\app\workorder\listform.html" />
    <Content Include="views\app\说明.txt" />
    <Content Include="views\Baseset\SRM_OpenTmpList.html" />
    <Content Include="views\Baseset\基础资料\Gy_BadReasonList.html" />
    <Content Include="views\Baseset\基础资料\Gy_ProcList.html" />
    <Content Include="views\Baseset\基础资料\Gy_CustomerList.html" />
    <Content Include="views\Baseset\基础资料\Gy_DepartmentList.html" />
@@ -311,6 +312,7 @@
    <Content Include="views\Baseset\基础资料\Gy_StockPlaceList.html" />
    <Content Include="views\Baseset\基础资料\Gy_SupplierList.html" />
    <Content Include="views\Baseset\基础资料\Gy_WarehouseList.html" />
    <Content Include="views\Baseset\基础资料\Sc_ProcessPlanViewList.html" />
    <Content Include="views\component\anim\index.html" />
    <Content Include="views\component\auxiliar\index.html" />
    <Content Include="views\component\badge\index.html" />
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_BadReasonList.html
New file
@@ -0,0 +1,103 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>不良原因列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 15px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">过滤列</label>
                            <div class="layui-input-inline">
                                <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请输入过滤列" class="layui-input">
                            </div>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">快速查询</button>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <table class="layui-hide" id="ck-table"></table>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
            , layer = layui.layer;
            form.on('submit(HQuery)', function () {//选择单位
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                RoadQuery($('#Value').val());
            });
            form.on('submit(FH)', function () {//选择单位
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                var checkStatus = table.checkStatus('ck-table')
                 , data = checkStatus.data;
                parent.GetHReasonValue(data);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
            RoadQuery($('#Value').val());
            table.render({
                elem: '#ck-table'
                // , url: '/demo/table/user/'
               , data: []
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'radio' }
                , { field: 'HItemID', width: 150, title: '不良原因ID', hide: true }
                , { field: 'HNumber', width: 150, title: '不良原因代码' }
                , { field: 'HName', width: 150, title: '不良原因名称', sort: true }
              ]]
              , page: true
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var Value = Where;
                if (Value == null) {
                    Value = '';
                }
                $.ajax({
                    type: "get",
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetDepartmentList_Json",
                    url: GetWEBURL() + "/Web/GetBadReasonList_Json",
                    async: true,
                    data: { "BadReason": Value },
                    //data: { "Value": Value },
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                        table.reload('ck-table', {
                            data: ajaxReturnData
                            , height: 'full-10'
                            , loading: false
                            , done: function (index, res) {
                            }
                        });
                    },
                    error: function (result) {
                        console.log(result);
                        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                    }
                });
            };
        });
    </script>
</body>
</html>
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Sc_ProcessPlanViewList.html
New file
@@ -0,0 +1,103 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>工序计划单列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 15px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">过滤列</label>
                            <div class="layui-input-inline">
                                <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请输入过滤列" class="layui-input">
                            </div>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">快速查询</button>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <table class="layui-hide" id="ck-table"></table>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
            , layer = layui.layer;
            form.on('submit(HQuery)', function () {//选择单位
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                RoadQuery($('#Value').val());
            });
            form.on('submit(FH)', function () {//选择单位
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                var checkStatus = table.checkStatus('ck-table')
                 , data = checkStatus.data;
                parent.GetHUnitNameValue(data);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
            RoadQuery($('#Value').val());
            table.render({
                elem: '#ck-table'
                // , url: '/demo/table/user/'
               , data: []
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'radio' }
                , { field: 'HItemID', width: 150, title: '单位ID', hide: true }
                , { field: 'HNumber', width: 150, title: '计量单位代码' }
                , { field: 'HName', width: 150, title: '计量单位', sort: true }
              ]]
              , page: true
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var Value = Where;
                if (Value == null) {
                    Value = '';
                }
                $.ajax({
                    type: "get",
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetDepartmentList_Json",
                    url: GetWEBURL() + "/Web/GetUnitList_Json",
                    async: true,
                    data: { "Unit": Value },
                    //data: { "Value": Value },
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                        table.reload('ck-table', {
                            data: ajaxReturnData
                            , height: 'full-10'
                            , loading: false
                            , done: function (index, res) {
                            }
                        });
                    },
                    error: function (result) {
                        console.log(result);
                        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                    }
                });
            };
        });
    </script>
</body>
</html>
WebTM/views/Éú²ú¹¤Ðò¹ÜÀí/Ôö¼Ó²»Á¼ÆÀÉóµ¥/QC_Add_NoPassProdCheckBill.html
@@ -136,30 +136,226 @@
                                        </div>
                                    </div>
                        </div>
                        <table class="layui-table" id="mainTable" lay-filter="mainTable">
                            <thead>
                                <tr>
                                     <th>序号</th>
                                    <th>不良原因</th>
                                    <th>加入时间</th>
                                    <th>签名</th>
                                    <th>责任人</th>
                                    <th>申请工序</th>
                                    <th>责任工序</th>
                                    <th>不良数量</th>
                                    <th>备注</th>
                                    <th>不良确认人</th>
                                    <th>判定结果</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>贤心</td>
                                    <td>2016-11-29</td>
                                    <td>人生就像是一场修行</td>
                                    <td>1</td>
                                    <td><input type="text" id="HName" name="HName" style="width:200px;height:20px;"  />
                                     <button type="button" lay-submit="" class="layui-btn" lay-filter="HBadReasonID-BT">
                                                           <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                              </button>
                                      <input id="HItemID" name="HItemID" type="hidden" />
                                    </td>
                                    <td><input type="text" id="" style="width:200px;height:20px;" /></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;" /></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;" /></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;" /></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;" /></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;" /></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;" /></td>
                                </tr>
                                  <tr>
                                    <td>2</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>许闲心</td>
                                    <td>2016-11-28</td>
                                    <td>于千万人之中遇见你所遇见的人,于千万年之中,时间的无涯的荒野里…</td>
                                    <td>3</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>4</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>5</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>6</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>7</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>8</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>9</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>10</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>11</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>12</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>13</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>14</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                                <tr>
                                    <td>15</td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td ><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id="" style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                    <td><input type="text" id=""  style="width:200px;height:20px;"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
                        </div>
@@ -170,7 +366,6 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
       <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
@@ -241,51 +436,12 @@
                        // console.log(d.data);
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                        //$("#HBillType").val(d.data[0].HSourceBillType);
                        $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
                        //$("#HWHID").val(d.data[0].HWhID);
                        //$("#HKeeperID").val(d.data[0].HKeeperID);
                        //$("#HSecManagerID").val(d.data[0].HSecManagerID);
                        //$("#HDeptID").val(d.data[0].HDeptID);
                        //$("#HBarCode").val(d.data[0].HBarCode);
                        //$("#HQty").val(d.data[0].HQty);
                    }
                })
            }
            function RoadBillSub(linterid)//加载表体
            {
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                    , cellMinWidth: 80
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1202', sWhere: '' }
                    , cols: [[
                            { type: 'radio' }
                            , { field: 'HQty', title: '数量', width: 80 }
                            , { field: 'HQtyMust', title: '应收数量', width: 80 }
                            , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                            , { field: 'HMaterName', title: '物料名称', width: 100 }
                            , { field: 'HMaterModel', title: '规格型号', width: 100 }
                            , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                            , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                            , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                            , { field: 'HBatchNo', title: '批次', width: 100 }
                            , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                            , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                            , { field: 'HMaterID', title: '物料ID', width: 100 }
                    ]]
                    , height: 500
                })
            }
            //动态加载源单类型列表 new
        var date = new Date();
        var day = date.getDate();
@@ -316,34 +472,17 @@
            }
        //进入物料明细页签、条码框 å…‰æ ‡ç„¦ç‚¹   new
        //if (1 == 2)
        //{
        //    element.tabChange('tab-ProductlnBill', '3');
        //    var pFocus = $("#HBarCode");
        //    pFocus.focus();
        //    pFocus.select();
        //}
        //else
        //{
        //    element.tabChange('tab-ProductlnBill', '1');
        //    var pFocus = $("#HSourceBillNo");
        //    pFocus.focus();
        //    pFocus.select();
        //}
        //
        //
        //选择仓库
        form.on('submit(HWHID-BT)', function () {//选择仓库
        //选择不良原因
        form.on('submit(HBadReasonID-BT)', function () {//选择仓库
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '仓库列表'
                , title: '不良原因列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                , content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -527,11 +666,11 @@
         }
        });
    });
    function GetHWHValue(obj)  //返回调入仓库
    function GetHReasonValue(obj)  //返回不良原因
    {
        $("#HWHNAME").val(obj[0].HName);
        $("#HName").val(obj[0].HName);
        //sessionStorage["HWHID"] = obj[0].HItemID;
        $("#HWHID").val(obj[0].HItemID);
        $("#HItemID").val(obj[0].HItemID);
    }
    function GetHSpValue(obj) {  //返回调入仓位
        $("#HStockPlaceName").val(obj[0].HName);