diff --git a/src/views/statistics/bxerp/workHoursRY.vue b/src/views/statistics/bxerp/workHoursRY.vue
index f15ee8b4..d6fab545 100644
--- a/src/views/statistics/bxerp/workHoursRY.vue
+++ b/src/views/statistics/bxerp/workHoursRY.vue
@@ -28,7 +28,7 @@
@click="handleQuery1"
>
-
+
-
+
+
+ {{ scope.row.data.装炉压板出炉_设备编号 }}
+
@@ -350,6 +353,55 @@
+
+
+
+
+
+
+
+ {{scope.row.模具号}}
+ {{scope.row.横压}}
+
+
+
+
+
+
+ {{scope.row.暗点不合格.含}}
+ 0
+
+
+
+
+ {{((scope.row.暗点不合格.含/scope.row.总切片数)*100).toFixed(2) }}%
+ 0%
+
+
+
+
+ {{scope.row['放大率¢16mm不合格'].含}}
+ 0
+
+
+
+
+ {{((scope.row['放大率¢16mm不合格'].含/scope.row.总切片数)*100).toFixed(2) }}%
+ 0%
+
+
+
+
+
+
@@ -404,7 +456,15 @@ export default {
let that = this;
let params = {};
params.query = that.query;
- that.$API.bi.dataset.exec.req('product_defect_equip_bdgy', params).then((res) => {
+ let biStr = '';
+ if(that.activeName=='luhao'){
+ biStr = 'product_defect_equip_bdgy';
+ params.query.select_cols = ",ls.板段编号列表,ls.切片编号列表";
+ }else if(that.activeName=='muju'){
+ biStr = 'product_defect_model';
+ params.query.select_cols = "";
+ }
+ that.$API.bi.dataset.exec.req(biStr, params).then((res) => {
let data = res.data2.ds0;
data.forEach(item=>{
if(item.缺陷分布!==null){
@@ -414,36 +474,49 @@ export default {
}
}
})
- that.tableData = data;
- that.showTable=true;
+ that.$nextTick(() => {
+ that.tableData = data;
+ that.showTable=true;
+ })
});
},
handleQuery1(){
let that = this;
- let querys = [[{field:"wm",value:false,compare:"isnull"},{field:"data__has_key",compare:"",value:"装炉压板出炉_批次号"}]];
- let obj = {},obj1 = {},obj2 = {},obj3 = {};
+ let querys1 = [[{field:"wm",value:false,compare:"isnull"},{field:"data__has_key",compare:"",value:"装炉压板出炉_批次号"}]];
+ let obj = {},obj1 = {},obj2 = {};
obj.field = 'data__装炉压板出炉_批次号';
- obj.value = that.query.number_contains;
+ obj.value = that.query1.number_contains;
obj.compare = '';
obj1.field = 'data__装炉压板出炉_日期';
- obj1.value = that.query.time_gte;
+ obj1.value = that.query1.time_gte;
obj1.compare = 'gte';
obj2.field = 'data__装炉压板出炉_日期';
- obj2.value = that.query.time_lte;
+ obj2.value = that.query1.time_lte;
obj2.compare = 'lte';
- if(that.query.number_contains!==''&&that.query.number_contains!==null){
- querys[0].push(obj);
+ if(that.query1.number_contains!==''&&that.query1.number_contains!==null){
+ querys1[0].push(obj);
}
- if(that.query.time_gte!==''&&that.query.time_gte!==null){
- querys[0].push(obj1);
+ if(that.query1.time_gte!==''&&that.query1.time_gte!==null){
+ querys1[0].push(obj1);
}
- if(that.query.time_lte!==''&&that.query.time_lte!==null){
- querys[0].push(obj2);
+ if(that.query1.time_lte!==''&&that.query1.time_lte!==null){
+ querys1[0].push(obj2);
}
- that.params.querys = querys;
- this.$refs.table.queryData(that.params);
+ that.params1.querys = querys1;
+ that.$nextTick(() => {
+ if(that.activeName=='product'){
+ this.$refs.table1.queryData(that.params1);
+ }else if(that.activeName=='test'){
+ this.$refs.table2.queryData(that.params1);
+ }
+ });
+
+ },
+ handleQuery(){
+ let that = this;
+ that.getData();
},
deptChange(){
this.getData();
@@ -452,12 +525,10 @@ export default {
return row.物料名 == value;
},
handleClick(e){
- console.log('e.props.name',e.props.name)
- this.query1.time_gte = '';
- this.query1.time_lte = '';
- this.query1.number_contains = '';
+ console.log('e.props.name',e.props.name);
+ this.activeName = e.props.name;
this.showTable=false;
- if(e.props.name=='luhao'){
+ if(e.props.name=='luhao'||e.props.name=='muju'){
this.getData();
}
},
@@ -467,10 +538,6 @@ export default {
that.visible = true;
that.detailRow = row.切片编号列表;
},
- handleQuery(){
- let that = this;
- that.getData();
- },
},
};