fix:玻纤扫码时输入法提示

This commit is contained in:
shijing 2025-08-22 16:51:52 +08:00
parent f28fa85ff3
commit 4bdb9db361
1 changed files with 15 additions and 1 deletions

View File

@ -21,11 +21,12 @@
<el-col> <el-col>
<el-form-item label="扫码:"> <el-form-item label="扫码:">
<el-input <el-input
class="inputWrap"
ref="codeInput" ref="codeInput"
v-model="wm_in" v-model="wm_in"
clearable clearable
@change="formWminChange(wm_in)" @change="formWminChange(wm_in)"
style="width: 100%;top: -7px;" style="width: 100%;top: -7px;ime-mode:active"
></el-input> ></el-input>
<span style="color: red;line-height: 12px;font-size: 14px;">*请扫同一批次的物料码</span> <span style="color: red;line-height: 12px;font-size: 14px;">*请扫同一批次的物料码</span>
</el-form-item> </el-form-item>
@ -239,6 +240,7 @@ export default {
}; };
}, },
mounted() { mounted() {
let that = this;
this.route_code = this.$route.path.split("/")[2]; this.route_code = this.$route.path.split("/")[2];
this.form.handle_date = this.$TOOL.dateFormat2(new Date()); this.form.handle_date = this.$TOOL.dateFormat2(new Date());
this.form.work_start_time = this.$TOOL.dateFormat(new Date()); this.form.work_start_time = this.$TOOL.dateFormat(new Date());
@ -247,6 +249,18 @@ export default {
this.getRoute(); this.getRoute();
this.getEquipment(); this.getEquipment();
this.gettestitem(); 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: { methods: {
// //