fix:修复交接时数量没有累加问题

This commit is contained in:
shijing 2025-05-19 13:51:39 +08:00
parent fdcd784aa9
commit 8e04078d54
1 changed files with 3 additions and 3 deletions

View File

@ -511,7 +511,7 @@ export default {
}else{ }else{
this.form.handoverb = data; this.form.handoverb = data;
data.forEach(item=>{ data.forEach(item=>{
this.totalCount += item.count_cando; this.totalCount += Number(item.count_cando);
}) })
} }
} }
@ -530,7 +530,7 @@ export default {
data.forEach(item=>{ data.forEach(item=>{
item.wm = item.id; item.wm = item.id;
item.count = item.count_cando; item.count = item.count_cando;
totalCount += item.count_cando; totalCount += Number(item.count_cando);
}) })
that.totalCount = totalCount; that.totalCount = totalCount;
that.form.handoverb = data; that.form.handoverb = data;
@ -541,7 +541,7 @@ export default {
let totalCount = 0; let totalCount = 0;
if(this.form.handoverb.length>0){ if(this.form.handoverb.length>0){
this.form.handoverb.forEach(item=>{ this.form.handoverb.forEach(item=>{
totalCount += item.count; totalCount += Number(item.count);
}) })
that.totalCount = totalCount; that.totalCount = totalCount;
} }