fix:光芯大屏更新视频公告
This commit is contained in:
parent
bfd3f5e7f9
commit
feeeaf423e
|
@ -1201,27 +1201,54 @@ export default {
|
||||||
that.$API.mtm.mgroup.list.req({page:0}).then((res) => {
|
that.$API.mtm.mgroup.list.req({page:0}).then((res) => {
|
||||||
let data = res;
|
let data = res;
|
||||||
for(let i=0;i<data.length;i++){
|
for(let i=0;i<data.length;i++){
|
||||||
that.getProcessData(data[i].id,i);
|
that.mgroupsData = res;
|
||||||
|
that.getProcessDatas(data[i].name,i);
|
||||||
|
// that.getProcessData(data[i].id,i);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getProcessData(mgroupId,index){
|
// getProcessData(mgroupId,index){
|
||||||
|
// let that = this;
|
||||||
|
// that.$API.wpm.wmaterial.list.req({mgroupx:mgroupId,notok_sign__isnull:true,page:0}).then((res) => {
|
||||||
|
// let keys = 'configData'+index;
|
||||||
|
// that[keys] = that.deepCopy(configData);
|
||||||
|
// that[keys].data = [];
|
||||||
|
// if(res.length>0){
|
||||||
|
// res.forEach((item) => {
|
||||||
|
// let arr = [];
|
||||||
|
// arr[0] = item.batch;
|
||||||
|
// arr[1] = item.count_cando;
|
||||||
|
// arr[2] = item.count_working;
|
||||||
|
// arr[3] = item.count-item.count_cando-item.count_working;
|
||||||
|
// that[keys].data.push(arr);
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
getProcessDatas(name,index){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({mgroupx:mgroupId,notok_sign__isnull:true,page:0}).then((res) => {
|
let month = that.currentMonth>9?that.currentMonth:'0'+that.currentMonth;
|
||||||
let keys = 'configData'+index;
|
let day = that.currentDay>9?that.currentDay:'0'+that.currentDay;
|
||||||
that[keys] = that.deepCopy(configData);
|
let current_date = that.currentYear+'-'+month+'-'+day;
|
||||||
that[keys].data = [];
|
let obj = {query:{current_date:current_date,mgroup_name:name}};
|
||||||
if(res.length>0){
|
that.$API.bi.dataset.exec.req('batch_search', obj).then((res) => {
|
||||||
res.forEach((item) => {
|
if(res.data2.ds0){
|
||||||
let arr = [];
|
let lists = res.data2.ds0[0];
|
||||||
arr[0] = item.batch;
|
//根据工段名称分组
|
||||||
arr[1] = item.count_cando;
|
let keys = 'configData'+index;
|
||||||
arr[2] = item.count_working;
|
that[keys] = that.deepCopy(configData);
|
||||||
arr[3] = item.count-item.count_cando-item.count_working;
|
that[keys].data = [];
|
||||||
|
lists.forEach((item) => {
|
||||||
|
let arr = [];
|
||||||
|
arr[0] = item.批次号;
|
||||||
|
arr[1] = item.待加工产物数;
|
||||||
|
arr[2] = item.加工中产物领用数;
|
||||||
|
arr[3] = item.今日合格数;
|
||||||
|
// arr[4] = Math.round((item.今日合格数/item.今日合格数)*100)+'%';
|
||||||
that[keys].data.push(arr);
|
that[keys].data.push(arr);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
|
@ -1267,7 +1294,7 @@ export default {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom: 1px solid rgba(54, 217, 187, 0.3);
|
/* border-bottom: 1px solid rgba(54, 217, 187, 0.3); */
|
||||||
}
|
}
|
||||||
.header_left{
|
.header_left{
|
||||||
position: absolute;top: 0;left: 10px;font-size: 20px;
|
position: absolute;top: 0;left: 10px;font-size: 20px;
|
||||||
|
|
Loading…
Reference in New Issue