diff --git a/WebContent/WEB-INF/views/rm/UnFinishContentList.jsp b/WebContent/WEB-INF/views/rm/UnFinishContentList.jsp index 3f6f4a0..56bb216 100644 --- a/WebContent/WEB-INF/views/rm/UnFinishContentList.jsp +++ b/WebContent/WEB-INF/views/rm/UnFinishContentList.jsp @@ -6,7 +6,8 @@ - + + ${(page.pageNum-1)*page.pageSize+index.index+1} <%-- ${ma.unitName} diff --git a/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp b/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp index a4e9c79..31017c9 100644 --- a/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp +++ b/WebContent/WEB-INF/views/rm/unFinishWorkList.jsp @@ -3,159 +3,171 @@ -<%@include file="../baseset.jsp" %> -<%@include file="../systemset.jsp" %> - - - + <%@include file="../baseset.jsp" %> + <%@include file="../systemset.jsp" %> + + +
-
-
-
-
-
+
+
+ +
+
  任务状态: - - - -
+ + +
- - - - - - - - - - - - - - - - - -
序号任务名称创建时间任务单号创建人任务情况
-
-
-
-
- -
-
    -
    -
    +
    + + + + + + + + + + + + + + + + + +
    序号任务名称创建时间任务单号创建人任务情况
    +
    +
    +
    +
    + +
    +
      +
      +
      <%@include file="unFinishWorkListDetails.jsp" %> - <%@include file="../dialog.jsp" %> -
      + <%@include file="../dialog.jsp" %>
      +
      + $("#keyWord").keydown(function(e) { + keycode = e.which || e.keyCode; + if (keycode == 13) { + search(); + } + }); + }); + + function search(){ + $("#search").trigger("click"); + } + + function getbaseList(init) { + var isFinish =$("#isFinish").val(); + var data = {pageNum:init}; + data = {pageNum:init,pageSize:10 }; + var keyWord = $("#keyWord").val(); + console.log("keyw=",keyWord); + if(JY.Object.notNull(keyWord)){ + data.keyWord = keyWord; + } + data = Object.assign(data,obj); + JY.Model.loading(); + $.ajax({ + type:"POST", + url:bonuspath +'/backstage/rm/taskRecord/findUnFinishContent?isFinish='+isFinish, + data: JSON.stringify(data ), + dataType:"html", + contentType:"application/json", + success:function(data){ + $("#baseTable tbody").html(data); + JY.Model.loadingClose(); + }, + error:function(data){ + console.log("ajax请求错误!"); + } + }) + } + function cleanForm() { + $("#auForm input[id$='unitName']").val(""); + $("#auForm input[id$='projectName']").val(""); + $("#auForm input[id$='taskName']").val(""); + $("#auForm input[id$='agreementCode']").val(""); + + $("#auForm input[id$='personName']").val(""); + $("#auForm input[id$='createTime']").val(""); + $("#auForm input[id$='testLoad']").val(""); + $("#auForm input[id$='holdingTime']").val(""); + $("#auForm input[id$='operaTionName']").val(""); + } + function assignment(data){ + $("#auForm input[id$='unitName']").val(data.unitName); + $("#auForm input[id$='projectName']").val(data.projectName); + $("#auForm input[id$='taskName']").val(data.taskName); + $("#auForm input[id$='agreementCode']").val(data.agreementCode); + + $("#auForm input[id$='personName']").val(data.personName); + $("#auForm input[id$='createTime']").val(data.createTime); + $("#auForm input[id$='testLoad']").val(data.testLoad); + $("#auForm input[id$='holdingTime']").val(data.holdingTime); + $("#auForm input[id$='operaTionName']").val(data.operaTionName); + } + \ No newline at end of file diff --git a/resources/mybatis/wf/TaskRecordMapper.xml b/resources/mybatis/wf/TaskRecordMapper.xml index cdf345b..45262c7 100644 --- a/resources/mybatis/wf/TaskRecordMapper.xml +++ b/resources/mybatis/wf/TaskRecordMapper.xml @@ -113,18 +113,17 @@ WHERE cpa.status = '1' - - AND cpa.status_type = '3' - - - AND cpa.status_type = '4' - - - AND 1 = 0 - + + + AND cpa.status_type = '4' + + + AND cpa.status_type = '3' + + + AND 1 = 0 + + AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%') @@ -151,24 +150,22 @@ car_plan_out cpo LEFT JOIN pm_user pu ON pu.id = cpo.creator LEFT JOIN car_plan_apply cpa ON cpo.apply_id = cpa.id - WHERE - 1 = 1 - - AND cpo.status = '0' - - - AND cpo.status = '1' - - - - AND 1 = 0 - - - AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%') - + + + + AND cpa.status_type = '0' + + + AND cpo.status = '1' + + + AND 1 = 0 + + + + AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%') + + ) ORDER BY id DESC