2/20 优化1.0

lh_dev_ksck
wangwei 5 months ago
parent 15aa8f68d5
commit 3cb008aec2

@ -21,7 +21,7 @@
<el-row> <el-row>
<el-col :span="18"> <el-col :span="18">
<el-form-item prop="fromCorp" label="单据编号:"> <el-form-item prop="fromCorp" label="单据编号:">
<el-input v-model="formData.billNo" auto-complete="off" <el-input v-model="formData.billNo" auto-complete="off" ref='inputRef'
@keypress.enter.native="orderEnterKey($event)" @keypress.enter.native="orderEnterKey($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -88,7 +88,7 @@
placeholder="请输入UDI码" placeholder="请输入UDI码"
@focus="getInputFocus($event)" @focus="getInputFocus($event)"
@keypress.enter.native="enterKey($event)" @keypress.enter.native="enterKey($event)"
ref='inputRef' ref='inputRef1'
style="ime-mode:disabled" style="ime-mode:disabled"
type="tel" type="tel"
v-model="udiCode" v-model="udiCode"
@ -216,8 +216,8 @@ export default {
} }
enterCodeWeb(tQuery).then((response) => { enterCodeWeb(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.$refs.inputRef.focus(); this.$refs.inputRef1.focus();
this.$refs.inputRef.select(); this.$refs.inputRef1.select();
this.udiCode = response.data; this.udiCode = response.data;
this.originCode = ''; this.originCode = '';
this.addCode(); this.addCode();
@ -253,8 +253,8 @@ export default {
type: 'warning', type: 'warning',
closeOnClickModal: true, closeOnClickModal: true,
callback: action => { callback: action => {
this.$refs.inputRef.focus(); this.$refs.inputRef1.focus();
this.$refs.inputRef.select(); this.$refs.inputRef1.select();
} }
}); });
} }
@ -275,7 +275,9 @@ export default {
this.formData = response.data.orderEntity; this.formData = response.data.orderEntity;
this.orderQuery = this.formData; this.orderQuery = this.formData;
this.isEntrust = response.data.entrust; this.isEntrust = response.data.entrust;
this.$refs.inputRef1.focus();
} else { } else {
this.$refs.inputRef.focus();
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -323,14 +325,14 @@ export default {
this.$message.success("匹配成功!"); this.$message.success("匹配成功!");
if (event == null) { if (event == null) {
} else event.target.select(); } else event.target.select();
this.$refs.inputRef.select(); this.$refs.inputRef1.select();
} }
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
if (event == null) { if (event == null) {
} else event.target.select(); } else event.target.select();
this.$refs.inputRef.select(); this.$refs.inputRef1.select();
} }
@ -497,8 +499,10 @@ export default {
that.udiCode = text; that.udiCode = text;
} }
}; };
inputer.focus(); // inputer.focus();
this.$refs.inputRef.focus();
}, },
created() { created() {
// this.formData = this.orderQuery; // this.formData = this.orderQuery;

Loading…
Cancel
Save