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