Commit 7fb98c83 authored by xuzhuo's avatar xuzhuo

大屏当日订单量跳转

parent 5d2e33e4
...@@ -521,23 +521,23 @@ export const initDetail = function () { ...@@ -521,23 +521,23 @@ export const initDetail = function () {
} }
export const getShipmentWeight = async function (department_code, cur_day) { export const getShipmentWeight = async function (department_code, cur_day) {
let pageData = new Object(); let pageData = [];
let response = await getDepartmentShipmentWeight(department_code, cur_day); let response = await getDepartmentShipmentWeight(department_code, cur_day);
var xAxisData = new Array(); var xAxisData = [];
var line1 = new Array(); var line1 = [];
var line2 = new Array(); var line2 = [];
response.data.forEach(function (row) { response.data.forEach(function (row) {
xAxisData.push(row.cur_day); xAxisData.push(row.cur_day);
line1.push(row.s__finished_weight_sum); line1.push(row.s__finished_weight_sum);
line2.push(row.s__unfinished_weight_sum); line2.push(row.s__unfinished_weight_sum);
}); });
var series = new Array(); var series = [];
series.push(adapterSeriesData(null, "完成量", line1)); series.push(adapterSeriesData(null, "完成量", line1));
series.push(adapterSeriesData(null, "未完成量", line2)); series.push(adapterSeriesData(null, "未完成量", line2));
var xAxis = new Array(); var xAxis = [];
xAxis.push(adapterXAxisData2("#00bbe5", xAxisData)); xAxis.push(adapterXAxisData2("#00bbe5", xAxisData));
var seriesBar = new Array(); var seriesBar = [];
seriesBar.push(adapterSeriesDataBar(null, "完成量", line1)); seriesBar.push(adapterSeriesDataBar(null, "完成量", line1));
seriesBar.push(adapterSeriesDataBar(null, "未完成量", line2)); seriesBar.push(adapterSeriesDataBar(null, "未完成量", line2));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment