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) => {
|
||||
let data = res;
|
||||
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;
|
||||
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;
|
||||
let month = that.currentMonth>9?that.currentMonth:'0'+that.currentMonth;
|
||||
let day = that.currentDay>9?that.currentDay:'0'+that.currentDay;
|
||||
let current_date = that.currentYear+'-'+month+'-'+day;
|
||||
let obj = {query:{current_date:current_date,mgroup_name:name}};
|
||||
that.$API.bi.dataset.exec.req('batch_search', obj).then((res) => {
|
||||
if(res.data2.ds0){
|
||||
let lists = res.data2.ds0[0];
|
||||
//根据工段名称分组
|
||||
let keys = 'configData'+index;
|
||||
that[keys] = that.deepCopy(configData);
|
||||
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);
|
||||
})
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
},
|
||||
beforeUnmount() {
|
||||
|
@ -1267,7 +1294,7 @@ export default {
|
|||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
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{
|
||||
position: absolute;top: 0;left: 10px;font-size: 20px;
|
||||
|
|
Loading…
Reference in New Issue