Commit 75c46a87 authored by liboyang's avatar liboyang

新增页面

parent 9651b5f6
package com.yxproject.start.api;
import com.yxproject.start.service.PoliceStationApplyReasonService;
import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Administrator
*/
@RestController
@RequestMapping("api")
public class BizApi {
@Autowired
private PoliceStationApplyReasonService policeStationApplyReasonService;
/**
* 保存派出所申领表数据
* @param taskIdList
* @return
*/
@RequestMapping("savePoliceApplicationData")
public int savePoliceApplicationData(@RequestBody String taskIdList) {
JSONArray jsonArray = JSONArray.fromObject(taskIdList);
int i = policeStationApplyReasonService.getAndSavePoliceStationApplyReason(jsonArray);
return i;
}
}
//package com.yxproject.start.api;
//import com.yxproject.start.entity.ExcelEntity;
//import com.yxproject.start.dto.AnalyseDto;
//import com.yxproject.start.dto.ProgressDto;
//import com.yxproject.start.dto.ReadCardDto;
//import com.yxproject.start.dto.XmlAndExcelInfoDto;
//import com.yxproject.start.entity.PersonPostEntity;
//import com.yxproject.start.service.Business;
//import com.yxproject.start.service.PersonPostService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.stereotype.Service;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.ws.rs.*;
//import javax.ws.rs.core.Context;
//import javax.ws.rs.core.MediaType;
//import java.text.DateFormat;
//import java.text.ParseException;
//import java.text.SimpleDateFormat;
//import java.util.Date;
//import java.util.List;
//
//@Controller
//@RequestMapping("idCard")
//public class IdCardPostApi {
//
//
// @Autowired
// private PersonPostService personPostService;
//
// private Logger logger = LoggerFactory.getLogger(IdCardPostApi.class);
//
// private SimpleDateFormat dateTimeFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
// private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
//
// private Date getDateFromString(String gmtCreat, DateFormat dateFormat) {
// if (gmtCreat != null) {
// try {
// return dateFormat.parse(gmtCreat);
// } catch (ParseException e) {
// logger.error(e.getMessage());
// return null;
// }
// }
// return null;
// }
//
// /**
// * 查询身份证对应的邮寄信息
// * @param card 身份证信息
// * @return 邮寄信息
// */
//
// @RequestMapping("getPostInfo")
// public List<PersonPostEntity> getPostInfo(ReadCardDto card) {
// return personPostService.getPostInfo(card);
// }
//
//
// /**
// * 确认打印快递单
// * @param id 快递信息在数据库中的主键ID
// * @return 更新后的快递信息记录
// */
// @RequestMapping("printPostList")
// public PersonPostEntity printPostList(@QueryParam("id") int id, @QueryParam("printTime") String printTime) {
// Date printDateTime = getDateFromString(printTime, dateTimeFormat);
// if (printDateTime == null) return null;
// return personPostService.printPostList(id, printDateTime);
// }
//
// /**
// * 获取分析进度
// * @return 分析进度的JSON
// */
// @GET
// @Path("getProgress")
// @Produces(MediaType.APPLICATION_JSON)
// public ProgressDto getProgress() {
// return business.getProgress();
// }
//
// /**
// * 获取区县列表
// * @return 区县的JSON数组
// */
// @GET
// @Path("districts")
// @Produces(MediaType.APPLICATION_JSON)
// public List<String> getDistricts() {
// return business.getDistricts();
// }
//
// /**
// * 条件查询
// * @param gmtCreat 导入时间
// * @param hasPrinted 是否打印
// * @param djx 到件县
// * @param gkxx 格口信息
// * @param ddh 订单号
// * @param sequence 序号
// * @param sqrxm 申请人姓名
// * @return 邮寄信息的list
// */
// @GET
// @Path("records")
// @Produces(MediaType.APPLICATION_JSON)
// public List<ExcelEntity> getRecords(@QueryParam("gmtCreat")String gmtCreat, @DefaultValue("0") @QueryParam("hasPrinted") int hasPrinted,
// @QueryParam("djx") List<String> djx, @QueryParam("gkxx") String gkxx, @QueryParam("ddh") String ddh,
// @QueryParam("sequence")int sequence, @QueryParam("sqrxm") String sqrxm) {
// Date importDate = getDateFromString(gmtCreat, dateFormat);
// return business.getRecords(importDate, hasPrinted, djx, gkxx, ddh, sequence, sqrxm);
// }
//
// /**
// * 条件查询
// * @param gmtCreat 导入时间
// * @param hasPrinted 是否打印
// * @param djx 到件县
// * @param gkxx 格口信息
// * @param ddh 订单号
// * @param sequence 序号
// * @param sqrxm 申请人姓名
// * @param index 索引
// * @param pageSize 页大小
// * @return 邮寄信息的list
// */
// @GET
// @Path("recordsByPaging")
// @Produces(MediaType.APPLICATION_JSON)
// public List<ExcelEntity> getRecordsByPaging(@QueryParam("gmtCreat")String gmtCreat, @DefaultValue("0") @QueryParam("hasPrinted") int hasPrinted,
// @QueryParam("djx") List<String> djx, @QueryParam("gkxx") String gkxx, @QueryParam("ddh") String ddh,
// @QueryParam("sequence")int sequence, @QueryParam("sqrxm") String sqrxm, @QueryParam("index") int index,
// @QueryParam("pageSize") @DefaultValue("10") int pageSize) {
// Date importDate = getDateFromString(gmtCreat, dateFormat);
// return business.getRecordsPaging(importDate, hasPrinted, djx, gkxx, ddh, sequence, sqrxm, index, pageSize);
// }
//
// /**
// * 查询记录数
// * @param gmtCreat 导入时间
// * @param hasPrinted 是否打印
// * @param djx 到件县
// * @param gkxx 格口信息
// * @param ddh 订单号
// * @param sequence 序号
// * @param sqrxm 申请人姓名
// * @return 查询到的条数
// */
// @GET
// @Path("recordCount")
// public int getCount(@QueryParam("gmtCreat")String gmtCreat, @DefaultValue("0") @QueryParam("hasPrinted") int hasPrinted,
// @QueryParam("djx") List<String> djx, @QueryParam("gkxx") String gkxx, @QueryParam("ddh") String ddh,
// @QueryParam("sequence")int sequence, @QueryParam("sqrxm") String sqrxm) {
// Date importDate = getDateFromString(gmtCreat, dateFormat);
// return business.getCount(importDate, hasPrinted, djx, gkxx, ddh, sequence, sqrxm);
// }
//
// /**
// * 匹配不成功的记录
// * @param gmtCreat 导入时间
// * @return 实体类List转换为json数组
// */
// @GET
// @Path("recordsHasNotMatched")
// @Produces(MediaType.APPLICATION_JSON)
// public List<ExcelEntity> getrecordHasNotPrinted(@QueryParam("gmtCreat") String gmtCreat) {
// Date importDate = getDateFromString(gmtCreat, dateFormat);
// return business.getRecordsHasNotMatched(importDate);
// }
//
// @GET
// @Path("createDistrict")
// public String createDistrict() {
// business.createDistrict();
// return "ok";
// }
//
// @GET
// @Path("download")
// public void exportExcel(@Context HttpServletRequest request, @Context HttpServletResponse response,
// @QueryParam("gmtCreat")String gmtCreat, @DefaultValue("0") @QueryParam("hasPrinted") int hasPrinted,
// @QueryParam("djx") List<String> djx, @QueryParam("gkxx") String gkxx, @QueryParam("ddh") String ddh,
// @QueryParam("sequence")int sequence, @QueryParam("sqrxm") String sqrxm) throws Exception {
// Date importDate = getDateFromString(gmtCreat, dateFormat);
// business.downLoadReportForm(request, response, importDate, hasPrinted, djx, gkxx, ddh, sequence, sqrxm);
// }
//
// @DELETE
// @Path("recordsHaveNotPrinted")
// public String deleteRecords(@QueryParam("gmtCreat") String gmtCreat) {
// Date importDate = getDateFromString(gmtCreat, dateFormat);
// business.deleteRecords(importDate);
// return "finish";
// }
//}
package com.yxproject.start.dto;
public class ReadCardDto {
private String idCard;
private String startDate;
private String endDate;
@Override
public String toString() {
return "ReadCardDto{" +
"idCard='" + idCard + '\'' +
", startDate='" + startDate + '\'' +
", endDate='" + endDate + '\'' +
'}';
}
public ReadCardDto() {
}
public ReadCardDto(String idCard, String startDate, String endDate) {
this.idCard = idCard;
this.startDate = startDate;
this.endDate = endDate;
}
public String getIdCard() {
return idCard;
}
public void setIdCard(String idCard) {
this.idCard = idCard;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
}
......@@ -2,8 +2,11 @@ package com.yxproject.start.mapper;
import com.yxproject.start.entity.PersonPostEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/19 15:00
......@@ -13,4 +16,6 @@ public interface PersonPostMapper {
@Update("update PERSON_POST set WAYBILL_NUMBER=#{waybillNumber},BACK_WAYBILL_NUMBER=#{backWaybillNumber},ORDER_NUMBER=#{orderNumber},CREATE_DATE=#{createDate},OPENID=#{openid},WC_PLAY_ORDER_NUMBER=#{wcPlayOrderNumber},PLAY_STATE=#{playState},ORDER_STATE=#{orderState},,APPLICANT_NAME=#{applicantName},SENDER_NAME=#{senderName},SENDER_PHONE=#{senderPhone},SENDER_ADDRESS=#{senderAddress},RECIPIENT_NAME=#{recipientName},RECIPIENT_PHONE=#{recipientPhone},RECIPIENT_ADDRESS=#{recipientAddress},ORDER_BLANK_NUMBER=#{orderBlankNumber},GET_TO_PROVINCE=#{getToProvince},GET_TO_CITY=#{getToCity},GET_TO_COUNTY=#{getToCounty},BUSINESS_TYPE=#{businessType},LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation},NATURE_OF_THE_INTERNAL=#{natureOfTheInternal},NATURE_OF_THE_INFORMATION=#{natureOfTheInformation},FIRST_WHITE=#{firstWhite}")
public boolean updatePersonPost(PersonPostEntity personPostEntity);
@Select("SELECT * FROM PERSON_POST WHERE ID_CARD=idCard AND BEGIN_USEFUL_LIFE=to_date(#{startDate},'yyyyMMdd') AND VALID_PERIOD_END=to_date(#{endDate},'yyyyMMdd')")
public List<PersonPostEntity> findAllByIdCardAndStartDateAndEndDate(String idCard, String startDate, String endDate);
}
package com.yxproject.start.service;
import com.yxproject.start.dto.ReadCardDto;
import com.yxproject.start.entity.PersonPostEntity;
import java.util.Date;
import java.util.List;
/**
......@@ -13,4 +15,8 @@ public interface PersonPostService {
* 导入个人邮寄异常信息
*/
public boolean updatePersonPost(List<PersonPostEntity> personPostEntities);
public List<PersonPostEntity> getPostInfo(ReadCardDto card);
public PersonPostEntity printPostList(int id, Date printDateTime);
}
package com.yxproject.start.service.impl;
import com.yxproject.start.dto.ReadCardDto;
import com.yxproject.start.entity.PersonPostEntity;
import com.yxproject.start.entity.PreproPersonEntity;
import com.yxproject.start.mapper.PersonPostMapper;
......@@ -9,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
/**
......@@ -21,6 +23,8 @@ public class PersonPostServiceImpl implements PersonPostService {
private PersonPostMapper personPostMapper;
@Autowired
private PreproPersonMapper preproPersonMapper;
@Override
@Transactional(rollbackFor = Exception.class)
public boolean updatePersonPost(List<PersonPostEntity> personPostEntities) {
......@@ -33,4 +37,17 @@ public class PersonPostServiceImpl implements PersonPostService {
}
return true;
}
@Override
public List<PersonPostEntity> getPostInfo(ReadCardDto card) {
String idCard = card.getIdCard();
String startDate = card.getStartDate();
String endDate = card.getEndDate();
return personPostMapper.findAllByIdCardAndStartDateAndEndDate(idCard, startDate, endDate);
}
@Override
public PersonPostEntity printPostList(int id, Date printDateTime) {
return null;
}
}
This diff is collapsed.
......@@ -5,32 +5,93 @@ angular.module('AvatarCheck', [
'ngRoute',
'ngDialog',
'LocalStorageModule',
'AvatarCheck.searchCardMsg',
'AvatarCheck.cardProdUpdate',
'AvatarCheck.cardProdPackage',
'AvatarCheck.excelAndSearch',
'AvatarCheck.xmlAndSearch',
'AvatarCheck.uploadExcelAndSearch',
'AvatarCheck.excelAndXml',
'AvatarCheck.searchCardMsg',
'AvatarCheck.receitp',
'AvatarCheck.addFailed',
'AvatarCheck.searchCard',
'AvatarCheck.task',
'AvatarCheck.createTaskList',
'AvatarCheck.dispatchTask',
'tm.pagination'
]).config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', '$qProvider', function ($locationProvider, $routeProvider, localStorageServiceProvider, $qProvider) {
$locationProvider.hashPrefix('!');
$routeProvider.otherwise({redirectTo: '/searchCardMsg'});
$routeProvider.otherwise({redirectTo: '/xmlAndSearch'});
localStorageServiceProvider.setPrefix('AvatarCheck')
$qProvider.errorOnUnhandledRejections(false)
}])
.controller('appCtrl', function ($scope, $location, $rootScope, HttpService, localStorageService, DebugService) {
}])
DebugService.debug("appCtrl:" + "AvatarCheck initial.")
.controller('appCtrl', function ($scope,$location, $rootScope) {
if ($rootScope.loginData == null) {
$rootScope.loginData = {userId: '用户未登录', login: false};
} else {
DebugService.debug("appCtrl:" + "Got user loginData from local storage:", $rootScope.loginData)
}
$rootScope.tab = '/searchCardMsg';
$rootScope.tab = '/xmlAndSearch';
if ($location.path() == "/excelAndSearch") {
$rootScope.tab = '/excelAndSearch';
}
if ($location.path() == "/cardProdPackage") {
$rootScope.tab = '/cardProdPackage';
}
if ($location.path() == "/xmlAndSearch") {
$rootScope.tab = '/xmlAndSearch';
}
if ($location.path() == "/cardProdUpdate") {
$rootScope.tab = '/cardProdUpdate';
}
if ($location.path() == "/uploadExcelAndSearch") {
$rootScope.tab = '/uploadExcelAndSearch';
}
if($location.path()=="/searchCardMsg"){
$rootScope.tab = '/searchCardMsg';
}
if($location.path()=="/uploadExcelAndSearch"){
$rootScope.tab='/uploadExcelAndSearch';
}
if($location.path()=="/excelAndXml"){
$rootScope.tab='/excelAndXml';
}
if ($location.path() == "/taskListDataCheck") {
$rootScope.tab = '/taskListDataCheck';
}
if ($location.path() == "/taskListPreLocating") {
$rootScope.tab = '/taskListPreLocating';
}
if ($location.path() == "/taskListPrint") {
$rootScope.tab = '/taskListPrint';
}
if ($location.path() == "/taskListQualityCheck") {
$rootScope.tab = '/taskListQualityCheck';
}
if ($location.path() == "/taskListSorting") {
$rootScope.tab = '/taskListSorting';
}
if ($location.path() == "/taskListStorage") {
$rootScope.tab = '/taskListStorage';
}
if ($location.path() == "/receitp") {
$rootScope.tab = '/receitp';
}
if ($location.path() == "/addFailed") {
$rootScope.tab = '/addFailed';
}
if ($location.path() == "/cardProdUpdate") {
$rootScope.tab = '/cardProdUpdate';
}
if ($location.path() == "/createTaskList") {
$rootScope.tab = '/createTaskList';
}
if ($location.path() == "/dispatchTask") {
$rootScope.tab = '/dispatchTask';
}
console.log($rootScope.tab)
$scope.getFocus = function (index) {
......@@ -39,5 +100,14 @@ angular.module('AvatarCheck', [
console.log($rootScope.tab)
}
$scope.doSearch = function (searchInput) {
console.log(searchInput)
// HttpService.searchCards(searchInput, function (data) {
//
// })
$rootScope.searchResult = '查询结果';
$location.path("/searchCard");
}
});
......@@ -133,6 +133,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) {
success(response.data)
})
},
searchCards: function (value, success) {
$http({
method: 'GET',
url: url
}).then(function successCallback(response) {
success(response.data)
})
}
}
});
\ No newline at end of file
<section class="content-header" style="padding-top: 1px;">
<h4>
添加废证
</h4>
</section>
\ No newline at end of file
'use strict';
angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/addFailed', {
templateUrl: 'views/addFailed/addFailed.html' + urlTimeStamp(),
controller: 'addFailedCtrl',
cache: false
});
}])
.controller('addFailedCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
});
\ No newline at end of file
<style>
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
.select2-search__field {
height:30px;
}
.ul li{
cursor: pointer;
}
.page-list .pagination {float:left;}
.page-list .pagination span {cursor: pointer;}
.page-list .pagination .separate span{cursor: default; border-top:none;border-bottom:none;}
.page-list .pagination .separate span:hover {background: none;}
.page-list .page-total {float:left; margin: 25px 20px;}
.page-list .page-total input, .page-list .page-total select{height: 26px; border: 1px solid #ddd;}
.page-list .page-total input {width: 40px; padding-left:3px;}
.page-list .page-total select {width: 50px;}
.page-list:after {
display: block;
clear: both;
content: ""
}
.page-list{
zoom: 1
}
</style>
<section class="content-header" style="padding-top: 1px;">
<h4>
制证信息打包
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary" style="padding: 15px;margin-bottom: 10px;">
<div class="box-info">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td>上传受理号:</td>
<td><input type="text" class="form-control" ng-model="applicantName" placeholder="上传受理号"></td>
<td>身份证号:</td>
<td><input type="text" class="form-control" ng-model="orderNo" placeholder="身份证号"></td>
<td>原包号:</td>
<td><input type="text" class="form-control" ng-model="number" placeholder="原包号"></td>
</tr>
<tr>
<td>新包号:</td>
<td><input type="text" class="form-control" ng-model="number" placeholder="新包号"></td>
<td>受理机关:</td>
<td><input type="text" class="form-control" ng-model="gkxx" placeholder="受理机关"></td><td>制证类型:</td>
<td style="text-align: left;">
<select class="form-control select2" id="county" multiple="multiple" data-placeholder="--请选择制证类型--"
style="width: 100%;" ng-model="typeCode">
<option value="{{county}}" ng-repeat="county in countyList track by $index">{{county}}</option>
</select>
</td>
</tr>
<tr>
<td>打包类型:</td>
<td style="text-align: left;">
<select class="form-control select2" id="packageType"
ng-model="packageType">
<option value="">--请选择打包类型--</option>
<option value="1"></option>
<option value="-1"></option>
</select>
</td>
<td>制证包上传时间</td>
<td>
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker1" readonly/>
</div>
</td>
</tr>
</table>
</div>
<div class="box-footer" style="text-align: right;padding-bottom: 0;">
<button class="btn btn-primary" ng-click="doQuery()">查询</button>
<button type="submit" class="btn btn-info" ng-click="downloadXml()">下载制证包</button>
</div>
</div>
<div class="box box-default">
<strong class="box-header">制证信息详情</strong>
<div class="box-info" style="padding: 10px;">
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>NO.</th>
<th>上传受理号</th>
<th>姓名</th>
<th>身份证号</th>
<th>原包号</th>
<th>新包号</th>
<th>制证类型</th>
<th>是否打包</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>411032546565445</td>
<td>张三</td>
<td>130133195608240013</td>
<td>1321454113</td>
<td>1213134556</td>
<td>普通证</td>
<td>
<input type="radio" name="isPackage" value="1" checked>
<input type="radio" name="isPackage" value="2">
</td>
</tr>
<tr>
<td>2</td>
<td>411032546565445</td>
<td>里斯</td>
<td>130133195608240013</td>
<td>1321454113</td>
<td>1213134556</td>
<td>邮寄证</td>
<td>
<input type="radio" name="isPackage1" value="1" checked>
<input type="radio" name="isPackage1" value="2">
</td>
</tr>
<tr ng-repeat="item in postData | orderBy:item.id" ng-click="showDetail(item)" style="cursor: pointer;">
<td>{{item.id}}</td>
<td>{{item.ddh}}</td>
<td>{{item.yjh}}</td>
<td>{{item.fxyjh}}</td>
<td>{{item.sbsll}}</td>
<td>{{item.sqrxm}}</td>
<td>{{item.sjrlxfs}}</td>
<td>{{item.sjrdz}}</td>
<td>{{item.printTime | date:"yyyy-MM-dd hh:mm:ss"}}</td>
</tr>
</tbody>
</table>
<p style="color:#9f191f;"><span style="margin-right: 15px;">普通证:3000</span><span style="margin-right: 15px;">邮寄证:2000</span><span>禁用数:2</span></p>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div>
<h3 ng-if="postData.length==0">暂无记录。</h3>
</div>
</div>
</div>
\ No newline at end of file
'use strict';
angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 'tm.pagination'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/cardProdPackage', {
templateUrl: 'views/cardProdPackage/cardProdPackage.html' + urlTimeStamp(),
controller: 'cardProdPackageCtrl',
cache: false
});
}])
.controller('cardProdPackageCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
$('.select2').select2();
//Initialize Select2 Elements
$('.select2').select2({
minimumResultsForSearch: -1
});
//Date picker
$('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.paginationConf.totalItems = 50;
});
\ No newline at end of file
<style>
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
.select2-search__field {
height:30px;
}
.ul li{
cursor: pointer;
}
.page-list .pagination {float:left;}
.page-list .pagination span {cursor: pointer;}
.page-list .pagination .separate span{cursor: default; border-top:none;border-bottom:none;}
.page-list .pagination .separate span:hover {background: none;}
.page-list .page-total {float:left; margin: 25px 20px;}
.page-list .page-total input, .page-list .page-total select{height: 26px; border: 1px solid #ddd;}
.page-list .page-total input {width: 40px; padding-left:3px;}
.page-list .page-total select {width: 50px;}
.page-list:after {
display: block;
clear: both;
content: ""
}
.page-list{
zoom: 1
}
</style>
<section class="content-header" style="padding-top: 1px;">
<h4>
制证信息管理
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary" style="padding: 15px;margin-bottom: 10px;">
<div class="box-info">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td>上传受理号:</td>
<td><input type="text" class="form-control" ng-model="applicantName" placeholder="上传受理号"></td>
<td>身份证号:</td>
<td><input type="text" class="form-control" ng-model="orderNo" placeholder="身份证号"></td>
<td>姓名:</td>
<td><input type="text" class="form-control" ng-model="number" placeholder="姓名"></td>
</tr>
<tr>
<td>包号:</td>
<td><input type="text" class="form-control" ng-model="number" placeholder="包号"></td>
<td>导入日期:</td>
<td>
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker1" readonly/>
</div>
</td>
<td>制证类型:</td>
<td style="text-align: left;">
<select class="form-control select2" id="county" multiple="multiple" data-placeholder="--请选择制证类型--"
style="width: 100%;" ng-model="typeCode">
<option value="{{county}}" ng-repeat="county in countyList track by $index">{{county}}</option>
</select>
</td>
</tr>
<tr>
<td>打包类型:</td>
<td style="text-align: left;">
<select class="form-control select2" id="packageType"
ng-model="packageType">
<option value="">--请选择打包类型--</option>
<option value="1"></option>
<option value="-1"></option>
</select>
</td>
<td>起始有效期:</td>
<td>
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker2" readonly/>
</div>
</td>
<td>截至有效期:</td>
<td>
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker3" readonly/>
</div>
</td>
</tr>
</table>
</div>
<div class="box-footer" style="text-align: right;padding-bottom: 0;">
<button class="btn btn-primary" ng-click="doQuery()">查询</button>
<button type="submit" class="btn btn-danger" ng-click="downloadXml()">删除</button>
</div>
</div>
<div class="box box-default">
<strong class="box-header">查询结果</strong>
<div class="box-info" style="padding: 10px;">
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>NO.</th>
<th>上传地市代码</th>
<th>原包号</th>
<th>记录数</th>
<th>邮寄证</th>
<th>未打包数</th>
<th>导入时间</th>
<th>解析日期</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>11020</td>
<td>11020180227001</td>
<td>80</td>
<td>30</td>
<td></td>
<td>20190228</td>
<td>20190228</td>
</tr>
<tr>
<td>2</td>
<td>11020</td>
<td>11020190228002</td>
<td>80</td>
<td>30</td>
<td></td>
<td>20190301</td>
<td>20190301</td>
</tr>
<tr>
<td>3</td>
<td>11020</td>
<td>11020190228003</td>
<td>80</td>
<td></td>
<td>80</td>
<td>20190301</td>
<td></td>
</tr>
<tr ng-repeat="item in postData | orderBy:item.id" ng-click="showDetail(item)" style="cursor: pointer;">
<td>{{item.id}}</td>
<td>{{item.ddh}}</td>
<td>{{item.yjh}}</td>
<td>{{item.fxyjh}}</td>
<td>{{item.sbsll}}</td>
<td>{{item.sqrxm}}</td>
<td>{{item.sjrlxfs}}</td>
<td>{{item.sjrdz}}</td>
<td>{{item.printTime | date:"yyyy-MM-dd hh:mm:ss"}}</td>
</tr>
</tbody>
</table>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div>
<h3 ng-if="postData.length==0">暂无记录。</h3>
</div>
</div>
</div>
\ No newline at end of file
'use strict';
angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/cardProdUpdate', {
templateUrl: 'views/cardProdUpdate/cardProdUpdate.html' + urlTimeStamp(),
controller: 'cardProdUpdateCtrl',
cache: false
});
}])
.controller('cardProdUpdateCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
$rootScope.hasOpen = false;
$('.select2').select2();
//Initialize Select2 Elements
$('.select2').select2({
minimumResultsForSearch: -1
});
//Date picker
$('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
//Date picker
$('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
//Date picker
$('#datepicker3').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.paginationConf.totalItems = 50;
});
\ No newline at end of file
<section class="content-header" style="padding-top: 1px;">
<h4>
创建任务单
</h4>
</section>
\ No newline at end of file
'use strict';
angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm.pagination'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/createTaskList', {
templateUrl: 'views/createTaskList/createTaskList.html' + urlTimeStamp(),
controller: 'createTaskListCtrl',
cache: false
});
}])
.controller('createTaskListCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout, $filter, ngDialog) {
});
<section class="content-header" style="padding-top: 1px;">
<h4>
下发任务单
</h4>
</section>
\ No newline at end of file
'use strict';
angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.pagination'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/dispatchTask', {
templateUrl: 'views/dispatchTask/dispatchTask.html' + urlTimeStamp(),
controller: 'dispatchTaskCtrl',
cache: false
});
}])
.controller('createTaskListCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout, $filter, ngDialog) {
});
<style>
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
.select2-search__field {
height:30px;
}
.ul li{
cursor: pointer;
}
.page-list .pagination {float:left;}
.page-list .pagination span {cursor: pointer;}
.page-list .pagination .separate span{cursor: default; border-top:none;border-bottom:none;}
.page-list .pagination .separate span:hover {background: none;}
.page-list .page-total {float:left; margin: 25px 20px;}
.page-list .page-total input, .page-list .page-total select{height: 26px; border: 1px solid #ddd;}
.page-list .page-total input {width: 40px; padding-left:3px;}
.page-list .page-total select {width: 50px;}
.page-list:after {
display: block;
clear: both;
content: ""
}
.page-list{
zoom: 1
}
</style>
<section class="content-header" style="padding-top: 1px;">
<h4>
邮寄信息导入与查询
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary">
<strong class="box-header">邮寄信息导入</strong>
<div class="box-primary">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td>订单起始日期</td>
<td>
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker1" readonly/>
</div>
</td>
<td>
订单截止日期
</td>
<td>
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker2" readonly/>
</div>
</td>
</tr>
<tr>
<td>选择Excel文件</td>
<td colspan="2">
<input type="file" id="id_file_photo_for_check" class="file" data-show-preview="true" multiple/>
</td>
<td style="text-align: left;"><button class="btn btn-primary" ng-click="uploadFile()">上传</button></td>
</tr>
</table>
</div>
</div>
<div class="box box-primary">
<strong class="box-header">邮寄信息查询</strong>
<div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td>文件名称:</td>
<td>
<input type="text" class="form-control" ng-model="fileName" placeholder="文件名称">
</td>
<td>
状态
</td>
<td>
<select class="form-control select2" id="state" ng-model="state">
<option value="">--请选择解析状态--</option>
<option value="1">已解析</option>
<option value="-1">未解析</option>
</select>
</td>
<td>
<button class="btn btn-primary">查询</button>
</td>
</tr>
</table>
<table class="table table-bordered table-hover postTable">
<thead>
<tr>
<th>NO.</th>
<th>订单起始日期</th>
<th>订单截至日期</th>
<th>文件名</th>
<th>上传时间</th>
<th>解析状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>20190221</td>
<td>20190228</td>
<td>格口导出.excel</td>
<td>20190227</td>
<td>未解析</td>
<td>
<button class="btn btn-danger">删除</button>
</td>
</tr>
<tr>
<td>2</td>
<td>20190221</td>
<td>20190228</td>
<td>格口导出.excel</td>
<td>20190227</td>
<td>已解析</td>
<td>
<button class="btn btn-danger">删除</button>
</td>
</tr>
<tr ng-repeat="item in postMsgDetail">
<td>
<input ng-if="$index==0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)" checked="checked">
<input ng-if="$index!=0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)">
</td>
<td>{{item.id}}</td>
<td>{{item.ddh}}</td>
<td>{{item.yjh}}</td>
<td>{{item.fxyjh}}</td>
<td>{{item.sbsll}}</td>
<td>{{item.sjrxm}}</td>
<td>{{item.sjrlxfs}}</td>
<td>{{item.sjrdz}}</td>
<td>{{item.sqrxm}}</td>
<td>{{item.printTime | date:'yyyy-MM-dd hh:mm:ss'}}</td>
</tr>
</tbody>
</table>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div>
<h3 ng-if="postMsgDetail.length==0">暂无记录。</h3>
<div class="row" style="padding:0 25px;" ng-if="postMsgDetail.length>0">
<div class="col-md-11"></div>
<div class="col-md-1" style="text-align: right;">
<button id="rev-btn" class="btn btn-primary" data-loading-text="Loading..." ng-click="PreviewMytableRotate()" type="button">打印</button>
</div>
</div>
</div>
</div>
</div>
'use strict';
angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.pagination'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/excelAndSearch', {
templateUrl: 'views/excelAndSearch/excelAndSearch.html' + urlTimeStamp(),
controller: 'excelAndSearchCtrl',
cache: false
});
}])
.controller('excelAndSearchCtrl', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
$("#id_file_photo_for_check").fileinput({
language: 'zh',
showUpload: false,
showCaption: true,
maxFileCount: 1024,
showPreview: true,
maxFileSize: 1024 * 30
});
//Date picker
$('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.paginationConf.totalItems = 50;
});
\ No newline at end of file
<style>
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
</style>
<section class="content-header" style="padding-top: 1px;">
<h4>
EXCEL和XML
</h4>
</section>
<div style="padding: 15px;">
<div class="row">
<div class="col-lg-5 col-xs-5">
<!-- small box -->
<div class="small-box bg-aqua" style="padding-bottom: 10px;">
<div class="inner">
<h3 ng-if="excelAndxml.excelExist">{{excelAndxml.excelName}}</h3>
<h3 ng-if="!excelAndxml.excelExist">0</h3>
<p>Excel文件</p>
</div>
<div class="icon">
<i class="fa fa-file-excel-o"></i>
</div>
</div>
</div>
<!-- ./col -->
<div class="col-lg-5 col-xs-5">
<!-- small box -->
<div class="small-box bg-green" style="padding-bottom: 10px;">
<div class="inner">
<h3 ng-if="excelAndxml.xmlExist">{{excelAndxml.xmlNameList.length}}</h3>
<h3 ng-if="!excelAndxml.xmlExist">0</h3>
<p>Xml文件</p>
</div>
<div class="icon">
<i class="fa fa-file-code-o"></i>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-10" style="text-align: right;">
<button class="btn btn-primary" ng-click="analyseExcelAndXml()">解析</button>
<button class="btn btn-primary" ng-click="getAnalyseProgress()">查看进度</button>
</div>
</div>
<div class="box box-primary" style="margin-top: 20px;">
<div class="box-header">查询无制证信息记录</div>
<div class="box-info" style="padding: 10px;">
<div class="input-group input-group-sm date col-lg-2">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/>
<span class="input-group-btn">
<button type="button" class="btn btn-primary btn-flat" ng-click="searchRecordsNotMatched()">查询</button>
</span>
</div>
<table class="table table-bordered table-striped table-responsive" style="margin-top: 10px;" ng-if="records.length>0">
<thead>
<tr>
<th>NO.</th>
<th>订单号</th>
<th>邮件号</th>
<th>反向邮件号</th>
<th>受理号</th>
<th>收件人</th>
<th>联系方式</th>
<th>地址</th>
<th>打印时间</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in records | orderBy:item.sequence">
<td>{{item.id}}</td>
<td>{{item.ddh}}</td>
<td>{{item.yjh}}</td>
<td>{{item.fxyjh}}</td>
<td>{{item.sbsll}}</td>
<td>{{item.sjrxm}}</td>
<td>{{item.sjrlxfs}}</td>
<td>{{item.sjrdz}}</td>
<td>{{item.printTime | date:'yyyy-MM-dd hh:mm:ss'}}</td>
</tr>
</tbody>
</table>
<h3 ng-if="records.length==0">暂无记录。</h3>
</div>
</div>
</div>
\ No newline at end of file
<section class="content-header" style="padding-top: 1px;">
<h4>
交接单
</h4>
</section>
\ No newline at end of file
'use strict';
angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/receitp', {
templateUrl: 'views/receitp/receitp.html' + urlTimeStamp(),
controller: 'receitpCtrl',
cache: false
});
}])
.controller('receitpCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
});
\ No newline at end of file
<section class="content-header" style="padding-top: 1px;">
<h4>
<div style="text-align: left;cursor:pointer;"><a ng-click="goBack()"><i class="fa fa-backward"></i> 完成返回</a></div>
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary">
<strong class="box-header">
查询结果
</strong>
<div class="box-info" style="padding: 10px;">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
证件信息
</h3>
</div>
<div class="panel-body" style="padding-bottom: 0;">
<table class="table table-hover">
<thead>
<tr>
<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>
</tr>
</thead>
<tbody>
<tr>
<td>海淀区</td>
<td>02213546871</td>
<td>伯阳</td>
<td>普通证</td>
<td>130133199405250011</td>
<td></td>
<td>19940525</td>
<td>赵县公安局</td>
<td>20090228</td>
<td>20190228</td>
<td>已出库</td>
<td>赵县派出所</td>
<td>快证</td>
</tr>
</tbody>
</table>
</div>
<div style="text-align:right;padding: 10px;padding-top: 0;">
<button class="btn btn-info">添加快证</button>
<button class="btn btn-danger">退证</button>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
循环单信息
</h3>
</div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<th>编号</th>
<th>地区</th>
<th>制证类型</th>
<th>日期</th>
<th>工序</th>
<th>操作时间</th>
<th>机器号</th>
<th>出库时间</th>
<th>入库时间</th>
</thead>
<tbody>
<tr>
<td>20190228001</td>
<td>海淀区</td>
<td>普通证</td>
<td>20190221</td>
<td>仓库</td>
<td>20190228</td>
<td>1</td>
<td>20190226</td>
<td>20190227</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
组号信息
</h3>
</div>
<div class="panel-body">
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
'use strict';
angular.module('AvatarCheck.searchCard', ['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/searchCard', {
templateUrl: 'views/searchCard/searchCard.html' + urlTimeStamp(),
controller: 'searchCardCtrl',
cache: false
});
}])
.controller('searchCardCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter, $location) {
$scope.goBack = function () {
$location.path("/dataCheckTask");
}
});
\ No newline at end of file
This diff is collapsed.
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-right: 10px;" ng-click="searchCurrent()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox"></th>
<th>任务单编号</th>
<th>地区</th>
<th>组号</th>
<th>合格数</th>
<th>不合格数</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.county}}</a></td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-attachment">{{task.valid}}</td>
<td class="mailbox-date">{{task.invalid}}</td>
<td class="mailbox-date"><a href="#">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-right: 10px;" ng-click="searchCurrent()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox"></th>
<th>任务单编号</th>
<th>地区</th>
<th>组号</th>
<th>合格数</th>
<th>不合格数</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.county}}</a></td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-attachment">{{task.valid}}</td>
<td class="mailbox-date">{{task.invalid}}</td>
<td class="mailbox-date"><a href="#">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-right: 10px;" ng-click="searchCurrent()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox"></th>
<th>任务单编号</th>
<th>地区</th>
<th>组号</th>
<th>合格数</th>
<th>不合格数</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.county}}</a></td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-attachment">{{task.valid}}</td>
<td class="mailbox-date">{{task.invalid}}</td>
<td class="mailbox-date"><a href="#">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-right: 10px;" ng-click="searchCurrent()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox"></th>
<th>任务单编号</th>
<th>地区</th>
<th>组号</th>
<th>合格数</th>
<th>不合格数</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.county}}</a></td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-attachment">{{task.valid}}</td>
<td class="mailbox-date">{{task.invalid}}</td>
<td class="mailbox-date"><a href="#">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-right: 10px;" ng-click="searchCurrent()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox"></th>
<th>任务单编号</th>
<th>地区</th>
<th>组号</th>
<th>合格数</th>
<th>不合格数</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.county}}</a></td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-attachment">{{task.valid}}</td>
<td class="mailbox-date">{{task.invalid}}</td>
<td class="mailbox-date"><a href="#">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<strong>任务单详情</strong>
<div class="box-tools pull-right">
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="choseDate" id="datepicker" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;" ng-click="searchHistory()">查询历史</button>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-right: 10px;" ng-click="searchCurrent()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="nav-tabs-custom clearfix" style="margin-bottom: 0;">
<ul class="nav nav-tabs">
<li ng-class="{true: 'active', false: 'inactive'}[tab.isActive]"
ng-repeat="tab in cycleSheetData track by $index">
<a ng-click="func($index,tab.typeCode)">
<ul style="margin: 0;padding: 0;">
<li style="font-size: 16px;">{{tab.typeName}}</li>
<li style="text-align: center;">{{tab.typeSum}}</li>
</ul>
</a>
</li>
</ul>
</div>
<div ng-repeat="type in cycleSheetData track by $index" class="table-responsive mailbox-messages" ng-show="currentTab==$index">
<table class="table table-hover table-striped">
<thead>
<tr>
<th><input type="checkbox"></th>
<th>任务单编号</th>
<th>地区</th>
<th>组号</th>
<th>合格数</th>
<th>不合格数</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in type.countyList">
<td><input type="checkbox" class="icheckbox_flat-blue"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.county}}</a></td>
<td class="mailbox-subject">{{task.groupNo}}</td>
<td class="mailbox-attachment">{{task.valid}}</td>
<td class="mailbox-date">{{task.invalid}}</td>
<td class="mailbox-date"><a href="#">组号列表</a></td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
<!-- /. box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
......@@ -37,16 +37,16 @@
<div class="box-info">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td width="15%">申请人姓名:</td>
<td width="35%"><input type="text" class="form-control" ng-model="applicantName" placeholder="申请人姓名"></td>
<td width="15%">订单号:</td>
<td width="35%"><input type="text" class="form-control" ng-model="orderNo" placeholder="订单号"></td>
<td width="10%">申请人姓名:</td>
<td width="23%"><input type="text" class="form-control" ng-model="applicantName" placeholder="申请人姓名"></td>
<td width="12%">订单号:</td>
<td width="23%"><input type="text" class="form-control" ng-model="orderNo" placeholder="订单号"></td>
<td width="10%">序号:</td>
<td width="22%"><input type="text" class="form-control" ng-model="number" placeholder="序号"></td>
</tr>
<tr>
<td width="15%">序号:</td>
<td width="35%"><input type="text" class="form-control" ng-model="number" placeholder="序号"></td>
<td width="15%">打印状态:</td>
<td width="35%" style="text-align: left;">
<td width="10%">打印状态:</td>
<td width="23%" style="text-align: left;">
<select class="form-control select2" id="print"
ng-model="isPrint">
<option value="">--请选择打印状态--</option>
......@@ -54,19 +54,19 @@
<option value="-1">未打印</option>
</select>
</td>
<td width="12%">格口:</td>
<td width="23%"><input type="text" class="form-control" ng-model="gkxx" placeholder="格口"></td>
<td width="10%">区县:</td>
<td width="22%" style="text-align: left;">
<select class="form-control select2" id="county" multiple="multiple" data-placeholder="--请选择区县--"
style="width: 100%;" ng-model="currentCounty">
<option value="{{county}}" ng-repeat="county in countyList track by $index">{{county}}</option>
</select>
</td>
</tr>
<td width="15%">格口:</td>
<td width="35%"><input type="text" class="form-control" ng-model="gkxx" placeholder="格口"></td>
<td width="15%">区县:</td>
<td width="35%" style="text-align: left;">
<select class="form-control select2" id="county" multiple="multiple" data-placeholder="--请选择区县--"
style="width: 100%;" ng-model="currentCounty">
<option value="{{county}}" ng-repeat="county in countyList track by $index">{{county}}</option>
</select>
</td>
<tr>
<td width="15%">Excel导入时间:</td>
<td width="35%">
<td width="10%">Excel导入时间:</td>
<td width="23%">
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
......
......@@ -12,8 +12,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
.controller('uploadExcelAndSearchCtrl', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
//Date picker
$('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
......
<style>
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
.select2-search__field {
height:30px;
}
.ul li{
cursor: pointer;
}
.page-list .pagination {float:left;}
.page-list .pagination span {cursor: pointer;}
.page-list .pagination .separate span{cursor: default; border-top:none;border-bottom:none;}
.page-list .pagination .separate span:hover {background: none;}
.page-list .page-total {float:left; margin: 25px 20px;}
.page-list .page-total input, .page-list .page-total select{height: 26px; border: 1px solid #ddd;}
.page-list .page-total input {width: 40px; padding-left:3px;}
.page-list .page-total select {width: 50px;}
.page-list:after {
display: block;
clear: both;
content: ""
}
.page-list{
zoom: 1
}
</style>
<section class="content-header" style="padding-top: 1px;">
<h4>
制证信息导入与查询
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary">
<strong class="box-header">制证信息导入</strong>
<div class="box-primary">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td width="10%">选择xml文件</td>
<td colspan="2" width="35%">
<input type="file" id="id_file_photo_for_check" class="file" data-show-preview="true" multiple/>
</td>
<td style="text-align: left;"><button class="btn btn-primary" ng-click="uploadFile()">上传</button></td>
</tr>
</table>
</div>
</div>
<div class="box box-primary">
<strong class="box-header">制证信息查询</strong>
<div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td>Excel导入时间:</td>
<td>
<div class="input-group date" style="width: 65%">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control pull-right" ng-model="choseDate" id="datepicker" readonly/>
</div>
</td>
<td>
状态
</td>
<td>
<select class="form-control select2" id="state" ng-model="state">
<option value="">--请选择解析状态--</option>
<option value="1">已解析</option>
<option value="-1">未解析</option>
</select>
</td>
<td>
<button class="btn btn-primary">查询</button>
</td>
</tr>
</table>
<table class="table table-bordered table-hover postTable">
<thead>
<tr>
<th>NO.</th>
<th>制证包数量</th>
<th>证件数量</th>
<th>普通证数量</th>
<th>邮寄证数量</th>
<th>解析状态</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>300</td>
<td>24000</td>
<td></td>
<td></td>
<td>
<button class="btn btn-primary" ng-click="analysis()">解析</button>
<button class="btn btn-danger">删除</button>
</td>
</tr>
<tr>
<td>2</td>
<td>100</td>
<td>8000</td>
<td>8000</td>
<td>0</td>
<td>
<button class="btn btn-primary" ng-click="analysis()">解析</button>
<button class="btn btn-danger">删除</button>
</td>
</tr>
<tr ng-repeat="item in postMsgDetail">
<td>
<input ng-if="$index==0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)" checked="checked">
<input ng-if="$index!=0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)">
</td>
<td>{{item.id}}</td>
<td>{{item.ddh}}</td>
<td>{{item.yjh}}</td>
<td>{{item.fxyjh}}</td>
<td>{{item.sbsll}}</td>
<td>{{item.sjrxm}}</td>
<td>{{item.sjrlxfs}}</td>
<td>{{item.sjrdz}}</td>
<td>{{item.sqrxm}}</td>
<td>{{item.printTime | date:'yyyy-MM-dd hh:mm:ss'}}</td>
</tr>
</tbody>
</table>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div>
<h3 ng-if="postMsgDetail.length==0">暂无记录。</h3>
<div class="row" style="padding:0 25px;" ng-if="postMsgDetail.length>0">
<div class="col-md-11"></div>
<div class="col-md-1" style="text-align: right;">
<button id="rev-btn" class="btn btn-primary" data-loading-text="Loading..." ng-click="PreviewMytableRotate()" type="button">打印</button>
</div>
</div>
</div>
</div>
</div>
'use strict';
angular.module('AvatarCheck.excelAndXml', ['ngRoute', 'AvatarCheck.http'])
angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.pagination'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/excelAndXml', {
templateUrl: 'views/excelAndXml/excelAndXml.html' + urlTimeStamp(),
controller: 'excelAndXmlCtrl',
$routeProvider.when('/xmlAndSearch', {
templateUrl: 'views/xmlAndSearch/xmlAndSearch.html' + urlTimeStamp(),
controller: 'xmlAndSearchCtrl',
cache: false
});
}])
.controller('excelAndXmlCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
$rootScope.hasOpen = false;
var getExcelAndXml = function () {
HttpService.getExcelAndXml(function (data) {
$scope.excelAndxml = data;
})
}
getExcelAndXml()
$scope.analyseExcelAndXml = function () {
HttpService.analyse(function (data) {
if (data.analyse) {
MessageService.showAlert("目前没有解析包。")
}
})
ngDialog.open({
template: 'dialogs/alert.html' + urlTimeStamp(),
width: 600,
cache: false,
controller: ['$scope', function ($scope) {
$scope.msgText = "解析中..."
}]
});
}
$scope.getAnalyseProgress = function () {
HttpService.getProgress(function (data) {
if (data.analyse) {
MessageService.showAlert("一共有" + data.xmlCount + "解析包,已解析数据包" + data.xmlAnalyseCount + "个")
} else {
MessageService.showAlert("暂无解析包。")
getExcelAndXml()
}
})
}
.controller('xmlAndSearchCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout, $filter, ngDialog) {
$("#id_file_photo_for_check").fileinput({
language: 'zh',
showUpload: false,
showCaption: true,
maxFileCount: 1024,
showPreview: true,
maxFileSize: 1024 * 30
});
//Date picker
$('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
......@@ -55,12 +27,26 @@ angular.module('AvatarCheck.excelAndXml', ['ngRoute', 'AvatarCheck.http'])
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) {
$scope.records = data;
})
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.paginationConf.totalItems = 50;
$scope.analysis = function () {
ngDialog.open({
template: 'dialogs/alert.html' + urlTimeStamp(),
width: 600,
cache: false,
controller: ['$scope', function ($scope) {
$scope.msgText = "弹出框"
}]
});
}
});
\ No newline at end of file
});
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