fix:返工日志检验表
This commit is contained in:
parent
33844efb7c
commit
473618307b
|
|
@ -339,6 +339,7 @@
|
|||
:dept="deptId"
|
||||
:mgroup="mgroup"
|
||||
:cutCount="cutCount"
|
||||
:material_in="materialIn"
|
||||
:material_out="mlogItem.material_out"
|
||||
:mgroupName= "mlogItem.mgroup_name"
|
||||
:isSubmit="isSubmit"
|
||||
|
|
@ -585,7 +586,6 @@ export default {
|
|||
let that = this;
|
||||
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
|
||||
that.mlogItem = res;
|
||||
that.getcutCount(res.material_in);
|
||||
that.isSubmit = res.submit_time==null?false:true;
|
||||
if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){
|
||||
that.getMlogbw();
|
||||
|
|
@ -608,16 +608,19 @@ export default {
|
|||
that.fileList = [{name:res.test_file,url:res.test_file}];
|
||||
that.form.test_file = res.test_file;
|
||||
}
|
||||
that.materialIn = res.material_in;
|
||||
that.materialIn = res.material_in!==null?res.material_in:res.mlogb_full[0]?res.mlogb_full[0].material_in:null;
|
||||
that.deptId = res.belong_dept;
|
||||
that.checkTableShow = true;
|
||||
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
||||
that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => {
|
||||
that.tableData2 = res;
|
||||
})
|
||||
that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => {
|
||||
that.route_file = res[0].document_!==null?res[0].document_.path:null;
|
||||
})
|
||||
if(!res.is_fix){
|
||||
that.getcutCount(res.material_in);
|
||||
that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => {
|
||||
that.route_file = res[0].document_!==null?res[0].document_.path:null;
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
getEquipment(){
|
||||
|
|
@ -989,7 +992,7 @@ export default {
|
|||
let that = this;
|
||||
that.printVisible = true;
|
||||
},
|
||||
//打印物料标签
|
||||
//打签
|
||||
printMaterial(row){
|
||||
let that = this;
|
||||
that.apiObjPrint.req({tid:row.id}).then((res) => {
|
||||
|
|
|
|||
|
|
@ -382,25 +382,35 @@ export default {
|
|||
watch: {},
|
||||
mounted() {
|
||||
let that = this;
|
||||
that.route_code = that.$route.path.split("/")[2];
|
||||
that.currentDate = that.$TOOL.dateFormat2(new Date());
|
||||
if(that.processType=='20'){
|
||||
that.canMultiple = true;
|
||||
}
|
||||
if(that.qct!==''&&that.qct!==null){//输出
|
||||
that.getdefects();
|
||||
}else if(that.material_out!==''&&that.material_out!==null){//输入
|
||||
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
|
||||
that.qctId = res.id;
|
||||
that.testdefectss(res);
|
||||
}).catch(()=>{
|
||||
that.getList();
|
||||
})
|
||||
}else{
|
||||
if(that.route_code=='chengpingfanxiu'&&that.material_in!==''&&that.material_in!==null){//输入
|
||||
that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'fix' }).then((res) => {
|
||||
that.qctId = res.id;
|
||||
that.testdefectss(res);
|
||||
}).catch(()=>{
|
||||
that.getList();
|
||||
})
|
||||
}else if(that.material_out!==''&&that.material_out!==null){//输入
|
||||
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
|
||||
that.qctId = res.id;
|
||||
that.testdefectss(res);
|
||||
}).catch(()=>{
|
||||
that.getList();
|
||||
})
|
||||
}
|
||||
}
|
||||
that.visible = true;
|
||||
setTimeout(() => {
|
||||
that.tableHeight = document.getElementById('mlogbwMain').clientHeight-20;
|
||||
},500)
|
||||
that.route_code = that.$route.path.split("/")[2];
|
||||
that.currentDate = that.$TOOL.dateFormat2(new Date());
|
||||
|
||||
},
|
||||
methods: {
|
||||
refreshfun(){
|
||||
|
|
@ -707,7 +717,7 @@ export default {
|
|||
let that = this;
|
||||
that.printVisible = true;
|
||||
},
|
||||
//打印物料标签
|
||||
//打签
|
||||
printMaterial(row){
|
||||
let that = this;
|
||||
that.apiObjPrint.req({tid:row.id}).then((res) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue