1
yangle
2023-08-24 e24781836e5bd3ddf3522e90f4864b54be6c4e7e
WebTM/views/»ù´¡×ÊÁÏ/¹¤×Ê»ù´¡×ÊÁÏ/Gy_Group_Add_Edit.html
@@ -71,18 +71,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-xs8 layui-inline">
                                                <label class="layui-form-label" style="width: 12.5%;">备注</label>
@@ -90,6 +79,20 @@
                                                    <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off" style=" width: 75%;">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-row">
                                            <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" style=" width: 375%;">
                                                            <select name="HUSEORGID" id="HUSEORGID" lay-verify="HUSEORGID">
                                                                <!--动态渲染组织-->
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
@@ -189,6 +192,8 @@
            //判断操作类型
            if (OperationType == 1) {//无源单新增
                $("#HItemID").val(0);
                //禁用组织选项
                $("#HUSEORGID").attr("disabled", true);
            }
            else if (OperationType == 3) {//编辑
                //禁用组织选项
@@ -340,6 +345,19 @@
                    layer.msg("名称不能为空!");
                    return;
                }
                var HEmpQty = $('#HEmpQty').val();
                if (HEmpQty.substring(HEmpQty.length - 1, HEmpQty.length) == ".") {
                    layer.msg("人数的结尾不能是.!");
                    return;
                } else {
                    var ref = /^[0-9]+$/;
                    if (!ref.test(HEmpQty)) {
                        layer.msg("人数请输正确入数字!");
                        return;
                    }
                }
                //if ($("#HProcID").val()=="0") {
                //    layer.msg("请选择工序!");
                //    return;