fix:禅道177

This commit is contained in:
shijing 2025-11-20 10:25:51 +08:00
parent e673838e36
commit 2a839d0803
1 changed files with 6 additions and 1 deletions

View File

@ -82,6 +82,7 @@
<el-col v-if="form.type == 'pur_in'||form.type == 'pur_out'||form.type == 'other_in'||form.type == 'do_out'||form.type=='sale_out'||form.type=='other_out'||form.type=='pur_out'||form.type=='borrow_out'">
<el-form-item label="仓库已有批次">
<el-select
ref="selectRef"
v-model="selectBatch"
value-key="id"
clearable
@ -362,11 +363,12 @@ export default {
},
inputChange(e){
console.log('e',e);
let that = this;
if(e!==''&&e!==null&&e!==undefined){
let codeId = e.split('#')[1];
this.$API.cm.labelmat.item.req(codeId).then((res) => {
if(res){
arr = that.batchOptions.filter((item) => {
let arr = that.batchOptions.filter((item) => {
return item.batch == res.batch&&item.state==res.state;
})
if (arr.length > 0) {
@ -377,6 +379,9 @@ export default {
that.form.count = Number(arr[0].count_canmio);
that.form.warehouse = arr[0].warehouse;
that.inputBatchDisable = true;
setTimeout(() => {
options.value = res.batch;
}, 200)
}else{
that.selectBatch = '';
that.$message.error("批次号不存在");