fix:玻纤采购入库编号问题
This commit is contained in:
parent
e3a810ebd4
commit
d305d8a391
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue