| | |
| | | <link rel="stylesheet" href="../../layuiadmin/layui/css/style-self.css" media="all"> |
| | | </head> |
| | | <body> |
| | | <div class="layui-card layadmin-header"> |
| | | <div class="layui-breadcrumb" lay-filter="breadcrumb"> |
| | | <a lay-href="">采购订单主页</a> |
| | | <a><cite>采购订单</cite></a> |
| | | <a><cite>采购订单表格</cite></a> |
| | | <a><cite>采购订单的表格重载</cite></a> |
| | | </div> |
| | | </div> |
| | | <div id="layout1" class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-md12"> |
| | |
| | | </form> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <form id="form2" class="layui-form layui-form-pane" action=""> |
| | | <form id="form2" class="layui-form" action=""> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | |
| | | <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="../../../../Scripts/jquery-1.8.2.js"></script>--> |
| | | <script src="../../../../Scripts/webConfig.js"></script> |
| | | <script> |
| | | layui.config({ |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | ///加载显示数据 |
| | | function RoadBillSub(linterid) { |
| | | $.ajax({ |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //监听提交 |
| | | //form.verify({ |
| | | // numberOrEmpty: function (value, item) { |
| | | // // if (value != '') { |
| | | // if (!/^\d+$/.test(value)) { |
| | | // return '不能为空或数字或者0'; |
| | | // } |
| | | // //} |
| | | // } |
| | | //}); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#mainTable' |
| | |
| | | // } |
| | | //}); |
| | | } |
| | | //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> |