You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
593 lines
34 KiB
593 lines
34 KiB
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Index.cshtml";
|
|
}
|
|
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
|
|
<script src="~/Content/js/jqprint/jquery.jqprint-0.3.js"></script>
|
|
<link href="~/Content/js/jqprint/AoMaKpi.css" rel="stylesheet" />
|
|
|
|
<style>
|
|
#print, #print td, #print tr {
|
|
border: 1px solid #d3d3d3;
|
|
text-align: center;
|
|
}
|
|
|
|
#print th {
|
|
height: 35px;
|
|
border: 1px solid #d3d3d3;
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
#print td {
|
|
height: 30px;
|
|
font-size: 15px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
<script>
|
|
debugger;
|
|
var myDate = new Date;
|
|
var year = myDate.getFullYear(); //获取当前年
|
|
var mon = myDate.getMonth() + 1 < 10 ? "0" + (myDate.getMonth() + 1) : myDate.getMonth() + 1; //获取当前月
|
|
var TimeFrom = year + "-" + mon ;
|
|
var TimeArrive = year + "-" + mon ;
|
|
|
|
$(function () {
|
|
|
|
$("#TimeFrom").val(TimeFrom);
|
|
$("#TimeArrive").val(TimeArrive);
|
|
$("#TimeInfo").text(mon+'月');
|
|
$("#YearInfo").text(year + '年');
|
|
Load(TimeFrom, TimeArrive);
|
|
})
|
|
|
|
function Load(TimeFrom,TimeArrive) {
|
|
GetZB(TimeFrom, TimeArrive);
|
|
GetYFFJ(TimeFrom, TimeArrive);
|
|
GetYLAndPC('L1', 'A', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L1', 'B', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L2', 'A', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L2', 'B', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L3', 'A', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L3', 'B', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L4', 'A', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L4', 'B', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L5', 'A', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L5', 'B', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L6', 'A', TimeFrom, TimeArrive);
|
|
GetYLAndPC('L6', 'B', TimeFrom, TimeArrive);
|
|
|
|
var L1AYLTR = $("#L1AYLTR").text() * 1; var L1APCLRK = $("L1APCLRK").text() * 1; var L1ACC = $("L1ACC").text() * 1; var L1ACXL = $("L1ACXL").text() * 1; var L1AHYL = $("L1AHYL").text() * 1; var L1ABZCLDCL = $("L1ABZCLDCL").text() * 1; var L1AYFFJ = $("L1AYFFJ").text() * 1; var L1ZB = $("#L1ZB").text() * 1;
|
|
var L2AYLTR = $("#L2AYLTR").text() * 1; var L2APCLRK = $("L2APCLRK").text() * 1; var L2ACC = $("L2ACC").text() * 1; var L2ACXL = $("L2ACXL").text() * 1; var L2AHYL = $("L2AHYL").text() * 1; var L2ABZCLDCL = $("L2ABZCLDCL").text() * 1; var L2AYFFJ = $("L2AYFFJ").text() * 1; var L2ZB = $("#L2ZB").text() * 1;
|
|
var L3AYLTR = $("#L3AYLTR").text() * 1; var L3APCLRK = $("L3APCLRK").text() * 1; var L3ACC = $("L3ACC").text() * 1; var L3ACXL = $("L3ACXL").text() * 1; var L3AHYL = $("L3AHYL").text() * 1; var L3ABZCLDCL = $("L3ABZCLDCL").text() * 1; var L3AYFFJ = $("L3AYFFJ").text() * 1; var L3ZB = $("#L3ZB").text() * 1;
|
|
var L4AYLTR = $("#L4AYLTR").text() * 1; var L4APCLRK = $("L4APCLRK").text() * 1; var L4ACC = $("L4ACC").text() * 1; var L4ACXL = $("L4ACXL").text() * 1; var L4AHYL = $("L4AHYL").text() * 1; var L4ABZCLDCL = $("L4ABZCLDCL").text() * 1; var L4AYFFJ = $("L4AYFFJ").text() * 1; var L4ZB = $("#L4ZB").text() * 1;
|
|
var L5AYLTR = $("#L5AYLTR").text() * 1; var L5APCLRK = $("L5APCLRK").text() * 1; var L5ACC = $("L5ACC").text() * 1; var L5ACXL = $("L5ACXL").text() * 1; var L5AHYL = $("L5AHYL").text() * 1; var L5ABZCLDCL = $("L5ABZCLDCL").text() * 1; var L5AYFFJ = $("L5AYFFJ").text() * 1; var L5ZB = $("#L5ZB").text() * 1;
|
|
var L6AYLTR = $("#L6AYLTR").text() * 1; var L6APCLRK = $("L6APCLRK").text() * 1; var L6ACC = $("L6ACC").text() * 1; var L6ACXL = $("L6ACXL").text() * 1; var L6AHYL = $("L6AHYL").text() * 1; var L6ABZCLDCL = $("L6ABZCLDCL").text() * 1; var L6AYFFJ = $("L6AYFFJ").text() * 1; var L6ZB = $("#L6ZB").text() * 1;
|
|
|
|
var L1BYLTR = $("#L1BYLTR").text() * 1; var L1BPCLRK = $("L1BPCLRK").text() * 1; var L1BCC = $("L1BCC").text() * 1; var L1BCXL = $("L1BCXL").text() * 1; var L1BHYL = $("L1BHYL").text() * 1; var L1BBZCLDCL = $("L1BBZCLDCL").text() * 1; var L1BYFFJ = $("L1BYFFJ").text() * 1;
|
|
var L2BYLTR = $("#L2BYLTR").text() * 1; var L2BPCLRK = $("L2BPCLRK").text() * 1; var L2BCC = $("L2BCC").text() * 1; var L2BCXL = $("L2BCXL").text() * 1; var L2BHYL = $("L2BHYL").text() * 1; var L2BBZCLDCL = $("L2BBZCLDCL").text() * 1; var L2BYFFJ = $("L2BYFFJ").text() * 1;
|
|
var L3BYLTR = $("#L3BYLTR").text() * 1; var L3BPCLRK = $("L3BPCLRK").text() * 1; var L3BCC = $("L3BCC").text() * 1; var L3BCXL = $("L3BCXL").text() * 1; var L3BHYL = $("L3BHYL").text() * 1; var L3BBZCLDCL = $("L3BBZCLDCL").text() * 1; var L3BYFFJ = $("L3BYFFJ").text() * 1;
|
|
var L4BYLTR = $("#L4BYLTR").text() * 1; var L4BPCLRK = $("L4BPCLRK").text() * 1; var L4BCC = $("L4BCC").text() * 1; var L4BCXL = $("L4BCXL").text() * 1; var L4BHYL = $("L4BHYL").text() * 1; var L4BBZCLDCL = $("L4BBZCLDCL").text() * 1; var L4BYFFJ = $("L4BYFFJ").text() * 1;
|
|
var L5BYLTR = $("#L5BYLTR").text() * 1; var L5BPCLRK = $("L5BPCLRK").text() * 1; var L5BCC = $("L5BCC").text() * 1; var L5BCXL = $("L5BCXL").text() * 1; var L5BHYL = $("L5BHYL").text() * 1; var L5BBZCLDCL = $("L5BBZCLDCL").text() * 1; var L5BYFFJ = $("L5BYFFJ").text() * 1;
|
|
var L6BYLTR = $("#L6BYLTR").text() * 1; var L6BPCLRK = $("L6BPCLRK").text() * 1; var L6BCC = $("L6BCC").text() * 1; var L6BCXL = $("L6BCXL").text() * 1; var L6BHYL = $("L6BHYL").text() * 1; var L6BBZCLDCL = $("L6BBZCLDCL").text() * 1; var L6BYFFJ = $("L6BYFFJ").text() * 1;
|
|
|
|
|
|
//线别产出
|
|
|
|
$("#L1CC").text((L1ACC + L1BCC) === 0 ? '' : (L1ACC + L1BCC));
|
|
$("#L2CC").text((L2ACC + L2BCC) === 0 ? '' : (L2ACC + L2BCC));
|
|
$("#L3CC").text((L3ACC + L3BCC) === 0 ? '' : (L3ACC + L3BCC));
|
|
$("#L4CC").text((L4ACC + L4BCC) === 0 ? '' : (L4ACC + L4BCC));
|
|
$("#L5CC").text((L5ACC + L5BCC) === 0 ? '' : (L5ACC + L5BCC));
|
|
$("#L6CC").text((L6ACC + L6BCC) === 0 ? '' : (L6ACC + L6BCC));
|
|
|
|
var L1CC = $("#L1CC").text() * 1;
|
|
var L2CC = $("#L2CC").text() * 1;
|
|
var L3CC = $("#L3CC").text() * 1;
|
|
var L4CC = $("#L4CC").text() * 1;
|
|
var L5CC = $("#L5CC").text() * 1;
|
|
var L6CC = $("#L6CC").text() * 1;
|
|
//线别成型率
|
|
//$("#L1CXL").text(Converts((($("#L1CC").text() * 1 / ($("#L1AYFFJ").text() * 1 + $("#L1BYFFJ").text() * 1 + $("#L1AYLTR").text() * 1 + $("#L1BYLTR").text() * 1)) * 100).toFixed(2)) + '%');
|
|
//$("#L2CXL").text(Converts((($("#L2CC").text() * 1 / ($("#L2AYFFJ").text() * 1 + $("#L2BYFFJ").text() * 1 + $("#L2AYLTR").text() * 1 + $("#L2BYLTR").text() * 1)) * 100).toFixed(2)) + '%');
|
|
//$("#L3CXL").text(Converts((($("#L3CC").text() * 1 / ($("#L3AYFFJ").text() * 1 + $("#L3BYFFJ").text() * 1 + $("#L3AYLTR").text() * 1 + $("#L3BYLTR").text() * 1)) * 100).toFixed(2)) + '%');
|
|
//$("#L4CXL").text(Converts((($("#L4CC").text() * 1 / ($("#L4AYFFJ").text() * 1 + $("#L4BYFFJ").text() * 1 + $("#L4AYLTR").text() * 1 + $("#L4BYLTR").text() * 1)) * 100).toFixed(2)) + '%');
|
|
//$("#L5CXL").text(Converts((($("#L5CC").text() * 1 / ($("#L5AYFFJ").text() * 1 + $("#L5BYFFJ").text() * 1 + $("#L5AYLTR").text() * 1 + $("#L5BYLTR").text() * 1)) * 100).toFixed(2)) + '%');
|
|
//$("#L6CXL").text(Converts((($("#L6CC").text() * 1 / ($("#L6AYFFJ").text() * 1 + $("#L6BYFFJ").text() * 1 + $("#L6AYLTR").text() * 1 + $("#L6BYLTR").text() * 1)) * 100).toFixed(2)) + '%');
|
|
debugger;
|
|
var l1Cxl = Converts((L1CC / ($("#L1AYFFJ").text() * 1 + $("#L1BYFFJ").text() * 1 + $("#L1AYLTR").text() * 1 + $("#L1BYLTR").text() * 1))) * 100;
|
|
var l1CxlResult = l1Cxl === 0 ? '' : Converts(l1Cxl.toFixed(2)) + '%';
|
|
$("#L1CXL").text(l1CxlResult);
|
|
var l2Cxl = Converts((L2CC / ($("#L2AYFFJ").text() * 1 + $("#L2BYFFJ").text() * 1 + $("#L2AYLTR").text() * 1 + $("#L2BYLTR").text() * 1))) * 100;
|
|
var l2CxlResult = l2Cxl === 0 ? '' : Converts(l2Cxl.toFixed(2)) + '%';
|
|
$("#L2CXL").text(l2CxlResult);
|
|
var l3Cxl = Converts((L3CC / ($("#L3AYFFJ").text() * 1 + $("#L3BYFFJ").text() * 1 + $("#L3AYLTR").text() * 1 + $("#L3BYLTR").text() * 1))) * 100;
|
|
var l3CxlResult = l3Cxl === 0 ? '' : Converts(l3Cxl.toFixed(2)) + '%';
|
|
$("#L3CXL").text(l3CxlResult);
|
|
var l4Cxl = Converts((L4CC / ($("#L4AYFFJ").text() * 1 + $("#L4BYFFJ").text() * 1 + $("#L4AYLTR").text() * 1 + $("#L4BYLTR").text() * 1))) * 100;
|
|
var l4CxlResult = l4Cxl === 0 ? '' : Converts(l4Cxl.toFixed(2)) + '%';
|
|
$("#L4CXL").text(l4CxlResult);
|
|
var l5Cxl = Converts((L5CC / ($("#L5AYFFJ").text() * 1 + $("#L5BYFFJ").text() * 1 + $("#L5AYLTR").text() * 1 + $("#L5BYLTR").text() * 1))) * 100;
|
|
var l5CxlResult = l5Cxl === 0 ? '' : Converts(l5Cxl.toFixed(2)) + '%';
|
|
$("#L5CXL").text(l5CxlResult);
|
|
var l6Cxl = Converts((L6CC / ($("#L6AYFFJ").text() * 1 + $("#L6BYFFJ").text() * 1 + $("#L6AYLTR").text() * 1 + $("#L6BYLTR").text() * 1))) * 100;
|
|
var l6CxlResult = l6Cxl === 0 ? '' : Converts(l6Cxl.toFixed(2)) + '%';
|
|
$("#L6CXL").text(l6CxlResult);
|
|
//线别还原率
|
|
$("#L1HYL").text(Converts(((($("#L1CC").text() * 1 + $("#L1APCLRK").text() * 1 + $("#L1BPCLRK").text() * 1) / ($("#L1AYLTR").text() * 1 + $("#L1BYLTR").text() * 1 + $("#L1AYFFJ").text() * 1 + $("#L1BYFFJ").text() * 1)) * 100).toFixed(2)) + '%');
|
|
$("#L2HYL").text(Converts(((($("#L2CC").text() * 1 + $("#L2APCLRK").text() * 1 + $("#L2BPCLRK").text() * 1) / ($("#L2AYLTR").text() * 1 + $("#L2BYLTR").text() * 1 + $("#L2AYFFJ").text() * 1 + $("#L2BYFFJ").text() * 1)) * 100).toFixed(2)) + '%');
|
|
$("#L3HYL").text(Converts(((($("#L3CC").text() * 1 + $("#L3APCLRK").text() * 1 + $("#L3BPCLRK").text() * 1) / ($("#L3AYLTR").text() * 1 + $("#L3BYLTR").text() * 1 + $("#L3AYFFJ").text() * 1 + $("#L3BYFFJ").text() * 1)) * 100).toFixed(2)) + '%');
|
|
$("#L4HYL").text(Converts(((($("#L4CC").text() * 1 + $("#L4APCLRK").text() * 1 + $("#L4BPCLRK").text() * 1) / ($("#L4AYLTR").text() * 1 + $("#L4BYLTR").text() * 1 + $("#L4AYFFJ").text() * 1 + $("#L4BYFFJ").text() * 1)) * 100).toFixed(2)) + '%');
|
|
$("#L5HYL").text(Converts(((($("#L5CC").text() * 1 + $("#L5APCLRK").text() * 1 + $("#L5BPCLRK").text() * 1) / ($("#L5AYLTR").text() * 1 + $("#L5BYLTR").text() * 1 + $("#L5AYFFJ").text() * 1 + $("#L5BYFFJ").text() * 1)) * 100).toFixed(2)) + '%');
|
|
$("#L6HYL").text(Converts(((($("#L6CC").text() * 1 + $("#L6APCLRK").text() * 1 + $("#L6BPCLRK").text() * 1) / ($("#L6AYLTR").text() * 1 + $("#L6BYLTR").text() * 1 + $("#L6AYFFJ").text() * 1 + $("#L6BYFFJ").text() * 1)) * 100).toFixed(2)) + '%');
|
|
|
|
|
|
|
|
|
|
//线别产量达成率
|
|
$("#L1BZCLDCL").text(Converts(($("#L1CC").text() * 1 / $("#L1ZB").text() * 1) * 100).toFixed(2) + '%');
|
|
$("#L2BZCLDCL").text(Converts(($("#L2CC").text() * 1 / $("#L2ZB").text() * 1) * 100).toFixed(2) + '%');
|
|
$("#L3BZCLDCL").text(Converts(($("#L3CC").text() * 1 / $("#L3ZB").text() * 1) * 100).toFixed(2) + '%');
|
|
$("#L4BZCLDCL").text(Converts(($("#L4CC").text() * 1 / $("#L4ZB").text() * 1) * 100).toFixed(2) + '%');
|
|
$("#L5BZCLDCL").text(Converts(($("#L5CC").text() * 1 / $("#L5ZB").text() * 1) * 100).toFixed(2) + '%');
|
|
$("#L6BZCLDCL").text(Converts(($("#L6CC").text() * 1 / $("#L6ZB").text() * 1) * 100).toFixed(2) + '%');
|
|
|
|
//老厂合计
|
|
$("#OldFYLTR").text($("#L1AYLTR").text() * 1 + $("#L1BYLTR").text() * 1 + $("#L2AYLTR").text() * 1 + $("#L2BYLTR").text() * 1 + $("#L3AYLTR").text() * 1 + $("#L3BYLTR").text() * 1);
|
|
$("#OldYFFJ").text($("#L1AYFFJ").text() * 1 + $("#L1BYFFJ").text() * 1 + $("#L2AYFFJ").text() * 1 + $("#L2BYFFJ").text() * 1 + $("#L3AYFFJ").text() * 1 + $("#L3BYFFJ").text() * 1);
|
|
$("#OldCC").text($("#L1ACC").text() * 1 + $("#L1BCC").text() * 1 + $("#L2ACC").text() * 1 + $("#L2BCC").text() * 1 + $("#L3ACC").text() * 1 + $("#L3BCC").text() * 1);
|
|
$("#OldHJCC").text($("#L1CC").text() * 1 + $("#L2CC").text() * 1 + $("#L3CC").text() * 1);
|
|
$("#OldPCLRK").text($("#L1APCLRK").text() * 1 + $("#L1BPCLRK").text() * 1 + $("#L2APCLRK").text() * 1 + $("#L2BPCLRK").text() * 1 + $("#L3APCLRK").text() * 1 + $("#L3BPCLRK").text() * 1);
|
|
$("#OldZB").text($("#L1ZB").text() * 1 + $("#L2ZB").text() * 1 + $("#L3ZB").text() * 1);
|
|
$("#OldCXL").text(Converts(($("#OldCC").text() * 1 / ($("#OldFYLTR").text() * 1 + $("#OldYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldXBCXL").text(Converts(($("#OldCC").text() * 1 / ($("#OldFYLTR").text() * 1 + $("#OldYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldHYL").text(Converts(((($("#OldCC").text() * 1 + $("#OldPCLRK").text() * 1) / $("#OldFYLTR").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldXBHYL").text(Converts(((($("#OldCC").text() * 1 + $("#OldPCLRK").text() * 1) / $("#OldFYLTR").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldBZDCL").text(Converts(((($("#OldCC").text() * 1) / ($("#OldZB").text() * 1)) * 100).toFixed(2)) + '%');
|
|
$("#OldCLDBL").text(Converts(((($("#OldCC").text() * 1) / ($("#OldZB").text() * 1)) * 100).toFixed(2)) + '%');
|
|
//新厂合计
|
|
$("#NewFYLTR").text($("#L4AYLTR").text() * 1 + $("#L4BYLTR").text() * 1 + $("#L5AYLTR").text() * 1 + $("#L5BYLTR").text() * 1 + $("#L6AYLTR").text() * 1 + $("#L6BYLTR").text() * 1);
|
|
$("#NewYFFJ").text($("#L4AYFFJ").text() * 1 + $("#L4BYFFJ").text() * 1 + $("#L5AYFFJ").text() * 1 + $("#L5BYFFJ").text() * 1 + $("#L6AYFFJ").text() * 1 + $("#L6BYFFJ").text() * 1);
|
|
$("#NewCC").text($("#L4ACC").text() * 1 + $("#L4BCC").text() * 1 + $("#L5ACC").text() * 1 + $("#L5BCC").text() * 1 + $("#L6ACC").text() * 1 + $("#L6BCC").text() * 1);
|
|
$("#NewHJCC").text($("#L4CC").text() * 1 + $("#L5CC").text() * 1 + $("#L6CC").text() * 1);
|
|
$("#NewPCLRK").text($("#L4APCLRK").text() * 1 + $("#L4BPCLRK").text() * 1 + $("#L5APCLRK").text() * 1 + $("#L5BPCLRK").text() * 1 + $("#L6APCLRK").text() * 1 + $("#L6BPCLRK").text() * 1);
|
|
$("#NewZB").text($("#L4ZB").text() * 1 + $("#L5ZB").text() * 1 + $("#L6ZB").text() * 1);
|
|
$("#NewCXL").text(Converts(($("#NewCC").text() * 1 / ($("#NewFYLTR").text() * 1 + $("#NewYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#NewXBCXL").text(Converts(($("#NewCC").text() * 1 / ($("#NewFYLTR").text() * 1 + $("#NewYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#NewHYL").text(Converts(((($("#NewCC").text() * 1 + $("#NewPCLRK").text() * 1) / $("#NewFYLTR").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#NewXBHYL").text(Converts(((($("#NewCC").text() * 1 + $("#NewPCLRK").text() * 1) / $("#NewFYLTR").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#NewBZDCL").text(Converts(((($("#NewCC").text() * 1) / ($("#NewZB").text() * 1)) * 100).toFixed(2)) + '%');
|
|
$("#NewCLDBL").text(Converts(((($("#NewCC").text() * 1) / ($("#NewZB").text() * 1)) * 100).toFixed(2)) + '%');
|
|
//新老厂合计
|
|
debugger;
|
|
$("#OldNewFYLTR").text($("#OldFYLTR").text() * 1 + $("#NewFYLTR").text() * 1);
|
|
$("#OldNewYFFJ").text($("#OldYFFJ").text() * 1 + $("#NewYFFJ").text() * 1);
|
|
$("#OldNewCC").text($("#OldCC").text() * 1 + $("#NewCC").text() * 1);
|
|
$("#OldNewHJCC").text($("#OldCC").text() * 1 + $("#NewCC").text() * 1);
|
|
$("#OldNewPCLRK").text($("#OldPCLRK").text() * 1 + $("#NewPCLRK").text() * 1);
|
|
$("#OldNewZB").text($("#OldZB").text() * 1 + $("#NewZB").text() * 1);
|
|
$("#OldNewCXL").text(Converts(($("#OldNewCC").text() * 1 / ($("#OldNewFYLTR").text() * 1 + $("#OldNewYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldNewXBCXL").text(Converts(($("#OldNewCC").text() * 1 / ($("#OldNewFYLTR").text() * 1 + $("#OldNewYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldNewHYL").text(Converts((($("#OldNewCC").text() * 1 + $("#OldNewPCLRK").text() * 1) / ($("#OldNewFYLTR").text() * 1 + $("#OldNewYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldNewXBHYL").text(Converts((($("#OldNewCC").text() * 1 + $("#OldNewPCLRK").text() * 1) / ($("#OldNewFYLTR").text() * 1 + $("#OldNewYFFJ").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldNewBZDCL").text(Converts((($("#OldNewCC").text() * 1) / ($("#OldNewZB").text() * 1)) * 100).toFixed(2) + '%');
|
|
$("#OldNewCLDBL").text(Converts((($("#OldNewCC").text() * 1) / ($("#OldNewZB").text() * 1)) * 100).toFixed(2) + '%');
|
|
|
|
|
|
|
|
}
|
|
|
|
function Seach() {
|
|
debugger;
|
|
var TimeFrom = $("#TimeFrom").val();
|
|
var TimeArrive = $("#TimeArrive").val();
|
|
if (TimeFrom == TimeArrive) {
|
|
var timeFromSplit = TimeFrom.split("-");
|
|
var TimeInfo = timeFromSplit[0] + '年' + timeFromSplit[1]+'月';
|
|
$("#TimeInfo").text(TimeInfo);
|
|
$("#YearInfo").text(timeFromSplit[0]+'年');
|
|
|
|
} else {
|
|
var timeFromSplit = TimeFrom.split("-");
|
|
var TimeArriveSplit = TimeArrive.split("-");
|
|
var TimeInfo = timeFromSplit[0] + '年' + timeFromSplit[1] + '月-' + TimeArriveSplit[0] + '年' + TimeArriveSplit[1] + '月';
|
|
$("#TimeInfo").text(TimeInfo);
|
|
$("#YearInfo").text(timeFromSplit[0] + '年-' + TimeArriveSplit[0]+'年');
|
|
}
|
|
Load(TimeFrom, TimeArrive);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//获取指标
|
|
function GetZB(TimeFrom, TimeArrive) {
|
|
$.ajax({
|
|
url: "/OMAY/OMAYKPI/GetZB?TimeFrom=" + TimeFrom + "&TimeArrive=" + TimeArrive + "&" + Math.random(),
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
if (data != null && data.length > 0) {
|
|
for (var i = 0; i < data.length; i++) {
|
|
debugger;
|
|
if (data[i].Team == 'L1') { $("#L1ZB").text(data[i].Metrics); }
|
|
if (data[i].Team == 'L2') { $("#L2ZB").text(data[i].Metrics); }
|
|
if (data[i].Team == 'L3') { $("#L3ZB").text(data[i].Metrics); }
|
|
if (data[i].Team == 'L4') { $("#L4ZB").text(data[i].Metrics); }
|
|
if (data[i].Team == 'L5') { $("#L5ZB").text(data[i].Metrics); }
|
|
if (data[i].Team == 'L6') { $("#L6ZB").text(data[i].Metrics); }
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
}
|
|
//获取研发附加
|
|
function GetYFFJ(TimeFrom, TimeArrive) {
|
|
$.ajax({
|
|
url: "/OMAY/OMAYKPI/GetYFFJ?TimeFrom=" + TimeFrom + "&TimeArrive=" + TimeArrive + "&" + Math.random(),
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
if (data != null && data.length > 0) {
|
|
for (var i = 0; i < data.length; i++) {
|
|
if (data[i].Team == 'L1A') { $("#L1AYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L1B') { $("#L1BYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L2A') { $("#L2AYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L2B') { $("#L2BYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L3A') { $("#L3AYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L3B') { $("#L3BYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L4A') { $("#L4AYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L4B') { $("#L4BYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L5A') { $("#L5AYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L5B') { $("#L5BYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L6A') { $("#L6AYFFJ").text(data[i].Picking); }
|
|
if (data[i].Team == 'L6B') { $("#L6BYFFJ").text(data[i].Picking); }
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function GetYLAndPC(Type, Group, TimeFrom, TimeArrive) {
|
|
var YLTR;
|
|
var PCLRK;
|
|
var CC;
|
|
$.ajax({
|
|
url: "/OMAY/OMAYKPI/GetYLAndPC?Type=" + Type + "&Group=" + Group +"&TimeFrom=" + TimeFrom + "&TimeArrive=" + TimeArrive + "&" + Math.random(),
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
YLTR = data.rows[0].YLTR;
|
|
PCLRK = data.rows[0].PCLRK;
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/OMAY/OMAYKPI/GetCC?Type=" + Type + "&Group=" + Group + "&TimeFrom=" + TimeFrom + "&TimeArrive=" + TimeArrive + "&" + Math.random(),
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
CC = data.rows[0].CC;
|
|
}
|
|
});
|
|
if (Group == "A") {
|
|
|
|
$("#" + Type + "AYLTR").text(YLTR);//原材料投入
|
|
$("#" + Type + "APCLRK").text(PCLRK);//破碎料入库
|
|
$("#" + Type + "ACC").text(CC);//产出
|
|
var YFFJ = ($("#" + Type + "AYFFJ").text() !== undefined ? $("#" + Type + "AYFFJ").text() : 0);
|
|
var ZB = ($("#" + Type + "ZB").text() !== undefined ? $("#" + Type + "ZB").text() : 0);
|
|
$("#" + Type + "ACXL").text(Converts(((CC * 1 / (YLTR * 1 + YFFJ * 1)) * 100).toFixed(2)) + '%');//成型率
|
|
$("#" + Type + "AHYL").text(Converts((((CC*1 + PCLRK*1) / (YLTR*1 + YFFJ*1)) * 100).toFixed(2)) + '%');//还原率
|
|
$("#" + Type + "ABZCLDCL").text(Converts(((CC * 1 / (ZB*1/2)) * 100).toFixed(2)) + '%');//班组产量达成率
|
|
|
|
}
|
|
else
|
|
{
|
|
$("#" + Type + "BYLTR").text(YLTR);//原材料投入
|
|
$("#" + Type + "BPCLRK").text(PCLRK);//破碎料入库
|
|
$("#" + Type + "BCC").text(CC);//产出
|
|
var YFFJ = ($("#" + Type + "BYFFJ").text() !== undefined ? $("#" + Type + "BYFFJ").text() : 0);
|
|
var ZB = ($("#" + Type + "ZB").text() !== undefined ? $("#" + Type + "ZB").text() : 0);
|
|
$("#" + Type + "BCXL").text(Converts(((CC * 1 / (YLTR * 1 + YFFJ * 1)) * 100).toFixed(2)) + '%');//成型率
|
|
$("#" + Type + "BHYL").text(Converts((((CC * 1 + PCLRK * 1) / (YLTR * 1 + YFFJ * 1)) * 100).toFixed(2)) + '%');//还原率
|
|
$("#" + Type + "BBZCLDCL").text(Converts(((CC * 1 / (ZB * 1/2)) * 100).toFixed(2)) + '%');//班组产量达成率
|
|
}
|
|
|
|
}
|
|
|
|
|
|
function Converts(value) {
|
|
if (isNaN(value) || !isFinite(value)) {
|
|
return 0;
|
|
} else {
|
|
return value;
|
|
}
|
|
}
|
|
|
|
|
|
function btn_print() {
|
|
$("#print").jqprint();
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="topPanel" style="height:50px;">
|
|
<div class="toolbar">
|
|
<div class="btn-group">
|
|
<a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
|
|
<a class="btn btn-default " onclick="btn_print()"><i class="fa fa-print" style="margin-right: 5px; font-size: 13px;"></i>直接打印</a>
|
|
</div>
|
|
<script>$('.toolbar').authorizeButton()</script>
|
|
</div>
|
|
<div class="search">
|
|
<table>
|
|
<tr>
|
|
<td style="text-align:right;"><label class="lglabel" for="txt_TimeFrom"> 日期(从)</label>:</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input id="TimeFrom" name="Time" type="text" class="form-control required" style="width:80px;" maxlength="10" onclick="WdatePicker({ dateFmt: 'yyyy-MM'})" placeholder="日期(从)" />
|
|
</div>
|
|
</td>
|
|
<td style="text-align:right;"><label class="lglabel" for="txt_TimeArrive"> 日期(到)</label>:</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input id="TimeArrive" name="Time" type="text" class="form-control required" style="width:80px;" maxlength="10" onclick="WdatePicker({ dateFmt: 'yyyy-MM' })" placeholder="日期(到)" />
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<span class="input-group-btn">
|
|
<button id="btn_search" type="button" class="btn btn-primary" onclick="Seach()"><i class="fa fa-search"></i></button>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div id="print">
|
|
@*<div style="text-align:center;height:30px;line-height:30px;font-weight: bold; font-size: 20px;"><label id="Year">2023</label>年<label id="Month">09</label>月车间KPI数据</div>*@
|
|
<div style="margin-top: 2px; margin-left: 4px; margin-right: 4px;">
|
|
<div style="padding-top: 2px; margin-right: 3px;">
|
|
<table class="form" style="border-collapse: collapse; " >
|
|
<tr>
|
|
<th rowspan="2"><label id="YearInfo"></label></th>
|
|
<th >单位:T </th>
|
|
<th colspan="12">奥美车间KPI数据 </th>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th >月份</th>
|
|
<th colspan="12"><label id="TimeInfo"></label> </th>
|
|
</tr>
|
|
<tr>
|
|
<th >线别</th>
|
|
<th >班组</th>
|
|
<th>原料投入</th>
|
|
<th >研发附加</th>
|
|
<th >产出</th>
|
|
<th >线别合计产出</th>
|
|
<th >破碎料入库</th>
|
|
<th >成型率</th>
|
|
<th>线别成型率</th>
|
|
<th >还原率</th>
|
|
<th >线别还原率</th>
|
|
<th >指标</th>
|
|
<th >班组产量达成率</th>
|
|
<th >产量达成率</th>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2" id="L1">L1</th>
|
|
<td id="L1A">L1A</td>
|
|
<td id="L1AYLTR"></td>
|
|
<td id="L1AYFFJ"></td>
|
|
<td id="L1ACC"></td>
|
|
<td id="L1CC" rowspan="2" ></td>
|
|
<td id="L1APCLRK"></td>
|
|
<td id="L1ACXL"></td>
|
|
<td id="L1CXL" rowspan="2" ></td>
|
|
<td id="L1AHYL"></td>
|
|
<td id="L1HYL" rowspan="2"></td>
|
|
<td id="L1ZB" rowspan="2"></td>
|
|
<td id="L1ABZCLDCL"></td>
|
|
<td id="L1BZCLDCL" rowspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td id="L1B">L1B</td>
|
|
<td id="L1BYLTR"></td>
|
|
<td id="L1BYFFJ"></td>
|
|
<td id="L1BCC"></td>
|
|
<td id="L1BPCLRK"></td>
|
|
<td id="L1BCXL"></td>
|
|
<td id="L1BHYL"></td>
|
|
<td id="L1BBZCLDCL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2" id="L2">L2</th>
|
|
<td id="L2A">L2A</td>
|
|
<td id="L2AYLTR"></td>
|
|
<td id="L2AYFFJ"></td>
|
|
<td id="L2ACC"></td>
|
|
<td id="L2CC" rowspan="2"></td>
|
|
<td id="L2APCLRK"></td>
|
|
<td id="L2ACXL"></td>
|
|
<td id="L2CXL" rowspan="2"></td>
|
|
<td id="L2AHYL"></td>
|
|
<td id="L2HYL" rowspan="2"></td>
|
|
<td id="L2ZB" rowspan="2"></td>
|
|
<td id="L2ABZCLDCL"></td>
|
|
<td id="L2BZCLDCL" rowspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td id="L2B">L2B</td>
|
|
<td id="L2BYLTR"></td>
|
|
<td id="L2BYFFJ"></td>
|
|
<td id="L2BCC"></td>
|
|
<td id="L2BPCLRK"></td>
|
|
<td id="L2BCXL"></td>
|
|
<td id="L2BHYL"></td>
|
|
<td id="L2BBZCLDCL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2" id="L3">L3</th>
|
|
<td id="L3A">L3A</td>
|
|
<td id="L3AYLTR"></td>
|
|
<td id="L3AYFFJ"></td>
|
|
<td id="L3ACC"></td>
|
|
<td id="L3CC" rowspan="2"></td>
|
|
<td id="L3APCLRK"></td>
|
|
<td id="L3ACXL"></td>
|
|
<td id="L3CXL" rowspan="2"></td>
|
|
<td id="L3AHYL"></td>
|
|
<td id="L3HYL" rowspan="2"></td>
|
|
<td id="L3ZB" rowspan="2"></td>
|
|
<td id="L3ABZCLDCL"></td>
|
|
<td id="L3BZCLDCL" rowspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td id="L3B">L3B</td>
|
|
<td id="L3BYLTR"></td>
|
|
<td id="L3BYFFJ"></td>
|
|
<td id="L3BCC"></td>
|
|
<td id="L3BPCLRK"></td>
|
|
<td id="L3BCXL"></td>
|
|
<td id="L3BHYL"></td>
|
|
<td id="L3BBZCLDCL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="2" id="OldFactory">老厂合计</th>
|
|
<td id="OldFYLTR"></td>
|
|
<td id="OldYFFJ"></td>
|
|
<td id="OldCC"></td>
|
|
<td id="OldHJCC"></td>
|
|
<td id="OldPCLRK"></td>
|
|
<td id="OldCXL"></td>
|
|
<td id="OldXBCXL"></td>
|
|
<td id="OldHYL"></td>
|
|
<td id="OldXBHYL"></td>
|
|
<td id="OldZB"></td>
|
|
<td id="OldBZDCL"></td>
|
|
<td id="OldCLDBL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2" id="L4">L4</th>
|
|
<td id="L4A">L4A</td>
|
|
<td id="L4AYLTR"></td>
|
|
<td id="L4AYFFJ"></td>
|
|
<td id="L4ACC"></td>
|
|
<td id="L4CC" rowspan="2"></td>
|
|
<td id="L4APCLRK"></td>
|
|
<td id="L4ACXL"></td>
|
|
<td id="L4CXL" rowspan="2"></td>
|
|
<td id="L4AHYL"></td>
|
|
<td id="L4HYL" rowspan="2"></td>
|
|
<td id="L4ZB" rowspan="2"></td>
|
|
<td id="L4ABZCLDCL"></td>
|
|
<td id="L4BZCLDCL" rowspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td id="L4B">L4B</td>
|
|
<td id="L4BYLTR"></td>
|
|
<td id="L4BYFFJ"></td>
|
|
<td id="L4BCC"></td>
|
|
<td id="L4BPCLRK"></td>
|
|
<td id="L4BCXL"></td>
|
|
<td id="L4BHYL"></td>
|
|
<td id="L4BBZCLDCL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2" id="L5">L5</th>
|
|
<td id="L5A">L5A</td>
|
|
<td id="L5AYLTR"></td>
|
|
<td id="L5AYFFJ"></td>
|
|
<td id="L5ACC"></td>
|
|
<td id="L5CC" rowspan="2"></td>
|
|
<td id="L5APCLRK"></td>
|
|
<td id="L5ACXL"></td>
|
|
<td id="L5CXL" rowspan="2"></td>
|
|
<td id="L5AHYL"></td>
|
|
<td id="L5HYL" rowspan="2"></td>
|
|
<td id="L5ZB" rowspan="2"></td>
|
|
<td id="L5ABZCLDCL"></td>
|
|
<td id="L5BZCLDCL" rowspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td id="L5B">L5B</td>
|
|
<td id="L5BYLTR"></td>
|
|
<td id="L5BYFFJ"></td>
|
|
<td id="L5BCC"></td>
|
|
<td id="L5BPCLRK"></td>
|
|
<td id="L5BCXL"></td>
|
|
<td id="L5BHYL"></td>
|
|
<td id="L5BBZCLDCL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2" id="L6">L6</th>
|
|
<td id="L6A">L6A</td>
|
|
<td id="L6AYLTR"></td>
|
|
<td id="L6AYFFJ"></td>
|
|
<td id="L6ACC"></td>
|
|
<td id="L6CC" rowspan="2"></td>
|
|
<td id="L6APCLRK"></td>
|
|
<td id="L6ACXL"></td>
|
|
<td id="L6CXL" rowspan="2"></td>
|
|
<td id="L6AHYL"></td>
|
|
<td id="L6HYL" rowspan="2"></td>
|
|
<td id="L6ZB" rowspan="2"></td>
|
|
<td id="L6ABZCLDCL"></td>
|
|
<td id="L6BZCLDCL" rowspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td id="L6B">L6B</td>
|
|
<td id="L6BYLTR"></td>
|
|
<td id="L6BYFFJ"></td>
|
|
<td id="L6BCC"></td>
|
|
<td id="L6BPCLRK"></td>
|
|
<td id="L6BCXL"></td>
|
|
<td id="L6BHYL"></td>
|
|
<td id="L6BBZCLDCL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="2" id="NewFactory">新厂合计</th>
|
|
<td id="NewFYLTR"></td>
|
|
<td id="NewYFFJ"></td>
|
|
<td id="NewCC"></td>
|
|
<td id="NewHJCC"></td>
|
|
<td id="NewPCLRK"></td>
|
|
<td id="NewCXL"></td>
|
|
<td id="NewXBCXL"></td>
|
|
<td id="NewHYL"></td>
|
|
<td id="NewXBHYL"></td>
|
|
<td id="NewZB"></td>
|
|
<td id="NewBZDCL"></td>
|
|
<td id="NewCLDBL"></td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="2" id="OldNewFactory">新老厂合计</th>
|
|
<td id="OldNewFYLTR"></td>
|
|
<td id="OldNewYFFJ"></td>
|
|
<td id="OldNewCC"></td>
|
|
<td id="OldNewHJCC"></td>
|
|
<td id="OldNewPCLRK"></td>
|
|
<td id="OldNewCXL"></td>
|
|
<td id="OldNewXBCXL"></td>
|
|
<td id="OldNewHYL"></td>
|
|
<td id="OldNewXBHYL"></td>
|
|
<td id="OldNewZB"></td>
|
|
<td id="OldNewBZDCL"></td>
|
|
<td id="OldNewCLDBL"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|