zgq
2021-04-09 a442e2c4bd43c15bba79e44c0673311ce7918b5a
委外工序发出完善-合并
4个文件已修改
1个文件已添加
643 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产工序管理/工序汇报单/Sc_ProcessReport_PDA.html 521 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产工序管理/工序派工单/Sc_ProcessSendWorkList.html 108 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -1177,6 +1177,9 @@
    <File Include="views/生产工序管理/委外工序汇报单/Sc_StationOutBillMainList.html">
      <publishTime>04/08/2021 09:14:52</publishTime>
    </File>
    <File Include="views/生产工序管理/工序汇报单/Sc_ProcessReport_PDA.html">
      <publishTime>04/08/2021 20:15:42</publishTime>
    </File>
    <File Include="views/生产工序管理/工序派工单/Sc_Add_ProcessSendWork.html">
      <publishTime>04/08/2021 09:14:52</publishTime>
    </File>
@@ -1231,6 +1234,15 @@
    <File Include="views/车间管理/委外工序接收单/Cj_StationEntrustOutBillList.html">
      <publishTime>03/30/2021 10:39:26</publishTime>
    </File>
    <File Include="views/车间管理/委外工序发出单/Cj_StationEntrustInBill.html">
      <publishTime>04/08/2021 10:57:44</publishTime>
    </File>
    <File Include="views/车间管理/委外工序发出单/Cj_StationEntrustInBillList.html">
      <publishTime>04/08/2021 10:57:44</publishTime>
    </File>
    <File Include="views/车间管理/委外工序接收单/Cj_StationEntrustOutBillList.html">
      <publishTime>04/08/2021 10:57:44</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationInBill.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
WebTM/WebTM.csproj
@@ -457,6 +457,7 @@
    <Content Include="views\生产工序管理\委外工单\WW_EntrustWorkOrderBillMainList.html" />
    <Content Include="views\生产工序管理\委外工序汇报单\Sc_StationOutBillMainList.html" />
    <Content Include="views\生产工序管理\工序汇报单\Sc_ProcessReportList.html" />
    <Content Include="views\生产工序管理\工序汇报单\Sc_ProcessReport_PDA.html" />
    <Content Include="views\生产工序管理\工序派工单\Sc_Add_ProcessSendWork.html" />
    <Content Include="views\生产工序管理\工序派工单\Sc_ProcessSendWorkList.html" />
    <Content Include="views\生产工序管理\工序计划单\Sc_ProcessPlanList.html" />
WebTM/views/index.html
@@ -113,6 +113,7 @@
                          <a>工序汇报单</a>
                          <dl class="layui-nav-child">
                              <dd><a lay-href="生产工序管理/工序汇报单/Sc_ProcessReportList.html">工序汇报单列表</a></dd>
                              <dd><a lay-href="生产工序管理/工序汇报单/Sc_ProcessReport_PDA.html">PDA工序汇报单列表</a></dd>
                          </dl>
                      </dd>
                      <dd class="layui-nav-itemed">
WebTM/views/Éú²ú¹¤Ðò¹ÜÀí/¹¤Ðò»ã±¨µ¥/Sc_ProcessReport_PDA.html
New file
@@ -0,0 +1,521 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" style="background-color:white;">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>PDA工序汇报单</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>
    <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" style="padding:0">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 0;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>PDA工序汇报单</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="" 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>
                    </div>
                    <div class="layui-form-item">
                        <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="HSendWorkBillNo" class="layui-input" id="HSendWorkBillNo" placeholder="派工单据号" style="background-color:#efefef4d;" readonly>
                                    </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="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="HProcName" class="layui-input" id="HProcName" placeholder="请输入工序代码" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input">
                                    </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" 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" class="layui-input" id="HEmp" name="HEmp" placeholder="请输入创建人" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HEmpID" id="HEmpID"  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 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>
                                        <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="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="date" name="HReportTime" class="layui-input" id="HReportTime" placeholder="请选择日期">
                                    </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="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>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <script>
        function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
        var params = getUrlVars();
        var BillStatusjson = params[params[0]];
        var InterID = params[params[1]];
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
            var $ = layui.$
                , admin = layui.admin
                , element = layui.element
                , layer = layui.layer
                , table = layui.table
                , laydate = layui.laydate
                , form = layui.form;
            //获取当前时间处理
            $("#HReportTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);//创建人
            $("#HEmpID").val(sessionStorage["HEmpID"]);
            $("#HProc").val(sessionStorage["HProc"]);//工序
            $("#HProcName").val(sessionStorage["HProcName"]);//工序代码
            $("#HProcID").val(sessionStorage["HProcID"]);//工序ID
            $("#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: { "billType": '3714' },
                success: function (d) {
                    $("#HBillNo").val(d.data.HBillNo);//汇报单号
                    $("#HInterID").val(d.data.HInterID);//进站单号ID
                }, error: function () {
                    layer.alert("获取单据号失败!", { icon: 5 });
                }
            });
            $("#HBarCode").focus();
            $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            //扫条形码方法
            $('#HBarCode').on('keydown', function (event) {   //扫条形码
                var HBarCode = $('#HBarCode').val();//条形码(流转卡号)(数据库中为单据号)
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (HBarCode == "") {
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    //查询派工单据是否存在
                    $.ajax({
                        url: GetWEBURL() + "Sc_ProcessMangement/getHbarCodeDetail",
                        type: "GET",
                        data: {
                            "sBillBarCode": HBarCode
                        },
                        success: function (result) {
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                var data = result.data.h_v_Sc_ProcessSendWorkList[0];
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "HSendWorkBillNo": $("#HBarCode").val()
                                      , "HEmp":  $("#HEmp").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.订单跟踪号
                                });
                                //$("#HBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#HBarCode").css("background-color", "#efefef4d");
                                $("#HBarCode").css("box-shadow", "none");
                            } else {
                                layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("扫条形码方法发生错误!", { icon: 5 });
                        }
                    });
                }
            });
            //汇报单号回车方法
            $('#HProcNo').on('keydown', function (event) {   //扫条形码
                var HProcNo = $('#HProcNo').val();
                var HBarCode = $('#HBarCode').val();
                if (event.keyCode == 13) {
                    if (HProcNo == "" || HBarCode == "") {
                        layer.alert("工序号或汇报单号为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    $.ajax({
                        url: GetWEBURL() + "Sc_ProcessMangement/getProcDetail",
                        type: "GET",
                        data: {
                            "sBillNo": HBarCode
                            , "sProcNo": HProcNo
                        },
                        success: function (result) {
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                     //"HProcID": data.HProcID
                                    //, "HProc": data.工序
                                    //, "HCenter": data.工作中心
                                    //, "HCenterID": data.工作中心代码
                                    "HICMOInterID": data.hicmointerid
                                      , "HEmp":  $("#HEmp").val()
                                    , "HICMOBillNo": data.生产任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.数量
                                    , "HMaterID": data.HMaterID
                                    , "HMaterName": data.物料名称
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.数量
                                });
                                $("#HProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("工序号方法发生错误!", { icon: 5 });
                        }
                    });
                }
            });
            //进站数量回车方法
            //$('#Entrants_number').on('keydown', function (event) {
            //    if (event.keyCode == 13) {
            //        $("#Entrants_number").attr("readonly", "readonly");//进站数量只读
            //        $("#Entrants_number").css("background-color", "#efefef4d");
            //        $("#Entrants_number").css("box-shadow", "none");
            //        if ($("#Receiver").val()) {
            //            $("#Receiver").css("box-shadow", "none");
            //        } else {
            //            $("#Receiver").css("box-shadow", "1px 1px 1px 2px #00ff00");
            //        }
            //    }
            //});
            //选择生产班组弹窗
            form.on('submit(ProductionTeam-BT)', function () {//选择生产班组
                layer.open({
                    type: 2
                    , 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(Saver)', function (data) {//提交
                //debugger;
                var sMainStr = JSON.stringify(data.field);
                console.log(sMainStr);
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "SaveProcessReport", //方法所在页面和方法名
                        async: true,
                        data: {"msg":sMainStr},
                        dataType: "json",
                        success: function (result) {
                            console.log(result);
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                   layer.msg(data.Message, { icon: 1 });
                                //$("#sHWHID").val("");
                                //layer.alert(result.msg + "单号为:" + $("#HBillNo").val(), { icon: 1 }, function () {
                                //    window.location.reload();//刷新页面
                                //});
                                //layer.confirm(result.msg + "单号为:" + $("#HBillNo").val(), {
                                //    btn: ['出站', '新增'], skin: 'layui-layer-lan', title: "温馨提示", icon: 1
                                //}, function () {
                                //        parent.location.href = "../../../views/车间管理/工序汇报/MES_StationOutBill_PDA.html";
                                //}, 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.location.href = "../../../views/index.html";
                });
            });
            //新增按钮
            form.on('submit(HAddBT)', function (data) {//退出
                layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
                    window.location.reload();
                });
            });
            //以上为layui模块
        });
        //原生js初始化
        $(function () {
        });
        //校验是否选择弹窗事件
        function checkPopup() {
            //if (!$("#HSource").val()) {//生产资源
            //    $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00");
            //}
            //else
            if (!$("#HGroup").val()) {
                $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#HCenter").val()) {
                $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00");
            }
        }
        //返回生产班组
        function GetProductionTeamValue(obj) {  //返回生产班组
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#HGroup").val(obj[0].班组);
                $("#HGroupID").val(obj[0].HItemID);
                $("#HGroup").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
        //返回生产资源
        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();
            }
        }
    </script>
</body>
</html>
WebTM/views/Éú²ú¹¤Ðò¹ÜÀí/¹¤ÐòÅɹ¤µ¥/Sc_ProcessSendWorkList.html
@@ -109,64 +109,68 @@
                ,cellMinWidth: 90
                , cols: [[
                    //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
                       { type: 'checkbox' }
                     ,{ field: 'HDate', title: '日期', sort: true, width: 120 }
                    , { field: 'HBillNo', title: '单据号', sort: true, width: 170 }
                    , { field: 'HBillStatus ', title: '单据状态', width: 105 }
                    , { field: 'HICMOBillNo', title: '任务单号' }
                    , { field: 'HCheckItemNowID', title: '当前审核项目' }
                    , { field: 'HCheckItemNextID', title: '待审核项目' }
                    , { field: 'HCheckFlowID', title: '审批流' }
                    , { field: 'HICMOInterID', title: '任务单ID', width: 115 }
                    , { field: 'HProcPlanBillNo', title: '工序计划单号', width: 115 }
                    , { field: 'HPlanBeginDate', title: '工序计划开工日期' }
                    , { field: 'HPlanEndDate', title: '工序计划完工日期', width: 160 }
                    , { field: 'HBatchNo', title: '批号', width: 160 }
                    , { field: 'HSeOrderInterID ', title: '销售订单主ID', width: 215 }
                     { type: 'checkbox' }
                     ,{ field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
                     ,{ field: '日期', title: '日期', sort: true, width: 120 }
                    , { field: '单据号', title: '单据号', sort: true, width: 170 }
                    , { field: 'HDeptID ', title: 'HDeptID', width: 105 }
                    , { field: '部门代码', title: '部门代码' }
                    , { field: '部门', title: '部门' }
                    , { field: 'HMaterID', title: 'HMaterID' }
                    , { field: '物料代码', title: '物料代码' }
                    , { field: '物料名称', title: '物料名称', width: 115 }
                    , { field: '规格型号', title: '规格型号', width: 115 }
                    , { field: 'HUnitID', title: 'HUnitID' }
                    , { field: '计量单位代码', title: '计量单位代码', width: 160 }
                    , { field: '计量单位', title: '计量单位', width: 160 }
                    , { field: 'HprocID ', title: 'HprocID', width: 215 }
                    ////, { field: 'hunitid', title: 'hunitid' }
                    , { field: 'HSeOrderEntryID ', title: '销售子ID ', width: 115 }
                    , { field: 'HSeOrderBillNo', title: '销售订单号' }
                    , { field: '工序代码 ', title: '工序代码 ', width: 115 }
                    , { field: '工序', title: '工序' }
                    ////, { field: 'hempid', title: 'hempid' }
                    , { field: 'HProcID    ', title: '工序ID', width: 100 }
                    , { field: 'HProcNumber', title: '工序代码' }
                    , { field: 'HDeptID', title: '部门ID' }
                    , { field: 'HDeptNumber', title: '部门代码' }
                    , { field: 'HGroupID', title: '班组ID' }
                    , { field: 'HGroupID    ', title: 'HGroupID', width: 100 }
                    , { field: '班组代码', title: '班组代码' }
                    , { field: '班组名称', title: '班组名称' }
                    , { field: 'HSourceID', title: 'HSourceID' }
                    , { field: '资源代码', title: '资源代码' }
                    ////, { field: 'HCenterID', title: 'HCenterID' }
                    , { field: 'HGroupNumber', title: '班组代码' }
                    , { field: 'HMaterID ', title: '产品ID' }
                    , { field: '生产资源', title: '生产资源' }
                    , { field: 'HWorkerID ', title: 'HWorkerID' }
                    ////, { field: 'hbomid', title: 'hbomid' }
                    , { field: 'HMaterNumber', title: '产品代码' }
                    , { field: '职员代码', title: '职员代码' }
                    ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
                    , { field: 'HUnitID    ', title: '单位ID' }
                    , { field: 'HUnitNumber', title: '单位代码' }
                    , { field: 'HRoutingInterID', title: '工序路线ID' }
                    , { field: 'HPlanQty', title: '工序计划生产数量' }
                    , { field: 'HExplanation', title: '摘要' }
                    , { field: 'HInnerBillNo', title: '内部单据号' }
                    , { field: 'HBacker', title: '退回人' }
                    , { field: 'HBackDate', title: '退回日期 ' }
                    , { field: 'HChecker', title: '审核人' }
                    , { field: 'HCheckDate', title: '审核日期' }
                    , { field: 'HMaker', title: '制单人' }
                    , { field: '职员    ', title: '职员' }
                    , { field: 'hsubid', title: 'hsubid', hide: true }
                    , { field: '数量', title: '数量' }
                    , { field: '计划开工日期', title: '计划开工日期' }
                    , { field: '计划完工日期', title: '计划完工日期' }
                    , { field: '计划工时', title: '计划工时' }
                    , { field: '表体备注', title: '表体备注' }
                    , { field: 'HICMOInterID', title: 'HICMOInterID ' }
                    , { field: '生产任务单号', title: '生产任务单号' }
                    , { field: 'HSeOrderInterID', title: 'HSeOrderInterID' }
                    , { field: '销售订单号', title: '销售订单号' }
                    ////, { field: 'hsubid', title: 'hsubid' }
                    , { field: 'HMakeDate', title: '制单日期' }
                    , { field: 'HUpDater', title: '修改人' }
                    , { field: 'HUpDateDate', title: '修改日期' }
                    , { field: 'HCloseMan', title: '关闭人' }
                    , { field: 'HCloseDate', title: '关闭日期' }
                    , { field: 'HCloseType', title: '关闭类型 ' }
                    , { field: 'HDeleteMan', title: '作废人' }
                    , { field: 'HDeleteDate', title: '作废日期' }
                    //, { field: '修改日期', title: '修改日期' }
                    //, { field: 'HDeleteMan', 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: '作废人', title: '作废人' }
                    , { field: '作废日期', title: '作废日期' }
                    , { field: '源单主内码', title: '源单主内码' }
                    , { field: '源单子内码', title: '源单子内码' }
                    , { field: '源单单号', title: '源单单号' }
                    , { field: '源单类型', title: '源单类型' }
                    , { field: '行关闭人', title: '行关闭人' }
                    , { field: 'HBillType', title: 'HBillType' }
                    , { field: 'HQtyDecimal', title: 'HQtyDecimal' }
                    , { field: 'HPriceDecimal', title: 'HPriceDecimal' }
                ]]
            };