fix:光芯大屏任务产量展示二次超洗数量,精雕改为倒角

This commit is contained in:
shijing 2025-06-12 13:48:24 +08:00
parent 7eff9f3505
commit c5fd2ee402
1 changed files with 14 additions and 13 deletions

View File

@ -170,7 +170,7 @@
</div>
</div>
<div class="flexItem3">
<div class="flexItem3_title">精雕</div>
<div class="flexItem3_title">倒角</div>
<div class="flexItem3Body">
<dv-scroll-board
:config="configData2"
@ -245,7 +245,7 @@ const baseOption={
},
grid:{
top: '20%',
bottom: '10%',
bottom: 0,
},
xAxis:{
type: 'category',
@ -265,21 +265,22 @@ const baseOption={
yAxis:[
{
type: 'value',
name: '数量',
// name: '',
axisLine: {
lineStyle: {
color: '#fff',
}
},
axisLabel: {
fontSize: 10,
fontSize: 8,
color: '#fff',
top: 10,
},
},
{
type: "value",
name: "合格率",
// name: "",
position: "right",
alignTicks: true,
offset: 0,
@ -299,7 +300,7 @@ const baseOption={
itemWidth: 12,
itemHeight: 12,
left: 'center',
bottom: '0.5%',
top: '0.5%',
textStyle: {
color: '#fff',
fontSize: 10,
@ -694,7 +695,7 @@ export default {
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 objDay = {query:{start_date:current_date,end_date:current_date,mgroup_name:'次超洗'}};
let objDay = {query:{start_date:current_date,end_date:current_date,mgroup_name:'次超洗'}};
that.$API.bi.dataset.exec.req('lineDay_m2', objDay).then((res0) => {
if(res0.data2.ds0&&res0.data2.ds0.length>0){
that.count_day = res0.data2.ds0[0].生产数;
@ -708,7 +709,7 @@ export default {
let first = new Date(new Date(nowDate.getTime() - (weekFirst * ondDayTime)));//
let last = new Date(new Date(nowDate.getTime() + (weekLast * ondDayTime)));//
let objWeek = {query:{
start_date:first,end_date:last,mgroup_name:'次超洗',
start_date:first,end_date:last,mgroup_name:'次超洗',
group_bys_date:',月,周',order_bys_date:',月,周',
select_cols_date:', EXTRACT ( MONTH FROM mlog.work_end_time) AS 月,EXTRACT(WEEK FROM mlog.work_end_time) AS 周'
}};
@ -720,7 +721,7 @@ export default {
let start_month = that.currentYear+'-'+month+'-01';
let end_month = that.currentYear+'-'+month+'-'+new Date(that.currentYear, month, 0).getDate();
let objMonth = {query:{
start_date:start_month,end_date:end_month,mgroup_name:'次超洗',
start_date:start_month,end_date:end_month,mgroup_name:'次超洗',
group_bys_date:',月',order_bys_date:',月',
select_cols_date:', EXTRACT ( MONTH FROM mlog.work_end_time) AS 月'
}};
@ -884,7 +885,7 @@ export default {
}else if(data[i].name=='减薄A'){
that.getProcessDatas(data[i].name,1);
that.getProcessCount(data[i].name,1);
}else if(data[i].name=='精雕'){
}else if(data[i].name=='倒角'){
that.getProcessDatas(data[i].name,2);
that.getProcessCount(data[i].name,2);
}else if(data[i].name=='成品抛'){
@ -913,12 +914,12 @@ export default {
// 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) => {
let keys = 'configData'+index;
that[keys] = that.deepCopy(configData);
that[keys].data = [];
that.$API.wpm.ana.batchwork.req({mgroup_name:name}).then((res) => {
if(res.length>0){
//
let keys = 'configData'+index;
that[keys] = that.deepCopy(configData);
that[keys].data = [];
res.forEach((item) => {
let arr = [];
arr[0] = item.batch;