fix:合批时新批次号不能扫批次码,需手动录入
This commit is contained in:
parent
fa182745a3
commit
282e41809e
|
|
@ -216,7 +216,8 @@
|
|||
</el-col>
|
||||
<el-col :md="12" :sm="24" v-if="change_batch">
|
||||
<el-form-item label="新批次号" prop="new_batch">
|
||||
<el-input v-model="form.new_batch" placeholder="新批次号" :disabled="type==50"></el-input>
|
||||
<el-input v-model="form.new_batch" placeholder="新批次号" @change="new_batch(form.new_batch)" :disabled="type==50"></el-input>
|
||||
<span style="color: red;">请手动录入新批次号,不要用已有批次!</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -752,6 +753,7 @@ export default {
|
|||
this.imputDisable = false;
|
||||
this.$refs.codeInput.focus();
|
||||
},
|
||||
|
||||
async getInputText(data){
|
||||
if(data==''){
|
||||
return;
|
||||
|
|
@ -923,6 +925,14 @@ export default {
|
|||
this.countChange();
|
||||
}, 500);
|
||||
},
|
||||
new_batch(){
|
||||
let that = this;
|
||||
if(that.form.new_batch.indexOf('#')>-1){
|
||||
that.form.new_batch = '';
|
||||
that.$message.error("新批次号不能用以有批次需要手动录入新批次号!");
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue