fix:玻纤车间看板数据填充

This commit is contained in:
shijing 2025-06-13 15:42:48 +08:00
parent a85e691f3f
commit 731ae2cca8
1 changed files with 5 additions and 10 deletions

View File

@ -444,9 +444,8 @@ export default {
//
this.getCount();
//
this.getMaterials();
//
this.getMaterials();
// this.getMaterials();// this.getmgroupMaterial();
})
},
methods: {
@ -526,7 +525,6 @@ export default {
//
getmgroupMaterial(item) {
let that = this;
console.log('item',item);
let params = { tag: 'done',page_size:1,mgroup: item.id };
that.$API.wpm.wmaterial.list.req(params).then((res) => {
let obj = {};
@ -556,13 +554,10 @@ export default {
}
})
let maxNum = valuelist.sort((a, b) => b - a)[0]+2;
console.log('maxNum',maxNum);
console.log('maxNum',maxNum);
let arr = [];
valuelist.forEach((item)=>{
arr.push(maxNum)
})
console.log('arr',arr);
that.chartOption2.yAxis[0].data = namelist;
that.chartOption2.yAxis[1].data = valuelist;
that.chartOption2.series[0].data = valuelist;
@ -580,7 +575,7 @@ export default {
let that = this;
let params = {
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.$API.em.equipment.list.req(params).then((res) => {
@ -588,7 +583,7 @@ export default {
res.forEach((item) => {
let arr = [];
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[1] = item.number;
arr[2] = state_;
@ -603,8 +598,8 @@ export default {
let that = this;
let date = that.$TOOL.dateFormat(new Date(), "yyyy-MM-dd");
let params = {
// 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:date,end_date:date,dept_name:that.deptName},
// query: {start_date:'2025-06-11',end_date:'2025-06-11',dept_name:that.deptName},
};
let namelist = [],valuelist = [];
this.$API.bi.dataset.exec.req("performance", params).then((res) => {