Commit 960c0402 authored by houyu's avatar houyu

补录提示

parent 7a7b9629
<%@page language="java" pageEncoding="UTF-8" isELIgnored="false"%> <%@page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@include file="/common/header.jsp"%> <%@include file="/common/header.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>项目管理</title> <title>项目管理</title>
<%@include file="/common/jsLib.jsp"%> <%@include file="/common/jsLib.jsp" %>
<style> <style>
.l-btn-icon.icon-add { .l-btn-icon.icon-add {
margin-top: -7px; margin-top: -7px;
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
</style> </style>
<script> <script>
var index4Sf = 1; var index4Sf = 1;
/* $(document).ready(function () { /* $(document).ready(function () {
$("#showTitle").title($("#sfxmmcselect option:selected").val().text()); $("#showTitle").title($("#sfxmmcselect option:selected").val().text());
});*/ });*/
...@@ -20,29 +21,30 @@ ...@@ -20,29 +21,30 @@
var show = option; var show = option;
// document.getElementById("#showTitle").title("title"); // document.getElementById("#showTitle").title("title");
// $("#showTitle").attr('title',show); // $("#showTitle").attr('title',show);
document.getElementById ("showTitle").setAttribute("title",show) document.getElementById("showTitle").setAttribute("title", show)
document.getElementById ("showTitle").title =show; document.getElementById("showTitle").title = show;
} }
//验证收费信息 //验证收费信息
function verify1(data) { function verify1(data) {
var value; var value;
var obj={}; var obj = {};
var obj1={}; var obj1 = {};
var flag1=true; var flag1 = true;
var boolean1=true; var boolean1 = true;
var message = ""; var message = "";
if ($("#yjjemx").val()=="" || $("#yjjemx").val()== undefined || $("#yjjemx").val()==null) { if($(".yjjemx").is(':visible') == true){
if ($("#yjjemx").val() == "" || $("#yjjemx").val() == undefined || $("#yjjemx").val() == null) {
$.messager.alert('提示', '请填写人防费应缴金额!'); $.messager.alert('提示', '请填写人防费应缴金额!');
return return
} }
$("input[name=file1]").each(function(){ }
if($(this).val()!="") { $("input[name=file1]").each(function () {
if ($(this).val() != "") {
var name = $(this).parent().siblings().find("input").val(); var name = $(this).parent().siblings().find("input").val();
flag1 = $(this).parent().siblings().find("input[type='checkbox']").is(':checked'); flag1 = $(this).parent().siblings().find("input[type='checkbox']").is(':checked');
if(!flag1) if (!flag1) {
{ boolean1 = false;
boolean1= false;
// $.messager.alert('提示',"请在"+name+"选中复选框"); // $.messager.alert('提示',"请在"+name+"选中复选框");
message = "请选中复选框"; message = "请选中复选框";
return; return;
...@@ -50,14 +52,13 @@ ...@@ -50,14 +52,13 @@
} }
}); });
$("input[name=id]:checked").each(function(){ $("input[name=id]:checked").each(function () {
var name = $(this).val(); var name = $(this).val();
value = $(this).parent().siblings().find("input").val(); value = $(this).parent().siblings().find("input").val();
value = value.substring(value.lastIndexOf("\\")+1); value = value.substring(value.lastIndexOf("\\") + 1);
var no = $(this).parent().parent().find("input[name=wdno]").val(); var no = $(this).parent().parent().find("input[name=wdno]").val();
if(value=="") if (value == "") {
{ boolean1 = false;
boolean1= false;
// $.messager.alert('提示',"请上传"+$(this).val()+"文件"); // $.messager.alert('提示',"请上传"+$(this).val()+"文件");
message = "请上传文件"; message = "请上传文件";
return; return;
...@@ -73,7 +74,7 @@ ...@@ -73,7 +74,7 @@
/*} else {*/ /*} else {*/
var cnjfhj = $('#sfTable input[name="rfxmsfxx.cnjfhj"]:checked').val(); var cnjfhj = $('#sfTable input[name="rfxmsfxx.cnjfhj"]:checked').val();
if (cnjfhj=="" && $('#cnjfhj').val()!=undefined && $('#cnjfhj').val() !=null){ if (cnjfhj == "" && $('#cnjfhj').val() != undefined && $('#cnjfhj').val() != null) {
var val = $('#cnjfhj').val(); var val = $('#cnjfhj').val();
cnjfhj = val; cnjfhj = val;
} }
...@@ -83,12 +84,12 @@ ...@@ -83,12 +84,12 @@
return; return;
} }
var ids = $("#sfxxid").val(); var ids = $("#sfxxid").val();
var yzsqy = $('#yzsqy') .val(); var yzsqy = $('#yzsqy').val();
var dsdw = $('#dsdw') .val(); var dsdw = $('#dsdw').val();
var sfxmmc = $('#sfxmmcselect option:selected') .val();//选中的值 var sfxmmc = $('#sfxmmcselect option:selected').val();//选中的值
var shbm = $('#shbmselect option:selected') .val();//选中的值 var shbm = $('#shbmselect option:selected').val();//选中的值
var yjjemx = $('#yjjemx') .val(); var yjjemx = $('#yjjemx').val();
var sfxmlxdbh = $('#sfxmlxdbh') .val(); var sfxmlxdbh = $('#sfxmlxdbh').val();
$.ajax({ $.ajax({
async: false, async: false,
...@@ -96,60 +97,61 @@ ...@@ -96,60 +97,61 @@
type: 'post', type: 'post',
dataType: 'json', dataType: 'json',
async: false, async: false,
data: {rfxmid : "${rfxm.id}", "rfxmsfxx.yjjemx":yjjemx, "rfxmsfxx.sfxmlxdbh":sfxmlxdbh}, data: {rfxmid: "${rfxm.id}", "rfxmsfxx.yjjemx": yjjemx, "rfxmsfxx.sfxmlxdbh": sfxmlxdbh},
error: function () { error: function () {
$.messager.alert('错误', '提交出错!'); $.messager.alert('错误', '提交出错!');
}, },
success: function (data) { success: function (data) {
if (data.result) { if (data.result) {
abc="1"; abc = "1";
$.messager.confirm("提交","确定提交吗?",function(result){ $.messager.confirm("提交", "确定提交吗?", function (result) {
if(result){ if (result) {
document.myform1.action="rfxmSfxxEdit1.action"; document.myform1.action = "rfxmSfxxEdit1.action";
document.myform1.submit(); document.myform1.submit();
} }
parent.close_win(); parent.close_win();
reloadData(); reloadData();
}); });
} else { } else {
abc="0"; abc = "0";
// $("#yzjg").html('添加失败!'+data.message); // $("#yzjg").html('添加失败!'+data.message);
$.messager.alert('错误', '验证失败,'+data.message); $.messager.alert('错误', '验证失败,' + data.message);
return; return;
} }
} }
}); });
} }
function getShbmBySfxmmc() { function getShbmBySfxmmc() {
//监测收费项目名称选择框 //监测收费项目名称选择框
/*$("#sfxmmcselect").change(function(){*/ /*$("#sfxmmcselect").change(function(){*/
//置空部门选择框 //置空部门选择框
var yzsqy = $('#yzsqy') .val(); var yzsqy = $('#yzsqy').val();
var dsdw = $('#dsdw') .val(); var dsdw = $('#dsdw').val();
var sfxmmc = $("#sfxmmcselect option:selected").val(); var sfxmmc = $("#sfxmmcselect option:selected").val();
//异步获取 //异步获取
//根据一级select的值,异步获取数据更新二级的选项 //根据一级select的值,异步获取数据更新二级的选项
$.ajax({ $.ajax({
type:'get', type: 'get',
url:'${ctx}/jsp/rfxm/getShbmList.action', url: '${ctx}/jsp/rfxm/getShbmList.action',
data:{ data: {
"rfxmsfxx.sfxmmc":sfxmmc, "rfxmsfxx.sfxmmc": sfxmmc,
"rfxmsfxx.yzsqy":yzsqy, "rfxmsfxx.yzsqy": yzsqy,
"rfxmsfxx.dsdw":dsdw "rfxmsfxx.dsdw": dsdw
}, },
cache:false, cache: false,
dataType:'json', dataType: 'json',
success:function(secondDatas){ success: function (secondDatas) {
// var data = eval('('+secondDatas+')'); // var data = eval('('+secondDatas+')');
var data = secondDatas.rows; var data = secondDatas.rows;
if (secondDatas.total != undefined && secondDatas.total != "" && secondDatas.total > 0) { if (secondDatas.total != undefined && secondDatas.total != "" && secondDatas.total > 0) {
$("#shbmselect").empty(); $("#shbmselect").empty();
} }
//遍历回传的数据添加到二级select //遍历回传的数据添加到二级select
$.each(data, function(key, secondData) { $.each(data, function (key, secondData) {
var option = '<option value="'+secondData+'">'+secondData+'</option>' var option = '<option value="' + secondData + '">' + secondData + '</option>'
$("#shbmselect").append(option) $("#shbmselect").append(option)
}) })
...@@ -158,18 +160,18 @@ ...@@ -158,18 +160,18 @@
//三级select隐藏 //三级select隐藏
$("#box-select-third").fadeOut("slow");*/ $("#box-select-third").fadeOut("slow");*/
}, },
error:function(){ error: function () {
$.messager.alert('错误', '获取失败!'); $.messager.alert('错误', '获取失败!');
} }
}); });
/*});*/ /*});*/
} }
function scan(d){ function scan(d) {
var text = $(d).parent().parent().find("input[type='checkbox']").val(); var text = $(d).parent().parent().find("input[type='checkbox']").val();
console.log(text); console.log(text);
// alert(text); // alert(text);
window.open('${ctx}/scan.jsp?id='+encodeURIComponent(text)); window.open('${ctx}/scan.jsp?id=' + encodeURIComponent(text));
} }
...@@ -177,22 +179,22 @@ ...@@ -177,22 +179,22 @@
console.log($("#myform1").rfxm.cnjfhj); console.log($("#myform1").rfxm.cnjfhj);
} }
function numberCheck(num){ function numberCheck(num) {
var cost = num.value; var cost = num.value;
var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
if (!reg.test(cost)){ if (!reg.test(cost)) {
$.messager.alert({ $.messager.alert({
title : '提示信息!', title: '提示信息!',
msg : '金额的输入格式不正确,请确认!' msg: '金额的输入格式不正确,请确认!'
}); });
return ; return;
} }
} }
</script> </script>
</head> </head>
<body validform="true"> <body validform="true">
<div class="page_dialog"> <div class="page_dialog">
<div class="inner6px"> <div class="inner6px">
<div class="cell" style="width: 100%"> <div class="cell" style="width: 100%">
<table width="100%" border="0"> <table width="100%" border="0">
...@@ -267,7 +269,7 @@ ...@@ -267,7 +269,7 @@
</tr> </tr>
</table> </table>
<form name="myform1" method="post" enctype="multipart/form-data"> <form name="myform1" method="post" enctype="multipart/form-data">
<s:token /> <s:token/>
<input type="hidden" name="flag" value="${flag}"> <input type="hidden" name="flag" value="${flag}">
<input type="hidden" name="rfxm.id" value="${rfxm.id}"> <input type="hidden" name="rfxm.id" value="${rfxm.id}">
<input id="sfxxid" type="hidden" name="rfxmsfxx.id" value="${rfxmsfxx.id}"> <input id="sfxxid" type="hidden" name="rfxmsfxx.id" value="${rfxmsfxx.id}">
...@@ -275,13 +277,15 @@ ...@@ -275,13 +277,15 @@
<input type="hidden" name="originFileName" id="originFileName"/> <input type="hidden" name="originFileName" id="originFileName"/>
<div id="payDiv" class="easyui-accordion" style=""> <div id="payDiv" class="easyui-accordion" style="">
<div id="showTitle" class="" title="修改收费信息" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;"> <div id="showTitle" class="" title="修改收费信息" data-options="iconCls:'icon-ok'"
style="overflow:auto;padding:10px;">
<table width="100%" border="0" id="sfTable"> <table width="100%" border="0" id="sfTable">
<tr> <tr>
<th width="15">收费项目名称</th> <th width="15">收费项目名称</th>
<td width="35%"> <td width="35%">
<select id="sfxmmcselect" name="rfxmsfxx.sfxmmc" style="width: 91%" onchange="getShbmBySfxmmc()"> <select id="sfxmmcselect" name="rfxmsfxx.sfxmmc" style="width: 91%"
onchange="getShbmBySfxmmc()">
<c:forEach items="${yzssxsfxmmcList}" var="obj"> <c:forEach items="${yzssxsfxmmcList}" var="obj">
<c:if test="${obj == rfxmsfxx.sfxmmc}"> <c:if test="${obj == rfxmsfxx.sfxmmc}">
<option value="${obj}" selected="selected">${obj}</option> <option value="${obj}" selected="selected">${obj}</option>
...@@ -309,13 +313,38 @@ ...@@ -309,13 +313,38 @@
<tr> <tr>
<th width="15%">收费项目联系单编号</th> <th width="15%">收费项目联系单编号</th>
<td width="35%"> <td width="35%">
<input id="sfxmlxdbh" name="rfxmsfxx.sfxmlxdbh" value="${rfxmsfxx.sfxmlxdbh}" style="width:90%" datatype="*1-50" maxlength="50"/> <input id="sfxmlxdbh" name="rfxmsfxx.sfxmlxdbh" value="${rfxmsfxx.sfxmlxdbh}"
style="width:90%" datatype="*1-50" maxlength="50"/>
</td> </td>
<th width="15">应缴金额</th> <th width="15">应缴金额</th>
<td width="35%"> <c:if test="${ empty rfxm.paymentLink}">
<input id="yjjemx" name="rfxmsfxx.yjjemx" value="${rfxmsfxx.yjjemx}" style="width:90%" datatype="*1-50" errormsg='此项为必填' maxlength="50" onblur="numberCheck(this)"/> <td width="35%" class="showyj">
<input class="yjjemx" id="yjjemx" name="rfxmsfxx.yjjemx" value="${rfxmsfxx.yjjemx}"
style="width:90%;margin-top: 6px;" datatype="*1-50" errormsg='此项为必填'
maxlength="50" onblur="numberCheck(this)"/>
<font style='color:red'>*</font> <font style='color:red'>*</font>
</td> </td>
<td width="35%" class="yjstyle">
<input name="rfxmsfxx.yjjemx" value="${rfxmsfxx.yjjemx}"
style="width:90%;margin-top: 6px;"/>
</td>
</c:if>
<c:if test="${rfxm.paymentLink == 1}">
<td width="35%" class="showyj">
<input class="yjjemx" id="yjjemx" value="${rfxmsfxx.yjjemx}"
name="rfxmsfxx.yjjemx" style="width:90%;margin-top: 6px;"
datatype="*1-50" errormsg='此项为必填' maxlength="50"
onblur="numberCheck(this)"/>
<font style='color:red'>*</font>
</td>
</c:if>
<c:if test="${rfxm.paymentLink == 3}">
<td width="35%">
<input id="yjjemx" value="${rfxmsfxx.yjjemx}" name="rfxmsfxx.yjjemx"
style="width:90%;margin-top: 6px;"/>
</td>
</c:if>
</td>
</tr> </tr>
<tr> <tr>
<th width="15">缴费承诺环节${rfxmsfxx.tqjn}</th> <th width="15">缴费承诺环节${rfxmsfxx.tqjn}</th>
...@@ -346,30 +375,38 @@ ...@@ -346,30 +375,38 @@
<td colspan="3" style="text-align:left;"> <td colspan="3" style="text-align:left;">
<table width="100%" id="table"> <table width="100%" id="table">
<tr> <tr>
<th width="20%" style="text-align: left;"><input name="id" type="checkbox" value="征收联系单"><span id='fujianm'>征收联系单:</span></th> <th width="20%" style="text-align: left;"><input name="id" type="checkbox"
<td style="text-align: left;"width="20%" colspan="2"> value="征收联系单"><span
<input type="file" name="file1" > id='fujianm'>征收联系单:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)"/> <input type="button" value="扫描" onclick="scan(this)"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<th width="20%" style="text-align: left;"><input name="id" type="checkbox" value="税务反馈单"><span id='fujianm'>税务反馈单:</span></th> <th width="20%" style="text-align: left;"><input name="id" type="checkbox"
<td style="text-align: left;"width="20%" colspan="2"> value="税务反馈单"><span
<input type="file" name="file1" > id='fujianm'>税务反馈单:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)"/> <input type="button" value="扫描" onclick="scan(this)"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<th width="20%" style="text-align: left;"><input name="id" type="checkbox" value="先行缴纳配套费的申请"><span id='fujianm'>先行缴纳配套费的申请:</span></th> <th width="20%" style="text-align: left;"><input name="id" type="checkbox"
<td style="text-align: left;"width="20%" colspan="2"> value="先行缴纳配套费的申请"><span
<input type="file" name="file1" > id='fujianm'>先行缴纳配套费的申请:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)"/> <input type="button" value="扫描" onclick="scan(this)"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<th width="20%" style="text-align: left;"><input name="id" type="checkbox" value="完税证明"><span id='fujianm'>完税证明:</span></th> <th width="20%" style="text-align: left;"><input name="id" type="checkbox"
<td style="text-align: left;"width="20%" colspan="2"> value="完税证明"><span
<input type="file" name="file1" > id='fujianm'>完税证明:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)"/> <input type="button" value="扫描" onclick="scan(this)"/>
</td> </td>
</tr> </tr>
...@@ -383,7 +420,7 @@ ...@@ -383,7 +420,7 @@
<tr> <tr>
<th width="15">备注</th> <th width="15">备注</th>
<td width="85%"> <td width="85%">
<textarea id="beizhu" name="rfxmsfxx.beizhu" style="width: 95%" ></textarea> <textarea id="beizhu" name="rfxmsfxx.beizhu" style="width: 95%"></textarea>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -401,6 +438,6 @@ ...@@ -401,6 +438,6 @@
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment