yangle
2023-06-25 b28ec87ae7e456800eae3a4891bed886972085a8
Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
1个文件已添加
7个文件已修改
3119 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 2773 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/WMS扫码模块/生产管理/删托单/Sc_DeletePackUnionBill_PDA.html 329 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index_Mobile.html 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/user/login.html 2 ●●● 补丁 | 查看 | 原始文档 | 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
@@ -193,6 +193,7 @@
    <Content Include="views\video\1.wav" />
    <Content Include="views\video\jingbao.wav" />
    <Content Include="views\video\success.wav" />
    <Content Include="views\WMS扫码模块\生产管理\删托单\Sc_DeletePackUnionBill_PDA.html" />
    <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" />
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:\GIT仓库\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
    <NameOfLastUsedPublishProfile>D:\网站发布\后端代码\MES-WEB-TM\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,11 +3,11 @@
    //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/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/API/";    //杜贺本地配置
    var WEBURL = "http://localhost:8082/API/";    //杜贺本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //余思杰本地配置
    //var WEBURL = "http://10.1.4.155/API/";   //江丰客户NEW
    //var WEBURL = "http://47.96.97.237/API/";   //智云服务器
WebTM/views/WMSɨÂëÄ£¿é/Éú²ú¹ÜÀí/ɾÍе¥/Sc_DeletePackUnionBill_PDA.html
New file
@@ -0,0 +1,329 @@
<!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>
    <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:50px;padding-left:0px;">托条码</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode_Pack" id="HBarCode_Pack" lay-verify="HBarCode_Pack" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-col-xs2">
                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdHBarCode_Pack" id="cmdHBarCode_Pack">确定</button>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab" lay-filter="tab-Sc_DeletePackUnionBill_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="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 = '3783'
            var HMaker = sessionStorage["HUserName"]
            var HStockOrgID = sessionStorage["OrganizationID"]
            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() {
                $("#HMaker").val(HMaker);
                $("#HMaker").attr("readonly", "readonly");
                $("#HBillNo").attr("readonly", "readonly");
                $("#HInterID").attr("readonly", "readonly");
                element.tabChange('tab-Sc_DeletePackUnionBill_PDA', '1');
                var pFocus = $("#HBarCode_Pack");
                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
            //失败提示音
            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').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    GetMeesageByBarCode_Pack();
                }
            });
            //点击按钮返回信息
            form.on('submit(cmdHBarCode_Pack)', function (data) {
                GetMeesageByBarCode_Pack();
            });
            //扫描托条码
            function GetMeesageByBarCode_Pack(obj) {
                HBarCode_Pack = $('#HBarCode_Pack').val()
                if (HBarCode_Pack == '') {
                    playSound();
                    layer.msg("托条码不能为空,请扫描托条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/WEBSController/Get_PackBarCode_DeletePackUnionBill_Json",
                    data: { "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
                    success: function (result) {
                        var col = [];
                        if (result.count == 1) {
                            playSound_OK();
                            $("#HInterID").val(result.data[0].HInterID);
                            $("#HBillNo").val(result.data[0].HBillNo);
                            $("#HBarCode_Pack").val(result.data[0].HBarCode_Pack);
                            $("#HBarCode_Pack").attr("readonly", "readonly");
                            document.getElementById("cmdHBarCode_Pack").disabled = true;   //按钮变为不可编辑状态
                            //全局变量赋值
                            HInterID = $('#HInterID').val()
                            HBillNo = $('#HBillNo').val()
                            element.tabChange('tab-Sc_DeletePackUnionBill_PDA', '1');
                            //显示表体明细
                            var data = [];
                            //给空的数组赋值
                            for (var key in result.list) {
                                data.push({ "name": result.list[key].ColmCols, "Type": result.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 = result.data;
                            table.render(option);
                            layer.load(3);
                        }
                        else {
                            playSound();
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                            $('#HBarCode_Pack').val("");
                            $("#HBarCode_Pack").select();
                            $("#HBarCode_Pack").focus();     //获取光标
                        }
                        layer.closeAll("loading");
                    }
                });
            }
            //#endregion
            //#region åŠŸèƒ½æŽ§ä»¶
            //#region æäº¤ä¸Šä¼ åŠŸèƒ½æŽ§ä»¶
            form.on('submit(cmdLoadData)', function (data) {
                document.getElementById("cmdLoadData").disabled = true;   //按钮变为不可编辑状态
                $.ajax(
                    {
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/GetDeletePackUnionBill_Json",
                        async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                        data: { "HInterID": HInterID, "HBillType": HBillType, "HMaker": HMaker },
                        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 () {
                                    window.location.reload();   //刷新当前页面
                                });//新增
                                layer.load(3);
                            }
                            else {
                                playSound();
                                layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' });
                                document.getElementById("cmdLoadData").disabled = false;  //按钮变为可编辑状态
                            }
                            layer.closeAll("loading");  //关闭加载层
                        },
                        error: function (err) {
                            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扫码模块/生产管理/删托单/Sc_DeletePackUnionBill_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="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;" />
                              æ¢æ‰˜è°ƒæ‹¨å•
WebTM/views/user/login.html
@@ -247,7 +247,7 @@
                            if (!judgeMorPCflag) {//移动端
                                window.location.href = '../../views/index_Mobile.html'
                            } else {//PC端
                                window.location.href = '../../views/index.html'
                                window.location.href = '../../views/indexMenu.html'
                            }
                            get_WriteConfigFile();
                        }