1
duhe
2024-12-02 0d3d8d5a1e8759f6a972fee2621f23556d348c9d
WebTM/views/Éú²ú¹ÜÀí/¶©µ¥×´Ì¬·Ö²¼/Sc_OrderStateDistribution.html
@@ -309,36 +309,7 @@
                                html1 += '</div>';
                                $("#btomleft").append(html1);
                            }
                        }
                        //if (LoadData2.length > 0)  //当前状态数据
                        //{
                        //    for (var i = 0; i < LoadData2.length; i++) {
                        //        var html1 = '';
                        //        html1 += '<div class="layui-col-sm12 layui-col-md12">';
                        //        html1 += '<dl class="topright">;'
                        //        html1 += '<dt>';
                        //        html1 += '<img src="../layuiadmin/layui/images/device.png" onError="this.src="../layuiadmin/layui/images/erro.png";">'
                        //        html1 += '</dt>';
                        //        html1 += '<dd>';
                        //        html1 += '<h1><span>当前设备:</span><span>' + LoadData2[i].HSourceName + '</span></h1>';
                        //        html1 += '<h1><span>当前订单:</span><span>' + LoadData2[i].HSourceBillNo + '</span></h1>';
                        //        html1 += '<h1><span>物料名称:</span><span>' + LoadData2[i].HMaterName + '</span></h1>';
                        //        html1 += '<h1><span>计划数量:</span><span>' + LoadData2[i].HPlanQty + '</span></h1>';
                        //        html1 += '<h1><span>已汇报数量:</span><span>' + LoadData2[i].HRelationQty + '</span></h1>';
                        //        if (LoadData2[i].HRelationQty == 0 || LoadData2[i].HRelationQty == null) {
                        //            html1 += '<h1><span>进度:</span><span>0%</span></h1>';
                        //        }
                        //        else {
                        //            html1 += '<h1><span>进度:</span><span>' + ((LoadData2[i].HRelationQty / LoadData2[i].HPlanQty) * 100).toFixed(2) + '%</span></h1>';
                        //        }
                        //        html1 += '<h1><span>本单运行时间:</span><span>' + getSeconds(LoadData2[i].HSumTimes) + '</span></h1>';
                        //        html1 += '<h1><span>本资源运行时间:</span><span>' + getSeconds(LoadData2[i].HSourceWorkTime) + '</span></h1>';
                        //        html1 += '</dd>';
                        //        html1 += '</dl>';
                        //        html1 += '</div>';
                        //        $("#topright").append(html1);
                        //    }
                        //}
                        }
                    },
                    error: function (err) {
                        layer.alert(err.Message, { time: 1 * 2000, icon: 5 });
@@ -441,49 +412,7 @@
                //生产负荷
                var optionData = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
                //$.ajax({
                //    url: GetWEBURL() + "/loaddata/KB_scfh",
                //    dataType: "JSON",
                //    async: false,//使用同步的方式,true为异步方式
                //    type: "Get",
                //    data: { "LineCode": "1" },
                //    success: function (res) {
                //        for (var i = 0; i < res.data[0].length; i++) {
                //            if (res.data[0][i].HProcID == 191) {//缸厂
                //                optionData[0] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            } else if (res.data[0][i].HProcID == 193) {//烘干定型
                //                optionData[1] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 194) {//上浆定型
                //                optionData[2] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 198) {//色坯烫光
                //                optionData[3] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 204) {//预烫剪
                //                optionData[4] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 197) {//补刷
                //                optionData[5] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 201) {//印毛尖
                //                optionData[6] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 200) {//拉幅定型
                //                optionData[7] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 206) {//短线烫
                //                optionData[8] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 205) {//长线烫
                //                optionData[9] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //        }
                //    }
                //})
                var option = {
                    xAxis: {
                        type: 'category',
@@ -553,39 +482,7 @@
                //生产效率
                //var res = PubRes;
                var optionData = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
                //for (var i = 0; i < res.data[0].length; i++) {
                //    if (res.data[0][i].HProcID == 191) {//缸厂
                //        optionData[0] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    } else if (res.data[0][i].HProcID == 193) {//烘干定型
                //        optionData[1] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 194) {//上浆定型
                //        optionData[2] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 198) {//色坯烫光
                //        optionData[3] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 204) {//预烫剪
                //        optionData[4] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 197) {//补刷
                //        optionData[5] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 201) {//印毛尖
                //        optionData[6] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 200) {//拉幅定型
                //        optionData[7] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 206) {//短线烫
                //        optionData[8] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //    else if (res.data[0][i].HProcID == 205) {//长线烫
                //        optionData[9] = (res.data[0][i].OutHQty / 1000).toFixed(0);
                //    }
                //}
                ////打包入库
                //optionData[10] = (res.data[1][0].HQty / 1000).toFixed(0);
                var option = {
                    xAxis: {
@@ -765,48 +662,7 @@
                //生产负荷
                var optionData = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
                //$.ajax({
                //    url: GetWEBURL() + "/loaddata/KB_scfh",
                //    dataType: "JSON",
                //    async: false,//使用同步的方式,true为异步方式
                //    type: "Get",
                //    data: { "LineCode": "1" },
                //    success: function (res) {
                //        for (var i = 0; i < res.data[0].length; i++) {
                //            if (res.data[0][i].HProcID == 191) {//缸厂
                //                optionData[0] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            } else if (res.data[0][i].HProcID == 193) {//烘干定型
                //                optionData[1] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 194) {//上浆定型
                //                optionData[2] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 198) {//色坯烫光
                //                optionData[3] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 204) {//预烫剪
                //                optionData[4] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 197) {//补刷
                //                optionData[5] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 201) {//印毛尖
                //                optionData[6] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 200) {//拉幅定型
                //                optionData[7] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 206) {//短线烫
                //                optionData[8] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //            else if (res.data[0][i].HProcID == 205) {//长线烫
                //                optionData[9] = (res.data[0][i].HQty / 1000).toFixed(0);
                //            }
                //        }
                //    }
                //})
                var option = {
                    xAxis: {
                        type: 'category',