|
@@ -9,23 +9,23 @@
|
|
|
$("#correctDate").removeAttr("disabled");
|
|
|
if(validateForm.form()){
|
|
|
if(obj == 1){
|
|
|
- if(taskKey=='ywbfzr'){
|
|
|
- var correctDate = new Date($("#correctDate").val().replace(/-/g, "/"));
|
|
|
- var tryEndTime = new Date($("#tryEndTime").val().replace(/-/g, "/"));
|
|
|
- if($("#correctOpinion").val()=='1'){
|
|
|
-
|
|
|
- }else if($("#correctOpinion").val()=='2'){//提前
|
|
|
- if(correctDate.getTime()>tryEndTime.getTime()){
|
|
|
- parent.layer.msg("新试用期结束日期不能大于试用期结束日期!", {icon: 5});
|
|
|
- return false;
|
|
|
- }
|
|
|
- }else if($("#correctOpinion").val()=='3'){
|
|
|
- if(correctDate.getTime()<tryEndTime.getTime()){
|
|
|
- parent.layer.msg("新试用期结束日期不能小于试用期结束日期!", {icon: 5});
|
|
|
- return false;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(taskKey=='bmzr'){
|
|
|
+ // var correctDate = new Date($("#correctDate").val().replace(/-/g, "/"));
|
|
|
+ // var tryEndTime = new Date($("#tryEndTime").val().replace(/-/g, "/"));
|
|
|
+ // if($("#correctOpinion").val()=='1'){
|
|
|
+ //
|
|
|
+ // }else if($("#correctOpinion").val()=='2'){//提前
|
|
|
+ // if(correctDate.getTime()>tryEndTime.getTime()){
|
|
|
+ // parent.layer.msg("新试用期结束日期不能大于试用期结束日期!", {icon: 5});
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // }else if($("#correctOpinion").val()=='3'){
|
|
|
+ // if(correctDate.getTime()<tryEndTime.getTime()){
|
|
|
+ // parent.layer.msg("新试用期结束日期不能小于试用期结束日期!", {icon: 5});
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
$('#flag').val('yes');
|
|
|
}else{
|
|
@@ -63,10 +63,16 @@
|
|
|
});
|
|
|
defaultCorrectDate=$("#correctDate").val();
|
|
|
taskKey="${workRegularApply.act.taskDefKey}";
|
|
|
- if(taskKey=='ywbfzr'){
|
|
|
+ if(taskKey=='bmzr'){
|
|
|
var value=$("#correctOpinion").val();
|
|
|
getChange(value);
|
|
|
}
|
|
|
+
|
|
|
+ laydate.render({
|
|
|
+ elem: '#correctDate',
|
|
|
+ format: 'yyyy-MM-dd',
|
|
|
+ type : 'date'
|
|
|
+ });
|
|
|
});
|
|
|
function deleteRow(obj,index){
|
|
|
$(obj).parent().parent().remove();
|
|
@@ -133,6 +139,7 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function getMoney(value,j){
|
|
@@ -278,15 +285,7 @@
|
|
|
<div class="layui-item layui-col-sm12 with-textarea">
|
|
|
<label class="layui-form-label">个人总结:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <c:choose>
|
|
|
- <c:when test="${workRegularApply.act.taskDefKey eq 'zzr'}">
|
|
|
- <form:textarea path="summary" rows="7" value="${workRegularApply.summary}" maxlength="500" class="form-control "/>
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
<form:textarea path="summary" value="${workRegularApply.summary}" cssStyle="resize: none" readonly="true" htmlEscape="false" rows="6" maxlength="500" class="form-control "/>
|
|
|
- </c:otherwise>
|
|
|
- </c:choose>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -297,7 +296,7 @@
|
|
|
<label class="layui-form-label">部门评语:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<c:choose>
|
|
|
- <c:when test="${workRegularApply.act.taskDefKey eq 'ywbfzr'}">
|
|
|
+ <c:when test="${workRegularApply.act.taskDefKey eq 'bmzr'}">
|
|
|
<form:textarea path="comment" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
|
</c:when>
|
|
|
<c:otherwise>
|
|
@@ -308,103 +307,103 @@
|
|
|
</div>
|
|
|
|
|
|
<c:choose>
|
|
|
- <c:when test="${workRegularApply.act.taskDefKey eq 'ywbfzr'}">
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>转正意见:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <form:select path="correctOpinion" onchange="getChange(this.value)" class=" form-control simple-select">
|
|
|
- <form:option value="" label=""/>
|
|
|
- <form:options items="${fns:getDictList('correct_opinion')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>新职级:</label>
|
|
|
- <div class="layui-input-block with-icon">
|
|
|
- <div class="input-group">
|
|
|
- <sys:treeselectJob id="jobGrade" name="jobGrade.id" value="jobGrade.id" labelName="jobGrade.name" labelValue="${workRegularApply.jobGrade.name}"
|
|
|
- title="职级类型" url="/workjobgrade/workJobGrade/treeData" cssClass="form-control layui-input " allowClear="false" notAllowSelectParent="true"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label double-line"><span class="require-item">*</span>新试用期结束日期:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="correctDate" name="correctDate" type="text" class="laydate-icondate form-control required layer-date layui-input laydate-icon"
|
|
|
- value="<fmt:formatDate value="${workRegularApply.correctDate}" pattern="yyyy-MM-dd"/>" readonly="true"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <c:when test="${workRegularApply.act.taskDefKey eq 'bmzr'}">
|
|
|
+ <%--<div class="layui-item layui-col-sm6">--%>
|
|
|
+ <%--<label class="layui-form-label"><span class="require-item">*</span>转正意见:</label>--%>
|
|
|
+ <%--<div class="layui-input-block">--%>
|
|
|
+ <%--<form:select path="correctOpinion" class=" form-control simple-select">--%>
|
|
|
+ <%--<form:option value="" label=""/>--%>
|
|
|
+ <%--<form:options items="${fns:getDictList('correct_opinion')}" itemLabel="label" itemValue="value" htmlEscape="false"/>--%>
|
|
|
+ <%--</form:select>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--<div class="layui-item layui-col-sm6">--%>
|
|
|
+ <%--<label class="layui-form-label"><span class="require-item">*</span>新职级:</label>--%>
|
|
|
+ <%--<div class="layui-input-block with-icon">--%>
|
|
|
+ <%--<div class="input-group">--%>
|
|
|
+ <%--<sys:treeselectJob id="jobGrade" name="jobGrade.id" value="jobGrade.id" labelName="jobGrade.name" labelValue="${workRegularApply.jobGrade.name}"--%>
|
|
|
+ <%--title="职级类型" url="/workjobgrade/workJobGrade/treeData" cssClass="form-control layui-input " allowClear="false" notAllowSelectParent="true"/>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--<div class="layui-item layui-col-sm6">--%>
|
|
|
+ <%--<label class="layui-form-label double-line"><span class="require-item">*</span>新试用期结束日期:</label>--%>
|
|
|
+ <%--<div class="layui-input-block">--%>
|
|
|
+ <%--<input id="correctDate" name="correctDate" type="text" class="laydate-icondate form-control required layer-date layui-input laydate-icon"--%>
|
|
|
+ <%--value="<fmt:formatDate value="${workRegularApply.correctDate}" pattern="yyyy-MM-dd"/>" readonly="true"/>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
</c:when>
|
|
|
<c:otherwise>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>转正意见:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getDictLabel(workRegularApply.correctOpinion, 'correct_opinion', '')}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>新职级:</label>
|
|
|
- <div class="layui-input-block with-icon">
|
|
|
- <div class="input-group">
|
|
|
- <input id="jobGradeName" name="jobGrade.name" value="${workRegularApply.jobGrade.name}" readonly="true" htmlEscape="false" class="form-control layui-input"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label double-line"><span class="require-item">*</span>新试用期结束日期:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="" readonly="true" name="correctDate" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon"
|
|
|
- value="<fmt:formatDate value="${workRegularApply.correctDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <%--<div class="layui-item layui-col-sm6">--%>
|
|
|
+ <%--<label class="layui-form-label"><span class="require-item">*</span>转正意见:</label>--%>
|
|
|
+ <%--<div class="layui-input-block">--%>
|
|
|
+ <%--<input htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getDictLabel(workRegularApply.correctOpinion, 'correct_opinion', '')}"/>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--<div class="layui-item layui-col-sm6">--%>
|
|
|
+ <%--<label class="layui-form-label"><span class="require-item">*</span>新职级:</label>--%>
|
|
|
+ <%--<div class="layui-input-block with-icon">--%>
|
|
|
+ <%--<div class="input-group">--%>
|
|
|
+ <%--<input id="jobGradeName" name="jobGrade.name" value="${workRegularApply.jobGrade.name}" readonly="true" htmlEscape="false" class="form-control layui-input"/>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--<div class="layui-item layui-col-sm6">--%>
|
|
|
+ <%--<label class="layui-form-label double-line"><span class="require-item">*</span>新试用期结束日期:</label>--%>
|
|
|
+ <%--<div class="layui-input-block">--%>
|
|
|
+ <%--<input id="" readonly="true" name="correctDate" type="text" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon"--%>
|
|
|
+ <%--value="<fmt:formatDate value="${workRegularApply.correctDate}" pattern="yyyy-MM-dd"/>"/>--%>
|
|
|
+ <%--</div>--%>
|
|
|
+ <%--</div>--%>
|
|
|
</c:otherwise>
|
|
|
</c:choose>
|
|
|
|
|
|
<div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
- <table id="contentTable1" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th width="400px">鉴定内容</th>
|
|
|
- <th width="200px">评价得分</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="workRegularScoreList">
|
|
|
- <c:if test="${not empty workRegularApply.workRegularScoreList}">
|
|
|
- <c:forEach items="${workRegularApply.workRegularScoreList}" var="workRegularScore" varStatus="index">
|
|
|
- <tr id="workRegularScoreList${index.index}">
|
|
|
- <td class="hide">
|
|
|
- <input id="workRegularScoreList${index.index}_id" name="workRegularScoreList[${index.index}].id" type="hidden" value="${workRegularScore.id}"/>
|
|
|
- <input id="workRegularScoreList${index.index}_regularContentId" name="workRegularScoreList[${index.index}].regularContentId" type="hidden" value="${workRegularScore.regularContentId}"/>
|
|
|
- <input id="workRegularScoreList${index.index}_delFlag" name="workRegularScoreList[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="workRegularScoreList${index.index}_content" readonly="true" name="workRegularScoreList[${index.index}].content" type="text" value="${workRegularScore.content}" class="form-control "/>
|
|
|
- </td>
|
|
|
- <c:choose>
|
|
|
- <c:when test="${workRegularApply.act.taskDefKey eq 'ywbfzr'}">
|
|
|
- <td>
|
|
|
- <input id="workRegularScoreList${index.index}_score" onchange="getMoney(this.value,'1')" name="workRegularScoreList[${index.index}].score" type="text" value="${workRegularScore.score}" class="form-control number "/>
|
|
|
- </td>
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
- <td>
|
|
|
- <form:input path="workRegularScoreList[${index.index}].score" id="workRegularScoreList${index.index}_score" htmlEscape="false" readonly="true" onchange="getMoney(this.value,'1')" type="text" value="${workRegularScore.score}" class="form-control"/>
|
|
|
- </td>
|
|
|
- </c:otherwise>
|
|
|
- </c:choose>
|
|
|
+ <%--<table id="contentTable1" class="table table-bordered table-condensed can-edit no-bottom-margin">--%>
|
|
|
+ <%--<thead>--%>
|
|
|
+ <%--<tr>--%>
|
|
|
+ <%--<th width="400px">鉴定内容</th>--%>
|
|
|
+ <%--<th width="200px">评价得分</th>--%>
|
|
|
+ <%--</tr>--%>
|
|
|
+ <%--</thead>--%>
|
|
|
+ <%--<tbody id="workRegularScoreList">--%>
|
|
|
+ <%--<c:if test="${not empty workRegularApply.workRegularScoreList}">--%>
|
|
|
+ <%--<c:forEach items="${workRegularApply.workRegularScoreList}" var="workRegularScore" varStatus="index">--%>
|
|
|
+ <%--<tr id="workRegularScoreList${index.index}">--%>
|
|
|
+ <%--<td class="hide">--%>
|
|
|
+ <%--<input id="workRegularScoreList${index.index}_id" name="workRegularScoreList[${index.index}].id" type="hidden" value="${workRegularScore.id}"/>--%>
|
|
|
+ <%--<input id="workRegularScoreList${index.index}_regularContentId" name="workRegularScoreList[${index.index}].regularContentId" type="hidden" value="${workRegularScore.regularContentId}"/>--%>
|
|
|
+ <%--<input id="workRegularScoreList${index.index}_delFlag" name="workRegularScoreList[${index.index}].delFlag" type="hidden" value="0"/>--%>
|
|
|
+ <%--</td>--%>
|
|
|
+ <%--<td>--%>
|
|
|
+ <%--<input id="workRegularScoreList${index.index}_content" readonly="true" name="workRegularScoreList[${index.index}].content" type="text" value="${workRegularScore.content}" class="form-control "/>--%>
|
|
|
+ <%--</td>--%>
|
|
|
+ <%--<c:choose>--%>
|
|
|
+ <%--<c:when test="${workRegularApply.act.taskDefKey eq 'ywbfzr'}">--%>
|
|
|
+ <%--<td>--%>
|
|
|
+ <%--<input id="workRegularScoreList${index.index}_score" onchange="getMoney(this.value,'1')" name="workRegularScoreList[${index.index}].score" type="text" value="${workRegularScore.score}" class="form-control number "/>--%>
|
|
|
+ <%--</td>--%>
|
|
|
+ <%--</c:when>--%>
|
|
|
+ <%--<c:otherwise>--%>
|
|
|
+ <%--<td>--%>
|
|
|
+ <%--<form:input path="workRegularScoreList[${index.index}].score" id="workRegularScoreList${index.index}_score" htmlEscape="false" readonly="true" onchange="getMoney(this.value,'1')" type="text" value="${workRegularScore.score}" class="form-control"/>--%>
|
|
|
+ <%--</td>--%>
|
|
|
+ <%--</c:otherwise>--%>
|
|
|
+ <%--</c:choose>--%>
|
|
|
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- <tr >
|
|
|
- <td style="vertical-align:middle;text-align: center;"><label><font color="red">*</font>合计得分:</label></td>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="score" readonly="true" name="score" type="text" value="${workRegularApply.score}" class="form-control "/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:if>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <%--</tr>--%>
|
|
|
+ <%--</c:forEach>--%>
|
|
|
+ <%--<tr >--%>
|
|
|
+ <%--<td style="vertical-align:middle;text-align: center;"><label><font color="red">*</font>合计得分:</label></td>--%>
|
|
|
+ <%--</td>--%>
|
|
|
+ <%--<td>--%>
|
|
|
+ <%--<input id="score" readonly="true" name="score" type="text" value="${workRegularApply.score}" class="form-control "/>--%>
|
|
|
+ <%--</td>--%>
|
|
|
+ <%--</tr>--%>
|
|
|
+ <%--</c:if>--%>
|
|
|
+ <%--</tbody>--%>
|
|
|
+ <%--</table>--%>
|
|
|
|
|
|
</div>
|
|
|
</div>
|