fix:玻纤采购入库编号问题

This commit is contained in:
shijing 2025-03-12 11:34:31 +08:00
parent e3a810ebd4
commit d305d8a391
1 changed files with 8 additions and 13 deletions

View File

@ -464,21 +464,19 @@ export default {
if(numbers!=''&&numbers!=null&&numbers!=undefined){ if(numbers!=''&&numbers!=null&&numbers!=undefined){
that.mioitems[i] = Number(numbers)+i; that.mioitems[i] = Number(numbers)+i;
let obj = {}; let obj = {};
obj.number = that.form.batch+'0'+(i+1); obj.number = that.mioitems[i];
that.mioitemw.push(obj); that.mioitemw.push(obj);
}else{ }else{
that.mioitems[i] = ''; that.mioitems[i] = '';
} }
} }
}else if(that.form.type == "do_out"){
for(let i=0;i<that.form.count;i++){
let obj = {};
obj.number = that.form.batch+'0'+(i+1);
that.mioitemw.push(obj);
}
} }
// else if(that.form.type == "do_out"){
// for(let i=0;i<that.form.count;i++){
// let obj = {};
// obj.number = that.form.batch+'0'+(i+1);
// that.mioitemw.push(obj);
// }
// }
} }
}, },
firstNumberChange(){ firstNumberChange(){
@ -488,13 +486,10 @@ export default {
for(let i=0;i<that.form.count;i++){ for(let i=0;i<that.form.count;i++){
that.mioitems[i] = Number(numbers)+i; that.mioitems[i] = Number(numbers)+i;
let obj = {}; let obj = {};
obj.number = that.form.batch+'0'+(i+1); obj.number = that.mioitems[i];
that.mioitemw.push(obj); that.mioitemw.push(obj);
} }
}, },
validateInput(i){
this.mioitems[i] = this.mioitems[i].replace(/\D/g, '');
},
// //
submit() { submit() {
let that = this; let that = this;