fix:玻纤原料入库时form表单修改数字后没有删除原来的编码
This commit is contained in:
parent
20957213a4
commit
770edefcb9
|
@ -453,16 +453,26 @@ export default {
|
||||||
},
|
},
|
||||||
countChange(){
|
countChange(){
|
||||||
if(this.project_code=='bxerp'){
|
if(this.project_code=='bxerp'){
|
||||||
|
let numbers = this.mioitems[0];
|
||||||
if(this.form.count>this.mioitems.length){
|
if(this.form.count>this.mioitems.length){
|
||||||
let count = this.form.count-this.mioitems.length;
|
this.mioitems = [];
|
||||||
for(let i=0;i<count;i++){
|
for(let i=0;i<this.form.count;i++){
|
||||||
this.mioitems.push('');
|
if(numbers!=''&&numbers!=null&&numbers!=undefined){
|
||||||
|
this.mioitems[i] = Number(numbers)+i;
|
||||||
|
}else{
|
||||||
|
this.mioitems[i] = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else if(this.form.count<this.mioitems.length){
|
||||||
|
this.mioitems = [];
|
||||||
|
for(let i=0;i<this.form.count;i++){
|
||||||
|
if(numbers!=''&&numbers!=null&&numbers!=undefined){
|
||||||
|
this.mioitems[i] = Number(numbers)+i;
|
||||||
|
}else{
|
||||||
|
this.mioitems[i] = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
this.mioitems.slice(this.form.count);
|
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
firstNumberChange(){
|
firstNumberChange(){
|
||||||
|
@ -499,8 +509,7 @@ export default {
|
||||||
this.form.mioitemw = mioitemw;
|
this.form.mioitemw = mioitemw;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
var res;
|
let res;
|
||||||
console.log(this.form);
|
|
||||||
if (this.mode == "add") {
|
if (this.mode == "add") {
|
||||||
res = await this.$API.inm.mioitem.create.req(
|
res = await this.$API.inm.mioitem.create.req(
|
||||||
this.form
|
this.form
|
||||||
|
|
Loading…
Reference in New Issue