fix:玻纤扫码时输入法提示
This commit is contained in:
parent
f28fa85ff3
commit
4bdb9db361
|
@ -21,11 +21,12 @@
|
|||
<el-col>
|
||||
<el-form-item label="扫码:">
|
||||
<el-input
|
||||
class="inputWrap"
|
||||
ref="codeInput"
|
||||
v-model="wm_in"
|
||||
clearable
|
||||
@change="formWminChange(wm_in)"
|
||||
style="width: 100%;top: -7px;"
|
||||
style="width: 100%;top: -7px;ime-mode:active"
|
||||
></el-input>
|
||||
<span style="color: red;line-height: 12px;font-size: 14px;">*请扫同一批次的物料码</span>
|
||||
</el-form-item>
|
||||
|
@ -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: {
|
||||
//获取工艺步骤
|
||||
|
|
Loading…
Reference in New Issue