|
@@ -79,9 +79,12 @@
|
|
|
<el-table-column prop="grossWeight" label="毛重(吨)">
|
|
|
<template slot-scope="scope">{{scope.grossWeight}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
|
|
|
- <el-table-column prop="weight" label="扣重(吨)"> </el-table-column>
|
|
|
- <el-table-column prop="netWeight" label="净重(吨)"> </el-table-column>
|
|
|
+ <el-table-column prop="tare" label="皮重(吨)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="weight" label="扣重(吨)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="netWeight" label="净重(吨)">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="inOutType" label="类型"> </el-table-column>
|
|
|
<el-table-column prop="addressUrl" label="磅单">
|
|
|
<template scope="scope">
|
|
@@ -485,23 +488,21 @@ export default {
|
|
|
.then((res) => {
|
|
|
for (let i = 0; i < res.records.length; i++) {
|
|
|
if (res.records[i].grossWeight) {
|
|
|
- res.records[i].grossWeight *= 1000
|
|
|
+ res.records[i].grossWeight = Number(res.records[i].grossWeight * 1000).toFixed(3)
|
|
|
}
|
|
|
if (res.records[i].tare) {
|
|
|
- res.records[i].tare *= 1000
|
|
|
+ res.records[i].tare = Number(res.records[i].tare * 1000).toFixed(3)
|
|
|
}
|
|
|
if (res.records[i].netWeight) {
|
|
|
- res.records[i].netWeight *= 1000
|
|
|
+ res.records[i].netWeight = Number(res.records[i].netWeight*1000).toFixed(3)
|
|
|
+
|
|
|
}
|
|
|
if (
|
|
|
res.records[i].grossWeight &&
|
|
|
res.records[i].tare &&
|
|
|
res.records[i].netWeight
|
|
|
) {
|
|
|
- res.records[i].weight =
|
|
|
- res.records[i].grossWeight -
|
|
|
- res.records[i].tare -
|
|
|
- res.records[i].netWeight
|
|
|
+ res.records[i].weight = Number(res.records[i].grossWeight - res.records[i].tare - res.records[i].netWeight).toFixed(3)
|
|
|
} else {
|
|
|
res.records[i].weight = null
|
|
|
}
|