fix:玻纤车间看板数据填充
This commit is contained in:
parent
a85e691f3f
commit
731ae2cca8
|
@ -444,9 +444,8 @@ export default {
|
||||||
//每个人日生产量:个人绩效
|
//每个人日生产量:个人绩效
|
||||||
this.getCount();
|
this.getCount();
|
||||||
//车间整体产品统计:最后一个工序的产品统计
|
//车间整体产品统计:最后一个工序的产品统计
|
||||||
this.getMaterials();
|
|
||||||
//产品占比:最后一个工序的产品占比
|
//产品占比:最后一个工序的产品占比
|
||||||
this.getMaterials();
|
// this.getMaterials();// this.getmgroupMaterial();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -526,7 +525,6 @@ export default {
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getmgroupMaterial(item) {
|
getmgroupMaterial(item) {
|
||||||
let that = this;
|
let that = this;
|
||||||
console.log('item',item);
|
|
||||||
let params = { tag: 'done',page_size:1,mgroup: item.id };
|
let params = { tag: 'done',page_size:1,mgroup: item.id };
|
||||||
that.$API.wpm.wmaterial.list.req(params).then((res) => {
|
that.$API.wpm.wmaterial.list.req(params).then((res) => {
|
||||||
let obj = {};
|
let obj = {};
|
||||||
|
@ -556,13 +554,10 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let maxNum = valuelist.sort((a, b) => b - a)[0]+2;
|
let maxNum = valuelist.sort((a, b) => b - a)[0]+2;
|
||||||
console.log('maxNum',maxNum);
|
|
||||||
console.log('maxNum',maxNum);
|
|
||||||
let arr = [];
|
let arr = [];
|
||||||
valuelist.forEach((item)=>{
|
valuelist.forEach((item)=>{
|
||||||
arr.push(maxNum)
|
arr.push(maxNum)
|
||||||
})
|
})
|
||||||
console.log('arr',arr);
|
|
||||||
that.chartOption2.yAxis[0].data = namelist;
|
that.chartOption2.yAxis[0].data = namelist;
|
||||||
that.chartOption2.yAxis[1].data = valuelist;
|
that.chartOption2.yAxis[1].data = valuelist;
|
||||||
that.chartOption2.series[0].data = valuelist;
|
that.chartOption2.series[0].data = valuelist;
|
||||||
|
@ -580,7 +575,7 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
let params = {
|
let params = {
|
||||||
page: 0, belong_dept:that.deptId,
|
page: 0, belong_dept:that.deptId,
|
||||||
query: " { id, name, number, model, state ,mgroup_name }"
|
// query: " { id, name, number, model, state ,mgroup_name }"
|
||||||
};
|
};
|
||||||
that.config_middle_bottom.data = [];
|
that.config_middle_bottom.data = [];
|
||||||
that.$API.em.equipment.list.req(params).then((res) => {
|
that.$API.em.equipment.list.req(params).then((res) => {
|
||||||
|
@ -588,7 +583,7 @@ export default {
|
||||||
res.forEach((item) => {
|
res.forEach((item) => {
|
||||||
let arr = [];
|
let arr = [];
|
||||||
let state_ = that.state_[item.state];
|
let state_ = that.state_[item.state];
|
||||||
let running_state_ = runningStateEnum[scope.row.running_state]?.text;
|
let running_state_ = runningStateEnum[item.running_state]?.text;
|
||||||
arr[0] = item.name;
|
arr[0] = item.name;
|
||||||
arr[1] = item.number;
|
arr[1] = item.number;
|
||||||
arr[2] = state_;
|
arr[2] = state_;
|
||||||
|
@ -603,8 +598,8 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
let date = that.$TOOL.dateFormat(new Date(), "yyyy-MM-dd");
|
let date = that.$TOOL.dateFormat(new Date(), "yyyy-MM-dd");
|
||||||
let params = {
|
let params = {
|
||||||
// query: {start_date:date,end_date:date,dept_name:that.deptName},
|
query: {start_date:date,end_date:date,dept_name:that.deptName},
|
||||||
query: {start_date:'2025-06-11',end_date:'2025-06-11',dept_name:that.deptName},
|
// query: {start_date:'2025-06-11',end_date:'2025-06-11',dept_name:that.deptName},
|
||||||
};
|
};
|
||||||
let namelist = [],valuelist = [];
|
let namelist = [],valuelist = [];
|
||||||
this.$API.bi.dataset.exec.req("performance", params).then((res) => {
|
this.$API.bi.dataset.exec.req("performance", params).then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue