|
@@ -19,7 +19,7 @@
|
|
|
background: red;
|
|
|
}
|
|
|
td input{
|
|
|
- margin-left:-10px !important;
|
|
|
+ margin-left:0px !important;
|
|
|
height: 42px !important;
|
|
|
}
|
|
|
.disables {
|
|
@@ -29,12 +29,12 @@
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.forbidden{
|
|
|
- background-color:#c2c2c2;
|
|
|
- }
|
|
|
+ background-color:#c2c2c2;
|
|
|
+ }
|
|
|
|
|
|
.notForbidden{
|
|
|
- background-color:#3ca2e0;
|
|
|
- }
|
|
|
+ background-color:#3ca2e0;
|
|
|
+ }
|
|
|
.spanzj{
|
|
|
color:red;
|
|
|
font-size: 12px;
|
|
@@ -47,8 +47,11 @@
|
|
|
var clientCount = 0;
|
|
|
function doSubmit(i){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
if(validateForm.form()){
|
|
|
-
|
|
|
-
|
|
|
+ var size = $("#sealMaterialInfoList tr").length;
|
|
|
+ if(size <= 1){
|
|
|
+ parent.layer.msg("盖章文件至少存在一条!", {icon: 5});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
$("#inputForm").submit();
|
|
|
return true;
|
|
|
}else{
|
|
@@ -90,6 +93,76 @@
|
|
|
$("#upTable").load(location.href+"?projectId="+obj + " #upTable");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ function genRow(data) {
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
+ addRow1('#sealMaterialInfoList', sealMaterialInfoListRowIdx, sealMaterialInfoListTpl, data[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function addRow1(list, idx, tpl, row){
|
|
|
+ var idx1 = $("#sealMaterialInfoList tr").length;
|
|
|
+ if(list == '#sealMaterialInfoList'){
|
|
|
+ bornTemplete1(list, idx, tpl, row, idx1);
|
|
|
+ sealMaterialInfoListRowIdx+=1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function bornTemplete1(list, idx, tpl, row, idx1){
|
|
|
+ $(list).append(Mustache.render(tpl, {
|
|
|
+ idx: idx, delBtn: true, row: row,
|
|
|
+ order:idx1 + 1
|
|
|
+ }));
|
|
|
+ $(list+idx).find("select").each(function(){
|
|
|
+ $(this).val($(this).attr("data-value"));
|
|
|
+ });
|
|
|
+ $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
+ var ss = $(this).attr("data-value").split(',');
|
|
|
+ for (var i=0; i<ss.length; i++){
|
|
|
+ if($(this).val() == ss[i]){
|
|
|
+ $(this).attr("checked","checked");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function delRow(obj, prefix) {
|
|
|
+ var id = $(prefix + "_invoiceId");
|
|
|
+ var delFlag = $(prefix + "_delFlag");
|
|
|
+ if (id.val() == "") {
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
+ } else if (delFlag.val() == "0") {
|
|
|
+ delFlag.val("1");
|
|
|
+ $(obj).html("÷").attr("title", "撤回删除");
|
|
|
+ $(obj).parent().parent().addClass("error");
|
|
|
+ $(obj).parent().parent().addClass("hide");
|
|
|
+ } else if (delFlag.val() == "1") {
|
|
|
+ delFlag.val("0");
|
|
|
+ $(obj).html("×").attr("title", "删除");
|
|
|
+ $(obj).parent().parent().removeClass("error");
|
|
|
+ }
|
|
|
+ var length=$("#projectMaterialStorageList tr").length;
|
|
|
+ var count=length;
|
|
|
+ for (var i=1;i<=length;i++) {
|
|
|
+ var delFlag = $("#projectMaterialStorageList").find("tr").eq(i-1).find("input").eq(1).val();
|
|
|
+ if (delFlag == "1") {
|
|
|
+ count =count-1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(count==1){
|
|
|
+ $("#chargeType").val("2")
|
|
|
+ layui.form.render();
|
|
|
+ }else if (count>1){
|
|
|
+ $("#chargeType").val("1")
|
|
|
+ layui.form.render();
|
|
|
+ }else if(count == 0){
|
|
|
+ $("#projectFlag").val("");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function num(obj){
|
|
|
+ obj.value = obj.value.replace(/[^\d]/g,""); //清除"数字"以外的字符
|
|
|
+ }
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -106,6 +179,62 @@
|
|
|
<form:hidden path="act.procDefId"/>
|
|
|
<form:hidden id="flag" path="act.flag"/>
|
|
|
|
|
|
+ <div id="upTable" class="form-group layui-row first">
|
|
|
+ <div class="form-group layui-row first">
|
|
|
+ <div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>项目名称:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <sys:gridselectcallproject url="${ctx}/sealApplyFor/sealApplyFor/selectprojectOnList" id="projectRecords" name="projectRecords.id" value="${sealApplyForInfo.projectRecords.id}" title="选择所属项目" labelName="projectRecords.projectName" cssStyle="background-color:#fff"
|
|
|
+ labelValue="${sealApplyForInfo.projectRecords.projectName}" cssClass="form-control required layui-input" fieldLabels="项目" fieldKeys="projectName" searchLabel="项目名称" searchKey="projectName" ></sys:gridselectcallproject>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label">报告号:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input id="projectReportDataNumber" htmlEscape="false" readonly="true" class="form-control layui-input" style="background-color: #f1f1f1" value="${sealApplyForInfo.projectRecords.projectReportNumber}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label">项目所在地:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input id="area" htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.province}-${sealApplyForInfo.projectRecords.city}-${sealApplyForInfo.projectRecords.county}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label">创建人:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.createBy.name}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label">审核人:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.reviewerPerson}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label">项目负责人:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.projectMasterName}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label double-line">工作开始日期:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input class="laydate-icondate form-control layui-input layer-date ash" style="background-color: #f1f1f1" readonly="true" id="startDate" name="startDate" value="<fmt:formatDate value="${sealApplyForInfo.projectRecords.startDate}" pattern="yyyy-MM-dd"/>">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
+ <label class="layui-form-label double-line">工作结束日期:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input class="laydate-icondate form-control layui-input layer-date " style="background-color: #f1f1f1" readonly="true" id="endingDate" name="endingDate" value="<fmt:formatDate value="${sealApplyForInfo.projectRecords.endingDate}" pattern="yyyy-MM-dd"/>">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
|
|
|
<div class="form-group layui-row first">
|
|
|
<div class="form-group-label"><h2>盖章信息</h2></div>
|
|
@@ -122,213 +251,67 @@
|
|
|
<form:textarea path="remarks" placeholder="请输入盖章说明信息" id="remarks" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div id="upTable">
|
|
|
- <div class="form-group layui-row first">
|
|
|
- <div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>项目名称:</label>
|
|
|
- <div class="layui-input-block with-icon">
|
|
|
- <sys:gridselectcallproject url="${ctx}/sealApplyFor/sealApplyFor/selectprojectOnList" id="projectRecords" name="projectRecords.id" value="${sealApplyForInfo.projectRecords.id}" title="选择所属项目" labelName="projectRecords.projectName" cssStyle="background-color:#fff"
|
|
|
- labelValue="${sealApplyForInfo.projectRecords.projectName}" cssClass="form-control required layui-input" fieldLabels="项目" fieldKeys="projectName" searchLabel="项目名称" searchKey="projectName" ></sys:gridselectcallproject>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">报告号:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="projectReportDataNumber" htmlEscape="false" readonly="true" class="form-control layui-input" style="background-color: #f1f1f1" value="${sealApplyForInfo.projectRecords.projectReportNumber}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">项目编号:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="projectId" htmlEscape="false" readonly="true" class="form-control layui-input" style="background-color: #f1f1f1" value="${sealApplyForInfo.projectRecords.projectId}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">项目所在地:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="area" htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.province}-${sealApplyForInfo.projectRecords.city}-${sealApplyForInfo.projectRecords.county}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">投资性质:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <c:if test="${sealApplyForInfo.projectRecords.projectProperties==null}">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input"/>
|
|
|
- </c:if>
|
|
|
- <c:forEach items="${fns:getMainDictList('project_properties')}" var="v">
|
|
|
- <c:if test="${v.value==sealApplyForInfo.projectRecords.projectProperties}">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${v.label}"/>
|
|
|
- </c:if>
|
|
|
- </c:forEach>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">建设地点:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.projectSite}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">创建人:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.createBy.name}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">审核人:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.reviewerPerson}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">所属部门:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" id="officeName" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.officeName}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <%--<div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label double-line">项目归属部门:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" id="belongingDepartmentName" class="form-control layui-input" value="${sealApplyForInfo.belongingDepartmentName}"/>
|
|
|
- </div>
|
|
|
- </div>--%>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">项目负责人:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.projectMasterName}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <%--<div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">工程类型:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <form:select path="engineeringType" disabled="true" style="background-color: #f1f1f1" class="form-control simple-select">
|
|
|
- <form:options items="${engineeringInfo}" itemLabel="engineeringName" itemValue="id" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
- </div>
|
|
|
- </div>--%>
|
|
|
- <%--<div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label double-line">送审规模(万元):</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <form:input path="submitScale" readonly="true" style="background-color: #f1f1f1" id="submitScale" maxlength="12" htmlEscape="false" placeholder="请输入送审规模" class="form-control layui-input number"/>
|
|
|
- </div>
|
|
|
- </div>--%>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label double-line">工作开始日期:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input class="laydate-icondate form-control layui-input layer-date ash" style="background-color: #f1f1f1" readonly="true" id="startDate" name="startDate" value="<fmt:formatDate value="${sealApplyForInfo.projectRecords.startDate}" pattern="yyyy-MM-dd"/>">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label double-line">工作结束日期:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input class="laydate-icondate form-control layui-input layer-date " style="background-color: #f1f1f1" readonly="true" id="endingDate" name="endingDate" value="<fmt:formatDate value="${sealApplyForInfo.projectRecords.endingDate}" pattern="yyyy-MM-dd"/>">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">创建日期:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" style="background-color: #f1f1f1" readonly="true" class="form-control layui-input" value="<fmt:formatDate value="${sealApplyForInfo.projectRecords.createDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="layui-item nav-btns">
|
|
|
+ <a class="nav-btn nav-btn-add" onclick="addRow1('#sealMaterialInfoList', sealMaterialInfoListRowIdx, sealMaterialInfoListTpl);sealMaterialInfoListRowIdx = sealMaterialInfoListRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
+ <table:importExcelA url="${ctx}/seal/sealMaterial/import"></table:importExcelA><!-- 导入按钮 -->
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">项目类别:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.attachmentProjectSort}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <%--<div class="layui-item layui-col-sm6 lw6">
|
|
|
- <label class="layui-form-label">盖章数量:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" readonly="true" style="background-color: #f1f1f1" class="form-control layui-input" value="${sealApplyForInfo.projectRecords.contractsNum}"/>
|
|
|
- </div>
|
|
|
- </div>--%>
|
|
|
- <div class="layui-item layui-col-sm12 lw6 with-textarea">
|
|
|
- <label class="layui-form-label">工程概况:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <textarea htmlEscape="false" rows="4" readonly="true" style="background-color: #f1f1f1" maxlength="1000" class="form-control" >${sealApplyForInfo.projectRecords.projectDesc}</textarea>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm12 lw6 with-textarea">
|
|
|
- <label class="layui-form-label">备注:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <textarea htmlEscape="false" rows="4" readonly="true" maxlength="1000" style="background-color: #f1f1f1" class="form-control" >${sealApplyForInfo.projectRecords.remarks}</textarea>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="form-group layui-row">
|
|
|
- <div class="form-group-label"><h2>委托方联系人信息</h2></div>
|
|
|
- <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
- <table id="contentTable" class="table table-bordered table-condensed no-bottom-margin details">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th class="hide"></th>
|
|
|
- <th width="25%">委托方</th>
|
|
|
- <th width="25%">联系人姓名</th>
|
|
|
- <th width="25%">联系方式1</th>
|
|
|
- <th width="25%">联系方式2</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="workClientLinkmanList">
|
|
|
- <c:forEach items="${sealApplyForInfo.projectRecords.workClientLinkmanList}" var="info" varStatus="index">
|
|
|
+ <div class="layui-table-body layui-item layui-col-xs12 form-table-container" style="padding:0px">
|
|
|
+ <table id="contentTables" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
|
+ <thead>
|
|
|
<tr>
|
|
|
- <td >
|
|
|
- ${info.clientId.name}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${info.name}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${info.linkPhone}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${info.linkMobile}
|
|
|
- </td>
|
|
|
+ <th width="20%"><font color="red" >*</font>盖章材料名称</th>
|
|
|
+ <th width="10%"><font color="red">*</font>份数</th>
|
|
|
+ <th width="40%">主要内容简述</th>
|
|
|
+ <th width="10%">经办人</th>
|
|
|
+ <th width="10%">备注</th>
|
|
|
+ <th width="10%">操作</th>
|
|
|
</tr>
|
|
|
- </c:forEach>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ </thead>
|
|
|
+ <tbody id="sealMaterialInfoList">
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <script type="text/template" id="sealMaterialInfoListTpl">//<!--
|
|
|
+ <tr id="sealMaterialInfoList{{idx}}">
|
|
|
+ <td class="hide" >
|
|
|
+ <input id="sealMaterialInfoList{{idx}}_projectId" name="sealMaterialInfoList[{{idx}}].projectId" type="hidden" value="{{row.projectId}}"/>
|
|
|
+ <input id="sealMaterialInfoList{{idx}}_delFlag" name="sealMaterialInfoList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
+ <input id="sealMaterialInfoList{{idx}}_id" name="sealMaterialInfoList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
|
+ </td>
|
|
|
+ <td style="padding:0px">
|
|
|
+ <input id="sealMaterialInfoList{{idx}}_sealMaterialName" name = "sealMaterialInfoList[{{idx}}].sealMaterialName" type="text" value="{{row.sealMaterialName}}" class="form-control" style="padding:0px;margin-left:0px;text-align:center;" required/>
|
|
|
+ </td>
|
|
|
+ <td style="padding:0px">
|
|
|
+ <input id="sealMaterialInfoList{{idx}}_amount" name = "sealMaterialInfoList[{{idx}}].amount" type="text" value="{{row.amount}}" onkeyup="num(this)" class="form-control" style="padding:0px;margin-left:0px;text-align:center;" required/>
|
|
|
+ </td>
|
|
|
+ <td style="padding:0px">
|
|
|
+ <input id="sealMaterialInfoList{{idx}}_mainContents" name = "sealMaterialInfoList[{{idx}}].mainContents" type="text" value="{{row.mainContents}}" class="form-control" style="padding:0px;margin-left:0px;text-align:center;"/>
|
|
|
+ </td>
|
|
|
+ <td style="padding:0px">
|
|
|
+ <input id="sealMaterialInfoList{{idx}}_agent" name = "sealMaterialInfoList[{{idx}}].agent.name" type="text" value="${sealMaterialInfo.agent.name}" class="form-control" style="padding:0px;margin-left:0px;text-align:center;" readonly="true"/>
|
|
|
+ </td>
|
|
|
+ <td style="padding:0px">
|
|
|
+ <input id="sealMaterialInfoList{{idx}}sealMaterialImportRemarks" name = "sealMaterialInfoList[{{idx}}].sealMaterialImportRemarks" type="text" value="{{row.sealMaterialImportRemarks}}" class="form-control" style="padding:0px;margin-left:0px;text-align:center;"/>
|
|
|
+ </td>
|
|
|
+ <td class="text-center op-td" style="padding:0px">
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#sealMaterialInfoList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove" style="padding:0px;margin-left:0px;text-align:center;"></i> 删除</span>{{/delBtn}}
|
|
|
+ </td>
|
|
|
+ </tr>//-->
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var sealMaterialInfoListRowIdx = 0, sealMaterialInfoListTpl = $("#sealMaterialInfoListTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
+ $(document).ready(function() {
|
|
|
+ var data = ${fns:toJson(sealMaterialInfo.sealMaterialInfoList)};
|
|
|
+ for (var i=0; i<data.length; i++){
|
|
|
+ addRow1('#sealMaterialInfoList', sealMaterialInfoListRowIdx, sealMaterialInfoListTpl, data[i])
|
|
|
+ }
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="form-group layui-row">
|
|
|
- <div class="form-group-label"><h2>施工方信息</h2></div>
|
|
|
- <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
- <table id="contentTable1" class="table table-bordered table-condensed no-bottom-margin details">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th class="hide"></th>
|
|
|
- <th width="25%">施工方单位名称</th>
|
|
|
- <th width="25%">联系人姓名</th>
|
|
|
- <th width="25%">联系方式1</th>
|
|
|
- <th width="25%">联系方式2</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="workConstructionLinkmanList">
|
|
|
- <c:forEach items="${sealApplyForInfo.projectRecords.workConstructionLinkmanList}" var="info" varStatus="index">
|
|
|
- <tr>
|
|
|
- <td >
|
|
|
- ${info.clientId.name}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${info.name}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${info.linkPhone}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${info.linkMobile}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div></div>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
|
|
@@ -345,88 +328,5 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<script>
|
|
|
- function openBill3(title,url,width,height,target,formId){
|
|
|
-
|
|
|
- var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
- var urls = url+"&index="+frameIndex;
|
|
|
- if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
- width='auto';
|
|
|
- height='auto';
|
|
|
- }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
-
|
|
|
- }
|
|
|
- top.layer.open({
|
|
|
- type: 2,
|
|
|
- area: [width, height],
|
|
|
- title: title,
|
|
|
- skin:"two-btns",
|
|
|
- maxmin: false, //开启最大化最小化按钮
|
|
|
- content: urls ,
|
|
|
- btn: ['确定','关闭'],
|
|
|
- yes: function(index, layero){
|
|
|
- var body = top.layer.getChildFrame('body', index);
|
|
|
- var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
- var inputForm = body.find('#inputForm');
|
|
|
- var top_iframe;
|
|
|
- if(target){
|
|
|
- top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
- }else{
|
|
|
- top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
- }
|
|
|
- inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
- inputForm.attr("action","${ctx}/ruralProject/ruralProjectRecords/linkManSave");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
- var $document = iframeWin.contentWindow.document;
|
|
|
-
|
|
|
- formSubmit3($document,formId,index);
|
|
|
- },
|
|
|
- cancel: function(index){
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- function formSubmit3($document,inputForm,index){
|
|
|
- var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
- submitHandler: function(form){
|
|
|
- loading('正在提交,请稍等...');
|
|
|
- form.submit();
|
|
|
- },
|
|
|
- errorContainer: "#messageBox",
|
|
|
- errorPlacement: function(error, element) {
|
|
|
- $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
- if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
- error.appendTo(element.parent().parent());
|
|
|
- } else {
|
|
|
- error.insertAfter(element);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- if(validateForm.form()){
|
|
|
- $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
- success:function(data) {
|
|
|
- var d = data;
|
|
|
- if(d.msg == "false"){
|
|
|
- parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- addRow("#workConstructionLinkmanList",workConstructionLinkmanRowIdx,workConstructionLinkmanTpl);
|
|
|
- workConstructionLinkmanRowIdx=workConstructionLinkmanRowIdx+1;
|
|
|
- var row = workClientLinkmanRowIdx;
|
|
|
-
|
|
|
- $("#"+"workConstructionLinkmanList"+row+"_id").val(d.id);
|
|
|
- $("#"+"workConstructionLinkmanList"+row+"_clientId_id").val(d.clientId);
|
|
|
- $("#"+"workConstructionLinkmanList"+row+"_clientName").val(d.clientName);
|
|
|
- $("#"+"workConstructionLinkmanList"+row+"_name").val(d.linkName);
|
|
|
- $("#"+"workConstructionLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
|
- $("#"+"workConstructionLinkmanList"+row+"_linkPhone").val(d.linkPhone);
|
|
|
- parent.layer.msg(d.str,{icon:1});
|
|
|
- top.layer.close(index)
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-</script>
|
|
|
</body>
|
|
|
</html>
|