|
@@ -65,7 +65,13 @@
|
|
|
>
|
|
|
<template slot-scope="scope">{{ scope.row.group + 1 }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="settlementMonth" label="结算月" sortable>
|
|
|
+ <el-table-column
|
|
|
+ prop="balanceMonth"
|
|
|
+ label="结算月"
|
|
|
+ sortable
|
|
|
+ :filter-method="filterTag"
|
|
|
+ :filters="banlanceMonthList"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="deliveryPort" label="放货港口">
|
|
|
</el-table-column>
|
|
@@ -227,6 +233,57 @@ export default {
|
|
|
'装船干基重',
|
|
|
'到厂干基重',
|
|
|
'还原后到厂干基'
|
|
|
+ ],
|
|
|
+ banlanceMonthList: [
|
|
|
+ {
|
|
|
+ text: '01月',
|
|
|
+ value: '01月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '02月',
|
|
|
+ value: '02月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '03月',
|
|
|
+ value: '03月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '04月',
|
|
|
+ value: '04月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '05月',
|
|
|
+ value: '05月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '06月',
|
|
|
+ value: '06月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '07月',
|
|
|
+ value: '07月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '08月',
|
|
|
+ value: '08月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '09月',
|
|
|
+ value: '09月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '10月',
|
|
|
+ value: '10月'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '11月',
|
|
|
+ value: '11月'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ text: '12月',
|
|
|
+ value: '12月'
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -242,6 +299,9 @@ export default {
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
+ filterTag(value, row) {
|
|
|
+ return row.balanceMonth === value
|
|
|
+ },
|
|
|
//处理表格数据
|
|
|
computedTableData(data) {
|
|
|
data.forEach((item, index) => {
|