YL
2021-11-05 c66f140b65802469b204c516dcdf31a368963b5f
Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
24个文件已修改
1个文件已添加
1087 ■■■■ 已修改文件
WebTM/WebTM.csproj 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index_Mobile.html 4 ●●●● 补丁 | 查看 | 原始文档 | 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 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_Add_MouldProdOutBillList.html 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldMoveStockStepInBill.html 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldMoveStockStepOutBill.html 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldOtherOutBillEdit.html 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdInBillEdit.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdMoveBill.html 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdOutBillEdit.html 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldRepairInBillEdit.html 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldRepairOutBillEdit.html 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldScrapInBill.html 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldScrapOutBill.html 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_MouldOtherInBill.html 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/收料入库/Kf_ReciveBill_Fast.html 297 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBackBill_Fast.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html 6 ●●●●● 补丁 | 查看 | 原始文档 | 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>
@@ -791,6 +791,7 @@
    <Content Include="views\车间管理\工序进站接收单\Sc_StationInBill_Mul_PDA.html" />
    <Content Include="views\车间管理\工序进站接收单\Sc_StationInBill_Mul.html" />
    <Content Include="views\采购管理\采购订单\Cg_POOrderBillList.html" />
    <Content Include="views\领料发货\收料入库\Kf_ReciveBill_Fast.html" />
    <Content Include="views\验收入库\产品入库\Kf_ProductInBillList.html" />
    <Content Include="views\验收入库\其他入库\Kf_OtherInBillList.html" />
    <Content Include="views\模治具管理\模治具管理\Kf_ProductInBillList.html" />
WebTM/views/index_Mobile.html
@@ -372,9 +372,9 @@
                          </a>
                      </dd>
                      <dd>
                          <a href="" target="main_self_frame" style="color: aqua;">
                          <a href="领料发货/收料入库/Kf_ReciveBill_Fast.html" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              åˆ°è´§ç‚¹æ•°n
                              åˆ°è´§ç‚¹æ•°
                          </a>
                      </dd>
                      <dd>
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
@@ -31,7 +31,7 @@
                        <div class="layui-card-body">
                            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                                <!--<ul class="layui-tab-title">
                                <li class="layui-this">基本信息</li>-->
            <li class="layui-this">基本信息</li>-->
                                <!--<li>其他信息</li>-->
                                <!--</ul>-->
                                <h1 style="text-align:center;"><b>器具退库单</b></h1>
@@ -156,7 +156,21 @@
                                </div>
                            </div>
                        </div>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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,12 +30,11 @@
                                <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">
                                <!--<ul class="layui-tab-title">
                                <li class="layui-this">基本信息</li>-->
            <li class="layui-this">基本信息</li>-->
                                <!--<li>其他信息</li>-->
                                <!--</ul>-->
                                <h1 style="text-align:center;"><b>器具领用单</b></h1>
@@ -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>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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>
                            <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                            <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>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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
@@ -35,7 +35,7 @@
                        <div class="layui-card-body">
                            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                                <!--<ul class="layui-tab-title">
                                <li class="layui-this">基本信息</li>-->
            <li class="layui-this">基本信息</li>-->
                                <!--<li>其他信息</li>-->
                                <!--</ul>-->
                                <h1 style="text-align:center;"><b>其他出库单</b></h1>
@@ -140,8 +140,20 @@
                                </div>
                            </div>
                        </div>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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
@@ -36,7 +36,7 @@
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_AddNew" id="set_AddNew">新增</button>
                            <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">保存</button>
                            <!--<button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_CheckBill" id="set_CheckBill">审核</button>
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_AbandonCheck" id="set_AbandonCheck">反审核</button>-->
            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_AbandonCheck" id="set_AbandonCheck">反审核</button>-->
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="view">预览</button>
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">打印</button>
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">退出</button>
@@ -247,7 +247,22 @@
                        </div>
                    </div>
                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                    <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>
                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                    <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>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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>
                        <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                        <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 });
WebTM/views/ÁìÁÏ·¢»õ/ÊÕÁÏÈë¿â/Kf_ReciveBill_Fast.html
New file
@@ -0,0 +1,297 @@
<!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">
</head>
<body>
    <div class="layui-fluid">
        <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-tab" lay-filter="tab-SellOutBackBill">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1">单据信息</li>
                            <li lay-id="2">明细信息</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form-item">
                                    <div class="layui-row">
                                        <div class="layui-col-xs4">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">源单号</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="hmainid" id="hmainid" lay-verify="hmainid" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-row">
                                        <div class="layui-col-xs4">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">供应商</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" name="HSupplierName" id="HSupplierName" lay-verify="HSupplierName" readonly autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-row">
                                        <div class="layui-col-xs4">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">部门</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" name="HDepartmentNmae" id="HDepartmentNmae" lay-verify="HDepartmentNmae" readonly autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                            </div>
                        </div>
                        <div class="layui-form-item" style="margin-bottom: 20px;">
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">确认</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </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>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
            var $ = layui.$
                , admin = layui.admin
                , layer = layui.layer
                , table = layui.table
                , form = layui.form
                , element = layui.element;
            //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) new
            $("#HWHID").val(sessionStorage["HWHID"]);
            $("#HWHNAME").val(sessionStorage["HWHName"]);
            $("#HStockPlaceID").val(sessionStorage["HSPID"]);
            $("#HStockPlaceName").val(sessionStorage["HSPName"]);
            //$("#HSupID").val(sessionStorage["HSupID"]);
            //$("#HSupName").val(sessionStorage["HSupName"]);
            $("#HDeptID").val(sessionStorage["HDeptID"]);
            $("#HDeptName").val(sessionStorage["HDept"]);
            $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
            $("#HSecManager").val(sessionStorage["HSecManager"]);
            $("#HKeeperID").val(sessionStorage["HKeeperID"]);
            $("#HKeeper").val(sessionStorage["HKeeper"]);
            $("#HMaker").val(sessionStorage["HUserName"]);
            $("#HMaker").hide();
            $("#HMakerID").hide();
            $("#HBillerID").val(sessionStorage["HBillerID"]);
            $("#HBillerID").hide();
            //获取参数
            function getUrlVars() {
                var vars = [], hash;
                var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
                for (var i = 0; i < hashes.length; i++) {
                    hash = hashes[i].split('=');
                    vars.push(hash[0]);
                    vars[hash[0]] = hash[1];
                }
                return vars;
            }
            var params = getUrlVars();
            var linterid = params[params[0]]; //从参数中获取 å•据内码
            var lSourceBillType = params[params[2]];  //从单据获取 æºå•类型
            //function RoadBillMain(linterid)//加载表头
            //{
            //    $.ajax({
            //        url: GetWEBURL() + "/Web/GetPonderationBill",
            //        type: "GET",
            //        data: { "HInterID": linterid },
            //        success: function (d) {
            //            // console.log(d.data);
            //            $("#HInterID").val(d.data[0].HInterID);
            //            $("#HBillNo").val(d.data[0].HBillNo);
            //            $("#HBillType").val(d.data[0].HSourceBillType);
            //            $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
            //            //$("#HWHID").val(d.data[0].HWhID);
            //            //$("#HKeeperID").val(d.data[0].HKeeperID);
            //            //$("#HSecManagerID").val(d.data[0].HSecManagerID);
            //            //$("#HDeptID").val(d.data[0].HDeptID);
            //            //$("#HBarCode").val(d.data[0].HBarCode);
            //            //$("#HQty").val(d.data[0].HQty);
            //            RoadSup();
            //        }
            //    })
            //}
            //function RoadSup()//根据源单类型及源单号 åŠ è½½å®¢æˆ·
            //{
            //    //var sInterID = $("#HInterID").val()
            //    var HSourceBillNo = $('#HSourceBillNo').val()
            //    var sInterID = $("#HInterID").val()
            //    var sBillNo = $("#HBillNo").val()
            //    var HSourceBillType = $("#HBillType").val()
            //    //判断文本框是否有数据    new
            //    if (HSourceBillNo == "" || sInterID <= 0) {
            //        layer.msg($('#HSourceBillNo').val(), { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
            //        return;
            //    }
            //    else {
            //        $.ajax({
            //            url: GetWEBURL() + "/SellOutBack/get_GetXs_SeOutStockBackBillList",
            //            type: "GET",
            //            data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
            //            success: function (result) {
            //                if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
            //                    $("#HSupID").val(result.data[0].HSupID);
            //                    $("#HSupName").val(result.data[0].HSupName);
            //                    $("#HDeptID").val(result.data[0].HDeptID);
            //                    $("#HDeptName").val(result.data[0].HDeptName);
            //                    sessionStorage["SourceFlag"] = true;
            //                    element.tabChange('tab-SellOutBackBill', '2');
            //                    layer.load(3);
            //                }
            //                else {
            //                    layer.msg(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
            //                }
            //                layer.closeAll("loading");
            //            }
            //        });
            //    }
            //}
            function RoadBillSub(HBillno)//加载数据
            {
                $.ajax({
                    url: GetWEBURL() + "/POStockInBillList/get_InfoByBillNo",
                    type: "GET",
                    data: { "HBillno": HBillno },
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data[0];
                            form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                "HSupplierName": data.供应商
                                , "HDepartmentNmae": data.部门
                                , "hmainid": data.hmainid
                            });
                        }
                        else {
                            layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        }
                        table.render({
                            elem: '#wl-table'
                            , url: GetWEBURL() + '/POStockInBillList/get_InfoByBillNo'
                            , toolbar: '#toolbarDemo'
                            , where: { "HBillno": HBillno }
                            , cols: [[
                                { type: 'radio' }
                                , { field: '数量', title: '数量', width: 150 }
                                , { field: '物料代码', title: '物料代码', width: 150 }
                                , { field: '物料名称', title: '物料名称', width: 150 }
                                , { field: '规格型号', title: '规格型号', width: 150 }
                                , { field: '源单主内码', title: '源单主内码', width: 150 }
                                , { field: '源单子内码', title: '源单子内码', width: 150 }
                                , { field: '源单单号', title: '源单单号', width: 150 }
                                , { field: '源单类型', title: '源单类型', width: 150 }
                            ]]
                            , height: 500
                            , done: function () {
                                layer.closeAll("loading");
                            }
                        });
                    },
                    error: function () {
                        layer.alert("发生错误!", { icon: 5 });
                    }
                });
                var a = 1;
            }
            //判断是否新增
            /*RoadBillSub("");*/
            //单号回车
            $('#HSourceBillNo').on('keydown', function (event) {
                //扫条码
                if (event.keyCode == 13) {
                    if ($("#HSourceBillNo").val() == '') {
                        layer.msg("单据号为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                    RoadBillSub($("#HSourceBillNo").val());
                }
            }
            )
            //提交
            form.on('submit(Saver)', function (data) {//提交
                var hmainid = $("#hmainid").val();
                if ($("#hmainid").val() == '') {
                    layer.msg("先扫描单据!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/POStockInBill/confirm",
                        async: true,
                        data: { "hmainid": hmainid },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                sessionStorage["SourceFlag"] = false;
                                layer.confirm("收料" + data.Message + $("#HBillNo").val(), {
                                    icon: 1,
                                    skin: 'layui-layer-lan',
                                    closeBtn: 0,
                                    btn: ['确认'],
                                    btn2: function () {
                                        //parent.layui.admin.events.closeThisTabs();关闭页签
                                        //window.close();//关闭页面,浏览器有效,PDA无效
                                        //window.location.reload();//新增
                                        parent.location.href = "../../../views/index.html"
                                    }//关闭
                                }
                                    , function () { parent.location.href = "../../../views/index.html"; }//新增
                                );
                            }
                            else {
                                //layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                                layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                            layui.form.render();
                        },
                        error: function (err) {
                            //layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                            layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                return false;
            });
        });
    </script>
</body>
</html>
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBackBill_Fast.html
@@ -399,6 +399,7 @@
                        $("#HBillNo").val(d.data[0].HBillNo);
                    }
                });
                RoadBillSub("0");
            }
            else {//如果修改则走下面 new
                RoadBillMain(linterid);
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_Fast.html
@@ -401,12 +401,6 @@
        //动态加载源单类型列表 new
        //判断是否新增
        if (linterid == null || linterid == 0) {
            //获取最大单据号 new