fix:光芯大屏底部工序批次表数据变更接口
This commit is contained in:
parent
1524d1403a
commit
5e88af1483
|
|
@ -156,7 +156,7 @@
|
||||||
:config="configData0"
|
:config="configData0"
|
||||||
class="inmBoxmain"
|
class="inmBoxmain"
|
||||||
/>
|
/>
|
||||||
<scEcharts v-if="visibals0" :width="lineWidth" :height="lineHeight" :option="options0"></scEcharts>
|
<scEcharts v-if="visibals0" :width="lineWidth" :height="lineHeight" :option="options0" style="margin-top: 0.5vh;"></scEcharts>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flexItem3">
|
<div class="flexItem3">
|
||||||
|
|
@ -166,7 +166,7 @@
|
||||||
:config="configData1"
|
:config="configData1"
|
||||||
class="inmBoxmain"
|
class="inmBoxmain"
|
||||||
/>
|
/>
|
||||||
<scEcharts v-if="visibals1" :width="lineWidth" :height="lineHeight" :option="options1"></scEcharts>
|
<scEcharts v-if="visibals1" :width="lineWidth" :height="lineHeight" :option="options1" style="margin-top: 0.5vh;"></scEcharts>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flexItem3">
|
<div class="flexItem3">
|
||||||
|
|
@ -176,7 +176,7 @@
|
||||||
:config="configData2"
|
:config="configData2"
|
||||||
class="inmBoxmain"
|
class="inmBoxmain"
|
||||||
/>
|
/>
|
||||||
<scEcharts v-if="visibals2" :width="lineWidth" :height="lineHeight" :option="options2"></scEcharts>
|
<scEcharts v-if="visibals2" :width="lineWidth" :height="lineHeight" :option="options2" style="margin-top: 0.5vh;"></scEcharts>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flexItem3">
|
<div class="flexItem3">
|
||||||
|
|
@ -186,7 +186,7 @@
|
||||||
:config="configData3"
|
:config="configData3"
|
||||||
class="inmBoxmain"
|
class="inmBoxmain"
|
||||||
/>
|
/>
|
||||||
<scEcharts v-if="visibals3" :width="lineWidth" :height="lineHeight" :option="options3"></scEcharts>
|
<scEcharts v-if="visibals3" :width="lineWidth" :height="lineHeight" :option="options3" style="margin-top: 0.5vh;"></scEcharts>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flexItem3">
|
<div class="flexItem3">
|
||||||
|
|
@ -196,7 +196,7 @@
|
||||||
:config="configData4"
|
:config="configData4"
|
||||||
class="inmBoxmain"
|
class="inmBoxmain"
|
||||||
/>
|
/>
|
||||||
<scEcharts v-if="visibals4" :width="lineWidth" :height="lineHeight" :option="options4"></scEcharts>
|
<scEcharts v-if="visibals4" :width="lineWidth" :height="lineHeight" :option="options4" style="margin-top: 0.5vh;"></scEcharts>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -244,7 +244,7 @@ const baseOption={
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
},
|
},
|
||||||
grid:{
|
grid:{
|
||||||
top: '10%',
|
top: '20%',
|
||||||
bottom: '10%',
|
bottom: '10%',
|
||||||
},
|
},
|
||||||
xAxis:{
|
xAxis:{
|
||||||
|
|
@ -905,29 +905,27 @@ export default {
|
||||||
//获取工序批次数据
|
//获取工序批次数据
|
||||||
getProcessDatas(name,index){
|
getProcessDatas(name,index){
|
||||||
let that = this;
|
let that = this;
|
||||||
let month = that.currentMonth>9?that.currentMonth:'0'+that.currentMonth;
|
// let month = that.currentMonth>9?that.currentMonth:'0'+that.currentMonth;
|
||||||
let day = that.currentDay>9?that.currentDay:'0'+that.currentDay;
|
// let day = that.currentDay>9?that.currentDay:'0'+that.currentDay;
|
||||||
let current_date = that.currentYear+'-'+month+'-'+day;
|
// let current_date = that.currentYear+'-'+month+'-'+day;
|
||||||
let obj = {query:{current_date:current_date,mgroup_name:name}};
|
// let obj = {query:{current_date:current_date,mgroup_name:name}};
|
||||||
that.$API.bi.dataset.exec.req('batch_search', obj).then((res) => {
|
// that.$API.bi.dataset.exec.req('batch_search', obj).then((res) => {
|
||||||
if(res.data2.ds0){
|
that.$API.wpm.ana.batchwork.req({mgroup_name:name}).then((res) => {
|
||||||
let lists = res.data2.ds0;
|
if(res.length>0){
|
||||||
//根据工段名称分组
|
//根据工段名称分组
|
||||||
let keys = 'configData'+index;
|
let keys = 'configData'+index;
|
||||||
that[keys] = that.deepCopy(configData);
|
that[keys] = that.deepCopy(configData);
|
||||||
that[keys].data = [];
|
that[keys].data = [];
|
||||||
if(lists.length>0){
|
res.forEach((item) => {
|
||||||
lists.forEach((item) => {
|
|
||||||
let arr = [];
|
let arr = [];
|
||||||
arr[0] = item.批次号;
|
arr[0] = item.batch;
|
||||||
arr[1] = item.待加工产物数;
|
arr[1] = item.count_todo;
|
||||||
arr[2] = item.加工中产物领用数;
|
arr[2] = item.count_working;
|
||||||
arr[3] = item.今日生产数;
|
arr[3] = item.count_real;
|
||||||
arr[3] = item.今日合格数;
|
arr[3] = item.count_ok;
|
||||||
that[keys].data.push(arr);
|
that[keys].data.push(arr);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取工序近七天的柱状图数据
|
//获取工序近七天的柱状图数据
|
||||||
|
|
@ -1032,6 +1030,7 @@ export default {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
/* header-start */
|
/* header-start */
|
||||||
.pageHeader {
|
.pageHeader {
|
||||||
|
|
@ -1275,7 +1274,7 @@ export default {
|
||||||
.flexItem3Body{
|
.flexItem3Body{
|
||||||
width: 19.8vw;
|
width: 19.8vw;
|
||||||
height: 28.5vh;
|
height: 28.5vh;
|
||||||
padding-top: 2.3vh;
|
padding-top: 2vh;
|
||||||
border: 1px solid #00ffff;
|
border: 1px solid #00ffff;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -1285,9 +1284,10 @@ export default {
|
||||||
|
|
||||||
.inmBoxmain{
|
.inmBoxmain{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height:12.96vh;
|
height:12.4vh;
|
||||||
width:98%;
|
width:98%;
|
||||||
margin:auto;
|
margin:auto;
|
||||||
|
/* margin-bottom: 0.5vh; */
|
||||||
/* border-left: 2px solid #0f5b8e; */
|
/* border-left: 2px solid #0f5b8e; */
|
||||||
box-shadow: -4px 0px 4px -1px #0f5b8e;
|
box-shadow: -4px 0px 4px -1px #0f5b8e;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue