| | |
| | | }); |
| | | } |
| | | |
| | | function flushPage() { |
| | | layer.confirm('确定要刷新页面吗?', {icon: 3, title: '提示'}, function (index) { |
| | | resetForm(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | |
| | | // 表单清空 |
| | | function resetForm() { |
| | | $("#form-data")[0].reset(); |
| | |
| | | $('#kccz-r-img3').removeAttr('src'); |
| | | form.render(); |
| | | recordData = null; |
| | | $("#text-param").val(null); |
| | | } |
| | | |
| | | // 更新数据信息 |
| | |
| | | |
| | | // 当前完成 |
| | | function submit() { |
| | | if (null == recordData) { |
| | | if (!recordData) { |
| | | layer.alert("没有数据可以提交!!!"); |
| | | return; |
| | | } |
| | |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/inout-next-step", |
| | | url: "../../basic/inout/submit-handle", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(recordData), |