fix:光子统计分析综合查询查询日期为今天时使用报表”gz_zh“
This commit is contained in:
parent
6035ffb19d
commit
c52648a4d3
|
|
@ -166,7 +166,7 @@ export default {
|
|||
day = day < 10 ? "0" + day : day;
|
||||
this.day = day;
|
||||
this.query.date = this.currentDate = `${year}-${month}-${day}`;
|
||||
this.getSourceData();
|
||||
this.getSourceDataNow();
|
||||
this.bangHeight = document.getElementById("bangTable").offsetHeight - 20;
|
||||
this.guanHeight = document.getElementById("guanTable").offsetHeight - 20;
|
||||
},
|
||||
|
|
@ -250,6 +250,17 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
getSourceDataNow(){
|
||||
let that = this;
|
||||
that.$API.bi.dataset.exec.req("gz_zh").then((res) => {
|
||||
let datas = res.data2;
|
||||
let data_b = [...datas.ds0, ...datas.ds2];
|
||||
let data_g = [...datas.ds1, ...datas.ds3];
|
||||
that.data_b = data_b;
|
||||
that.data_g = data_g;
|
||||
that.getSaleOutData(data_b, data_g);
|
||||
});
|
||||
},
|
||||
//获取表格原始数据
|
||||
getSourceData() {
|
||||
let that = this;
|
||||
|
|
@ -328,8 +339,6 @@ export default {
|
|||
key = "开槽";
|
||||
}
|
||||
if (item1.车间==null||item1.车间==undefined) {
|
||||
// console.log( '仓库库存',item1);
|
||||
// console.log( item1.工序 !== "配管"&&item1.类型==10);
|
||||
if (item1.工序 == "配管") {
|
||||
key = "配管";
|
||||
}else if(item1.工序 !== "配管"&&item1.类型==10){
|
||||
|
|
@ -353,18 +362,6 @@ export default {
|
|||
obj.成品库;
|
||||
that.tableData11[index] = obj;
|
||||
});
|
||||
// saleData.forEach((item) => {
|
||||
// let index = 0;
|
||||
// if (item.型号.indexOf("+") > -1) {
|
||||
// let model = item.型号.split("+")[0];
|
||||
// index = models.indexOf(model);
|
||||
// } else {
|
||||
// index = models.indexOf(item.型号);
|
||||
// }
|
||||
// if (index > -1) {
|
||||
// that.tableData11[index].检验合格数=item.数量;
|
||||
// }
|
||||
// })
|
||||
that.models_b = models;
|
||||
that.getCountOk('b',models);
|
||||
},
|
||||
|
|
@ -460,8 +457,6 @@ export default {
|
|||
key = "倒角";
|
||||
}
|
||||
if (item5.车间==null||item5.车间==undefined) {
|
||||
// console.log( '仓库库存',item5);
|
||||
// console.log( item5.工序 !== "配管"&&item5.类型==10);
|
||||
if (item5.工序 == "配管") {
|
||||
key = "配棒";
|
||||
}else if(item5.工序 !== "配管"&&item5.类型==10){
|
||||
|
|
@ -531,7 +526,12 @@ export default {
|
|||
that.query.date = that.currentDate;
|
||||
}
|
||||
}
|
||||
that.getSourceData();
|
||||
if(that.query.date == that.currentDate){
|
||||
that.getSourceDataNow();
|
||||
}else{
|
||||
that.getSourceData();
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue