fix:修复交接时数量没有累加问题
This commit is contained in:
parent
fdcd784aa9
commit
8e04078d54
|
@ -511,7 +511,7 @@ export default {
|
|||
}else{
|
||||
this.form.handoverb = data;
|
||||
data.forEach(item=>{
|
||||
this.totalCount += item.count_cando;
|
||||
this.totalCount += Number(item.count_cando);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -530,7 +530,7 @@ export default {
|
|||
data.forEach(item=>{
|
||||
item.wm = item.id;
|
||||
item.count = item.count_cando;
|
||||
totalCount += item.count_cando;
|
||||
totalCount += Number(item.count_cando);
|
||||
})
|
||||
that.totalCount = totalCount;
|
||||
that.form.handoverb = data;
|
||||
|
@ -541,7 +541,7 @@ export default {
|
|||
let totalCount = 0;
|
||||
if(this.form.handoverb.length>0){
|
||||
this.form.handoverb.forEach(item=>{
|
||||
totalCount += item.count;
|
||||
totalCount += Number(item.count);
|
||||
})
|
||||
that.totalCount = totalCount;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue