智云srmLayUi(安瑞和瑞琪)(通用版本)
yusijie
2024-09-24 b28c9a27dfefb67600192dcd587efdf0cf64cc98
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POOrderBill.html
@@ -304,20 +304,6 @@
                    }
                });
            }
            //监听提交
            //form.verify({
            //    numberOrEmpty: function (value, item) {
            //        // if (value != '') {
            //        if (!/^\d+$/.test(value)) {
            //            return '不能为空或数字或者0';
            //        }
            //        //}
            //    }
            //});
            layer.load(3)
            table.render({
                elem: '#mainTable'
@@ -491,46 +477,6 @@
                //  }
                //});
            }
            //function form2json() {
            //    var jsonuserinfo = jQuery('#form1').serializeObject();
            //    return JSON.stringify(jsonuserinfo).replace(/(")/g, "\\\"");
            //}
            //jQuery.fn.serializeObject = function () {
            //    var o = {};
            //    var a = this.serializeArray();
            //    jQuery.each(a, function () {
            //        if (o[this.name]) {
            //            if (!o[this.name].push) {
            //                o[this.name] = [o[this.name]];
            //            }
            //            o[this.name].push(this.value || '');
            //        } else {
            //            o[this.name] = this.value || '';
            //        }
            //    });
            //    return o;
            //};
            //form.on('submit(Saver)', function (data) {//保存
            //    debugger;
            //    var ajaxData = data.field;
            //    return JSON.stringify(ajaxData).replace(/(")/g, "\\\"");
            //   // return false;
            //});
            //function f_SaveBefore() {
            //    //保存前处理(字段格式:int类型不能为空,日期类型符合格式,bool类型)
            //    if ($("#HInterID").val() == '') {
            //        $("#HInterID").val('0');
            //    }
            //    //明细网格不能为空
            //    return 'Y'
            //}
            //$('.test-table-reload-btn .layui-btn').on('click', function () {
            //    var type = $(this).data('type');
            //    active[type] ? active[type].call(this) : '';
            //});
        });
    </script>
</body>