提交 7c81f4a2 编写于 作者: doc_wei's avatar doc_wei

删除多余统计

上级 3d408dfc
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window',
echarts: '../echarts/echarts',
echartsTheme: '../echarts/echartsTheme'
}).define(['window', 'jquery', 'winui', 'form', 'echarts', 'laydate'], function (exports) {
winui.renderColor();
var $ = layui.$,
laydate = layui.laydate,
form = layui.form;
var charts1;
var myDate = new Date();
year = myDate.getFullYear();
laydate.render({
elem: '#year',
type: 'year',
value: year,
trigger: 'click',
done: function(value, date){
initCustomDocumentaryByType(value);
}
});
initCustomDocumentaryByType(year);
// 统计当前部门月度新建加工单图
function initCustomDocumentaryByType(year){
AjaxPostUtil.request({url: reqBasePath + "erpproduce004", params: {year: year}, type: 'json', callback: function (json) {
renderCharts1(json.rows);
matchingLanguage();
}});
}
function renderCharts1(rows) {
charts1 = echarts.init(document.getElementById("charts1"));
var name = new Array();
var num = new Array();
$.each(rows, function(i, item) {
name.push(item.yearMonth);
num.push(item.orderNum);
});
var option = getOption('当前部门新增加工单分析', '统计在指定年份当前部门新建加工单的数量分析', name, "部门新建加工单数量", num, 'line');
charts1.setOption(option);
// 加载表格
$("#tHead").html(getDataUseHandlebars($("#tableHeader").html(), {rows: name}));
$("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: rows}));
form.render();
}
window.onresize = function(){
charts1.resize();
}
exports('departmentMachin', {});
});
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window',
echarts: '../echarts/echarts',
echartsTheme: '../echarts/echartsTheme'
}).define(['window', 'jquery', 'winui', 'form', 'echarts', 'laydate'], function (exports) {
winui.renderColor();
var $ = layui.$,
laydate = layui.laydate,
form = layui.form;
var charts1;
var myDate = new Date();
year = myDate.getFullYear();
laydate.render({
elem: '#year',
type: 'year',
value: year,
trigger: 'click',
done: function(value, date){
initCustomDocumentaryByType(value);
}
});
initCustomDocumentaryByType(year);
// 统计当前部门月度补料图
function initCustomDocumentaryByType(year){
AjaxPostUtil.request({url: reqBasePath + "erpproduce002", params: {year: year}, type: 'json', callback: function (json) {
renderCharts1(json.rows);
matchingLanguage();
}});
}
function renderCharts1(rows) {
charts1 = echarts.init(document.getElementById("charts1"));
var name = new Array();
var num = new Array();
var materialName = "";
var materialNameList = new Array();
$.each(rows, function(i, item) {
if(i == 0){
materialName = item.materialName;
$.each(item.yearPatchMaterialNum, function(j, bean){
name.push(bean.yearMonth);
num.push(bean.needNum);
});
}
});
materialNameList.push(materialName);
var option = getOption('当前部门补料分析', '统计在指定年份当前部门补料的数量分析', name, materialName, num, 'line');
$.each(rows, function(i, item) {
if(i != 0){
materialName = item.materialName;
materialNameList.push(materialName);
num = new Array();
$.each(item.yearPatchMaterialNum, function(j, bean){
num.push(bean.needNum);
});
option.series.push({
name: materialName,
type: 'line',
smooth: true,
data: [].concat(num)
});
}
});
option["legend"] = {
data: materialNameList,
y: 'bottom'
};
charts1.setOption(option);
// 加载表格
$("#tHead").html(getDataUseHandlebars($("#tableHeader").html(), {rows: name}));
$("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: rows}));
form.render();
}
window.onresize = function(){
charts1.resize();
}
exports('departmentPatchMaterial', {});
});
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window',
echarts: '../echarts/echarts',
echartsTheme: '../echarts/echartsTheme'
}).define(['window', 'jquery', 'winui', 'form', 'echarts', 'laydate'], function (exports) {
winui.renderColor();
var $ = layui.$,
laydate = layui.laydate,
form = layui.form;
var charts1;
var myDate = new Date();
year = myDate.getFullYear();
laydate.render({
elem: '#year',
type: 'year',
value: year,
trigger: 'click',
done: function(value, date){
initCustomDocumentaryByType(value);
}
});
initCustomDocumentaryByType(year);
// 统计当前部门月度领料图
function initCustomDocumentaryByType(year){
AjaxPostUtil.request({url: reqBasePath + "erpproduce001", params: {year: year}, type: 'json', callback: function (json) {
renderCharts1(json.rows);
matchingLanguage();
}});
}
function renderCharts1(rows) {
charts1 = echarts.init(document.getElementById("charts1"));
var name = new Array();
var num = new Array();
var materialName = "";
var materialNameList = new Array();
$.each(rows, function(i, item) {
if(i == 0){
materialName = item.materialName;
$.each(item.yearPickMaterialNum, function(j, bean){
name.push(bean.yearMonth);
num.push(bean.needNum);
});
}
});
materialNameList.push(materialName);
var option = getOption('当前部门领料分析', '统计在指定年份当前部门领料的数量分析', name, materialName, num, 'line');
$.each(rows, function(i, item) {
if(i != 0){
materialName = item.materialName;
materialNameList.push(materialName);
num = new Array();
$.each(item.yearPickMaterialNum, function(j, bean){
num.push(bean.needNum);
});
option.series.push({
name: materialName,
type: 'line',
smooth: true,
data: [].concat(num)
});
}
});
option["legend"] = {
data: materialNameList,
y: 'bottom'
};
charts1.setOption(option);
// 加载表格
$("#tHead").html(getDataUseHandlebars($("#tableHeader").html(), {rows: name}));
$("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: rows}));
form.render();
}
window.onresize = function(){
charts1.resize();
}
exports('departmentPickMaterial', {});
});
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window',
echarts: '../echarts/echarts',
echartsTheme: '../echarts/echartsTheme'
}).define(['window', 'jquery', 'winui', 'form', 'echarts', 'laydate'], function (exports) {
winui.renderColor();
var $ = layui.$,
laydate = layui.laydate,
form = layui.form;
var charts1;
var myDate = new Date();
year = myDate.getFullYear();
laydate.render({
elem: '#year',
type: 'year',
value: year,
trigger: 'click',
done: function(value, date){
initCustomDocumentaryByType(value);
}
});
initCustomDocumentaryByType(year);
// 统计当前部门月度退料图
function initCustomDocumentaryByType(year){
AjaxPostUtil.request({url: reqBasePath + "erpproduce003", params: {year: year}, type: 'json', callback: function (json) {
renderCharts1(json.rows);
matchingLanguage();
}});
}
function renderCharts1(rows) {
charts1 = echarts.init(document.getElementById("charts1"));
var name = new Array();
var num = new Array();
var materialName = "";
var materialNameList = new Array();
$.each(rows, function(i, item) {
if(i == 0){
materialName = item.materialName;
$.each(item.yearReturnMaterialNum, function(j, bean){
name.push(bean.yearMonth);
num.push(bean.needNum);
});
}
});
materialNameList.push(materialName);
var option = getOption('当前部门退料分析', '统计在指定年份当前部门退料的数量分析', name, materialName, num, 'line');
$.each(rows, function(i, item) {
if(i != 0){
materialName = item.materialName;
materialNameList.push(materialName);
num = new Array();
$.each(item.yearReturnMaterialNum, function(j, bean){
num.push(bean.needNum);
});
option.series.push({
name: materialName,
type: 'line',
smooth: true,
data: [].concat(num)
});
}
});
option["legend"] = {
data: materialNameList,
y: 'bottom'
};
charts1.setOption(option);
// 加载表格
$("#tHead").html(getDataUseHandlebars($("#tableHeader").html(), {rows: name}));
$("#tBody").html(getDataUseHandlebars($("#tableBody").html(), {rows: rows}));
form.render();
}
window.onresize = function(){
charts1.resize();
}
exports('departmentReturnMaterial', {});
});
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body style="background-color: rgb(242, 242, 242);">
<div class="layui-fluid">
<form class="layui-form" action="">
<div class="layui-col-xs12 margin-top-10 layui-col-space15">
<div class="layui-form-item layui-col-xs3">
<label class="layui-form-label">指定年度<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="year" name="year" win-verify="required" placeholder="请选择年" class="layui-input"/>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度新建加工单分析</div>
<div class="layui-card-body">
<div id="charts1" class="layui-row" style="height: 400px;">
</div>
</div>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度新建加工单表格分析</div>
<div class="layui-card-body">
<table class="layui-table">
<thead id=tHead>
</thead>
<tbody id="tBody">
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
</div>
<script type="text/html" id="tableHeader">
<tr>
<th>日期</th>
{{#each rows}}
<th>{{this}}</th>
{{/each}}
</tr>
</script>
<script type="text/html" id="tableBody">
<tr>
<th>新增数量</th>
{{#each rows}}
<td>{{orderNum}}</td>
{{/each}}
</tr>
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/erpProducePage/'}).use('departmentMachin');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body style="background-color: rgb(242, 242, 242);">
<div class="layui-fluid">
<form class="layui-form" action="">
<div class="layui-col-xs12 margin-top-10 layui-col-space15">
<div class="layui-form-item layui-col-xs3">
<label class="layui-form-label">指定年度<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="year" name="year" win-verify="required" placeholder="请选择年" class="layui-input"/>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度补料分析</div>
<div class="layui-card-body">
<div id="charts1" class="layui-row" style="height: 400px;">
</div>
</div>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度补料表格分析</div>
<div class="layui-card-body">
<table class="layui-table">
<thead id=tHead>
</thead>
<tbody id="tBody">
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
</div>
<script type="text/html" id="tableHeader">
<tr>
<th>日期</th>
{{#each rows}}
<th>{{this}}</th>
{{/each}}
</tr>
</script>
<script type="text/html" id="tableBody">
{{#each rows}}
<tr>
<th>{{materialName}}</th>
{{#each yearPatchMaterialNum}}
<td>{{needNum}}</td>
{{/each}}
</tr>
{{/each}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/erpProducePage/'}).use('departmentPatchMaterial');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body style="background-color: rgb(242, 242, 242);">
<div class="layui-fluid">
<form class="layui-form" action="">
<div class="layui-col-xs12 margin-top-10 layui-col-space15">
<div class="layui-form-item layui-col-xs3">
<label class="layui-form-label">指定年度<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="year" name="year" win-verify="required" placeholder="请选择年" class="layui-input"/>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度领料分析</div>
<div class="layui-card-body">
<div id="charts1" class="layui-row" style="height: 400px;">
</div>
</div>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度领料表格分析</div>
<div class="layui-card-body">
<table class="layui-table">
<thead id=tHead>
</thead>
<tbody id="tBody">
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
</div>
<script type="text/html" id="tableHeader">
<tr>
<th>日期</th>
{{#each rows}}
<th>{{this}}</th>
{{/each}}
</tr>
</script>
<script type="text/html" id="tableBody">
{{#each rows}}
<tr>
<th>{{materialName}}</th>
{{#each yearPickMaterialNum}}
<td>{{needNum}}</td>
{{/each}}
</tr>
{{/each}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/erpProducePage/'}).use('departmentPickMaterial');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body style="background-color: rgb(242, 242, 242);">
<div class="layui-fluid">
<form class="layui-form" action="">
<div class="layui-col-xs12 margin-top-10 layui-col-space15">
<div class="layui-form-item layui-col-xs3">
<label class="layui-form-label">指定年度<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="year" name="year" win-verify="required" placeholder="请选择年" class="layui-input"/>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度退料分析</div>
<div class="layui-card-body">
<div id="charts1" class="layui-row" style="height: 400px;">
</div>
</div>
</div>
</div>
<div class="layui-col-xs12">
<div class="layui-card">
<div class="layui-card-header">部门月度退料表格分析</div>
<div class="layui-card-body">
<table class="layui-table">
<thead id=tHead>
</thead>
<tbody id="tBody">
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
</div>
<script type="text/html" id="tableHeader">
<tr>
<th>日期</th>
{{#each rows}}
<th>{{this}}</th>
{{/each}}
</tr>
</script>
<script type="text/html" id="tableBody">
{{#each rows}}
<tr>
<th>{{materialName}}</th>
{{#each yearReturnMaterialNum}}
<td>{{needNum}}</td>
{{/each}}
</tr>
{{/each}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/erpProducePage/'}).use('departmentReturnMaterial');
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册