{{ item.batch }}({{ item.material_name }})
{{ item.defect_name }}
@@ -243,11 +238,9 @@ export default {
},
],
},
- // cells:0,//层数
batch_count:null,
- // count_cell:0,//每层数量
- // cell_start:1,//开始层数
codeBatch:"",
+ materialFix:"",
options: [],
cellsList:[],
qct_defects:[],
@@ -271,8 +264,9 @@ export default {
}else{
that.getMaterial();
}
- this.getdefects();
- // this.getMtask();
+ if(that.is_fix){}else{
+ this.getdefects();
+ }
},
methods: {
open(mode="add",data) {
@@ -299,8 +293,10 @@ export default {
obj.mtaskx =that.form.mtask;
obj.mgroup = that.mgroup;
obj.page =0;
- if(that.is_fix){
- obj.state =30;
+ if(that.is_fix){//来料未完成的返修品&&出料已完成的返修品和不合格品
+ params.tag = 'canfix';
+ // obj.state = 20;
+ // obj.state =30;
}else{
obj.material =that.materialIn;
obj.state =10;
@@ -325,7 +321,8 @@ export default {
},
getdefects(){
let that = this;
- that.$API.qm.qct.getQct.req({material: that.materialIn,tag:'process'}).then((res) => {
+ let material = that.is_fix?that.materialFix:that.materialIn;
+ that.$API.qm.qct.getQct.req({material: material,tag:'process'}).then((res) => {
res.qct_defects.forEach((item) => {
that.defectform[item.defect_name] = 0;
})
@@ -350,6 +347,8 @@ export default {
that.form.batch = item.batch;
that.form.count_use = item.count;
that.batch_count = item.count;
+ that.materialFix = item.material;
+ that.getdefects();
}
});
},