bug修改。
This commit is contained in:
parent
dd41e1c08e
commit
7c40de8b2a
@ -32,6 +32,7 @@ public class ExamApplyBO {
|
|||||||
private String nextCommitTime;
|
private String nextCommitTime;
|
||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getExamApplyId() {
|
public String getExamApplyId() {
|
||||||
return examApplyId;
|
return examApplyId;
|
||||||
@ -192,4 +193,12 @@ public class ExamApplyBO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ public class ExamCheckBO {
|
|||||||
private String nextCommitTime;
|
private String nextCommitTime;
|
||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getExamCheckId() {
|
public String getExamCheckId() {
|
||||||
return examCheckId == null ? "" : examCheckId.trim();
|
return examCheckId == null ? "" : examCheckId.trim();
|
||||||
@ -127,4 +128,12 @@ public class ExamCheckBO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,8 @@ public class ExamApplyDTO {
|
|||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
@ApiModelProperty(name = "orgId", value = "机构ID")
|
@ApiModelProperty(name = "orgId", value = "机构ID")
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
@ApiModelProperty(name = "nextNum", value = "下次提交审核时间数字")
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getExamApplyId() {
|
public String getExamApplyId() {
|
||||||
return examApplyId;
|
return examApplyId;
|
||||||
@ -255,4 +257,12 @@ public class ExamApplyDTO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,8 @@ public class ExamCheckDTO {
|
|||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
@ApiModelProperty(name = "orgId", value = "机构ID")
|
@ApiModelProperty(name = "orgId", value = "机构ID")
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
@ApiModelProperty(name = "nextNum", value = "下次提交审核时间数字")
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getExamCheckId() {
|
public String getExamCheckId() {
|
||||||
return examCheckId == null ? "" : examCheckId.trim();
|
return examCheckId == null ? "" : examCheckId.trim();
|
||||||
@ -105,4 +107,12 @@ public class ExamCheckDTO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ public class ExamApplyPO {
|
|||||||
private String nextCommitTime;
|
private String nextCommitTime;
|
||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getExamApplyId() {
|
public String getExamApplyId() {
|
||||||
return examApplyId;
|
return examApplyId;
|
||||||
@ -190,4 +191,12 @@ public class ExamApplyPO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ public class ExamCheckPO {
|
|||||||
private String nextCommitTime;
|
private String nextCommitTime;
|
||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getExamCheckId() {
|
public String getExamCheckId() {
|
||||||
return examCheckId == null ? "" : examCheckId.trim();
|
return examCheckId == null ? "" : examCheckId.trim();
|
||||||
@ -127,4 +128,12 @@ public class ExamCheckPO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,8 @@ public class ExamApplyVO {
|
|||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
@ApiModelProperty(name = "orgId", value = "机构ID")
|
@ApiModelProperty(name = "orgId", value = "机构ID")
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
@ApiModelProperty(name = "nextNum", value = "下次提交审核时间数字")
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getExamApplyId() {
|
public String getExamApplyId() {
|
||||||
return examApplyId;
|
return examApplyId;
|
||||||
@ -236,4 +238,12 @@ public class ExamApplyVO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,8 @@ public class ExamCheckVO {
|
|||||||
private String workTypeId;
|
private String workTypeId;
|
||||||
@ApiModelProperty(name = "orgId", value = "机构ID")
|
@ApiModelProperty(name = "orgId", value = "机构ID")
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
@ApiModelProperty(name = "nextNum", value = "下次提交审核时间数字")
|
||||||
|
private Integer nextNum;
|
||||||
|
|
||||||
public String getPlanId() {
|
public String getPlanId() {
|
||||||
return planId == null ? "" : planId.trim();
|
return planId == null ? "" : planId.trim();
|
||||||
@ -87,4 +89,12 @@ public class ExamCheckVO {
|
|||||||
public void setOrgId(String orgId) {
|
public void setOrgId(String orgId) {
|
||||||
this.orgId = orgId;
|
this.orgId = orgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getNextNum() {
|
||||||
|
return nextNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextNum(Integer nextNum) {
|
||||||
|
this.nextNum = nextNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
<result column="next_commit_time" property="nextCommitTime"/>
|
<result column="next_commit_time" property="nextCommitTime"/>
|
||||||
<result column="work_type_id" property="workTypeId"/>
|
<result column="work_type_id" property="workTypeId"/>
|
||||||
<result column="org_id" property="orgId"/>
|
<result column="org_id" property="orgId"/>
|
||||||
|
<result column="next_num" property="nextNum"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="examApplyBO" type="cn.com.tenlion.pojo.bos.examapply.ExamApplyBO">
|
<resultMap id="examApplyBO" type="cn.com.tenlion.pojo.bos.examapply.ExamApplyBO">
|
||||||
@ -46,6 +47,7 @@
|
|||||||
<result column="next_commit_time" property="nextCommitTime"/>
|
<result column="next_commit_time" property="nextCommitTime"/>
|
||||||
<result column="work_type_id" property="workTypeId"/>
|
<result column="work_type_id" property="workTypeId"/>
|
||||||
<result column="org_id" property="orgId"/>
|
<result column="org_id" property="orgId"/>
|
||||||
|
<result column="next_num" property="nextNum"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="examApplyPO" type="cn.com.tenlion.pojo.pos.examapply.ExamApplyPO">
|
<resultMap id="examApplyPO" type="cn.com.tenlion.pojo.pos.examapply.ExamApplyPO">
|
||||||
@ -69,6 +71,7 @@
|
|||||||
<result column="next_commit_time" property="nextCommitTime"/>
|
<result column="next_commit_time" property="nextCommitTime"/>
|
||||||
<result column="work_type_id" property="workTypeId"/>
|
<result column="work_type_id" property="workTypeId"/>
|
||||||
<result column="org_id" property="orgId"/>
|
<result column="org_id" property="orgId"/>
|
||||||
|
<result column="next_num" property="nextNum"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 新增应急管理局-考试申请表-renpc -->
|
<!-- 新增应急管理局-考试申请表-renpc -->
|
||||||
@ -91,6 +94,7 @@
|
|||||||
next_commit_time,
|
next_commit_time,
|
||||||
work_type_id,
|
work_type_id,
|
||||||
org_id,
|
org_id,
|
||||||
|
next_num,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
creator,
|
creator,
|
||||||
gmt_modified,
|
gmt_modified,
|
||||||
@ -114,6 +118,7 @@
|
|||||||
#{nextCommitTime},
|
#{nextCommitTime},
|
||||||
#{workTypeId},
|
#{workTypeId},
|
||||||
#{orgId},
|
#{orgId},
|
||||||
|
#{nextNum},
|
||||||
#{gmtCreate},
|
#{gmtCreate},
|
||||||
#{creator},
|
#{creator},
|
||||||
#{gmtModified},
|
#{gmtModified},
|
||||||
@ -209,6 +214,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="orgId != null and orgId != ''">
|
<if test="orgId != null and orgId != ''">
|
||||||
org_id = #{orgId},
|
org_id = #{orgId},
|
||||||
|
</if>
|
||||||
|
<if test="nextNum != null and nextNum != ''">
|
||||||
|
next_num = #{nextNum},
|
||||||
</if>
|
</if>
|
||||||
gmt_modified = #{gmtModified},
|
gmt_modified = #{gmtModified},
|
||||||
modifier = #{modifier},
|
modifier = #{modifier},
|
||||||
@ -245,6 +253,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.exam_apply_id
|
t1.exam_apply_id
|
||||||
FROM
|
FROM
|
||||||
management_exam_apply t1
|
management_exam_apply t1
|
||||||
@ -281,6 +290,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.exam_apply_num
|
t1.exam_apply_num
|
||||||
FROM
|
FROM
|
||||||
management_exam_apply t1
|
management_exam_apply t1
|
||||||
@ -314,6 +324,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.exam_apply_num
|
t1.exam_apply_num
|
||||||
FROM
|
FROM
|
||||||
management_exam_apply t1
|
management_exam_apply t1
|
||||||
@ -348,6 +359,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
1
|
1
|
||||||
FROM
|
FROM
|
||||||
management_exam_apply t1
|
management_exam_apply t1
|
||||||
@ -401,6 +413,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.exam_apply_num
|
t1.exam_apply_num
|
||||||
FROM
|
FROM
|
||||||
management_exam_apply t1
|
management_exam_apply t1
|
||||||
@ -451,6 +464,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.exam_apply_num
|
t1.exam_apply_num
|
||||||
FROM
|
FROM
|
||||||
management_exam_apply t1
|
management_exam_apply t1
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<result column="next_commit_time" property="nextCommitTime"/>
|
<result column="next_commit_time" property="nextCommitTime"/>
|
||||||
<result column="work_type_id" property="workTypeId"/>
|
<result column="work_type_id" property="workTypeId"/>
|
||||||
<result column="org_id" property="orgId"/>
|
<result column="org_id" property="orgId"/>
|
||||||
|
<result column="next_num" property="nextNum"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="examCheckBO" type="cn.com.tenlion.pojo.bos.examcheck.ExamCheckBO">
|
<resultMap id="examCheckBO" type="cn.com.tenlion.pojo.bos.examcheck.ExamCheckBO">
|
||||||
@ -27,6 +28,7 @@
|
|||||||
<result column="next_commit_time" property="nextCommitTime"/>
|
<result column="next_commit_time" property="nextCommitTime"/>
|
||||||
<result column="work_type_id" property="workTypeId"/>
|
<result column="work_type_id" property="workTypeId"/>
|
||||||
<result column="org_id" property="orgId"/>
|
<result column="org_id" property="orgId"/>
|
||||||
|
<result column="next_num" property="nextNum"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="examCheckPO" type="cn.com.tenlion.pojo.pos.examcheck.ExamCheckPO">
|
<resultMap id="examCheckPO" type="cn.com.tenlion.pojo.pos.examcheck.ExamCheckPO">
|
||||||
@ -43,6 +45,7 @@
|
|||||||
<result column="next_commit_time" property="nextCommitTime"/>
|
<result column="next_commit_time" property="nextCommitTime"/>
|
||||||
<result column="work_type_id" property="workTypeId"/>
|
<result column="work_type_id" property="workTypeId"/>
|
||||||
<result column="org_id" property="orgId"/>
|
<result column="org_id" property="orgId"/>
|
||||||
|
<result column="next_num" property="nextNum"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 新增 -->
|
<!-- 新增 -->
|
||||||
@ -56,6 +59,7 @@
|
|||||||
next_commit_time,
|
next_commit_time,
|
||||||
work_type_id,
|
work_type_id,
|
||||||
org_id,
|
org_id,
|
||||||
|
next_num,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
creator,
|
creator,
|
||||||
gmt_modified,
|
gmt_modified,
|
||||||
@ -70,6 +74,7 @@
|
|||||||
#{nextCommitTime},
|
#{nextCommitTime},
|
||||||
#{workTypeId},
|
#{workTypeId},
|
||||||
#{orgId},
|
#{orgId},
|
||||||
|
#{nextNum},
|
||||||
#{gmtCreate},
|
#{gmtCreate},
|
||||||
#{creator},
|
#{creator},
|
||||||
#{gmtModified},
|
#{gmtModified},
|
||||||
@ -129,6 +134,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="orgId != null and orgId != ''">
|
<if test="orgId != null and orgId != ''">
|
||||||
org_id = #{orgId},
|
org_id = #{orgId},
|
||||||
|
</if>
|
||||||
|
<if test="nextNum != null and nextNum != ''">
|
||||||
|
next_num = #{nextNum},
|
||||||
</if>
|
</if>
|
||||||
gmt_modified = #{gmtModified},
|
gmt_modified = #{gmtModified},
|
||||||
modifier = #{modifier},
|
modifier = #{modifier},
|
||||||
@ -147,6 +155,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.exam_check_id
|
t1.exam_check_id
|
||||||
FROM
|
FROM
|
||||||
management_exam_check t1
|
management_exam_check t1
|
||||||
@ -177,6 +186,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.gmt_create,
|
t1.gmt_create,
|
||||||
t1.creator,
|
t1.creator,
|
||||||
t1.gmt_modified,
|
t1.gmt_modified,
|
||||||
@ -203,6 +213,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.gmt_create,
|
t1.gmt_create,
|
||||||
t1.creator,
|
t1.creator,
|
||||||
t1.gmt_modified,
|
t1.gmt_modified,
|
||||||
@ -229,6 +240,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
1
|
1
|
||||||
FROM
|
FROM
|
||||||
management_exam_check t1
|
management_exam_check t1
|
||||||
@ -273,6 +285,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.gmt_create,
|
t1.gmt_create,
|
||||||
t1.creator,
|
t1.creator,
|
||||||
t1.gmt_modified,
|
t1.gmt_modified,
|
||||||
@ -314,12 +327,13 @@
|
|||||||
t1.reason,
|
t1.reason,
|
||||||
t1.exam_apply_id,
|
t1.exam_apply_id,
|
||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
|
t1.work_type_id,
|
||||||
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
t1.gmt_create,
|
t1.gmt_create,
|
||||||
t1.creator,
|
t1.creator,
|
||||||
t1.gmt_modified,
|
t1.gmt_modified,
|
||||||
t1.modifier,
|
t1.modifier,
|
||||||
t1.work_type_id,
|
|
||||||
t1.org_id,
|
|
||||||
t1.is_delete
|
t1.is_delete
|
||||||
FROM
|
FROM
|
||||||
management_exam_check t1
|
management_exam_check t1
|
||||||
@ -380,6 +394,7 @@
|
|||||||
t1.next_commit_time,
|
t1.next_commit_time,
|
||||||
t1.work_type_id,
|
t1.work_type_id,
|
||||||
t1.org_id,
|
t1.org_id,
|
||||||
|
t1.next_num,
|
||||||
1
|
1
|
||||||
FROM
|
FROM
|
||||||
management_exam_check t1
|
management_exam_check t1
|
||||||
|
@ -131,7 +131,7 @@
|
|||||||
nextTime.setDate(nextTime.getDate() + $('#nextCommitTime').val());
|
nextTime.setDate(nextTime.getDate() + $('#nextCommitTime').val());
|
||||||
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
|
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
|
||||||
formData.field.checkStatus = '2';
|
formData.field.checkStatus = '2';
|
||||||
top.restAjax.put(top.restAjax.path('api/examapply/update-more/{examCheckId}', [ids]), formData.field, null, function(code, data) {
|
top.restAjax.put(top.restAjax.path('api/examapply/update-more/{examApplyId}', [ids]), formData.field, null, function(code, data) {
|
||||||
if('200' == code) {
|
if('200' == code) {
|
||||||
top.dialog.msg('退回成功');
|
top.dialog.msg('退回成功');
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
@ -91,6 +91,12 @@
|
|||||||
<input type="radio" lay-filter="checkStatus" name="checkStatus" value="2" title="退回">
|
<input type="radio" lay-filter="checkStatus" name="checkStatus" value="2" title="退回">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item" id="nextTimeDiv">
|
||||||
|
<label class="layui-form-label" style="width: 135px;">下次提交审核时间</label>
|
||||||
|
<div class="layui-input-block" style="margin-left: 165px;">
|
||||||
|
<input type="number" id="nextNum" name="nextNum" lay-verify="inputRule" class="layui-input" value="" placeholder="请输入下次提交审核时间(单位:天)" maxlength="255">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item layui-form-text" style="display: none;" id="reasonDiv">
|
<div class="layui-form-item layui-form-text" style="display: none;" id="reasonDiv">
|
||||||
<label class="layui-form-label">审核失败原因</label>
|
<label class="layui-form-label">审核失败原因</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -134,8 +140,10 @@
|
|||||||
var val = data.value;
|
var val = data.value;
|
||||||
if (2 == val) {
|
if (2 == val) {
|
||||||
$('#reasonDiv').show();
|
$('#reasonDiv').show();
|
||||||
|
$('#nextTimeDiv').show();
|
||||||
} else {
|
} else {
|
||||||
$('#reasonDiv').hide();
|
$('#reasonDiv').hide();
|
||||||
|
$('#nextTimeDiv').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -189,6 +197,7 @@
|
|||||||
}
|
}
|
||||||
if ('3' == data.checkStatus) {
|
if ('3' == data.checkStatus) {
|
||||||
$('#reasonDiv').show();
|
$('#reasonDiv').show();
|
||||||
|
$('#nextTimeDiv').show();
|
||||||
}
|
}
|
||||||
if (null == data.checkStatus || '' == data.checkStatus || typeof (data.checkStatus) == 'undefined') {
|
if (null == data.checkStatus || '' == data.checkStatus || typeof (data.checkStatus) == 'undefined') {
|
||||||
$('#subBtn').show();
|
$('#subBtn').show();
|
||||||
@ -253,19 +262,68 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Date.prototype.format = function(fmt) {
|
||||||
|
var o = {
|
||||||
|
"M+" : this.getMonth()+1,
|
||||||
|
"d+" : this.getDate(),
|
||||||
|
"h+" : this.getHours(),
|
||||||
|
"m+" : this.getMinutes(),
|
||||||
|
"s+" : this.getSeconds(),
|
||||||
|
"q+" : Math.floor((this.getMonth()+3)/3),
|
||||||
|
"S" : this.getMilliseconds()
|
||||||
|
};
|
||||||
|
if(/(y+)/.test(fmt)) {
|
||||||
|
fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
|
||||||
|
};
|
||||||
|
for(var k in o) {
|
||||||
|
if(new RegExp("("+ k +")").test(fmt)){
|
||||||
|
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return fmt;
|
||||||
|
};
|
||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
form.on('submit(submitForm)', function(formData) {
|
||||||
layer.confirm('审核一旦通过,将无法进行修改', {
|
layer.confirm('审核一旦通过,将无法进行修改', {
|
||||||
btn: ['确定','取消'] //按钮
|
btn: ['确定','取消'] //按钮
|
||||||
}, function(){
|
}, function(){
|
||||||
if(3 == formData.field.checkStatus) {
|
if(2 == formData.field.checkStatus) {
|
||||||
if(null == formData.field.reason || '' == formData.field.reason || typeof(formData.field.reason) == "undefined") {
|
if(null == formData.field.reason || '' == formData.field.reason || typeof(formData.field.reason) == "undefined") {
|
||||||
top.dialog.msg('退回原因必填');
|
top.dialog.msg('退回原因必填');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if(null == formData.field.nextNum || '' == formData.field.nextNum || typeof(formData.field.nextNum) == "undefined") {
|
||||||
|
top.dialog.msg('下次提交审核时间必填');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var nextTime = new Date();
|
||||||
|
nextTime.setDate(nextTime.getDate() + $('#nextNum').val());
|
||||||
|
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
|
||||||
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||||
|
top.dialog.close(index);
|
||||||
|
var loadLayerIndex;
|
||||||
|
top.restAjax.put(top.restAjax.path('api/examapply/update/{examApplyId}', [examApplyId]), formData.field, null, function(code, data) {
|
||||||
|
if('200' == code) {
|
||||||
|
top.dialog.msg('退回成功');
|
||||||
|
closeBox();
|
||||||
|
}else {
|
||||||
|
top.dialog.msg('退回失败');
|
||||||
|
closeBox();
|
||||||
|
}
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
}, function() {
|
||||||
|
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
|
||||||
|
}, function() {
|
||||||
|
top.dialog.close(loadLayerIndex);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
}else {
|
||||||
|
sentExamMsg(classPlanId);
|
||||||
}
|
}
|
||||||
sentExamMsg(classPlanId);
|
|
||||||
}, function(){
|
}, function(){
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@ -284,7 +342,6 @@
|
|||||||
anim: 2,
|
anim: 2,
|
||||||
content: top.restAjax.path('route/examination/distribution/update.html?planId={planId}', [planIds]),
|
content: top.restAjax.path('route/examination/distribution/update.html?planId={planId}', [planIds]),
|
||||||
end: function() {
|
end: function() {
|
||||||
reloadTable();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -87,10 +87,16 @@
|
|||||||
<div class="layui-form-item" pane>
|
<div class="layui-form-item" pane>
|
||||||
<label class="layui-form-label">审核状态</label>
|
<label class="layui-form-label">审核状态</label>
|
||||||
<div class="layui-input-block layui-form">
|
<div class="layui-input-block layui-form">
|
||||||
<input type="radio" lay-filter="checkStatus" name="checkStatus" value="2" title="受理" checked>
|
<input type="radio" lay-filter="checkStatus" name="checkStatus" value="2" title="审核通过" checked>
|
||||||
<input type="radio" lay-filter="checkStatus" name="checkStatus" value="3" title="退回">
|
<input type="radio" lay-filter="checkStatus" name="checkStatus" value="3" title="退回">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item" id="nextTimeDiv">
|
||||||
|
<label class="layui-form-label" style="width: 135px;">下次提交审核时间</label>
|
||||||
|
<div class="layui-input-block" style="margin-left: 165px;">
|
||||||
|
<input type="number" id="nextCommitTime" name="nextCommitTime" lay-verify="inputRule" class="layui-input" value="" placeholder="请输入下次提交审核时间(单位:天)" maxlength="255">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item layui-form-text" style="display: none;" id="reasonDiv">
|
<div class="layui-form-item layui-form-text" style="display: none;" id="reasonDiv">
|
||||||
<label class="layui-form-label">审核失败原因</label>
|
<label class="layui-form-label">审核失败原因</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -134,8 +140,10 @@
|
|||||||
var val = data.value;
|
var val = data.value;
|
||||||
if (3 == val) {
|
if (3 == val) {
|
||||||
$('#reasonDiv').show();
|
$('#reasonDiv').show();
|
||||||
|
$('#nextTimeDiv').show();
|
||||||
} else {
|
} else {
|
||||||
$('#reasonDiv').hide();
|
$('#reasonDiv').hide();
|
||||||
|
$('#nextTimeDiv').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -189,6 +197,7 @@
|
|||||||
}
|
}
|
||||||
if ('3' == data.checkStatus) {
|
if ('3' == data.checkStatus) {
|
||||||
$('#reasonDiv').show();
|
$('#reasonDiv').show();
|
||||||
|
$('#nextTimeDiv').show();
|
||||||
}
|
}
|
||||||
if (null == data.checkStatus || '' == data.checkStatus || typeof (data.checkStatus) == 'undefined') {
|
if (null == data.checkStatus || '' == data.checkStatus || typeof (data.checkStatus) == 'undefined') {
|
||||||
$('#subBtn').show();
|
$('#subBtn').show();
|
||||||
@ -253,6 +262,27 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Date.prototype.format = function(fmt) {
|
||||||
|
var o = {
|
||||||
|
"M+" : this.getMonth()+1,
|
||||||
|
"d+" : this.getDate(),
|
||||||
|
"h+" : this.getHours(),
|
||||||
|
"m+" : this.getMinutes(),
|
||||||
|
"s+" : this.getSeconds(),
|
||||||
|
"q+" : Math.floor((this.getMonth()+3)/3),
|
||||||
|
"S" : this.getMilliseconds()
|
||||||
|
};
|
||||||
|
if(/(y+)/.test(fmt)) {
|
||||||
|
fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
|
||||||
|
};
|
||||||
|
for(var k in o) {
|
||||||
|
if(new RegExp("("+ k +")").test(fmt)){
|
||||||
|
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return fmt;
|
||||||
|
};
|
||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
form.on('submit(submitForm)', function(formData) {
|
||||||
@ -263,22 +293,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
formData.field.planId = classPlanId;
|
formData.field.planId = classPlanId;
|
||||||
|
var nextTime = new Date();
|
||||||
|
nextTime.setDate(nextTime.getDate() + $('#nextNum').val());
|
||||||
|
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
|
||||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
top.restAjax.put(top.restAjax.path('api/examcheck/update/{examCheckId}', [examCheckId]), formData.field, null, function(code, data) {
|
top.restAjax.put(top.restAjax.path('api/examcheck/update/{examCheckId}', [examCheckId]), formData.field, null, function(code, data) {
|
||||||
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
|
if('200' == code) {
|
||||||
time: 0,
|
top.dialog.msg('退回成功');
|
||||||
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
|
closeBox();
|
||||||
shade: 0.3,
|
}else {
|
||||||
yes: function(index) {
|
top.dialog.msg('退回失败');
|
||||||
top.dialog.close(index);
|
closeBox();
|
||||||
window.location.reload();
|
}
|
||||||
},
|
|
||||||
btn2: function() {
|
|
||||||
closeBox();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user