WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_WorkCenter_Add_Edit.html
@@ -70,18 +70,7 @@
                                            <input class="layui-input" name="HBarCodeForBase" lay-verify="HBarCodeForBase" id="HBarCodeForBase">
                                        </div>
                                    </div>
                                    <div class="layui-col-xs4 layui-inline">
                                        <label class="layui-form-label">组织*</label>
                                        <div class="layui-input-inline" style="margin-bottom: -15px;">
                                            <div class="layui-form">
                                                <div class="layui-form-item">
                                                    <select name="HUSEORGID" id="HUSEORGID" lay-verify="HUSEORGID">
                                                        <!--动态渲染组织-->
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">禁用标志</label>
@@ -99,6 +88,21 @@
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs8 layui-inline">
                                            <label class="layui-form-label" style="width: 12.5%;">组织*</label>
                                            <div class="layui-input-inline" style="margin-bottom: -15px;">
                                                <div class="layui-form">
                                                    <div class="layui-form-item" style=" width: 375%;">
                                                        <select name="HUSEORGID" id="HUSEORGID" lay-verify="HUSEORGID" >
                                                            <!--动态渲染组织-->
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                    <div class="layui-tab-item">
@@ -123,7 +127,7 @@
                                            <div class="layui-col-xs4 layui-inline">
                                                <label class="layui-form-label">行业标准</label>
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HDayMoney" lay-verify="HWorkTimes" id="HWorkTimes" value="0">
                                                    <input class="layui-input" name="HDayMoney" lay-verify="HDayMoney" id="HDayMoney" value="0">
                                                </div>
                                            </div>
                                            <div class="layui-col-xs4 layui-inline">
@@ -189,6 +193,8 @@
            //判断操作类型
            if (OperationType == 1) {//无源单新增
                $("#HItemID").val(0);
                //禁用组织选项
                $("#HUSEORGID").attr("disabled", true);
            }
            else if (OperationType == 3) {//编辑
                //禁用组织选项
@@ -331,6 +337,43 @@
                //    layer.msg("请输入设备数量!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                //    return;
                //}
                var HWorkTimes = $('#HWorkTimes').val();
                if (HWorkTimes.substring(HWorkTimes.length - 1, HWorkTimes.length) == ".") {
                    layer.msg("工作时间的结尾不能是.!");
                    return;
                } else {
                    var ref = /^[0-9]+\.?[0-9]*$/;
                    if (!ref.test(HWorkTimes)) {
                        layer.msg("工作时间请输正确入数字!");
                        return;
                    }
                }
                var HQty = $('#HQty').val();
                if (HQty.substring(HQty.length - 1, HQty.length) == ".") {
                    layer.msg("设备数量的结尾不能是.!");
                    return;
                } else {
                    var ref = /^[0-9]+$/;
                    if (!ref.test(HQty)) {
                        layer.msg("设备数量请输正确入数字!");
                        return;
                    }
                }
                var HDayMoney = $('#HDayMoney').val();
                if (HDayMoney.substring(HDayMoney.length - 1, HDayMoney.length) == ".") {
                    layer.msg("行业标准的结尾不能是.!");
                    return;
                } else {
                    var ref = /^[0-9]+\.?[0-9]*$/;
                    if (!ref.test(HDayMoney)) {
                        layer.msg("行业标准请输正确入数字!");
                        return;
                    }
                }
                var sMainStr = JSON.stringify(data.field) + ";" + sessionStorage["HUserName"];
                $.ajax({
                    type: "POST",
@@ -389,7 +432,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '工序列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../Baseset/基础资料/Gy_ProcList.html', 'yes']
                    , content: ['../../基础资料/生产基础资料/Gy_Process.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -397,7 +440,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HProcName").val(checkStatus.data[0].工序);
                        $("#HProcName").val(checkStatus.data[0].工序名称);
                        $("#HProcID").val(checkStatus.data[0].HItemID);
                        $("#HProcNumber").val(checkStatus.data[0].工序代码);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
@@ -415,7 +458,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '部门列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../PublicPage/DeptInformation.html', 'yes']
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -423,9 +466,9 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HDeptName").val(checkStatus.data[0].HName);
                        $("#HDeptName").val(checkStatus.data[0].部门名称);
                        $("#HDeptID").val(checkStatus.data[0].HItemID);
                        $("#HDeptNumber").val(checkStatus.data[0].HNumber);
                        $("#HDeptNumber").val(checkStatus.data[0].部门代码);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) { }
@@ -441,7 +484,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '工作中心列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../Baseset/基础资料/Gy_WorkCenterList.html', 'yes']
                    , content: ['../../../views/基础资料/公用基础资料/Gy_WorkCenter.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -449,7 +492,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HCenter").val(checkStatus.data[0].工作中心);
                        $("#HCenter").val(checkStatus.data[0].工作中心名称);
                        $("#HCenterID").val(checkStatus.data[0].HItemID);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -466,7 +509,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '班组列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../PublicPage/GroupInformation.html', 'yes']
                    , content: ['../../基础资料/工资基础资料/Gy_Group.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -474,7 +517,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HGroup").val(checkStatus.data[0].HName);
                        $("#HGroup").val(checkStatus.data[0].班组名称);
                        $("#HGroupID").val(checkStatus.data[0].HItemID);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }