Commit ab61c05e authored by dahai's avatar dahai

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

parents 45fc9486 9d7b31e8
...@@ -237,7 +237,6 @@ public class AdminApi { ...@@ -237,7 +237,6 @@ public class AdminApi {
String str = "0"; String str = "0";
SysPermission sysPermission = new SysPermission(); SysPermission sysPermission = new SysPermission();
sysPermission.setName(jsonObject.getString("name")); sysPermission.setName(jsonObject.getString("name"));
sysPermission.setResource_type(jsonObject.getString("resourceType"));
sysPermission.setUrl(jsonObject.getString("url")); sysPermission.setUrl(jsonObject.getString("url"));
sysPermission.setPermission(jsonObject.getString("permission")); sysPermission.setPermission(jsonObject.getString("permission"));
// sysPermission.setParent_id(Long.parseLong(jsonObject.getString("parentId"))); // sysPermission.setParent_id(Long.parseLong(jsonObject.getString("parentId")));
...@@ -335,6 +334,7 @@ public class AdminApi { ...@@ -335,6 +334,7 @@ public class AdminApi {
SysRole sysRole = new SysRole(); SysRole sysRole = new SysRole();
sysRole.setRole(jsonObject.getString("role")); sysRole.setRole(jsonObject.getString("role"));
sysRole.setDescription(jsonObject.getString("description")); sysRole.setDescription(jsonObject.getString("description"));
sysRole.setProcess(Integer.parseInt(jsonObject.getString("process")));
String permissionIds = jsonObject.getString("permissionIds"); String permissionIds = jsonObject.getString("permissionIds");
JSONArray jsonArray = JSONArray.fromObject(permissionIds); JSONArray jsonArray = JSONArray.fromObject(permissionIds);
...@@ -402,19 +402,11 @@ public class AdminApi { ...@@ -402,19 +402,11 @@ public class AdminApi {
JSONObject jsonObject = JSONObject.fromObject(jsonStr); JSONObject jsonObject = JSONObject.fromObject(jsonStr);
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
boolean flag = false; boolean flag = false;
// String str = "0";
SysPermission sysPermission = new SysPermission(); SysPermission sysPermission = new SysPermission();
sysPermission.setId(Integer.parseInt(jsonObject.getString("id"))); sysPermission.setId(Integer.parseInt(jsonObject.getString("id")));
sysPermission.setName(jsonObject.getString("name")); sysPermission.setName(jsonObject.getString("name"));
sysPermission.setResource_type(jsonObject.getString("resourceType"));
sysPermission.setUrl(jsonObject.getString("url")); sysPermission.setUrl(jsonObject.getString("url"));
sysPermission.setPermission(jsonObject.getString("permission")); sysPermission.setPermission(jsonObject.getString("permission"));
// sysPermission.setParent_id(Long.parseLong(parentId));
// if(parentId.equals(str)){
// sysPermission.setParent_ids(parentId+"/");
// }else{
// sysPermission.setParent_ids(str+"/"+parentId);
// }
System.out.println(sysPermission); System.out.println(sysPermission);
flag = sysPermissionService.updatePermission(sysPermission); flag = sysPermissionService.updatePermission(sysPermission);
if (flag) { if (flag) {
...@@ -426,4 +418,4 @@ public class AdminApi { ...@@ -426,4 +418,4 @@ public class AdminApi {
return map; return map;
} }
} }
...@@ -5,7 +5,7 @@ import java.io.Serializable; ...@@ -5,7 +5,7 @@ import java.io.Serializable;
import java.util.List; import java.util.List;
/** /**
* @author zhangyusheng * @author liboyang
*/ */
@Entity @Entity
@Table(name="SYS_PERMISSION") @Table(name="SYS_PERMISSION")
...@@ -20,10 +20,7 @@ public class SysPermission implements Serializable { ...@@ -20,10 +20,7 @@ public class SysPermission implements Serializable {
* 名称. * 名称.
*/ */
private String name; private String name;
/**
* 资源类型
*/
private String resource_type;
/** /**
* 资源路径. * 资源路径.
*/ */
...@@ -33,19 +30,6 @@ public class SysPermission implements Serializable { ...@@ -33,19 +30,6 @@ public class SysPermission implements Serializable {
*/ */
private String permission; private String permission;
/**
* 父编号
*/
private Long parent_id;
/**
* 父编号列表
*/
private String parent_ids;
private byte available = 0; private byte available = 0;
@ManyToMany @ManyToMany
@JoinTable(name="SysRolePermission",joinColumns={@JoinColumn(name="permissionId")},inverseJoinColumns={@JoinColumn(name="roleId")}) @JoinTable(name="SysRolePermission",joinColumns={@JoinColumn(name="permissionId")},inverseJoinColumns={@JoinColumn(name="roleId")})
...@@ -67,22 +51,6 @@ public class SysPermission implements Serializable { ...@@ -67,22 +51,6 @@ public class SysPermission implements Serializable {
this.name = name; this.name = name;
} }
public String getResource_type() {
return resource_type;
}
public void setResource_type(String resource_type) {
this.resource_type = resource_type;
}
public String getParent_ids() {
return parent_ids;
}
public void setParent_ids(String parent_ids) {
this.parent_ids = parent_ids;
}
public String getUrl() { public String getUrl() {
return url; return url;
} }
...@@ -99,16 +67,6 @@ public class SysPermission implements Serializable { ...@@ -99,16 +67,6 @@ public class SysPermission implements Serializable {
this.permission = permission; this.permission = permission;
} }
public Long getParent_id() {
return parent_id;
}
public void setParent_id(Long parent_id) {
this.parent_id = parent_id;
}
public byte getAvailable() { public byte getAvailable() {
return available; return available;
} }
......
...@@ -4,7 +4,7 @@ import javax.persistence.*; ...@@ -4,7 +4,7 @@ import javax.persistence.*;
import java.util.List; import java.util.List;
/** /**
* @author zhangyusheng * @author liboyang
*/ */
@Entity @Entity
@Table(name="SYS_ROLE") @Table(name="SYS_ROLE")
...@@ -17,7 +17,7 @@ public class SysRole { ...@@ -17,7 +17,7 @@ public class SysRole {
private Integer id; private Integer id;
/** /**
* 角色标识程序中判断使用,如"admin",这个是唯一的: * 角色标识程序中判断使用,如"admin",这个是唯一的:
*/ */
private String role; private String role;
/** /**
* 角色描述,UI界面显示使用 * 角色描述,UI界面显示使用
...@@ -28,6 +28,8 @@ public class SysRole { ...@@ -28,6 +28,8 @@ public class SysRole {
*/ */
private byte available = 0; private byte available = 0;
private Integer process;
/** /**
* 角色 -- 权限关系:多对多关系; * 角色 -- 权限关系:多对多关系;
*/ */
...@@ -37,13 +39,13 @@ public class SysRole { ...@@ -37,13 +39,13 @@ public class SysRole {
/** /**
* 用户 - 角色关系定义; * 用户 - 角色关系定义;
*/ */
@ManyToMany @ManyToMany
@JoinTable(name="SysUserRole",joinColumns={@JoinColumn(name="roleId")},inverseJoinColumns={@JoinColumn(name="userId")}) @JoinTable(name="SysUserRole",joinColumns={@JoinColumn(name="roleId")},inverseJoinColumns={@JoinColumn(name="userId")})
/** /**
* 一个角色对应多个用户 * 一个角色对应多个用户
*/ */
private List<UserInfo> userInfos; private List<UserInfo> userInfos;
...@@ -94,4 +96,12 @@ public class SysRole { ...@@ -94,4 +96,12 @@ public class SysRole {
public void setUserInfos(List<UserInfo> userInfos) { public void setUserInfos(List<UserInfo> userInfos) {
this.userInfos = userInfos; this.userInfos = userInfos;
} }
public Integer getProcess() {
return process;
}
public void setProcess(Integer process) {
this.process = process;
}
} }
\ No newline at end of file
...@@ -5,7 +5,7 @@ import java.io.Serializable; ...@@ -5,7 +5,7 @@ import java.io.Serializable;
import java.util.List; import java.util.List;
/** /**
* @author zhangyusheng * @author liboyang
*/ */
@Entity @Entity
@Table(name="USER_INFO") @Table(name="USER_INFO")
...@@ -19,7 +19,6 @@ public class UserInfo implements Serializable { ...@@ -19,7 +19,6 @@ public class UserInfo implements Serializable {
private String password; private String password;
private String salt; private String salt;
private byte state; private byte state;
private String workshop;
@ManyToMany(fetch= FetchType.EAGER) @ManyToMany(fetch= FetchType.EAGER)
@JoinTable(name = "SysUserRole", joinColumns = { @JoinColumn(name = "userId") }, inverseJoinColumns ={@JoinColumn(name = "roleId") }) @JoinTable(name = "SysUserRole", joinColumns = { @JoinColumn(name = "userId") }, inverseJoinColumns ={@JoinColumn(name = "roleId") })
private List<SysRole> roleList; private List<SysRole> roleList;
...@@ -80,11 +79,4 @@ public class UserInfo implements Serializable { ...@@ -80,11 +79,4 @@ public class UserInfo implements Serializable {
this.roleList = roleList; this.roleList = roleList;
} }
public String getWorkshop() {
return workshop;
}
public void setWorkshop(String workshop) {
this.workshop = workshop;
}
} }
\ No newline at end of file
...@@ -2,8 +2,10 @@ package com.yxproject.start.mapper; ...@@ -2,8 +2,10 @@ package com.yxproject.start.mapper;
import com.yxproject.start.entity.SysPermission; import com.yxproject.start.entity.SysPermission;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @author Administrator * @author Administrator
...@@ -14,8 +16,8 @@ public interface SysPermissionMapper{ ...@@ -14,8 +16,8 @@ public interface SysPermissionMapper{
* 新增权限 * 新增权限
* @param sysPermission * @param sysPermission
*/ */
@Insert("INSERT INTO sys_permission (id,available,name,parent_id,parent_ids,permission,resource_type,url)\n" + @Insert("INSERT INTO sys_permission (id,available,name,permission,url)\n" +
"VALUES (PERMISSION_seq.nextval,0,#{name},'0','0/',#{permission},#{resource_type},#{url})") "VALUES (PERMISSION_seq.nextval,0,#{name},#{permission},#{url})")
public void addPermissionByMap(SysPermission sysPermission); public void addPermissionByMap(SysPermission sysPermission);
/** /**
...@@ -74,7 +76,7 @@ public interface SysPermissionMapper{ ...@@ -74,7 +76,7 @@ public interface SysPermissionMapper{
* 修改权限信息 * 修改权限信息
* @param sysPermission * @param sysPermission
*/ */
@Update("update SYS_PERMISSION SET NAME=#{name},resource_type=#{resource_type},url=#{url}," + @Update("update SYS_PERMISSION SET NAME=#{name},url=#{url}," +
"permission=#{permission} where id=#{id}") "permission=#{permission} where id=#{id}")
public void updatePermission(SysPermission sysPermission); public void updatePermission(SysPermission sysPermission);
} }
...@@ -2,6 +2,7 @@ package com.yxproject.start.mapper; ...@@ -2,6 +2,7 @@ package com.yxproject.start.mapper;
import com.yxproject.start.entity.SysRole; import com.yxproject.start.entity.SysRole;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
...@@ -14,8 +15,8 @@ public interface SysRoleMapper { ...@@ -14,8 +15,8 @@ public interface SysRoleMapper {
* 添加角色 * 添加角色
* @param sysRole * @param sysRole
*/ */
@Insert("INSERT INTO SYS_ROLE(ID,AVAILABLE,DESCRIPTION,ROLE)\n" + @Insert("INSERT INTO SYS_ROLE(ID,AVAILABLE,DESCRIPTION,ROLE,PROCESS)\n" +
"VALUES(PERMISSION_seq.nextval,0,#{description},#{role})") "VALUES(PERMISSION_seq.nextval,0,#{description},#{role},#{process})")
@Options(useGeneratedKeys = true, keyProperty = "id",keyColumn = "id") @Options(useGeneratedKeys = true, keyProperty = "id",keyColumn = "id")
public void addRoleByMap(SysRole sysRole); public void addRoleByMap(SysRole sysRole);
...@@ -36,6 +37,7 @@ public interface SysRoleMapper { ...@@ -36,6 +37,7 @@ public interface SysRoleMapper {
@Result(property = "role",column = "role"), @Result(property = "role",column = "role"),
@Result(property = "description",column = "description"), @Result(property = "description",column = "description"),
@Result(property = "available",column = "available"), @Result(property = "available",column = "available"),
@Result(property = "process",column = "process"),
@Result(property = "permissions",javaType = List.class,column ="id", @Result(property = "permissions",javaType = List.class,column ="id",
many = @Many(select = "com.yxproject.start.mapper.SysPermissionMapper.selectPermissionByRoleId"))}) many = @Many(select = "com.yxproject.start.mapper.SysPermissionMapper.selectPermissionByRoleId"))})
public List<SysRole> selectAllRole(); public List<SysRole> selectAllRole();
...@@ -65,6 +67,7 @@ public interface SysRoleMapper { ...@@ -65,6 +67,7 @@ public interface SysRoleMapper {
@Result(property = "role",column = "role"), @Result(property = "role",column = "role"),
@Result(property = "description",column = "description"), @Result(property = "description",column = "description"),
@Result(property = "available",column = "available"), @Result(property = "available",column = "available"),
@Result(property = "process",column = "process"),
@Result(property = "permissions",javaType = List.class,column ="id", @Result(property = "permissions",javaType = List.class,column ="id",
many = @Many(select = "com.yxproject.start.mapper.SysPermissionMapper.selectPermissionByRoleId"))}) many = @Many(select = "com.yxproject.start.mapper.SysPermissionMapper.selectPermissionByRoleId"))})
List<SysRole> selectRoleAndPermissionByUserId(@Param("userId") Integer userId); List<SysRole> selectRoleAndPermissionByUserId(@Param("userId") Integer userId);
...@@ -102,6 +105,7 @@ public interface SysRoleMapper { ...@@ -102,6 +105,7 @@ public interface SysRoleMapper {
@Result(property = "role",column = "role"), @Result(property = "role",column = "role"),
@Result(property = "description",column = "description"), @Result(property = "description",column = "description"),
@Result(property = "available",column = "available"), @Result(property = "available",column = "available"),
@Result(property = "process",column = "process"),
@Result(property = "permissions",javaType = List.class,column ="id", @Result(property = "permissions",javaType = List.class,column ="id",
many = @Many(select = "com.yxproject.start.mapper.SysPermissionMapper.selectPermissionByRoleId"))}) many = @Many(select = "com.yxproject.start.mapper.SysPermissionMapper.selectPermissionByRoleId"))})
public SysRole selectRoleByRoleId(@Param("roleId") Integer roleId); public SysRole selectRoleByRoleId(@Param("roleId") Integer roleId);
......
...@@ -299,4 +299,6 @@ p { ...@@ -299,4 +299,6 @@ p {
font-family: 'Arial Black'; font-family: 'Arial Black';
color:#000; color:#000;
} }
.padding10{
padding: 10px;
}
<div class="ui-dialog-title" >
请选择格口文件,解析 {{upDate}} 上传的 {{upCount}} 制证包
</div>
<div class="ui-dialog-content">
<table class="table table-hover" >
<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>2019-03-04 15:08</td>
<td>格口文件.xls</td>
<td>400</td>
<td>2019-03-01</td>
<td>2019-03-03</td>
<td ng-click="">
<button class="btn">解析</button>
</td>
</tr>
<tr >
<td>2</td>
<td>2019-03-04 15:08</td>
<td>格口文件.xls</td>
<td>400</td>
<td>2019-03-01</td>
<td>2019-03-03</td>
<td ng-click="">
<button class="btn">解析</button>
</td>
</tr>
<tr >
<td>3</td>
<td>2019-03-04 15:08</td>
<td>格口文件.xls</td>
<td>400</td>
<td>2019-03-01</td>
<td>2019-03-03</td>
<td ng-click="">
<button class="btn">解析</button>
</td>
</tr>
<tr >
<td>4</td>
<td>
2019-03-04 15:08
</td>
<td>
格口文件.xls
</td>
<td>
400
</td>
<td>
2019-03-01
</td>
<td>
2019-03-03
</td>
<td ng-click="">
<button class="btn">解析</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="ui-dialog-confirm">
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped"
role="progressbar"
aria-valuemin="0"
aria-valuemax="100"
style="width: 90%"> 90% Complete (success)
</div>
</div>
</div>
<div style="text-align: center;">
<button class="btn btn-success" style="width: 70%" ng-click="closeThisDialog()">关闭</button>
</div>
\ No newline at end of file
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
<link rel="stylesheet" href="components/bootstrap-3.3.7/css/bootstrap-datetimepicker.min.css"> <link rel="stylesheet" href="components/bootstrap-3.3.7/css/bootstrap-datetimepicker.min.css">
<!-- Select2 --> <!-- Select2 -->
<link rel="stylesheet" href="newTheme/bower_components/select2/dist/css/select2.min.css"> <link rel="stylesheet" href="newTheme/bower_components/select2/dist/css/select2.min.css">
<script src="newTheme/bower_components/select2/dist/js/select2.full.min.js"></script> <script src="newTheme/bower_components/select2/dist/js/select2.full.min.js"></script>
<!-- Theme style --> <!-- Theme style -->
<link rel="stylesheet" href="newTheme/dist/css/AdminLTE.min.css"> <link rel="stylesheet" href="newTheme/dist/css/AdminLTE.min.css">
<!-- Font Awesome --> <!-- Font Awesome -->
...@@ -71,178 +71,176 @@ ...@@ -71,178 +71,176 @@
<script language="javascript" src="components/js/LodopFuncs.js"></script> <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> <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 ng-if="loginData.login == true" class="wrapper"> <div ng-if="loginData.login == true" 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>bhl</span></span> <span class="logo-mini"><span>{{loginData.name}}</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>{{loginData.roleList[0].role}}</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"> <!---导航左边-->
<!-- Sidebar toggle button--> <nav class="navbar navbar-static-top">
<a class="sidebar-toggle" data-toggle="push-menu" role="button"> <!-- Sidebar toggle button-->
<span class="sr-only">Toggle navigation</span> <ul class="navbar-nav no-padding">
</a> <li class="nav-item">
<div style="text-align: right;font-size:1.8em;line-height: 50px;color: #fff;font-family:'黑体';padding-right: 20px;">北京制证辅助平台</div> <a class="sidebar-toggle" data-toggle="push-menu" role="button">
</nav> <span class="sr-only">Toggle navigation</span>
</header> </a>
<aside class="main-sidebar"> </li>
<!-- sidebar: style can be found in sidebar.less --> <li class="sidebar no-padding navbar-left" style="width: 377px;margin-left:27px;height: auto;">
<section class="sidebar" > <form style="height: 37px;margin: 6px 5px;">
<!-- search form --> <div class="input-group input-group-sm">
<form class="sidebar-form"> <input type="text" class="form-control" ng-model="searchInput">
<div class="input-group"> <span class="input-group-btn">
<input type="text" name="q" class="form-control" ng-model="searchInput" placeholder="Search..."> <button type="button"ng-click="doSearch(searchInput)" class="btn btn-info btn-flat"> Go </button>
<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 -->
<ul class="sidebar-menu" data-widget="tree">
<li class="header">
导航
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/xmlAndSearch']" ng-click="getFocus('/xmlAndSearch')">
<a href="#!/xmlAndSearch">
<i class="fa fa-file-code-o"></i>
<span>制证包管理</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/excelAndSearch']" ng-click="getFocus('/excelAndSearch')">
<a href="#!/excelAndSearch">
<i class="fa fa-file-excel-o"></i>
<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> </span>
</a> </div>
<ul class="treeview-menu"> </form>
<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>
<li><a href="#!/cardProdUpdate"><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>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/uploadExcelAndSearch']" ng-click="getFocus('/uploadExcelAndSearch')">
<a href="#!/uploadExcelAndSearch">
<i class="fa fa-table"></i>
<span>邮政信息查询</span>
</a>
</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>
</ul>
<div class="pull-right" style="font-size:1.8em;line-height: 50px;color: #fff;font-family:'黑体';padding:0 20px;">北京制证辅助平台</div>
<!--导航右边-->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- Messages: style can be found in dropdown.less-->
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-envelope-o"></i>
<span class="label label-success">4</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 4 messages</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li><!-- start message -->
<a href="#">
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li><!-- start message -->
<a href="#">
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li><!-- start message -->
<a href="#">
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li><!-- start message -->
<a href="#">
<p>Why not buy a new awesome theme?</p>
</a>
</li>
</ul>
</li>
<li class="footer"><a href="#">See All Messages</a></li>
</ul>
</li>
<!-- Notifications: style can be found in dropdown.less -->
<li class="dropdown notifications-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-bell-o"></i>
<span class="label label-warning">10</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 10 notifications</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li>
<a href="#">
<i class="fa fa-users text-aqua"></i> 5 new members joined today
</a>
</li>
<li>
<a href="#">
<i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
page and may cause design problems
</a>
</li>
<li>
<a href="#">
<i class="fa fa-users text-red"></i> 5 new members joined
</a>
</li>
<li>
<a href="#">
<i class="fa fa-shopping-cart text-green"></i> 25 sales made
</a>
</li>
<li>
<a href="#">
<i class="fa fa-user text-red"></i> You changed your username
</a>
</li>
</ul>
</li>
<li class="footer"><a href="#">View all</a></li>
</ul>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/taskListPrint']" ng-click="getFocus('/taskListPrint')"> <li class="dropdown user">
<a href="#!/taskListPrint"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-dashboard"></i> <span class="hidden-xs">{{loginData.name}}</span>
<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> </a>
</li> <ul class="dropdown-menu">
<li ng-class="{true: 'active', false: ''}[tab =='/taskListSorting']" ng-click="getFocus('/taskListSorting')"> <li style="padding: 5px;">
<a href="#!/taskListSorting"> <a ng-click="logout()" class="btn btn-default btn-flat">退出当前用户</a>
<i class="fa fa-dashboard"></i> </li>
<span>分拣任务单</span> </ul>
</a> </li>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/tagPrint']" ng-click="getFocus('/tagPrint')">
<a href="#!/tagPrint">
<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>
<li ng-class="{true: 'active', false: ''}[tab =='/addRest']" ng-click="getFocus('/addRest')">
<a href="#!/addRest">
<i class="fa fa-plus"></i>
<span>添加余证</span>
</a>
</li>
<li ng-class="{true: 'active', false: ''}[tab =='/historyBack']" ng-click="getFocus('/historyBack')">
<a href="#!/historyBack">
<i class="fa fa-plus"></i>
<span>历史回迁证</span>
</a>
</li>
<li>
<a ng-click="logout()">
<i class="glyphicon glyphicon-user"></i>
<span>退出当前用户</span>
</a>
</li>
</ul> </ul>
</section>
<!-- /.sidebar -->
</aside>
<div class="content-wrapper" ng-view style="min-height: 589px;"></div>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>联系电话:</b>(010)88516568
</div> </div>
<strong>北京盈信信息科技版权所有</strong>
</footer> </nav>
</div> </header>
<div ng-if="loginData.login == false" class="wrapper" style="background-color: #EEEEEE;"> <aside class="main-sidebar">
<div style="min-height: 500px;" ng-view></div> <!-- sidebar: style can be found in sidebar.less -->
</div> <section class="sidebar">
<!-- search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu" data-widget="tree">
<li class="header">
导航
</li>
<li ng-repeat="menu in menuList | orderBy:'id'" ng-class="{true: 'active', false: ''}[tab =='{{menu.url}}']" ng-click="getFocus(menu.url)">
<a href="#!{{menu.url}}">
<i class="fa fa-file-code-o"></i>
<span ng-bind="menu.name"></span>
</a>
</li>
<li>
<a ng-click="logout()">
<i class="glyphicon glyphicon-user"></i>
<span>退出当前用户</span>
</a>
</li>
</ul>
</section>
<!-- /.sidebar -->
</aside>
<div class="content-wrapper" ng-view style="min-height: 589px;"></div>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>联系电话:</b>(010)88516568
</div>
<strong>北京盈信信息科技所有</strong>
</footer>
</div>
<div ng-if="loginData.login == false" class="wrapper" style="background-color: #EEEEEE;">
<div style="min-height: 500px;" ng-view></div>
</div>
<!-- iCheck --> <!-- iCheck -->
<script src="js/app.js"></script> <script src="js/app.js"></script>
......
...@@ -24,9 +24,9 @@ angular.module('AvatarCheck', [ ...@@ -24,9 +24,9 @@ angular.module('AvatarCheck', [
'AvatarCheck.packageLog', 'AvatarCheck.packageLog',
'AvatarCheck.tagPrint', 'AvatarCheck.tagPrint',
'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: '/xmlAndSearch'}); $routeProvider.otherwise({redirectTo: '/createTaskList'});
localStorageServiceProvider.setPrefix('AvatarCheck') localStorageServiceProvider.setPrefix('AvatarCheck')
$qProvider.errorOnUnhandledRejections(false) $qProvider.errorOnUnhandledRejections(false)
}]) }])
...@@ -37,15 +37,22 @@ angular.module('AvatarCheck', [ ...@@ -37,15 +37,22 @@ angular.module('AvatarCheck', [
$rootScope.loginData = localStorageService.get('loginData') $rootScope.loginData = localStorageService.get('loginData')
$scope.id = 'id';
if($rootScope.loginData == null){ if($rootScope.loginData == null){
$rootScope.loginData = {userid:'用户未登录', login:false}; $rootScope.loginData = {userid:'用户未登录', login:false};
} }
if($rootScope.loginData.login == false){ if($rootScope.loginData.login == false){
$location.path("/login"); $location.path("/login");
} }
if($rootScope.loginData.login == true){
$rootScope.menuList = $rootScope.loginData.roleList[0].permissions;
console.log($scope.menuList)
}
$rootScope.tab = '/xmlAndSearch';
if ($location.path() == "/excelAndSearch") { if ($location.path() == "/excelAndSearch") {
$rootScope.tab = '/excelAndSearch'; $rootScope.tab = '/excelAndSearch';
} }
...@@ -118,7 +125,6 @@ angular.module('AvatarCheck', [ ...@@ -118,7 +125,6 @@ angular.module('AvatarCheck', [
} }
console.log($rootScope.tab) console.log($rootScope.tab)
$scope.getFocus = function (index) { $scope.getFocus = function (index) {
if(index=='/tagPrint'){ if(index=='/tagPrint'){
......
...@@ -4,13 +4,9 @@ ...@@ -4,13 +4,9 @@
vertical-align: middle!important; vertical-align: middle!important;
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
添加废证
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header with-border">废证添加</strong>
<div class="box-primary"> <div class="box-primary">
<form ng-submit="createInputs()" style="padding-left: 15px;"> <form ng-submit="createInputs()" style="padding-left: 15px;">
<span style="font-size:20px;">废证数量:</span> <span style="font-size:20px;">废证数量:</span>
......
...@@ -7,13 +7,9 @@ ...@@ -7,13 +7,9 @@
.cl:after{display:block;clear:both;content:"";visibility:hidden;height:0} .cl:after{display:block;clear:both;content:"";visibility:hidden;height:0}
.cl{zoom:1} .cl{zoom:1}
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
添加余证
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header with-border">余证添加</strong>
<div class="box-primary"> <div class="box-primary">
<form ng-submit="createInputs()" style="padding-left: 15px;"> <form ng-submit="createInputs()" style="padding-left: 15px;">
<span style="font-size:20px;">余证数量:</span> <span style="font-size:20px;">余证数量:</span>
......
...@@ -24,14 +24,9 @@ ...@@ -24,14 +24,9 @@
zoom: 1 zoom: 1
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
原始包解析日志
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header"></strong> <strong class="box-header with-border">解析日志</strong>
<div class="box-primary" style="padding: 15px;padding-top: 0;"> <div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
......
...@@ -27,12 +27,7 @@ ...@@ -27,12 +27,7 @@
zoom: 1 zoom: 1
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
制证信息打包
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header">制证信息打包</strong> <strong class="box-header">制证信息打包</strong>
<div class="box-info"> <div class="box-info">
...@@ -89,7 +84,7 @@ ...@@ -89,7 +84,7 @@
</div> </div>
<div class="box box-default"> <div class="box box-default">
<strong class="box-header">制证信息详情</strong> <strong class="box-header with-border">制证信息详情</strong>
<div class="box-info" style="padding: 10px;"> <div class="box-info" style="padding: 10px;">
<table class="table table-bordered table-hover" ng-if="packageData"> <table class="table table-bordered table-hover" ng-if="packageData">
<thead> <thead>
......
...@@ -27,12 +27,7 @@ ...@@ -27,12 +27,7 @@
zoom: 1 zoom: 1
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
制证包删除
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header">制证信息打包</strong> <strong class="box-header">制证信息打包</strong>
<div class="box-info"> <div class="box-info">
...@@ -83,7 +78,7 @@ ...@@ -83,7 +78,7 @@
</div> </div>
<div class="box box-default"> <div class="box box-default">
<strong class="box-header">查询结果</strong> <strong class="box-header with-border">查询结果</strong>
<div class="box-info" style="padding: 10px;"> <div class="box-info" style="padding: 10px;">
<table class="table table-bordered table-hover" ng-if="xmlDatas"> <table class="table table-bordered table-hover" ng-if="xmlDatas">
<thead> <thead>
......
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
任务单创建
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
...@@ -75,4 +70,4 @@ ...@@ -75,4 +70,4 @@
<!-- /.col --> <!-- /.col -->
</div> </div>
<!-- /.row --> <!-- /.row -->
</section> </div>
\ No newline at end of file \ No newline at end of file
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
任务单下发
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
...@@ -76,4 +71,4 @@ ...@@ -76,4 +71,4 @@
<!-- /.col --> <!-- /.col -->
</div> </div>
<!-- /.row --> <!-- /.row -->
</section> </div>
\ No newline at end of file \ No newline at end of file
...@@ -27,12 +27,7 @@ ...@@ -27,12 +27,7 @@
zoom: 1 zoom: 1
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
邮寄信息导入
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header">格口文件上传</strong> <strong class="box-header">格口文件上传</strong>
<div class="box-primary"> <div class="box-primary">
...@@ -82,7 +77,7 @@ ...@@ -82,7 +77,7 @@
</div> </div>
</div> </div>
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header">格口文件管理</strong> <strong class="box-header with-border">格口文件管理</strong>
<div class="box-primary" style="padding: 15px;padding-top: 0;"> <div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
......
...@@ -24,19 +24,19 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -24,19 +24,19 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
$('#datepicker1').datetimepicker({ $('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒 minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN', language: 'zh-CN',
format: 'yyyy-mm-dd', format: 'yyyyMMdd',
todayBtn: 1, todayBtn: 1,
autoclose: 1 autoclose: 1
}); });
$('#datepicker2').datetimepicker({ $('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒 minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN', language: 'zh-CN',
format: 'yyyy-mm-dd', format: 'yyyyMMdd',
todayBtn: 1, todayBtn: 1,
autoclose: 1 autoclose: 1
}); });
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyyMMdd");
$scope.paginationConf = { $scope.paginationConf = {
currentPage: 1, currentPage: 1,
...@@ -46,6 +46,7 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -46,6 +46,7 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
$scope.paginationConf.totalItems = 50; $scope.paginationConf.totalItems = 50;
$scope.uploadExcel = function () { $scope.uploadExcel = function () {
console.log($("#datepicker1").val())
var fd = new FormData(); var fd = new FormData();
var files = document.querySelector('input#id_file_photo_for_check').files; var files = document.querySelector('input#id_file_photo_for_check').files;
fd.append("formStartTime",$("#datepicker1").val()); fd.append("formStartTime",$("#datepicker1").val());
......
...@@ -4,14 +4,9 @@ ...@@ -4,14 +4,9 @@
vertical-align: middle!important; vertical-align: middle!important;
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4> <div class="box box-primary">
历史回迁证 <strong class="box-header with-border">回迁证添加</strong>
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary">
<div class="box-primary">
<form style="padding-left: 15px;"> <form style="padding-left: 15px;">
<span style="font-size:20px;">回迁证数量:</span> <span style="font-size:20px;">回迁证数量:</span>
<input style="margin-top:20px;height: 30px;" type="text" ng-model="historyCount"> <input style="margin-top:20px;height: 30px;" type="text" ng-model="historyCount">
...@@ -55,6 +50,4 @@ ...@@ -55,6 +50,4 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>
\ No newline at end of file
...@@ -28,6 +28,42 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http']) ...@@ -28,6 +28,42 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
} }
} }
var whereToGo = function(process){
switch (process){
case 1:
$location.path("/createTaskList");
$rootScope.tab = '/createTaskList';
break;
case 2:
$location.path("/taskListPrint");
$rootScope.tab = '/taskListPrint';
break;
case 3:
$location.path("/taskListPreLocating");
$rootScope.tab = '/taskListPreLocating';
break;
case 4:
$location.path("/taskListSorting");
$rootScope.tab = '/taskListSorting';
break;
case 5:
$location.path("/taskListQualityCheck");
$rootScope.tab = '/taskListQualityCheck';
break;
case 6:
$location.path("/receitp");
$rootScope.tab = '/receitp';
break;
case 7:
$location.path("/uploadExcelAndSearch");
$rootScope.tab = '/uploadExcelAndSearch';
break;
case 8:
$location.path("/createTaskList");
$rootScope.tab = '/createTaskList';
break;
}
}
$scope.user = {}; $scope.user = {};
$scope.doLogin = function(){ $scope.doLogin = function(){
...@@ -41,7 +77,9 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http']) ...@@ -41,7 +77,9 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$rootScope.loginData = resp.data.user; $rootScope.loginData = resp.data.user;
$rootScope.loginData.login =true; $rootScope.loginData.login =true;
localStorageService.set('loginData', resp.data.user); localStorageService.set('loginData', resp.data.user);
$location.path('/xmlAndSearch') $rootScope.menuList = $rootScope.loginData.roleList[0].permissions;
console.log($scope.menuList)
whereToGo($rootScope.loginData.roleList[0].process)
if(userAgent.indexOf('.NET')!=-1){ if(userAgent.indexOf('.NET')!=-1){
window.location.reload(); window.location.reload();
}else{ }else{
......
...@@ -24,14 +24,9 @@ ...@@ -24,14 +24,9 @@
zoom: 1 zoom: 1
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
数据打包日志
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header"></strong> <strong class="box-header with-border">打包日志</strong>
<div class="box-primary" style="padding: 15px;padding-top: 0;"> <div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
......
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4> 交接单
交接单 </div>
</h4>
</section>
\ No newline at end of file
<section class="content-header" style="padding-top: 1px;"> <div class="content row">
<h4> <div class="col-md-12" style="margin-top:20px;">
<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"> <div class="box box-primary">
<strong class="box-header"> <strong class="box-header">
查询结果 查询结果
</strong> </strong>
<div class="box-info" style="padding: 10px;"> <div class="box-info" style="padding:0px 10px 7px 10px;">
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">
...@@ -95,14 +91,13 @@ ...@@ -95,14 +91,13 @@
<button class="btn btn-danger">退证</button> <button class="btn btn-danger">退证</button>
</div> </div>
</div> </div>
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title"> <h3 class="panel-title">
制证库 制证库
</h3> </h3>
</div> </div>
<div class="panel-body"> <div class="panel-body" style="padding-bottom: 0;">
<table class="table table-hover table-bordered"> <table class="table table-hover table-bordered">
<thead> <thead>
<tr> <tr>
...@@ -148,4 +143,4 @@ ...@@ -148,4 +143,4 @@
</div> </div>
</div> </div></div>
\ No newline at end of file \ No newline at end of file
...@@ -12,13 +12,9 @@ ...@@ -12,13 +12,9 @@
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
邮政快递单打印
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header with-border" style="padding-bottom:0px">居民身份证阅读信息</strong>
<div class="box-info"> <div class="box-info">
<div class="row" style="padding: 15px;"> <div class="row" style="padding: 15px;">
<div class="col-lg-3" style="text-align: center;padding-top: 20px;"><img style="height:148px;width:115px;" id="imgDetail" class="img-thumbnail" /></div> <div class="col-lg-3" style="text-align: center;padding-top: 20px;"><img style="height:148px;width:115px;" id="imgDetail" class="img-thumbnail" /></div>
...@@ -62,8 +58,8 @@ ...@@ -62,8 +58,8 @@
<button class="btn btn-info" ng-click="endReading()">停止读卡</button> <button class="btn btn-info" ng-click="endReading()">停止读卡</button>
</div> </div>
</div> </div>
<div class="box box-primary"> <div class="box box-primary box-default">
<strong class="box-header">个人邮寄信息详情</strong> <strong class="box-header with-border">个人邮寄信息详情</strong>
<div class="box-info" style="padding: 10px;"> <div class="box-info" style="padding: 10px;">
<table class="table table-bordered table-striped postTable" ng-if="postMsgDetail.length>0"> <table class="table table-bordered table-striped postTable" ng-if="postMsgDetail.length>0">
<thead> <thead>
...@@ -241,7 +237,6 @@ ...@@ -241,7 +237,6 @@
</tr> </tr>
</table> </table>
</div> </div>
<div id="div3"> <div id="div3">
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px dashed #000;width:96mm;font-family: '黑体';"> <table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px dashed #000;width:96mm;font-family: '黑体';">
<tr> <tr>
......
<!--<style>-->
<!--.table th, .table td {-->
<!--text-align: center;-->
<!--vertical-align: middle!important;-->
<!--}-->
<!--.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>-->
<style> <style>
.table th, .table td { form input{
text-align: center; border:0;
vertical-align: middle!important; color:black;
} font-weight: bold;
.ul li{ margin-left: 10px;
cursor: pointer; }
} .postTable th, .postTable td {
.page-list .pagination {float:left;} text-align: center;
.page-list .pagination span {cursor: pointer;} vertical-align: middle!important;
.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> </style>
<section class="content-header" style="padding-top: 1px;"> <section class="content">
<h4> <div class="col-md-12 no-padding" style="margin-top:20px;">
打印封条 <div class="box box-primary ">
</h4> <div class="box-header with-border">
</section> <strong >封条标签</strong>
<div style="padding: 15px;"> </div>
<div class="box box-primary"> <div class="box-info" style="padding: 15px;padding-top: 0;">
<strong class="box-header"></strong>
<div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
<td width="10%">身份证号:</td> <td width="10%">身份证号:</td>
...@@ -45,89 +56,116 @@ ...@@ -45,89 +56,116 @@
</td> </td>
</tr> </tr>
</table> </table>
<div class="row"> </div>
<div class="col-lg-5" > </div>
</div>
<div class="col-lg-12"> <div class="col-md-12 box no-padding">
<table class="table table-bordered table-hover postTable "> <div class=" box-default">
<thead> <div class="box-header with-border">
<tr> <strong >详情信息</strong>
<th>NO.</th> </div>
<th>派出所代码</th> <div class="box-body no-padding col-md-12">
<th>派出所名称</th> <div class="col-md-5" style="padding-right: 0px;" >
<th>数量</th> <table class="table table-bordered table-hover postTable ">
<th>状态</th> <thead>
</tr> <tr>
</thead> <th>NO.</th>
<tbody> <th>派出所代码</th>
<tr ng-click="showDetail(1)"> <th>派出所名称</th>
<td>1</td> <th>数量</th>
<td>110021</td> <th>打印卸载</th>
<td>东城派出所</td> <th>电质检</th>
<td>2</td> <th>状态</th>
<td></td> </tr>
</tr> </thead>
<tr ng-click="showDetail(2)"> <tbody>
<td>2</td> <tr ng-click="showDetail(1)">
<td>110021</td> <td>1</td>
<td>东城派出所</td> <td>110021</td>
<td>3</td> <td>东城派出所</td>
<td>复核一致</td> <td>2</td>
</tr> <td>2</td>
<tr ng-repeat="item in postMsgDetail"> <td>0</td>
<td> <td></td>
<input ng-if="$index==0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)" checked="checked"> </tr>
<input ng-if="$index!=0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)"> <tr ng-click="showDetail(2)">
</td> <td>2</td>
<td>{{item.id}}</td> <td>110021</td>
<td>{{item.ddh}}</td> <td>东城派出所</td>
<td>{{item.yjh}}</td> <td>3</td>
<td>{{item.fxyjh}}</td> <td>3</td>
<td>{{item.sbsll}}</td> <td>3</td>
<td>{{item.sjrxm}}</td> <td></td>
<td>{{item.sjrlxfs}}</td> </tr>
<td>{{item.sjrdz}}</td> <tr ng-repeat="item in postMsgDetail">
<td>{{item.sqrxm}}</td> <td>
<td>{{item.printTime | date:'yyyy-MM-dd hh:mm:ss'}}</td> <input ng-if="$index==0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)" checked="checked">
</tr> <input ng-if="$index!=0" type="radio" name="r1" class="minimal" value="{{item.id}}" ng-click="changeIndex($index)">
</td>
</tbody> <td>{{item.id}}</td>
</table> <td>{{item.ddh}}</td>
</div> <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>
</div> </tbody>
<div class="col-lg-7" style="padding-left: 0;" ng-if="policeCardsList"> </table>
<table class="table table-bordered">
<thead>
<tr>
<th>No.</th>
<th>受理号</th>
<th>姓名</th>
<th>身份证号</th>
<th>签发机关</th>
<th>打印标记</th>
<th>电写标记</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in policeCardsList">
<td>{{$index+1}}</td>
<td>{{item.acceptNo}}</td>
<td>{{item.username}}</td>
<td>{{item.idCard}}</td>
<td>{{item.qfjg}}</td>
<td>
<span ng-if="item.isPrint==1" style="color:red;size: 6px">X</span>
<span ng-if="item.isPrint==0" style="color:lightseagreen;size: 6px"></span>
</td>
<td><span ng-if="item.isEwrite==1" style="color:red;size: 6px">X</span>
<span ng-if="item.isEwrite==0" style="color:lightseagreen;size: 6px"></span>
</td>
</tr>
</tbody>
</table>
</div>
</div> </div>
<div class="col-md-7" style="" ng-if="policeCardsList">
<table class="table table-bordered">
<thead>
<tr>
<th>No.</th>
<th>受理号</th>
<th>姓名</th>
<th>身份证号</th>
<th>签发机关</th>
<th>打印标记</th>
<th>电写标记</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in policeCardsList">
<td>{{$index+1}}</td>
<td>{{item.acceptNo}}</td>
<td>{{item.username}}</td>
<td>{{item.idCard}}</td>
<td>{{item.qfjg}}</td>
<td>
<span ng-if="item.isPrint==1"
style="color: red"
class="glyphicon glyphicon-remove">
</span>
<span ng-if="item.isPrint==0"
style="size: 6px">2019-03-04 19:14</span>
</td>
<td>
<span ng-if="item.isEwrite==1"
style="color: red"
class="glyphicon glyphicon-remove">
</span>
<span ng-if="item.isEwrite==0"
style="size: 6px">2019-03-04 19:14</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="box-footer clearfix">
<button class="btn btn-success pull-right "
style="margin-right: 20px;">复核一致
</button>
<button class="btn btn-info pull-right"
style="margin-right: 20px;">打印标签
</button>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file </section>
\ No newline at end of file
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
...@@ -81,5 +76,5 @@ ...@@ -81,5 +76,5 @@
<!-- /.col --> <!-- /.col -->
</div> </div>
<!-- /.row --> <!-- /.row -->
</section> </div>
<section class="content-header" style="padding-top: 1px;">
<h4> <div class="col-md-12" style="margin-top:20px;">
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12">
...@@ -92,5 +88,5 @@ ...@@ -92,5 +88,5 @@
<!-- /.col --> <!-- /.col -->
</div> </div>
<!-- /.row --> <!-- /.row -->
</section> </div>
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12" style="margin-top:20px;">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-header with-border"> <div class="box-header with-border">
<strong>任务单详情</strong> <strong>任务单详情</strong>
...@@ -84,7 +77,6 @@ ...@@ -84,7 +77,6 @@
<!-- /. box --> <!-- /. box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
</div>
<!-- /.row --> <!-- /.row -->
</section>
<section class="content-header" style="padding-top: 1px;">
<h4>
任务单
</h4>
</section>
<section class="content" style="padding: 15px;">
<div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-md-12"> <div class="col-md-12" style="margin-top:20px;">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-header with-border"> <div class="box-header with-border">
<strong>任务单详情</strong> <strong>任务单详情</strong>
<div class="box-tools pull-right"> <div class="box-tools pull-right">
...@@ -78,9 +72,7 @@ ...@@ -78,9 +72,7 @@
</div> </div>
</div> </div>
<!-- /. box --> <!-- /. box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
</div>
<!-- /.row -->
</section>
...@@ -27,13 +27,9 @@ ...@@ -27,13 +27,9 @@
zoom: 1 zoom: 1
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="col-md-12" style="margin-top:20px;">
<h4> <div class="box box-primary" >
邮政信息查询 <strong class="box-header">快递单信息管理</strong>
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary" style="padding: 15px;margin-bottom: 10px;">
<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>
...@@ -87,7 +83,9 @@ ...@@ -87,7 +83,9 @@
</div> </div>
</div> </div>
<div class="box box-default"> <div class="box box-default">
<div class="box-header">邮寄单详情(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共{{paginationConf.totalItems}}条</span>)</div> <div class="box-header with-border"><strong>邮寄单详情</strong>
(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共
{{paginationConf.totalItems}}条</span>)</div>
<div class="box-info" style="padding: 10px;"> <div class="box-info" style="padding: 10px;">
<table class="table table-bordered table-hover" ng-if="postData.length>0"> <table class="table table-bordered table-hover" ng-if="postData.length>0">
<thead> <thead>
......
...@@ -27,18 +27,14 @@ ...@@ -27,18 +27,14 @@
zoom: 1 zoom: 1
} }
</style> </style>
<section class="content-header" style="padding-top: 1px;"> <div class="content row">
<h4> <div class="col-md-12" style="margin-top:20px;">
制证包管理
</h4>
</section>
<div style="padding: 15px;">
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header">制证包上传</strong> <strong class="box-header with-border">制证包上传</strong>
<div class="box-primary"> <div class="box-primary">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
<td width="10%">选择xml文件:</td> <td width="10%">选择XML文件:</td>
<td colspan="2" width="35%"> <td colspan="2" width="35%">
<input type="file" <input type="file"
id="id_file_photo_for_check" id="id_file_photo_for_check"
...@@ -53,11 +49,11 @@ ...@@ -53,11 +49,11 @@
</div> </div>
</div> </div>
<div class="box box-primary"> <div class="box box-primary">
<strong class="box-header">制证包管理</strong> <strong class="box-header with-border ">制证包管理</strong>
<div class="box-primary" style="padding: 15px;padding-top: 0;"> <div class="box-primary" style="padding: 15px;padding-top: 0;">
<table class="table table-bordered" style="margin-bottom: 0;"> <table class="table table-bordered" style="margin-bottom: 0;">
<tr> <tr>
<td>Xml导入时间:</td> <td>XML导入时间:</td>
<td> <td>
<div class="input-group date" style="width: 65%"> <div class="input-group date" style="width: 65%">
<div class="input-group-addon"> <div class="input-group-addon">
...@@ -102,7 +98,7 @@ ...@@ -102,7 +98,7 @@
<td>{{item.commonCardCount}}</td> <td>{{item.commonCardCount}}</td>
<td>{{item.postCardCount}}</td> <td>{{item.postCardCount}}</td>
<td> <td>
<button class="btn btn-primary" ng-click="analysis()">解析</button> <button class="btn btn-primary" ng-click="analysis(item.uploadDate,item.packageCount)">解析</button>
<button class="btn btn-danger">删除</button> <button class="btn btn-danger">删除</button>
</td> </td>
</tr> </tr>
...@@ -121,4 +117,4 @@ ...@@ -121,4 +117,4 @@
</div> </div>
</div> </div>
</div> </div>
</div>
...@@ -37,15 +37,18 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -37,15 +37,18 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
}; };
$scope.paginationConf.totalItems = 50; $scope.paginationConf.totalItems = 50;
$scope.analysis = function () { $scope.analysis = function (uploadDate,packageCount) {
ngDialog.open({ ngDialog.open({
template: 'dialogs/alert.html' + urlTimeStamp(), template: 'dialogs/analysisDialog.html' + urlTimeStamp(),
width: 600, width: 876,
cache: false, cache: false,
controller: ['$scope', function ($scope) { controller: ['$scope', function ($scope) {
$scope.msgText = "弹出框" $scope.upDate =uploadDate;
$scope.upCount=packageCount;
}] }]
}); });
} }
$scope.uploadXml = function () { $scope.uploadXml = function () {
......
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