|
@@ -31,7 +31,7 @@
|
|
// return;
|
|
// return;
|
|
// }
|
|
// }
|
|
if($("#workClientLinkmanList tr").length==0){
|
|
if($("#workClientLinkmanList tr").length==0){
|
|
- top.layer.alert('请至少选择一个委托方联系人!', {icon: 0});
|
|
|
|
|
|
+ top.layer.alert('请选择委托方联系人!', {icon: 0});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
/*if($("#workConstructionLinkmanList tr").length==0){
|
|
/*if($("#workConstructionLinkmanList tr").length==0){
|
|
@@ -120,6 +120,36 @@
|
|
});
|
|
});
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+
|
|
|
|
+ $('#masterId').on("change", function () {
|
|
|
|
+ var masterId = $("#masterId").val();
|
|
|
|
+ $("#officeName").val('');
|
|
|
|
+ $.ajax({
|
|
|
|
+ type : "POST",
|
|
|
|
+ url : "${ctx}/sys/user/getUserById",
|
|
|
|
+ data : {'userId':masterId},
|
|
|
|
+ //请求成功
|
|
|
|
+ success : function(result) {
|
|
|
|
+ var officeName = result.body.data.name;
|
|
|
|
+ if(officeName != '') {
|
|
|
|
+ $("#officeName").val(officeName);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ laydate.render({
|
|
|
|
+ elem: '#startDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
|
+ event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
|
+ type : 'date'
|
|
|
|
+ });
|
|
|
|
+ laydate.render({
|
|
|
|
+ elem: '#endingDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
|
+ event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
|
+ type : 'date'
|
|
|
|
+ });
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -352,6 +382,10 @@
|
|
$(obj).val(t.split("").reverse().join("") + "." + r);
|
|
$(obj).val(t.split("").reverse().join("") + "." + r);
|
|
}
|
|
}
|
|
function openBill2(title,url,width,height,target,formId){
|
|
function openBill2(title,url,width,height,target,formId){
|
|
|
|
+ if($("#workClientLinkmanList tr").length>0){
|
|
|
|
+ top.layer.msg('仅可添加一名委托方联系人!', {icon: 0});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
var urls = url+"&index="+frameIndex;
|
|
var urls = url+"&index="+frameIndex;
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
@@ -513,9 +547,9 @@
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
<form:input path="projectId" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
<form:input path="projectId" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
- <span class="input-group-btn">
|
|
|
|
|
|
+ <%--<span class="input-group-btn">
|
|
<label class="form-status"><c:choose><c:when test="${not empty ruralProjectRecords.projectStatus}">${fns:getDictLabel(ruralProjectRecords.projectStatus, 'audit_state', '')}</c:when><c:otherwise>新添</c:otherwise></c:choose></label>
|
|
<label class="form-status"><c:choose><c:when test="${not empty ruralProjectRecords.projectStatus}">${fns:getDictLabel(ruralProjectRecords.projectStatus, 'audit_state', '')}</c:when><c:otherwise>新添</c:otherwise></c:choose></label>
|
|
- </span>
|
|
|
|
|
|
+ </span>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -575,17 +609,35 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">创建人:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="createBy.name" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
|
+ <form:hidden path="createBy.id" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
<label class="layui-form-label"><span class="require-item">*</span>项目负责人:</label>
|
|
<label class="layui-form-label"><span class="require-item">*</span>项目负责人:</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
- <sys:treeselectt id="master" name="projectLeaders" value="${ruralProjectRecords.leaderIds}" labelName="leaderNameStr" labelValue="${ruralProjectRecords.leaderNameStr}"
|
|
|
|
- title="用户" url="/sys/office/treeDataAll?type=3" checked="true" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
|
|
+ <sys:treeselect id="master" name="projectLeaders" value="${ruralProjectRecords.leaderIds}" labelName="leaderNameStr" labelValue="${ruralProjectRecords.leaderNameStr}"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
- <label class="layui-form-label">创建人:</label>
|
|
|
|
|
|
+ <label class="layui-form-label">所属部门:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
- <form:input path="createBy.name" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
|
- <form:hidden path="createBy.id" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
|
|
|
+ <form:input path="officeName" htmlEscape="false" id="officeName" class="form-control layui-input" readonly="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label double-line"><span class="require-item">*</span>工作开始日期:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input id="startDate" name="startDate" placeholder="开始时间" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group required"
|
|
|
|
+ value="<fmt:formatDate value="${ruralProjectRecords.startDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </input>
|
|
|
|
+ <span class="group-sep">—</span>
|
|
|
|
+ <input id="endingDate" name="endingDate" placeholder="结束时间" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group required"
|
|
|
|
+ value="<fmt:formatDate value="${ruralProjectRecords.endingDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
|
+ </input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
@@ -616,9 +668,9 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
- <label class="layui-form-label double-line"><span class="require-item">*</span>建筑面积或规模:</label>
|
|
|
|
|
|
+ <label class="layui-form-label double-line">建筑面积或规模:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
- <form:input path="buildingScale" htmlEscape="false" class="form-control layui-input required number" onchange="getFee()"/>
|
|
|
|
|
|
+ <form:input path="buildingScale" htmlEscape="false" class="form-control layui-input number" onchange="getFee()"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
@@ -688,13 +740,13 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7 with-textarea">
|
|
<div class="layui-item layui-col-sm6 lw7 with-textarea">
|
|
- <label class="layui-form-label"><span class="require-item">*</span>工程概况:</label>
|
|
|
|
|
|
+ <label class="layui-form-label">工程概况:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
- <form:textarea path="projectDesc" htmlEscape="false" rows="4" maxlength="255" class="form-control required"/>
|
|
|
|
|
|
+ <form:textarea path="projectDesc" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7 with-textarea">
|
|
<div class="layui-item layui-col-sm6 lw7 with-textarea">
|
|
- <label class="layui-form-label ">特殊要求:</label>
|
|
|
|
|
|
+ <label class="layui-form-label ">备注:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
</div>
|
|
</div>
|
|
@@ -843,7 +895,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
- <div class="form-group-label"><h2><span class="require-item">*</span>项目计划附件信息</h2></div>
|
|
|
|
|
|
+ <div class="form-group-label"><h2>项目计划附件信息</h2></div>
|
|
<div class="layui-item nav-btns">
|
|
<div class="layui-item nav-btns">
|
|
<a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件" onclick="addFile()"><i class="fa fa-plus"></i> 添加附件</a>
|
|
<a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件" onclick="addFile()"><i class="fa fa-plus"></i> 添加附件</a>
|
|
<a class="nav-btn nav-btn-export" title="下载模板" onclick="window.location.href='${ctx}/ruralProject/ruralCostProjectRecords/downloadTemplate';"><i class="fa fa-download"></i> 下载模板</a>
|
|
<a class="nav-btn nav-btn-export" title="下载模板" onclick="window.location.href='${ctx}/ruralProject/ruralCostProjectRecords/downloadTemplate';"><i class="fa fa-download"></i> 下载模板</a>
|