zgq
2021-03-29 9451b3f86064ca3c94e1eca0c7e2b4cdba648842
新增生产汇报单列表、生产用料清单列表、统一GetWEBURL方法
4个文件已添加
56个文件已修改
6260 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 1289 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index.html 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Cc_LookingForReturnBillList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_LookingForBillList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_Fast.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_UpMoveStockBill.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/Gy_Department.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/Gy_Employee.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/Gy_Material.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/Gy_Warehouse.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/工资基础资料/Gy_Group.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/生产基础资料/Gy_BadReason.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/生产基础资料/Gy_Process.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/生产基础资料/Gy_Source.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/采购基础资料/Gy_Supplier.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/销售基础资料/Gy_Customer.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Sc_CheckToolsRepairWorkBillList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产投料单/Sc_PPBomBillList.html 208 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产汇报单/Sc_ICMOReportBillList.html 205 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/组装单/Sc_AssemblyBill_Fast.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/计划管理/工艺路线/Gy_RoutingBillList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/不良品评审单/Cj_NoPassProcList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/工序流转/MES_StationInBill.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/工序流转/MES_StationOutBillList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/其他出库/Kf_OtherOutBackBill_Fast.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/其他出库/Kf_OtherOutBackBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/其他出库/Kf_OtherOutBill_Fast.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/其他出库/Kf_OtherOutBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/委外出库/Kf_EntrustOutBackBill_Fast.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/委外出库/Kf_EntrustOutBackBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/委外出库/Kf_EntrustOutBill_Fast.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/委外出库/Kf_EntrustOutBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBackBill_Fast.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBackBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBill_Fast.html 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBackBill_Fast.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBackBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBill_Fast.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBackBill.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBackBillList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBill_Fast.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBill_FastList.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBackBill_Fast.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBackBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBill_Fast.html 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBackBill.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBackBillList.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html 2189 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/委外入库/Kf_EntrustInBackBill.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/委外入库/Kf_EntrustInBackBillList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/委外入库/Kf_EntrustInBill_Fast.html 2055 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/委外入库/Kf_EntrustInBill_FastList.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml
New file
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <DeleteExistingFiles>True</DeleteExistingFiles>
    <ExcludeApp_Data>False</ExcludeApp_Data>
    <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
    <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
    <LastUsedPlatform>Any CPU</LastUsedPlatform>
    <PublishProvider>FileSystem</PublishProvider>
    <PublishUrl>D:\网站发布\智云MESWMS\LAYUI</PublishUrl>
    <WebPublishMethod>FileSystem</WebPublishMethod>
    <SiteUrlToLaunchAfterPublish />
  </PropertyGroup>
</Project>
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
New file
@@ -0,0 +1,1289 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <_PublishTargetUrl>D:\网站发布\智云MESWMS\LAYUI</_PublishTargetUrl>
  </PropertyGroup>
  <ItemGroup>
    <File Include="bin/layuiadmin/style/admin.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="bin/layuiadmin/style/login.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="bin/WebTM.dll">
      <publishTime>03/29/2021 08:52:28</publishTime>
    </File>
    <File Include="bin/WebTM.pdb">
      <publishTime>03/29/2021 08:52:28</publishTime>
    </File>
    <File Include="layuiadmin/config.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/console/prograss.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/console/top-card.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/console/top-search.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/content/comment.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/content/list.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/content/tags.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/forum/list.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/forum/replys.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/layer/photos.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/layim/getList.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/layim/getMembers.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/mall/order.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/menu.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/menu1.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/message/all.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/message/detail.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/message/direct.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/message/new.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/message/notice.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/table/demo.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/table/demo2.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/table/demo3.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/table/user.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/table/user30.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/upload/demo.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/user/forget.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/user/login.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/user/logout.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/user/reg.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/user/resetpass.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/user/session.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/user/sms.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/useradmin/mangadmin.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/useradmin/role.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/useradmin/webuser.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/workorder/demo.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/json/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/layui.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/layui.mobile.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/code.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/laydate/default/font.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/laydate/default/laydate.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layer/default/icon-ext.png">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layer/default/icon.png">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layer/default/layer.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layer/default/loading-0.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layer/default/loading-1.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layer/default/loading-2.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/html/chatlog.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/html/find.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/html/getmsg.json">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/html/msgbox.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/layim.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/mobile/layim.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/skin/1.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/skin/2.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/skin/3.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/skin/4.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/skin/5.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/skin/logo.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/css/modules/layim/voice/default.mp3">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/font/iconfont.eot">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/font/iconfont.svg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/font/iconfont.ttf">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/font/iconfont.woff">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/0.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/1.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/10.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/11.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/12.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/13.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/14.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/15.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/16.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/17.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/18.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/19.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/2.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/20.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/21.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/22.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/23.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/24.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/25.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/26.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/27.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/28.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/29.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/3.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/30.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/31.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/32.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/33.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/34.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/35.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/36.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/37.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/38.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/39.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/4.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/40.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/41.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/42.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/43.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/44.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/45.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/46.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/47.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/48.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/49.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/5.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/50.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/51.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/52.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/53.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/54.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/55.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/56.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/57.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/58.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/59.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/6.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/60.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/61.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/62.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/63.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/64.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/65.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/66.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/67.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/68.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/69.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/7.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/70.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/71.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/8.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/images/face/9.gif">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/all-mobile.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/all.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/carousel.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/code.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/colorpicker.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/element.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/flow.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/form.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/jquery.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/laydate.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/layedit.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/layer.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/layim.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/laypage.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/laytpl.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/mobile.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/mobile/layer-mobile.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/mobile/layim-mobile-open.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/mobile/layim-mobile.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/mobile/upload-mobile.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/mobile/zepto.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/rate.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/slider.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/table.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/tree.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/upload.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/lay/modules/util.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/layui.all.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/layui/layui.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/lib/admin.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/lib/extend/echarts.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/lib/extend/echartsTheme.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/lib/index.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/lib/view.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/common.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/console.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/contlist.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/forum.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/im.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/message.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/sample.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/senior.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/set.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/user.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/useradmin.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/modules/workorder.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/Scripts/jquery-1.4.1.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/Scripts/jquery-1.4.1.min.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/Scripts/jquery-3.5.1.min.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/Scripts/json2.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/Scripts/webConfig.js">
      <publishTime>03/29/2021 10:49:14</publishTime>
    </File>
    <File Include="layuiadmin/style/admin.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/login.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/res/bg-none.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/res/layui-logo.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/res/logo-black.png">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/res/logo.png">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/res/template/character.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/res/template/huge.jpg">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/res/template/portrait.png">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/style/template.css">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/timeFormat/timeFormat.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/tpl/layim/demo.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/tpl/system/about.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/tpl/system/get.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/tpl/system/more.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/tpl/system/theme.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/tpl/system/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/tpl/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="layuiadmin/zgqCustom/zgqCustom.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/content/comment.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/content/contform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/content/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/content/listform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/content/tags.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/content/tagsform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/forum/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/forum/listform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/forum/replys.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/forum/replysform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/mall/category.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/mall/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/mall/specs.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/message/detail.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/message/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/workorder/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/workorder/listform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/app/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/SRM_OpenTmpList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_CustomerList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_DepartmentList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_EmployeeList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_GetProductionResourcesList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_GetProductionTeamList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_StockPlaceList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_SupplierList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_WarehouseList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Baseset/基础资料/Gy_WorkCenterList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/anim/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/auxiliar/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/badge/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/button/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/carousel/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/code/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/colorpicker/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/flow/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/form/element.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/form/group.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/grid/all.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/grid/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/grid/mobile-pc.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/grid/mobile.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/grid/speed-dial.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/grid/stack.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laydate/demo1.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laydate/demo2.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laydate/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laydate/special-demo.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laydate/theme.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/layer/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/layer/special-demo.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/layer/theme.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laypage/demo1.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laypage/demo2.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laypage/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/laytpl/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/nav/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/panel/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/progress/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/rate/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/slider/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/auto.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/cellEdit.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/cellEvent.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/checkbox.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/data.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/fixed.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/form.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/height.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/initSort.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/onrow.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/operate.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/page.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/parseData.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/radio.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/reload.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/resetPage.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/simple.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/static.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/style.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/thead.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/toolbar.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/tostatic.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/table/totalRow.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/tabs/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/temp.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/timeline/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/upload/demo1.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/upload/demo2.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/upload/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/util/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/component/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/home/console.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/home/homepage1.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/home/homepage2.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/iframe/layer/iframe.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/index.html">
      <publishTime>03/29/2021 10:44:50</publishTime>
    </File>
    <File Include="views/senior/echarts/bar.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/senior/echarts/line.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/senior/echarts/map.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/senior/im/index.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/senior/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/set/system/email.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/set/system/website.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/set/user/info.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/set/user/password.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/set/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/system/about.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/system/get.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/system/more.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/system/theme.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/system/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/addresslist.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/caller.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/goodslist.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/msgboard.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/personalpage.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/search.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/temp.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/tips/404.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/tips/error.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/template/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Test/qrscan.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/Test/Test.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/administrators/adminform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/administrators/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/administrators/role.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/administrators/roleform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/forget.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/login.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/reg.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/user/list.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/user/userform.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/user/说明.txt">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/不良汇报/Xs_SeOrderPickUp.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Cc_LookingForBill.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Cc_LookingForReturnBill.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Cc_LookingForReturnBillList.html">
      <publishTime>03/29/2021 10:46:35</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Kf_LookingForBillList.html">
      <publishTime>03/29/2021 10:46:43</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Kf_MoveStockBill_Fast.html">
      <publishTime>03/29/2021 10:47:09</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Kf_MoveStockBill_FastList.html">
      <publishTime>03/29/2021 10:47:31</publishTime>
    </File>
    <File Include="views/仓存管理/仓库调拨/Kf_UpMoveStockBill.html">
      <publishTime>03/29/2021 10:48:38</publishTime>
    </File>
    <File Include="views/公共页面/Kf_BarCodeEditDlg.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Gy_Department.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Gy_Employee.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Gy_Material.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Gy_Warehouse.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/基础资料/工资基础资料/Gy_Group.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/基础资料/生产基础资料/Gy_BadReason.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/基础资料/生产基础资料/Gy_Process.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/基础资料/生产基础资料/Gy_Source.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/基础资料/生产基础资料/H_ProcessDetail.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/基础资料/生产基础资料/H_ProcessList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/基础资料/采购基础资料/Gy_Supplier.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/基础资料/销售基础资料/Gy_Customer.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/模治具管理/模治具管理/Sc_CheckToolsRepairWorkBillList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/生产工序管理/委外工单/WW_EntrustWorkOrderBillMainList.html">
      <publishTime>03/29/2021 08:48:21</publishTime>
    </File>
    <File Include="views/生产工序管理/委外工序汇报单/Sc_StationOutBillMainList.html">
      <publishTime>03/29/2021 08:48:21</publishTime>
    </File>
    <File Include="views/生产工序管理/工序汇报单/Sc_ProcessReportList.html">
      <publishTime>03/29/2021 08:48:21</publishTime>
    </File>
    <File Include="views/生产工序管理/工序派工单/Sc_ProcessSendWorkList.html">
      <publishTime>03/29/2021 08:48:21</publishTime>
    </File>
    <File Include="views/生产工序管理/工序计划单/Sc_ProcessPlanList.html">
      <publishTime>03/29/2021 08:48:21</publishTime>
    </File>
    <File Include="views/生产管理/生产任务单/Sc_ICMOBillList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/生产管理/生产投料单/Sc_PPBomBillList.html">
      <publishTime>03/29/2021 10:46:21</publishTime>
    </File>
    <File Include="views/生产管理/生产汇报单/Sc_ICMOReportBillList.html">
      <publishTime>03/29/2021 10:46:02</publishTime>
    </File>
    <File Include="views/组装单/Sc_AssemblyBill_Fast.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/计划管理/工艺路线/Gy_RoutingBillList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/车间管理/不良品评审单/Cj_NoPassProcList.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationInBill.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationInBillList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationInBill_PDA.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationOutBill.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationOutBillList.html">
      <publishTime>03/29/2021 10:48:22</publishTime>
    </File>
    <File Include="views/车间管理/工序流转/MES_StationOutBill_PDA.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/工序流转卡/Sc_ProcessExchangeBill.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/工序流转卡/Sc_ProcessExchangeBillList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/报表分析/Qk_OutProcessList.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/报表分析/Sc_ProductionProcessDetailsReport.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/车间管理/报表分析/Sc_WorkShopReport.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/领料发货/其他出库/Kf_OtherOutBackBill_Fast.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/其他出库/Kf_OtherOutBackBill_FastList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/其他出库/Kf_OtherOutBill_Fast.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/其他出库/Kf_OtherOutBill_FastList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/委外出库/Kf_EntrustOutBackBill_Fast.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/委外出库/Kf_EntrustOutBackBill_FastList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/委外出库/Kf_EntrustOutBill_Fast.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/委外出库/Kf_EntrustOutBill_FastList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/销售出库/Kf_SellOutBackBill_Fast.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/销售出库/Kf_SellOutBackBill_FastList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/销售出库/Kf_SellOutBill_Fast.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/领料发货/销售出库/Kf_SellOutBill_FastList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/领料发货/领料出库/Kf_MateOutBackBill_Fast.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/领料出库/Kf_MateOutBackBill_FastList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/领料出库/Kf_MateOutBill_Fast.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/领料发货/领料出库/Kf_MateOutBill_FastList.html">
      <publishTime>03/29/2021 10:48:23</publishTime>
    </File>
    <File Include="views/验收入库/产品入库/Kf_ProductInBackBill.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/产品入库/Kf_ProductInBackBillList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/产品入库/Kf_ProductInBill_Fast.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/产品入库/Kf_ProductInBill_FastList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/产品入库/Xs_SeOrderPickUp_New.html">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/验收入库/其他入库/Kf_OtherInBackBill_Fast.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/其他入库/Kf_OtherInBackBill_FastList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/其他入库/Kf_OtherInBill_Fast.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/其他入库/Kf_OtherInBill_FastList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Kf_POStockInBackBill.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Kf_POStockInBackBillList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Kf_POStockInBill_Fast.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/Kf_POStockInBill_FastList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/外购入库/qrscan.js">
      <publishTime>03/23/2021 14:14:38</publishTime>
    </File>
    <File Include="views/验收入库/委外入库/Kf_EntrustInBackBill.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/委外入库/Kf_EntrustInBackBillList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/委外入库/Kf_EntrustInBill_Fast.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="views/验收入库/委外入库/Kf_EntrustInBill_FastList.html">
      <publishTime>03/29/2021 10:48:24</publishTime>
    </File>
    <File Include="Web.config">
      <publishTime>03/29/2021 08:52:29</publishTime>
    </File>
  </ItemGroup>
</Project>
WebTM/WebTM.csproj
@@ -435,7 +435,17 @@
    <Content Include="views\基础资料\生产基础资料\Gy_Process.html" />
    <Content Include="views\基础资料\生产基础资料\H_ProcessDetail.html" />
    <Content Include="views\基础资料\生产基础资料\H_ProcessList.html" />
    <Content Include="views\基础资料\采购基础资料\Gy_Supplier.html" />
    <Content Include="views\基础资料\销售基础资料\Gy_Customer.html" />
    <Content Include="views\模治具管理\模治具管理\Sc_CheckToolsRepairWorkBillList.html" />
    <Content Include="views\生产工序管理\委外工单\WW_EntrustWorkOrderBillMainList.html" />
    <Content Include="views\生产工序管理\委外工序汇报单\Sc_StationOutBillMainList.html" />
    <Content Include="views\生产工序管理\工序汇报单\Sc_ProcessReportList.html" />
    <Content Include="views\生产工序管理\工序派工单\Sc_ProcessSendWorkList.html" />
    <Content Include="views\生产工序管理\工序计划单\Sc_ProcessPlanList.html" />
    <Content Include="views\生产管理\生产任务单\Sc_ICMOBillList.html" />
    <Content Include="views\生产管理\生产投料单\Sc_PPBomBillList.html" />
    <Content Include="views\生产管理\生产汇报单\Sc_ICMOReportBillList.html" />
    <Content Include="views\组装单\Sc_AssemblyBill_Fast.html" />
    <Content Include="views\计划管理\工艺路线\Gy_RoutingBillList.html" />
    <Content Include="views\车间管理\不良品评审单\Cj_NoPassProcList.html" />
WebTM/layuiadmin/Scripts/webConfig.js
@@ -1,8 +1,9 @@
function GetWEBURL() {
    //var WEBURL = "http://192.168.16.80:8011/";          //办公室服务器
    //var WEBURL = "http://localhost:8081/SWEAPI/";       //ch本地
    var WEBURL = "http://localhost:8081/JFAPI/";       //zgq本地
     //var WEBURL = "http://localhost:8081/lubaoWebAPI/";//王永波本地配置
    var WEBURL = "http://localhost:8085/JFAPI/";       //zgq本地
    //var WEBURL = "http://localhost:8081/lubaoWebAPI/";//王永波本地配置
    //var WEBURL = "http://101.37.171.70:8081/API/";       //公司服务器
    return WEBURL
}
WebTM/views/index.html
@@ -182,6 +182,18 @@
                              <dd><a lay-href="生产管理/生产任务单/Sc_ICMOBillList.html">生产任务单列表</a></dd>
                          </dl>
                      </dd>
                      <dd class="layui-nav-itemed">
                          <a>生产投料单</a>
                          <dl class="layui-nav-child">
                              <dd><a lay-href="生产管理/生产投料单/Sc_PPBomBillList.html">生产用料清单列表</a></dd>
                          </dl>
                      </dd>
                      <dd class="layui-nav-itemed">
                          <a>生产汇报单</a>
                          <dl class="layui-nav-child">
                              <dd><a lay-href="生产管理/生产汇报单/Sc_ICMOReportBillList.html">生产汇报单列表</a></dd>
                          </dl>
                      </dd>
                  </dl>
              </li>
              <li data-name="set" class="layui-nav-item">
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Cc_LookingForReturnBillList.html
@@ -193,7 +193,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/LEMS/MES_Gy_RoutingBillList_Json',
                    url: GetWEBURL() + '/LEMS/MES_Gy_RoutingBillList_Json',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_LookingForBillList.html
@@ -203,7 +203,7 @@
                var index = layer.load(0);
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/LookingFor/GetLookingForBillList',
                    url: GetWEBURL() + '/LookingFor/GetLookingForBillList',
                    type: "GET",
                    data: { "sWhere": sWhere, "HBillType": HBillType },
                    success: function (data1) {
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_Fast.html
@@ -352,7 +352,7 @@
        {
            table.render({
                elem: '#wl-table'
                    , url: GetWEBURL1() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1207', sWhere: '' }
                    , cols: [[
@@ -576,7 +576,7 @@
                       if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                           table.render({
                               elem: '#wl-table'
                         , url: GetWEBURL1() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                         , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                         , cellMinWidth: 80
                         , toolbar: '#toolbarDemo'
                         , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
@@ -725,7 +725,7 @@
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table'
                                    , url: GetWEBURL1() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                    , toolbar: '#toolbarDemo'
                                    , totalRow: true
                                    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_FastList.html
@@ -159,7 +159,7 @@
            var sBillType = '1207'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -207,7 +207,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1207', sWhere: '' }
@@ -245,7 +245,7 @@
        var sBillType = '1207'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_UpMoveStockBill.html
@@ -350,7 +350,7 @@
        {
            table.render({
                elem: '#wl-table'
                    , url: GetWEBURL1() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1207', sWhere: '' }
                    , cols: [[
@@ -582,7 +582,7 @@
                       if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                           table.render({
                               elem: '#wl-table'
                         , url: GetWEBURL1() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                         , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                         , cellMinWidth: 80
                         , toolbar: '#toolbarDemo'
                         , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
@@ -729,7 +729,7 @@
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table'
                                    , url: GetWEBURL1() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                    , toolbar: '#toolbarDemo'
                                    , totalRow: true
                                    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_Department.html
@@ -140,7 +140,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Department/list',
                    url: GetWEBURL() + '/Gy_Department/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_Employee.html
@@ -144,7 +144,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Employee/list',
                    url: GetWEBURL() + '/Gy_Employee/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_Material.html
@@ -148,7 +148,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Material/list',
                    url: GetWEBURL() + '/Gy_Material/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_Warehouse.html
@@ -139,7 +139,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Warehouse/list',
                    url: GetWEBURL() + '/Gy_Warehouse/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/¹¤×Ê»ù´¡×ÊÁÏ/Gy_Group.html
@@ -143,7 +143,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Group/list',
                    url: GetWEBURL() + '/Gy_Group/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/Éú²ú»ù´¡×ÊÁÏ/Gy_BadReason.html
@@ -138,7 +138,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_BadReason/list',
                    url: GetWEBURL() + '/Gy_BadReason/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/Éú²ú»ù´¡×ÊÁÏ/Gy_Process.html
@@ -153,7 +153,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Process/list',
                    url: GetWEBURL() + '/Gy_Process/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/Éú²ú»ù´¡×ÊÁÏ/Gy_Source.html
@@ -141,7 +141,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Source/list',
                    url: GetWEBURL() + '/Gy_Source/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/²É¹º»ù´¡×ÊÁÏ/Gy_Supplier.html
@@ -140,7 +140,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Supplier/list',
                    url: GetWEBURL() + '/Gy_Supplier/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/»ù´¡×ÊÁÏ/ÏúÊÛ»ù´¡×ÊÁÏ/Gy_Customer.html
@@ -140,7 +140,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Gy_Customer/list',
                    url: GetWEBURL() + '/Gy_Customer/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_CheckToolsRepairWorkBillList.html
@@ -235,7 +235,7 @@
                var index = layer.load(0);
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Sc_CheckToolsRepair/GetCheckToolsRepairWorkBillList',
                    url: GetWEBURL() + '/Sc_CheckToolsRepair/GetCheckToolsRepairWorkBillList',
                    type: "GET",
                    data: {},
                    success: function (data1) {
WebTM/views/Éú²ú¹ÜÀí/Éú²úͶÁϵ¥/Sc_PPBomBillList.html
New file
@@ -0,0 +1,208 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>生产用料清单列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <script src="../../../layuiadmin/layui/layui.js"></script>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-col-md12">
            <div class="layui-card" style="padding: 1px">
                <div class="layui-card-body" style="padding: 1px;">
                    <form class="layui-form" action="" lay-filter="component-form-group">
                        <div class="layui-collapse">
                            <div class="layui-colla-item">
                                <div class="layui-colla-title layui-inline">
                                    <div class="layui-inline">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">单据号</label>
                                    <div class="layui-input-block" style="margin-left: 120px;">
                                        <input type="text" class="layui-input" name="HBillNo" id="HBillNo">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">物料名称</label>
                                    <div class="layui-input-block" style="margin-left: 120px;">
                                        <input type="text" class="layui-input" name="HMaterialName" id="HMaterialName">
                                    </div>
                                </div>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                </button>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                            </div>
                        </div>
                        <table class="" id="mainTable" lay-filter="mainTable"></table>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>预览</button>-->
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>刷新</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳回</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详情</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>生成送货单</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>退出</button>
                            </div>
                        </script>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage','laydate'], function () {
            var $ = layui.$
            , admin = layui.admin
            , layer = layui.layer
            , table = layui.table
            , form = layui.form
            , element = layui.element
            , laypage = layui.laypage
            , laydate = layui.laydate
            var sWhere = "";
            var option = {
                elem: '#mainTable'
                //, toolbar: '#toolbarDemo'
                ,height: 'full-50'
                , page: true
                ,cellMinWidth: 90
                , cols: [[
                    { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
                    , { field: '日期', title: '日期' }
                    , { field: '单据号', title: '单据号' }
                    , { field: 'HDeptID', title: 'HDeptID', hide: true }
                    , { field: '部门代码', title: '部门代码' }
                    , { field: '部门', title: '部门' }
                    , { field: 'HMaterID', title: 'HMaterID', hide: true }
                    , { field: '产品代码', title: '产品代码' }
                    , { field: '产品名称', title: '产品名称' }
                    , { field: '产品规格', title: '产品规格' }
                    , { field: 'HUnitID', title: 'HUnitID', hide: true }
                    , { field: '主表计量单位代码', title: '主表计量单位代码' }
                    , { field: '主表计量单位', title: '主表计量单位' }
                    , { field: '生产数量', title: '生产数量' }
                    , { field: 'hsubid', title: 'hsubid', hide: true }
                    , { field: 'hmaterid2', title: 'hmaterid2', hide: true }
                    , { field: '物料代码', title: '物料代码' }
                    , { field: '物料名称', title: '物料名称' }
                    , { field: '规格型号', title: '规格型号' }
                    , { field: 'hunitid2', title: 'hunitid2', hide: true }
                    , { field: '计量单位代码', title: '计量单位代码' }
                    , { field: '计量单位', title: '计量单位' }
                    , { field: '数量', title: '数量' }
                    , { field: '损耗率', title: '损耗率' }
                    , { field: 'HWHID', title: 'HWHID', hide: true }
                    , { field: '仓库代码', title: '仓库代码' }
                    , { field: '仓库', title: '仓库' }
                    , { field: 'HSPID', title: 'HSPID', hide: true }
                    , { field: '仓位代码', title: '仓位代码' }
                    , { field: '仓位', title: '仓位' }
                    , { field: '生产任务单号', title: '生产任务单号' }
                    , { field: '制单人', title: '制单人' }
                    , { field: '制单日期', title: '制单日期' }
                    , { field: '审核人', title: '审核人' }
                    , { field: '审核日期', title: '审核日期' }
                    , { field: '计划跟踪号', title: '计划跟踪号' }
                    , { field: '计划模式', title: '计划模式' }
                ]]
            };
            var index = layer.load(0, { shade: false });
            //进入页面显示的缓存列表
            $.ajax({
                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                url: GetWEBURL() + '/Sc_PPBomBill/list',
                type: "GET",
                data: { "sWhere": sWhere },
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
                        table.render(option);
                        layer.close(index);
                    } else {
                        layer.close(index);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(index);
                    layer.alert("接口请求失败!", { icon: 5 });
                }
            });
            //重置按钮
            form.on('submit(btnReSearch)', function (data) {
                $("#HNumber").val("");
                $("#HName").val("");
                $("#btnSearch").click();
            });
            //查询按钮
            form.on('submit(btnSearch)', function (data) {
                var HBillNo = $("#HBillNo").val();
                var HMaterialName = $("#HMaterialName").val();
                if (HBillNo) {
                    sWhere += " and å•据号 like '%" + HBillNo + "%'";
                }
                if (HMaterialName) {
                    sWhere += " and ç‰©æ–™åç§° like '%" + HMaterialName + "%'";
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL() + '/Sc_PPBomBill/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
                            table.render(option);
                            layer.alert("查询成功", { icon: 1 });
                        } else {
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
                sWhere = "";//调用接口后清空sWhere缓存
            });
            //laydate.render({
            //    elem: '#HDate'
            //    , type: 'datetime'
            //    , trigger: 'click'
            //    , format:'yyyy-MM-dd HH:mm'
            //});
            //以上是layui模块
        });
    </script>
</body>
</html>
WebTM/views/Éú²ú¹ÜÀí/Éú²ú»ã±¨µ¥/Sc_ICMOReportBillList.html
New file
@@ -0,0 +1,205 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>生产汇报单列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <script src="../../../layuiadmin/layui/layui.js"></script>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-col-md12">
            <div class="layui-card" style="padding: 1px">
                <div class="layui-card-body" style="padding: 1px;">
                    <form class="layui-form" action="" lay-filter="component-form-group">
                        <div class="layui-collapse">
                            <div class="layui-colla-item">
                                <div class="layui-colla-title layui-inline">
                                    <div class="layui-inline">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">单据号</label>
                                    <div class="layui-input-block" style="margin-left: 120px;">
                                        <input type="text" class="layui-input" name="HBillNo" id="HBillNo">
                                    </div>
                                </div>
                                <!--<div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">物料名称</label>
                                    <div class="layui-input-block" style="margin-left: 120px;">
                                        <input type="text" class="layui-input" name="HMaterialName" id="HMaterialName">
                                    </div>
                                </div>-->
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                </button>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                            </div>
                        </div>
                        <table class="" id="mainTable" lay-filter="mainTable"></table>
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>预览</button>-->
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>刷新</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳回</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详情</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>生成送货单</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>退出</button>
                            </div>
                        </script>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage','laydate'], function () {
            var $ = layui.$
            , admin = layui.admin
            , layer = layui.layer
            , table = layui.table
            , form = layui.form
            , element = layui.element
            , laypage = layui.laypage
            , laydate = layui.laydate
            var sWhere = "";
            var option = {
                elem: '#mainTable'
                //, toolbar: '#toolbarDemo'
                ,height: 'full-50'
                , page: true
                ,cellMinWidth: 90
                , cols: [[
                    { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
                    , { field: '日期', title: '日期' }
                    , { field: '单据号', title: '单据号' }
                    , { field: '班组代码', title: '班组代码' }
                    , { field: '班组', title: '班组' }
                    , { field: '操作员', title: '操作员' }
                    , { field: '生产资源代码', title: '生产资源代码' }
                    , { field: '生产资源', title: '生产资源' }
                    , { field: '表头备注', title: '表头备注' }
                    , { field: 'hsubid', title: 'hsubid', hide: true }
                    , { field: 'hmaterid', title: 'hmaterid', hide: true }
                    , { field: '物料代码', title: '物料代码' }
                    , { field: '物料名称', title: '物料名称' }
                    , { field: '规格型号', title: '规格型号' }
                    , { field: 'hunitid', title: 'hunitid', hide: true }
                    , { field: '计量单位代码', title: '计量单位代码' }
                    , { field: '计量单位', title: '计量单位' }
                    , { field: '生产数量', title: '生产数量' }
                    , { field: '生产任务单号', title: '生产任务单号' }
                    , { field: '表体备注', title: '表体备注' }
                    , { field: '制单人', title: '制单人' }
                    , { field: '制单日期', title: '制单日期' }
                    , { field: '审核人', title: '审核人' }
                    , { field: '审核日期', title: '审核日期' }
                    , { field: '修改人', title: '修改人' }
                    , { field: '修改日期', title: '修改日期' }
                    , { field: '关闭人', title: '关闭人' }
                    , { field: '关闭日期', title: '关闭日期' }
                    , { field: '作废人', title: '作废人' }
                    , { field: '作废日期', title: '作废日期' }
                    , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true }
                    , { field: 'HEmpID', title: 'HEmpID', hide: true }
                    , { field: 'HEmpName', title: 'HEmpName', hide: true }
                    , { field: 'HSourceID', title: 'HSourceID', hide: true }
                    , { field: 'HSourceName', title: 'HSourceName', hide: true }
                    , { field: 'HGroupID', title: 'HGroupID', hide: true }
                    , { field: 'HGroupName', title: 'HGroupName', hide: true }
                    , { field: 'HEmpNumber', title: 'HEmpNumber', hide: true }
                ]]
            };
            var index = layer.load(0, { shade: false });
            //进入页面显示的缓存列表
            $.ajax({
                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                url: GetWEBURL() + '/Sc_ICMOReportBill/list',
                type: "GET",
                data: { "sWhere": sWhere },
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
                        table.render(option);
                        layer.close(index);
                    } else {
                        layer.close(index);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(index);
                    layer.alert("接口请求失败!", { icon: 5 });
                }
            });
            //重置按钮
            form.on('submit(btnReSearch)', function (data) {
                $("#HNumber").val("");
                $("#HName").val("");
                $("#btnSearch").click();
            });
            //查询按钮
            form.on('submit(btnSearch)', function (data) {
                var HBillNo = $("#HBillNo").val();
                if (HBillNo) {
                    sWhere += " and å•据号 like '%" + HBillNo + "%'";
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL() + '/Sc_ICMOReportBill/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
                            table.render(option);
                            layer.alert("查询成功", { icon: 1 });
                        } else {
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
                sWhere = "";//调用接口后清空sWhere缓存
            });
            //laydate.render({
            //    elem: '#HDate'
            //    , type: 'datetime'
            //    , trigger: 'click'
            //    , format:'yyyy-MM-dd HH:mm'
            //});
            //以上是layui模块
        });
    </script>
</body>
</html>
WebTM/views/×é×°µ¥/Sc_AssemblyBill_Fast.html
@@ -257,7 +257,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                           elem: '#mx-table-xx'
                         , url: GetWEBURL1() + '/Assembly/DisBillEntryList_Mate_Webs_Json'
                         , url: GetWEBURL() + '/Assembly/DisBillEntryList_Mate_Webs_Json'
                         , cellMinWidth: 80
                         , toolbar: '#toolbarDemo'
                         , where: { HInterID: sInterID, sBillType: '3727', sWhere: '' }
@@ -368,7 +368,7 @@
                            layer.load(3)
                                table.render({
                                    elem: '#mx-table-xx'
                                    , url: GetWEBURL1() + '/Assembly/DisBillEntryList_Mate_Webs_Json'
                                    , url: GetWEBURL() + '/Assembly/DisBillEntryList_Mate_Webs_Json'
                              , cellMinWidth :80
                              , toolbar: '#toolbarDemo'
                              , where: { HInterID: HInterID, sBillType: '3727', sWhere: '' }
@@ -423,7 +423,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#mx-table-xx' 
                                  , url: GetWEBURL1() + '/Assembly/DisBillEntryList_Mate_Webs_Json'
                                  , url: GetWEBURL() + '/Assembly/DisBillEntryList_Mate_Webs_Json'
                                //, cellMinWidth: 80
                              , toolbar: '#toolbarDemo'
                               , where: { HInterID: sInterID, sBillType: '3727', sWhere: '' }
WebTM/views/¼Æ»®¹ÜÀí/¹¤ÒÕ·Ïß/Gy_RoutingBillList.html
@@ -193,7 +193,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/LEMS/MES_Gy_RoutingBillList_Json',
                    url: GetWEBURL() + '/LEMS/MES_Gy_RoutingBillList_Json',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/³µ¼ä¹ÜÀí/²»Á¼Æ·ÆÀÉóµ¥/Cj_NoPassProcList.html
@@ -158,7 +158,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/Cj_NoPassProc/list',
                    url: GetWEBURL() + '/Cj_NoPassProc/list',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת/MES_StationInBill.html
@@ -615,7 +615,7 @@
            //待接收工单页签
            table.render({
                elem: '#djs-table'
                , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , cols: [[
                    { field: 'HInterID', title: '序号' }
                    , { field: 'HBillNo', title: '状态', sort: true }
@@ -636,7 +636,7 @@
            //今日进站页签
            table.render({
                elem: '#jr-table'
                , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , cellMinWidth: 100
                , cols: [[
                    { field: 'HInterID', title: '序号',width:80 }
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת/MES_StationOutBillList.html
@@ -224,7 +224,7 @@
                }
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL1() + '/api/newBill/getStationOutBillList',
                    url: GetWEBURL() + '/api/newBill/getStationOutBillList',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (data1) {
WebTM/views/ÁìÁÏ·¢»õ/ÆäËû³ö¿â/Kf_OtherOutBackBill_Fast.html
@@ -301,7 +301,7 @@
        {
            table.render({
                elem: '#wl-table'
                          , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                          , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                          , toolbar: '#toolbarDemo'
                          , where: { HBillID: linterid, HBillType: '1249', sWhere: '' }
                          , cols: [[
@@ -470,7 +470,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table'
                               , url: GetWEBURL1() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                          , toolbar: '#toolbarDemo'
                          , where: { HBillID: sInterID, HBillType: '1249', sWhere: '' }
                          , cols: [[{ type: 'radio' }
@@ -696,7 +696,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table' 
                          , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                          , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                          , toolbar: '#toolbarDemo'
                          , where: { HBillID: sInterID, HBillType: '1249', sWhere: '' }
                          , cols: [[
@@ -752,7 +752,7 @@
                            table.render({
                                elem: '#wl-table'
                                //, url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1249', sWhere: '' }
                              , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÆäËû³ö¿â/Kf_OtherOutBackBill_FastList.html
@@ -134,7 +134,7 @@
            var sBillType = '1249'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -182,7 +182,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table' 
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1249', sWhere: '' }
@@ -220,7 +220,7 @@
        var sBillType = '1249'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÆäËû³ö¿â/Kf_OtherOutBill_Fast.html
@@ -303,7 +303,7 @@
        {
            table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL1() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1206', sWhere: '' }
                    , cols: [[
@@ -497,7 +497,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table' 
                               , url: GetWEBURL1() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillID: sInterID, HBillType: '1206', sWhere: '' }
@@ -701,7 +701,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table' 
                                , url: GetWEBURL1() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                          , toolbar: '#toolbarDemo'
                          , where: { HBillID: sInterID, HBillType: '1206', sWhere: '' }
                          , cellMinWidth: 90
@@ -757,7 +757,7 @@
                            table.render({
                                elem: '#wl-table'
                                // , url: 'http://61.130.49.162:9090/WMSAPI///OtherOutBill/DisBillEntryList_Webs_Json'
                                 , url: GetWEBURL1() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                                 , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1206', sWhere: '' }
                              , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÆäËû³ö¿â/Kf_OtherOutBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1206'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1206', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1206'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ίÍâ³ö¿â/Kf_EntrustOutBackBill_Fast.html
@@ -341,7 +341,7 @@
            {
                table.render({
                elem: '#wl-table'
                    , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1238', sWhere: '' }
                    , cols: [[{ type: 'radio' }
@@ -674,7 +674,7 @@
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table'
                              , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1238', sWhere: '' }
                              , cols: [[
@@ -728,7 +728,7 @@
                                table.render({
                                    elem: '#wl-table'
                                    //, url: 'http://l192.168.16.145:8011//Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1238', sWhere: '' }
                                  , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ίÍâ³ö¿â/Kf_EntrustOutBackBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1238'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table' 
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1238', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1238'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ίÍâ³ö¿â/Kf_EntrustOutBill_Fast.html
@@ -316,7 +316,7 @@
        {
            table.render({
                elem: '#wl-table'
                    , url: GetWEBURL1() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json'
                    , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1211', sWhere: '' }
                    , cols: [[
@@ -631,7 +631,7 @@
                            layer.load(3)
                                table.render({
                                elem: '#wl-table' 
                              , url: GetWEBURL1() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json'
                              , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1211', sWhere: '' }
                              , cellMinWidth: 90
@@ -684,7 +684,7 @@
                            table.render({
                                elem: '#wl-table'
                                // , url: 'http://61.130.49.162:9090/WMSAPI///EntrustOut/DisBillEntryList_Entrust_Webs_Json'
                              , url: GetWEBURL1() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json'
                              , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sNewInterID, HBillType: '1211', sWhere: '' }
                              , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ίÍâ³ö¿â/Kf_EntrustOutBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1211'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1211', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1211'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBackBill_Fast.html
@@ -353,7 +353,7 @@
            {
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL1() + '/SellOutBack/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/SellOutBack/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1247', sWhere: '' }
                    , cols: [[
@@ -548,7 +548,7 @@
                               //layer.msg(data.Message, { icon: 1 });
                               table.render({
                                   elem: '#wl-table'
                                    , url: GetWEBURL1() + '/SellOutBack/DisBillEntryList_Webs_Json'
                                    , url: GetWEBURL() + '/SellOutBack/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1247', sWhere: '' }
                                  , cols: [[
@@ -682,7 +682,7 @@
                                layer.load(3);
                                table.render({
                                    elem: '#wl-table'
                                      , url: GetWEBURL1() + '/SellOutBack/DisBillEntryList_Webs_Json'
                                      , url: GetWEBURL() + '/SellOutBack/DisBillEntryList_Webs_Json'
                                      , toolbar: '#toolbarDemo'
                                      , where: { HBillID: sInterID, HBillType: '1247', sWhere: '' }
                                      , cols: [[
@@ -760,7 +760,7 @@
                                
                                table.render({
                                    elem: '#wl-table'
                                  , url: GetWEBURL1() + '/SellOutBack/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/SellOutBack/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1247', sWhere: '' }
                                  , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBackBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1247'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table' 
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1247', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1247'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_Fast.html
@@ -390,7 +390,7 @@
            {
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL1() + '/SellOut/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                    , cellMinWidth: 80
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1205', sWhere: '' }
@@ -588,7 +588,7 @@
                           if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                               table.render({
                                   elem: '#wl-table' 
                                   , url: GetWEBURL1() + '/SellOut/DisBillEntryList_Webs_Json'
                                   , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                   , cellMinWidth: 80
                                   , toolbar: '#toolbarDemo'
                                   , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
@@ -801,7 +801,7 @@
                                table.render({
                                    elem: '#wl-table'
                                    // , url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL1() + '/SellOut/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                              , cols: [[
@@ -905,7 +905,7 @@
            //                    table.render({
            //                        elem: '#wl-table'
            //                        //, url: 'http://61.130.49.162:9090/WMSAPI///SellOut/DisBillEntryList_Webs_Json'
            //                        , url: GetWEBURL1() + '/SellOut/DisBillEntryList_Webs_Json'
            //                        , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
            //                  , toolbar: '#toolbarDemo'
            //                  , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
            //                  , cellMinWidth: 90
@@ -966,7 +966,7 @@
                                element.tabChange('tab-SellOutBill', '3');
                                table.render({
                                    elem: '#wl-table'
                                    , url: GetWEBURL1() + '/SellOut/DisBillEntryList_Webs_Json'
                                    , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                  , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1205'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table' 
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1205', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1205'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBackBill_Fast.html
@@ -301,7 +301,7 @@
        {
            table.render({
            elem: '#wl-table'
                , url: GetWEBURL1() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                , toolbar: '#toolbarDemo'
                , where: { HBillID: linterid, HBillType: '1244', sWhere: '' }
                , cols: [[
@@ -485,7 +485,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table'
                              , url: GetWEBURL1() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                              , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1244', sWhere: '' }
                              , cols: [[
@@ -668,7 +668,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table'
                              , url: GetWEBURL1() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                              , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1244', sWhere: '' }
                              , cols: [[
@@ -718,7 +718,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table'
                              , url: GetWEBURL1() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                              , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1244', sWhere: '' }
                              , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBackBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1244'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1244', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1244'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBill_Fast.html
@@ -295,7 +295,7 @@
        {
            table.render({
                elem: '#wl-table'
                , url: GetWEBURL1() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                , url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                //, cellMinWidth: 80
                , toolbar: '#toolbarDemo'
                , where: { HBillID: linterid, HBillType: '1204', sWhere: '' }
@@ -519,7 +519,7 @@
                       if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                           table.render({
                               elem: '#wl-table' 
                               , url: GetWEBURL1() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                               , url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                               //, cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillID: sInterID, HBillType: '1204', sWhere: '' }
@@ -712,7 +712,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table' 
                          , url: GetWEBURL1() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                          , url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                          , toolbar: '#toolbarDemo'
                          , where: { HBillID: sInterID, HBillType: '1204', sWhere: '' }
                          , cellMinWidth: 90
@@ -764,7 +764,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table' 
                                , url: GetWEBURL1() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                                , url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1204', sWhere: '' }
                              , cols: [[
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1204'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table' 
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1204', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1204'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBackBill.html
@@ -297,7 +297,7 @@
        {
            table.render({
                elem: '#wl-table'
                    , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1245', sWhere: '' }
                    , cols: [[
@@ -468,7 +468,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table'
                         , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Webs_Json'
                         , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                          , toolbar: '#toolbarDemo'
                          , where: { HBillID: sInterID, HBillType: '1245', sWhere: '' }
                          , cols: [[ 
@@ -678,7 +678,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table'
                                  , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1245', sWhere: '' }
                                  , cols: [[
@@ -733,7 +733,7 @@
                            table.render({
                                elem: '#wl-table'
                                //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL1() + '/ProductInBackBill/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL() + '/ProductInBackBill/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1245', sWhere: '' }
                              , cols: [[
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBackBillList.html
@@ -133,7 +133,7 @@
            var sBillType = '1245'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1245', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1245'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_Fast.html
@@ -318,7 +318,7 @@
            {
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                    , cellMinWidth: 80
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1202', sWhere: '' }
@@ -526,7 +526,7 @@
                           table.render({
                               elem: '#wl-table'
                               //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Mate_Webs_Json'
                         , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Webs_Json'
                         , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                         , cellMinWidth: 80
                         , toolbar: '#toolbarDemo'
                         , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
@@ -738,7 +738,7 @@
                            table.render({
                                elem: '#wl-table'
                            //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                , toolbar: '#toolbarDemo'
                                , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                                , cols: [[
@@ -806,7 +806,7 @@
                            table.render({
                                elem: '#wl-table'
                                //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                              , cols: [[
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_FastList.html
@@ -159,7 +159,7 @@
            var sBillType = '1202'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -208,8 +208,8 @@
                           table.render({
                               elem: '#dj-table'
                               //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               //, url: GetWEBURL1() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL1() + '/ProductInBillList/DisBillEntryList_Mate_Webs_Json'
                               //, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/ProductInBillList/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1202', sWhere: '' }
@@ -247,7 +247,7 @@
        var sBillType = '1202'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/ProductIn/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBackBill_Fast.html
@@ -314,7 +314,7 @@
        {
            table.render({
                elem: '#wl-table'
                    , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1248', sWhere: '' }
                    , cols: [[
@@ -478,7 +478,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table' 
                               , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1248', sWhere: '' }
                              , cols: [[
@@ -679,7 +679,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table' 
                                  , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1248', sWhere: '' }
                                  , cols: [[
@@ -730,7 +730,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table'
                              , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                              , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1248', sWhere: '' }
                              , cols: [[
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBackBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1248'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1248', sWhere: '' }
@@ -220,7 +220,7 @@
        var sBillType = '1248'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_Fast.html
@@ -290,7 +290,7 @@
        {
            table.render({
                elem: '#wl-table'
                , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                , toolbar: '#toolbarDemo'
                , where: { HBillID: linterid, HBillType: '1203', sWhere: '' }
                , cols: [[
@@ -387,7 +387,7 @@
            var sInterID = $("#HInterID").val()
            table.render({
                elem: '#wl-table'
                , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                , toolbar: '#toolbarDemo'
                , where: { HBillID: linterid, HBillType: '1203', sWhere: '' }
                , cols: [[
@@ -551,7 +551,7 @@
                       if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                           table.render({
                               elem: '#wl-table'
                                  , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                                  , cols: [[
@@ -771,7 +771,7 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table' 
                                  , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                                 , cellMinWidth: 90
@@ -853,7 +853,7 @@
                            table.render({
                                elem: '#wl-table'
                                //, url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL1() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                              , toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                              , cols: [[
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1203'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1203', sWhere: '' }
@@ -220,7 +220,7 @@
        var sBillType = '1203'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBackBill.html
@@ -376,7 +376,7 @@
        {
            table.render({
                elem: '#wl-table'
                    , url: GetWEBURL1() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                    , url: GetWEBURL() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1239', sWhere: '' }
                    , cols: [[
@@ -587,7 +587,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table'
                               , url: GetWEBURL1() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillID: sInterID, HBillType: '1239', sWhere: '' }
@@ -807,7 +807,7 @@
                                            layer.load(3)
                                            table.render({
                                                    elem: '#wl-table' 
                                                  , url: GetWEBURL1() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                                                  , url: GetWEBURL() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                                                  , toolbar: '#toolbarDemo'
                                                  , where: { HBillID: sInterID, HBillType: '1239', sWhere: '' }
                                                  , cols: [[
@@ -872,7 +872,7 @@
                            table.render({
                                elem: '#wl-table'
                                //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBackBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL1() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                                //, toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1239', sWhere: '' }
                              , cols: [[
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBackBillList.html
@@ -133,7 +133,7 @@
            var sBillType = '1239'
            table.render({
                elem: '#dj-table'
                    ,url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -182,8 +182,8 @@
                           table.render({
                               elem: '#dj-table'
                               //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               //, url: GetWEBURL1() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL1() + '/POStockInBillList/DisBillEntryList_Mate_Webs_Json'
                               //, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/POStockInBillList/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1239', sWhere: '' }
@@ -221,7 +221,7 @@
        var sBillType = '1239'
                table.render({
                    elem: '#dj-table'
                    ,url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_Fast.html
@@ -1,1092 +1,1097 @@
<!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">
    <style>
        .layui-table-cell{
            height:auto;
            white-space:normal;
        }
    </style>
</head>
<body>
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card" style="padding: 1px">
            <div class="layui-card-body" style="padding: 5px; height:800px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>外购入库单</span>
                    </div>
                    <div class="layui-form-item" style="padding:15px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:60px;padding-left:0px;">MES库位</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HMESSPName" id="HMESSPName" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HMESSPID" id="HMESSPID" value="0" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HExplanation" id="HExplanation" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:40px;padding-left:0px;">条码</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab layui-col-xs12" lay-filter="tab-POStockInBill">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1" style="padding:1px;" class="layui-this">源单信息</li>
                            <li lay-id="2" style="padding:1px;">单据信息</li>
                            <li lay-id="3" style="padding:1px;">物料清单</li>
                            <li lay-id="4" style="padding:1px;">合计信息</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-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据类型</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <select name="HBillType" id="HBillType">
                                                <option value="1103">收料通知单</option>
                                                <option value="1102">采购订单</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <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">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--单据信息-->
                            <div class="layui-tab-item">
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓库</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs2">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HWHID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓位</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" autocomplete="off" class="layui-input" style="background-color:#efefef4d;" readonly>
                                            <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">供应商</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input" disabled="disabled">
                                            <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT" disabled="disabled">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">保管</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HKeeper" id="HKeeper" lay-verify="HKeeper" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HKeeperID" id="HKeeperID" lay-verify="HKeeperID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">验收</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSecManager" id="HSecManager" lay-verify="HSecManager" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HSecManagerID" id="HSecManagerID" lay-verify="HSecManagerID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSecManagerID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;display:none">制单人</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillerID" id="HBillerID" lay-verify="HBillerID" autocomplete="off" class="layui-input">
                                            <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HMakerID" id="HMakerID" lay-verify="HMakerID" value="0" autocomplete="off" class="layui-input" style="display : none">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">部门</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">单据号</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--物料清单-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <div class="layui-form-item" style="padding:0px;margin:0px">
                                            <div class="layui-row">
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label" style="width:40px;padding-left:0px;">数量</label>
                                                </div>
                                                <div class="layui-col-xs8">
                                                    <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                                    </div>
                                </div>
                            </div>
                            <!--合计信息-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">条码数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HBarcodeQtys" id="HBarcodeQtys" lay-verify="HBarcodeQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">总数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HSumQtys" id="HSumQtys" lay-verify="HSumQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">日志</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HNote" id="HNote" lay-verify="HNote" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </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 class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                                </div>
                                <div class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                                </div>
                                <div class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                                </div>
                            </div>
                        </div>-->
                    </div>
                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">提交</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                    </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
        //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) 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();
        //默认带入的仓库,如果启用仓位则仓位有效,如果没有启用则仓位灰度 new
        //获取参数
        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', skin: 'layui-layer-lan', title: "温馨提示" });
                return;
            }
            else {
                $.ajax({
                    url: GetWEBURL() + "/POStockInBill/get_GetCg_POOrderBillList",
                    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-POStockInBill', '2');
                            layer.load(3);
                        }
                        else {
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
            }
        }
        function RoadBillSub(linterid)//加载表体
        {
            table.render({
                elem: '#wl-table'
                , url: GetWEBURL1() + '/POStockInBill/DisBillEntryList_Webs_Json'
                , where: { HBillID: linterid, HBillType: '1201', sWhere: '' }
                , cols: [[
                    { type: 'radio' }
                , { field: 'HQty', title: '数量', sort: true }
                , { field: 'HQtyMust', title: '应收数量', sort: true }
                , { field: 'HMaterNumber', title: '物料代码', sort: true }
                , { field: 'HMaterName', title: '物料名称', sort: true }
                , { field: 'HMaterModel', title: '规格型号', sort: true }
                , { field: 'HSourceInterID', title: '源单主内码', sort: true }
                , { field: 'HSourceEntryID', title: '源单子内码', sort: true }
                , { field: 'HSourceBillNo', title: '源单单号', sort: true }
                , { field: 'HBatchNo', title: '批次', sort: true }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            });
        }
        //动态加载源单类型列表 new
        //判断是否新增
        if (linterid == null || linterid == 0) {
            //获取最大单据号 new
            $("#HInterID").val("");
            $("#HBillNo").val("");
            $.ajax({
                url: GetWEBURL() + "/Web/GetMAXNum",
                //url: GetWEBURL() + "/Web/UpdatePOInStockBillPrintQty", //方法所在页面和方法名
                type: "GET",
                data: { "HBillType": '1201' },
                success: function (d) {
                    //console.log(d.data);
                    $("#HInterID").val(d.data[0].HInterID);
                    $("#HBillNo").val(d.data[0].HBillNo);
                }
            });
        }
        else {//如果修改则走下面 new
            RoadBillMain(linterid);
            RoadBillSub(linterid);
        }
        //如果修改则走下面 new
        //进入物料明细页签、条码框 å…‰æ ‡ç„¦ç‚¹   new
        if (1 == 2)
        {
            element.tabChange('tab-POStockInBill', '3');
            var pFocus = $("#HBarCode");
            pFocus.focus();
            pFocus.select();
        }
        else
        {
            element.tabChange('tab-POStockInBill', '1');
            var pFocus = $("#HSourceBillNo");
            pFocus.focus();
            pFocus.select();
        }
        //
        //
        form.on('submit(HWHID-BT)', function () {//选择调入仓库
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '仓库列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HSpID-BT)', function () {//选择调入仓位
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '仓位列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HSupID-BT)', function () {//选择供应商
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '供应商列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_SupplierList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HKeeperID-BT)', function () {//选择保管
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '保管列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HSecManagerID-BT)', function (data) {//选择验收
            var sMainStr = JSON.stringify(data.field);
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '验收列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HDeptID-BT)', function () {//选择部门
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '部门列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(Cancel)', function () {
            sessionStorage["SourceFlag"] = false;
            parent.location.href = "../../../views/index.html"
            //window.close();//关闭当前页
        })
        form.on('submit(cmdModify)', function () {//编辑
            var sSubStr = table.cache['wl-table'];
            //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '明细列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
           // }
        });
        form.on('submit(cmdDelete)', function () {//删除
            var checkStatus = table.checkStatus('wl-table')
            , data = checkStatus.data;
           // console.log(data);
            var sInterID = $('#HInterID').val()
            var sMaterID = data[0].HMaterID
            var sBillType = '1201'
            var sAuxPropID = data[0].HAuxPropID
            //var sMTONo = data[0].HMTONo
            var sMTONo = ''
            var sSourceInterID = data[0].HSourceInterID
            var sSourceEntryID = data[0].HSourceEntryID
            $.ajax(
               {
                   type: "Get",
                   //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //方法所在页面和方法名
                   url: GetWEBURL() + "/POStockInBill/Delete_Json",
                   async: true,
                   data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": '1103', },
                   dataType: "json",
                   success: function (data) {
                       if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table'
                               //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               //, url: GetWEBURL1() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL1() + '/POStockInBill/DisBillEntryList_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
                               , cols: [[
                                  { type: 'radio' }
                                , { field: 'HQty', title: '数量', width: 80 }
                                , { field: 'HQtyMust', title: '应收数量', width: 80 }
                                , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                                , { field: 'HMaterName', title: '物料名称', width: 150 }
                                , { field: 'HMaterModel', title: '规格型号', width: 100 }
                                , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                                , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                                , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                                , { field: 'HBatchNo', title: '批次', width: 100 }
                                , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                                , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                         ]]
                         , height: 500
                           })
                       }
                       else {
                           layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                       }
                   },
                   error: function (err) {
                       layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                   }
               });
        });
        //提交
        form.on('submit(Saver)', function (data) {//提交
            if ($("#HExplanation").val() == "") {
                if ($("#HWHNAME").val() == "宽幅成品仓NEW" || $("#HWHNAME").val() == "样本仓NEW") {
                    $("#HWHNAME").val("");
                    $("#HWHID").val("");
                    layer.msg("请扫MES库位码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
            }
            var sMainStr = JSON.stringify(data.field);
            var sSubStr = table.cache['wl-table'];
            var sSourceType = $("#HBillType").val();
            if (AllowLoadData(sSubStr, 'Saver') != false)//非空验证
            {
                layer.load(3);
                $.ajax(
                {
                    type: "POST",
                    //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePOStockInBill_Json", //方法所在页面和方法名
                    url: GetWEBURL() + "/POStockInBill/set_SavePOStockInBill_Json",
                    async: true,
                    data: { "oMain": sMainStr},
                    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;
            }
        });
        //监听提交
        form.verify({
            numberOrEmpty: function (value, item) {
                // if (value != '') {
                if (!/^\d+$/.test(value)) {
                    return '不能为空或数字或者0';
                }
                //}
            }
        });
        //扫条码
        $('#HBarCode').on('keydown', function (event) {  //扫条码
            var sSubStr = table.cache['wl-table'];
            var sBarCode = $('#HBarCode').val()
            var sInterID = $("#HInterID").val()
            var sBillNo = $("#HBillNo").val()
            var sQty = $("#HQty").val()
            var sHBillType = $("#HBillType").val()  //源单类型
            var sBillType = '1201'
            var sHWHID = $("#HWHID").val()
            var sHSPID = $("#HStockPlaceID").val()
            var sSourceBillNo = $("#HSourceBillNo").val()
           // var Flag = sessionStorage["SourceFlag"];
            if (sQty == "") {
                sQty = 0;
            }
            if (event.keyCode == 13) {
                //判断条码是否为空  new
                if (sBarCode == '') {
                    layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                if (sBarCode != "") {
                    $('#HBarCode').val("");
                }
                if (sQty != "") {
                    $('#HQty').val("");
                }
                if (sHWHID == "184154") {
                    if (sHSPID == "0") {
                        layer.msg("仓位为空,请选择仓位!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                }
                  //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//非空验证
                                $.ajax({
                                    url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
                                    type: "GET",
                                    data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": '1103', "HOWNERID": 0 },
                                    success: function (result) {
                                        if (result.count == 1) {
                                            if (result.data.HBarType == '仓库条码') {
                                                $("#HWHNAME").val(result.data.HWhName);
                                                $("#HWHID").val(result.data.HWhID);
                                                $("#HStockPlaceName").val("");
                                                $("#HNote").val(";一键扫码仓库条码");
                                                element.tabChange('tab-POStockInBill', '2');  //跳转页签
                                            }
                                            else if (result.data.HBarType == '仓位条码') {
                                                $("#HStockPlaceName").val(result.data.HSPName);
                                                $("#HStockPlaceID").val(result.data.HSPID);
                                                $("#HWHNAME").val(result.data.HWhName);
                                                $("#HWHID").val(result.data.HWhID);
                                                $("#HNote").val(";一键扫码仓位条码");
                                                element.tabChange('tab-POStockInBill', '2');//跳转页签
                                            }
                                            else if (result.data.HBarType == '部门条码') {
                                                $("#HDeptName").val(result.data.HDeptName);
                                                $("#HDeptID").val(result.data.HDeptID);
                                                $("#HNote").val(";一键扫码部门条码");
                                                element.tabChange('tab-POStockInBill', '2');//跳转页签
                                            }
                                            else if (result.data.HBarType == '源单条码') {
                                                $("#HSupName").val(result.data.HSupName);
                                                $("#HSupID").val(result.data.HSupID);
                                                $("#HDeptName").val(result.data.HDeptName);
                                                $("#HDeptID").val(result.data.HDeptID);
                                                $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                                sessionStorage["SourceFlag"] = true;
                                                //获取源单类型、源单单号
                                                if (result.data.HSourceBillType == "1102") {
                                                    $("#HBillType").val("1102");
                                                }
                                                else if (result.data.HSourceBillType == "1103") {
                                                    $("#HBillType").val("1103");
                                                }
                                                else {
                                                    $("#HBillType").val("手工录入");
                                                }
                                                $("#HNote").val(";一键扫码源单条码");
                                                element.tabChange('tab-POStockInBill', '3');
                                            }
                                            else {
                                                if (sessionStorage["SourceFlag"] == "true") {
                                                    element.tabChange('tab-POStockInBill', '3');
                                                }
                                                else
                                                {
                                                    $("#HSupName").val(result.data.hSupNameField);
                                                    $("#HSupID").val(result.data.hSupIDField);
                                                    //$("#HDeptName").val(result.data.HDept);
                                                    //$("#HDeptID").val(result.data.HDeptID);
                                                    $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                                    sessionStorage["SourceFlag"] = true;
                                                    //获取源单类型、源单单号
                                                    if (result.data.hSourceBillTypeField == "1102") {
                                                        $("#HBillType").val("1102");
                                                    }
                                                    else if (result.data.hSourceBillTypeField == "1103") {
                                                        $("#HBillType").val("1103");
                                                    }
                                                    else {
                                                        $("#HBillType").val("手工录入");
                                                    }
                                                    $("#HNote").val(";物料条码");
                                                    element.tabChange('tab-POStockInBill', '3');
                                                }
                                            }
                                            //$("#HSupID").val(result.data.HSupID);
                                            //$("#HSupName").val(result.data.HSupName);
                                            //$("#HDeptID").val(result.data.HDeptID);
                                            //$("#HDeptName").val(result.data.HDeptName);
                                            layer.load(3)
                                            table.render({
                                                    elem: '#wl-table'
                                                  , url: GetWEBURL1() + '/POStockInBill/DisBillEntryList_Webs_Json'
                                                  , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
                                                  , cellMinWidth : 115
                                                  , cols: [[
                                                      { type: 'radio' }
                                                    , { field: 'HQty', title: '数量', sort: true }
                                                    , { field: 'HQtyMust', title: '应收数量', sort: true  }
                                                    , { field: 'HMaterNumber', title: '物料代码', sort: true }
                                                    , { field: 'HMaterName', title: '物料名称', sort: true }
                                                    , { field: 'HMaterModel', title: '规格型号', sort: true }
                                                    , { field: 'HSourceInterID', title: '源单主内码', sort: true }
                                                    , { field: 'HSourceEntryID', title: '源单子内码', sort: true }
                                                    , { field: 'HSourceBillNo', title: '源单单号', sort: true }
                                                    , { field: 'HBatchNo', title: '批次', sort: true }
                                                  ]]
                                                  , height: 500
                                                  , done: function () {
                                                      layer.closeAll("loading");
                                                  }
                                            });
                                        }
                                        else {
                                            // $("#verifycode").click();
                                            //layer.msg(result.Message, { icon: 5 });
                                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                        }
                                        layer.closeAll("loading");
                                    }
                                });
                            }
                            //else
                            //{
                            //    layer.msg(result.Message, { icon: 5 });
                            //}
                            //layer.closeAll("loading");
            //}
        });
        //扫源单
        $('#HSourceBillNo').on('keydown', function (event) {      //扫源单
            var HSourceBillNo = $('#HSourceBillNo').val()
            var sInterID = $("#HInterID").val()
            var sBillNo = $("#HBillNo").val()
            var HSourceBillType = $("#HBillType").val()
            if (event.keyCode == 13) {
                //判断文本框是否有数据    new
                if (HSourceBillNo == "" || sInterID <= 0) {
                    layer.msg("源单号为空,或者内码不存在!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                //
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                    url: GetWEBURL() + "/POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                    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;
                            layer.load(3);
                            element.tabChange('tab-POStockInBill', '2');
                            table.render({
                                elem: '#wl-table'
                                , cellMinWidth: 80
                              //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL1() + '/POStockInBill/DisBillEntryList_Webs_Json'
                              //, toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
                              , cols: [[
                                  { type: 'radio' }
                                , { field: 'HQty', title: '数量', sort: true }
                                , { field: 'HQtyMust', title: '应收数量', sort: true }
                                , { field: 'HMaterNumber', title: '物料代码', sort: true }
                                , { field: 'HMaterName', title: '物料名称', sort: true }
                                , { field: 'HMaterModel', title: '规格型号', sort: true }
                                , { field: 'HSourceInterID', title: '源单主内码', sort: true }
                                , { field: 'HSourceEntryID', title: '源单子内码', sort: true }
                                , { field: 'HSourceBillNo', title: '源单单号', sort: true }
                                , { field: 'HBatchNo', title: '批次'}
                              ]]
                                // , data: [linterid]
                                // , page: true
                              , height: 500
                              , done: function () {
                                  layer.closeAll("loading");
                              }
                            });
                        }
                        else {
                            // $("#verifycode").click();
                            //layer.msg(result.Message, { icon: 5 });
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
               // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
            }
        });
        $('#HStockPlaceName').on('keydown', function (event) {      //扫仓位
            var HBarCode = $('#HStockPlaceName').val()
            if (event.keyCode == 13) {
                //判断文本框是否有数据    new
                $.ajax({
                    url: GetWEBURL() + "/LookingFor/getSpName_Json",
                    type: "GET",
                    data: { "HBarCode": HBarCode},
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            $("#HStockPlaceName").val(result.data[0].HName);
                            $("#HStockPlaceID").val(result.data[0].HItemID);
                            $("#HWHID").val(result.data[0].HWHID);
                            $("#HWHNAME").val(result.data[0].HWhName);
                            element.tabChange('tab-POStockInBill', '2');
                        }
                        else {
                            // $("#verifycode").click();
                            //layer.msg(result.Message, { icon: 5 });
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
                // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
            }
        });
        //刷新明细页签
        table.render({
            elem: '#mx-table'
            // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
            //, toolbar: '#toolbarDemo'
            // , where: { sMsg: linterid, sMsg2: lentryid }
         , cols: [[
           , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
         ]]
         , page: true
         , height: 500
         , done: function () {
         }
        });
        //扫MES仓位
        $('#HMESSPName').on('keydown', function (event) {      //扫仓位
            var HBarCode = $('#HMESSPName').val();
            if (event.keyCode == 13) {
                $.ajax({
                    url: GetWEBURL() + "/LookingFor/getSpName_Json",
                    type: "GET",
                    data: { "HBarCode": HBarCode },
                    success: function (result) {
                        if (result.count == 1) {
                            $("#HMESSPID").val(result.data[0].HWHID);
                            $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
                            $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
                            $.ajax({
                                url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
                                type: "GET",
                                data: { "HERPWHID": result.data[0].HWHID },
                                success: function (result) {
                                    if (result.count == 1) {
                                        $("#HWHID").val(result.data[0].HMESWHID);
                                        $("#HWHNAME").val(result.data[0].HMESWHNAME);
                                        $("#HMESSPName").attr("readonly", "readonly");//MES仓位只读HExplanation
                                        $("#HMESSPName").css("background-color", "#efefef4d");
                                    }
                                    else {
                                        layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    }
                                    layer.closeAll("loading");
                                }
                            });
                        }
                        else {
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
            }
        });
    //以上为layui模块
    });
    function GetHWHValue(obj)  //返回调入仓库
    {
        $("#HWHNAME").val(obj[0].HName);
        //sessionStorage["HWHID"] = obj[0].HItemID;
        $("#HWHID").val(obj[0].HItemID);
    }
    function GetHSpValue(obj) {  //返回调入仓位
        $("#HStockPlaceName").val(obj[0].HName);
        $("#HStockPlaceID").val(obj[0].HItemID);
    }
    function GetHSupValue(obj) {  //返回供应商
        $("#HSupName").val(obj[0].HName);
        $("#HSupID").val(obj[0].HItemID);
    }
    function GetHKeeperValue(obj) {  //返回保管
        $("#HKeeper").val(obj[0].HName);
        $("#HKeeperID").val(obj[0].HItemID);
    }
    function GetHSecManagerValue(obj) {  //返回验收
        $("#HSecManager").val(obj[0].HName);
        $("#HSecManagerID").val(obj[0].HItemID);
    }
    function GetHDeptNameValue(obj) {   //返回部门
        $("#HDeptName").val(obj[0].HName);
        $("#HDeptID").val(obj[0].HItemID);
    }
    function AllowLoadData(sSubStr,bnt) {  //非空验证
        //if ($("#HSourceBillNo").val() == '') {
        //    layer.msg("请先扫源单!", { icon: 5 });
        //    return false;
        //}
        if($("#HDeptName").val()=='')
        {
            layer.msg("部门没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HSecManager").val() == '') {
            layer.msg("验收人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HKeeper").val() == '') {
            layer.msg("保管人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        //if ($("#HSupName").val() == '') {
        //    layer.msg("供应商没有选择", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
        //    return false;
        //}
        //if ($("#HWHNAME").val() == '') {
        //    layer.msg("仓库没有选择!", { icon: 5 });
        //    return false;
        //}
        if ($("#HBillNo").val() == '') {
            layer.msg("错误的单据号", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HInterID").val() == '') {
            layer.msg("错误的内码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if (typeof (sSubStr) == "undefined")
        {
            //layer.msg("没有物料明细记录", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
            layer.msg("没有物料明细记录", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if (bnt == 'Saver') {
            if (!typeof (sSubStr) == "undefined") {
                //for (var i = 0; i <= sSubStr.length - 1; i++) {  //判断扫码数量不能大于应收数量
                //    if (parseFloat(sSubStr[i].HQtyMust) > 0) {
                //        if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) {
                //            layer.msg("数量不能大于应收数量", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
                //            return false;
                //        }
                //    }
                //}
                for (var i = 0; i <= sSubStr.length - 1; i++) {   //判断扫码数量不能为0
                    if (parseFloat(sSubStr[i].HQty) > 0) {
                        s = 1;
                    }
                }
                if (s == 0) {
                    layer.msg("外购入库记录未扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
            }
        }
        else {
            return true;
        }
    }
    </script>
</body>
</html>
<!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">
    <style>
        .layui-table-cell{
            height:auto;
            white-space:normal;
        }
    </style>
</head>
<body>
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card" style="padding: 1px">
            <div class="layui-card-body" style="padding: 5px; height:800px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>外购入库单</span>
                    </div>
                    <div class="layui-form-item" style="padding:15px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:60px;padding-left:0px;">MES库位</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HMESSPName" id="HMESSPName" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HMESSPID" id="HMESSPID" value="0" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HExplanation" id="HExplanation" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:40px;padding-left:0px;">条码</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab layui-col-xs12" lay-filter="tab-POStockInBill">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1" style="padding:1px;" class="layui-this">源单信息</li>
                            <li lay-id="2" style="padding:1px;">单据信息</li>
                            <li lay-id="3" style="padding:1px;">物料清单</li>
                            <li lay-id="4" style="padding:1px;">合计信息</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-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据类型</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <select name="HBillType" id="HBillType">
                                                <option value="1103">收料通知单</option>
                                                <option value="1102">采购订单</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <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">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--单据信息-->
                            <div class="layui-tab-item">
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓库</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs2">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HWHID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓位</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" autocomplete="off" class="layui-input" style="background-color:#efefef4d;" readonly>
                                            <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">供应商</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input" disabled="disabled">
                                            <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT" disabled="disabled">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">保管</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HKeeper" id="HKeeper" lay-verify="HKeeper" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HKeeperID" id="HKeeperID" lay-verify="HKeeperID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">验收</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSecManager" id="HSecManager" lay-verify="HSecManager" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HSecManagerID" id="HSecManagerID" lay-verify="HSecManagerID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSecManagerID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;display:none">制单人</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillerID" id="HBillerID" lay-verify="HBillerID" autocomplete="off" class="layui-input">
                                            <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HMakerID" id="HMakerID" lay-verify="HMakerID" value="0" autocomplete="off" class="layui-input" style="display : none">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">部门</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">单据号</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--物料清单-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <div class="layui-form-item" style="padding:0px;margin:0px">
                                            <div class="layui-row">
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label" style="width:40px;padding-left:0px;">数量</label>
                                                </div>
                                                <div class="layui-col-xs8">
                                                    <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                                    </div>
                                </div>
                            </div>
                            <!--合计信息-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">条码数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HBarcodeQtys" id="HBarcodeQtys" lay-verify="HBarcodeQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">总数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HSumQtys" id="HSumQtys" lay-verify="HSumQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">日志</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HNote" id="HNote" lay-verify="HNote" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </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 class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                                </div>
                                <div class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                                </div>
                                <div class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                                </div>
                            </div>
                        </div>-->
                    </div>
                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">提交</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                    </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
        //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) 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();
        //默认带入的仓库,如果启用仓位则仓位有效,如果没有启用则仓位灰度 new
        //获取参数
        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', skin: 'layui-layer-lan', title: "温馨提示" });
                return;
            }
            else {
                $.ajax({
                    url: GetWEBURL() + "/POStockInBill/get_GetCg_POOrderBillList",
                    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-POStockInBill', '2');
                            layer.load(3);
                        }
                        else {
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
            }
        }
        function RoadBillSub(linterid)//加载表体
        {
            table.render({
                elem: '#wl-table'
                , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
                , where: { HBillID: linterid, HBillType: '1201', sWhere: '' }
                , cols: [[
                    { type: 'radio' }
                , { field: 'HQty', title: '数量', sort: true }
                , { field: 'HQtyMust', title: '应收数量', sort: true }
                , { field: 'HMaterNumber', title: '物料代码', sort: true }
                , { field: 'HMaterName', title: '物料名称', sort: true }
                , { field: 'HMaterModel', title: '规格型号', sort: true }
                , { field: 'HSourceInterID', title: '源单主内码', sort: true }
                , { field: 'HSourceEntryID', title: '源单子内码', sort: true }
                , { field: 'HSourceBillNo', title: '源单单号', sort: true }
                , { field: 'HBatchNo', title: '批次', sort: true }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            });
        }
        //动态加载源单类型列表 new
        //判断是否新增
        if (linterid == null || linterid == 0) {
            //获取最大单据号 new
            $("#HInterID").val("");
            $("#HBillNo").val("");
            $.ajax({
                url: GetWEBURL() + "/Web/GetMAXNum",
                //url: GetWEBURL() + "/Web/UpdatePOInStockBillPrintQty", //方法所在页面和方法名
                type: "GET",
                data: { "HBillType": '1201' },
                success: function (d) {
                    //console.log(d.data);
                    $("#HInterID").val(d.data[0].HInterID);
                    $("#HBillNo").val(d.data[0].HBillNo);
                }
            });
        }
        else {//如果修改则走下面 new
            RoadBillMain(linterid);
            RoadBillSub(linterid);
        }
        //如果修改则走下面 new
        //进入物料明细页签、条码框 å…‰æ ‡ç„¦ç‚¹   new
        if (1 == 2)
        {
            element.tabChange('tab-POStockInBill', '3');
            var pFocus = $("#HBarCode");
            pFocus.focus();
            pFocus.select();
        }
        else
        {
            element.tabChange('tab-POStockInBill', '1');
            var pFocus = $("#HSourceBillNo");
            pFocus.focus();
            pFocus.select();
        }
        //
        //
        form.on('submit(HWHID-BT)', function () {//选择调入仓库
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '仓库列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HSpID-BT)', function () {//选择调入仓位
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '仓位列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HSupID-BT)', function () {//选择供应商
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '供应商列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_SupplierList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HKeeperID-BT)', function () {//选择保管
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '保管列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HSecManagerID-BT)', function (data) {//选择验收
            var sMainStr = JSON.stringify(data.field);
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '验收列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(HDeptID-BT)', function () {//选择部门
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '部门列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
                }
            })
        });
        form.on('submit(Cancel)', function () {
            sessionStorage["SourceFlag"] = false;
            parent.location.href = "../../../views/index.html"
            //window.close();//关闭当前页
        })
        form.on('submit(cmdModify)', function () {//编辑
            var sSubStr = table.cache['wl-table'];
            //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '明细列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
           // }
        });
        form.on('submit(cmdDelete)', function () {//删除
            var checkStatus = table.checkStatus('wl-table')
            , data = checkStatus.data;
           // console.log(data);
            var sInterID = $('#HInterID').val()
            var sMaterID = data[0].HMaterID
            var sBillType = '1201'
            var sAuxPropID = data[0].HAuxPropID
            //var sMTONo = data[0].HMTONo
            var sMTONo = ''
            var sSourceInterID = data[0].HSourceInterID
            var sSourceEntryID = data[0].HSourceEntryID
            $.ajax(
               {
                   type: "Get",
                   //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //方法所在页面和方法名
                   url: GetWEBURL() + "/POStockInBill/Delete_Json",
                   async: true,
                   data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": '1103', },
                   dataType: "json",
                   success: function (data) {
                       if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#wl-table'
                               //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               //, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
                               , cols: [[
                                  { type: 'radio' }
                                , { field: 'HQty', title: '数量', width: 80 }
                                , { field: 'HQtyMust', title: '应收数量', width: 80 }
                                , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                                , { field: 'HMaterName', title: '物料名称', width: 150 }
                                , { field: 'HMaterModel', title: '规格型号', width: 100 }
                                , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                                , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                                , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                                , { field: 'HBatchNo', title: '批次', width: 100 }
                                , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                                , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                         ]]
                         , height: 500
                           })
                       }
                       else {
                           layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                       }
                   },
                   error: function (err) {
                       layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                   }
               });
        });
        //提交
        form.on('submit(Saver)', function (data) {//提交
            if ($("#HExplanation").val() == "") {
                if ($("#HWHNAME").val() == "宽幅成品仓NEW" || $("#HWHNAME").val() == "样本仓NEW") {
                    $("#HWHNAME").val("");
                    $("#HWHID").val("");
                    layer.msg("请扫MES库位码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
            }
            var sMainStr = JSON.stringify(data.field);
            var sSubStr = table.cache['wl-table'];
            var sSourceType = $("#HBillType").val();
            if (AllowLoadData(sSubStr, 'Saver') != false)//非空验证
            {
                layer.load(3);
                $.ajax(
                {
                    type: "POST",
                    //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePOStockInBill_Json", //方法所在页面和方法名
                    url: GetWEBURL() + "/POStockInBill/set_SavePOStockInBill_Json",
                    async: true,
                    data: { "oMain": sMainStr},
                    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;
            }
        });
        //监听提交
        form.verify({
            numberOrEmpty: function (value, item) {
                // if (value != '') {
                if (!/^\d+$/.test(value)) {
                    return '不能为空或数字或者0';
                }
                //}
            }
        });
        //扫条码
        $('#HBarCode').on('keydown', function (event) {  //扫条码
            var sSubStr = table.cache['wl-table'];
            var sBarCode = $('#HBarCode').val()
            var sInterID = $("#HInterID").val()
            var sBillNo = $("#HBillNo").val()
            var sQty = $("#HQty").val()
            var sHBillType = $("#HBillType").val()  //源单类型
            var sBillType = '1201'
            var sHWHID = $("#HWHID").val()
            var sHSPID = $("#HStockPlaceID").val()
            var sSourceBillNo = $("#HSourceBillNo").val()
           // var Flag = sessionStorage["SourceFlag"];
            if (sQty == "") {
                sQty = 0;
            }
            if (event.keyCode == 13) {
                //判断条码是否为空  new
                if (sBarCode == '') {
                    layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                if (sBarCode != "") {
                    $('#HBarCode').val("");
                }
                if (sQty != "") {
                    $('#HQty').val("");
                }
                if (sHWHID == "184154") {
                    if (sHSPID == "0") {
                        layer.msg("仓位为空,请选择仓位!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                }
                  //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//非空验证
                                $.ajax({
                                    url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
                                    type: "GET",
                                    data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": '1103', "HOWNERID": 0 },
                                    success: function (result) {
                                        if (result.count == 1) {
                                            if (result.data.HBarType == '仓库条码') {
                                                $("#HWHNAME").val(result.data.HWhName);
                                                $("#HWHID").val(result.data.HWhID);
                                                $("#HStockPlaceName").val("");
                                                $("#HNote").val(";一键扫码仓库条码");
                                                element.tabChange('tab-POStockInBill', '2');  //跳转页签
                                            }
                                            else if (result.data.HBarType == '仓位条码') {
                                                $("#HStockPlaceName").val(result.data.HSPName);
                                                $("#HStockPlaceID").val(result.data.HSPID);
                                                $("#HWHNAME").val(result.data.HWhName);
                                                $("#HWHID").val(result.data.HWhID);
                                                $("#HNote").val(";一键扫码仓位条码");
                                                element.tabChange('tab-POStockInBill', '2');//跳转页签
                                            }
                                            else if (result.data.HBarType == '部门条码') {
                                                $("#HDeptName").val(result.data.HDeptName);
                                                $("#HDeptID").val(result.data.HDeptID);
                                                $("#HNote").val(";一键扫码部门条码");
                                                element.tabChange('tab-POStockInBill', '2');//跳转页签
                                            }
                                            else if (result.data.HBarType == '源单条码') {
                                                $("#HSupName").val(result.data.HSupName);
                                                $("#HSupID").val(result.data.HSupID);
                                                $("#HDeptName").val(result.data.HDeptName);
                                                $("#HDeptID").val(result.data.HDeptID);
                                                $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                                sessionStorage["SourceFlag"] = true;
                                                //获取源单类型、源单单号
                                                if (result.data.HSourceBillType == "1102") {
                                                    $("#HBillType").val("1102");
                                                }
                                                else if (result.data.HSourceBillType == "1103") {
                                                    $("#HBillType").val("1103");
                                                }
                                                else {
                                                    $("#HBillType").val("手工录入");
                                                }
                                                $("#HNote").val(";一键扫码源单条码");
                                                element.tabChange('tab-POStockInBill', '3');
                                            }
                                            else {
                                                if (sessionStorage["SourceFlag"] == "true") {
                                                    element.tabChange('tab-POStockInBill', '3');
                                                }
                                                else
                                                {
                                                    $("#HSupName").val(result.data.hSupNameField);
                                                    $("#HSupID").val(result.data.hSupIDField);
                                                    //$("#HDeptName").val(result.data.HDept);
                                                    //$("#HDeptID").val(result.data.HDeptID);
                                                    $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                                    sessionStorage["SourceFlag"] = true;
                                                    //获取源单类型、源单单号
                                                    if (result.data.hSourceBillTypeField == "1102") {
                                                        $("#HBillType").val("1102");
                                                    }
                                                    else if (result.data.hSourceBillTypeField == "1103") {
                                                        $("#HBillType").val("1103");
                                                    }
                                                    else {
                                                        $("#HBillType").val("手工录入");
                                                    }
                                                    $("#HNote").val(";物料条码");
                                                    element.tabChange('tab-POStockInBill', '3');
                                                }
                                            }
                                            //$("#HSupID").val(result.data.HSupID);
                                            //$("#HSupName").val(result.data.HSupName);
                                            //$("#HDeptID").val(result.data.HDeptID);
                                            //$("#HDeptName").val(result.data.HDeptName);
                                            layer.load(3)
                                            table.render({
                                                    elem: '#wl-table'
                                                  , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
                                                  , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
                                                  , cellMinWidth : 115
                                                  , cols: [[
                                                      { type: 'radio' }
                                                    , { field: 'HQty', title: '数量', sort: true }
                                                    , { field: 'HQtyMust', title: '应收数量', sort: true  }
                                                    , { field: 'HMaterNumber', title: '物料代码', sort: true }
                                                    , { field: 'HMaterName', title: '物料名称', sort: true }
                                                    , { field: 'HMaterModel', title: '规格型号', sort: true }
                                                    , { field: 'HSourceInterID', title: '源单主内码', sort: true }
                                                    , { field: 'HSourceEntryID', title: '源单子内码', sort: true }
                                                    , { field: 'HSourceBillNo', title: '源单单号', sort: true }
                                                    , { field: 'HBatchNo', title: '批次', sort: true }
                                                  ]]
                                                  , height: 500
                                                  , done: function () {
                                                      layer.closeAll("loading");
                                                  }
                                            });
                                        }
                                        else {
                                            // $("#verifycode").click();
                                            //layer.msg(result.Message, { icon: 5 });
                                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                        }
                                        layer.closeAll("loading");
                                    }
                                });
                            }
                            //else
                            //{
                            //    layer.msg(result.Message, { icon: 5 });
                            //}
                            //layer.closeAll("loading");
            //}
        });
        //扫源单
        $('#HSourceBillNo').on('keydown', function (event) {      //扫源单
            var HSourceBillNo = $('#HSourceBillNo').val()
            var sInterID = $("#HInterID").val()
            var sBillNo = $("#HBillNo").val()
            var HSourceBillType = $("#HBillType").val()
            if (event.keyCode == 13) {
                //判断文本框是否有数据    new
                if (HSourceBillNo == "" || sInterID <= 0) {
                    layer.msg("源单号为空,或者内码不存在!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                //
                $.ajax({
                    //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                    url: GetWEBURL() + "/POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                    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;
                            layer.load(3);
                            element.tabChange('tab-POStockInBill', '2');
                            table.render({
                                elem: '#wl-table'
                                , cellMinWidth: 80
                              //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
                              //, toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
                              , cols: [[
                                  { type: 'radio' }
                                , { field: 'HQty', title: '数量', sort: true }
                                , { field: 'HQtyMust', title: '应收数量', sort: true }
                                , { field: 'HMaterNumber', title: '物料代码', sort: true }
                                , { field: 'HMaterName', title: '物料名称', sort: true }
                                , { field: 'HMaterModel', title: '规格型号', sort: true }
                                , { field: 'HSourceInterID', title: '源单主内码', sort: true }
                                , { field: 'HSourceEntryID', title: '源单子内码', sort: true }
                                , { field: 'HSourceBillNo', title: '源单单号', sort: true }
                                , { field: 'HBatchNo', title: '批次'}
                              ]]
                                // , data: [linterid]
                                // , page: true
                              , height: 500
                              , done: function () {
                                  layer.closeAll("loading");
                              }
                            });
                        }
                        else {
                            // $("#verifycode").click();
                            //layer.msg(result.Message, { icon: 5 });
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
               // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
            }
        });
        $('#HStockPlaceName').on('keydown', function (event) {      //扫仓位
            var HBarCode = $('#HStockPlaceName').val()
            if (event.keyCode == 13) {
                //判断文本框是否有数据    new
                $.ajax({
                    url: GetWEBURL() + "/LookingFor/getSpName_Json",
                    type: "GET",
                    data: { "HBarCode": HBarCode},
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            $("#HStockPlaceName").val(result.data[0].HName);
                            $("#HStockPlaceID").val(result.data[0].HItemID);
                            $("#HWHID").val(result.data[0].HWHID);
                            $("#HWHNAME").val(result.data[0].HWhName);
                            element.tabChange('tab-POStockInBill', '2');
                        }
                        else {
                            // $("#verifycode").click();
                            //layer.msg(result.Message, { icon: 5 });
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
                // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
            }
        });
        //刷新明细页签
        table.render({
            elem: '#mx-table'
            // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
            //, toolbar: '#toolbarDemo'
            // , where: { sMsg: linterid, sMsg2: lentryid }
         , cols: [[
           , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
         ]]
         , page: true
         , height: 500
         , done: function () {
         }
        });
        //扫MES仓位
        $('#HMESSPName').on('keydown', function (event) {      //扫仓位
            var HBarCode = $('#HMESSPName').val();
            if (event.keyCode == 13) {
                $.ajax({
                    url: GetWEBURL() + "/LookingFor/getSpName_Json",
                    type: "GET",
                    data: { "HBarCode": HBarCode },
                    success: function (result) {
                        if (result.count == 1) {
                            $("#HMESSPID").val(result.data[0].HWHID);
                            $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
                            $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
                            $.ajax({
                                url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
                                type: "GET",
                                data: { "HERPWHID": result.data[0].HWHID },
                                success: function (result) {
                                    if (result.count == 1) {
                                        $("#HWHID").val(result.data[0].HMESWHID);
                                        $("#HWHNAME").val(result.data[0].HMESWHNAME);
                                        $("#HMESSPName").attr("readonly", "readonly");//MES仓位只读HExplanation
                                        $("#HMESSPName").css("background-color", "#efefef4d");
                                    }
                                    else {
                                        layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    }
                                    layer.closeAll("loading");
                                }
                            });
                        }
                        else {
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                        layer.closeAll("loading");
                    }
                });
            }
        });
    //以上为layui模块
    });
    function GetHWHValue(obj)  //返回调入仓库
    {
        $("#HWHNAME").val(obj[0].HName);
        //sessionStorage["HWHID"] = obj[0].HItemID;
        $("#HWHID").val(obj[0].HItemID);
    }
    function GetHSpValue(obj) {  //返回调入仓位
        $("#HStockPlaceName").val(obj[0].HName);
        $("#HStockPlaceID").val(obj[0].HItemID);
    }
    function GetHSupValue(obj) {  //返回供应商
        $("#HSupName").val(obj[0].HName);
        $("#HSupID").val(obj[0].HItemID);
    }
    function GetHKeeperValue(obj) {  //返回保管
        $("#HKeeper").val(obj[0].HName);
        $("#HKeeperID").val(obj[0].HItemID);
    }
    function GetHSecManagerValue(obj) {  //返回验收
        $("#HSecManager").val(obj[0].HName);
        $("#HSecManagerID").val(obj[0].HItemID);
    }
    function GetHDeptNameValue(obj) {   //返回部门
        $("#HDeptName").val(obj[0].HName);
        $("#HDeptID").val(obj[0].HItemID);
    }
    function AllowLoadData(sSubStr,bnt) {  //非空验证
        //if ($("#HSourceBillNo").val() == '') {
        //    layer.msg("请先扫源单!", { icon: 5 });
        //    return false;
        //}
        if($("#HDeptName").val()=='')
        {
            layer.msg("部门没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HSecManager").val() == '') {
            layer.msg("验收人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HKeeper").val() == '') {
            layer.msg("保管人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        //if ($("#HSupName").val() == '') {
        //    layer.msg("供应商没有选择", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
        //    return false;
        //}
        //if ($("#HWHNAME").val() == '') {
        //    layer.msg("仓库没有选择!", { icon: 5 });
        //    return false;
        //}
        if ($("#HBillNo").val() == '') {
            layer.msg("错误的单据号", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HInterID").val() == '') {
            layer.msg("错误的内码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if (typeof (sSubStr) == "undefined")
        {
            //layer.msg("没有物料明细记录", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
            layer.msg("没有物料明细记录", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if (bnt == 'Saver') {
            if (!typeof (sSubStr) == "undefined") {
                //for (var i = 0; i <= sSubStr.length - 1; i++) {  //判断扫码数量不能大于应收数量
                //    if (parseFloat(sSubStr[i].HQtyMust) > 0) {
                //        if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) {
                //            layer.msg("数量不能大于应收数量", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
                //            return false;
                //        }
                //    }
                //}
                for (var i = 0; i <= sSubStr.length - 1; i++) {   //判断扫码数量不能为0
                    if (parseFloat(sSubStr[i].HQty) > 0) {
                        s = 1;
                    }
                }
                if (s == 0) {
                    layer.msg("外购入库记录未扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
            }
        }
        else {
            return true;
        }
    }
    </script>
</body>
</html>
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1201'
            table.render({
                elem: '#dj-table'
                    ,url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1201', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1201'
                table.render({
                    elem: '#dj-table'
                    ,url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    ,toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType,sWhere:''}
                    , cols: [[
WebTM/views/ÑéÊÕÈë¿â/ίÍâÈë¿â/Kf_EntrustInBackBill.html
@@ -333,7 +333,7 @@
            {
                table.render({
                    elem: '#wl-table'
                        , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                        , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                        , toolbar: '#toolbarDemo'
                        , where: { HBillID: linterid, HBillType: '1246', sWhere: '' }
                        , cols: [[
@@ -674,7 +674,7 @@
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table' 
                                      , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                      , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                      , toolbar: '#toolbarDemo'
                                      , where: { HBillID: sInterID, HBillType: '1246', sWhere: '' }
                                      , cols: [[
@@ -732,7 +732,7 @@
                                table.render({
                                    elem: '#wl-table'
                                    // , url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1246', sWhere: '' }
                                  , cols: [[
WebTM/views/ÑéÊÕÈë¿â/ίÍâÈë¿â/Kf_EntrustInBackBillList.html
@@ -133,7 +133,7 @@
            var sBillType = '1246'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType, sWhere: '' }
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1246', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1246'
        table.render({
            elem: '#dj-table'
            , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
            , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
            , toolbar: '#toolbarDemo'
            , where: { HBillType: sBillType, sWhere: '' }
            , cols: [[
WebTM/views/ÑéÊÕÈë¿â/ίÍâÈë¿â/Kf_EntrustInBill_Fast.html
@@ -1,1025 +1,1030 @@
<!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" style="padding:0">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 5px; height:800px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>委外入库单</span>
                    </div>
                    <div class="layui-form-item" style="padding:15px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:60px;padding-left:0px;">MES库位</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HMESSPName" id="HMESSPName" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HMESSPID" id="HMESSPID" value="0" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HExplanation" id="HExplanation" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:40px;padding-left:0px;">条码</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab layui-col-xs12" lay-filter="tab-Kf_EntrustInBill">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1" style="padding:1px;" class="layui-this">源单信息</li>
                            <li lay-id="2" style="padding:1px;">单据信息</li>
                            <li lay-id="3" style="padding:1px;">物料清单</li>
                            <li lay-id="4" style="padding:1px;">合计信息</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-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据类型</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" value="收料通知单-委外" name="HBillTypeCHN" id="HBillTypeCHN" lay-verify="HBillTypeCHN" autocomplete="off" class="layui-input" readonly>
                                            <input type="hidden" value="1103" name="HBillType" id="HBillType" lay-verify="HBillType" autocomplete="off" class="layui-input">
                                            <!--<select name="HBillType" id="HBillType">
                                                <option value="1103">收料通知单-委外</option>
                                            </select>-->
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <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">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--单据信息-->
                            <div class="layui-tab-item">
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓库</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input" readonly>
                                            <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs2">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HWHID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓位</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" autocomplete="off" class="layui-input" style="background-color:#efefef4d;" readonly>
                                            <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">供应商</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">保管</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HKeeper" id="HKeeper" lay-verify="HKeeper" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HKeeperID" id="HKeeperID" lay-verify="HKeeperID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">验收</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSecManager" id="HSecManager" lay-verify="HSecManager" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HSecManagerID" id="HSecManagerID" lay-verify="HSecManagerID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSecManagerID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;display:none">制单人</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillerID" id="HBillerID" lay-verify="HBillerID" autocomplete="off" class="layui-input">
                                            <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HMakerID" id="HMakerID" lay-verify="HMakerID" value="0" autocomplete="off" class="layui-input" style="display : none">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">部门</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">单据号</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--物料清单-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <div class="layui-form-item" style="padding:0px;margin:0px">
                                            <div class="layui-row">
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label" style="width:40px;padding-left:0px;">数量</label>
                                                </div>
                                                <div class="layui-col-xs8">
                                                    <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                                    </div>
                                </div>
                            </div>
                            <!--合计信息-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">条码数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HBarcodeQtys" id="HBarcodeQtys" lay-verify="HBarcodeQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">总数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HSumQtys" id="HSumQtys" lay-verify="HSumQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">日志</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <!--<input type="text" name="HNote" id="HNote" lay-verify="HNote" autocomplete="off" class="layui-input">-->
                                        <textarea id="rizhi" style="height: 200px;width: 100%;"></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">提交</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                    </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 src="../../../layuiadmin/timeFormat/timeFormat.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;
            var RZ = "";
            var Flag = sessionStorage["SourceFlag"];
            //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) 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();
            //默认带入的仓库,如果启用仓位则仓位有效,如果没有启用则仓位灰度 new
            //获取参数
            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);
                    }
                })
            }
            //加载表体
            function RoadBillSub(linterid)
            {
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1210', sWhere: '' }
                    , cols: [[
                        { type: 'radio' }
                    , { field: 'HQty', title: '数量', width: 150 }
                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HBatchNo', title: '批次', width: 150 }
                    ]]
                    , height: 500
                    , done: function () {
                        layer.closeAll("loading");
                    }
                });
            }
            //动态加载源单类型列表 new
            //判断是否新增
            if (linterid == null || linterid == 0) {
                //获取最大单据号 new
                $("#HInterID").val("");
                $("#HBillNo").val("");
                $.ajax({
                    url: GetWEBURL() + "/Web/GetMAXNum",
                    type: "GET",
                    data: { "HBillType": '1210' },
                    success: function (d) {
                        //console.log(d.data);
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                    }
                });
            }
            else {//如果修改则走下面 new
                RoadBillMain(linterid);
                RoadBillSub(linterid);
            }
            //选择调入仓库
            form.on('submit(HWHID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '仓库列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择调入仓位
            form.on('submit(HSpID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '仓位列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择供应商
            form.on('submit(HSupID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '供应商列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_SupplierList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择保管
            form.on('submit(HKeeperID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '保管列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择验收
            form.on('submit(HSecManagerID-BT)', function (data) {//选择验收
                var sMainStr = JSON.stringify(data.field);
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '验收列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择部门
            form.on('submit(HDeptID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '部门列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //编辑按钮
            form.on('submit(cmdModify)', function () {
                var sSubStr = table.cache['wl-table'];
                //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '明细列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
                    , resize: false
                    , cancel: function () {
                    }
                })
            });
            //关闭按钮
            form.on('submit(Cancel)', function () {
                Flag = false;
                parent.location.href = "../../../views/index.html"
                //window.close();//关闭当前页
            })
            //提交按钮
            form.on('submit(Saver)', function (data) {
                if ($("#HExplanation").val() == "") {
                    if ($("#HWHNAME").val() == "宽幅成品仓NEW" || $("#HWHNAME").val() == "样本仓NEW") {
                        $("#HWHNAME").val("");
                        $("#HWHID").val("");
                        layer.msg("请扫MES库位码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return;
                    }
                }
                var sMainStr = JSON.stringify(data.field);
                var sSubStr = table.cache['wl-table'];
                var sSourceType = $("#HBillType").val();
                if (AllowLoadData(sSubStr, 'Saver') != false)//非空验证
                {
                    layer.load(3);
                    $.ajax(
                    {
                        type: "POST",
                        //url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/set_SaveEntrustInBill_Json", //方法所在页面和方法名
                        //url: GetWEBURL() + "/Kf_EntrustInBill/set_SaveEntrustInBill_Json",
                        url: GetWEBURL() + "/Kf_EntrustInBill/set_SaveEntrustInBill_New_Json",
                        async: true,
                        data: { "oMain": sMainStr },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                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无效
                                        parent.location.href = "../../../views/index.html"
                                    }//关闭
                                }                                 , function () { window.location.reload(); }//新增                                 );
                            }
                            else {
                                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', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                    return false;
                }
            });
            //监听提交
            form.verify({
                numberOrEmpty: function (value, item) {
                    // if (value != '') {
                    if (!/^\d+$/.test(value)) {
                        return '不能为空或数字或者0';
                    }
                    //}
                }
            });
            //扫条码
            $('#HBarCode').on('keydown', function (event) {
                var sSubStr = table.cache['wl-table'];
                var sBarCode = $('#HBarCode').val()
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var sQty = $("#HQty").val()
                var sHBillType = $("#HBillType").val()
                var sHWHID = $("#HWHID").val()
                var sHSPID = $("#HStockPlaceID").val()
                var sSourceBillNo = $("#HSourceBillNo").val()
                if (sQty == "") {
                    sQty = 0;
                }
                //if ($("#HSourceBillNo").val() == '') {
                //    layer.msg("请先扫源单!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HDeptName").val() == '') {
                //    layer.msg("部门没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HSecManager").val() == '') {
                //    layer.msg("发料人没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HKeeper").val() == '') {
                //    layer.msg("领料人没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HSupName").val() == '') {
                //    layer.msg("供应商没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HWHNAME").val() == '') {
                //    layer.msg("仓库没有选择!", { icon: 5 });
                //    return false;
                //}
                if (event.keyCode == 13) {
                    //判断条码是否为空  new
                    if (sBarCode == '') {
                        layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                    if (sBarCode != "") {
                        $('#HBarCode').val("");
                    }
                    if (sQty != "") {
                        $('#HQty').val("");
                    }
                    //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//非空验证
                    $.ajax({
                        //url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
                        url: GetWEBURL() + "/Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
                        type: "GET",
                        data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": Flag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": 0 },
                        success: function (result) {
                            if (result.count == 1) {
                                if (result.data.HBarType == '仓库条码') {
                                    $("#HWHNAME").val(result.data.HWhName);
                                    $("#HWHID").val(result.data.HWhID);
                                    $("#HStockPlaceName").val("");
                                    //$("#HNote").val(";一键扫码仓库条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码仓库条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '2');  //跳转页签
                                }
                                else if (result.data.HBarType == '仓位条码') {
                                    $("#HStockPlaceName").val(result.data.HSPName);
                                    $("#HStockPlaceID").val(result.data.HSPID);
                                    $("#HWHNAME").val(result.data.HWhName);
                                    $("#HWHID").val(result.data.HWhID);
                                    //$("#HNote").val(";一键扫码仓位条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码仓位条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '2');//跳转页签
                                }
                                else if (result.data.HBarType == '部门条码') {
                                    $("#HDeptName").val(result.data.HDeptName);
                                    $("#HDeptID").val(result.data.HDeptID);
                                    //$("#HNote").val(";一键扫码部门条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码部门条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '2');//跳转页签
                                }
                                else if (result.data.HBarType == '源单条码') {
                                    $("#HSupName").val(result.data.HSupName);
                                    $("#HSupID").val(result.data.HSupID);
                                    $("#HDeptName").val(result.data.HDeptName);
                                    $("#HDeptID").val(result.data.HDeptID);
                                    $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                    Flag = true;
                                    //获取源单类型、源单单号
                                    if (result.data.HSourceBillType == "1103") {
                                        $("#HBillType").val("1103");
                                    }
                                    else if (result.data.HSourceBillType == "1601") {
                                        $("#HBillType").val("1601");
                                    }
                                    else {
                                        $("#HBillType").val("手工录入");
                                    }
                                    //$("#HNote").val(";一键扫码源单条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码源单条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '3');
                                }
                                else {
                                    if (Flag == "true") {
                                        element.tabChange('tab-Kf_EntrustInBill', '3');
                                    }
                                    else {
                                        $("#HSupName").val(result.data.HSupName);
                                        $("#HSupID").val(result.data.HSupID);
                                        //$("#HDeptName").val(result.data.HDeptName);
                                        //$("#HDeptID").val(result.data.HDeptID);
                                        $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                        Flag = true;
                                        //获取源单类型、源单单号
                                        if (result.data.HSourceBillType == "1103") {
                                            $("#HBillType").val("1103");
                                        }
                                        else if (result.data.HSourceBillType == "1601") {
                                            $("#HBillType").val("1601");
                                        }
                                        else {
                                            $("#HBillType").val("手工录入");
                                        }
                                        //$("#HNote").val(";物料条码");
                                        $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码物料条码,成功\n");
                                        element.tabChange('tab-Kf_EntrustInBill', '3');
                                    }
                                }
                                //$("#HSupID").val(result.data.HSupID);
                                //$("#HSupName").val(result.data.HSupName);
                                //$("#HDeptID").val(result.data.HDeptID);
                                //$("#HDeptName").val(result.data.HDeptName);
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table'
                                      , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                      , toolbar: '#toolbarDemo'
                                      , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
                                      , cellMinWidth: 90
                                      , cols: [[
                                          { type: 'radio' }
                                        , { field: 'HQty', title: '数量', width: 150 }
                                        , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                        , { field: 'HMaterName', title: '物料名称', width: 150 }
                                        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                        , { field: 'HBatchNo', title: '批次', width: 150 }
                                      ]]
                                      , height: 500
                                      , done: function () {
                                          layer.closeAll("loading");
                                      }
                                });
                            }
                            else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        },
                        error: function (err) {
                            layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                }
                //else
                //{
                //    layer.msg(result.Message, { icon: 5 });
                //}
                //layer.closeAll("loading");
                //}
            });
            //扫源单方法
            $('#HSourceBillNo').on('keydown', function (event) {
                var HSourceBillNo = $('#HSourceBillNo').val()
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var HSourceBillType = $("#HBillType").val()
                if (event.keyCode == 13) {
                    $.ajax({
                        //url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                        url: GetWEBURL() + "/Kf_EntrustInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                        type: "GET",
                        data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫源单,成功\n");
                                $("#HSupID").val(result.data[0].HSupID);
                                $("#HSupName").val(result.data[0].HSupName);
                                //$("#HDeptID").val(result.data[0].HDeptID);
                                //$("#HDeptName").val(result.data[0].HDeptName);
                                Flag = true;
                                layer.load(3);
                                element.tabChange('tab-Kf_EntrustInBill', '2');
                                table.render({
                                    elem: '#wl-table'
                                    //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL1() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
                                  , cols: [[
                                      { type: 'radio' }
                                    , { field: 'HQty', title: '数量', width: 150 }
                                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                    , { field: 'HBatchNo', title: '批次', width: 150 }
                                  ]]
                                    // , data: [linterid]
                                    // , page: true
                                  , height: 500
                                  , done: function () {
                                      layer.closeAll("loading");
                                  }
                                });
                            }
                            else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        }
                    });
                    // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
                }
            });
            //扫仓位
            $('#HStockPlaceName').on('keydown', function (event) {
                var HBarCode = $('#HStockPlaceName').val()
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    $.ajax({
                        url: GetWEBURL() + "/LookingFor/getSpName_Json",
                        type: "GET",
                        data: { "HBarCode": HBarCode },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#HStockPlaceName").val(result.data[0].HName);
                                $("#HWHID").val(result.data[0].HWHID);
                                $("#HWHNAME").val(result.data[0].HWhName);
                                element.tabChange('tab-POStockInBill', '2');
                            }
                            else {
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        }
                    });
                }
            });
            table.render({
                elem: '#mx-table'
                // , url: 'http://localhost:8083/Kf_EntrustInBill/GetHBarCodeShowBillSub'
                //, toolbar: '#toolbarDemo'
                // , where: { sMsg: linterid, sMsg2: lentryid }
             , cols: [[
               , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
             ]]
             , page: true
             , height: 500
             , done: function () {
             }
            });
            //扫MES仓位
            $('#HMESSPName').on('keydown', function (event) {      //扫仓位
                var HBarCode = $('#HMESSPName').val();
                if (event.keyCode == 13) {
                    $.ajax({
                        url: GetWEBURL() + "/LookingFor/getSpName_Json",
                        type: "GET",
                        data: { "HBarCode": HBarCode },
                        success: function (result) {
                            if (result.count == 1) {
                                $("#HMESSPID").val(result.data[0].HWHID);
                                $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
                                $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
                                $.ajax({
                                    url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
                                    type: "GET",
                                    data: { "HERPWHID": result.data[0].HWHID },
                                    success: function (result) {
                                        if (result.count == 1) {
                                            $("#HWHID").val(result.data[0].HMESWHID);
                                            $("#HWHNAME").val(result.data[0].HMESWHNAME);
                                            $("#HMESSPName").attr("readonly", "readonly");//MES仓位只读HExplanation
                                            $("#HMESSPName").css("background-color", "#efefef4d");
                                        }
                                        else {
                                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                        }
                                        layer.closeAll("loading");
                                    }
                                });
                            }
                            else {
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        }
                    });
                }
            });
        //以上为layui模块
        });
        //清空表头
        //function f_ClearTitle() {
        //    $("#HBarCode").val("");
        //    $("#HSpName").val("");
        //    $("#HSpID").val("0");
        //    $("#HQty").val("0");
        //    $("#HSourceBillNo").val("");
        //    $("#HWHNAME").val("");
        //    $("#HWHID").val("0");
        //    $("#HSCWHNAME").val("");
        //    $("#HSCWHID").val("0");
        //    $("#HSupName").val("");
        //    $("#HSupID").val("0");
        //    $("#HKeeper").val("");
        //    $("#HKeeperID").val("0");
        //    $("#HSecManager").val("0");
        //    $("#HSecManagerID").val("");
        //    $("#HDeptName").val("");
        //    $("#HDeptID").val("0");
        //    $("#HBillNo").val("");
        //    $("#HInterID").val("0");
        //}
        function GetHWHValue(obj)  //返回调入仓库
        {
            $("#HWHNAME").val(obj[0].HName);
            //sessionStorage["HWHID"] = obj[0].HItemID;
            $("#HWHID").val(obj[0].HItemID);
        }
        function GetHSpValue(obj) {  //返回调入仓位
            $("#HStockPlaceName").val(obj[0].HName);
            $("#HStockPlaceID").val(obj[0].HItemID);
        }
        function GetHSupValue(obj) {  //返回供应商
            $("#HSupName").val(obj[0].HName);
            $("#HSupID").val(obj[0].HItemID);
        }
        function GetHKeeperValue(obj) {  //返回保管
            $("#HKeeper").val(obj[0].HName);
            $("#HKeeperID").val(obj[0].HItemID);
        }
        function GetHSecManagerValue(obj) {  //返回验收
            $("#HSecManager").val(obj[0].HName);
            $("#HSecManagerID").val(obj[0].HItemID);
        }
        function GetHDeptNameValue(obj) {   //返回部门
            $("#HDeptName").val(obj[0].HName);
            $("#HDeptID").val(obj[0].HItemID);
        }
        //function Get_CheckWhAndSP(sInterID, sHBillType, sBarCode, sHWHID, sHSPID) {   //返回部门
        //    $.ajax({
        //        url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/Get_CheckWhAndSP_Josn",
        //        type: "GET",
        //        data: { "sHInterID": sInterID, "sHBillType": sHBillType, "sBarCode": sBarCode, "sHWHID": sHWHID, "sHSPID": sHSPID },
        //        success: function (result) {
        //            if(result.count==1)
        //            {
        //               // layer.msg(result.Message, { icon: 1 });
        //                return true;
        //            }
        //            else
        //            {
        //                layer.msg(result.Message, { icon: 5 });
        //                return false;
        //            }
        //        }
        //    })
        //}
        function AllowLoadData(sSubStr, bnt) {  //非空验证
            //if ($("#HSourceBillNo").val() == '') {
            //    layer.msg("请先扫源单!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HDeptName").val() == '') {
            //    layer.msg("部门没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HSecManager").val() == '') {
            //    layer.msg("验收人没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HKeeper").val() == '') {
            //    layer.msg("保管人没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HSupName").val() == '') {
            //    layer.msg("供应商没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HWHNAME").val() == '') {
            //    layer.msg("仓库没有选择!", { icon: 5 });
            //    return false;
            //}
            if ($("#HBillNo").val() == '') {
                layer.msg("错误的单据号!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if ($("#HInterID").val() == '') {
                layer.msg("错误的内码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if (typeof (sSubStr) == "undefined") {
                layer.msg("没有物料明细记录!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if (bnt == 'Saver') {
                if (!typeof (sSubStr) == "undefined") {
                    for (var i = 0; i <= sSubStr.length - 1; i++) {  //判断扫码数量不能大于应收数量
                        if (parseFloat(sSubStr[i].HQtyMust) > 0) {
                            if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) {
                                layer.msg("数量不能大于应收数量!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                return false;
                            }
                        }
                    }
                    for (var i = 0; i <= sSubStr.length - 1; i++) {   //判断扫码数量不能为0
                        if (parseFloat(sSubStr[i].HQty) > 0) {
                            s = 1;
                        }
                    }
                    if (s == 0) {
                        layer.msg("委外入库记录未扫码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                }
            }
            else {
                return true;
            }
        }
    </script>
</body>
</html>
<!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" style="padding:0">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 5px; height:800px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>委外入库单</span>
                    </div>
                    <div class="layui-form-item" style="padding:15px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:60px;padding-left:0px;">MES库位</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HMESSPName" id="HMESSPName" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HMESSPID" id="HMESSPID" value="0" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HExplanation" id="HExplanation" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:40px;padding-left:0px;">条码</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab layui-col-xs12" lay-filter="tab-Kf_EntrustInBill">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1" style="padding:1px;" class="layui-this">源单信息</li>
                            <li lay-id="2" style="padding:1px;">单据信息</li>
                            <li lay-id="3" style="padding:1px;">物料清单</li>
                            <li lay-id="4" style="padding:1px;">合计信息</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-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据类型</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" value="收料通知单-委外" name="HBillTypeCHN" id="HBillTypeCHN" lay-verify="HBillTypeCHN" autocomplete="off" class="layui-input" readonly>
                                            <input type="hidden" value="1103" name="HBillType" id="HBillType" lay-verify="HBillType" autocomplete="off" class="layui-input">
                                            <!--<select name="HBillType" id="HBillType">
                                                <option value="1103">收料通知单-委外</option>
                                            </select>-->
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <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">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--单据信息-->
                            <div class="layui-tab-item">
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓库</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input" readonly>
                                            <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs2">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HWHID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">仓位</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" autocomplete="off" class="layui-input" style="background-color:#efefef4d;" readonly>
                                            <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">供应商</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">保管</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HKeeper" id="HKeeper" lay-verify="HKeeper" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HKeeperID" id="HKeeperID" lay-verify="HKeeperID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">验收</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HSecManager" id="HSecManager" lay-verify="HSecManager" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HSecManagerID" id="HSecManagerID" lay-verify="HSecManagerID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSecManagerID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;display:none">制单人</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillerID" id="HBillerID" lay-verify="HBillerID" autocomplete="off" class="layui-input">
                                            <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HMakerID" id="HMakerID" lay-verify="HMakerID" value="0" autocomplete="off" class="layui-input" style="display : none">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">部门</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:45px;padding-left:0px;">单据号</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--物料清单-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <div class="layui-form-item" style="padding:0px;margin:0px">
                                            <div class="layui-row">
                                                <div class="layui-col-xs3">
                                                    <label class="layui-form-label" style="width:40px;padding-left:0px;">数量</label>
                                                </div>
                                                <div class="layui-col-xs8">
                                                    <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                                    </div>
                                </div>
                            </div>
                            <!--合计信息-->
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">条码数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HBarcodeQtys" id="HBarcodeQtys" lay-verify="HBarcodeQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">总数量</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HSumQtys" id="HSumQtys" lay-verify="HSumQtys" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">日志</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <!--<input type="text" name="HNote" id="HNote" lay-verify="HNote" autocomplete="off" class="layui-input">-->
                                        <textarea id="rizhi" style="height: 200px;width: 100%;"></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">提交</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                    </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 src="../../../layuiadmin/timeFormat/timeFormat.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;
            var RZ = "";
            var Flag = sessionStorage["SourceFlag"];
            //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) 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();
            //默认带入的仓库,如果启用仓位则仓位有效,如果没有启用则仓位灰度 new
            //获取参数
            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);
                    }
                })
            }
            //加载表体
            function RoadBillSub(linterid)
            {
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1210', sWhere: '' }
                    , cols: [[
                        { type: 'radio' }
                    , { field: 'HQty', title: '数量', width: 150 }
                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HBatchNo', title: '批次', width: 150 }
                    ]]
                    , height: 500
                    , done: function () {
                        layer.closeAll("loading");
                    }
                });
            }
            //动态加载源单类型列表 new
            //判断是否新增
            if (linterid == null || linterid == 0) {
                //获取最大单据号 new
                $("#HInterID").val("");
                $("#HBillNo").val("");
                $.ajax({
                    url: GetWEBURL() + "/Web/GetMAXNum",
                    type: "GET",
                    data: { "HBillType": '1210' },
                    success: function (d) {
                        //console.log(d.data);
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                    }
                });
            }
            else {//如果修改则走下面 new
                RoadBillMain(linterid);
                RoadBillSub(linterid);
            }
            //选择调入仓库
            form.on('submit(HWHID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '仓库列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择调入仓位
            form.on('submit(HSpID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '仓位列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择供应商
            form.on('submit(HSupID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '供应商列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_SupplierList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择保管
            form.on('submit(HKeeperID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '保管列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择验收
            form.on('submit(HSecManagerID-BT)', function (data) {//选择验收
                var sMainStr = JSON.stringify(data.field);
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '验收列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //选择部门
            form.on('submit(HDeptID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '部门列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //编辑按钮
            form.on('submit(cmdModify)', function () {
                var sSubStr = table.cache['wl-table'];
                //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '明细列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
                    , resize: false
                    , cancel: function () {
                    }
                })
            });
            //关闭按钮
            form.on('submit(Cancel)', function () {
                Flag = false;
                parent.location.href = "../../../views/index.html"
                //window.close();//关闭当前页
            })
            //提交按钮
            form.on('submit(Saver)', function (data) {
                if ($("#HExplanation").val() == "") {
                    if ($("#HWHNAME").val() == "宽幅成品仓NEW" || $("#HWHNAME").val() == "样本仓NEW") {
                        $("#HWHNAME").val("");
                        $("#HWHID").val("");
                        layer.msg("请扫MES库位码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return;
                    }
                }
                var sMainStr = JSON.stringify(data.field);
                var sSubStr = table.cache['wl-table'];
                var sSourceType = $("#HBillType").val();
                if (AllowLoadData(sSubStr, 'Saver') != false)//非空验证
                {
                    layer.load(3);
                    $.ajax(
                    {
                        type: "POST",
                        //url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/set_SaveEntrustInBill_Json", //方法所在页面和方法名
                        //url: GetWEBURL() + "/Kf_EntrustInBill/set_SaveEntrustInBill_Json",
                        url: GetWEBURL() + "/Kf_EntrustInBill/set_SaveEntrustInBill_New_Json",
                        async: true,
                        data: { "oMain": sMainStr },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                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无效
                                        parent.location.href = "../../../views/index.html"
                                    }//关闭
                                }
                                , function () { window.location.reload(); }//新增
                                );
                            }
                            else {
                                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', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                    return false;
                }
            });
            //监听提交
            form.verify({
                numberOrEmpty: function (value, item) {
                    // if (value != '') {
                    if (!/^\d+$/.test(value)) {
                        return '不能为空或数字或者0';
                    }
                    //}
                }
            });
            //扫条码
            $('#HBarCode').on('keydown', function (event) {
                var sSubStr = table.cache['wl-table'];
                var sBarCode = $('#HBarCode').val()
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var sQty = $("#HQty").val()
                var sHBillType = $("#HBillType").val()
                var sHWHID = $("#HWHID").val()
                var sHSPID = $("#HStockPlaceID").val()
                var sSourceBillNo = $("#HSourceBillNo").val()
                if (sQty == "") {
                    sQty = 0;
                }
                //if ($("#HSourceBillNo").val() == '') {
                //    layer.msg("请先扫源单!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HDeptName").val() == '') {
                //    layer.msg("部门没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HSecManager").val() == '') {
                //    layer.msg("发料人没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HKeeper").val() == '') {
                //    layer.msg("领料人没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HSupName").val() == '') {
                //    layer.msg("供应商没有选择!", { icon: 5 });
                //    return false;
                //}
                //if ($("#HWHNAME").val() == '') {
                //    layer.msg("仓库没有选择!", { icon: 5 });
                //    return false;
                //}
                if (event.keyCode == 13) {
                    //判断条码是否为空  new
                    if (sBarCode == '') {
                        layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                    if (sBarCode != "") {
                        $('#HBarCode').val("");
                    }
                    if (sQty != "") {
                        $('#HQty').val("");
                    }
                    //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//非空验证
                    $.ajax({
                        //url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
                        url: GetWEBURL() + "/Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
                        type: "GET",
                        data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": Flag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": 0 },
                        success: function (result) {
                            if (result.count == 1) {
                                if (result.data.HBarType == '仓库条码') {
                                    $("#HWHNAME").val(result.data.HWhName);
                                    $("#HWHID").val(result.data.HWhID);
                                    $("#HStockPlaceName").val("");
                                    //$("#HNote").val(";一键扫码仓库条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码仓库条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '2');  //跳转页签
                                }
                                else if (result.data.HBarType == '仓位条码') {
                                    $("#HStockPlaceName").val(result.data.HSPName);
                                    $("#HStockPlaceID").val(result.data.HSPID);
                                    $("#HWHNAME").val(result.data.HWhName);
                                    $("#HWHID").val(result.data.HWhID);
                                    //$("#HNote").val(";一键扫码仓位条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码仓位条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '2');//跳转页签
                                }
                                else if (result.data.HBarType == '部门条码') {
                                    $("#HDeptName").val(result.data.HDeptName);
                                    $("#HDeptID").val(result.data.HDeptID);
                                    //$("#HNote").val(";一键扫码部门条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码部门条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '2');//跳转页签
                                }
                                else if (result.data.HBarType == '源单条码') {
                                    $("#HSupName").val(result.data.HSupName);
                                    $("#HSupID").val(result.data.HSupID);
                                    $("#HDeptName").val(result.data.HDeptName);
                                    $("#HDeptID").val(result.data.HDeptID);
                                    $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                    Flag = true;
                                    //获取源单类型、源单单号
                                    if (result.data.HSourceBillType == "1103") {
                                        $("#HBillType").val("1103");
                                    }
                                    else if (result.data.HSourceBillType == "1601") {
                                        $("#HBillType").val("1601");
                                    }
                                    else {
                                        $("#HBillType").val("手工录入");
                                    }
                                    //$("#HNote").val(";一键扫码源单条码");
                                    $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码源单条码,成功\n");
                                    element.tabChange('tab-Kf_EntrustInBill', '3');
                                }
                                else {
                                    if (Flag == "true") {
                                        element.tabChange('tab-Kf_EntrustInBill', '3');
                                    }
                                    else {
                                        $("#HSupName").val(result.data.HSupName);
                                        $("#HSupID").val(result.data.HSupID);
                                        //$("#HDeptName").val(result.data.HDeptName);
                                        //$("#HDeptID").val(result.data.HDeptID);
                                        $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                        Flag = true;
                                        //获取源单类型、源单单号
                                        if (result.data.HSourceBillType == "1103") {
                                            $("#HBillType").val("1103");
                                        }
                                        else if (result.data.HSourceBillType == "1601") {
                                            $("#HBillType").val("1601");
                                        }
                                        else {
                                            $("#HBillType").val("手工录入");
                                        }
                                        //$("#HNote").val(";物料条码");
                                        $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫条码物料条码,成功\n");
                                        element.tabChange('tab-Kf_EntrustInBill', '3');
                                    }
                                }
                                //$("#HSupID").val(result.data.HSupID);
                                //$("#HSupName").val(result.data.HSupName);
                                //$("#HDeptID").val(result.data.HDeptID);
                                //$("#HDeptName").val(result.data.HDeptName);
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table'
                                      , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                      , toolbar: '#toolbarDemo'
                                      , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
                                      , cellMinWidth: 90
                                      , cols: [[
                                          { type: 'radio' }
                                        , { field: 'HQty', title: '数量', width: 150 }
                                        , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                        , { field: 'HMaterName', title: '物料名称', width: 150 }
                                        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                        , { field: 'HBatchNo', title: '批次', width: 150 }
                                      ]]
                                      , height: 500
                                      , done: function () {
                                          layer.closeAll("loading");
                                      }
                                });
                            }
                            else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        },
                        error: function (err) {
                            layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                }
                //else
                //{
                //    layer.msg(result.Message, { icon: 5 });
                //}
                //layer.closeAll("loading");
                //}
            });
            //扫源单方法
            $('#HSourceBillNo').on('keydown', function (event) {
                var HSourceBillNo = $('#HSourceBillNo').val()
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var HSourceBillType = $("#HBillType").val()
                if (event.keyCode == 13) {
                    $.ajax({
                        //url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                        url: GetWEBURL() + "/Kf_EntrustInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                        type: "GET",
                        data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "扫源单,成功\n");
                                $("#HSupID").val(result.data[0].HSupID);
                                $("#HSupName").val(result.data[0].HSupName);
                                //$("#HDeptID").val(result.data[0].HDeptID);
                                //$("#HDeptName").val(result.data[0].HDeptName);
                                Flag = true;
                                layer.load(3);
                                element.tabChange('tab-Kf_EntrustInBill', '2');
                                table.render({
                                    elem: '#wl-table'
                                    //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                  , toolbar: '#toolbarDemo'
                                  , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
                                  , cols: [[
                                      { type: 'radio' }
                                    , { field: 'HQty', title: '数量', width: 150 }
                                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                    , { field: 'HBatchNo', title: '批次', width: 150 }
                                  ]]
                                    // , data: [linterid]
                                    // , page: true
                                  , height: 500
                                  , done: function () {
                                      layer.closeAll("loading");
                                  }
                                });
                            }
                            else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        }
                    });
                    // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
                }
            });
            //扫仓位
            $('#HStockPlaceName').on('keydown', function (event) {
                var HBarCode = $('#HStockPlaceName').val()
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    $.ajax({
                        url: GetWEBURL() + "/LookingFor/getSpName_Json",
                        type: "GET",
                        data: { "HBarCode": HBarCode },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#HStockPlaceName").val(result.data[0].HName);
                                $("#HWHID").val(result.data[0].HWHID);
                                $("#HWHNAME").val(result.data[0].HWhName);
                                element.tabChange('tab-POStockInBill', '2');
                            }
                            else {
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        }
                    });
                }
            });
            table.render({
                elem: '#mx-table'
                // , url: 'http://localhost:8083/Kf_EntrustInBill/GetHBarCodeShowBillSub'
                //, toolbar: '#toolbarDemo'
                // , where: { sMsg: linterid, sMsg2: lentryid }
             , cols: [[
               , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
             ]]
             , page: true
             , height: 500
             , done: function () {
             }
            });
            //扫MES仓位
            $('#HMESSPName').on('keydown', function (event) {      //扫仓位
                var HBarCode = $('#HMESSPName').val();
                if (event.keyCode == 13) {
                    $.ajax({
                        url: GetWEBURL() + "/LookingFor/getSpName_Json",
                        type: "GET",
                        data: { "HBarCode": HBarCode },
                        success: function (result) {
                            if (result.count == 1) {
                                $("#HMESSPID").val(result.data[0].HWHID);
                                $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
                                $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
                                $.ajax({
                                    url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
                                    type: "GET",
                                    data: { "HERPWHID": result.data[0].HWHID },
                                    success: function (result) {
                                        if (result.count == 1) {
                                            $("#HWHID").val(result.data[0].HMESWHID);
                                            $("#HWHNAME").val(result.data[0].HMESWHNAME);
                                            $("#HMESSPName").attr("readonly", "readonly");//MES仓位只读HExplanation
                                            $("#HMESSPName").css("background-color", "#efefef4d");
                                        }
                                        else {
                                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                        }
                                        layer.closeAll("loading");
                                    }
                                });
                            }
                            else {
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        }
                    });
                }
            });
        //以上为layui模块
        });
        //清空表头
        //function f_ClearTitle() {
        //    $("#HBarCode").val("");
        //    $("#HSpName").val("");
        //    $("#HSpID").val("0");
        //    $("#HQty").val("0");
        //    $("#HSourceBillNo").val("");
        //    $("#HWHNAME").val("");
        //    $("#HWHID").val("0");
        //    $("#HSCWHNAME").val("");
        //    $("#HSCWHID").val("0");
        //    $("#HSupName").val("");
        //    $("#HSupID").val("0");
        //    $("#HKeeper").val("");
        //    $("#HKeeperID").val("0");
        //    $("#HSecManager").val("0");
        //    $("#HSecManagerID").val("");
        //    $("#HDeptName").val("");
        //    $("#HDeptID").val("0");
        //    $("#HBillNo").val("");
        //    $("#HInterID").val("0");
        //}
        function GetHWHValue(obj)  //返回调入仓库
        {
            $("#HWHNAME").val(obj[0].HName);
            //sessionStorage["HWHID"] = obj[0].HItemID;
            $("#HWHID").val(obj[0].HItemID);
        }
        function GetHSpValue(obj) {  //返回调入仓位
            $("#HStockPlaceName").val(obj[0].HName);
            $("#HStockPlaceID").val(obj[0].HItemID);
        }
        function GetHSupValue(obj) {  //返回供应商
            $("#HSupName").val(obj[0].HName);
            $("#HSupID").val(obj[0].HItemID);
        }
        function GetHKeeperValue(obj) {  //返回保管
            $("#HKeeper").val(obj[0].HName);
            $("#HKeeperID").val(obj[0].HItemID);
        }
        function GetHSecManagerValue(obj) {  //返回验收
            $("#HSecManager").val(obj[0].HName);
            $("#HSecManagerID").val(obj[0].HItemID);
        }
        function GetHDeptNameValue(obj) {   //返回部门
            $("#HDeptName").val(obj[0].HName);
            $("#HDeptID").val(obj[0].HItemID);
        }
        //function Get_CheckWhAndSP(sInterID, sHBillType, sBarCode, sHWHID, sHSPID) {   //返回部门
        //    $.ajax({
        //        url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/Get_CheckWhAndSP_Josn",
        //        type: "GET",
        //        data: { "sHInterID": sInterID, "sHBillType": sHBillType, "sBarCode": sBarCode, "sHWHID": sHWHID, "sHSPID": sHSPID },
        //        success: function (result) {
        //            if(result.count==1)
        //            {
        //               // layer.msg(result.Message, { icon: 1 });
        //                return true;
        //            }
        //            else
        //            {
        //                layer.msg(result.Message, { icon: 5 });
        //                return false;
        //            }
        //        }
        //    })
        //}
        function AllowLoadData(sSubStr, bnt) {  //非空验证
            //if ($("#HSourceBillNo").val() == '') {
            //    layer.msg("请先扫源单!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HDeptName").val() == '') {
            //    layer.msg("部门没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HSecManager").val() == '') {
            //    layer.msg("验收人没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HKeeper").val() == '') {
            //    layer.msg("保管人没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HSupName").val() == '') {
            //    layer.msg("供应商没有选择!", { icon: 5 });
            //    return false;
            //}
            //if ($("#HWHNAME").val() == '') {
            //    layer.msg("仓库没有选择!", { icon: 5 });
            //    return false;
            //}
            if ($("#HBillNo").val() == '') {
                layer.msg("错误的单据号!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if ($("#HInterID").val() == '') {
                layer.msg("错误的内码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if (typeof (sSubStr) == "undefined") {
                layer.msg("没有物料明细记录!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if (bnt == 'Saver') {
                if (!typeof (sSubStr) == "undefined") {
                    for (var i = 0; i <= sSubStr.length - 1; i++) {  //判断扫码数量不能大于应收数量
                        if (parseFloat(sSubStr[i].HQtyMust) > 0) {
                            if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) {
                                layer.msg("数量不能大于应收数量!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                return false;
                            }
                        }
                    }
                    for (var i = 0; i <= sSubStr.length - 1; i++) {   //判断扫码数量不能为0
                        if (parseFloat(sSubStr[i].HQty) > 0) {
                            s = 1;
                        }
                    }
                    if (s == 0) {
                        layer.msg("委外入库记录未扫码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                }
            }
            else {
                return true;
            }
        }
    </script>
</body>
</html>
WebTM/views/ÑéÊÕÈë¿â/ίÍâÈë¿â/Kf_EntrustInBill_FastList.html
@@ -133,7 +133,7 @@
            var sBillType = '1210'
            table.render({
                elem: '#dj-table'
                    , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType, sWhere: '' }
                    , cols: [[
@@ -181,7 +181,7 @@
                           //layer.msg(data.Message, { icon: 1 });
                           table.render({
                               elem: '#dj-table'
                               , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                               , cellMinWidth: 80
                               , toolbar: '#toolbarDemo'
                               , where: { HBillType: '1210', sWhere: '' }
@@ -219,7 +219,7 @@
        var sBillType = '1210'
        table.render({
            elem: '#dj-table'
            , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
            , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
            , toolbar: '#toolbarDemo'
            , where: { HBillType: sBillType, sWhere: '' }
            , cols: [[