This commit is contained in:
lixuan
2023-02-27 09:20:14 +08:00
parent 920a9c3d28
commit cba8576e30
4 changed files with 37 additions and 11 deletions

View File

@@ -106,7 +106,7 @@
minWidth="180"
>
<template slot-scope="{ row }">
<span>{{ row.actQuantity?row.actQuantity:'--' }} / {{ row.preQuantity?row.preQuantity:'--' }} </span>
<span>{{ row.actQuantity|toNumberFixed }} / {{ row.preQuantity|toNumberFixed }} {{row.productMeasurement}}</span>
</template>
</el-table-column>
@@ -116,7 +116,7 @@
minWidth="180"
>
<template slot-scope="{ row }">
<span>{{ row.actAmount?row.actAmount:'--' }} / {{ row.preAmount?row.preAmount:'--' }} </span>
<span>{{ row.actAmount|toNumberFixed}} / {{ row.preAmount|toNumberFixed }} </span>
</template>
</el-table-column>
<el-table-column label="时间" minWidth="235">
@@ -204,6 +204,13 @@ import autocomplete from "components/autocomplete/index.vue";
import billOfLading from "./components/billOfLading.vue";
export default {
filters:{
toNumberFixed(val){
if(val){
return Number(val).toFixed(2)
}else{return '--'}
}
},
data() {
return {
controlWindows: {