Commit 8fec9558 authored by dahai's avatar dahai

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

parents 1a33eeef 4e59f7d1
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.service.PersonPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("FilesAnalysis")
public class FilesAnalysisApi {
@Autowired
private PersonPostService personPostService;
@RequestMapping("anailsis")
public boolean filesAnailsis(@RequestParam(value = "fileId") String fileId,@RequestParam(value = "creatTime") String creatTime){
personPostService.updateIsPost(fileId,creatTime);
return true;
}
}
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.PersonPostEntity; import com.yxproject.start.entity.PersonPostEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.*;
import org.apache.ibatis.annotations.Update; import org.omg.CORBA.PUBLIC_MEMBER;
import java.util.List;
import java.util.List;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -13,4 +17,20 @@ public interface PersonPostMapper { ...@@ -13,4 +17,20 @@ public interface PersonPostMapper {
@Update("insert into PERSON_POST ( WAYBILL_NUMBER,BACK_WAYBILL_NUMBER,ORDER_NUMBER,CREATE_DATE,OPENID,WC_PLAY_ORDER_NUMBER,PLAY_STATE,ORDER_STATE,APPLICANT_NAME,SENDER_NAME,SENDER_PHONE,SENDER_ADDRESS,RECIPIENT_NAME,RECIPIENT_PHONE,RECIPIENT_ADDRESS,ORDER_BLANK_NUMBER,GET_TO_PROVINCE,GET_TO_CITY,GET_TO_COUNTY,BUSINESS_TYPE,LATTICE_MOUTH_INFORMATION,NATURE_OF_THE_INTERNAL,NATURE_OF_THE_INFORMATION,FIRST_WHITE,UPLOAD_DATE) values (#{waybillNumber},#{backWaybillNumber},#{orderNumber},#{createDate},#{openid},#{wcPlayOrderNumber},#{playState},#{orderState},#{applicantName},#{senderName},#{senderPhone},#{senderAddress},#{recipientName},#{recipientPhone},#{recipientAddress},#{orderBlankNumber},#{getToProvince},#{getToCity},#{getToCounty},#{businessType},#{latticeMouthInformation},#{natureOfTheInternal},#{natureOfTheInformation},#{firstWhite},#(uploadDate))") @Update("insert into PERSON_POST ( WAYBILL_NUMBER,BACK_WAYBILL_NUMBER,ORDER_NUMBER,CREATE_DATE,OPENID,WC_PLAY_ORDER_NUMBER,PLAY_STATE,ORDER_STATE,APPLICANT_NAME,SENDER_NAME,SENDER_PHONE,SENDER_ADDRESS,RECIPIENT_NAME,RECIPIENT_PHONE,RECIPIENT_ADDRESS,ORDER_BLANK_NUMBER,GET_TO_PROVINCE,GET_TO_CITY,GET_TO_COUNTY,BUSINESS_TYPE,LATTICE_MOUTH_INFORMATION,NATURE_OF_THE_INTERNAL,NATURE_OF_THE_INFORMATION,FIRST_WHITE,UPLOAD_DATE) values (#{waybillNumber},#{backWaybillNumber},#{orderNumber},#{createDate},#{openid},#{wcPlayOrderNumber},#{playState},#{orderState},#{applicantName},#{senderName},#{senderPhone},#{senderAddress},#{recipientName},#{recipientPhone},#{recipientAddress},#{orderBlankNumber},#{getToProvince},#{getToCity},#{getToCounty},#{businessType},#{latticeMouthInformation},#{natureOfTheInternal},#{natureOfTheInformation},#{firstWhite},#(uploadDate))")
public boolean savePersonPost(PersonPostEntity personPostEntity); public boolean savePersonPost(PersonPostEntity personPostEntity);
@Update("update prepro_person p \n" +
"set IS_POST=1\n" +
"where p.JMSFZSLH\n" +
" in ( select p.JMSFZSLH \n" +
" from prepro_person p \n" +
" left join files files \n" +
" on p.file_id=files.ID \n" +
" where JMSFZSLH \n" +
" in(select FIRST_WHITE \n" +
" from person_post \n" +
" where FILE_ID=#{fileId}) \n" +
" and files.CREAT_TIME=#{creatTime} );")
public boolean updateIsPost(@Param("fileId")String fileId,@Param("creatTime") String creatTime);
@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);
} }
...@@ -25,6 +25,7 @@ public interface PreproPersonMapper { ...@@ -25,6 +25,7 @@ public interface PreproPersonMapper {
@Update("UPDATE PREPRO_PERSON SET IS_POST=#{isPost} where JMSFZSLH=#{jmsfzslh}") @Update("UPDATE PREPRO_PERSON SET IS_POST=#{isPost} where JMSFZSLH=#{jmsfzslh}")
public boolean updatePreproPersonEntity(PreproPersonEntity personEntity); public boolean updatePreproPersonEntity(PreproPersonEntity personEntity);
/*按条件查询制证数据*/ /*按条件查询制证数据*/
@Select("select * from PREPRO_PERSON \n" + @Select("select * from PREPRO_PERSON \n" +
"left join files on PREPRO_PERSON.FILE_ID = files.ID\n" + "left join files on PREPRO_PERSON.FILE_ID = files.ID\n" +
......
...@@ -2,6 +2,7 @@ package com.yxproject.start.service; ...@@ -2,6 +2,7 @@ package com.yxproject.start.service;
import com.yxproject.start.entity.PersonPostEntity; import com.yxproject.start.entity.PersonPostEntity;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
...@@ -9,9 +10,14 @@ import java.util.List; ...@@ -9,9 +10,14 @@ import java.util.List;
* 2019/2/19 15:01 * 2019/2/19 15:01
*/ */
public interface PersonPostService { public interface PersonPostService {
/** /**
* 导入个人邮寄异常信息 * 解析制证包
* @param fileId
* @param creatTime
* @return
*/ */
public boolean savePersonPost(List<PersonPostEntity> personPostEntities); public boolean updateIsPost(String fileId,String creatTime);
public boolean savePersonPost(List<PersonPostEntity> personPostEntities);
} }
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.PersonPostEntity; import com.yxproject.start.entity.PersonPostEntity;
import com.yxproject.start.entity.PreproPersonEntity;
import com.yxproject.start.mapper.PersonPostMapper; import com.yxproject.start.mapper.PersonPostMapper;
import com.yxproject.start.mapper.PreproPersonMapper; import com.yxproject.start.mapper.PreproPersonMapper;
import com.yxproject.start.service.PersonPostService; import com.yxproject.start.service.PersonPostService;
...@@ -9,7 +8,6 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -9,7 +8,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -21,8 +19,7 @@ import java.util.List; ...@@ -21,8 +19,7 @@ import java.util.List;
public class PersonPostServiceImpl implements PersonPostService { public class PersonPostServiceImpl implements PersonPostService {
@Autowired @Autowired
private PersonPostMapper personPostMapper; private PersonPostMapper personPostMapper;
@Autowired
private PreproPersonMapper preproPersonMapper;
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean savePersonPost(List<PersonPostEntity> personPostEntities) { public boolean savePersonPost(List<PersonPostEntity> personPostEntities) {
...@@ -32,4 +29,10 @@ public class PersonPostServiceImpl implements PersonPostService { ...@@ -32,4 +29,10 @@ public class PersonPostServiceImpl implements PersonPostService {
} }
return true; return true;
} }
@Override
public boolean updateIsPost(String fileId, String creatTime) {
personPostMapper.updateIsPost(fileId,creatTime);
return true;
}
} }
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge;charset=gb2312"> <meta http-equiv="X-UA-Compatible" content="IE=edge;charset=gb2312">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面任何其他内容都*必须*跟随其后 --> <!-- 上述3个meta标签*必须*放在最前面任何其他内容都*必须*跟随其后 -->
<title>邮寄智能读卡热敏纸打印系统-首页</title> <title>北京制证辅助平台</title>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
...@@ -58,28 +58,32 @@ ...@@ -58,28 +58,32 @@
<!-- AdminLTE Skins. Choose a skin from the css/skins --> <!-- AdminLTE Skins. Choose a skin from the css/skins -->
<link rel="stylesheet" href="newTheme/dist/css/skins/_all-skins.min.css"> <link rel="stylesheet" href="newTheme/dist/css/skins/_all-skins.min.css">
<!-- AdminLTE App --> <!-- AdminLTE App -->
<script src="newTheme/dist/js/adminlte.min.js"></script> <script src="newTheme/dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes --> <!-- AdminLTE for demo purposes -->
<script src="newTheme/dist/js/demo.js"></script> <script src="newTheme/dist/js/demo.js"></script>
<script src="components/ngDialog/js/ngDialog.js"></script> <script src="components/ngDialog/js/ngDialog.js"></script>
<link rel="stylesheet" href="css/dialog.css"> <link rel="stylesheet" href="css/dialog.css">
<link rel="stylesheet" href="components/ngDialog/css/myth/ngDialog.css"> <link rel="stylesheet" href="components/ngDialog/css/myth/ngDialog.css">
<link rel="stylesheet" href="components/ngDialog/css/myth/ngDialog-theme-default.css"> <link rel="stylesheet" href="components/ngDialog/css/myth/ngDialog-theme-default.css">
<link rel="stylesheet" href="newTheme/dist/css/index.css"> <link rel="stylesheet" href="newTheme/dist/css/index.css">
<script language="javascript" src="components/js/LodopFuncs.js"></script>
</head> </head>
<OBJECT classid="clsid:18EE8930-6993-4ADA-B8BB-02BA5820AC94" id="aaa" width="0px" height="0px" style="float: left;" CODEBASE="plugin/Termb.cab#version=1,0,0,1" VIEWASTEXT></OBJECT>
<body class="hold-transition skin-blue-light sidebar-mini"> <body class="hold-transition skin-blue-light sidebar-mini">
<div class="wrapper"> <div class="wrapper">
<header class="main-header"> <header class="main-header">
<!-- Logo --> <!-- Logo -->
<a href="index.html" class="logo" style="line-height: 50px;"> <a href="index.html" class="logo" style="line-height: 50px;">
<!-- mini logo for sidebar mini 50x50 pixels --> <!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><span>POST</span></span> <span class="logo-mini"><span>bhl</span></span>
<!-- logo for regular state and mobile devices --> <!-- logo for regular state and mobile devices -->
<span class="logo-lg"><span>对公邮寄系统</span></span> <span class="logo-lg"><span>数据核验</span></span>
</a> </a>
<!-- Header Navbar: style can be found in header.less --> <!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top"> <nav class="navbar navbar-static-top">
...@@ -87,41 +91,138 @@ ...@@ -87,41 +91,138 @@
<a class="sidebar-toggle" data-toggle="push-menu" role="button"> <a class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">Toggle navigation</span>
</a> </a>
<!--<div style="text-align: right;font-size:1.8em;line-height: 50px;color: #fff;font-family:'黑体';padding-right: 20px;">对公邮寄系统</div>--> <div style="text-align: right;font-size:1.8em;line-height: 50px;color: #fff;font-family:'黑体';padding-right: 20px;">北京制证辅助平台</div>
</nav> </nav>
</header> </header>
<aside class="main-sidebar"> <aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less --> <!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar" > <section class="sidebar" >
<!-- search form -->
<form class="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" ng-model="searchInput" placeholder="Search...">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat" ng-click="doSearch(searchInput)">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<!-- sidebar menu: : style can be found in sidebar.less --> <!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu" data-widget="tree"> <ul class="sidebar-menu" data-widget="tree">
<li class="header"> <li class="header">
导航 导航
</li> </li>
<li ng-class="{true: 'active', false: ''}[tab =='/searchCardMsg'||tab =='/searchCardMsg1']" ng-click="getFocus('/searchCardMsg')"> <li ng-class="{true: 'active', false: ''}[tab =='/xmlAndSearch']" ng-click="getFocus('/xmlAndSearch')">
<a href="#!/searchCardMsg"> <a href="#!/xmlAndSearch">
<i class="fa fa-files-o"></i> <i class="fa fa-file-code-o"></i>
<span>文件导入</span> <span>制证数据导入及查询</span>
</a> </a>
</li> </li>
<li ng-class="{true: 'active', false: ''}[tab =='/excelAndXml']" ng-click="getFocus('/excelAndXml')"> <li ng-class="{true: 'active', false: ''}[tab =='/excelAndSearch']" ng-click="getFocus('/excelAndSearch')">
<a href="#!/excelAndXml"> <a href="#!/excelAndSearch">
<i class="fa fa-file-excel-o"></i> <i class="fa fa-file-excel-o"></i>
<span>信息查询</span> <span>邮寄数据导入及查询</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/cardProdPackage']" ng-click="getFocus('/cardProdPackage')">
<a href="#!/cardProdPackage">
<i class="fa fa-folder"></i>
<span>制证信息打包</span>
</a>
</li>
<li class="treeview" ng-class="{true: 'active', false: ''}[tab =='/cardProdUpdate']" ng-click="getFocus('/cardProdUpdate')">
<a href="#">
<i class="fa fa-cog"></i> <span>系统管理</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li><a href="#!/cardProdUpdate"><i class="fa fa-circle-o"></i> 制证信息管理</a></li>
<li><a href="#!/analysisLog"><i class="fa fa-circle-o"></i> 解析日志</a></li>
<li><a href="#!/packageLog"><i class="fa fa-circle-o"></i> 打包日志</a></li>
</ul>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/searchCardMsg']" ng-click="getFocus('/searchCardMsg')">
<a href="#!/searchCardMsg">
<i class="fa fa-files-o"></i>
<span>读卡信息详情</span>
</a> </a>
</li> </li>
<li ng-class="{true: 'active', false: ''}[tab =='/uploadExcelAndSearch']" ng-click="getFocus('/uploadExcelAndSearch')"> <li ng-class="{true: 'active', false: ''}[tab =='/uploadExcelAndSearch']" ng-click="getFocus('/uploadExcelAndSearch')">
<a href="#!/uploadExcelAndSearch"> <a href="#!/uploadExcelAndSearch">
<i class="fa fa-dashboard"></i> <i class="fa fa-table"></i>
<span>证件登记</span> <span>邮寄信息查询</span>
</a> </a>
</li> </li>
<li ng-class="{true: 'active', false: ''}[tab =='/createTaskList']" ng-click="getFocus('/createTaskList')">
<a href="#!/createTaskList">
<i class="fa fa-dashboard"></i>
<span>创建任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/dispatchTask']" ng-click="getFocus('/dispatchTask')">
<a href="#!/dispatchTask">
<i class="fa fa-dashboard"></i>
<span>下发任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/taskListDataCheck']" ng-click="getFocus('/taskListDataCheck')">
<a href="#!/taskListDataCheck">
<i class="fa fa-dashboard"></i>
<span>任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/taskListPrint']" ng-click="getFocus('/taskListPrint')">
<a href="#!/taskListPrint">
<i class="fa fa-dashboard"></i>
<span>任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/taskListPreLocating']" ng-click="getFocus('/taskListPreLocating')">
<a href="#!/taskListPreLocating">
<i class="fa fa-dashboard"></i>
<span>任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/taskListQualityCheck']" ng-click="getFocus('/taskListQualityCheck')">
<a href="#!/taskListQualityCheck">
<i class="fa fa-dashboard"></i>
<span>任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/taskListSorting']" ng-click="getFocus('/taskListSorting')">
<a href="#!/taskListSorting">
<i class="fa fa-dashboard"></i>
<span>任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/taskListStorage']" ng-click="getFocus('/taskListStorage')">
<a href="#!/taskListStorage">
<i class="fa fa-dashboard"></i>
<span>任务单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/receitp']" ng-click="getFocus('/receitp')">
<a href="#!/receitp">
<i class="fa fa-file-text-o"></i>
<span>交接单</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/addFailed']" ng-click="getFocus('/addFailed')">
<a href="#!/addFailed">
<i class="fa fa-plus"></i>
<span>添加废证</span>
</a>
</li>
</ul> </ul>
</section> </section>
<!-- /.sidebar --> <!-- /.sidebar -->
</aside> </aside>
<div class="content-wrapper" ng-view style="min-height: 898px;"></div> <div class="content-wrapper" ng-view style="min-height: 589px;"></div>
<footer class="main-footer"> <footer class="main-footer">
<div class="pull-right hidden-xs"> <div class="pull-right hidden-xs">
<b>联系电话:</b>(010)88516568 <b>联系电话:</b>(010)88516568
...@@ -130,12 +231,23 @@ ...@@ -130,12 +231,23 @@
</footer> </footer>
</div> </div>
<!-- iCheck -->
<script src="js/app.js"></script> <script src="js/app.js"></script>
<script src="js/service.js"></script> <script src="js/service.js"></script>
<script src="js/utils.js"></script> <script src="js/utils.js"></script>
<script src="directives/tm.pagination.js"></script> <script src="directives/tm.pagination.js"></script>
<script src="views/xmlAndSearch/xmlAndSearch.js"></script>
<script src="views/excelAndSearch/excelAndSearch.js"></script>
<script src="views/cardProdUpdate/cardProdUpdate.js"></script>
<script src="views/cardProdPackage/cardProdPackage.js"></script>
<script src="views/searchCardMsg/searchCardMsg.js"></script> <script src="views/searchCardMsg/searchCardMsg.js"></script>
<script src="views/uploadExcelAndSearch/uploadExcelAndSearch.js"></script> <script src="views/uploadExcelAndSearch/uploadExcelAndSearch.js"></script>
<script src="views/excelAndXml/excelAndXml.js"></script> <script src="views/task/task.js"></script>
<script src="views/receitp/receitp.js"></script>
<script src="views/addFailed/addFailed.js"></script>
<script src="views/searchCard/searchCard.js"></script>
<script src="views/createTaskList/createTaskList.js"></script>
<script src="views/dispatchTask/dispatchTask.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -5,32 +5,93 @@ angular.module('AvatarCheck', [ ...@@ -5,32 +5,93 @@ angular.module('AvatarCheck', [
'ngRoute', 'ngRoute',
'ngDialog', 'ngDialog',
'LocalStorageModule', 'LocalStorageModule',
'AvatarCheck.searchCardMsg', 'AvatarCheck.cardProdUpdate',
'AvatarCheck.cardProdPackage',
'AvatarCheck.excelAndSearch',
'AvatarCheck.xmlAndSearch',
'AvatarCheck.uploadExcelAndSearch', 'AvatarCheck.uploadExcelAndSearch',
'AvatarCheck.excelAndXml', 'AvatarCheck.searchCardMsg',
'AvatarCheck.receitp',
'AvatarCheck.addFailed',
'AvatarCheck.searchCard',
'AvatarCheck.task',
'AvatarCheck.createTaskList',
'AvatarCheck.dispatchTask',
'tm.pagination' 'tm.pagination'
]).config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', '$qProvider', function ($locationProvider, $routeProvider, localStorageServiceProvider, $qProvider) { ]).config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', '$qProvider', function ($locationProvider, $routeProvider, localStorageServiceProvider, $qProvider) {
$locationProvider.hashPrefix('!'); $locationProvider.hashPrefix('!');
$routeProvider.otherwise({redirectTo: '/searchCardMsg'}); $routeProvider.otherwise({redirectTo: '/xmlAndSearch'});
localStorageServiceProvider.setPrefix('AvatarCheck') localStorageServiceProvider.setPrefix('AvatarCheck')
$qProvider.errorOnUnhandledRejections(false) $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"){ if($location.path()=="/searchCardMsg"){
$rootScope.tab = '/searchCardMsg'; $rootScope.tab = '/searchCardMsg';
} }
if($location.path()=="/uploadExcelAndSearch"){
$rootScope.tab='/uploadExcelAndSearch';
}
if($location.path()=="/excelAndXml"){ if($location.path()=="/excelAndXml"){
$rootScope.tab='/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) console.log($rootScope.tab)
$scope.getFocus = function (index) { $scope.getFocus = function (index) {
...@@ -39,5 +100,14 @@ angular.module('AvatarCheck', [ ...@@ -39,5 +100,14 @@ angular.module('AvatarCheck', [
console.log($rootScope.tab) 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']) ...@@ -133,6 +133,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) 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
...@@ -14,32 +14,371 @@ ...@@ -14,32 +14,371 @@
<section class="content-header" style="padding-top: 1px;"> <section class="content-header" style="padding-top: 1px;">
<h4> <h4>
文件导入 读卡信息详情
</h4> </h4>
</section> </section>
<div style="padding: 15px;"> <div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-info"> <div class="box-info">
<div class="row" style="padding: 15px;"> <div class="row" style="padding: 15px;">
<div class="form-group col-md-3" style="margin: 0;"> <div class="col-lg-3" style="text-align: center;padding-top: 20px;"><img style="height:148px;width:115px;" id="imgDetail" class="img-thumbnail" /></div>
<input type="file" id="id_file_photo_for_check" class="file" data-show-preview="true" multiple/> <div class="col-lg-9">
<form name="myform">
<table class="table table-bordered table-responsive">
<tr>
<td colspan="2">姓名:<input name="name" readonly="readonly"/></td>
</tr>
<tr>
<td>性别:<input name="sex"></td>
<td>民族:<input name="national"></td>
</tr>
<tr>
<td colspan="2">出生:<input name="birthday" type="text"></td>
</tr>
<tr>
<td colspan="2">住址:<input style="width:90%;" name="address" type="text"></td>
</tr>
<tr>
<td colspan="2">公民身份证:<input name="id" type="text" ng-model="postData.idCard"></td>
</tr>
</table>
<table class="table table-bordered table-responsive">
<tr>
<td colspan="2">签发机关:<input name="qfjg" style="width:30%;" type="text"></td>
<input name="Base64" type="hidden">
</tr>
<tr>
<td colspan="2">
有效期: <input style="width:9%;" name="yxqstart" type="text" ng-model="postData.startDate"><input style="width:15%;" name="yxqend" type="text" ng-model="postData.endDate">
</td>
</tr>
</table>
</form>
</div> </div>
</div> </div>
<div class="row" style="padding: 15px;"> </div>
<div class="col-md-3"> <div class="box-footer" style="text-align: right;">
<select class="form-control select2 " ng-model="fileSort"> <button class="btn btn-primary" ng-click="startReading()">开始读卡</button>
<option value="">--请选择文件类别--</option> <button class="btn btn-info" ng-click="endReading()">停止读卡</button>
<option value="">身份证详单</option> </div>
<option value="">个人信息表</option> </div>
<option value="">个人邮寄异常信息</option> <div class="box box-primary">
<option value="">个人制证进度状态表</option> <strong class="box-header">邮寄单详情</strong>
</select> <div class="box-info" style="padding: 10px;">
</div> <table class="table table-bordered table-striped postTable" ng-if="postMsgDetail.length>0">
<div class="col-md-1"> <thead>
<button type="submit" class="btn btn-primary" ng-click="uploadFile()">导入</button> <tr>
<th></th>
<th>NO.</th>
<th>订单号</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 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>
<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> </div>
</div> </div>
</div> </div>
<div style="display: none;" >
<div id="div1">
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px dashed #000;width:96mm;font-family:'黑体';">
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-left:1px dashed #000;border-right:1px dashed #000;border-collapse:collapse;height:20mm">
<tr>
<td style="border-right:1px dashed #000;width:40mm">
<span style="font-size:7mm; position: absolute;top:10mm;left: 8mm;font-family:'黑体';">标准快递</span>
<span style="font-size:2mm; position: absolute;top:18mm;left: 2mm;">时间:{{currentTime}}</span>
</td>
<td style="border:0px dashed #000;width:56mm">
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed>
</object>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="height:15mm;border-left:1px dashed #000;border-right:2px solid #000;">
<tr>
<td style="border-top:1px dashed #000;border-bottom:1px dashed #000;width:46mm;font-size: 3mm;">
<p style="position:absolute;top:19mm;left:1.5mm;">寄件:{{postMsgDetail[idx].sjrxm}}&nbsp;&nbsp;{{postMsgDetail[idx].sjrlxfs}}</p>
<span style="position:absolute;top:25mm;left:10mm;width:37mm;">{{postMsgDetail[idx].sjrdz}}</span>
</td>
<td style="border:2px solid #000;border-right:0px;width:50mm;"></td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:17mm">
<tr>
<td style="border-right:1px dashed #000;border-left:1px dashed #000;border-bottom:1px dashed #000;width:96mm">
<p style="font-size: 3mm; position:absolute;top:33mm;left:1.5mm;">收件:<span style="font-size: 4mm;">{{postMsgDetail[idx].jjrxm}}&nbsp;&nbsp;{{postMsgDetail[idx].jjrlxfs}}</span></p>
<span style="position:absolute;top:40mm;left:10mm;width:85mm;font-size: 4mm;">{{postMsgDetail[idx].jjrdz}}</span></td>
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:15mm;font-size: 3mm;">
<tr>
<td style="border-right:1px dashed #000;border-left:1px dashed #000;border-bottom:1px dashed #000;width:52mm;">
<p style="position:absolute;top:51mm;left:1.5mm;">付款方式:</p>
<p style="position:absolute;top:55mm;left:1.5mm;">计费重量(KG):0.1</p>
<p style="position:absolute;top:59mm;left:1.5mm;">报价金额(元):</p>
</td>
<td style="border-right:1px dashed #000;border-bottom:1px dashed #000;width:44mm">
<p style="position:absolute;top:50mm;left:53mm;">收件人\代收人:</p>
<p style="position:absolute;top:55mm;left:53mm;">签收时间:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<span style="position:absolute;top:62mm;left:53mm;font-size: 2mm;width:42mm;">快件送达收货人地址,经收件人或收件人允许的代收人签字,视为送达。</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:20mm">
<tr>
<td style="border:1px dashed #000;border-top:0;width:96mm">
<span style="position:absolute;top:68mm;left:1.5mm;font-size:7mm;">1&nbsp;收货单(返单)</span>
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td style="height:4mm"></td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-collapse:collapse;height:15mm">
<tr>
<td style="border-right:1px dashed #000;width:96mm"></td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:17mm;font-size: 3mm;">
<tr>
<td style="border-right:1px dashed #000;width:40mm">
<p style="position:absolute;top:105mm;left:1.5mm;">寄件:{{postMsgDetail[idx].sjrxm}}&nbsp;{{postMsgDetail[idx].sjrlxfs}}</p>
<span style="position:absolute;top:111mm;left:10mm;width:30mm;">{{postMsgDetail[idx].sjrdz}}</span>
</td>
<td style="border:0px dashed #000;width:56mm">
<p style="position:absolute;top:105mm;left:42mm;">收件:{{postMsgDetail[idx].jjrxm}}&nbsp;&nbsp;{{postMsgDetail[idx].jjrlxfs}}</p>
<span style="position:absolute;top:112mm;left:50.5mm;width:40mm;">{{postMsgDetail[idx].jjrdz}}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:15mm">
<tr>
<td style="border-right:1px dashed #000;width:68mm">
<span style="position:absolute;top:124mm;left:1.5mm;font-size:7mm;">1&nbsp;收货单(返单)</span>
</td>
<td style="border:0px dashed #000;width:28mm"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:7mm">
<tr>
<td style="border-right:1px dashed #000;width:68mm">
<span style="font-size: 3mm; margin-left: 3mm;">网址:www.ems.com.cn</span>
<span style="font-size: 3mm; margin-left: 3mm;">客服电话:11183</span>
</td>
<td style="border:0px dashed #000;width:28mm"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="div3">
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px dashed #000;width:96mm;font-family: '黑体';">
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-left:1px dashed #000;border-right:1px dashed #000;border-collapse:collapse;height:20mm">
<tr>
<td style="border-right:1px dashed #000;width:40mm">
<span style="font-size:3mm; position: absolute;top:7mm;left: 15mm;">标准快递</span>
<span style="font-size:7mm; position: absolute;top:11mm;left: 8mm;">实物返单</span>
<span style="font-size:2mm; position: absolute;top:18mm;left: 2mm;">时间:{{currentTime}}</span>
</td>
<td style="border:0px dashed #000;width:56mm">
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed>
</object>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="height:15mm;border-left:1px dashed #000;border-right:2px solid #000;">
<tr>
<td style="border-top:1px dashed #000;border-bottom:1px dashed #000;width:46mm;font-size: 3mm;">
<p style="position:absolute;top:19mm;left:1.5mm;">寄件:{{postMsgDetail[idx].jjrxm}}</p>
<p style="position:absolute;top:22mm;left:10mm;">{{postMsgDetail[idx].jjrlxfs}}</p>
<span style="position:absolute;top:28mm;left:10mm;width:37mm;">{{postMsgDetail[idx].jjrdz}}</span>
</td>
<td style="border:2px solid #000;border-right:0px;width:50mm;">
<span style="font-size: 6mm;width:50mm;position:absolute;top:22mm;left: 50mm">
{{postMsgDetail[idx].sqrxm}}
</span>
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:17mm">
<tr>
<td style="border-right:1px dashed #000;border-left:1px dashed #000;border-bottom:1px dashed #000;width:96mm">
<p style="font-size: 3mm; position:absolute;top:33mm;left:1.5mm;">收件:<span style="font-size: 4mm;">{{postMsgDetail[idx].sjrxm}}&nbsp;&nbsp;{{postMsgDetail[idx].sjrlxfs}}</span></p>
<span style="position:absolute;top:40mm;left:10mm;width:85mm;font-size: 4mm;">{{postMsgDetail[idx].sjrdz}}</span></td>
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:15mm;font-size: 3mm;">
<tr>
<td style="border-right:1px dashed #000;border-left:1px dashed #000;border-bottom:1px dashed #000;width:52mm;">
<p style="position:absolute;top:51mm;left:1.5mm;">付款方式:</p>
<p style="position:absolute;top:55mm;left:1.5mm;">计费重量(KG):0.1</p>
<p style="position:absolute;top:59mm;left:1.5mm;">报价金额(元):</p>
</td>
<td style="border-right:1px dashed #000;border-bottom:1px dashed #000;width:44mm">
<p style="position:absolute;top:50mm;left:53mm;">收件人\代收人:</p>
<p style="position:absolute;top:55mm;left:53mm;">签收时间:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<span style="position:absolute;top:62mm;left:53mm;font-size: 2mm;width:42mm;">快件送达收货人地址,经收件人或收件人允许的代收人签字,视为送达。</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:20mm">
<tr>
<td style="border:1px dashed #000;border-top:0;width:96mm">
<span style="font-size:3mm; position:absolute;top:69mm;left:2mm;">订单号:</span>
<p style="font-size:3mm; position:absolute;top:72mm;left:2mm;">配货信息:<span style="font-size:7mm;margin-left: 30px">{{postMsgDetail[idx].gkxx}}</span></p>
<!--<p style="font-size:3mm; position:absolute;top:72mm;left:2mm;">配货信息:<span style="font-size: 7mm;">{{postMsgDetail[idx].sqrxm}}</span></p>-->
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td style="height:4mm"></td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-collapse:collapse;height:15mm">
<tr>
<td style="border-right:1px dashed #000;width:96mm"></td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;
border-top:none;border-collapse:collapse;height:17mm;font-size: 3mm;">
<tr>
<td style="border-right:1px dashed #000;width:40mm">
<p style="position:absolute;top:105mm;left:1.5mm;">寄件:{{postMsgDetail[idx].jjrxm}}</p>
<p style="position:absolute;top:108mm;left:10mm;">{{postMsgDetail[idx].jjrlxfs}}</p>
<span style="position:absolute;top:114mm;left:10mm;width:30mm;">{{postMsgDetail[idx].jjrdz}}</span>
</td>
<td style="border:0px dashed #000;width:56mm">
<p style="position:absolute;top:105mm;left:43mm;">收件:{{postMsgDetail[idx].sjrxm}}&nbsp;{{postMsgDetail[idx].sjrlxfs}}</p>
<span style="position:absolute;top:111mm;left:52mm;width:40mm;">{{postMsgDetail[idx].sjrdz}}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:15mm">
<tr>
<td style="border-right:1px dashed #000;width:68mm">
<span style="position:absolute;top:124mm;left:1.5mm;font-size:3mm;">备注:</span>
</td>
<td style="border:0px dashed #000;width:28mm"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border:1px dashed #000;border-top:none;border-collapse:collapse;height:7mm">
<tr>
<td style="border-right:1px dashed #000;width:68mm">
<span style="font-size: 3mm; margin-left: 3mm;">网址:www.ems.com.cn</span>
<span style="font-size: 3mm; margin-left: 3mm;">客服电话:11183</span>
</td>
<td style="border:0px dashed #000;width:28mm"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
...@@ -12,20 +12,11 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -12,20 +12,11 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
.controller('searchCardMsgCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout) { .controller('searchCardMsgCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout) {
$("#id_file_photo_for_check").fileinput({ var postData = {
language: 'zh', idCard: '',
showUpload: false, startDate: '',
showCaption: true, endDate: ''
maxFileCount: 1024, }
showPreview: true,
maxFileSize: 1024 * 30
});
$('.select2').select2();
//Initialize Select2 Elements
$('.select2').select2({
minimumResultsForSearch: -1
});
var getNowFormatDate = function () { var getNowFormatDate = function () {
var date = new Date(); var date = new Date();
...@@ -57,6 +48,227 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -57,6 +48,227 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
return currentdate; return currentdate;
} }
$scope.postMsgDetail = [];
$scope.currentTime = getNowFormatDate();
var doPost = function () {
HttpService.doPostAndGetData(postData, function (data) {
$scope.postMsgDetail = data;
console.log("$scope.postMsgDetail:", $scope.postMsgDetail)
$timeout(function () {
if ($scope.postMsgDetail.length == 1 && $scope.postMsgDetail[0].printTime == null) {
$scope.PreviewMytableRotate();
}
})
})
};
$scope.idx = 0;
$scope.changeIndex = function (index) {
$scope.idx = index;
console.log($scope.idx)
}
var nation_data = [
{id: 1, name: '汉族'},
{id: 2, name: '蒙古族'},
{id: 3, name: '回族'},
{id: 4, name: '藏族'},
{id: 5, name: '维吾尔族'},
{id: 6, name: '苗族'},
{id: 7, name: '彝族'},
{id: 8, name: '壮族'},
{id: 9, name: '布依族'},
{id: 10, name: '朝鲜族'},
{id: 11, name: '满族'},
{id: 12, name: '侗族'},
{id: 13, name: '瑶族'},
{id: 14, name: '白族'},
{id: 15, name: '土家族'},
{id: 16, name: '哈尼族'},
{id: 17, name: '哈萨克族'},
{id: 18, name: '傣族'},
{id: 19, name: '黎族'},
{id: 20, name: '傈僳族'},
{id: 21, name: '佤族'},
{id: 22, name: '畲族'},
{id: 23, name: '高山族'},
{id: 24, name: '拉祜族'},
{id: 25, name: '水族'},
{id: 26, name: '东乡族'},
{id: 27, name: '纳西族'},
{id: 28, name: '景颇族'},
{id: 29, name: '柯尔克孜族'},
{id: 30, name: '土族'},
{id: 31, name: '达翰尔族'},
{id: 32, name: '么佬族'},
{id: 33, name: '羌族'},
{id: 34, name: '布朗族'},
{id: 35, name: '撒拉族'},
{id: 36, name: '毛南族'},
{id: 37, name: '仡佬族'},
{id: 38, name: '锡伯族'},
{id: 39, name: '阿昌族'},
{id: 40, name: '普米族'},
{id: 41, name: '塔吉克族'},
{id: 42, name: '怒族'},
{id: 43, name: '乌孜别克族'},
{id: 44, name: '俄罗斯族'},
{id: 45, name: '鄂温克族'},
{id: 46, name: '德昂族'},
{id: 47, name: '保安族'},
{id: 48, name: '裕固族'},
{id: 49, name: '京族'},
{id: 50, name: '塔塔尔族'},
{id: 51, name: '独龙族'},
{id: 52, name: '鄂伦春族'},
{id: 53, name: '赫哲族'},
{id: 54, name: '门巴族'},
{id: 55, name: '珞巴族'},
{id: 56, name: '基诺族'},
];
var open = function () {
var flag = 0;
if (document.getElementById("aaa").OpenComm(1001) == 1) {
flag = 1;
} else {
for (var i = 1; i < 3; i++) {
if (document.getElementById("aaa").OpenComm(i) == 1) {
flag = 1;
break;
}
if (flag != 1) {
MessageService.showAlert("打开端口失败");
}
}
}
};
var subSomething = function () {
if (document.readyState == "complete") { //当页面加载状态为完全结束时进入
open();
$interval(function () {
if ($rootScope.close == 1 && $rootScope.tab == '/searchCardMsg') {
if (document.getElementById("aaa").Authen() == 1) {
var ret = document.getElementById("aaa").ReadCardPath("c:\\", 1);
if (ret == 1 || ret == 3) {
myform.name.value = document.getElementById("aaa").sName;
myform.sex.value = document.getElementById("aaa").sSex == 1 ? '男' : '女';
myform.national.value = nation_data[(parseInt(document.getElementById("aaa").sNation)) - 1].name;
myform.birthday.value = document.getElementById("aaa").sBornDate;
myform.address.value = document.getElementById("aaa").sAddress;
myform.id.value = document.getElementById("aaa").sIDNo;
myform.qfjg.value = document.getElementById("aaa").sSignGov;
myform.yxqstart.value = document.getElementById("aaa").sStartDate;
myform.yxqend.value = document.getElementById("aaa").sEndDate;
document.getElementById("aaa").ReadCard(3);
// myform.newaddress.value = aaa.sNewAddress;
myform.Base64.value = document.getElementById("aaa").PhotoBuffer;
// myform.fp.value = aaa.sFpState;
var imgSrc = "data:image/jpg;base64," + myform.Base64.value;
$("#imgDetail").attr("src", imgSrc);
postData.idCard = myform.id.value;
postData.startDate = myform.yxqstart.value;
postData.endDate = myform.yxqend.value;
doPost()
}
}
} else {
document.getElementById("aaa").EndComm();
}
}, 500);
}
};
$scope.startReading = function () {
$rootScope.tab = '/searchCardMsg';
$rootScope.close = 1;
subSomething();
};
$scope.endReading = function () {
$rootScope.tab = '/searchCardMsg1';
$rootScope.close = 0;
};
var iRadioValue=1;
$scope.PreviewMytableRotate = function(){
$scope.currentTime = getNowFormatDate();
var LODOP1 = getLodop();
LODOP1.SET_LICENSES("", "15F0BE661E7F32F37491843CB2510905", "C94CEE276DB2187AE6B65D56B3FC2848", "");
LODOP1.PRINT_INIT("实物返单");
LODOP1.SET_PRINT_PAGESIZE(1, "100mm", "149mm", "");
LODOP1 = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
//分辨率2880*1620
// LODOP1.ADD_PRINT_BARCODE(20, 185, 236, 56, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(363, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(270, 50, 70, 20, "128A", "11");
//分辨率1440*900
// LODOP1.ADD_PRINT_BARCODE(16, 90, 95, 32, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(186, 10, 100, 24, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(141, 28, 70, 13, "128A", "11");
//秦皇岛
// LODOP1.ADD_PRINT_BARCODE(15, 76, 95, 30, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(165, 8, 100, 23, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(125, 25, 70, 12, "128A", "11");
//北京
LODOP1.ADD_PRINT_BARCODE(20, 185, 242, 60, "128A", $scope.postMsgDetail[$scope.idx].yjh);
LODOP1.ADD_PRINT_BARCODE(375, 15, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].yjh);
LODOP1.ADD_PRINT_BARCODE(290, 48, 70, 20, "128A", $scope.postMsgDetail[$scope.idx].sequence);
// LODOP1.ADD_PRINT_TABLE(13, 2, 960, 1400, document.getElementById("div3").innerHTML);
// LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Page");
LODOP1.ADD_PRINT_TABLE(10, 3, 960, 1400, document.getElementById("div3").innerHTML);
LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Width:97%;Height:95%");
LODOP1.SET_PRINT_STYLEA(1, "FontSize", 10);
LODOP1.SET_PRINT_STYLEA(2, "FontSize", 10);
LODOP1.SET_PRINT_STYLEA(3, "FontSize", 4);
LODOP1.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue);
LODOP1.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0);
// LODOP1.PREVIEW();
LODOP1.PRINT();
var LODOP = getLodop();
LODOP.SET_LICENSES("", "15F0BE661E7F32F37491843CB2510905", "C94CEE276DB2187AE6B65D56B3FC2848", "");
LODOP.SET_PRINT_STYLE("FontName", "黑体");
LODOP.PRINT_INIT("标准快递");
LODOP.SET_PRINT_PAGESIZE(1, "100mm", "149mm", "");
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
LODOP.SET_PRINT_STYLE("FontName", "黑体");
//分辨率2880*1620
// LODOP.ADD_PRINT_BARCODE(20, 185, 236, 56, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(363, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
//分辨率1440*900
// LODOP.ADD_PRINT_BARCODE(16, 90, 95, 32, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(186, 10, 100, 24, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
//秦皇岛
// LODOP.ADD_PRINT_BARCODE(14, 78, 95, 30, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(164, 10, 100, 23, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_TABLE(12, 5, 960, 1400, document.getElementById("div1").innerHTML);
//北京
LODOP.ADD_PRINT_BARCODE(20, 185, 242, 60, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
LODOP.ADD_PRINT_BARCODE(380, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
LODOP.ADD_PRINT_TABLE(10, 3, 960, 1400, document.getElementById("div1").innerHTML);
// LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Page");
LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Width:97%;Height:95%");
LODOP.SET_PRINT_STYLEA(1, "FontSize", 10);
LODOP.SET_PRINT_STYLEA(2, "FontSize", 10);
LODOP.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue);
LODOP.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0);
// LODOP.PREVIEW();
LODOP.PRINT();
var id = document.getElementsByClassName("minimal")[$scope.idx].value;
console.log(id)
HttpService.setPrintTime(id, $scope.currentTime, function (data) {
// $scope.postMsgDetail = data;
})
};
}); });
......
'use strict';
angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/taskListDataCheck', {
templateUrl: 'views/task/taskListDataCheck.html' + urlTimeStamp(),
controller: 'taskListDataCheckCtrl',
cache: false
});
$routeProvider.when('/taskListPrint', {
templateUrl: 'views/task/taskListPrint.html' + urlTimeStamp(),
controller: 'taskListPrintCtrl',
cache: false
});
$routeProvider.when('/taskListPreLocating', {
templateUrl: 'views/task/taskListPreLocating.html' + urlTimeStamp(),
controller: 'taskListPreLocatingCtrl',
cache: false
});
$routeProvider.when('/taskListQualityCheck', {
templateUrl: 'views/task/taskListQualityCheck.html' + urlTimeStamp(),
controller: 'taskListQualityCheckCtrl',
cache: false
});
$routeProvider.when('/taskListSorting', {
templateUrl: 'views/task/taskListSorting.html' + urlTimeStamp(),
controller: 'taskListSortingCtrl',
cache: false
});
$routeProvider.when('/taskListStorage', {
templateUrl: 'views/task/taskListStorage.html' + urlTimeStamp(),
controller: 'taskListStorageCtrl',
cache: false
});
}])
.controller('taskListDataCheckCtrl', 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.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) {
$scope.records = data;
})
}
$scope.cycleSheetData = [
{
typeCode: '1',
typeName: '普通证',
typeSum: 300,
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '朝阳区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '昌平区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
}
]
$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;
}
})
.controller('taskListPrintCtrl', 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.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) {
$scope.records = data;
})
}
$scope.cycleSheetData = [
{
typeCode: '1',
typeName: '普通证',
typeSum: 300,
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '朝阳区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '昌平区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
}
]
$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;
}
})
.controller('taskListPreLocatingCtrl', 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.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) {
$scope.records = data;
})
}
$scope.cycleSheetData = [
{
typeCode: '1',
typeName: '普通证',
typeSum: 300,
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '朝阳区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '昌平区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
}
]
$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;
}
})
.controller('taskListQualityCheckCtrl', 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.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) {
$scope.records = data;
})
}
$scope.cycleSheetData = [
{
typeCode: '1',
typeName: '普通证',
typeSum: 300,
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '朝阳区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '昌平区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
}
]
$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;
}
})
.controller('taskListSortingCtrl', 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.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) {
$scope.records = data;
})
}
$scope.cycleSheetData = [
{
typeCode: '1',
typeName: '普通证',
typeSum: 300,
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '朝阳区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '昌平区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
}
]
$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;
}
})
.controller('taskListStorageCtrl', 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.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) {
$scope.records = data;
})
}
$scope.cycleSheetData = [
{
typeCode: '1',
typeName: '普通证',
typeSum: 300,
isActive: 'true',
countyList: [
{
taskId: '20190228001',
county: '西城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '东城区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '海淀区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
},
{
typeCode: '9',
typeName: '邮寄证',
typeSum: 500,
isActive: 'false',
countyList: [
{
taskId: '20190228001',
county: '朝阳区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
},
{
taskId: '20190228001',
county: '昌平区',
groupNo: '00234653-03687587',
valid: 240,
invalid: 0
}
]
}
]
$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;
}
})
\ No newline at end of file
<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 @@ ...@@ -37,16 +37,16 @@
<div class="box-info"> <div class="box-info">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
<td width="15%">申请人姓名:</td> <td width="10%">申请人姓名:</td>
<td width="35%"><input type="text" class="form-control" ng-model="applicantName" placeholder="申请人姓名"></td> <td width="23%"><input type="text" class="form-control" ng-model="applicantName" placeholder="申请人姓名"></td>
<td width="15%">订单号:</td> <td width="12%">订单号:</td>
<td width="35%"><input type="text" class="form-control" ng-model="orderNo" placeholder="订单号"></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>
<tr> <tr>
<td width="15%">序号:</td> <td width="10%">打印状态:</td>
<td width="35%"><input type="text" class="form-control" ng-model="number" placeholder="序号"></td> <td width="23%" style="text-align: left;">
<td width="15%">打印状态:</td>
<td width="35%" style="text-align: left;">
<select class="form-control select2" id="print" <select class="form-control select2" id="print"
ng-model="isPrint"> ng-model="isPrint">
<option value="">--请选择打印状态--</option> <option value="">--请选择打印状态--</option>
...@@ -54,19 +54,19 @@ ...@@ -54,19 +54,19 @@
<option value="-1">未打印</option> <option value="-1">未打印</option>
</select> </select>
</td> </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> </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> <tr>
<td width="15%">Excel导入时间:</td> <td width="10%">Excel导入时间:</td>
<td width="35%"> <td width="23%">
<div class="input-group date"> <div class="input-group date">
<div class="input-group-addon"> <div class="input-group-addon">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
......
...@@ -12,8 +12,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -12,8 +12,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
.controller('uploadExcelAndSearchCtrl', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) { .controller('uploadExcelAndSearchCtrl', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
//Date picker //Date picker
$('#datepicker').datetimepicker({ $('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒 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'; 'use strict';
angular.module('AvatarCheck.excelAndXml', ['ngRoute', 'AvatarCheck.http']) angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.pagination'])
.config(['$routeProvider', function ($routeProvider) { .config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/excelAndXml', { $routeProvider.when('/xmlAndSearch', {
templateUrl: 'views/excelAndXml/excelAndXml.html' + urlTimeStamp(), templateUrl: 'views/xmlAndSearch/xmlAndSearch.html' + urlTimeStamp(),
controller: 'excelAndXmlCtrl', controller: 'xmlAndSearchCtrl',
cache: false cache: false
}); });
}]) }])
.controller('excelAndXmlCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('xmlAndSearchCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout, $filter, ngDialog) {
$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()
}
})
}
$("#id_file_photo_for_check").fileinput({
language: 'zh',
showUpload: false,
showCaption: true,
maxFileCount: 1024,
showPreview: true,
maxFileSize: 1024 * 30
});
//Date picker //Date picker
$('#datepicker').datetimepicker({ $('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒 minView: "month", //选择日期后,不会再跳转去选择时分秒
...@@ -55,12 +27,26 @@ angular.module('AvatarCheck.excelAndXml', ['ngRoute', 'AvatarCheck.http']) ...@@ -55,12 +27,26 @@ angular.module('AvatarCheck.excelAndXml', ['ngRoute', 'AvatarCheck.http'])
todayBtn: 1, todayBtn: 1,
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.searchRecordsNotMatched = function () {
HttpService.getRecordsNotMatched($("#datepicker").val(), function (data) { $scope.paginationConf = {
$scope.records = data; 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