diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index eaaca5f1..5fdcc11e 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -447,7 +447,9 @@ export default { watch: {}, mounted() { let that = this; - that.test_file_name = that.test_file.split("/")[that.test_file.split("/").length-1]; + if(that.test_file!==''&&that.test_file!==null){ + that.test_file_name = that.test_file.split("/")[that.test_file.split("/").length-1]; + } that.route_code = that.$route.path.split("/")[2]; that.currentDate = that.$TOOL.dateFormat2(new Date()); that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code; @@ -461,7 +463,7 @@ export default { if(that.qct!==''&&that.qct!==null){//输出 that.getdefects(); }else{ - if(that.material_in!==''&&that.material_in!==null){//输入 + if(that.route_code=='niuzhuan'&&that.material_in!==''&&that.material_in!==null){//输入 if(that.route_code=='chengpingfanxiu'){ that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'fix' }).then((res) => { that.qctId = res.id;