WYB
2021-03-31 a4bce725e22e5c521ad229f70678f7248e2c8b98
计划单下推页面绑定完成
4个文件已修改
2个文件已添加
571 ■■■■ 已修改文件
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_MaterialList.html 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_UnitList.html 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产工序管理/工序派工单/Sc_Add_ProcessSendWork.html 325 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产工序管理/工序计划单/Sc_ProcessPlanList.html 20 ●●●● 补丁 | 查看 | 原始文档 | 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>03/29/2021 20:23:17</publishTime>
      <publishTime>03/31/2021 16:14:35</publishTime>
    </File>
    <File Include="bin/WebTM.pdb">
      <publishTime>03/29/2021 20:23:17</publishTime>
      <publishTime>03/31/2021 16:14:35</publishTime>
    </File>
    <File Include="layuiadmin/config.js">
      <publishTime>03/23/2021 16:57:43</publishTime>
@@ -718,11 +718,17 @@
    <File Include="views/Baseset/基础资料/Gy_GetProductionTeamList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_MaterialList.html">
      <publishTime>03/31/2021 16:14:26</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_StockPlaceList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_SupplierList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_UnitList.html">
      <publishTime>03/31/2021 16:31:20</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_WarehouseList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
@@ -1067,7 +1073,7 @@
      <publishTime>03/29/2021 20:16:17</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Kf_MoveStockBill_Fast.html">
      <publishTime>03/29/2021 20:16:17</publishTime>
      <publishTime>03/30/2021 17:38:16</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Kf_MoveStockBill_FastList.html">
      <publishTime>03/29/2021 20:16:17</publishTime>
@@ -1124,7 +1130,7 @@
      <publishTime>03/29/2021 19:54:57</publishTime>
    </File>
    <File Include="views/生产工序管理/工序派工单/Sc_Add_ProcessSendWork.html">
      <publishTime>03/29/2021 19:54:05</publishTime>
      <publishTime>03/31/2021 17:46:45</publishTime>
    </File>
    <File Include="views/生产管理/生产任务单/Sc_ICMOBillList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
@@ -1148,7 +1154,7 @@
      <publishTime>03/29/2021 19:53:52</publishTime>
    </File>
    <File Include="views/生产工序管理/工序计划单/Sc_ProcessPlanList.html">
      <publishTime>03/29/2021 21:42:36</publishTime>
      <publishTime>03/31/2021 17:19:09</publishTime>
    </File>
    <File Include="views/生产管理/生产任务单/Sc_ICMOBillList.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
@@ -1181,7 +1187,7 @@
      <publishTime>03/29/2021 20:16:17</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationOutBill_PDA.html">
      <publishTime>03/23/2021 17:01:31</publishTime>
      <publishTime>03/30/2021 17:48:56</publishTime>
    </File>
    <File Include="views/车间管理/工序流转卡/Sc_ProcessExchangeBill.html">
      <publishTime>03/23/2021 16:57:43</publishTime>
WebTM/WebTM.csproj
@@ -304,6 +304,8 @@
    <Content Include="views\Baseset\基础资料\Gy_DepartmentList.html" />
    <Content Include="views\Baseset\基础资料\Gy_EmployeeList.html" />
    <Content Include="views\Baseset\基础资料\Gy_GetProductionResourcesList.html" />
    <Content Include="views\Baseset\基础资料\Gy_MaterialList.html" />
    <Content Include="views\Baseset\基础资料\Gy_UnitList.html" />
    <Content Include="views\Baseset\基础资料\Gy_WorkCenterList.html" />
    <Content Include="views\Baseset\基础资料\Gy_GetProductionTeamList.html" />
    <Content Include="views\Baseset\基础资料\Gy_StockPlaceList.html" />
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_MaterialList.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.GetHMaterNameValue(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/GetMaterialList_Json",
                    async: true,
                    data: { "Material": 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/»ù´¡×ÊÁÏ/Gy_UnitList.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/Éú²ú¹¤Ðò¹ÜÀí/¹¤ÐòÅɹ¤µ¥/Sc_Add_ProcessSendWork.html
@@ -58,7 +58,7 @@
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label">车间代码:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HEmpName" id="HEmpName" readonly="readonly" autocomplete="off">
                                                         <input type="text" name="HDeptID" id="HDeptID" lay-verify="HDeptID" readonly="readonly"  autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                            </div>
@@ -69,9 +69,20 @@
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label">车间:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HStatus" id="HStatus"  autocomplete="off">
                                                        <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input">
                                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">
                                                           <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                              </button>
                                                    </div>
                                                </div>
                                                <!--<div class="layui-col-xs1">
                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">
                                                           <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                    </button>
                                                </div>-->
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label"> å†…部单据号:</label>
                                                    <div class="layui-input-inline">
@@ -79,39 +90,46 @@
                                                        <input id="HSupID" name="HSupID" type="hidden" />
                                                    </div>
                                                </div>
                                                <div class="layui-col-xs3">
                                                <!--<div class="layui-col-xs3">
                                                    <label class="layui-form-label"> äº§å“ä»£ç ï¼š</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HDeptName" lay-verify="HDeptName" id="HDeptName" readonly="readonly" autocomplete="off">
                                                        <input id="HDeptID" name="HDeptID" type="hidden" />
                                                        <input class="layui-input" name="HMateriaNumber" lay-verify="HMateriaNumber" id="HMateriaNumber" readonly="readonly" autocomplete="off">
                                                    </div>
                                                </div>
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label"> äº§å“ï¼š</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HDHDate" lay-verify="HDHDate" id="HDHDate">
                                                        <input class="layui-input" name="HMateriaName" lay-verify="HMateriaName" id="HMateriaName" readonly="readonly"  autocomplete="off">
                                                              <button type="button" lay-submit="" class="layui-btn" lay-filter="HMateriaID-BT">
                                                           <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                              </button>
                                                    </div>
                                                </div>
                                                </div>-->
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-row">
                                                  <div class="layui-col-xs3">
                                                  <!--<div class="layui-col-xs3">
                                                    <label class="layui-form-label"> å•位代码:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HDHDate" lay-verify="HDHDate" id="HDHDate">
                                                        <input class="layui-input" name="HDHNumber" lay-verify="HDHNumber" id="HDHNumber">
                                                    </div>
                                                </div>
                                                  <div class="layui-col-xs3">
                                                    <label class="layui-form-label"> å•位:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HDHDate" lay-verify="HDHDate" id="HDHDate">
                                                        <input class="layui-input" name="HDHName" lay-verify="HDHName" id="HDHName">
                                                          <button type="button" lay-submit="" class="layui-btn" lay-filter="HUnitID-BT">
                                                           <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                              </button>
                                                    </div>
                                                </div>
                                                </div>-->
                                                   <div class="layui-col-xs3">
                                                    <label class="layui-form-label"> è§„格型号:</label>
@@ -125,24 +143,24 @@
                                          <div class="layui-form-item">
                                            <div class="layui-row">
                                                <div class="layui-col-xs3">
                                                <!--<div class="layui-col-xs3">
                                                    <label class="layui-form-label">工序计划单号:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HStatus" id="HStatus"  autocomplete="off">
                                                    </div>
                                                </div>
                                                </div>-->
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label"> è®¡åˆ’开工日期:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HSupName" lay-verify="HSupName" id="HSupName" readonly="readonly" autocomplete="off">
                                                        <input id="HSupID" name="HSupID" type="hidden" />
                                                        <input class="layui-input" name="HPlanBeginDate" lay-verify="HPlanBeginDate" id="HPlanBeginDate"  autocomplete="off">
                                                    </div>
                                                </div>
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label"> è®¡åˆ’完工日期:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="HDeptName" lay-verify="HDeptName" id="HDeptName" readonly="readonly" autocomplete="off">
                                                        <input id="HDeptID" name="HDeptID" type="hidden" />
                                                        <input class="layui-input" name="HPlanEndDate" lay-verify="HPlanEndDate" id="HPlanEndDate"  autocomplete="off">
                                                    </div>
                                                </div>
                                            
@@ -255,8 +273,7 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
         function getUrlVars() {
            function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
@@ -268,15 +285,29 @@
        }
        var params = getUrlVars();
        var HInterID = params[params[0]];
            $.ajax({
            url: GetWEBURL()+"/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json",
        var lentryid = params[params[1]];
        var PlanBeginDate = params[params[2]];
        var PlanEndDate = params[params[3]];
        //alert(HInterID + '第二个:' + lentryid);
        var date = new Date();
        var day = date.getDate();
        var month = date.getMonth() + 1;
        var year = date.getFullYear();
        var shijian = year + "/" + month + "/" + day;
        //获取单据号
        $.ajax({
            url: GetWEBURL() + "/api/newBill/getNewInterBillNo",
            type: "GET",
            data: {"sWhere": "and HInterID="+HInterID },
            data: { "billType": '3712' },
            success: function (d) {
                //console.log(d.data);
                $("#HBillNo").val(d.data[0].HBillNo);
                $("#HDate").val(d.data[0].HDate);
                $("#HBillNo").val(d.data.HBillNo);//
                $("#HDate").val(shijian);
                $('#HPlanBeginDate').val(shijian);
                //HPlanEndDate
                $('#HPlanEndDate').val(shijian);
            }, error: function () {
                layer.alert("获取单据号失败!", { icon: 5 });
            }
        });
@@ -295,64 +326,121 @@
                , laydate = layui.laydate
            //
            //执行一个laydate实例
  laydate.render({
    elem: '#HPlanBeginDate,#HPlanEndDate' //指定元素
  });
            //加载计划单下推的数据
            RoadHBillSub();
            table.render({
                elem: '#mainTable'
              //, url: GetWEBURL()+'GetNewPOInStockShowBillSub'
              , toolbar: '#toolbarDemo'
              //, where: { sMsg: linterid, sMsg2: lentryid, sMsg3: lSourceBillType }
             // , where: { sMsg: '28', sMsg2: '28,5;' }
              , cols: [[
                  { type: 'checkbox', fixed: 'left' }
                  , { field: 'HInterID', title: 'HInterID', sort: true, fixed: true, hide: true }
                    ,{ field: 'HDate', title: '日期', sort: true, width: 120 }
                    , { field: 'HBillNo', title: '单据号', sort: true, width: 170 }
                //, url: GetWEBURL()+'GetNewPOInStockShowBillSub'
                , toolbar: '#toolbarDemo'
                //, where: { sMsg: linterid, sMsg2: lentryid, sMsg3: lSourceBillType }
                // , where: { sMsg: '28', sMsg2: '28,5;' }
                , cols: [[
                    { type: 'checkbox' }
                    //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
                    , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
                    , { field: '日期', title: '日期', sort: true, width: 120 }
                    , { field: '单据号', title: '单据号', sort: true, width: 170 }
                    //, { field: 'HBillStatus ', title: '单据状态', width: 105 }
                    , { field: 'HICMOBillNo', title: '任务单号' }
                    , { field: '计划数量', title: '计划数量', width: 100, edit: 'text', event: "inputHPlanQty" }
                    , { field: 'HMaterID', title: 'HMaterID' }
                    ////, { field: 'hunitid', title: 'hunitid' }
                    , { field: 'HMaterID ', title: '产品ID ', width: 115 }
                    , { field: 'HMaterNumber', title: '产品代码' }
                    , { field: '物料代码 ', title: '物料代码 ', width: 115 }
                    , { field: '物料名称', title: '物料名称' }
                    ////, { field: 'hempid', title: 'hempid' }
                    , { field: 'HUnitID', title: '单位ID', width: 100 }
                    , { field: '规格型号', title: '规格型号', width: 100 }
                    , { field: 'HUnitNumber', title: '单位代码' }
                    , { field: 'HPlanQty', title: '计划数量',width:100,edit: 'text', event: "inputHPlanQty"  }
                    , { field: 'HPlanBeginDate', title: '计划开工日期' }
                    , { field: 'HPlanEndDate', title: '计划完工日期' }
                    , { field: '单位', title: '单位' }
                    , { field: 'hunitid', title: 'hunitid' }
                    , { field: '计量单位代码', title: '计量单位代码' }
                    ////, { field: 'HCenterID', title: 'HCenterID' }
                    , { field: 'HExplanation', title: '摘要' }
                    , { field: 'HRemark ', title: '备注' }
                    , { field: '计量单位', title: '计量单位' }
                    , { field: '生产数量 ', title: '生产数量' }
                    ////, { field: 'hbomid', title: 'hbomid' }
                    , { field: 'HInnerBillNo', title: '内部单据号' }
                    , { field: 'HSupID', title: '委外加工单位' }
                    , { field: 'HMarker', title: '检验人' }
                    , { field: 'HBacker', title: '退回人' }
                    , { field: 'HBackDate', title: '退回日期' }
                    , { field: 'HChecker', title: '审核人' }
                    , { field: 'HCheckDate', title: '审核日期' }
                    , { field: 'HMaker', title: '制单人' }
                    , { field: 'HMakeDate', title: '制单日期' }
                    , { field: 'HUpDater', title: '修改人' }
                    , { field: 'HUpDateDate', title: '修改日期' }
                    , { field: 'HCloseMan', title: '关闭人' }
                    , { field: 'HCloseDate', title: '关闭日期' }
                    , { field: 'HCloseType', title: '关闭类型' }
                    , { field: '计划开工日期', title: '计划开工日期' }
                    , { field: '计划完工日期', title: '计划完工日期' }
                    , { field: '摘要', title: '摘要' }
                    , { field: '表头备注', title: '表头备注' }
                    , { field: '内部单据号', title: '内部单据号' }
                    , { field: 'hicmointerid', title: 'hicmointerid' }
                    , { field: '任务单号', title: '任务单号' }
                    , { field: '制单人', title: '制单人' }
                    , { field: '制单日期', title: '制单日期' }
                    , { field: '审核人', title: '审核人' }
                    , { field: '审核日期', title: '审核日期' }
                    , { field: '修改人', title: '修改人' }
                    , { field: '修改日期', title: '修改日期' }
                    , { field: '关闭人', title: '关闭人' }
                    ////, { field: 'hsubid', title: 'hsubid' }
                    , { field: 'HDeleteMan', title: '作废人' }
                    , { field: 'HDeleteDate', title: '作废日期' }
              ]]
              // , data: [linterid]
                    , { field: '关闭日期', title: '关闭日期' }
                    , { field: '关闭类型', title: '关闭类型' }
                    , { field: '作废人', title: '作废人' }
                    , { field: '作废日期', title: '作废日期' }
                    , { field: 'hsubid', title: 'hsubid', fixed: true, hide: true }
                    , { field: '工序计划单号', title: '工序计划单号' }
                    , { field: '工序号', title: '工序号' }
                    , { field: 'hprocid', title: 'hprocid' }
                    , { field: '工序代码', title: '工序代码' }
                    , { field: '工序', title: '工序' }
                    , { field: '加工说明', title: '加工说明' }
                    , { field: '开工固天', title: '开工固天' }
                    , { field: '开工固数', title: '开工固数' }
                    , { field: 'HCenterID', title: 'HCenterID' }
                    , { field: '工作中心代码', title: '工作中心代码' }
                    , { field: '工作中心', title: '工作中心' }
                    , { field: 'HDeptID', title: 'HDeptID' }
                    , { field: '加工车间代码', title: '加工车间代码' }
                    , { field: '加工车间', title: '加工车间' }
                    , { field: 'HGroupID', title: 'HGroupID' }
                    , { field: '班组代码', title: '班组代码' }
                    , { field: '班组名称', title: '班组名称' }
                    , { field: 'HWorkerID', title: 'HWorkerID' }
                    , { field: '操作员代码', title: '操作员代码' }
                    , { field: '操作员', title: '操作员' }
                    , { field: 'HSourceID', title: 'HSourceID' }
                    , { 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: '销售订单主ID', title: '销售订单主ID' }
                    , { field: '销售订单子ID', title: '销售订单子ID' }
                    , { field: '销售订单号', title: '销售订单号' }
                    , { field: 'HBillType', title: 'HBillType' }
                    , { field: '单据类型', title: '单据类型' }
                    , { field: 'HBillSubType', title: 'HBillSubType' }
                    , { field: 'HQtyDecimal', title: 'HQtyDecimal' }
                    , { field: 'HPriceDecimal', title: 'HPriceDecimal' }
                ]]
                // , data: [linterid]
                // , page: true
            , limit: 500 //每页默认显示的数量
              //, height: 500
              , done: function () {
                     layer.closeAll("loading");
                 }
                , limit: 500 //每页默认显示的数量
                //, height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            });
            table.on('tool(mainTable)', function (obj) {
                var data = obj.data;
                if (obj.event==='inputHPlanQty') {
                     $(obj.tr).find(".layui-table-edit").keyup(function () {
                if (obj.event === 'inputHPlanQty') {
                    $(obj.tr).find(".layui-table-edit").keyup(function () {
                        var $input = $(this), val = $input.val();
                        if (!val) val = "1";
                        $input.val(val.replace(/[^\d]/g, ''));
@@ -360,15 +448,15 @@
                }
            });
             ///加载显示数据
            ///加载显示数据
            function RoadHBillSub() {
                     $.ajax({
            url: GetWEBURL()+'/Sc_ProcessMangement/MES_Sc_ProcessPlanMain_Json',
            type: "GET",
            data: { "sWhere": "and HInterID="+HInterID},
                 success: function (result) {
                     console.log(result);
                     //$("#HBillNo").val(result.data[0].HInterID);
                $.ajax({
                    url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessPlanMain_Json',
                    type: "GET",
                    data: { "sWhere": "and hmainid in(" + lentryid + ")" },
                    success: function (result) {
                        console.log(result);
                        //$("#HBillNo").val(result.data[0].HInterID);
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                        table.reload('mainTable', {
@@ -379,18 +467,18 @@
                                layer.closeAll("loading");
                            }
                        });
                         },
                  error: function (result) {
                    },
                    error: function (result) {
                        console.log(result);
                    }
             });
                });
            };
            //  form.on('submit(Saver)', function (data) {//保存
            //    //debugger;
            //    var sMainStr = JSON.stringify(data.field);
            //    var sSubStr = JSON.stringify(table.cache['mainTable']);
            //    var sMainSub = sMainStr + ';' + sSubStr;
            //    var sMainSub = sMainStr + ';' + sSubStr;
            //    $.ajax(
            //    {
            //        type: "POST",
@@ -414,14 +502,81 @@
            //});
              form.on('submit(Exit)', function (data) {//保存
            form.on('submit(Exit)', function (data) {//保存
                var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                parent.layer.close(index); //再执行关闭
            });
            //选择部门
            form.on('submit(HDeptID-BT)', function () {//选择部门
                layer.open({
                    type: 2
                    , area: ['666px', '666px']
                    , title: '部门列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择产品
            form.on('submit(HMateriaID-BT)', function () {//选择产品
                layer.open({
                    type: 2
                    , area: ['666px', '666px']
                    , title: '产品列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_MaterialList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //HUnitID-BT
            //选择单位
            form.on('submit(HUnitID-BT)', function () {//选择单位
                layer.open({
                    type: 2
                    , area: ['666px', '666px']
                    , title: '单位列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_UnitList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
        });
        function GetHDeptNameValue(obj) {   //返回部门
            $("#HDeptName").val(obj[0].HName);
            $("#HDeptID").val(obj[0].HNumber);
        }
        function GetHMaterNameValue(obj) {   //返回产品
            $("#HMateriaName").val(obj[0].HName);
            $("#HMateriaNumber").val(obj[0].HNumber);
        }
        function GetHUnitNameValue(obj) {   //返回单位
            $("#HDHName").val(obj[0].HName);
            $("#HDHNumber").val(obj[0].HNumber);
        }
    </script>
WebTM/views/Éú²ú¹¤Ðò¹ÜÀí/¹¤Ðò¼Æ»®µ¥/Sc_ProcessPlanList.html
@@ -112,8 +112,8 @@
                , cols: [[
                    { type: 'checkbox' }
                    //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
                     , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true }
                    ,{ field: '日期', title: '日期', sort: true, width: 100 }
                     , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
                    ,{ field: '日期', title: '日期', sort: true, width: 120 }
                    , { field: '单据号', title: '单据号', sort: true, width: 170 }
                    //, { field: 'HBillStatus ', title: '单据状态', width: 105 }
                    , { field: 'HMaterID', title: 'HMaterID' }
@@ -149,7 +149,7 @@
                    , { field: '关闭类型', title: '关闭类型' }
                    , { field: '作废人', title: '作废人' }
                    , { field: '作废日期', title: '作废日期' }
                    , { field: 'hsubid', title: 'hsubid'  , fixed: true}
                    , { field: 'hsubid', title: 'hsubid'  , fixed: true, hide: true}
                    , { field: '工序计划单号', title: '工序计划单号' }
                    , { field: '工序号', title: '工序号' }
                    , { field: 'hprocid', title: 'hprocid' }
@@ -234,6 +234,11 @@
                        ajaxLabelData = data;
                        var rows = '';
                        var HEntry = '';
                          for (var i = 0; i < data.length; i++) {
                                rows += data[i].hmainid.toString() + ',' ;
                        }
                        if (checkStatus.data.length < 1)
                        {
                            layer.msg('请选择一行数据下推');
@@ -248,7 +253,7 @@
                               ,shade: 0.6 //遮罩透明度
                               ,maxmin: false //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../工序派工单/Sc_Add_ProcessSendWork.html?HInterID=' + data[0].HInterID.toString(),'yes']
                    , content: ['../工序派工单/Sc_Add_ProcessSendWork.html?HInterID=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString().substring(0, rows.length - 1), '&PlanBeginDate=' + data[0].计划开工日期.toString(), '&PlanEndDate=' + data[0].计划完工日期.toString(), 'yes']
                               , resize: false
                             , cancel: function () {
                                //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -259,7 +264,12 @@
                        }
                        break;
                    case 'add':
                        layer.msg('添加');
                        var date = new Date();
                        var day = date.getDate();
                        var month = date.getMonth() + 1;
                        var year = date.getFullYear();
                        var shijian = year + "/" + month + "/" + day;
                        layer.msg(shijian);
                        break;
                    case '':
                        layer.msg('');