Commit 388b6143 authored by tanjunxin's avatar tanjunxin

fix: 保密发料单粒子重量计算保留3位小数

parent eb62546d
......@@ -86,7 +86,7 @@
</el-table-column>
<el-table-column label="粒子重量(KG)" align="center" prop="particleCoefficient">
<template slot-scope="scope">
<span>{{ scope.row.particleCoefficient ? scope.row.quantity * scope.row.particleCoefficient : 0 }}</span>
<span>{{ scope.row.particleCoefficient ? (scope.row.quantity * scope.row.particleCoefficient > 0 ? (scope.row.quantity * scope.row.particleCoefficient).toFixed(3) : 0) : 0 }}</span>
</template>
</el-table-column>
<el-table-column label="需求日期" align="center" prop="requestDate" width="180">
......@@ -373,7 +373,7 @@ export default {
return prev + 0
}
}, 0)
sums[index] = Number.isInteger(temp) ? temp : temp.toFixed(6);
sums[index] = Number.isInteger(temp) ? temp : temp.toFixed(3);
} else {
sums[index] = ''
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment