1
yangle
2023-06-09 0f912418a8f3e31827327f18dfcc81d306474c2b
1
1个文件已添加
8个文件已修改
3490 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 2841 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/WMS扫码模块/生产管理/生产组托单/Sc_PackUnionBill_PDA.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/WMS扫码模块/生产调拨/调拨换托/Kf_MoveStockBill_HuanTuo_PDA.html 622 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index_Mobile.html 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/条码生成/Gy_BarCodeBill.html 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml
@@ -10,7 +10,7 @@
    <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
    <LastUsedPlatform>Any CPU</LastUsedPlatform>
    <PublishProvider>FileSystem</PublishProvider>
    <PublishUrl>D:\网站发布\智云MESWMS\LAYUI</PublishUrl>
    <PublishUrl>E:\网站发布\LAYUI</PublishUrl>
    <WebPublishMethod>FileSystem</WebPublishMethod>
    <SiteUrlToLaunchAfterPublish />
  </PropertyGroup>
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
Diff too large
WebTM/WebTM.csproj
@@ -195,6 +195,7 @@
    <Content Include="views\video\success.wav" />
    <Content Include="views\WMS扫码模块\生产管理\生产组托单\Sc_PackUnionBillList_PDA.html" />
    <Content Include="views\WMS扫码模块\生产管理\生产组托单\Sc_PackUnionBill_PDA.html" />
    <Content Include="views\WMS扫码模块\生产调拨\调拨换托\Kf_MoveStockBill_HuanTuo_PDA.html" />
    <Content Include="views\基础资料\公用基础资料\Gy_MaterType.html" />
    <Content Include="views\基础资料\公用基础资料\Gy_MaterTypeEdit.html" />
    <Content Include="views\基础资料\公用基础资料\HBarPlanPrint_GXPG.html" />
WebTM/WebTM.csproj.user
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <NameOfLastUsedPublishProfile>D:\网站发布\后端代码\MES-WEB-TM\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
    <NameOfLastUsedPublishProfile>D:\GIT仓库\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
    <ProjectView>ProjectFiles</ProjectView>
    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
    <UseIISExpress>true</UseIISExpress>
WebTM/layuiadmin/Scripts/webConfig.js
@@ -3,10 +3,10 @@
    //var WEBURL = "http://192.168.16.80:8011/";          //办公室服务器
    //var WEBURL = "http://localhost:8081/SWEAPI/";       //ch本地*/
    //var WEBURL = "http://61.164.86.218:8099/ABAPI/";
    //var WEBURL = "http://localhost:8080/API/";   //颜晓军本地配置
    var WEBURL = "http://localhost/API/";   //颜晓军本地配置
    //var WEBURL = "http://localhost/WEBAPI/";   //颜家台式机本地配置
    //var WEBURL = "http://localhost:8082/lubao";   //颜晓军本地配置
    var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
    //var WEBURL = "http://localhost:8082/API/";    //杜贺本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //余思杰本地配置
    //var WEBURL = "http://10.1.4.155/API/";   //江丰客户NEW
WebTM/views/WMSɨÂëÄ£¿é/Éú²ú¹ÜÀí/Éú²ú×éÍе¥/Sc_PackUnionBill_PDA.html
@@ -451,13 +451,14 @@
                                layer.load(3);
                            }
                            else {
                                layer.msg(data.Message, { icon: 5 });
                                playSound();
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                                document.getElementById("cmdLoadData").disabled = false;  //按钮变为可编辑状态
                            }
                            layer.closeAll("loading");  //关闭加载层
                        },
                        error: function (err) {
                            layer.msg("错误:" + err, { icon: 5 });
                            layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                            document.getElementById("cmdLoadData").disabled = false;
                        }
                    });
WebTM/views/WMSɨÂëÄ£¿é/Éú²úµ÷²¦/µ÷²¦»»ÍÐ/Kf_MoveStockBill_HuanTuo_PDA.html
New file
@@ -0,0 +1,622 @@
<!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">
    <!--引用layui样式文件-->
    <link rel="stylesheet" href="../../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../../layuiadmin/style/admin.css" media="all">
    <!--引用layui js文件-->
    <script src="../../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../../layuiadmin/PubCustom.js"></script>
    <style>
        .layui-col-xs4 {
            width: 12.333333%
        }
        .layui-col-xs8 {
            width: 55.666667%;
        }
    </style>
</head>
<body>
    <div class="layui-fluid" style="padding: 0px">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 0px; 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:10px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:80px;padding-left:0px;">调入托条码</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode_Pack_In" id="HBarCode_Pack_In" lay-verify="HBarCode_Pack_In" autocomplete="off" class="layui-input">
                                <input type="hidden" name="HPackUnionInterID_In" id="HPackUnionInterID_In" lay-verify="HPackUnionInterID_In" value="0" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-col-xs2">
                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdHBarCode_Pack_In" id="cmdHBarCode_Pack">确定</button>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item" style="padding:10px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:80px;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 class="layui-col-xs2">
                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdHBarCode">确定</button>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab" lay-filter="tab-Kf_MoveStockBill_HuanTuo_PDA">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1">换托信息</li>
                            <li lay-id="2">单据信息</li>
                        </ul>
                        <div class="layui-tab-content">
                            <!--换托信息-->
                            <div class="layui-tab-item">
                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                            </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="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>
                                <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="HSPName" id="HSPName" lay-verify="HSPName" autocomplete="off" class="layui-input">
                                        <input type="hidden" name="HSPID" id="HSPID" lay-verify="HSPID" 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="HMaker" id="HMaker" lay-verify="HMaker" 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="HBillNo" id="HBillNo" lay-verify="HBillNo" 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;">单据ID</label>
                                    </div>
                                    <div class="layui-col-xs8 layui-input-inline mobile">
                                        <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
                                <div class="layui-row">
                                    <div class="layui-col-xs3">
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdLoadData" id="cmdLoadData">提交</button>
                                    </div>
                                    <div class="layui-col-xs3">
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">退出</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="" style="display:none;">
                        <audio id="cs1" hidden controls>
                            <source src="../../../video/jingbao.wav" type="audio/ogg">
                        </audio>
                    </div>
                    <div id="" style="display:none;">
                        <audio id="cs2" hidden controls>
                            <source src="../../../video/success.wav" type="audio/ogg">
                        </audio>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script>
        layui.config({
            base: '../../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
            //#region å…¬å…±å˜é‡
            var $ = layui.$
                , admin = layui.admin
                , layer = layui.layer
                , table = layui.table
                , form = layui.form
                , element = layui.element;
            var HInterID = $('#HInterID').val()
            var HBillNo = $('#HBillNo').val()
            var HBillType = '1207'
            var HBarCode_Pack_In = $('#HBarCode_Pack_In').val()
            var HPackUnionInterID_In = $('#HPackUnionInterID_In').val() //调入组托单内码
            var HWhID = $('#HWHID').val()   //调入仓库
            var HSPID = $('#HSPID').val()   //调入仓位
            var HMaker = sessionStorage["HUserName"]
            var HStockOrgID = sessionStorage["OrganizationID"]
            var SourceFlag = sessionStorage["SourceFlag"];  //托条码已扫标志
            var OperationType = 0;//操作类型
            var params = get_UrlVars();
            var option = [];
            //#endregion
            //判断是否登录 æœªç™»å½•则跳到登录页
            if (sessionStorage.login != "login") {
                layer.confirm("登录失效,请重新登录!", {
                    icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['重新登录']
                }, function () { window.location.href = "../../../user/login.html"; });
            }
            //#region åˆå§‹åŒ–界面
            set_ClearBill();
            function set_ClearBill() {
                $("#HWHName").attr("readonly", "readonly");
                $("#HSPName").attr("readonly", "readonly");
                $("#HMaker").val(HMaker);
                $("#HMaker").attr("readonly", "readonly");
                $("#HBillNo").attr("readonly", "readonly");
                $("#HInterID").attr("readonly", "readonly");
                element.tabChange('tab-Kf_MoveStockBill_HuanTuo_PDA', '1');
                var pFocus = $("#HBarCode_Pack_In");
                pFocus.focus();     //获取光标
                pFocus.select();
                set_InitGrid();     //初始化表格
            }
            //#region åˆå§‹åŒ–表格方法
            function set_InitGrid() {
                option = {
                    elem: '#wl-table'
                    , height: 'full-50'
                    //, page: true
                    , cellMinWidth: 90
                    , limit: 50
                    //, limits: [50, 500, 5000, 20000]
                };
            }
            //#endregion
            //#region   ä»Žç¼“存列表中返回信息
            //function getBillTemp() {
            //    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 = getBillTemp();
            //var HInterID_Temp = params[params[0]];      //从缓存列表中返回单据ID
            //var HBillNo_Temp = params[params[1]];       //从缓存列表中返回单据号
            //var HBarCode_Pack_Temp = params[params[2]]; //从缓存列表中返回托条码
            //#endregion
            //判断是否新增
            if (typeof (params[params[0]]) == "undefined") {
                var OperationType = 0;  //直接新增
            } else {
                var OperationType = 1;  //缓存中打开
            }
            if (OperationType == 0 && HInterID == 0) {
                //获取最大单据ID、单据号
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/WEBSController/GetMaxBillNoAndID_Json",
                    data: { "HBillType": HBillType },
                    success: function (d) {
                        if (d.count == 1) {
                            $("#HInterID").val(d.data[0].HInterID);
                            $("#HBillNo").val(d.data[0].HBillNo);
                            HInterID = $('#HInterID').val()
                            HBillNo = $('#HBillNo').val()
                        }
                        else {
                            layer.msg(d.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        }
                    }
                });
                SourceFlag = false;
            }
            else if (OperationType == 0 && HInterID != 0) {
                SourceFlag = true;
            }
            //从缓存列表编辑功能跳转至单据模块
            else if (HInterID == 0) {
                $("#HBarCode_Pack_In").val(params[params[0]]);
                $("#HBarCode_Pack_In").attr("readonly", "readonly");
                $("#HPackUnionInterID_In").val(params[params[0]]);
                $("#HWHName").val(params[params[0]]);
                $("#HWHID").val(params[params[0]]);
                $("#HSPName").val(params[params[0]]);
                $("#HSPID").val(params[params[0]]);
                $("#HBarCode").select();
                $("#HBarCode").focus();     //获取光标
                document.getElementById("cmdHBarCode_Pack_In").disabled = true;   //按钮变为不可编辑状态
                element.tabChange('tab-Kf_MoveStockBill_HuanTuo_PDA', '1');
                //显示表体明细
                DisBillEntryList();
                SourceFlag = true;
            }
            else {
                SourceFlag = true;
            }
            //if (HInterID_Temp == null || HInterID_Temp == 0) {
            //    //获取最大单据ID、单据号
            //    $.ajax({
            //        type: "GET",
            //        url: GetWEBURL() + "/WEBSController/GetMaxBillNoAndID_Json",
            //        data: { "HBillType": HBillType },
            //        success: function (d) {
            //            if (d.count == 1) {
            //                $("#HInterID").val(d.data[0].HInterID);
            //                $("#HBillNo").val(d.data[0].HBillNo);
            //                HInterID = $('#HInterID').val()
            //                HBillNo = $('#HBillNo').val()
            //            }
            //            else {
            //                layer.msg(d.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
            //            }
            //        }
            //    });
            //    SourceFlag = false;
            //}
            ////从缓存列表编辑功能跳转至单据模块
            //else {
            //    var HInterID_Temp = params[params[0]];      //从缓存列表中返回单据ID
            //    var HBillNo_Temp = params[params[1]];       //从缓存列表中返回单据号
            //    var HBarCode_Pack_Temp = params[params[2]]; //从缓存列表中返回托条码
            //    $('#HInterID').val(HInterID_Temp)
            //    $('#HBillNo').val(HBillNo_Temp)
            //    $('#HBarCode_Pack_In').val(HBarCode_Pack_Temp)
            //    $("#HBarCode_Pack_In").attr("readonly", "readonly");
            //    HInterID = $('#HInterID').val()
            //    HBillNo = $('#HBillNo').val()
            //    HBarCode_Pack_In = $('#HBarCode_Pack_In').val()
            //    $("#HBarCode").focus();
            //    element.tabChange('tab-Kf_MoveStockBill_HuanTuo_PDA', '1');
            //    //显示表体明细
            //    DisBillEntryList();
            //    SourceFlag = true;
            //}
            //失败提示音
            function playSound() {
                console.log("playSound");
                var audio = document.getElementById("cs1");
                audio.play();
            }
            //成功提示音
            function playSound_OK() {
                console.log("playSound_OK");
                var audio = document.getElementById("cs2");
                audio.play();
            }
            //#endregion
            //#region æ‰«æè°ƒå…¥æ‰˜æ¡ç 
            //按回车键返回信息
            $('#HBarCode_Pack_In').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    GetMeesageByBarCode_Pack();
                }
            });
            //点击按钮返回信息
            form.on('submit(cmdHBarCode_Pack_In)', function (data) {
                GetMeesageByBarCode_Pack();
            });
            //扫描调入托条码
            function GetMeesageByBarCode_Pack(obj) {
                HBarCode_Pack_In = $('#HBarCode_Pack_In').val()
                if (HBarCode_Pack_In == '') {
                    playSound();
                    layer.msg("调入托条码不能为空,请扫描调入托条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/WEBSController/Get_BarCodePack_In_MoveStockBill_HuanTuo_Json",
                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack_In, "HStockOrgID": HStockOrgID },
                    success: function (result) {
                        if (result.count == 1) {
                            playSound_OK();
                            $("#HBarCode_Pack_In").val(result.data.hSourceBillNoField);
                            $("#HBarCode_Pack_In").attr("readonly", "readonly");
                            $("#HPackUnionInterID_In").val(result.data.hInterIDField);
                            $("#HWHName").val(result.data.hWhNameField);
                            $("#HWHID").val(result.data.hWhIDField);
                            $("#HSPName").val(result.data.hSPNameField);
                            $("#HSPID").val(result.data.hSPIDField);
                            $("#HBarCode").select();
                            $("#HBarCode").focus();     //获取光标
                            $('#cmdHBarCode_Pack_In').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                            //document.getElementById("cmdHBarCode_Pack_In").disabled = true;   //按钮变为不可编辑状态
                            element.tabChange('tab-Kf_MoveStockBill_HuanTuo_PDA', '2');
                            //全局变量赋值
                            HBarCode_Pack_In = $('#HBarCode_Pack_In').val() //调入托条码
                            HPackUnionInterID_In = $('#HPackUnionInterID_In').val() //调入组托单内码
                            HWhID = $('#HWHID').val()   //调入仓库
                            HSPID = $('#HSPID').val()   //调入仓位
                            //显示表体明细
                            DisBillEntryList();
                            SourceFlag = true;
                            layer.load(3);
                        }
                        else {
                            playSound();
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                            $('#HBarCode_Pack_In').val("");
                            $("#HBarCode_Pack_In").select();
                            $("#HBarCode_Pack_In").focus();     //获取光标
                        }
                        layer.closeAll("loading");
                    }
                });
            }
            //#endregion
            //#region æ‰«æè°ƒå‡ºæ¡ç 
            //按回车键返回信息
            $('#HBarCode').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    GetMeesageByBarCode();
                }
            });
            //点击按钮返回信息
            form.on('submit(cmdHBarCode)', function (data) {
                GetMeesageByBarCode();
            });
            //扫描调出条码
            function GetMeesageByBarCode(obj) {
                var sOldBarCode = $('#HBarCode').val()
                var HDeleteFlag = sOldBarCode.substring(0, 1);
                var sBarCode = sOldBarCode.slice(1);
                if (HDeleteFlag == "*") {
                    if (sBarCode == "") {
                        layer.msg("请扫描要删除的调出条码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return;
                    }
                    else {
                        $('#HBarCode').val("");
                    }
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/set_DelPackUnionBill_Temp_MoveStockBill_HuanTuo_Json",
                        async: true,
                        data: { "HInterID": HInterID, "HBarCode": sBarCode, "HBillType": HBillType },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                playSound_OK();
                                $("#HBarCode").select();
                                $("#HBarCode").focus();     //获取光标
                                element.tabChange('tab-Kf_MoveStockBill_HuanTuo_PDA', '1');
                                //显示表体明细
                                DisBillEntryList();
                                layer.load(3)
                            }
                            else {
                                playSound();
                                layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        },
                        error: function (err) {
                            playSound();
                            layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                }
                else {
                    var sBarCode = $('#HBarCode').val()
                    if (SourceFlag == false) {
                        playSound();
                        layer.msg("没有扫描调入托条码,请先扫描调入托条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                    else if (sBarCode == '') {
                        playSound();
                        layer.msg("调出条码不能为空,请扫描调出条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                    if (sBarCode != "") {
                        $('#HBarCode').val("");
                    }
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/Get_BarCode_MoveStockBill_HuanTuo_Json",
                        data: {
                            "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HBarCode": sBarCode, "HBarCode_Pack": HBarCode_Pack_In, "HPackUnionInterID_In": HPackUnionInterID_In, "HWhID": HWhID, "HSPID": HSPID, "HMaker": HMaker, "HStockOrgID": HStockOrgID
                        },
                        success: function (result) {
                            if (result.count == 1) {
                                playSound_OK();
                                $("#HBarCode").select();
                                $("#HBarCode").focus();     //获取光标
                                element.tabChange('tab-Kf_MoveStockBill_HuanTuo_PDA', '1');
                                //显示表体明细
                                DisBillEntryList();
                                layer.load(3)
                            }
                            else {
                                playSound();
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                            }
                            layer.closeAll("loading");
                        }
                    });
                }
            }
            //#endregion
            //#region æ˜¾ç¤ºç‰©æ–™åˆ—表信息
            function DisBillEntryList() {
                var ajaxLoad = layer.load();
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + '/WEBSController/GetBillEntry_Temp_MoveStockBill_HuanTuo_Json',
                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HStockOrgID": HStockOrgID },
                    success: function (data1) {
                        var col = [];
                        if (data1.count == 1) {
                            var data = [];
                            //给空的数组赋值
                            for (var key in data1.list) {
                                data.push({ "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                            }
                            //判断是否是纯英文
                            var patrn = new RegExp("[\u4E00-\u9FA5]+");
                            col.push({ type: 'radio' });
                            for (var i = 0; i < data.length; i++) {
                                if (!patrn.test(data[i].name)) {
                                    col.push({ field: data[i].name, title: data[i].name, hide: true }); //隐藏列
                                }
                                else {
                                    switch (data[i].Type) {
                                        case 'DateTime':
                                            col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
                                            break;
                                        default:
                                            col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true });
                                    }
                                }
                            }
                            option.cols = [col];
                            option.data = data1.data;
                            table.render(option);
                            layer.close(ajaxLoad);
                        } else {
                            layer.close(ajaxLoad);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    },
                    error: function () {
                        layer.close(ajaxLoad);
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
            //#endregion
            //#region åŠŸèƒ½æŽ§ä»¶
            //#region æäº¤ä¸Šä¼ åŠŸèƒ½æŽ§ä»¶
            form.on('submit(cmdLoadData)', function (data) {
                document.getElementById("cmdLoadData").disabled = true;   //按钮变为不可编辑状态
                $.ajax(
                    {
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/set_SaveMoveStockBill_HuanTuo_Json",
                        async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                        data: { "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack_In, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                layer.confirm(data.Message, {
                                    icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                    btn2: function () {
                                        parent.location.href = "../../../../views/index_Mobile.html"
                                    }//关闭
                                }, function () {
                                    HInterID_Temp = 0;
                                    window.location.reload();   //刷新当前页面
                                });//新增
                                layer.load(3);
                            }
                            else {
                                playSound();
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                                document.getElementById("cmdLoadData").disabled = false;  //按钮变为可编辑状态
                            }
                            layer.closeAll("loading");  //关闭加载层
                        },
                        error: function (err) {
                            playSound();
                            layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                            document.getElementById("cmdLoadData").disabled = false;
                        }
                    });
            });
            //#endregion
            //#region é€€å‡ºåŠŸèƒ½æŽ§ä»¶
            form.on('submit(cmdCancel)', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.location.href = "../../../../views/index_Mobile.html";
                });
            })
            //#endregion
            //#endregion
        });
    </script>
</body>
</html>
WebTM/views/index_Mobile.html
@@ -446,6 +446,12 @@
                          </a>
                      </dd>
                      <dd>
                          <a href="WMS扫码模块/生产调拨/调拨换托/Kf_MoveStockBill_HuanTuo_PDA.html" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¢æ‰˜è°ƒæ‹¨å•
                          </a>
                      </dd>
                      <dd>
                          <a href="仓存管理/条码库存/KF_ICInventoryByMaterID.html" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              åº“存查询
WebTM/views/²Ö´æ¹ÜÀí/ÌõÂëÉú³É/Gy_BarCodeBill.html
@@ -1423,6 +1423,13 @@
                                        HUnitName: checkStatus.data[0].HUnitName
                                    });
                                    if ($("#HBarCodeType").find("option:selected").html() == '托盘条码') {
                                        obj.update({
                                            HQty: 1,    //数量
                                            HMinQty: 1, //最小包装数量
                                            HBQty: 1    //箱数
                                        });
                                    }
                                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                                }
                                , btn2: function (index, layero) {