zzr99
2021-11-05 03d51f3887113f0cde89642eb8ac8f06580c39bb
器具出入库模块,所有编辑页加汇总项
21个文件已修改
748 ■■■■ 已修改文件
WebTM/WebTM.csproj 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/grf/器具其他入库单.grf 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/grf/器具其他出库单.grf 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/grf/器具处理出库单.grf 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/grf/器具报废入库单.grf 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/grf/器具改制入库单.grf 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/grf/器具改制出库单.grf 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/grf/器具采购入库单.grf 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_Add_MouldProdBackBillList.html 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_Add_MouldProdOutBillList.html 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldMoveStockStepInBill.html 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldMoveStockStepOutBill.html 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldOtherOutBillEdit.html 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdInBillEdit.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdMoveBill.html 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdOutBillEdit.html 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldRepairInBillEdit.html 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldRepairOutBillEdit.html 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldScrapInBill.html 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldScrapOutBill.html 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_MouldOtherInBill.html 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj
@@ -138,13 +138,13 @@
    <Content Include="views\grf\器具领用退库单.grf" />
    <Content Include="views\grf\器具领用出库单.grf" />
    <Content Include="views\grf\器具直接调拨单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具其他入库单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具其他出库单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具处理出库单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具报废入库单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具改制入库单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具改制出库单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具采购入库单.grf" />
    <Content Include="views\基础资料\公用基础资料\grf\器具其他入库单.grf" />
    <None Include="Web.Debug.config">
      <DependentUpon>Web.config</DependentUpon>
    </None>
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/grf/Æ÷¾ßÆäËûÈë¿âµ¥.grf
@@ -30,7 +30,7 @@
                    Name='调出仓库'
                End
                Item
                    Name='调入仓库'
                    Name='仓库'
                End
                Item
                    Name='发出单位'
@@ -50,13 +50,13 @@
                    Name='规格型号'
                End
                Item
                    Name='单位'
                    Name='计量单位'
                End
                Item
                    Name='数量'
                    Name='实收数量'
                End
                Item
                    Name='备注'
                    Name='表体备注'
                End
                Item
                    Name='制单人'
@@ -102,6 +102,9 @@
                End
                Item
                    Name='审核人'
                End
                Item
                    Name='部门'
                End
            End
        End
@@ -217,7 +220,7 @@
                        Charset=134
                    End
                    WordWrap=T
                    DataField='单位'
                    DataField='计量单位'
                End
                Item
                    Column='Column9'
@@ -229,7 +232,7 @@
                    End
                    WordWrap=T
                    ShrinkFontToFit=T
                    DataField='数量'
                    DataField='实收数量'
                End
                Item
                    Column='Column12'
@@ -239,7 +242,7 @@
                        Weight=400
                        Charset=134
                    End
                    DataField='备注'
                    DataField='表体备注'
                End
            End
        End
@@ -556,7 +559,7 @@
                    Top=2.59292
                    Width=7.59354
                    Height=0.608542
                    DataField='调入仓库'
                    DataField='仓库'
                End
                Item
                    Type=Barcode
@@ -568,6 +571,15 @@
                    CaptionPosition=None
                    CheckSum=T
                    Text='#单据编号#'
                End
                Item
                    Type=FieldBox
                    Name='FieldBox11'
                    Left=2.80458
                    Top=1.79917
                    Width=4.60375
                    Height=0.608542
                    DataField='部门'
                End
            End
            RepeatOnPage=T
@@ -618,7 +630,7 @@
                                    Width=2.59292
                                    Height=0.396875
                                    TextAlign=MiddleCenter
                                    DataField='数量'
                                    DataField='实收数量'
                                End
                            End
                            ColSpan=2
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/grf/Æ÷¾ßÆäËû³ö¿âµ¥.grf
@@ -30,7 +30,7 @@
                    Name='调出仓库'
                End
                Item
                    Name='调入仓库'
                    Name='仓库'
                End
                Item
                    Name='发出单位'
@@ -50,13 +50,13 @@
                    Name='规格型号'
                End
                Item
                    Name='单位'
                    Name='计量单位'
                End
                Item
                    Name='数量'
                    Name='实收数量'
                End
                Item
                    Name='备注'
                    Name='表体备注'
                End
                Item
                    Name='制单人'
@@ -102,6 +102,9 @@
                End
                Item
                    Name='审核人'
                End
                Item
                    Name='部门'
                End
            End
        End
@@ -217,7 +220,7 @@
                        Charset=134
                    End
                    WordWrap=T
                    DataField='单位'
                    DataField='计量单位'
                End
                Item
                    Column='Column9'
@@ -229,7 +232,7 @@
                    End
                    WordWrap=T
                    ShrinkFontToFit=T
                    DataField='数量'
                    DataField='实收数量'
                End
                Item
                    Column='Column12'
@@ -239,7 +242,7 @@
                        Weight=400
                        Charset=134
                    End
                    DataField='备注'
                    DataField='表体备注'
                End
            End
        End
@@ -620,7 +623,7 @@
                        Bold=T
                        Charset=134
                    End
                    DataField='调入仓库'
                    DataField='仓库'
                End
                Item
                    Type=MemoBox
@@ -671,7 +674,7 @@
                    Top=3.81
                    Width=5.21229
                    Height=0.582083
                    DataField='调出仓库'
                    DataField='部门'
                End
            End
            RepeatOnPage=T
@@ -722,7 +725,7 @@
                                    Width=2.59292
                                    Height=0.396875
                                    TextAlign=MiddleCenter
                                    DataField='数量'
                                    DataField='实收数量'
                                End
                            End
                            ColSpan=2
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/grf/Æ÷¾ß´¦Àí³ö¿âµ¥.grf
@@ -27,10 +27,10 @@
                    Format='yyyy/MM/dd'
                End
                Item
                    Name='调出仓库'
                    Name='部门'
                End
                Item
                    Name='调入仓库'
                    Name='仓库'
                End
                Item
                    Name='发出单位'
@@ -50,13 +50,13 @@
                    Name='规格型号'
                End
                Item
                    Name='单位'
                    Name='计量单位'
                End
                Item
                    Name='数量'
                    Name='实收数量'
                End
                Item
                    Name='备注'
                    Name='表体备注'
                End
                Item
                    Name='制单人'
@@ -217,7 +217,7 @@
                        Charset=134
                    End
                    WordWrap=T
                    DataField='单位'
                    DataField='计量单位'
                End
                Item
                    Column='Column9'
@@ -229,7 +229,7 @@
                    End
                    WordWrap=T
                    ShrinkFontToFit=T
                    DataField='数量'
                    DataField='实收数量'
                End
                Item
                    Column='Column12'
@@ -239,7 +239,7 @@
                        Weight=400
                        Charset=134
                    End
                    DataField='备注'
                    DataField='表体备注'
                End
            End
        End
@@ -391,7 +391,7 @@
                    Width=5.42396
                    Height=0.396875
                    TextAlign=MiddleCenter
                    Text='器具其他出库单'
                    Text='器具处理出库单'
                End
                Item
                    Type=MemoBox
@@ -620,7 +620,7 @@
                        Bold=T
                        Charset=134
                    End
                    DataField='调入仓库'
                    DataField='仓库'
                End
                Item
                    Type=MemoBox
@@ -671,7 +671,7 @@
                    Top=3.81
                    Width=5.21229
                    Height=0.582083
                    DataField='调出仓库'
                    DataField='部门'
                End
            End
            RepeatOnPage=T
@@ -722,7 +722,7 @@
                                    Width=2.59292
                                    Height=0.396875
                                    TextAlign=MiddleCenter
                                    DataField='数量'
                                    DataField='实收数量'
                                End
                            End
                            ColSpan=2
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/grf/Æ÷¾ß±¨·ÏÈë¿âµ¥.grf
@@ -30,7 +30,7 @@
                    Name='调出仓库'
                End
                Item
                    Name='调入仓库'
                    Name='收料仓库'
                End
                Item
                    Name='发出单位'
@@ -50,13 +50,13 @@
                    Name='规格型号'
                End
                Item
                    Name='单位'
                    Name='计量单位'
                End
                Item
                    Name='数量'
                    Name='实收数量'
                End
                Item
                    Name='备注'
                    Name='子备注'
                End
                Item
                    Name='制单人'
@@ -102,6 +102,9 @@
                End
                Item
                    Name='审核人'
                End
                Item
                    Name='部门'
                End
            End
        End
@@ -217,7 +220,7 @@
                        Charset=134
                    End
                    WordWrap=T
                    DataField='单位'
                    DataField='计量单位'
                End
                Item
                    Column='Column9'
@@ -229,7 +232,7 @@
                    End
                    WordWrap=T
                    ShrinkFontToFit=T
                    DataField='数量'
                    DataField='实收数量'
                End
                Item
                    Column='Column12'
@@ -239,7 +242,7 @@
                        Weight=400
                        Charset=134
                    End
                    DataField='备注'
                    DataField='子备注'
                End
            End
        End
@@ -556,7 +559,7 @@
                    Top=2.59292
                    Width=7.59354
                    Height=0.608542
                    DataField='调入仓库'
                    DataField='收料仓库'
                End
                Item
                    Type=Barcode
@@ -568,6 +571,15 @@
                    CaptionPosition=None
                    CheckSum=T
                    Text='#单据编号#'
                End
                Item
                    Type=FieldBox
                    Name='FieldBox11'
                    Left=2.80458
                    Top=1.79917
                    Width=6.19125
                    Height=0.608542
                    DataField='部门'
                End
            End
            RepeatOnPage=T
@@ -618,7 +630,7 @@
                                    Width=2.59292
                                    Height=0.396875
                                    TextAlign=MiddleCenter
                                    DataField='数量'
                                    DataField='实收数量'
                                End
                            End
                            ColSpan=2
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/grf/Æ÷¾ß¸ÄÖÆÈë¿âµ¥.grf
@@ -30,7 +30,7 @@
                    Name='调出仓库'
                End
                Item
                    Name='调入仓库'
                    Name='仓库'
                End
                Item
                    Name='发出单位'
@@ -50,13 +50,13 @@
                    Name='规格型号'
                End
                Item
                    Name='单位'
                    Name='计量单位'
                End
                Item
                    Name='数量'
                    Name='实收数量'
                End
                Item
                    Name='备注'
                    Name='子备注'
                End
                Item
                    Name='制单人'
@@ -102,6 +102,9 @@
                End
                Item
                    Name='审核人'
                End
                Item
                    Name='部门'
                End
            End
        End
@@ -217,7 +220,7 @@
                        Charset=134
                    End
                    WordWrap=T
                    DataField='单位'
                    DataField='计量单位'
                End
                Item
                    Column='Column9'
@@ -229,7 +232,7 @@
                    End
                    WordWrap=T
                    ShrinkFontToFit=T
                    DataField='数量'
                    DataField='实收数量'
                End
                Item
                    Column='Column12'
@@ -239,7 +242,7 @@
                        Weight=400
                        Charset=134
                    End
                    DataField='备注'
                    DataField='子备注'
                End
            End
        End
@@ -391,7 +394,7 @@
                    Width=5.42396
                    Height=0.396875
                    TextAlign=MiddleCenter
                    Text='器具其他入库单'
                    Text='器具改制入库单'
                End
                Item
                    Type=MemoBox
@@ -556,7 +559,7 @@
                    Top=2.59292
                    Width=7.59354
                    Height=0.608542
                    DataField='调入仓库'
                    DataField='仓库'
                End
                Item
                    Type=Barcode
@@ -568,6 +571,15 @@
                    CaptionPosition=None
                    CheckSum=T
                    Text='#单据编号#'
                End
                Item
                    Type=FieldBox
                    Name='FieldBox11'
                    Left=2.80458
                    Top=1.79917
                    Width=3.20146
                    Height=0.608542
                    DataField='部门'
                End
            End
            RepeatOnPage=T
@@ -618,7 +630,7 @@
                                    Width=2.59292
                                    Height=0.396875
                                    TextAlign=MiddleCenter
                                    DataField='数量'
                                    DataField='实收数量'
                                End
                            End
                            ColSpan=2
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/grf/Æ÷¾ß¸ÄÖÆ³ö¿âµ¥.grf
@@ -27,10 +27,10 @@
                    Format='yyyy/MM/dd'
                End
                Item
                    Name='调出仓库'
                    Name='部门'
                End
                Item
                    Name='调入仓库'
                    Name='仓库'
                End
                Item
                    Name='发出单位'
@@ -50,13 +50,13 @@
                    Name='规格型号'
                End
                Item
                    Name='单位'
                    Name='计量单位'
                End
                Item
                    Name='数量'
                    Name='实收数量'
                End
                Item
                    Name='备注'
                    Name='表体备注'
                End
                Item
                    Name='制单人'
@@ -217,7 +217,7 @@
                        Charset=134
                    End
                    WordWrap=T
                    DataField='单位'
                    DataField='计量单位'
                End
                Item
                    Column='Column9'
@@ -229,7 +229,7 @@
                    End
                    WordWrap=T
                    ShrinkFontToFit=T
                    DataField='数量'
                    DataField='实收数量'
                End
                Item
                    Column='Column12'
@@ -239,7 +239,7 @@
                        Weight=400
                        Charset=134
                    End
                    DataField='备注'
                    DataField='表体备注'
                End
            End
        End
@@ -620,7 +620,7 @@
                        Bold=T
                        Charset=134
                    End
                    DataField='调入仓库'
                    DataField='仓库'
                End
                Item
                    Type=MemoBox
@@ -671,7 +671,7 @@
                    Top=3.81
                    Width=5.21229
                    Height=0.582083
                    DataField='调出仓库'
                    DataField='部门'
                End
            End
            RepeatOnPage=T
@@ -722,7 +722,7 @@
                                    Width=2.59292
                                    Height=0.396875
                                    TextAlign=MiddleCenter
                                    DataField='数量'
                                    DataField='实收数量'
                                End
                            End
                            ColSpan=2
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/grf/Æ÷¾ß²É¹ºÈë¿âµ¥.grf
@@ -30,11 +30,10 @@
                    Name='调出仓库'
                End
                Item
                    Name='调入仓库'
                    Name='收料仓库'
                End
                Item
                    Name='发出单位'
                    DBFieldName='调出组织'
                    Name='往来单位'
                End
                Item
                    Name='接收单位'
@@ -50,13 +49,13 @@
                    Name='规格型号'
                End
                Item
                    Name='单位'
                    Name='计量单位'
                End
                Item
                    Name='数量'
                    Name='实收数量'
                End
                Item
                    Name='备注'
                    Name='表体备注'
                End
                Item
                    Name='制单人'
@@ -217,7 +216,7 @@
                        Charset=134
                    End
                    WordWrap=T
                    DataField='单位'
                    DataField='计量单位'
                End
                Item
                    Column='Column9'
@@ -229,7 +228,7 @@
                    End
                    WordWrap=T
                    ShrinkFontToFit=T
                    DataField='数量'
                    DataField='实收数量'
                End
                Item
                    Column='Column12'
@@ -239,7 +238,7 @@
                        Weight=400
                        Charset=134
                    End
                    DataField='备注'
                    DataField='表体备注'
                End
            End
        End
@@ -587,7 +586,7 @@
                    Top=1.79917
                    Width=6.985
                    Height=0.608542
                    DataField='发出单位'
                    DataField='往来单位'
                End
                Item
                    Type=FieldBox
@@ -596,7 +595,7 @@
                    Top=2.59292
                    Width=7.59354
                    Height=0.608542
                    DataField='调入仓库'
                    DataField='收料仓库'
                End
            End
            RepeatOnPage=T
@@ -647,7 +646,7 @@
                                    Width=2.59292
                                    Height=0.396875
                                    TextAlign=MiddleCenter
                                    DataField='数量'
                                    DataField='实收数量'
                                End
                            End
                            ColSpan=2
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_Add_MouldProdBackBillList.html
@@ -156,7 +156,21 @@
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>增加一行</button>
@@ -213,6 +227,7 @@
            //查询条件
            var option = [];
            var option1 = [];
            var sWhere = "";
            var sBillType = "3803";
            //#endregion
@@ -222,6 +237,7 @@
            set_InitFrom();
            //初始化表格
            set_InitGrid();
            set_CountGrid();
            //判断操作类型
            if (OperationType == 1) {//无源新增
                set_AddFNew();
@@ -681,6 +697,36 @@
                    }
                };
            }
            //初始汇总信息
            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: 'HWHSonID', 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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            //无源单新增
            function set_AddFNew() {
                //获取最大单据号
@@ -764,8 +810,10 @@
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_Add_MouldProdOutBillList.html
@@ -30,7 +30,6 @@
                                <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">打印</button>
                            </div>
                        </div>
                        <div class="layui-card-body">
                            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
@@ -140,8 +139,21 @@
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -244,6 +256,28 @@
                ]]
                , limit: 500 //每页默认显示的数量
            };
            var option1 = {
                id:'#mainTable1'
                ,elem: '#mainTable1'
                , height: 500
                , page: true //开启分页
                , cols: [[ //表头
                    { 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: 'HWHSonID', title: 'HWHSonID', 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 }
                ]]
                , limit: 500 //每页默认显示的数量
            };
            //判断是否新增
            if (OperationType == 1) {
                //初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
@@ -258,11 +292,11 @@
                    type: "GET",
                    data: { "sqlWhere": "and hmainid=" + linterid },
                    success: function (result) {
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldMoveStockStepInBill.html
@@ -163,7 +163,20 @@
                                    </div>
                                </div>
                            </div>
                            <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                                <ul class="layui-tab-title">
                                    <li class="layui-this">明细信息</li>
                                    <li>汇总信息</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show">
                            <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                    </div>
                                    <div class="layui-tab-item">
                                        <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                    </div>
                                </div>
                            </div>
                            <script type="text/html" id="toolbarDemo">
                                <div class="layui-btn-container">
                                    <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>增加一行</button>
@@ -271,6 +284,27 @@
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo' }
                ]]
            };
            var option1 = {
                elem: '#mainTable1'
                , height: 500
                , limit: 500 //每页默认显示的数量
                //,url: '/demo/table/user/' //数据接口
                , page: true //开启分页
                , cols: [[ //表头
                    { 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: 'hwhid', 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 }
                ]]
            };
            //判断是否新增
            if (OperationType == 1) {
                //初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
@@ -288,8 +322,10 @@
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldMoveStockStepOutBill.html
@@ -148,7 +148,21 @@
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -259,6 +273,24 @@
                ]]
                , limit: 500 //每页默认显示的数量
            };
            var option1 = {
                elem: '#mainTable1'
                , height: 500
                , page: true //开启分页
                , cols: [{ 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: 'hscwhid', title: 'hscwhid', 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 }]
                , limit: 500 //每页默认显示的数量
            };
            //判断是否新增
            if (OperationType == 1) {
                //初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
@@ -276,8 +308,10 @@
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldOtherOutBillEdit.html
@@ -140,8 +140,20 @@
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -198,6 +210,7 @@
                , element = layui.element;
            //查询条件
            var option = [];
            var option1 = [];
            var sBillType = "3828";
            //#endregion
@@ -551,6 +564,7 @@
            //初始化表格
            function set_InitGrid() {
                Table();  //保养项列表
                Table1();  //汇总列表
            }
            //初始化保养项列表
            function Table() {
@@ -588,6 +602,35 @@
                    , elem: '#mainTable'
                    , toolbar: '#toolbarDemo'
                    , page: false
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            function Table1() {
                //表头
                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: 'HWHSonID', 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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
@@ -677,9 +720,10 @@
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
                        }
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldProdInBillEdit.html
@@ -546,8 +546,6 @@
            form.on('submit(Exit)', function (data) {
                Pub_Close(1);
            });
            //预览
            form.on("submit(planview)", function (data) {
                if (linterid != "" || linterid != null) {
@@ -566,7 +564,6 @@
                    layer.msg('当前单据ID为空!');
                }
            });
            //打印
            form.on("submit(print)", function (data) {
                if (linterid != "" || linterid != null) {
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldProdMoveBill.html
@@ -148,7 +148,21 @@
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -258,6 +272,27 @@
                ]]
                , limit: 500 //每页默认显示的数量
            };
            var option1 = {
                elem: '#mainTable1'
                , height: 500
                //,url: '/demo/table/user/' //数据接口
                , page: true //开启分页
                , cols: [
                    { 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: 'HSCWHID', title: 'HSCWHID', 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 }
                ]
                , limit: 500 //每页默认显示的数量
            };
            //判断是否新增
            if (OperationType == 1) {
                //初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
@@ -275,8 +310,10 @@
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldProdOutBillEdit.html
@@ -161,7 +161,21 @@
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -218,6 +232,7 @@
                , element = layui.element;
            //查询条件
            var option = [];
            var option1 = [];
            var sWhere = "";
            var sBillType = "3802";
            
@@ -228,6 +243,7 @@
            set_InitFrom();
            //初始化表格
            set_InitGrid();
            set_CountGrid();
            //判断操作类型
            if (OperationType == 1) {//无源新增
                set_AddFNew();
@@ -684,6 +700,36 @@
                    }
                };
            }
            //初始汇总信息
            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: 'HWHSonID', title: 'HWHSonID', 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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            //无源单新增
            function set_AddFNew() {
                //获取最大单据号
@@ -768,8 +814,10 @@
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldRepairInBillEdit.html
@@ -247,7 +247,22 @@
                        </div>
                    </div>
                    <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                        <ul class="layui-tab-title">
                            <li class="layui-this">明细信息</li>
                            <li>汇总信息</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                            </div>
                            <div class="layui-tab-item">
                                <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                            </div>
                        </div>
                    </div>
                    <script type="text/html" id="toolbarDemo">
                        <div class="layui-btn-container">
                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine" id="btn-AddLine"><i class="layui-icon layui-icon-form"></i>增加一行</button>
@@ -292,6 +307,7 @@
                , element = layui.element;
            //查询条件
            var option = [];
            var option1 = [];
            var sWhere = "";
            var sBillType = "3826";
            
@@ -303,6 +319,7 @@
            set_InitFrom();
            //初始化表格
            set_InitGrid();
            set_CountGrid();
            //判断操作类型
            if (OperationType == 1) {//无源新增
                set_AddFNew();
@@ -869,6 +886,36 @@
                    }
                };
            }
            //初始汇总信息
            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: 'hwhid', 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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            //无源单新增
            function set_AddFNew() {
                //获取最大单据号
@@ -968,8 +1015,10 @@
                    data: { "sqlWhere": "and hmainid=" + linterid },
                    success: function (result) {
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldRepairOutBillEdit.html
@@ -250,7 +250,22 @@
                        </div>
                    </div>
                    <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                        <ul class="layui-tab-title">
                            <li class="layui-this">明细信息</li>
                            <li>汇总信息</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                            </div>
                            <div class="layui-tab-item">
                                <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                            </div>
                        </div>
                    </div>
                    <script type="text/html" id="toolbarDemo">
                        <div class="layui-btn-container">
                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine" id="btn-AddLine"><i class="layui-icon layui-icon-form"></i>增加一行</button>
@@ -295,6 +310,7 @@
                , element = layui.element;
            //查询条件
            var option = [];
            var option1 = [];
            var sWhere = "";
            var sBillType = "3825";
            //TabRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HStockOrgID": sessionStorage["OrganizationID"],"HRemark": "" };
@@ -306,6 +322,7 @@
            set_InitFrom();
            //初始化表格
            set_InitGrid();
            set_CountGrid();
            //判断操作类型
            if (OperationType == 1) {//无源新增
                set_AddFNew();
@@ -866,6 +883,36 @@
                    }
                };
            }
            //初始汇总信息
            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: 'hwhid', 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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            //无源单新增
            function set_AddFNew() {
                //获取最大单据号
@@ -965,8 +1012,10 @@
                    data: { "sqlWhere": "and hmainid=" + linterid },
                    success: function (result) {
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldScrapInBill.html
@@ -171,7 +171,21 @@
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -227,6 +241,7 @@
                , element = layui.element;
            //查询条件
            var option = [];
            var option1 = [];
            var sWhere = "";
            var sBillType = "3831";
            //TabRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"],"HRemark": "" };
@@ -237,6 +252,7 @@
            set_InitFrom();
            //初始化表格
            set_InitGrid();
            set_CountGrid();
            //判断操作类型
            if (OperationType == 1) {//无源新增
                set_AddFNew();
@@ -727,6 +743,36 @@
                    }
                };
            }
            //初始汇总信息
            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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            //无源单新增
            function set_AddFNew() {
                //获取最大单据号
@@ -811,8 +857,10 @@
                    data: { "sqlWhere": "and hmainid=" + linterid },
                    success: function (result) {
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldScrapOutBill.html
@@ -160,7 +160,21 @@
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -228,7 +242,7 @@
            //初始化表格
            set_InitGrid();
            set_CountGrid();
            //判断操作类型
            if (OperationType == 1) {//无源单
                set_AddFNew();
@@ -685,7 +699,36 @@
                    }
                };
            }
            //初始汇总信息
            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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            //无源单新增
            function set_AddFNew() {
                //获取最大单据号
@@ -789,8 +832,10 @@
                    data: { "sqlWhere": "and hmainid=" + linterid },
                    success: function (result) {
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_MouldOtherInBill.html
@@ -141,7 +141,20 @@
                            </div>
                        </div>
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <ul class="layui-tab-title">
                                <li class="layui-this">明细信息</li>
                                <li>汇总信息</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
                                </div>
                            </div>
                        </div>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
@@ -552,6 +565,7 @@
            //初始化表格
            function set_InitGrid() {
                Table();  //保养项列表
                Table1();  //汇总项列表
            }
            //初始化保养项列表
            function Table() {
@@ -593,7 +607,36 @@
                    }
                };
            }
            //初始化保养项列表
            function Table1() {
                //表头
                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: 'HWHSonID', title: 'HWHSonID', 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 }
                ];
                option1 = {
                    id: 'mainTable1'
                    , elem: '#mainTable1'
                    , height: 500
                    , page: true
                    , limit: 500
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
            }
            //无源单新增
            function set_AddFNew() {
                //获取最大单据号
@@ -675,8 +718,10 @@
                    data: { "sqlWhere": "and hmainid=" + hID },
                    success: function (result) {
                        if (result.count == 1) {
                            option.data = result.data;
                            option.data = result.list[0];
                            table.render(option);
                            option1.data = result.list[1];
                            table.render(option1);
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });