YL
2022-02-21 77c0e4b04d60d6ab6d24a4932ab70115e6a3e2fd
雅琪诺报工台台调整参数
13个文件已修改
1个文件已添加
1022 ■■■■ 已修改文件
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/IpadStepIndex.html 260 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/PublicPage/HSourceReportHtml.html 341 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/条码生成/Gy_BarCodeBill.html 238 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/报工台工序/产量汇报/Sc_Add_ProductReportStepBillList.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList.html 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/报工台工序/停工/Sc_Add_MESStopStepWorkBillList.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/报工台工序/完工/Sc_Add_MESEndStepWorkBillList.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/报工台工序/开工/Sc_Add_MESBeginStepWorkBillList.html 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/报工台工序/返工/Sc_Add_MESReturnStepWorkBillList.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBill_Fast.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj
@@ -124,6 +124,7 @@
    <Content Include="views\PublicPage\PeopleInformation.html" />
    <Content Include="views\PublicPage\PowerInformation.html" />
    <Content Include="views\PublicPage\PurchOrder.html" />
    <Content Include="views\PublicPage\HSourceReportHtml.html" />
    <Content Include="views\PublicPage\transfer.html" />
    <Content Include="views\ReportHtml.html" />
    <Content Include="views\test\testRenderAutomationList.html" />
WebTM/views/IpadStepIndex.html
@@ -554,25 +554,25 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/报工台工序/开工/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/报工台工序/开工/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType+'',
                end: function () {
                },
                success: function (dom, index) {
                    var data = [];
                    data.push({
                        "HBillType": HBillType,
                        "HSourceInterID": HSourceInterID,
                        "HSourceEntryID": HSourceEntryID,
                        "HSourceBillNo": HSourceBillNo,
                        "HSourceBillType": HSourceBillType
                    });
                //success: function (dom, index) {
                //    var data = [];
                //    data.push({
                //        "HBillType": HBillType,
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceEntryID": HSourceEntryID,
                //        "HSourceBillNo": HSourceBillNo,
                //        "HSourceBillType": HSourceBillType
                //    });
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
@@ -594,25 +594,26 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/报工台工序/产量汇报/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/报工台工序/产量汇报/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
                //content: '生产管理/报工台工序/产量汇报/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
                success: function (dom, index) {
                    var data = [];
                    data.push({
                        "HBillType": HBillType,
                        "HSourceInterID": HSourceInterID,
                        "HSourceEntryID": HSourceEntryID,
                        "HSourceBillNo": HSourceBillNo,
                        "HSourceBillType": HSourceBillType
                    });
                //success: function (dom, index) {
                //    var data = [];
                //    data.push({
                //        "HBillType": HBillType,
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceEntryID": HSourceEntryID,
                //        "HSourceBillNo": HSourceBillNo,
                //        "HSourceBillType": HSourceBillType
                //    });
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
@@ -634,25 +635,26 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/报工台工序/完工/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/报工台工序/完工/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
                //content: '生产管理/报工台工序/完工/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
                success: function (dom, index) {
                    var data = [];
                    data.push({
                        "HBillType": HBillType,
                        "HSourceInterID": HSourceInterID,
                        "HSourceEntryID": HSourceEntryID,
                        "HSourceBillNo": HSourceBillNo,
                        "HSourceBillType": HSourceBillType
                    });
                //success: function (dom, index) {
                //    var data = [];
                //    data.push({
                //        "HBillType": HBillType,
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceEntryID": HSourceEntryID,
                //        "HSourceBillNo": HSourceBillNo,
                //        "HSourceBillType": HSourceBillType
                //    });
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
@@ -674,25 +676,26 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/报工台工序/停工/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/报工台工序/停工/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
                //content: '生产管理/报工台工序/停工/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
                success: function (dom, index) {
                    var data = [];
                    data.push({
                        "HBillType": HBillType,
                        "HSourceInterID": HSourceInterID,
                        "HSourceEntryID": HSourceEntryID,
                        "HSourceBillNo": HSourceBillNo,
                        "HSourceBillType": HSourceBillType
                    });
                //success: function (dom, index) {
                //    var data = [];
                //    data.push({
                //        "HBillType": HBillType,
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceEntryID": HSourceEntryID,
                //        "HSourceBillNo": HSourceBillNo,
                //        "HSourceBillType": HSourceBillType
                //    });
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
@@ -710,30 +713,31 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&workcode=' + workcode + '&HSourceID=' + HSourceID1 + '&HSourceName=' + HSourceName1 + '&HICMOInterID=' + HICMOInterID + '&HICMOEntryID=' + HICMOEntryID + '&HMaker=' + sessionStorage["HUserName"] + '&Czybm=' + sessionStorage["Czybm"] + '&HSourceInterID=' + HSourceInterID + '&HSourceBillType=' + HSourceBillType + '&HProcID=' + HProcID+'',
                //content: '生产管理/报工台工序/产量汇报/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
                success: function (dom, index) {
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    var data = [];
                    data.push({
                        "workcode": workcode,
                        "HSourceID": HSourceID1,
                        "HSourceName": HSourceName1,
                        "HICMOInterID": HICMOInterID,
                        "HICMOEntryID": HICMOEntryID,
                        "HMaker": sessionStorage["HUserName"],    //sessionStorage["HUserName"]
                        "Czybm": sessionStorage["Czybm"],
                        //"HEmpID": "0",    //sessionStorage["HEmpID"]
                        "HSourceInterID": HSourceInterID,
                        "HSourceBillType": HSourceBillType,
                        "HProcID": HProcID
                    });
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //success: function (dom, index) {
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    var data = [];
                //    data.push({
                //        "workcode": workcode,
                //        "HSourceID": HSourceID1,
                //        "HSourceName": HSourceName1,
                //        "HICMOInterID": HICMOInterID,
                //        "HICMOEntryID": HICMOEntryID,
                //        "HMaker": sessionStorage["HUserName"],    //sessionStorage["HUserName"]
                //        "Czybm": sessionStorage["Czybm"],
                //        //"HEmpID": "0",    //sessionStorage["HEmpID"]
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceBillType": HSourceBillType,
                //        "HProcID": HProcID
                //    });
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
@@ -755,24 +759,25 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/报工台工序/返工/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/报工台工序/返工/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
                //content: '生产管理/报工台工序/返工/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
                success: function (dom, index) {
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    var data = [];
                    data.push({
                        "HBillType": HBillType,
                        "HSourceInterID": HSourceInterID,
                        "HSourceEntryID": HSourceEntryID,
                        "HSourceBillNo": HSourceBillNo,
                        "HSourceBillType": HSourceBillType
                    });
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //success: function (dom, index) {
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    var data = [];
                //    data.push({
                //        "HBillType": HBillType,
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceEntryID": HSourceEntryID,
                //        "HSourceBillNo": HSourceBillNo,
                //        "HSourceBillType": HSourceBillType
                //    });
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
@@ -790,25 +795,26 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
                //content: '生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
                success: function (dom, index) {
                    var data = [];
                    data.push({
                        "HBillType": HBillType,
                        "HSourceInterID": HSourceInterID,
                        "HSourceEntryID": HSourceEntryID,
                        "HSourceBillNo": HSourceBillNo,
                        "HSourceBillType": HSourceBillType
                    });
                //success: function (dom, index) {
                //    var data = [];
                //    data.push({
                //        "HBillType": HBillType,
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceEntryID": HSourceEntryID,
                //        "HSourceBillNo": HSourceBillNo,
                //        "HSourceBillType": HSourceBillType
                //    });
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
@@ -852,26 +858,26 @@
                shift: 2,
                area: ['100%', '100%'],
                maxmin: true,
                content: '生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=',
                content: '生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '',
                //content: '生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=',
                end: function () {
                },
                success: function (dom, index) {
                    var data = [];
                    data.push({
                        "HBillType": HBillType,
                        "HSourceInterID": HSourceInterID,
                        "HSourceEntryID": HSourceEntryID,
                        "HSourceBillNo": HSourceBillNo,
                        "HSourceBillType": HSourceBillType
                    });
                //success: function (dom, index) {
                //    var data = [];
                //    data.push({
                //        "HBillType": HBillType,
                //        "HSourceInterID": HSourceInterID,
                //        "HSourceEntryID": HSourceEntryID,
                //        "HSourceBillNo": HSourceBillNo,
                //        "HSourceBillType": HSourceBillType
                //    });
                    //通过索引获取到当前iframe弹出层
                    var iframe = window['layui-layer-iframe' + index];
                    //调用iframe弹出层内的方法
                    iframe.edit(data);
                },
                //    //通过索引获取到当前iframe弹出层
                //    var iframe = window['layui-layer-iframe' + index];
                //    //调用iframe弹出层内的方法
                //    iframe.edit(data);
                //},
            });
        }
WebTM/views/PublicPage/HSourceReportHtml.html
New file
@@ -0,0 +1,341 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>动态列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
    <script src="../../layuiadmin/layui/layui.js"></script>
    <style type="text/css">
        input.layui-input.layui-unselect {
            padding-right: 0;
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-col-md12">
            <div class="layui-card" style="padding: 1px">
                <div class="layui-card-body" style="padding: 1px;">
                    <form class="layui-form" action="" lay-filter="component-form-group">
                        <div class="layui-collapse">
                            <div class="layui-colla-item">
                                <div class="layui-colla-title layui-inline">
                                    <div class="layui-inline">
                                        <span>更多</span>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">单据号</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">物料编码</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="PartNumber" id="PartNumber" style="width:190px;">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">物料名称</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="PartName" id="PartName" style="width:190px;">
                                    </div>
                                </div>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                </button>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                                <div class="layui-colla-content">
                                    <div class="layui-inline">
                                        <div class="layui-inline">
                                            <span>其他条件></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <table class="" id="layTable" lay-filter="layTable"></table>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-add-1"></i>新增</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-edit"></i>编辑</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>删除</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload" style="display:none;"><i class="layui-icon layui-icon-refresh"></i>刷新</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm" style="display:none;"><i class="layui-icon layui-icon-ok-circle"></i>确认</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back" style="display:none;"><i class="layui-icon layui-icon-close-fill"></i>驳回</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details" style="display:none;"><i class="layui-icon layui-icon-form"></i>详情</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate" style="display:none;"><i class="layui-icon layui-icon-file"></i>生成送货单</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit" style="display:none;"><i class="layui-icon layui-icon-return"></i>退出</button>
                            </div>
                        </script>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../layuiadmin/PubCustom.js"></script>
    <script>
        //获取参数
        var params = get_UrlVars();
        if (typeof (params[params[0]]) == "undefined") {
            var OperationType = 1;//操作类型
        } else {
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSouceBillType =  decodeURI(params[params[2]]);//源单类型
            console.log(HSouceBillType);
        }
        var cols_arr = []; //存储表格头的数组
        var table = null;
        layui.config({
            base: '../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
            // #region å…¬å…±å˜é‡
            var $ = layui.$
                , admin = layui.admin
                , layer = layui.layer
                , table = layui.table
                , form = layui.form
                , element = layui.element
                , laypage = layui.laypage
                , laydate = layui.laydate
                , util = layui.util
            //查询条件
            var sWhere = "";
            var resultTableHead = []; //获取列表头字段自定义列数组
            //#endregion
            //#region è¿›å…¥é¡µé¢å³åŠ è½½
            //初始化表单插件
            //set_InitFrom();
            //判断操作类型
            if (OperationType == 1) {//无源单
            }
            else if (OperationType == 3) {//有源单
                set_ClearBill(sWhere, HSouceBillType);
            }
            else {
                layer.alert("未知操作类型!", { icon: 5 });
            }
            //#endregion
            //#region è§¦å‘事件:包括form.on(){}格式的所有点击事件、选择事件等
            //#region å¤´å·¥å…·æ äº‹ä»¶
            table.on('toolbar(mainTable)', function (obj) {
                switch (obj.event) {
                    //新增
                    case 'set_AddNew': set_AddNew();
                        break;
                    //编辑
                    case 'set_ShowBill': set_ShowBill();
                        break;
                    //删除
                    case 'set_DeleteBill': set_DeleteBill();
                        break;
                };
            });
            //#endregion
            //#region æŸ¥è¯¢æŒ‰é’®
            form.on('submit(btnSearch)', function (data) {
                get_FastQuery(HSouceBillType);
            });
            //#endregion
            //#region é‡ç½®æŒ‰é’®
            form.on('submit(btnReSearch)', function (data) {
                set_ClearQuery();
            });
            //#endregion
            //#endregion
            //#region æœ¬é¡µé¢æ‰€æœ‰è¢«è°ƒç”¨çš„æ–¹æ³•
            //#region åˆå§‹åŒ–表单
            function set_InitFrom() {
                laydate.render({
                    elem: '#HBeginDate'
                });
                laydate.render({
                    elem: '#HEndDate'
                });
            }
            //#endregion
            // #region åˆå§‹åŒ–界面
            function set_ClearBill(sWhere, HSouceBillType) {
                resultTableHead = []; //清空表头列,防止重复渲染
                //初始查询
                get_Display(sWhere, HSouceBillType);
            }
            //#endregion
            //#region æŸ¥è¯¢
            function get_Display(sWhere, HSouceBillType) {
                var ajaxLoad = layer.load();
                //进入页面显示的缓存列表
                $.ajax({
                    url: GetWEBURL() + '/Sc_BarCode/ReportFromBillList',
                    type: "GET",
                    data: { "page": 1, "limit": 50, "sWhere": sWhere, "HSouceBillType": HSouceBillType, "HOrgID": linterid },
                    async: false,
                    dataType: "json",//数据类型可以为 text xml json  script  jsonp
                    success: function (data1) {
                        console.log(data1);
                        for (var key in data1.list) {
                            resultTableHead.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                        }
                        set_InitGrid(sWhere);
                    }, error: function (err) {
                        layer.alert(err.Message, { icon: 5 });
                    }
                });
            }
            //#endregion
            //#region  åˆå§‹åŒ–表格方法
            function set_InitGrid(sWhere) {
                //填充表格头数组
                var data = resultTableHead;
                cols_arr[0] = [];
                cols_arr[0][0] = { checkbox: true, fixed: true, totalRowText: '合计' };
                for (var i = 0; i < data.length; i++) {
                    if (data[i].name.substr(0, 1) == 'H') {
                        cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', hide: true }; //隐藏id列
                    }
                    else {
                        switch (data[i].Type) {
                            //int
                            case 'Int32':
                                cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true,width:130 };
                                break;
                            //Decimal
                            case 'Decimal':
                                cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true, width: 150};
                                break;
                            default:
                                cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200};
                        }
                    }
                }
                //填充表格数据
                table.render({
                    elem: '#layTable',
                    url: GetWEBURL() + '/Sc_BarCode/ReportFromBillList',
                    //toolbar: '#toolbarDemo', //开启头部工具栏,并为其绑定左侧模板
                    title: '' + HSouceBillType + '',
                    cols: cols_arr,    //填充表格头数据,
                    id: 'layTable', //表格id
                    where: { sWhere: sWhere, HSouceBillType: HSouceBillType, HOrgID: linterid }, //扩展参数,可以传数据到后台
                    page: true,   //开启分页
                    totalRow: true, //开启合计
                    limit: 50,     //一页能够显示的最大数目
                    limits: [50, 500, 2000, 20000], //控制多少行一页(默认五条一页)
                    method: 'get',  //提交方式
                    layout: ['count', 'prev', 'page', 'next', 'limit', 'skip'],
                    height:600,
                    response: {
                        statusCode: 1 //重新规定成功的状态码为 1,table ç»„件默认为 0
                    },
                    done: function (res) {   //返回数据执行回调函数
                        layer.close(layer.index);    //返回数据关闭loading
                    }
                });
            }
            //endregion
            //#region å¿«é€Ÿè¿‡æ»¤
            function get_FastQuery(HSouceBillType) {
                var HBillNo = $("#HBillNo").val();//单据编号
                var PartNumber = $("#PartNumber").val();//物料编码
                var PartName = $("#PartName").val();//物料名称
                switch (HSouceBillType) {
                    case '生产订单':
                        if (HBillNo) {
                            sWhere += " and å•据号 like '%" + HBillNo + "%'";
                        }
                        if (PartNumber) {
                            sWhere += " and ç‰©æ–™ä»£ç  like '%" + PartNumber + "%'";
                        }
                        if (PartName) {
                            sWhere += " and ç‰©æ–™åç§° like '%" + PartName + "%'";
                        }
                        return sWhere;
                        break;
                    case '生产汇报单':
                        return sWhere;
                        break;
                    case '采购订单':
                        return sWhere;
                        break;
                    case '收料通知单':
                        return sWhere;
                        break;
                    case '委外订单':
                        return sWhere;
                        break;
                    case '退货通知单':
                        return sWhere;
                        break;
                    case '其他入库单':
                        return sWhere;
                        break;
                    case '直接调拨单':
                        return sWhere;
                        break;
                    case '采购退料单':
                        return sWhere;
                        break;
                    case '生产退料单':
                        return sWhere;
                        break;
                    case '组装拆卸单':
                        return sWhere;
                        break;
                }
                set_ClearBill(sWhere);
                sWhere = "";//调用接口后清空sWhere缓存
            }
            //#endregion
            //#region é‡ç½®è¿‡æ»¤æ¡ä»¶æ–¹æ³•
            function set_ClearQuery() {
                $("#HBillNo").val("");//单据号
                $("#PartNumber").val("");//物料编码
                $("#PartName").val("");//物料名称
                get_FastQuery(HSouceBillType);
                sWhere = "";
            }
            //#endregion
            //#endregion
            //#endregion
            //以上是layui模块
        });
    </script>
</body>
</html>
WebTM/views/²Ö´æ¹ÜÀí/ÌõÂëÉú³É/Gy_BarCodeBill.html
@@ -22,7 +22,9 @@
            margin-right: 0px;
        }
        /*end*/
        .layui-table-cell .layui-form-checkbox[lay-skin="primary"] {
            margin-left:35%;
        }
    </style>
</head>
<body>
@@ -55,9 +57,7 @@
                                                <label class="layui-form-label">组织</label>
                                                <div class="layui-input-inline">
                                                    <select name="HOrgID" id="HOrgID" lay-filter="HOrgID" class="layui-input" value="" style="float:left;width:150px">
                                                        <option value="1">供应商</option>
                                                        <option value="2">客户</option>
                                                        <option value="3">车间部门</option>
                                                    </select>
                                                </div>
                                            </div>
@@ -65,9 +65,7 @@
                                                <label class="layui-form-label">工厂代码</label>
                                                <div class="layui-input-inline">
                                                    <select name="HWorksNumber" id="HWorksNumber" lay-filter="HWorksNumber" class="layui-input" value="" style="float:left;width:150px">
                                                        <option value="1">供应商</option>
                                                        <option value="2">客户</option>
                                                        <option value="3">车间部门</option>
                                                    </select>
                                                </div>
                                            </div>
@@ -83,9 +81,17 @@
                                                <label class="layui-form-label">源单类型</label>
                                                <div class="layui-input-inline">
                                                    <select name="HSourceBillType" id="HSourceBillType" lay-filter="HSourceBillType" class="layui-input" value="" style="float:left;width:150px">
                                                        <option value="1">供应商</option>
                                                        <option value="2">客户</option>
                                                        <option value="3">车间部门</option>
                                                        <option value="1">生产订单</option>
                                                        <option value="2">生产汇报单</option>
                                                        <option value="3">采购订单</option>
                                                        <option value="4">收料通知单</option>
                                                        <option value="5">委外订单</option>
                                                        <option value="6">退货通知单</option>
                                                        <option value="7">其他入库单</option>
                                                        <option value="8">直接调拨单</option>
                                                        <option value="9">采购退料单</option>
                                                        <option value="10">生产退料单</option>
                                                        <option value="11">组装拆卸单</option>
                                                    </select>
                                                </div>
                                            </div>
@@ -93,8 +99,7 @@
                                                <label class="layui-form-label">选单号<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="HSourceBillNo" id="HSourceBillNo" readonly class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HKeeperID" id="HKeeperID" class="layui-input" value="" style="float:left;width:150px;">
                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperList" style="width:40px;">
                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="HSourceBillNoList" style="width:40px;">
                                                        <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                    </button>
                                                </div>
@@ -103,9 +108,7 @@
                                                <label class="layui-form-label">条码类型</label>
                                                <div class="layui-input-inline">
                                                    <select name="HBarCodeType" id="HBarCodeType" lay-filter="HBarCodeType" class="layui-input" value="" style="float:left;width:150px">
                                                        <option value="1">供应商</option>
                                                        <option value="2">客户</option>
                                                        <option value="3">车间部门</option>
                                                    </select>
                                                </div>
                                            </div>
@@ -141,6 +144,14 @@
                        </script>
                        <script type="text/html" id="xuhao">
                            {{d.LAY_TABLE_INDEX+1}}
                        </script>
                        <script type="text/html" id="switchTpl">
                            <!-- è¿™é‡Œçš„ checked çš„状态只是演示 -->
                            <input type="checkbox" name="checkbox" lay-skin="primary" lay-filter="HGiveAwayFlag">
                        </script>
                        <script type="text/html" id="switchTp2">
                            <!-- è¿™é‡Œçš„ checked çš„状态只是演示 -->
                            <input type="checkbox" name="checkbox" lay-skin="primary" lay-filter="HGiveAwayFlag">
                        </script>
                    </form>
                </div>
@@ -190,6 +201,12 @@
            //#region è¿›å…¥é¡µé¢æ—¢åŠ è½½
            //初始化表单插件
            set_InitFrom();
            //加载组织数据
            set_HOrg();
            //加载工厂代码数据
            set_HWorksNumber();
            //加载条码类型数据
            set_HBarCodeType();
            //初始化表格
            set_InitGrid();
            set_CountGrid();
@@ -229,56 +246,72 @@
                set_GridCellCheck(obj); //行内快捷键筛选
            });
            //下拉框事件选择触发
            form.on('select(HSupTypeID)', function (data) {
                $("#HSupID").val("");
                $("#HSupName").val("");
            form.on('select(HSourceBillType)', function (data) {
                $("#HSourceBillNo").val("");
            });
            function getSupType() {
                var type = $("#HSupTypeID").val();
                console.log(type)
                var type = $("#HSourceBillType").val();
                switch (type) {
                    case '1':
                        return "SupplierInformation";
                        return "生产订单";
                        break;
                    case '2':
                        return "CustomerInformation";
                        return "生产汇报单";
                        break;
                    case '3':
                        return "DeptInformation";
                        return "采购订单";
                        break;
                    case '4':
                        return "收料通知单";
                        break;
                    case '5':
                        return "委外订单";
                        break;
                    case '6':
                        return "退货通知单";
                        break;
                    case '7':
                        return "其他入库单";
                        break;
                    case '8':
                        return "直接调拨单";
                        break;
                    case '9':
                        return "采购退料单";
                        break;
                    case '10':
                        return "生产退料单";
                        break;
                    case '11':
                        return "组装拆卸单";
                        break;
                }
            }
            //表头信息往来单位弹窗
            form.on('submit(HSupList)', function () {
                debugger;
                if ($("#HSupTypeID").val() == 0 || $("#HSupTypeID").val() == null) {
                    return layer.msg('请选择往来类型');
            //表头信息源单信息弹窗
            form.on('submit(HSourceBillNoList)', function () {
                if ($("#HSourceBillType").val() == 0 || $("#HSourceBillType").val() == null) {
                    return layer.msg('请选择单据类型');
                }
                //获取组织ID
                var SetHOrgID = $("#HOrgID").find("option:selected").val();
                //页面层-自定义
                var url = '../../PublicPage/' + getSupType() + '.html';
                var url = '../../PublicPage/HSourceReportHtml.html?OperationType=3&linterid=' + SetHOrgID + '&HSouceBillType=' + getSupType() + '';
                url = encodeURI(url);
                //alert(url);
                layer.open({
                    type: 2,
                    skin: 'layui-layer-rim', //加上边框
                    title: '往来单位列表',
                    title: '' + getSupType()+'列表',
                    closeBtn: 1,
                    shift: 2,
                    area: ['80%', '80%'],
                    area: ['95%', '80%'],
                    maxmin: true,
                    content: [url, 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
                        //按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HSupName").val(checkStatus.data[0].HName);
                        $("#HSupID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
@@ -302,7 +335,80 @@
                    elem: '#HDate'
                });
            }
            //初始化明细表格
            //获取组织
            function set_HOrg() {
                //获取登录页组织列
                var Organization = '';
                $.ajax({
                    type: "get",
                    url: GetWEBURL() + "/Web/GetOrganizations",
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data;
                            for (var i = 0; i < data.length; i++) {
                                Organization += '<option  style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>';
                            }
                            $("#HOrgID").append(Organization);
                            form.render('select');
                        }
                        $('#HOrgID').find("option[value=" + result.data[0].ID + "]").attr("selected", true);
                        form.render('select') //再次渲染
                        layer.closeAll("loading");
                    }
                })
            }
            //获取工厂代码
            function set_HWorksNumber()
            {
                //获取工厂代码
                var Organization = '';
                $.ajax({
                    type: "get",
                    url: GetWEBURL() + "/Sc_BarCode/GetHWorksNumberBill",
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.list;
                            for (var i = 0; i < data.length; i++) {
                                Organization += '<option  style="color:blue;" value="' + i + '">' + data[i] + '</option>';
                            }
                            $("#HWorksNumber").append(Organization);
                            form.render('select');
                            if (result.list[0] != "" && result.list[0] != null)
                            {
                                $('#HWorksNumber').find("option[value=" + result.list[0] + "]").attr("selected", true);
                                form.render('select') //再次渲染
                            }
                        }
                        layer.closeAll("loading");
                    }
                })
            }
            //获取条码类型
            function set_HBarCodeType()
            {
                //获取条码类型代码
                var Organization = '';
                $.ajax({
                    type: "get",
                    url: GetWEBURL() + "/Sc_BarCode/GetHBarCodeTypeBill",
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.list;
                            for (var i = 0; i < data.length; i++) {
                                Organization += '<option  style="color:blue;" value="' + i+ '">' + data[i] + '</option>';
                            }
                            $("#HBarCodeType").append(Organization);
                            form.render('select');
                        }
                        $('#HBarCodeType').find("option[value=" + result.list[0]+ "]").attr("selected", true);
                        form.render('select') //再次渲染
                        layer.closeAll("loading");
                    }
                })
            }
            //初始化物料信息表格
            function set_InitGrid() {
                columns = [
                    { type: 'checkbox', fixed: 'left' }
@@ -321,7 +427,7 @@
                    , { field: 'HUnitCode', title: '计量单位代码', edit: 'text', event: 'HUnitCode', width: 100 }
                    , { field: 'HUnitName', title: '计量单位', edit: 'text', width: 100 }
                    , { field: 'HBatchNo', title: '批号', edit: 'text', width: 100 }
                    , { field: 'HGiveAwayFlag', title: '是否赠品', edit: 'text', width: 100 }
                    , { field: 'HGiveAwayFlag', title: '是否赠品', width: 100, templet: '#switchTpl', unresize: false }
                    , { field: 'HQty', title: '数量', edit: 'text', width: 100 }
                    , { field: 'HMinQty', title: '最小包装数', edit: 'text', width: 100 }
                    , { field: 'HBQty', title: '箱数', edit: 'text', width: 100 }
@@ -347,28 +453,39 @@
                    }
                };
            }
            //初始汇总信息
            //初始条码信息表格
            function set_CountGrid() {
                //表头
                columns = [
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe", width: 100 }
                    , { field: '物料代码', title: '物料代码', edit: 'text', event: 'HMaterCode', width: 100 }
                    , { field: '物料名称', title: '物料名称', edit: 'text', width: 100 }
                    , { field: '规格型号', title: '规格型号', edit: 'text', width: 100 }
                    , { field: '单据号', title: '单据号', edit: 'text', width: 100 }
                    , { field: '批次', title: '批次', edit: 'text', width: 100 }
                    , { field: '实收数量', title: '实收数量', edit: 'text', width: 100 }
                    , { field: 'hwhid1', title: 'HWHID', edit: 'text', width: 100, hide: true }
                    , { field: '收料仓库代码', title: '收料仓库代码', edit: 'text', event: 'HWHCode', width: 120 }
                    , { field: '收料仓库', title: '收料仓库名称', edit: 'text', width: 120 }
                    , { field: '表体备注', title: '备注', edit: 'text', width: 100 }
                    , { field: '选择', title: '选择', width: 100 }
                    , { field: 'HBarCode', title: '条码编号',  width: 100 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                    , { field: 'HMaterName', title: '物料名称', width: 100 }
                    , { field: 'HMaterModel', title: '规格型号', width: 100 }
                    , { field: 'HAuxPropNumber', title: '辅助属性代码', width: 100 }
                    , { field: 'HAuxPropName', title: '辅助属性', event: 'HWHCode', width: 120 }
                    , { field: 'HGiveAwayFlag', title: '是否赠品', width: 120, templet: '#switchTpl', unresize: false }
                    , { field: 'HUnitCode', title: '计量单位代码', width: 120 }
                    , { field: 'HUnitName', title: '计量单位', width: 120 }
                    , { field: 'HQty', title: '数量', width: 120 }
                    , { field: 'HDate', title: '进料日期', width: 120 }
                    , { field: 'HCusNumber', title: '客户代码', width: 120 }
                    , { field: 'HCusName', title: '客户', width: 120 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 120 }
                    , { field: 'HSeOrderBillNo', title: '销售订单号', width: 120 }
                    , { field: 'HRemark', title: '备注', width: 120 }
                    , { field: 'HMTONo', title: '计划跟踪号', width: 120 }
                    , { field: 'HShowDate', title: '日期', width: 100 }
                    , { field: 'HInnerBillNo', title: '内部采购订单号', width: 100 }
                    , { field: 'HMaker', title: '制单人', width: 100 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , page: false
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 650
@@ -380,11 +497,20 @@
            //无源单新增
            function set_AddFNew() {
                option.data = [{ "HSourceInterID": 0, "HSourceEntryID": 0,"HSourceBillNo":"", "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "" }];
                option.data = [{
                    "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": ""
                    , "HAuxPropID": 0, "HAuxPropNumber": "", "HAuxPropName": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HBatchNo": "", "HGiveAwayFlag": 0
                    , "HQty": 0, "HMinQty": 0, "HBQty": 0, "HPackQty": 0, "HDate": "", "HCusID": 0, "HCusNumber": "", "HCusName": "", "HSeOrderBillNo": "", "HRemark": ""
                }];
                table.render(option);
            }
            function set_AddFNew1() {
                option1.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "" }];
                option1.data = [{
                    "HBarCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HAuxPropNumber": "", "HAuxPropName": ""
                    , "HGiveAwayFlag": "", "HUnitCode": "", "HUnitName": "", "HQty": 0, "HDate": "", "HCusNumber": "", "HCusName": ""
                    , "HSourceBillNo": "", "HSeOrderBillNo": "", "HRemark": "", "HMTONo": "", "HShowDate": "", "HInnerBillNo": "", "HMaker": ""
                }];
                table.render(option1);
            }
            //日期格式化
WebTM/views/Éú²ú¹ÜÀí/Òì³£·´À¡µ¥/Sc_Add_MESExecptFeedBackBillList.html
@@ -363,16 +363,21 @@
            var linterid = params[params[1]];//源单id
            var HEntryID = params[params[2]];//源单子id
            var HSBillType = params[params[3]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HMainSourceInterID = data[0].HSourceInterID;
            HMainSourceEntryID = data[0].HSourceEntryID;
            HMainSourceBillNo = data[0].HSourceBillNo;
            HMainSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HMainSourceInterID = data[0].HSourceInterID;
        //    HMainSourceEntryID = data[0].HSourceEntryID;
        //    HMainSourceBillNo = data[0].HSourceBillNo;
        //    HMainSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/²úÁ¿»ã±¨/Sc_Add_ProductReportStepBillList.html
@@ -372,16 +372,21 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSBillType = params[params[2]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HSourceInterID = data[0].HSourceInterID;
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceEntryID = data[0].HSourceEntryID;
        //    HSourceBillNo = data[0].HSourceBillNo;
        //    HSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/²úÁ¿»ã±¨/Sc_ProductReportStepBillList.html
@@ -131,18 +131,18 @@
        var HSourceBillType = ""; //源单类型
        var HProcID = ""; //工序ID
        var SchWhere = ""; //按钮查询参数
        var edit = function (data) {
            workcode = data[0].workcode;
            HSourceID = data[0].HSourceID;
            HSourceName = data[0].HSourceName;
            HICMOInterID = data[0].HICMOInterID;
            HICMOEntryID = data[0].HICMOEntryID;
            HMaker = data[0].HMaker;
            Czybm = data[0].Czybm;
            HSourceInterID = data[0].HSourceInterID;
            HSourceBillType = data[0].HSourceBillType;
            HProcID = data[0].HProcID;
        }
        //var edit = function (data) {
        //    workcode = data[0].workcode;
        //    HSourceID = data[0].HSourceID;
        //    HSourceName = data[0].HSourceName;
        //    HICMOInterID = data[0].HICMOInterID;
        //    HICMOEntryID = data[0].HICMOEntryID;
        //    HMaker = data[0].HMaker;
        //    Czybm = data[0].Czybm;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceBillType = data[0].HSourceBillType;
        //    HProcID = data[0].HProcID;
        //}
        //获取页面跳转参数  //单据编辑状态: 1.无源单新增  Â 2.有源单新增  Â 3.编辑  4.浏览  5.变更
        var params = get_UrlVars();
        if (typeof (params[params[0]]) == "undefined") {
@@ -150,7 +150,17 @@
        } else {
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSouceBillType = params[params[2]];//源单类型
            var HSBillType = params[params[2]];//源单类型
            var workcode = params[params[3]];
            var HSourceID = params[params[4]];
            var HSourceName = params[params[5]];
            var HICMOInterID = params[params[6]];
            var HICMOEntryID = params[params[7]];
            var HMaker = params[params[8]];
            var Czybm = params[params[9]];
            var HSourceInterID = params[params[10]];
            var HSourceBillType = params[params[11]];
            var HProcID = params[params[12]];
        }
      
@@ -320,7 +330,7 @@
                            table.render(option);
                        } else {
                            layer.close(index);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                        sWhere = "";
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/Í£¹¤/Sc_Add_MESStopStepWorkBillList.html
@@ -346,16 +346,21 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSBillType = params[params[2]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HSourceInterID = data[0].HSourceInterID;
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceEntryID = data[0].HSourceEntryID;
        //    HSourceBillNo = data[0].HSourceBillNo;
        //    HSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/Í깤/Sc_Add_MESEndStepWorkBillList.html
@@ -326,16 +326,21 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSBillType = params[params[2]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HSourceInterID = data[0].HSourceInterID;
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceEntryID = data[0].HSourceEntryID;
        //    HSourceBillNo = data[0].HSourceBillNo;
        //    HSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/¿ª¹¤/Sc_Add_MESBeginStepWorkBillList.html
@@ -89,7 +89,6 @@
                                <button type="button" id="Saver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">保存</button>
                                <button type="button" id="VerIfySaver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="VerIfySaver">审核</button>
                                <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">退出</button>
                                <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="a_href" id="a_href">导出</button>
                            </div>
                    
                        </div>
@@ -334,16 +333,21 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSBillType = params[params[2]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HSourceInterID = data[0].HSourceInterID;
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceEntryID = data[0].HSourceEntryID;
        //    HSourceBillNo = data[0].HSourceBillNo;
        //    HSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/·µ¹¤/Sc_Add_MESReturnStepWorkBillList.html
@@ -345,16 +345,21 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSBillType = params[params[2]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HSourceInterID = data[0].HSourceInterID;
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceEntryID = data[0].HSourceEntryID;
        //    HSourceBillNo = data[0].HSourceBillNo;
        //    HSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/·À´í/Sc_Add_MaterToSourceStepBillList.html
@@ -366,16 +366,21 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSBillType = params[params[2]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HSourceInterID = data[0].HSourceInterID;
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceEntryID = data[0].HSourceEntryID;
        //    HSourceBillNo = data[0].HSourceBillNo;
        //    HSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_Fast.html
@@ -846,8 +846,7 @@
                        if (sBarCode != "") {
                            $('#HBarCode').val("");
                        }
                        $.ajax(
                            {
                        $.ajax({
                                type: "Get",
                                url: GetWEBURL() + "/ProductIn/Delete_Json",
                                async: true,
@@ -921,8 +920,8 @@
                            type: "GET",
                            data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sMaker, "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] },
                            success: function (result) {
                                playSound1();
                                if (result.count == 1) {
                                    playSound1();
                                    if (result.data.HBarType == '仓库条码') {
                                        $("#HWHNAME").val(result.data.HWhName);
                                        $("#HWHID").val(result.data.HWhID);
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_Fast.html
@@ -526,7 +526,8 @@
            }
            else {
                element.tabChange('tab-POStockInBill', '1');
                var pFocus = $("#HSourceBillNo");
                //var pFocus = $("#HSourceBillNo");
                var pFocus = $("#HBarCode");
                pFocus.focus();
                pFocus.select();
            }
@@ -903,7 +904,7 @@
                                            $("#HBillType").val("手工录入");
                                        }
                                        $("#HNote").val(";物料条码");
                                        element.tabChange('tab-POStockInBill', '3');
                                        element.tabChange('tab-POStockInBill', '4');
                                    }
                                }