修改数据请求

master
夜笙歌 4 years ago
parent caa6f3ad01
commit e1f545c560

@ -4,14 +4,14 @@ $(() => {
let url = '/broad/beforeLibrary' let url = '/broad/beforeLibrary'
// 订单详情 // 订单详情
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"), ["物料条码", "检测项", "质量缺陷", "标志", "时间"], {width: ['30%', null, null, null, '17%']}) const PropertyInsuranceOneDayOrderInfoTable = new AutoScrollTable(document.getElementById("PropertyInsuranceOneDayOrderInfo"), ["物料条码", "检测项", "质量缺陷", "标志", "时间"], {width: ['30%', null, null, null, '17%']})
//订单详情轮询 + 当日订单数量达成率轮询 //订单详情轮询 + 当日订单数量达成率轮询
autoUpdate(url + "/selectOrderInfo ", INTERVAL, data => { autoUpdate(url + "/selectOrderInfo ", INTERVAL, data => {
orderDetailsTable.loadData(data.map(value => [value.plan_code, value.plan_number, value.actual_number, value.plan_number - value.actual_number, value.day]), Object.keys(planWorkOrderColumns)) orderDetailsTable.loadData(data.map(value => [value.plan_code, value.plan_number, value.actual_number, value.plan_number - value.actual_number, value.day]), Object.keys(["编号", "计划数量", "完成数量", "差异值", "时间"]))
horizontalRoundedBarChartWithBackground({ horizontalRoundedBarChartWithBackground({
yName: data.map(value => value.plan_code), yName: data.map(value => value.plan_code),
xData: data.map(value => value.rate), xData: data.map(value => value.rate),
@ -30,7 +30,7 @@ $(() => {
//成品质量详情轮询 //成品质量详情轮询
autoUpdate(url + "/selectQualityInfo ", 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(["物料条码", "检测项", "质量缺陷", "标志", "时间"]))
}) })
//产线不良类型分布 + 质量统计轮询 //产线不良类型分布 + 质量统计轮询
@ -49,7 +49,7 @@ $(() => {
yDataTwoName: "质量", yDataTwoName: "质量",
} }
}), document.getElementById("FinishedGoodsWarehousingStatisticsByHour")); }), document.getElementById("statisticOfAttribute"));
}) })
}) })

Loading…
Cancel
Save