YL
2022-02-15 8d6d9c12e060be1b74ea8d74d3e713876723565a
班组工资计件单
1个文件已添加
10个文件已修改
3320 ■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 2111 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_ClassTimePrjGroupList.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_ClassTimePrjList.html 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Sc_ICMOBillListView2.html 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/条码库存/KF_ICInventoryByMaterID.html 417 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/Gy_Employee_Add_Edit_.html 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工资管理/工资结算单(其他)/Pay_OtherBalBillEdit.html 412 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/工资管理/考勤汇报单/Pay_WorkTimesBillEdit.html 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产开工单/Sc_MESBeginWorkBillList.html 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
Diff too large
WebTM/WebTM.csproj
@@ -86,6 +86,7 @@
    <Content Include="layuiadmin\PubCustom.js" />
    <Content Include="layuiadmin\PubJs\PubCheck.js" />
    <Content Include="views\Baseset\HBarPlanPrint.html" />
    <Content Include="views\Baseset\基础资料\Gy_ClassTimePrjList.html" />
    <Content Include="views\Baseset\基础资料\Gy_LineCenter.html" />
    <Content Include="views\Baseset\基础资料\Gy_QCCheckProjectListView.html" />
    <Content Include="views\Baseset\基础资料\Gy_RoutingGroup.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>JFTM</NameOfLastUsedPublishProfile>
    <NameOfLastUsedPublishProfile>D:\智云MES\Lay-Ui\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
    <ProjectView>ShowAllFiles</ProjectView>
    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
    <UseIISExpress>true</UseIISExpress>
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_ClassTimePrjGroupList.html
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>核算方式列表</title>
    <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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
@@ -62,7 +62,7 @@
                  { type: 'radio' }
                , { field: 'HItemID', title: '核算方式ID', hide: true }
                , { field: 'HNumber', title: '核算方式组代码' }
                , { field: 'HName', title: '核算方式名称', sort: true }
                , { field: 'HName', title: '核算方式组名称', sort: true }
              ]]
              , page: true
            });
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_ClassTimePrjList.html
New file
@@ -0,0 +1,103 @@
<!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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 15px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">过滤列</label>
                            <div class="layui-input-inline">
                                <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请输入过滤列" class="layui-input">
                            </div>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">快速查询</button>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <table class="layui-hide" id="mainTable"></table>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
            , layer = layui.layer;
            form.on('submit(HQuery)', function () {//选择核算方式
                //var sMainStr = JSON.stringify(table.cache['mainTable']);
                RoadQuery($('#Value').val());
            });
            form.on('submit(FH)', function () {//选择核算方式
                //var sMainStr = JSON.stringify(table.cache['mainTable']);
                var checkStatus = table.checkStatus('mainTable')
                 , data = checkStatus.data;
                parent.GetHClassTimePrjGroupNameValue(data);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
            RoadQuery($('#Value').val());
            table.render({
                elem: '#mainTable'
                // , url: '/demo/table/user/'
               , data: []
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'radio' }
                , { field: 'HItemID', title: '核算方式ID', hide: true }
                , { field: 'HNumber', title: '核算方式代码' }
                , { field: 'HName', title: '核算方式名称', sort: true }
              ]]
              , page: true
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var Value = Where;
                if (Value == null) {
                    Value = '';
                }
                $.ajax({
                    type: "get",
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetDepartmentList_Json",
                    url: GetWEBURL() + "/PublicPageMethod/GetClassTimePrjList_Json",
                    async: true,
                    data: { "Gy_ClassTimePrj": Value },
                    //data: { "Value": Value },
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                        table.reload('mainTable', {
                            data: ajaxReturnData
                            , height: 'full-10'
                            , loading: false
                            , done: function (index, res) {
                            }
                        });
                    },
                    error: function (result) {
                        console.log(result);
                        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                    }
                });
            };
        });
    </script>
</body>
</html>
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Sc_ICMOBillListView2.html
@@ -43,11 +43,13 @@
                //var sMainStr = JSON.stringify(table.cache['mainTable']);
                RoadQuery($('#Value').val());
            });
            RoadQuery($('#Value').val());
            //RoadQuery($('#Value').val());
            var ICMOBill = $('#Value').val();
            table.render({
                elem: '#mainTable'
                // , url: '/demo/table/user/'
               , data: []
                , url: GetWEBURL() + "/Web/GetSc_ICMOBillListView2"
                , where: { "ICMOBill": "", "OrganizationID": sessionStorage["OrganizationID"] } //扩展参数,可以传数据到后台
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'radio' }
@@ -104,8 +106,19 @@
                  , { field: '作废日期', width: 150, title: '作废日期' }
                  , { field: '单据类型', width: 150, title: '单据类型' }
              ]]
              , page: true
                , page: true,
                limit: 10,     //一页能够显示的最大数目
                limits: [10, 20, 40, 60, 80, 100], //控制多少行一页(默认五条一页)
                method: 'get',  //提交方式
                layout: ['count', 'prev', 'page', 'next', 'limit', 'skip'],
                response: {
                    statusCode: 1 //重新规定成功的状态码为 1,table ç»„件默认为 0
                },
                done: function (res) {   //返回数据执行回调函数
                    layer.close(layer.index);    //返回数据关闭loading
                }
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var index = layer.load();
@@ -113,38 +126,13 @@
                if (Value == null) {
                    Value = '';
                }
                $.ajax({
                    type: "get",
                    url: GetWEBURL() + "/Web/GetSc_ICMOBillListView2",
                    async: true,
                    data: { "ICMOBill": Value, "OrganizationID": sessionStorage["OrganizationID"] },
                    //data: { "Value": Value },
                    success: function (result) {
                        if (result.count == 1) {
                            ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                            table.reload('mainTable', {
                                data: ajaxReturnData
                                , height: 'full-10'
                                , loading: false
                                , done: function (index, res) {
                                }
                            });
                            layer.close(index);
                        }
                        else {
                            layer.close(index);
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    },
                    error: function (result) {
                        layer.close(index);
                        console.log(result);
                        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                    }
                table.reload("mainTable", { //此处是上文提到的 åˆå§‹åŒ–标识id
                    where: { "page": 1, "limit": 10, "ICMOBill": Value, "OrganizationID": sessionStorage["OrganizationID"] } //扩展参数,可以传数据到后台
                });
            };
        });
    </script>
</body>
WebTM/views/²Ö´æ¹ÜÀí/ÌõÂë¿â´æ/KF_ICInventoryByMaterID.html
@@ -118,11 +118,11 @@
            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;
                , admin = layui.admin
                , layer = layui.layer
                , table = layui.table
                , form = layui.form
                , element = layui.element;
            var option = [];
@@ -167,7 +167,7 @@
                    , { field: 'HBatchNo', title: '批次', width: 150 }
                    , { field: 'HAuxPropName', title: '辅助属性', width: 150 }
                    , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true }
                    , { field: 'HWhName', title: '仓库', width: 150}
                    , { field: 'HWhName', title: '仓库', width: 150 }
                    , { field: 'HWhID', title: 'HWhID', width: 150, hide: true }
                    , { field: 'HSPName', title: '仓位', width: 150 }
                    , { field: 'HSPID', title: 'HSPID', width: 150, hide: true }
@@ -276,77 +276,77 @@
            //判断是否新增
            if (linterid == null || linterid == 0) {
                        set_InitGrid();
                set_InitGrid();
            }
            else {//如果修改则走下面 new
            }
        //进入物料明细页签、条码框 å…‰æ ‡ç„¦ç‚¹   new
        //if (1 == 2)
        //{
        //    element.tabChange('tab-ProductlnBill', '3');
        //    var pFocus = $("#HBarCode");
        //    pFocus.focus();
        //    pFocus.select();
        //}
        //else
        //{
        //    element.tabChange('tab-ProductlnBill', '1');
        //    var pFocus = $("#HSourceBillNo");
        //    pFocus.focus();
        //    pFocus.select();
        //}
        //
        //
            //进入物料明细页签、条码框 å…‰æ ‡ç„¦ç‚¹   new
            //if (1 == 2)
            //{
            //    element.tabChange('tab-ProductlnBill', '3');
            //    var pFocus = $("#HBarCode");
            //    pFocus.focus();
            //    pFocus.select();
            //}
            //else
            //{
            //    element.tabChange('tab-ProductlnBill', '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(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(Cancel)', function () {
                //sessionStorage["SourceFlag"] = false;
                parent.location.href = "../../../views/index.html"
                //window.close();//关闭当前页
            })
        });
        //选择仓位
        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(Cancel)', function () {
            //sessionStorage["SourceFlag"] = false;
            parent.location.href = "../../../views/index.html"
            //window.close();//关闭当前页
        })
        //查询
        form.on('submit(Saver)', function (data) {//查询
            var sHWHID = $("#HWHID").val()
            var sHSPID = $("#HStockPlaceID").val()
            //查询
            form.on('submit(Saver)', function (data) {//查询
                var sHWHID = $("#HWHID").val()
                var sHSPID = $("#HStockPlaceID").val()
                layer.load(3)
                table.render({
                    elem: '#wl-table'
@@ -378,20 +378,20 @@
                    }
                });
                layer.closeAll("loading");
        });
            });
        //监听提交
        form.verify({
            numberOrEmpty: function (value, item) {
                // if (value != '') {
                if (!/^\d+$/.test(value)) {
                    return '不能为空或数字或者0';
            //监听提交
            form.verify({
                numberOrEmpty: function (value, item) {
                    // if (value != '') {
                    if (!/^\d+$/.test(value)) {
                        return '不能为空或数字或者0';
                    }
                    //}
                }
                //}
            }
        });
            });
        //查询条码库存
            //查询条码库存
            $('#HBarCode').on('keydown', function (event) {  //查询条码库存
                var HBarCode = $('#HBarCode').val()
                var sHWHID = $("#HWHID").val()
@@ -401,44 +401,44 @@
                    //var Flag = sessionStorage["SourceFlag"];
                    //判断条码是否为空  new
                    if (HBarCode == '') {
                            playSound();
                            layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            return false;
                        }
                        if (HBarCode != "") {
                            $('#HBarCode').val("");
                        playSound();
                        layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                                    layer.load(3)
                                    table.render({
                                        elem: '#wl-table'
                                        , url: GetWEBURL() + '/KF_ICInventoryByMaterID/GetBillEntry_TmpList_Pack'
                                        , toolbar: '#toolbarDemo'
                                        , defaultToolbar: []
                                        , where: { HBarCode: HBarCode, sHWHID: sHWHID, sHSPID: sHSPID,HOWNERID: sessionStorage["OrganizationID"], sWhere: '' }
                                        , cols: [[
                                            { type: 'radio' }
                                            , { field: 'HQty', title: '数量', width: 150 }
                                            , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                                            , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                            , { field: 'HMaterID', title: '物料ID', width: 150, hide: true }
                                            , { field: 'HBatchNo', title: '批次', width: 150 }
                                            , { field: 'HAuxPropName', title: '辅助属性', width: 150 }
                                            , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true }
                                            , { field: 'HWhName', title: '仓库', width: 150 }
                                            , { field: 'HWhID', title: 'HWhID', width: 150, hide: true }
                                            , { field: 'HSPName', title: '仓位', width: 150 }
                                            , { field: 'HSPID', title: 'HSPID', width: 150, hide: true }
                                            , { field: 'HOWNERName', title: '组织', width: 150 }
                                        ]]
                                        // , data: [linterid]
                                        // , page: true
                                        , height: 500
                                        , done: function () {
                                            layer.closeAll("loading");
                                        }
                                    });
                        layer.closeAll("loading");
                    if (HBarCode != "") {
                        $('#HBarCode').val("");
                    }
                    layer.load(3)
                    table.render({
                        elem: '#wl-table'
                        , url: GetWEBURL() + '/KF_ICInventoryByMaterID/GetBillEntry_TmpList_Pack'
                        , toolbar: '#toolbarDemo'
                        , defaultToolbar: []
                        , where: { HBarCode: HBarCode, sHWHID: sHWHID, sHSPID: sHSPID, HOWNERID: sessionStorage["OrganizationID"], sWhere: '' }
                        , cols: [[
                            { type: 'radio' }
                            , { field: 'HQty', title: '数量', width: 150 }
                            , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                            , { field: 'HMaterModel', title: '规格型号', width: 150 }
                            , { field: 'HMaterID', title: '物料ID', width: 150, hide: true }
                            , { field: 'HBatchNo', title: '批次', width: 150 }
                            , { field: 'HAuxPropName', title: '辅助属性', width: 150 }
                            , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true }
                            , { field: 'HWhName', title: '仓库', width: 150 }
                            , { field: 'HWhID', title: 'HWhID', width: 150, hide: true }
                            , { field: 'HSPName', title: '仓位', width: 150 }
                            , { field: 'HSPID', title: 'HSPID', width: 150, hide: true }
                            , { field: 'HOWNERName', title: '组织', width: 150 }
                        ]]
                        // , data: [linterid]
                        // , page: true
                        , height: 500
                        , done: function () {
                            layer.closeAll("loading");
                        }
                    });
                    layer.closeAll("loading");
                }
            });
@@ -468,103 +468,102 @@
        //刷新明细页签
        table.render({
            elem: '#mx-table'
            // , url: 'http://61.130.49.162:9090/WMSAPI///Web/GetHBarCodeShowBillSub'
            //, toolbar: '#toolbarDemo'
            // , where: { sMsg: linterid, sMsg2: lentryid }
         , cols: [[
           , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
         ]]
         , page: true
         , height: 500
         , done: function () {
         }
            //刷新明细页签
            table.render({
                elem: '#mx-table'
                // , url: 'http://61.130.49.162:9090/WMSAPI///Web/GetHBarCodeShowBillSub'
                //, toolbar: '#toolbarDemo'
                // , where: { sMsg: linterid, sMsg2: lentryid }
                , cols: [[
                    , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
                ]]
                , page: true
                , height: 500
                , done: function () {
                }
            });
        });
    });
    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 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) {  //非空验证
        //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 ($("#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 (!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
        function GetHWHValue(obj)  //返回调入仓库
        {
            return true;
            $("#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 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) {  //非空验证
            //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 ($("#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 (!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>
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_Employee_Add_Edit_.html
@@ -928,7 +928,8 @@
                    , area: ['90%', '90%']//大小
                    , title: '核算方式列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../../views/Baseset/基础资料/Gy_ClassTimePrjGroupList.html', 'yes']
                    , content: ['../../../views/Baseset/基础资料/Gy_ClassTimePrjList.html', 'yes']
                    //, content: ['../../../views/Baseset/基础资料/Gy_ClassTimePrjGroupList.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
WebTM/views/¹¤×ʹÜÀí/¹¤×ʽáËãµ¥(ÆäËû)/Pay_OtherBalBillEdit.html
@@ -113,27 +113,27 @@
                                        </div>
                                    </div>
                                    <!--<div class="layui-row">
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">源单类型</label>
                                            <div class="layui-input-inline">
                                                <select name="HSourceBillType" lay-filter="aihao" id="HSourceBillType">
                                                    <option value="产品入库单">产品入库单</option>
                                                    <option value="产品入库单(红单)">产品入库单(红单)</option>
                                                    <option value="调拨单">调拨单</option>
                                                    <option value="生产任务单">生产任务单</option>
                                                    <option value="工序汇报单">工序汇报单</option>
                                                    <option value="生产汇报单">生产汇报单</option>
                                                    <option value="手工录入">手工录入</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">选单号</label>
                                            <div class="layui-input-inline">
                                                <input class="layui-input" name="Box2" id="Box2" autocomplete="off">
                                            </div>
                                        </div>
                                    </div>-->
                <div class="layui-col-xs4 layui-inline">
                    <label class="layui-form-label">源单类型</label>
                    <div class="layui-input-inline">
                        <select name="HSourceBillType" lay-filter="aihao" id="HSourceBillType">
                            <option value="产品入库单">产品入库单</option>
                            <option value="产品入库单(红单)">产品入库单(红单)</option>
                            <option value="调拨单">调拨单</option>
                            <option value="生产任务单">生产任务单</option>
                            <option value="工序汇报单">工序汇报单</option>
                            <option value="生产汇报单">生产汇报单</option>
                            <option value="手工录入">手工录入</option>
                        </select>
                    </div>
                </div>
                <div class="layui-col-xs4 layui-inline">
                    <label class="layui-form-label">选单号</label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="Box2" id="Box2" autocomplete="off">
                    </div>
                </div>
            </div>-->
                                    <div class="layui-row">
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">工资类型</label>
@@ -159,61 +159,62 @@
                                        </div>
                                    </div>
                                </div>
                                <!--制单信息-->
                                <div class="layui-tab-item">
                                    <div class="layui-form-item">
                                        <div class="layui-row">
                                            <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="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly>
                                                </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="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly>
                                                </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="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly>
                                                </div>
                            </div>
                            <!--制单信息-->
                            <div class="layui-tab-item">
                                <div class="layui-form-item">
                                    <div class="layui-row">
                                        <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="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly>
                                            </div>
                                        </div>
                                        <div class="layui-row">
                                            <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="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly>
                                                </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="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly>
                                                </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="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly>
                                                </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="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly>
                                            </div>
                                        </div>
                                        <div class="layui-row">
                                            <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="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly>
                                                </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="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly>
                                            </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="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly>
                                                </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <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="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly>
                                            </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="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly>
                                            </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="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <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="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly>
                                            </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="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly>
                                            </div>
                                        </div>
                                    </div>
@@ -241,10 +242,6 @@
        <!--<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
    <!--<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({
@@ -286,15 +283,16 @@
                , cols: [[ //表头
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe", width: 100 }
                    , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true }
                    , { field: 'HMaterCode', title: '物料代码', edit: 'text', event: 'HMaterCheck', width: 100 }
                    , { field: 'HMaterName', title: '物料名称', edit: 'text', width: 150 }
                    , { field: 'HProcID', title: 'HProcID', edit: 'text', width: 100, hide: true }
                    , { field: 'HProcNumber', title: '工序代码', edit: 'text', event: "HProcCheck", width: 100 }
                    , { field: 'HProcName', title: '工序名称', edit: 'text', width: 100 }
                    , { field: 'HEmpID', title: 'HEmpID', edit: 'text', width: 100, hide: true }
                    , { field: 'HEmpNumber', title: '职员代码', edit: 'text', event: 'HEmpCheck', width: 100 }
                    , { field: 'HEmpName', title: '职员名称', edit: 'text', width: 100 }
                    , { field: 'HEmpNumber', title: '职员代码', edit: 'text', event: 'HEmpCheck', width: 200 }
                    , { field: 'HEmpName', title: '职员名称', width: 100 }
                    , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true }
                    , { field: 'HMaterCode', title: '物料代码', edit: 'text', event: 'HMaterCode', width: 100 }
                    , { field: 'HMaterName', title: '物料名称', width: 300 }
                    , { field: 'HMaterSpec', title: '规格型号', width: 200 }
                    , { field: 'HProcID', title: 'HProcID', edit: 'text', width: 100, hide: true }
                    , { field: 'HProcNumber', title: '工序代码', edit: 'text', event: "HProcNumber", width: 100 }
                    , { field: 'HProcName', title: '工序名称', width: 100 }
                    , { field: 'HTimes', title: '工时', edit: 'text', width: 100 }
                    , { field: 'HQty', title: '数量', edit: 'text', width: 100 }
                    , { field: 'HPrice', title: '工价', edit: 'text', width: 100 }
@@ -304,7 +302,7 @@
                    , { field: 'HMainSourceEntryID', title: '源单子内码', edit: 'text', width: 100, hide: true }
                    , { field: 'HMainSourceBillNo', title: '源单单号', edit: 'text', width: 100, hide: true }
                    , { field: 'HSourceBillType', title: '源单类型', edit: 'text', width: 100, hide: true }
                    , { field: 'HCloseDate', title: '关闭时间', edit: 'text', width: 100 }
                    , { field: 'HCloseDate', title: '关闭时间', edit: 'text', width: 100, hide: true }
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo' }
                ]]
                , limit: 500 //每页默认显示的数量
@@ -321,9 +319,9 @@
                $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd"));
                //初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
                option.data = [{
                    "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcID": "", "HProcNumber": "", "HProcName": ""
                    , "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HTimes": 0, "HQty": 0, "HPrice": 0, "HMoney": 0
                    , "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0, "HSourceBillType": "", "HCloseDate": 0, "HRemark": ""
                    "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcID": "", "HProcNumber": "", "HProcName": ""
                    , "HTimes": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HRemark": ""
                    , "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0, "HSourceBillType": "", "HCloseDate": 0
                }];
                table.render(option);
            }
@@ -360,7 +358,11 @@
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;;
                var AddRow = table.cache['mainTable'];
                var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcNumber": "", "HProcName": "", "HSourceCode": "", "HSourceName": "", "HEmpCode": "", "HEmpName": "", "HTimes": 0, "HQty": 0, "HPrice": 0, "HPriceRate": 0, "HSubsidyQty": 0, "HSubsidyMoney": 0, "HSubsidyTotal": 0, "HDeuctTotal": 0, "HPackQty": 0, "HPackPrice": 0, "HPackMoney": 0, "HPackMaterID": 0, "HMoney": 0, "HICMOInterID": 0, "HICMOBillNo": 0, "HProcReportInterID": 0, "HProcReportEntryID": 0, "HProcReportBillNo": 0, "HProcPlanInterID": 0, "HProcPlanEntryID": 0, "HProcPlanBillNo": 0, "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0, "HSourceBillType": "", "HRelationQty": 0, "HRelationQty": 0, "HRelationMoney": 0, "HCloseMan": 0, "HCloseDate": 0, "HCloseType": 0, "HRemark": "" };
                var NewRow = {
                    "HEmpID": "", "HEmpNumber": "", "HEmpName": "","HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "","HProcID":0, "HProcNumber": "", "HProcName": ""
                    , "HTimes": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HRemark": ""
                    , "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0, "HSourceBillType": "", "HCloseDate": 0
                };
                switch (obj.event) {
                    case 'btn-AddLine':
                        //table.cache["mainTable"].push(AddRow[rows]);
@@ -408,7 +410,42 @@
                $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) {
                    if (event.key == "F7") {
                        if (obj.event === 'HMaterCheck')  //模具信息
                        if (obj.event === 'HEmpCheck') //职员
                        {
                            layer.open({
                                type: 2,
                                skin: 'layui-layer-rim', //加上边框
                                title: '职员列表',
                                closeBtn: 1,
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
                                    var iframeWindow = window['layui-layer-iframe' + index];
                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');
                                    if (checkStatus.data.length === 0) {
                                        return layer.msg('请选择数据');
                                    }
                                    obj.update({
                                        HEmpName: checkStatus.data[0].HName
                                        , HEmpID: checkStatus.data[0].HItemID
                                        , HEmpNumber: checkStatus.data[0].HNumber
                                    });
                                    layer.close(layer.index);
                                }
                                , btn2: function (index, layero) {
                                },
                                end: function () {
                                }
                            });
                        }
                        if (obj.event === 'HMaterCode')  //物料代码
                        {
                            //页面层-自定义
                            layer.open({
@@ -435,9 +472,7 @@
                                        HMaterID: checkStatus.data[0].HItemID,
                                        HMaterCode: checkStatus.data[0].HNumber,
                                        HMaterName: checkStatus.data[0].HName,
                                        HDesignLife: 0,  //设计寿命
                                        HLeaveLife: 0,   //剩余寿命
                                        HMaterSpec: checkStatus.data[0].HModel,
                                        HQty: 1,         //实收数量
                                        HMoney: 0,       //金额
                                    });
@@ -474,7 +509,8 @@
                            });
                        }
                        if (obj.event == 'HProcCheck') {
                        if (obj.event == 'HProcNumber') //工序代码
                        {
                            layer.open({
                                type: 2,
                                skin: 'layui-layer-rim', //加上边框
@@ -527,79 +563,6 @@
                                }
                            });
                        }
                        if (obj.event === 'HSourceCheck')  //资源代码
                        {
                            //页面层-自定义
                            layer.open({
                                type: 2,
                                skin: 'layui-layer-rim', //加上边框
                                title: '资源列表',
                                closeBtn: 1,
                                shift: 2,
                                area: ['80%', '80%'],
                                maxmin: true,
                                content: ['../../PublicPage/SourceInformation.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
                                    var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                                    if (checkStatus.data.length === 0) {
                                        return layer.msg('请选择数据');
                                    }
                                    //同步更新表格和缓存对应的值
                                    obj.update({
                                        HSourceID: checkStatus.data[0].HItemID,
                                        HSourceName: checkStatus.data[0].HName,
                                    });
                                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                                }
                                , btn2: function (index, layero) {
                                    //按钮【按钮二】的回调
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                }
                            });
                        }
                        if (obj.event === 'HEmpCheck') {//职员
                            layer.open({
                                type: 2,
                                skin: 'layui-layer-rim', //加上边框
                                title: '职员列表',
                                closeBtn: 1,
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
                                    var iframeWindow = window['layui-layer-iframe' + index];
                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');
                                    if (checkStatus.data.length === 0) {
                                        return layer.msg('请选择数据');
                                    }
                                    obj.update({
                                        HEmpName: checkStatus.data[0].HName
                                        , HEmpID: checkStatus.data[0].HItemID
                                        , HEmpNumber: checkStatus.data[0].HNumber
                                    });
                                    layer.close(layer.index);
                                }
                                , btn2: function (index, layero) {
                                },
                                end: function () {
                                }
                            });
                        }
                        obj.event = "";
                        return false;
@@ -617,72 +580,33 @@
                //layer.msg('[ID: ' + data.id + '] ' + field + ' å­—段更改为:' + value);
                switch (field) {
                    case "HDesignLife":  //设计寿命
                    case "HQty":        //数量
                        value = isNaN(value) ? 0 : value;
                        var HUseLife = isNaN(data.HUseLife) ? 0 : data.HUseLife;
                        var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice;  //工价
                        //同步更新表格和缓存对应的值
                        obj.update({
                            HDesignLife: value,                          //设计寿命
                            HLeaveLife: value - HUseLife,           //剩余寿命=设计寿命-使用寿命
                            HMoney: HPrice * value, //金额=数量*工价
                        });
                        break;
                    case "HLeaveLife":  //剩余寿命
                        var HDesignLife = isNaN(data.HDesignLife) ? 0 : data.HDesignLife;
                        var HUseLife = isNaN(data.HUseLife) ? 0 : data.HUseLife;
                        //同步更新表格和缓存对应的值
                        obj.tr.find('td[data-field=HLeaveLife] input').val(HDesignLife - HUseLife);
                        obj.update({
                            HLeaveLife: HDesignLife - HUseLife,   //剩余寿命=设计寿命-使用寿命
                        });
                        break;
                    case "HUseLife":    //使用寿命
                        var HDesignLife = isNaN(data.HDesignLife) ? 0 : data.HDesignLife;
                    case "HPrice":      //工价
                        value = isNaN(value) ? 0 : value;
                        //同步更新表格和缓存对应的值
                        obj.update({
                            HLeaveLife: HDesignLife - value, //剩余寿命=设计寿命-使用寿命
                        });
                        break;
                    case "HTimes":      //工时
                        var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice;
                        var HQty = isNaN(data.HQty) ? 0 : data.HQty;
                        var HTimes = isNaN(data.HTimes) ? 0 : data.HTimes;
                        //同步更新表格和缓存对应的值
                        obj.update({
                            HMoney: HPrice * HQty * HTimes, //金额=实收数量*单价
                        });
                        break;
                    case "HQty":        //实发数量
                        var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice;
                        var HQty = isNaN(data.HQty) ? 0 : data.HQty;
                        var HTimes = isNaN(data.HTimes) ? 0 : data.HTimes;
                        //同步更新表格和缓存对应的值
                        obj.update({
                            HMoney: HPrice * HQty * HTimes, //金额=实收数量*单价
                        });
                        break;
                    case "HPrice":      //单价
                        var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice;
                        var HQty = isNaN(data.HQty) ? 0 : data.HQty;
                        var HTimes = isNaN(data.HTimes) ? 0 : data.HTimes;
                        //同步更新表格和缓存对应的值
                        obj.update({
                            HMoney: HPrice * HQty * HTimes, //金额=实收数量*单价
                            HMoney: HQty * value, //金额=数量*工价
                        });
                        break;
                    case "HMoney":     //金额
                        var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice;
                        var HQty = isNaN(data.HQty) ? 0 : data.HQty;
                        var HTimes = isNaN(data.HTimes) ? 0 : data.HTimes;
                        //同步更新表格和缓存对应的值
                        obj.update({
                            HMoney: HPrice * HQty * HTimes, //金额=实收数量*单价
                            HMoney: HPrice * HQty, //金额=数量*工价
                        });
                        break;
                    default:
                }
            });
            function RoadBillMain(hID)//加载表头
            {
@@ -704,7 +628,7 @@
                                , "HInnerBillNo": data.内部单据号
                                , "HGroupID": data.HGroupID                    //班组ID
                                , "HGroupName": data.班组                 //班组名称
                                , "HEmpID": data.HEmpID    //主管ID
                                , "HEmpID": data.HEmpID              //主管ID
                                , "HEmpName": data.HEmpName         //主管名称
                                , "HDeptID": data.HDeptID                 //部门ID
                                , "HDeptName": data.部门                //部门名称
@@ -762,7 +686,7 @@
                /* RoadBillSub(linterid);*/
            }
            //表头信息仓库弹窗
            //表头信息班组弹窗
            form.on('submit(HGroupList)', function () {
                //页面层-自定义
                layer.open({
@@ -800,8 +724,7 @@
                });
            });
            //表头信息主管弹窗
            //表头信息职员弹窗
            form.on('submit(Employee)', function () {
                //页面层-自定义
                layer.open({
@@ -838,6 +761,7 @@
                    }
                });
            });
            //表头信息部门弹窗
            form.on('submit(Department)', function () {
                //页面层-自定义
@@ -875,6 +799,7 @@
                    }
                });
            });
            //表头信息工资类型弹窗
            form.on('submit(PayType)', function () {
                //页面层-自定义
@@ -993,61 +918,7 @@
        });
        //定义全局变量
        var HReasonName, ReasonID, EmpName, SQProcName,
            ProcID, ZRProcName, QRName
            ;
        function GetHReasonValue(obj)  //返回不良原因
        {
            HReasonName = obj[0].HName;
            ReasonID = obj[0].HItemID;
        }
        //返回物料
        function GetHMaterNameValue(obj) {  //返回物料
            $("#HMater").val(obj[0].HName);
            $("#HMaterID").val(obj[0].HItemID);
            $("#HMaterNumber").val(obj[0].HNumber);
        }
        //返回工序
        function GetHProcValue(obj) {  //返回工序
            $("#HProcName").val(obj[0].工序);
            $("#HProcID").val(obj[0].HItemID);
            $("#HProcNumber").val(obj[0].工序代码);
        }
        function GetHDeptNameValue(obj) {  //返回部门
            $("#HDepName").val(obj[0].HName);
            $("#HDeptID").val(obj[0].HItemID);
            $("#HDeptNumber").val(obj[0].HNumber);
        }
        //返回单位
        function GetHUnitNameValue(obj) {
            $("#HUName").val(obj[0].HName);
            $("#HUnitID").val(obj[0].HItemID);
            $("#HUnitNumber").val(obj[0].HNumber);
        }
        function GetHKeeperValue(obj) {  //返回责任人
            EmpName = obj[0].HName;
            // $("#HEmpName").val(obj[0].HName);
            //$("#HItemID").val(obj[0].HItemID);
        }
        //function GetHProcValue(obj) {  //返回申请工序
        //    SQProcName = obj[0].工序;
        //    ProcID = obj[0].HItemID;
        //    //$("#HSQProcName").val(obj[0].工序);
        //    //$("#HProcID").val(obj[0].HItemID);
        //}
        function GetHZRValue(obj) {   //返回责任工序
            ZRProcName = obj[0].工序;
            //$("#HZRProcName").val(obj[0].工序);
            //$("#HItemID").val(obj[0].HItemID);
        }
        //HWorker
        function GetHWorkerValue(obj) {  //返回不良确认人
            QRName = obj[0].HName;
            //$("#HQRName").val(obj[0].HName);
            //$("#HItemID").val(obj[0].HItemID);
        }
        function AllowLoadData(sSubStr) {  //非空验证
            var Result = true;
            if ($("#HGroupID").val() == '') {
@@ -1099,6 +970,7 @@
                return Result;
            }
            return Result;
        }</script>
        }
    </script>
</body>
</html>
WebTM/views/¹¤×ʹÜÀí/¿¼Çڻ㱨µ¥/Pay_WorkTimesBillEdit.html
@@ -300,7 +300,6 @@
                });
                var tableReload = table.reload;
                var option = {
                    elem: '#mainTable'
@@ -317,7 +316,7 @@
                        , { field: 'HEmpRate', title: '职员系数', edit: 'text', width: 100 }
                        , { field: 'HPMTimes', title: '下午工时', edit: 'text', width: 100 }
                        , { field: 'HAMTimes', title: '上午工时', edit: 'text', width: 100 }
                        , { field: 'HBaseTimes', title: '基本工时', edit: 'text', width: 100 }
                        , { field: 'HBaseTimes', title: '基本工时', width: 100 }
                        , { field: 'HBaseDays', title: '基本天数', edit: 'text', width: 100 }
                        , { field: 'HOverTimes', title: '加班工时', edit: 'text', width: 100 }
                        , { field: 'HOverDays', title: '加班天数', edit: 'text', width: 100 }
@@ -334,6 +333,12 @@
                        , { field: 'HAbsentDays', title: '旷工天数', edit: 'text', width: 100 }
                        , { field: 'HRestFlag', title: '厂休', edit: 'text', value: "true", width: 100, hide: true }
                        , { field: 'HSchClassID', title: '班次', edit: 'text', width: 100 }
                        , { field: 'HCTPrjID', title: '核算方案代码', edit: 'text', width: 100, hide: true}
                        , { field: 'HCTPrjName', title: '核算方案名称', edit: 'text', event: 'HCTPrjName', width: 100 }
                        , { field: 'HWorkTypeID', title: '工种代码', edit: 'text', width: 100, hide: true}
                        , { field: 'HWorkTypeName', title: '工种名称', edit: 'text', event: 'HWorkTypeName', width: 100 }
                        , { field: 'HPayMoney', title: '小时工资', edit: 'text', width: 100 }
                        , { field: 'HMoney', title: '工资', width: 100 }
                        //, { field: 'HNeedTimes    ', title: '应上班工时', edit: 'text', width: 100 }
                        , { field: 'HRemark', title: '备注', edit: 'text', width: 100 }
                        , { field: 'HMainSourceInterID ', title: '源单主内码', edit: 'text', width: 100, hide: true }
@@ -362,7 +367,8 @@
                        , "HPMTimes": 0, "HAMTimes": 0, "HBaseTimes": 0, "HBaseDays": 0, "HOverTimes": 0
                        , "HOverDays": 0, "HLeaveTimes": 0, "HLeaveDays": 0, "HLateQty": 0, "HLateTimes": 0, "HEarlyQty": 0
                        , "HEarlyTimes": 0, "HOutForEmpQty": 0, "HOutForEmpTimes": 0, "HOutForComQty": 0, "HOutForComTimes": 0, "HAbsentDays": 0
                        , "HRestFlag": "true", "HSchClassID": 0, "HNeedTimes": 0, "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0
                        , "HRestFlag": "true", "HSchClassID": 0, "HCTPrjID": 0, "HCTPrjName": "", "HWorkTypeID": 0, "HWorkTypeName": "", "HPayMoney": 0,"HMoney":0
                        , "HNeedTimes": 0, "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0
                        , "HSourceBillType": "", "HRemark": ""
                    }];
                    table.render(option);
@@ -404,7 +410,8 @@
                        , "HPMTimes": 0, "HAMTimes": 0, "HBaseTimes": 0, "HBaseDays": 0, "HOverTimes": 0
                        , "HOverDays": 0, "HLeaveTimes": 0, "HLeaveDays": 0, "HLateQty": 0, "HLateTimes": 0, "HEarlyQty": 0
                        , "HEarlyTimes": 0, "HOutForEmpQty": 0, "HOutForEmpTimes": 0, "HOutForComQty": 0, "HOutForComTimes": 0, "HAbsentDays": 0
                        , "HRestFlag": "true", "HSchClassID": 0, "HNeedTimes": 0, "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0
                        , "HRestFlag": "true", "HSchClassID": 0, "HCTPrjID": 0, "HCTPrjName": "", "HWorkTypeID": 0, "HWorkTypeName": "", "HPayMoney": 0, "HMoney": 0
                        , "HNeedTimes": 0, "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0
                        , "HSourceBillType": "", "HRemark": ""
                    };
                    switch (obj.event) {
@@ -486,6 +493,54 @@
                                    }
                                });
                            }
                            if (obj.event === 'HCTPrjName') {//核算方案
                                layer.open({
                                    type: 2//弹窗类型
                                    , skin: 'layui-layer-rim' //加上边框
                                    , area: ['90%', '90%']//大小
                                    , title: '核算方式列表'//标题
                                    , shift: 2//弹出动画
                                    , content: ['../../../views/Baseset/基础资料/Gy_ClassTimePrjList.html', 'yes']
                                    , btn: ['确定', '取消']
                                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                                        if (checkStatus.data.length === 0) {
                                            return layer.msg('请选择数据');
                                        }
                                        obj.update({
                                            HCTPrjName: checkStatus.data[0].HName
                                            , HCTPrjID: checkStatus.data[0].HItemID
                                        });
                                        layer.close(layer.index);
                                    }
                                    , btn2: function (index, layero) { }
                                })
                            }
                            if (obj.event === 'HWorkTypeName') {//工种
                                layer.open({
                                    type: 2//弹窗类型
                                    , skin: 'layui-layer-rim' //加上边框
                                    , area: ['90%', '90%']//大小
                                    , title: '工种列表'//标题
                                    , shift: 2//弹出动画
                                    , content: ['../../../views/Baseset/基础资料/Gy_WorkTypeList.html', 'yes']
                                    , btn: ['确定', '取消']
                                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                                        if (checkStatus.data.length === 0) {
                                            return layer.msg('请选择数据');
                                        }
                                        obj.update({
                                            HWorkTypeName: checkStatus.data[0].HName
                                            , HWorkTypeID: checkStatus.data[0].HItemID
                                        });
                                        layer.close(layer.index);
                                    }
                                    , btn2: function (index, layero) { }
                                })
                            }
                            //if (obj.event === 'HMaterCheck')  //模具信息
                            //{
@@ -623,55 +678,56 @@
                    //layer.msg('[ID: ' + data.id + '] ' + field + ' å­—段更改为:' + value);
                    switch (field) {
                        case "HDesignLife":  //设计寿命
                        case "HPMTimes":  //下午工时
                            value = isNaN(value) ? 0 : value;
                            var HUseLife = isNaN(data.HUseLife) ? 0 : data.HUseLife;
                            //基本工时=上午工时+下午工时
                            var HBaseTimes = Number(isNaN(data.HAMTimes) ? 0 : data.HAMTimes) + Number(value);
                            //工资=小时工资*基本工时
                            var HMoney = Number(isNaN(data.HPayMoney) ? 0 : data.HPayMoney) * HBaseTimes;
                            //同步更新表格和缓存对应的值
                            obj.update({
                                HDesignLife: value,                          //设计寿命
                                HLeaveLife: value - HUseLife,           //剩余寿命=设计寿命-使用寿命
                                HPMTimes: value,                  //下午工时
                                HBaseTimes: HBaseTimes,           //基本工时
                                HMoney: HMoney, //工资
                            });
                            break;
                        case "HLeaveLife":  //剩余寿命
                            var HDesignLife = isNaN(data.HDesignLife) ? 0 : data.HDesignLife;
                            var HUseLife = isNaN(data.HUseLife) ? 0 : data.HUseLife;
                            //同步更新表格和缓存对应的值
                            obj.tr.find('td[data-field=HLeaveLife] input').val(HDesignLife - HUseLife);
                            obj.update({
                                HLeaveLife: HDesignLife - HUseLife,   //剩余寿命=设计寿命-使用寿命
                            });
                            break;
                        case "HUseLife":    //使用寿命
                            var HDesignLife = isNaN(data.HDesignLife) ? 0 : data.HDesignLife;
                        case "HAMTimes":  //上午工时
                            value = isNaN(value) ? 0 : value;
                            //基本工时=上午工时+下午工时
                            var HBaseTimes = Number(value) + Number(isNaN(data.HPMTimes) ? 0 : data.HPMTimes);
                            //工资=小时工资*基本工时
                            var HMoney = Number(isNaN(data.HPayMoney) ? 0 : data.HPayMoney) * HBaseTimes;
                            //同步更新表格和缓存对应的值
                            obj.update({
                                HLeaveLife: HDesignLife - value, //剩余寿命=设计寿命-使用寿命
                                HAMTimes: value,                  //上午工时
                                HBaseTimes: HBaseTimes,           //基本工时
                                HMoney: HMoney, //工资
                            });
                            break;
                        case "HQty":        //实发数量
                        case "HPayMoney":        //小时工资
                            value = isNaN(value) ? 0 : value;
                            var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice;
                            //工资=小时工资*基本工时
                            var HMoney = Number(value) * Number(isNaN(data.HBaseTimes) ? 0 : data.HBaseTimes);
                            //console.log(HMoney);
                            //同步更新表格和缓存对应的值
                            obj.update({
                                HMoney: value * HPrice, //金额=实收数量*单价
                                HMoney: HMoney, //工资
                            });
                            break;
                        case "HPrice":      //单价
                        case "HMoney":         //工资
                            value = isNaN(value) ? 0 : value;
                            var HQty = isNaN(data.HQty) ? 0 : data.HQty;
                            if (data.HPayMoney == 0 || data.HPayMoney == null)
                            {
                                value = 0;
                            }
                            //工资=小时工资*基本工时
                            var HMoney = Number(isNaN(data.HPayMoney) ? 0 : data.HPayMoney) * Number(isNaN(data.HBaseTimes) ? 0 : data.HBaseTimes);
                            console.log(HMoney);
                            //同步更新表格和缓存对应的值
                            obj.update({
                                HMoney: value * HQty, //金额=实收数量*单价
                                HMoney: HMoney, //工资
                            });
                            break;
                        case "HMoney":     //金额
                            var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice;
                            var HQty = isNaN(data.HQty) ? 0 : data.HQty;
                            //同步更新表格和缓存对应的值
                            obj.update({
                                HMoney: HPrice * HQty, //金额=实收数量*单价
                            });
                            break;
                        default:
                    }
WebTM/views/Éú²ú¹ÜÀí/Éú²ú¿ª¹¤µ¥/Sc_MESBeginWorkBillList.html
@@ -493,11 +493,100 @@
            //#endregion
            table.on('toolbar(LAY_TABLE_TOOL_COLS)', function (obj) {
                console.log(obj);
            });
            //工具栏操作事件
            table.on('toolbar(mainTable)', function (e) {
                var othis = $(this)
                    , events = othis.attr('lay-event')
                    , openPanel = function (sets) {
                        var list = $(sets.list)
                            , panel = $('<ul class="layui-table-tool-panel"></ul>');
                        panel.html(list);
                    };
                  switch (events) {
                    case 'LAYTABLE_COLS': //筛选列
                        openPanel({
                            list: function () {
                                var lis = [];
                                table.eachCols(function (i, item) {
                                    if (item.field && item.type == 'normal') {
                                        lis.push('<li><input type="checkbox" name="' + item.field + '" data-key="' + item.key + '" data-parentkey="' + (item.parentKey || '') + '" lay-skin="primary" ' + (item.hide ? '' : 'checked') + ' title="' + (item.title || item.field) + '" lay-filter="LAY_TABLE_TOOL_COLS"></li>');
                                    }
                                });
                                return lis.join('');
                            }()
                            , done: function () {
                                form.on('checkbox(LAY_TABLE_TOOL_COLS)', function (obj) {
                                    console.log(obj);
                                    var othis = $(obj.elem)
                                        , checked = this.checked
                                        , key = othis.data('key')
                                        , parentKey = othis.data('parentkey');
                                    layui.each(options.cols, function (i1, item1) {
                                        layui.each(item1, function (i2, item2) {
                                            if (i1 + '-' + i2 === key) {
                                                var hide = item2.hide;
                                                //同步勾选列的 hide å€¼å’Œéšè—æ ·å¼
                                                item2.hide = !checked;
                                                that.elem.find('*[data-key="' + options.index + '-' + key + '"]')
                                                [checked ? 'removeClass' : 'addClass'](HIDE);
                                                //根据列的显示隐藏,同步多级表头的父级相关属性值
                                                if (hide != item2.hide) {
                                                    that.setParentCol(!checked, parentKey);
                                                }
                                                //重新适配尺寸
                                                that.resize();
                                            }
                                        });
                                    });
                                });
                            }
                        });
                        break;
                }
            });
            //监听头工具栏
            //table.on('toolbar(mainTable)', function (obj) {
            //    console.log(obj);
            //    if (obj.event === 'LAYTABLE_COLS')
            //    {
            //    }
            //    //if (obj.event === 'refresh') {
            //    //    reloadTable();
            //    //}
            //    //else if (obj.event === 'LAYTABLE_EXCEL') {
            //    //    var formSelect = form.val('searchForm');
            //    //    $.ajax({
            //    //        type: 'get'
            //    //        , url: ctx + '/inventoryReport/getInventoryHistoryList'
            //    //        , data: formSelect
            //    //        , success: function (res) {
            //    //            table.exportFile('tableList', res.data, 'xls');
            //    //        }
            //    //    });
            //    //}
            //});
            //以上是layui模块
        });
    </script>