96 lines
4.1 KiB
HTML
96 lines
4.1 KiB
HTML
<div class="easyui-layout" style="width:100%;height:100%;">
|
|
<div id='southdiv' data-options="region:'south'" style="height:50px;text-align:center;padding:5px">
|
|
<a href="javascript:void(0)" iconCls="fa-check" class="easyui-linkbutton" onclick="aqzssubmitForm()"
|
|
id="submitb">提交查询</a>
|
|
<a href="javascript:void(0)" iconCls="fa-close" class="easyui-linkbutton" onclick="closeForm()">取消</a>
|
|
</div>
|
|
<div data-options="region:'center'" style="height:100%;padding:15px 15px;">
|
|
<form id="aqzsff" method="post" name="aqzsff" enctype="multipart/form-data">
|
|
<p style="color:red;">请输入相关信息后提交进行联网查询证书</p>
|
|
<div style="margin-bottom:5px">
|
|
<input id="aqzsry" class="easyui-textbox" style="width:480px" data-options="label:'员工',prompt:'请选择'" required=true
|
|
editable=false>
|
|
<input type="hidden" id="userid" name="userid" />
|
|
<a id="chooseaqzsry" class='easyui-linkbutton' onclick="chooseaqzsry()" style="width:auto">选择</a>
|
|
</div>
|
|
<div style="margin-bottom:5px">
|
|
<input id="realname" class="easyui-textbox" name="realname" style="width:480px" data-options="
|
|
label:'真实姓名'," required=true>
|
|
</div>
|
|
<div style="margin-bottom:5px">
|
|
<input id="cardnum" class="easyui-textbox" name="cardnum" style="width:480px" data-options="
|
|
label:'身份证号'," required=true>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
function aqzssubmitForm() {
|
|
var aqzsdata = $('#aqzsff').serializeJSON();
|
|
$.ajax({
|
|
type: "POST",
|
|
url: 'api/safecert?a=addspider',
|
|
data: JSON.stringify(aqzsdata),
|
|
datatype: "json",
|
|
processData: false,
|
|
contentType: "application/json;charset=utf-8",//这是原因
|
|
beforeSend: function () {
|
|
var bo = $('#aqzsff').form('validate')
|
|
if (bo == false) {
|
|
return bo
|
|
} else {
|
|
$('#submitb').linkbutton('disable');
|
|
}
|
|
loading('联网查询中,请稍等。。')
|
|
},
|
|
success: function (data) {
|
|
if (data.code == 1) {
|
|
$('#aqzstable').datagrid('reload');
|
|
$("#dd").dialog("close");
|
|
} else { $.messager.alert('提示', '相关信息错误或查询无证!'); }
|
|
$('#submitb').linkbutton('enable');
|
|
removeLoading()
|
|
},
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
// $("#p_test").innerHTML = "there is something wrong!";
|
|
// alert(XMLHttpRequest.status);
|
|
// alert(XMLHttpRequest.readyState);
|
|
// alert(textStatus);
|
|
removeLoading()
|
|
$('#submitb').linkbutton('enable');
|
|
}
|
|
});
|
|
}
|
|
function chooseaqzsry() {
|
|
var myh = screen.availHeight * 0.5;
|
|
$('#userdd').dialog({
|
|
maximizable: true,
|
|
title: '选择人员',
|
|
width: 700,
|
|
height: myh,
|
|
closed: false,
|
|
cache: false,
|
|
href: 'getuserf?a=aqzsry',
|
|
modal: true,
|
|
border: false,
|
|
});
|
|
$('#userdd').window('center');
|
|
}
|
|
function aaa(x) {
|
|
if (x == "aqzsry") {
|
|
userid = top.$('#in').val()
|
|
$('#userid').val(userid)
|
|
$.get("api/user?a=detail&userid=" + userid, function (result) {
|
|
if (result.userprofile__realname != null) {
|
|
$('#realname').setValue(result.userprofile__realname)
|
|
}
|
|
if (result.userprofile__cardnum != null) {
|
|
$('#cardnum').setValue(result.userprofile__cardnum)
|
|
}
|
|
});
|
|
$('#user').attr('value', top.$('#in').val());
|
|
$('#aqzsry').textbox('setValue', top.$('#in').attr('show'));
|
|
|
|
}
|
|
}
|
|
</script> |