fix:合批时新批次号不能扫批次码,需手动录入

This commit is contained in:
shijing 2025-11-13 15:29:23 +08:00
parent fa182745a3
commit 282e41809e
1 changed files with 11 additions and 1 deletions

View File

@ -216,7 +216,8 @@
</el-col> </el-col>
<el-col :md="12" :sm="24" v-if="change_batch"> <el-col :md="12" :sm="24" v-if="change_batch">
<el-form-item label="新批次号" prop="new_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-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -752,6 +753,7 @@ export default {
this.imputDisable = false; this.imputDisable = false;
this.$refs.codeInput.focus(); this.$refs.codeInput.focus();
}, },
async getInputText(data){ async getInputText(data){
if(data==''){ if(data==''){
return; return;
@ -923,6 +925,14 @@ export default {
this.countChange(); this.countChange();
}, 500); }, 500);
}, },
new_batch(){
let that = this;
if(that.form.new_batch.indexOf('#')>-1){
that.form.new_batch = '';
that.$message.error("新批次号不能用以有批次需要手动录入新批次号!");
}
},
}, },
}; };
</script> </script>