优化及修改
This commit is contained in:
@@ -46,13 +46,14 @@
|
||||
return vipCompany.vipMember.memberName;
|
||||
}, "bSortable": false},
|
||||
{"mData": "certificateCard","bSortable": false },
|
||||
{"mData": "certificateLevel", "bSortable": false},
|
||||
{"mData": "certificateType", "bSortable": false},
|
||||
{"mData": function (vipCompany) {
|
||||
var certificateApplyTime = "<div class='label label-light'><b>证书申请时间:" + vipCompany.certificateApplyTime + "</b></div><br>";
|
||||
var certificateMaturityTime = "<div class='label label-light'><b>证书到期时间:" + vipCompany.certificateMaturityTime + "</b></div><br>";
|
||||
return certificateApplyTime + certificateMaturityTime;
|
||||
}, "bSortable": false},
|
||||
{"mData": "certificateLevel", "bSortable": false},
|
||||
{"mData": "certificateType", "bSortable": false},
|
||||
{"mData": "certificateRemark", "bSortable": false},
|
||||
{"mData": "openticketTime", "bSortable": false},
|
||||
{"mData": "outcardTime", "bSortable": false},
|
||||
{"mData": "annualReviewTime", "bSortable": false},
|
||||
@@ -115,7 +116,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
$("#sample-table-2_length").append(' <label><a href="javascript:void(0);" id="addVipCompany" class="btn btn-xs btn-primary"><i class="icon-edit"></i><span class="no-text-shadow">新增</span></a></label>');
|
||||
$("#sample-table-2_length").append(' <label><a href="javascript:void(0);" id="addVipCompany" class="btn btn-default btn-sm"><i class="icon-edit"></i><span class="no-text-shadow">新增</span></a></label>');
|
||||
$("#sample-table-2_length").append(' <label><a href="javascript:void(0);" id="templateDownload" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-cloud-download"></i><span class="no-text-shadow">模板下载</span></a></label>');
|
||||
$("#sample-table-2_length").append(' <label><a href="javascript:void(0);" id="export" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-cloud-download"></i><span class="no-text-shadow">导出</span></a></label>');
|
||||
$("#sample-table-2_length").append(' <label><a href="javascript:void(0);" id="import" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-cloud-download"></i><span class="no-text-shadow">导入</span></a></label>');
|
||||
//重置
|
||||
$("#reset").click(function () {
|
||||
var searchClass = $(".searchClass");
|
||||
@@ -138,6 +142,7 @@
|
||||
$("#outcardTime").val("");
|
||||
$("#annualReviewTime").val("");
|
||||
$("#cost").val("");
|
||||
$("#certificateRemark").val("");
|
||||
$("#addOrUpdateSubmitBtn").attr("disabled",false);
|
||||
$("#companyModal").modal("show");
|
||||
});
|
||||
@@ -156,6 +161,15 @@
|
||||
$("#memberClose,#memberClose1").click(function () {
|
||||
$("#memberModal").modal("hide");
|
||||
});
|
||||
$("#templateDownload").click(function () {
|
||||
$("#templateDownForm").submit();
|
||||
});
|
||||
$("#export").click(function () {
|
||||
$("#exportForm").submit();
|
||||
});
|
||||
$("#import").click(function () {
|
||||
$("#fileUpload").click();
|
||||
});
|
||||
|
||||
//自动查询
|
||||
$("#searchTableMember").find("input,select").change(function () {
|
||||
@@ -273,6 +287,7 @@
|
||||
$("#outcardTime").val(data.outcardTime);
|
||||
$("#annualReviewTime").val(data.annualReviewTime);
|
||||
$("#cost").val(data.cost);
|
||||
$("#certificateRemark").val(data.certificateRemark);
|
||||
$("#companyModal").modal("show");
|
||||
}
|
||||
else{
|
||||
@@ -340,6 +355,17 @@
|
||||
dataTable.fnPageChange(--pageNum, true);
|
||||
}
|
||||
|
||||
function uploadFile() {
|
||||
var file = $("#fileUpload");
|
||||
var fileName = file[0].files[0].name;
|
||||
var suffixName = fileName.substr(fileName.lastIndexOf("."))
|
||||
if (suffixName != '.xls') {
|
||||
jAlert('只能为xls的文件!', '提示');
|
||||
return ;
|
||||
}
|
||||
$("#importForm").submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -415,9 +441,10 @@
|
||||
<th class="center">ID</th>
|
||||
<th>单位名称</th>
|
||||
<th>证书编号</th>
|
||||
<th>证书时间</th>
|
||||
<th>证书等级</th>
|
||||
<th>证书类型</th>
|
||||
<th>证书时间</th>
|
||||
<th>备注</th>
|
||||
<th>开票时间</th>
|
||||
<th>出证时间</th>
|
||||
<th>年审时间</th>
|
||||
@@ -516,6 +543,14 @@
|
||||
<input type="text" name="cost" id="cost" class="input-medium" maxlength="50" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="space-4"></div>
|
||||
<div class="form-group">
|
||||
<label class="col-xs-2 control-label no-padding-right">备注</label>
|
||||
<div class="col-xs-8">
|
||||
<textarea rows="3" cols="10" name="certificateRemark" id="certificateRemark" class="form-control" maxlength="50" required></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@@ -528,6 +563,13 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<form id="templateDownForm" action="<%=basePath%>page/vip/downloadCompanyImportTemplateToExcel.do"></form>
|
||||
<form id="exportForm" action="<%=basePath%>page/vip/downloadCompanyExportToExcel.do"></form>
|
||||
<div style="display: none;">
|
||||
<form id="importForm" action="<%=basePath%>page/vip/downloadCompanyImportToExcel.do" method="post" enctype="multipart/form-data">
|
||||
<input type="file" id="fileUpload" onchange="uploadFile();" name="fileUpload" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal fade" id="memberModal">
|
||||
|
||||
Reference in New Issue
Block a user