xiugai
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user