diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index 44f99509..68894eb0 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -21,11 +21,12 @@ *请扫同一批次的物料码 @@ -239,6 +240,7 @@ export default { }; }, mounted() { + let that = this; this.route_code = this.$route.path.split("/")[2]; this.form.handle_date = this.$TOOL.dateFormat2(new Date()); this.form.work_start_time = this.$TOOL.dateFormat(new Date()); @@ -247,6 +249,18 @@ export default { this.getRoute(); this.getEquipment(); this.gettestitem(); + setTimeout(()=>{ + let inputDom = document.querySelectorAll('.inputWrap .el-input__wrapper .el-input__inner'); + console.log(inputDom); + inputDom.forEach(function(input) { + input.addEventListener("compositionstart", function() { + // that.$confirm(`您的输入法为中文,请切换到英文输入法`, "提示", { + // type: "warning", + // }).then(() => {}); + that.$message.warning("您的输入法为中文,请切换到英文输入法"); + }); + }); + },500) }, methods: { //获取工艺步骤