修改数据请求

master
夜笙歌 4 years ago
parent 53cc43e99d
commit 5c9572f8e3

@ -11,7 +11,7 @@ $(() => {
// 订单详情 // 订单详情
const orderDetailsTable = new AutoScrollTable(document.getElementById("orderDetails"), ["编号", "计划数量", "完成数量", "差异值", "时间",], {width: ['30%', null, null, null, '17%']}) const orderDetailsTable = new AutoScrollTable(document.getElementById("orderDetails"), ["编号", "计划数量", "完成数量", "差异值", "时间",], {width: ['30%', null, null, null, '17%']})
// 产线当日订单信息 // 成品入库统计
const PropertyInsuranceOneDayOrderInfoTable = new AutoScrollTable(document.getElementById("PropertyInsuranceOneDayOrderInfo"), [ const PropertyInsuranceOneDayOrderInfoTable = new AutoScrollTable(document.getElementById("PropertyInsuranceOneDayOrderInfo"), [
"物料条码", "检测项", "质量缺陷", "标志", "时间", "物料条码", "检测项", "质量缺陷", "标志", "时间",
], {width: ['30%', null, null, null, '17%']}) ], {width: ['30%', null, null, null, '17%']})
@ -19,7 +19,7 @@ $(() => {
// 当日订单数量达成率 // 当日订单数量达成率
horizontalRoundedBarChartWithBackground(null, document.getElementById("orderQuantityFulfillmentRateOfTheDay")); horizontalRoundedBarChartWithBackground(null, document.getElementById("orderQuantityFulfillmentRateOfTheDay"));
// 成品入库统计 // 质量统计
barChartAndLineChart(null, document.getElementById("FinishedGoodsWarehousingStatisticsByHour")); barChartAndLineChart(null, document.getElementById("FinishedGoodsWarehousingStatisticsByHour"));
// 产线不良类型分布 // 产线不良类型分布
@ -34,7 +34,7 @@ $(() => {
xDataName: "达成率", xDataName: "达成率",
}, document.getElementById("orderQuantityFulfillmentRateOfTheDay")) }, document.getElementById("orderQuantityFulfillmentRateOfTheDay"))
}) })
//成品入库统计轮询 //质量统计轮询
autoUpdate(url + "/selectProductInStore ", INTERVAL, data => { autoUpdate(url + "/selectProductInStore ", INTERVAL, data => {
barChartAndLineChart({ barChartAndLineChart({
xName: data.map(value => value.name), xName: data.map(value => value.name),
@ -42,8 +42,8 @@ $(() => {
yDataTwoName: "成品数量", yDataTwoName: "成品数量",
}, document.getElementById("FinishedGoodsWarehousingStatisticsByHour")); }, document.getElementById("FinishedGoodsWarehousingStatisticsByHour"));
}) })
//产线当日订单信息轮询 //成品入库统计轮询
autoUpdate(url + "/selectOrderInfo ", INTERVAL, data => { autoUpdate(url + "/selectQualityInfo ", INTERVAL, data => {
PropertyInsuranceOneDayOrderInfoTable.loadData(data.map(value => [value.code, value.item, value.qa, value.state, value.day]), Object.keys(planWorkOrderColumns)) PropertyInsuranceOneDayOrderInfoTable.loadData(data.map(value => [value.code, value.item, value.qa, value.state, value.day]), Object.keys(planWorkOrderColumns))
}) })

@ -33,10 +33,10 @@
<!--当日订单数量达成率--> <!--当日订单数量达成率-->
<div class="orderQuantityFulfillmentRateOfTheDay" id="orderQuantityFulfillmentRateOfTheDay"></div> <div class="orderQuantityFulfillmentRateOfTheDay" id="orderQuantityFulfillmentRateOfTheDay"></div>
<!--成品入库统计--> <!--质量统计-->
<div class="FinishedGoodsWarehousingStatisticsByHour" id="FinishedGoodsWarehousingStatisticsByHour"></div> <div class="FinishedGoodsWarehousingStatisticsByHour" id="FinishedGoodsWarehousingStatisticsByHour"></div>
<!--产线当日订单信息--> <!--成品入库统计-->
<div class="PropertyInsuranceOneDayOrderInfo" id="PropertyInsuranceOneDayOrderInfo"></div> <div class="PropertyInsuranceOneDayOrderInfo" id="PropertyInsuranceOneDayOrderInfo"></div>
<!--产线不良类型分布--> <!--产线不良类型分布-->

Loading…
Cancel
Save