parent
87b655ce8f
commit
9fe078166b
@ -0,0 +1,74 @@
|
|||||||
|
package com.ruoyi.web.controller.nanjing;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.nanjing.domain.QsProduct;
|
||||||
|
import com.ruoyi.nanjing.service.ITBdProducttypeService;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/nanjing/StatisticQ1Product")
|
||||||
|
public class StatisticQ1ProductController extends BaseController {
|
||||||
|
private String prefix = "nanjing/Statistic";
|
||||||
|
@Autowired
|
||||||
|
private ITBdProducttypeService producttypeService;
|
||||||
|
@RequiresPermissions("nanjing:Q1Product:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String Q1Product()
|
||||||
|
{
|
||||||
|
return prefix + "/Q1Product";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 一次合格率统计
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("nanjing:Q1Product:list")
|
||||||
|
@PostMapping("/Q1list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo Q1list(QsProduct qsProduct)
|
||||||
|
{
|
||||||
|
// startPage();
|
||||||
|
Map map = new HashMap<String,Object>();
|
||||||
|
map.put("beginTime",qsProduct.getBeginTime());
|
||||||
|
map.put("endTime",qsProduct.getEndTime());
|
||||||
|
map.put("productType",qsProduct.getProductType());
|
||||||
|
map.put("productId","");
|
||||||
|
List<QsProduct> list = producttypeService.selectQsProductList(map);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 一次合格率统计
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("nanjing:Q1Product:export")
|
||||||
|
@Log(title = "时段统计", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/Q1export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult Q1export(QsProduct qsProduct)
|
||||||
|
{
|
||||||
|
Map map = new HashMap<String,Object>();
|
||||||
|
map.put("beginTime",qsProduct.getBeginTime());
|
||||||
|
map.put("endTime",qsProduct.getEndTime());
|
||||||
|
map.put("productType",qsProduct.getProductType());
|
||||||
|
map.put("productId","");
|
||||||
|
List<QsProduct> list = producttypeService.selectQ1ProductList(map);
|
||||||
|
ExcelUtil<QsProduct> util = new ExcelUtil<QsProduct>(QsProduct.class);
|
||||||
|
return util.exportExcel(list, "QsProduct");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,82 @@
|
|||||||
|
package com.ruoyi.web.controller.nanjing;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.nanjing.domain.ProRpList;
|
||||||
|
import com.ruoyi.nanjing.domain.QsProduct;
|
||||||
|
import com.ruoyi.nanjing.domain.QtProduct;
|
||||||
|
import com.ruoyi.nanjing.domain.TBdProductinfo;
|
||||||
|
import com.ruoyi.nanjing.service.ITBdProducttypeService;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/nanjing/StatisticQsProduct")
|
||||||
|
public class StatisticQsProductController extends BaseController {
|
||||||
|
private String prefix = "nanjing/Statistic";
|
||||||
|
@Autowired
|
||||||
|
private ITBdProducttypeService producttypeService;
|
||||||
|
|
||||||
|
@RequiresPermissions("nanjing:QsProduct:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String QsProduct()
|
||||||
|
{
|
||||||
|
return prefix + "/QsProduct";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 整机合格率统计
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("nanjing:QsProduct:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(QsProduct qsProduct)
|
||||||
|
{
|
||||||
|
// startPage();
|
||||||
|
Map map = new HashMap<String,Object>();
|
||||||
|
map.put("beginTime",qsProduct.getBeginTime());
|
||||||
|
map.put("endTime",qsProduct.getEndTime());
|
||||||
|
map.put("productType",qsProduct.getProductType());
|
||||||
|
map.put("productId","");
|
||||||
|
List<QsProduct> list = producttypeService.selectQ1ProductList(map);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 整机合格率统计
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("nanjing:QsProduct:export")
|
||||||
|
@Log(title = "时段统计", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(QsProduct qsProduct)
|
||||||
|
{
|
||||||
|
Map map = new HashMap<String,Object>();
|
||||||
|
map.put("beginTime",qsProduct.getBeginTime());
|
||||||
|
map.put("endTime",qsProduct.getEndTime());
|
||||||
|
map.put("productType",qsProduct.getProductType());
|
||||||
|
map.put("productId","");
|
||||||
|
List<QsProduct> list = producttypeService.selectQsProductList(map);
|
||||||
|
ExcelUtil<QsProduct> util = new ExcelUtil<QsProduct>(QsProduct.class);
|
||||||
|
return util.exportExcel(list, "QsProduct");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,83 @@
|
|||||||
|
package com.ruoyi.web.controller.nanjing;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.nanjing.domain.ProRpList;
|
||||||
|
import com.ruoyi.nanjing.domain.QtProduct;
|
||||||
|
import com.ruoyi.nanjing.domain.TBdProductinfo;
|
||||||
|
import com.ruoyi.nanjing.service.ITBdProducttypeService;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/nanjing/StatisticQtProduct")
|
||||||
|
public class StatisticQtProductController extends BaseController {
|
||||||
|
private String prefix = "nanjing/Statistic";
|
||||||
|
@Autowired
|
||||||
|
private ITBdProducttypeService producttypeService;
|
||||||
|
|
||||||
|
@RequiresPermissions("nanjing:QtProduct:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String QtProduct()
|
||||||
|
{
|
||||||
|
return prefix + "/QtProduct";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询时段统计
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("nanjing:QtProduct:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(QtProduct qtProduct)
|
||||||
|
{
|
||||||
|
// startPage();
|
||||||
|
Map map = new HashMap<String,Object>();
|
||||||
|
map.put("beginTime",qtProduct.getBeginTime());
|
||||||
|
map.put("endTime",qtProduct.getEndTime());
|
||||||
|
map.put("productType",qtProduct.getProductType());
|
||||||
|
map.put("productId","");
|
||||||
|
map.put("shiftId","");
|
||||||
|
map.put("groupId","");
|
||||||
|
List<QtProduct> list = producttypeService.selectQtProductList(map);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出时段统计
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("nanjing:QtProduct:export")
|
||||||
|
@Log(title = "时段统计", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(QtProduct qtProduct)
|
||||||
|
{
|
||||||
|
Map map = new HashMap<String,Object>();
|
||||||
|
map.put("beginTime",qtProduct.getBeginTime());
|
||||||
|
map.put("endTime",qtProduct.getEndTime());
|
||||||
|
map.put("productType",qtProduct.getProductType());
|
||||||
|
map.put("productId","");
|
||||||
|
map.put("shiftId","");
|
||||||
|
map.put("groupId","");
|
||||||
|
List<QtProduct> list = producttypeService.selectQtProductList(map);
|
||||||
|
ExcelUtil<QtProduct> util = new ExcelUtil<QtProduct>(QtProduct.class);
|
||||||
|
return util.exportExcel(list, "QtProduct");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
package com.ruoyi.web.controller.nanjing;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.nanjing.domain.QsProduct;
|
||||||
|
import com.ruoyi.nanjing.service.ITBdProducttypeService;
|
||||||
|
import com.ruoyi.system.domain.SysDept;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/nanjing/StatisticStation")
|
||||||
|
public class StatisticStProductController extends BaseController {
|
||||||
|
|
||||||
|
private String prefix = "nanjing/Statistic";
|
||||||
|
@Autowired
|
||||||
|
private ITBdProducttypeService producttypeService;
|
||||||
|
|
||||||
|
@RequiresPermissions("nanjing:stationStatistic:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String stationProduct()
|
||||||
|
{
|
||||||
|
return prefix + "/QsStation";
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequiresPermissions("nanjing:stationStatistic:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public List<QsProduct> list(QsProduct qsProduct)
|
||||||
|
{
|
||||||
|
// List<QsProduct> qsProducts = producttypeService.selectDeptList(qsProduct);
|
||||||
|
// return qsProducts;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,79 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('整机合格率统计')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li class="select-time">
|
||||||
|
<label>时间区间: </label>
|
||||||
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
|
||||||
|
<span>-</span>
|
||||||
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>机种类型:</label>
|
||||||
|
<select name="productType" th:with="type=${@dict.getType('productType')}">
|
||||||
|
<option value="">全部</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<!-- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 查询全部</a>-->
|
||||||
|
<a class="btn btn-info btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="nanjing:Q1Product:export"><i class="fa fa-download"></i> 导出</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "nanjing/StatisticQ1Product";
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/Q1list",
|
||||||
|
exportUrl: prefix + "/Q1export",
|
||||||
|
modalName: "一次合格率统计",
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
field: 'productTp',
|
||||||
|
title: '机种类型'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'inputNum',
|
||||||
|
title: '投入量'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'okNum',
|
||||||
|
title: '合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'noNum',
|
||||||
|
title:'不合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'ero',
|
||||||
|
title:'异常'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'allRate',
|
||||||
|
title: '综合合格率',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,79 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('整机合格率统计')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li class="select-time">
|
||||||
|
<label>时间区间: </label>
|
||||||
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
|
||||||
|
<span>-</span>
|
||||||
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>机种类型:</label>
|
||||||
|
<select name="productType" th:with="type=${@dict.getType('productType')}">
|
||||||
|
<option value="">全部</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<!-- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 查询全部</a>-->
|
||||||
|
<a class="btn btn-info btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="nanjing:QsProduct:export"><i class="fa fa-download"></i> 导出</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "nanjing/StatisticQsProduct";
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "整机合格率统计",
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
field: 'productTp',
|
||||||
|
title: '机种类型'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'inputNum',
|
||||||
|
title: '投入量'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'okNum',
|
||||||
|
title: '合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'noNum',
|
||||||
|
title:'不合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'ero',
|
||||||
|
title:'异常'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'allRate',
|
||||||
|
title: '综合合格率',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,149 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('工位合格率统计')" />
|
||||||
|
<th:block th:include="include :: layout-latest-css" />
|
||||||
|
<th:block th:include="include :: ztree-css" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
|
||||||
|
<div class="ui-layout-west">
|
||||||
|
<div class="box box-main">
|
||||||
|
<div class="box-header">
|
||||||
|
<div class="box-title">
|
||||||
|
<i class="fa icon-grid"></i> 组织机构
|
||||||
|
</div>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<a type="button" class="btn btn-box-tool" href="#" onclick="dept()" title="管理部门"><i class="fa fa-edit"></i></a>
|
||||||
|
<button type="button" class="btn btn-box-tool" id="btnExpand" title="展开" style="display:none;"><i class="fa fa-chevron-up"></i></button>
|
||||||
|
<button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i class="fa fa-chevron-down"></i></button>
|
||||||
|
<button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新部门"><i class="fa fa-refresh"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ui-layout-content">
|
||||||
|
<div id="tree" class="ztree"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ui-layout-center">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li class="select-time">
|
||||||
|
<label>时间区间: </label>
|
||||||
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
|
||||||
|
<span>-</span>
|
||||||
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>机种类型:</label>
|
||||||
|
<select name="productType" th:with="type=${@dict.getType('productType')}">
|
||||||
|
<option value="">全部</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<input type="hidden" id="stationId" name="stationId">
|
||||||
|
<!-- <input type="hidden" id="parentId" name="parentId">-->
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<!-- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 查询全部</a>-->
|
||||||
|
<!-- <a class="btn btn-info btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="nanjing:QsProduct:export"><i class="fa fa-download"></i> 导出</a>-->
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<th:block th:include="include :: layout-latest-js" />
|
||||||
|
<th:block th:include="include :: ztree-js" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "nanjing/StatisticStation";
|
||||||
|
$(function() {
|
||||||
|
var panehHidden = false;
|
||||||
|
if ($(this).width() < 769) {
|
||||||
|
panehHidden = true;
|
||||||
|
}
|
||||||
|
$('body').layout({ initClosed: panehHidden, west__size: 185 });
|
||||||
|
queryList();
|
||||||
|
queryDeptTree();
|
||||||
|
});
|
||||||
|
|
||||||
|
function queryList() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "整机合格率统计",
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
field: 'productTp',
|
||||||
|
title: '机种类型'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'inputNum',
|
||||||
|
title: '投入量'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'okNum',
|
||||||
|
title: '合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'noNum',
|
||||||
|
title:'不合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'ero',
|
||||||
|
title:'异常'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'allRate',
|
||||||
|
title: '综合合格率',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
}
|
||||||
|
|
||||||
|
function queryDeptTree()
|
||||||
|
{
|
||||||
|
var url = ctx + "nanjing/treeData";
|
||||||
|
var options = {
|
||||||
|
url: url,
|
||||||
|
expandLevel: 2,
|
||||||
|
onClick : zOnClick
|
||||||
|
};
|
||||||
|
$.tree.init(options);
|
||||||
|
|
||||||
|
function zOnClick(event, treeId, treeNode) {
|
||||||
|
$("#stationId").val(treeNode.id);
|
||||||
|
// $("#parentId").val(treeNode.pId);
|
||||||
|
$.table.search();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$('#btnExpand').click(function() {
|
||||||
|
$._tree.expandAll(true);
|
||||||
|
$(this).hide();
|
||||||
|
$('#btnCollapse').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#btnCollapse').click(function() {
|
||||||
|
$._tree.expandAll(false);
|
||||||
|
$(this).hide();
|
||||||
|
$('#btnExpand').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#btnRefresh').click(function() {
|
||||||
|
queryDeptTree();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,83 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('整机产量统计')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li class="select-time">
|
||||||
|
<label>时间区间: </label>
|
||||||
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
|
||||||
|
<span>-</span>
|
||||||
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>机种类型:</label>
|
||||||
|
<select name="productType" th:with="type=${@dict.getType('productType')}">
|
||||||
|
<option value="">全部</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<!-- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 查询全部</a>-->
|
||||||
|
<a class="btn btn-info btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="nanjingProductChangeInfo:export"><i class="fa fa-download"></i> 导出</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "nanjing/StatisticQtProduct";
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "整机产量统计",
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
field: 'shiftNo',
|
||||||
|
title: '班次'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'groupNo',
|
||||||
|
title: '班组',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'inputNum',
|
||||||
|
title: '投入量'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'finNum',
|
||||||
|
title: '成品数量'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'okNum',
|
||||||
|
title: '合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'noNum',
|
||||||
|
title:'不合格品'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field:'ero',
|
||||||
|
title:'异常'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,98 @@
|
|||||||
|
package com.ruoyi.nanjing.domain;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class QsProduct extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Excel(name = "机种类型")
|
||||||
|
private String productTp;
|
||||||
|
@Excel(name = "投入量")
|
||||||
|
private String inputNum;
|
||||||
|
@Excel(name = "合格品")
|
||||||
|
private String okNum;
|
||||||
|
@Excel(name = "不合格品")
|
||||||
|
private String noNum;
|
||||||
|
@Excel(name = "异常")
|
||||||
|
private String ero;
|
||||||
|
@Excel(name = "综合合格率")
|
||||||
|
private String allRate;
|
||||||
|
private Date beginTime;
|
||||||
|
private Date endTime;
|
||||||
|
private String productType;
|
||||||
|
|
||||||
|
public String getProductTp() {
|
||||||
|
return productTp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductTp(String productTp) {
|
||||||
|
this.productTp = productTp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInputNum() {
|
||||||
|
return inputNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInputNum(String inputNum) {
|
||||||
|
this.inputNum = inputNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOkNum() {
|
||||||
|
return okNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOkNum(String okNum) {
|
||||||
|
this.okNum = okNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNoNum() {
|
||||||
|
return noNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNoNum(String noNum) {
|
||||||
|
this.noNum = noNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEro() {
|
||||||
|
return ero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEro(String ero) {
|
||||||
|
this.ero = ero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAllRate() {
|
||||||
|
return allRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAllRate(String allRate) {
|
||||||
|
this.allRate = allRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getBeginTime() {
|
||||||
|
return beginTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBeginTime(Date beginTime) {
|
||||||
|
this.beginTime = beginTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEndTime() {
|
||||||
|
return endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndTime(Date endTime) {
|
||||||
|
this.endTime = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProductType() {
|
||||||
|
return productType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductType(String productType) {
|
||||||
|
this.productType = productType;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,110 @@
|
|||||||
|
package com.ruoyi.nanjing.domain;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class QtProduct extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Excel(name = "班次")
|
||||||
|
private String shiftNo;
|
||||||
|
@Excel(name = "班组")
|
||||||
|
private String groupNo;
|
||||||
|
@Excel(name = "投入量")
|
||||||
|
private String inputNum;
|
||||||
|
@Excel(name = "成品数量")
|
||||||
|
private String finNum;
|
||||||
|
@Excel(name = "合格品")
|
||||||
|
private String okNum;
|
||||||
|
@Excel(name = "不合格品")
|
||||||
|
private String noNum;
|
||||||
|
@Excel(name = "异常")
|
||||||
|
private String ero;
|
||||||
|
private Date beginTime;
|
||||||
|
private Date endTime;
|
||||||
|
private String productType;
|
||||||
|
|
||||||
|
public String getProductType() {
|
||||||
|
return productType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductType(String productType) {
|
||||||
|
this.productType = productType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getBeginTime() {
|
||||||
|
return beginTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBeginTime(Date beginTime) {
|
||||||
|
this.beginTime = beginTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEndTime() {
|
||||||
|
return endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndTime(Date endTime) {
|
||||||
|
this.endTime = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getShiftNo() {
|
||||||
|
return shiftNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShiftNo(String shiftNo) {
|
||||||
|
this.shiftNo = shiftNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupNo() {
|
||||||
|
return groupNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupNo(String groupNo) {
|
||||||
|
this.groupNo = groupNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInputNum() {
|
||||||
|
return inputNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInputNum(String inputNum) {
|
||||||
|
this.inputNum = inputNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFinNum() {
|
||||||
|
return finNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFinNum(String finNum) {
|
||||||
|
this.finNum = finNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOkNum() {
|
||||||
|
return okNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOkNum(String okNum) {
|
||||||
|
this.okNum = okNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNoNum() {
|
||||||
|
return noNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNoNum(String noNum) {
|
||||||
|
this.noNum = noNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEro() {
|
||||||
|
return ero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEro(String ero) {
|
||||||
|
this.ero = ero;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue