Commit 237eef92 authored by dahai's avatar dahai

Merge remote-tracking branch 'origin/dev' into dev

parents 15a540ae 6b9136c1
...@@ -16,8 +16,17 @@ public class InfoManagementApi { ...@@ -16,8 +16,17 @@ public class InfoManagementApi {
private InfoManagementService infoManagementService; private InfoManagementService infoManagementService;
@RequestMapping("selectInfoManagement") @RequestMapping("selectInfoManagement")
public List<NewFilesEntity>selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate){ public List<NewFilesEntity>selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate){
List<NewFilesEntity> resultList = infoManagementService.selectInfoManagement(beginFileName, endFileName, gajgMc, beginDate, endDate); List<NewFilesEntity> resultList = infoManagementService.selectInfoManagement(beginFileName, endFileName, gajgMc, replaceDate(beginDate), replaceDate(endDate));
return resultList; return resultList;
} }
/**
* 去除字符串中中线
* @param str
* @return
*/
private String replaceDate(String str){
return str.replace("-","");
}
} }
package com.yxproject.start.api; package com.yxproject.start.api;
import com.yxproject.start.entity.GroupNoEntity; import com.yxproject.start.entity.*;
import com.yxproject.start.entity.PreproPersonEntity;
import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.entity.TaskEntity;
import com.yxproject.start.entity.TaskList.CountCountyEntity; import com.yxproject.start.entity.TaskList.CountCountyEntity;
import com.yxproject.start.entity.TaskList.CountGajgEntity; import com.yxproject.start.entity.TaskList.CountGajgEntity;
import com.yxproject.start.entity.TaskList.TaskListEntity; import com.yxproject.start.entity.TaskList.TaskListEntity;
...@@ -411,6 +408,16 @@ public class TaskListApi { ...@@ -411,6 +408,16 @@ public class TaskListApi {
} else return str; } else return str;
} }
/**
* 查询制证类型列表
*/
@RequestMapping("getTypeList")
public List<CardTypeDicEntity> getTypeList() {
List<CardTypeDicEntity> list = taskListService.getTypeList();
return list;
}
/** /**
* 去除字符串中中线 * 去除字符串中中线
* *
......
...@@ -14,14 +14,14 @@ public interface InfoManagementMapper { ...@@ -14,14 +14,14 @@ public interface InfoManagementMapper {
@Select("<script> " + @Select("<script> " +
"select * from new_files \n" + "select * from new_files \n" +
"where 1=1\n" + "where 1=1\n" +
"<if test='beginFileName != null '>" + "<if test='beginFileName != \"\" '>" +
"and (NEW_FILE_NAME between(#{beginFileName})and (#{endFileName}))\n" + "and (NEW_FILE_NAME between(#{beginFileName})and (#{endFileName}))\n" +
"</if>" + "</if>" +
"<if test='gajgMc != null '>" + "<if test='gajgMc != \"\" '>" +
"and DWMC=#{gajgMc}\n" + "and DWMC=#{gajgMc}\n" +
"</if>" + "</if>" +
"<if test='beginDate != null '>" + "<if test='beginDate != \"\" '>" +
"and (CREATE_DATE between(#{beginDate})and(#{endDate}))"+ "and (subStr(CREATE_DATE,0,8) between(#{beginDate})and(#{endDate}))"+
"</if>" + "</if>" +
"</script>") "</script>")
public List<NewFilesEntity> selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate); public List<NewFilesEntity> selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate);
......
...@@ -10,9 +10,12 @@ import java.util.Map; ...@@ -10,9 +10,12 @@ import java.util.Map;
public interface ReceiptMapper { public interface ReceiptMapper {
//根据身份证号查询交接单信息 //根据身份证号查询交接单信息
@Select("select prod_group_t.group_no,prod_card_t.accept_no,subStr(prod_card_t.UPLOAD_NO,0,9) as GAJG_DM,prod_group_t.valid_count\n" + @Select("select prod_group_t.group_no,prod_card_t.accept_no,subStr(prod_card_t.UPLOAD_NO,0,9) as GAJG_DM,prod_group_t.valid_count," +
"task.CARD_TYPE,task.OLD_CARD_TYPE\n" +
"from prod_card_t@PROD_LINK\n" + "from prod_card_t@PROD_LINK\n" +
"left join prod_group_t@PROD_LINK on subStr(prod_card_t.accept_no,0,8)= prod_group_t.group_no\n" + "left join prod_group_t@PROD_LINK on subStr(prod_card_t.accept_no,0,8)= prod_group_t.group_no\n" +
"left join group_no on prod_group_t.group_no = group_no.group_no"+
"left join task on task.task_id =group_no.task_id"+
"where prod_card_t.id_no=#{id}") "where prod_card_t.id_no=#{id}")
public Map<String,Object> selectReceiptListDate(String id); public Map<String,Object> selectReceiptListDate(String id);
...@@ -21,8 +24,8 @@ public interface ReceiptMapper { ...@@ -21,8 +24,8 @@ public interface ReceiptMapper {
public int selectByGroupNo(String groupNo); public int selectByGroupNo(String groupNo);
//生成交接单 //生成交接单
@Insert("INSERT INTO RECEIPT_LIST(QR_CODE,POLICE_CODE,FINISH_COUNT,STATE)VALUES(#{GROUP_NO},#{GAJG_DM},#{count},#{state})") @Insert("INSERT INTO RECEIPT_LIST(QR_CODE,POLICE_CODE,FINISH_COUNT,STATE,CARD_TYPE_ID,OLD_CARD_TYPE_ID)VALUES(#{GROUP_NO},#{GAJG_DM},#{count},#{state},#{cardType},#{oldCardType})")
public boolean createReceiptList(@Param("GROUP_NO")String GROUP_NO,@Param("GAJG_DM")String GAJG_DM,@Param("count")int count,@Param("state")int state); public boolean createReceiptList(@Param("GROUP_NO")String GROUP_NO,@Param("GAJG_DM")String GAJG_DM,@Param("count")int count,@Param("state")int state,@Param("cardType")String cardType,@Param("oldCardType")String oldCardType);
...@@ -30,6 +33,7 @@ public interface ReceiptMapper { ...@@ -30,6 +33,7 @@ public interface ReceiptMapper {
@Select("select prod_card_t.upload_no," + @Select("select prod_card_t.upload_no," +
"PROD_CARD_T.ACCEPT_NO," + "PROD_CARD_T.ACCEPT_NO," +
"prod_card_t.name," + "prod_card_t.name," +
"prod_card_t.sex"+
"prod_card_t.id_no," + "prod_card_t.id_no," +
"subStr(prod_card_t.UPLOAD_NO,0,9) AS GAJG_DM," + "subStr(prod_card_t.UPLOAD_NO,0,9) AS GAJG_DM," +
"receipt_list.ID\n" + "receipt_list.ID\n" +
...@@ -39,9 +43,9 @@ public interface ReceiptMapper { ...@@ -39,9 +43,9 @@ public interface ReceiptMapper {
public Map<String,Object>selectDetailedData(String id); public Map<String,Object>selectDetailedData(String id);
//生成交接单详单 //生成交接单详单
@Insert("INSERT INTO DETAIL_RECEIPT_LIST (UPLOAD_NO,accept_no,name,card_id,SIGN_GOVT,RECEIPT_ID)" + @Insert("INSERT INTO DETAIL_RECEIPT_LIST (UPLOAD_NO,accept_no,name,card_id,POLICE_CODE,RECEIPT_ID)" +
"VALUES(#{UPLOAD_NO},#{ACCEPT_NO},#{NAME},#{CARD_ID},#{GAJG_DM},#{RECEIPT_ID})") "VALUES(#{UPLOAD_NO},#{ACCEPT_NO},#{NAME},#{CARD_ID},#{GAJG_DM},#{RECEIPT_ID})")
public boolean createDetailedList(@Param("UPLOAD_NO")String UPLOAD_NO,@Param("ACCEPT_NO")String ACCEPT_NO,@Param("NAME")String NAME,@Param("CARD_ID")String CARD_ID,@Param("GAJG_DM")String GAJG_DM,@Param("RECEIPT_ID")int RECEIPT_ID); public boolean createDetailedList(@Param("UPLOAD_NO")String UPLOAD_NO,@Param("ACCEPT_NO")String ACCEPT_NO,@Param("NAME")String NAME,@Param("CARD_ID")String CARD_ID,@Param("GAJG_DM")String GAJG_DM,@Param("RECEIPT_ID")int RECEIPT_ID,@Param("SEX")String SEX);
...@@ -65,11 +69,10 @@ public interface ReceiptMapper { ...@@ -65,11 +69,10 @@ public interface ReceiptMapper {
//根据身份证号查询特证交接单 //查询未复核交接单
@Select("SELECT RECEIPT_LIST.* FROM RECEIPT_LIST where state=0\n") @Select("SELECT RECEIPT_LIST.* FROM RECEIPT_LIST where state=0\n")
public List<Map<String,Object>>selectReceiptListOfSpecialCard (); public List<Map<String,Object>>selectReceiptListOfSpecialCard ();
//根据身份证号查询普通证交接单 //根据身份证号查询普通证交接单
@Select("SELECT RECEIPT_LIST.* FROM RECEIPT_LIST \n" + @Select("SELECT RECEIPT_LIST.* FROM RECEIPT_LIST \n" +
"LEFT JOIN PROD_CARD_T@PROD_LINK ON subStr(PROD_CARD_T.ACCEPT_NO,0,8) =RECEIPT_LIST.QR_CODE\n" + "LEFT JOIN PROD_CARD_T@PROD_LINK ON subStr(PROD_CARD_T.ACCEPT_NO,0,8) =RECEIPT_LIST.QR_CODE\n" +
...@@ -87,9 +90,46 @@ public interface ReceiptMapper { ...@@ -87,9 +90,46 @@ public interface ReceiptMapper {
"check_date = #{date},\n" + "check_date = #{date},\n" +
"check_name=#{checkName} \n" + "check_name=#{checkName} \n" +
"where id=#{receiptId}") "where id=#{receiptId}")
public boolean updateReceiptList(int receiptId, String checkName, Date date); public boolean updateReceiptList(String receiptId, String checkName, Date date);
//根据输入id查询交接单是否生成
@Select("select count(*) from RECEIPT_LIST where QR_CODE=(select accept_no from prod_card_t@prod_link where id_no=#{id})")
public int selectCountById(@Param("id") String id);
//根据输入id查询是否生成详单
@Select("select count(*) from DETAIL_RECEIPT_LIST where ACCEPT_NO=(select accept_no from prod_card_t@prod_link where id_no=#{id})")
public int selectReceiptById(@Param("id") String id);
//复核一致,按交接单编号查询证件数量
@Select("select FINISH_COUNT from RECEIPT_LIST WHERE ID=#{receiptId}")
public int selectCountByReceiptId(@Param("receiptId")String receiptId);
//符合一致,按交接单编号查询详单库数量
public int selectDetailCountByReceiptId(@Param("receiptId")String receiptId);
@Select("select \n" +
"count(prod_trace_t.download_no)as download,\n" +
"count(prod_trace_t.checker_no) as checkerCount,\n" +
"count(prod_trace_t.ELECTRIC_WRITER_NO)as electricCount\n" +
"from prod_trace_t@PROD_LINK \n" +
"WHERE subStr(ACCEPT_NO,0,8) = #{groupNo} or ACCEPT_NO=#{groupNo}")
public Map<String,Object> selectCountTime(String groupNo);
@Select("select \n" +
"prod_trace_t.DOWNLOAD_DATE as downloadDate,\n" +
"prod_trace_t.CHECK_DATE as checkDate,\n" +
"prod_trace_t.ELECTRIC_WRITE_DATE as electricDate\n" +
"from prod_trace_t@PROD_LINK \n" +
"WHERE subStr(ACCEPT_NO,0,8) = #{groupNo} or ACCEPT_NO=#{groupNo}")
public Map<String,Object>selectTimes(String groupNo);
} }
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.CardTypeDicEntity;
import com.yxproject.start.entity.TaskEntity; import com.yxproject.start.entity.TaskEntity;
import com.yxproject.start.entity.TaskList.CountCountyEntity; import com.yxproject.start.entity.TaskList.CountCountyEntity;
import com.yxproject.start.entity.TaskList.TaskListEntity; import com.yxproject.start.entity.TaskList.TaskListEntity;
...@@ -783,5 +784,10 @@ public interface TaskListMapper { ...@@ -783,5 +784,10 @@ public interface TaskListMapper {
*/ */
@Select("select * from task where task_ID = #{taskId}") @Select("select * from task where task_ID = #{taskId}")
public List<TaskEntity> selectTaskEntityByTaskId(long taskId); public List<TaskEntity> selectTaskEntityByTaskId(long taskId);
/**
* 查询制证类型列表
* @return
*/
@Select("SELECT * FROM CARD_TYPE_DIC")
public List<CardTypeDicEntity> selectTypeList();
} }
...@@ -10,11 +10,11 @@ public interface ReceiptService { ...@@ -10,11 +10,11 @@ public interface ReceiptService {
public Map<String,Object> selectReceiptListDate(String id); public Map<String,Object> selectReceiptListDate(String id);
public boolean createReceiptList(@Param("GROUP_NO")String GROUP_NO, @Param("GAJG_DM")String GAJG_DM, @Param("count")int count,@Param("state")int state); public boolean createReceiptList(@Param("GROUP_NO")String GROUP_NO, @Param("GAJG_DM")String GAJG_DM, @Param("count")int count,@Param("state")int state,@Param("cardType")String cardType,@Param("oldCardType")String oldCardType);
public Map<String,Object>selectDetailedData(String id); public Map<String,Object>selectDetailedData(String id);
public boolean createDetailedList(@Param("UPLOAD_NO")String UPLOAD_NO,@Param("ACCEPT_NO")String ACCEPT_NO,@Param("NAME")String NAME,@Param("CARD_ID")String CARD_ID,@Param("GAJG_DM")String GAJG_DM,@Param("RECEIPT_ID")int RECEIPT_ID); public boolean createDetailedList(@Param("UPLOAD_NO")String UPLOAD_NO,@Param("ACCEPT_NO")String ACCEPT_NO,@Param("NAME")String NAME,@Param("CARD_ID")String CARD_ID,@Param("GAJG_DM")String GAJG_DM,@Param("RECEIPT_ID")int RECEIPT_ID,@Param("SEX")String SEX);
public int selectSpecialCard(String GROUP_NO); public int selectSpecialCard(String GROUP_NO);
...@@ -28,9 +28,29 @@ public interface ReceiptService { ...@@ -28,9 +28,29 @@ public interface ReceiptService {
public List<Map<String,Object>> selectDetailList(String receiptId); public List<Map<String,Object>> selectDetailList(String receiptId);
public boolean updateReceiptList(int receiptId, String checkName, Date date); public boolean updateReceiptList(String receiptId, String checkName, Date date);
public int selectCount(String GROUP_NO); public int selectCount(String GROUP_NO);
public boolean updateFinishCount(String GROUP_NO,int count); public boolean updateFinishCount(String GROUP_NO,int count);
//特证查询是否生成交接单
public int selectCountById(@Param("id") String id);
//查询是否已生成交接单详单
public int selectReceiptById(@Param("id") String id);
//复核一致,按交接单编号查询证件数量
public int selectCountByReceiptId(@Param("receiptId")String receiptId);
//符合一致,按交接单编号查询详单库数量
public int selectDetailCountByReceiptId(@Param("receiptId")String receiptId);
public Map<String,Object> selectCountTime(String groupNo);
public Map<String,Object> selectTimes(String groupNo);
} }
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.CardTypeDicEntity;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.entity.TaskEntity; import com.yxproject.start.entity.TaskEntity;
import com.yxproject.start.entity.TaskList.CountCountyEntity; import com.yxproject.start.entity.TaskList.CountCountyEntity;
...@@ -53,4 +54,6 @@ public interface TaskListService { ...@@ -53,4 +54,6 @@ public interface TaskListService {
public List<TaskEntity> selectTaskEntityByTaskId(long taskId); public List<TaskEntity> selectTaskEntityByTaskId(long taskId);
public boolean saveFastTask(TaskEntity taskEntity); public boolean saveFastTask(TaskEntity taskEntity);
public List<CardTypeDicEntity> getTypeList();
} }
...@@ -21,8 +21,8 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -21,8 +21,8 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public boolean createReceiptList(String GROUP_NO, String GAJG_DM, int count,int state) { public boolean createReceiptList(String GROUP_NO, String GAJG_DM, int count,int state,String cardType,String oldCardType) {
receiptMapper.createReceiptList(GROUP_NO,GAJG_DM,count,state); receiptMapper.createReceiptList(GROUP_NO,GAJG_DM,count,state,cardType,oldCardType);
return true; return true;
} }
...@@ -33,8 +33,8 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -33,8 +33,8 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public boolean createDetailedList(String UPLOAD_NO, String ACCEPT_NO, String NAME, String CARD_ID, String GAJG_DM, int RECEIPT_ID) { public boolean createDetailedList(String UPLOAD_NO, String ACCEPT_NO, String NAME, String CARD_ID, String GAJG_DM, int RECEIPT_ID,String SEX) {
receiptMapper.createDetailedList(UPLOAD_NO,ACCEPT_NO,NAME,CARD_ID,GAJG_DM,RECEIPT_ID); receiptMapper.createDetailedList(UPLOAD_NO,ACCEPT_NO,NAME,CARD_ID,GAJG_DM,RECEIPT_ID,SEX);
return true; return true;
} }
...@@ -77,7 +77,7 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -77,7 +77,7 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public boolean updateReceiptList(int receiptId, String checkName, Date date) { public boolean updateReceiptList(String receiptId, String checkName, Date date) {
receiptMapper.updateReceiptList(receiptId, checkName, date); receiptMapper.updateReceiptList(receiptId, checkName, date);
return true; return true;
} }
...@@ -94,5 +94,39 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -94,5 +94,39 @@ public class ReceiptServiceImpl implements ReceiptService {
return true; return true;
} }
@Override
public int selectCountById(String id) {
int countAccept= receiptMapper.selectCountById(id);
return countAccept;
}
@Override
public int selectReceiptById(String id) {
int receiptCount = receiptMapper.selectReceiptById(id);
return receiptCount;
}
@Override
public int selectCountByReceiptId(String receiptId) {
int finishCount = selectCountByReceiptId(receiptId);
return finishCount;
}
@Override
public int selectDetailCountByReceiptId(String receiptId) {
int detailCount = selectDetailCountByReceiptId(receiptId);
return detailCount;
}
@Override
public Map<String, Object> selectCountTime(String groupNo) {
Map<String, Object> maps = receiptMapper.selectCountTime(groupNo);
return maps;
}
@Override
public Map<String, Object> selectTimes(String groupNo) {
Map<String, Object> maps = receiptMapper.selectTimes(groupNo);
return maps;
}
} }
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.CardTypeDicEntity;
import com.yxproject.start.entity.GroupNoEntity; import com.yxproject.start.entity.GroupNoEntity;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.entity.TaskEntity; import com.yxproject.start.entity.TaskEntity;
...@@ -542,6 +543,11 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -542,6 +543,11 @@ public class TaskListServiceImpl implements TaskListService {
} }
@Override
public List<CardTypeDicEntity> getTypeList() {
return taskListMapper.selectTypeList();
}
private String createGroupNo(List<Integer> c, List<Integer> nsList) { private String createGroupNo(List<Integer> c, List<Integer> nsList) {
try { try {
......
...@@ -103,8 +103,8 @@ angular.module('AvatarCheck', [ ...@@ -103,8 +103,8 @@ angular.module('AvatarCheck', [
if ($location.path() == "/taskListPushing") { if ($location.path() == "/taskListPushing") {
$rootScope.tab = '/taskListPushing'; $rootScope.tab = '/taskListPushing';
} }
if ($location.path() == "/taskListCutting") { if ($location.path() == "/taskListEwriting") {
$rootScope.tab = '/taskListCutting'; $rootScope.tab = '/taskListEwriting';
} }
if ($location.path() == "/taskListSorting") { if ($location.path() == "/taskListSorting") {
$rootScope.tab = '/taskListSorting'; $rootScope.tab = '/taskListSorting';
...@@ -182,9 +182,9 @@ angular.module('AvatarCheck', [ ...@@ -182,9 +182,9 @@ angular.module('AvatarCheck', [
$scope.logout = function(){ $scope.logout = function(){
HttpService.logout(function(data) { HttpService.logout(function(data) {
localStorage.clear();
$location.path('/login') $location.path('/login')
$rootScope.loginData = {userid:'用户未登录', login:false}; $rootScope.loginData = {userid:'用户未登录', login:false};
localStorage.clear();
}); });
} }
$scope.enterEvent = function(e,search) { $scope.enterEvent = function(e,search) {
......
...@@ -351,6 +351,8 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -351,6 +351,8 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
// var arr = []; // var arr = [];
// arr.push(json); // arr.push(json);
// var body = JSON.stringify(arr); // var body = JSON.stringify(arr);
console.log(uploadNo,idCard,oldPackageNo,newPackageNo,sljg,
typeCode,packageType,date,currentPage,itemsPerPage)
$http({ $http({
method: 'GET', method: 'GET',
url: "../queryPreproPerson/queryPreproPerson", url: "../queryPreproPerson/queryPreproPerson",
...@@ -685,6 +687,22 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -685,6 +687,22 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
},
getPoliceListDataNotCheckedData:function(success) {
$http({
method: 'GET',
url: "../ReceiptApi/updatePreproPerson"+urlTimeStamp()
}).then(function successCallback(response) {
success(response.data)
})
},
getTypeList:function(success){
$http({
method: 'GET',
url: "../TaskList/getTypeList"+urlTimeStamp()
}).then(function successCallback(response) {
success(response.data)
})
} }
} }
}); });
\ No newline at end of file
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
<td><input type="text" class="form-control" ng-model="sljg" placeholder="受理机关"></td> <td><input type="text" class="form-control" ng-model="sljg" placeholder="受理机关"></td>
<td>制证类型:</td> <td>制证类型:</td>
<td style="text-align: left;"> <td style="text-align: left;">
<select class="form-control select2" id="county" data-placeholder="--请选择制证类型--" <select class="form-control select2" id="county" ng-model="typeCode">
style="width: 100%;" ng-model="typeCode"> <option value="">--请选择制证类型--</option>
<option value="{{type.typeCode}}" ng-repeat="type in typeList">{{type.typeName}}</option> <option value="{{type.cardTypeId}}" ng-repeat="type in typeList">{{type.cardType}}</option>
</select> </select>
</td> </td>
</tr> </tr>
......
...@@ -38,6 +38,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -38,6 +38,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
$scope.doPackageQuery=function(){ $scope.doPackageQuery=function(){
var date = $("#datepicker").val(); var date = $("#datepicker").val();
var typeCode = $("#county").val();
var packageType = $("#packageType").val(); var packageType = $("#packageType").val();
if(angular.isUndefined($scope.uploadNo)){ if(angular.isUndefined($scope.uploadNo)){
$scope.uploadNo=''; $scope.uploadNo='';
...@@ -54,8 +55,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -54,8 +55,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
if(angular.isUndefined($scope.sljg)){ if(angular.isUndefined($scope.sljg)){
$scope.sljg=''; $scope.sljg='';
} }
if(angular.isUndefined($scope.typeCode)){ if(angular.isUndefined(typeCode)){
$scope.typeCode=''; typeCode='';
} }
if(angular.isUndefined(packageType)){ if(angular.isUndefined(packageType)){
packageType=''; packageType='';
...@@ -65,7 +66,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -65,7 +66,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
date=$filter("date")(new Date(), "yyyy-MM-dd"); date=$filter("date")(new Date(), "yyyy-MM-dd");
} }
HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg, HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg,
$scope.typeCode,packageType,date,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data) { typeCode,packageType,date,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data) {
$scope.paginationConf.totalItems=data.total; $scope.paginationConf.totalItems=data.total;
$scope.simpleCardCount = data.puSum; $scope.simpleCardCount = data.puSum;
$scope.postCardCount = data.youSum; $scope.postCardCount = data.youSum;
...@@ -138,4 +139,11 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -138,4 +139,11 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
a.click(); a.click();
} }
var getTypeList = function(){
HttpService.getTypeList(function(data){
$scope.typeList = data;
console.log(data)
})
}
getTypeList();
}); });
\ No newline at end of file
...@@ -47,8 +47,8 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http']) ...@@ -47,8 +47,8 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$rootScope.tab = '/taskListSorting'; $rootScope.tab = '/taskListSorting';
break; break;
case 5: case 5:
$location.path("/taskListCutting"); $location.path("/taskListEwriting");
$rootScope.tab = '/taskListCutting'; $rootScope.tab = '/taskListEwriting';
break; break;
case 4: case 4:
$location.path("/taskListPushing"); $location.path("/taskListPushing");
......
...@@ -1022,10 +1022,19 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin ...@@ -1022,10 +1022,19 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
} }
var getPoliceListDataNotChecked = function () {
HttpService.getPoliceListDataNotCheckedData(function(data){
$scope.tagPrintData = data;
console.log($scope.tagPrintData)
})
}
$scope.searchTagPrintData = function(){ $scope.searchTagPrintData = function(){
HttpService.selectTagPrintData($scope.idCard,function(data){ HttpService.selectTagPrintData($scope.idCard,function(data){
$scope.tagPrintData =data; if(!data){
console.log($scope.tagPrintData) MessageService.showAlert("生成交接单成功")
}
getPoliceListDataNotChecked();
}) })
} }
......
...@@ -17,9 +17,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -17,9 +17,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
controller: 'taskListPreLocatingCtrl', controller: 'taskListPreLocatingCtrl',
cache: false cache: false
}); });
$routeProvider.when('/taskListCutting', { $routeProvider.when('/taskListEwriting', {
templateUrl: 'views/task/taskListCutting.html' + urlTimeStamp(), templateUrl: 'views/task/taskListEwriting.html' + urlTimeStamp(),
controller: 'taskListPreLocatingCtrl', controller: 'taskListEwritingCtrl',
cache: false cache: false
}); });
$routeProvider.when('/taskListSorting', { $routeProvider.when('/taskListSorting', {
...@@ -86,7 +86,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -86,7 +86,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1); if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
}; };
//更新某一列数据的选择 //更新某一列数据的选择
$scope.updateSelection = function ($event, task,typeCode) { $scope.updateSelection = function ($event, task) {
var checkbox = $event.target; var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove'); var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task); updateSelected(action, task);
...@@ -103,13 +103,18 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -103,13 +103,18 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}; };
//全选操作 //全选操作
$scope.selectAll = function (task,typeCode,$event) { $scope.selectAll = function (task,$event) {
var checkbox = $event.target; var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove'); var action = (checkbox.checked ? 'add' : 'remove');
console.log(task) console.log(task)
for (var i = 0; i < task.length; i++) { for (var i = 0; i < task.length; i++) {
var contact = task[i]; if(task[i].faileCount==0){
updateSelected(action, contact); var contact = task[i];
updateSelected(action, contact);
}else{
continue;
}
} }
$rootScope.cardsTotal=0; $rootScope.cardsTotal=0;
...@@ -265,17 +270,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -265,17 +270,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
var checkbox = $event.target; var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove'); var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task); updateSelected(action, task);
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i=0;i<checks.length;i++){
if (checks[i].checked) {
sum += parseInt(checks[i].value);
}
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}; };
//全选操作 //全选操作
$scope.selectAll = function (task,$event) { $scope.selectAll = function (task,$event) {
...@@ -285,21 +279,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -285,21 +279,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
var contact = task[i]; var contact = task[i];
updateSelected(action, contact); updateSelected(action, contact);
} }
if(checkbox.checked){
var sum = 0;
var checks = document.getElementsByClassName("checkOneBox");
for (var i = 0; i < checks.length; i++) {
sum += parseInt(checks[i].value);
}
$rootScope.cardsTotal = $rootScope.cardsTotal + sum - temp;
temp = sum;
}else{
$rootScope.cardsTotal =0;
temp = 0;
}
}; };
$scope.isSelected = function (task) { $scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0; return $scope.selected.indexOf(task) >= 0;
...@@ -380,6 +359,149 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -380,6 +359,149 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
} }
}) })
.controller('taskListEwritingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
//Date picker
$('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.isHistory=0;
$scope.searchTaskList = function(){
$scope.isHistory=0;
HttpService.getFjTaskListByProcess(function(data){
$scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){
if(i==$scope.currentTab){
$scope.cycleSheetData[i].isActive=true;
}else{
$scope.cycleSheetData[i].isActive=false;
}
}
console.log($scope.cycleSheetData)
})
}
$scope.searchTaskList();
$scope.searchHistory = function(){
$scope.isHistory=1;
HttpService.getHistoryTask($('#datepicker').val(),function(data){
$scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){
if(i==$scope.currentTab){
$scope.cycleSheetData[i].isActive=true;
}else{
$scope.cycleSheetData[i].isActive=false;
}
}
console.log("历史:",$scope.cycleSheetData)
})
}
//创建变量用来保存选中结果
$scope.selected = [];
var updateSelected = function (action, task) {
if (action === 'add' && $scope.selected.indexOf(task) === -1) {
$scope.selected.push(task);
}
if (action === 'remove' && $scope.selected.indexOf(task) !== -1) $scope.selected.splice($scope.selected.indexOf(task), 1);
};
//更新某一列数据的选择
$rootScope.cardsTotal = 0;
$scope.updateSelection = function ($event, task) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
updateSelected(action, task);
};
//全选操作
$scope.selectAll = function (task,$event) {
var checkbox = $event.target;
var action = (checkbox.checked ? 'add' : 'remove');
for (var i = 0; i < task.length; i++) {
var contact = task[i];
updateSelected(action, contact);
}
};
$scope.isSelected = function (task) {
return $scope.selected.indexOf(task) >= 0;
};
$scope.taskId=1;
$scope.getPoliceList = function(policeList,taskId){
$scope.policeList = policeList;
if($scope.taskId==1){
$scope.taskId=taskId;
}else{
$scope.taskId=1
}
console.log(policeList)
}
$scope.currentTab = 0;
$scope.func = function (index) {
for (var idx in $scope.cycleSheetData) {
if (index == idx) {
$scope.cycleSheetData[idx].isActive = true;
} else {
$scope.cycleSheetData[idx].isActive = false;
}
}
$scope.currentTab = index;
}
$scope.getSpecialCardsInfo = function(groupNo,specialCardCount){
if(parseInt(specialCardCount)>0){
ngDialog.open({
template: 'dialogs/specailCardInfo.html' + urlTimeStamp(),
width: 600,
cache: false,
closeByDocument:false,
controller: ['$scope', function ($scope) {
HttpService.getSpecialCardData(groupNo,function(data) {
$scope.specailCardData = data;
console.log(data)
})
}]
});
}else{
MessageService.showAlert("该组中没有特殊证件")
}
}
$scope.goes = function(){
var checks = $(".checkOneBox:checked");
if(checks.length>0){
var arr = [];
for (var i=0;i<checks.length;i++){
if(!checks[i].disabled){
arr.push(checks[i].value)
}else{
continue;
}
}
var json={
process:$rootScope.loginData.roleList[0].process,
name:$rootScope.loginData.name,
taskIdList:arr
}
console.log(json)
HttpService.updateTaskListProcess(json,function(data){
$scope.searchTaskList();
MessageService.showAlert("转出完成")
})
}else{
MessageService.showAlert("请选择转出的任务单");
}
}
})
.controller('taskListSortingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('taskListSortingCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
//Date picker //Date picker
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
<th>组号</th> <th>组号</th>
<th>核验数量</th> <th>核验数量</th>
<th>证件数量</th> <th>证件数量</th>
<th>电写入数量</th>
<th>特殊证件数量</th> <th>特殊证件数量</th>
<th>废证数量</th> <th>废证数量</th>
<th></th> <th></th>
...@@ -51,15 +52,16 @@ ...@@ -51,15 +52,16 @@
</thead> </thead>
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td><input type="checkbox" ng-disabled="task.faileCount>0" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate| date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupList.length}}</td> <td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.groupNum}}</td> <td class="mailbox-subject"></td>
<td class="mailbox-subject">{{task.countyValidCount}}</td> <td class="mailbox-subject">{{task.countyValidCount}}</td>
<td class="mailbox-subject">{{task.countyValidCount-task.specialCount}}</td> <td class="mailbox-subject">{{task.task.countyValidCount-task.specialCount}}</td>
<td class="mailbox-attachment">{{task.specialCount}}</td> <td class="mailbox-subject">{{task.eWriteCount}}</td>
<td class="mailbox-subject">{{task.specialCount}}</td>
<td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td> <td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td>
<td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td> <td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.groupList,task.taskId)">组号列表</a></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.groupList,task.taskId)">组号列表</a></td>
...@@ -68,25 +70,29 @@ ...@@ -68,25 +70,29 @@
<td></td> <td></td>
<td colspan="10"> <td colspan="10">
<table class="table"> <table class="table">
<thead> <thead>
<th>组号</th> <th>组号</th>
<th>核验数量</th> <th>派出所名称</th>
<th>证件数量</th> <th>核验数量</th>
<th>特殊证件数量</th> <th>证件数量</th>
<th>废证数量</th> <th>电写入数量</th>
<th></th> <th>特殊证件数量</th>
</thead> <th>废证数量</th>
<tbody> <th></th>
<tr ng-repeat="item in policeList"> </thead>
<td>{{item.GROUP_NO}}</td> <tbody>
<td>{{item.VALID_COUNT}}</td> <tr ng-repeat="item in policeList">
<td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td> <td>{{item.GROUP_NO}}</td>
<td>{{item.SPECIAL_CARD_COUNT}}</td> <td>{{item.GAJG_MC}}</td>
<td>{{item.FAILECOUNT}}</td> <td>{{item.VALID_COUNT}}</td>
<td><a ng-click="getSpecialCardsInfo(item.GROUP_NO,item.SPECIAL_CARD_COUNT)">特殊证件详情</a></td> <td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td>
</tr> <td>{{item.E_WRITER_COUNT}}</td>
</tbody> <td>{{item.SPECIAL_CARD_COUNT}}</td>
</table> <td>{{item.FAILECOUNT}}</td>
<td><a ng-click="getSpecialCardsInfo(item.GROUP_NO,item.SPECIAL_CARD_COUNT)">特殊证件详情</a></td>
</tr>
</tbody>
</table>
</td> </td>
<td></td> <td></td>
<td></td> <td></td>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</thead> </thead>
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td><input type="checkbox" ng-disabled="task.faileCount>0" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</thead> </thead>
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td><input type="checkbox" ng-disabled="task.faileCount>0" id="checkOneBox" class="checkOneBox{{type.typeCode}}" ng-checked="isSelected(task)" value="{{task.taskId}}" name="{{task.countyValidCount-task.specialCount}}" ng-click="updateSelection($event,task,type.typeCode)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" id="checkOneBox" class="checkOneBox{{type.typeCode}}" ng-checked="isSelected(task)" value="{{task.taskId}}" name="{{task.countyValidCount-task.specialCount}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</thead> </thead>
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td><input type="checkbox" ng-disabled="task.faileCount>0" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</thead> </thead>
<tbody ng-repeat="task in type.countyList"> <tbody ng-repeat="task in type.countyList">
<tr> <tr>
<td><input type="checkbox" ng-disabled="task.faileCount>0" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td ng-if="task.faileCount==0"><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate| date:'yyyy-MM-dd'}}</td> <td class="mailbox-subject">{{task.saveDate| date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td> <td class="mailbox-subject"><a>{{task.countyName}}</a></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment