序号
This commit is contained in:
@@ -112,6 +112,16 @@ class ReceivableReport extends Component {
|
||||
},
|
||||
context: {
|
||||
actionService: this.actionService // 传递 actionService 用于穿透跳转
|
||||
},
|
||||
onFilterChanged: () => {
|
||||
// 过滤后重新编号序号列
|
||||
let num = 1;
|
||||
this.grid.forEachNodeAfterFilter((node) => {
|
||||
if (node.data) {
|
||||
node.data['序号'] = num++;
|
||||
}
|
||||
});
|
||||
this.grid.refreshCells({ columns: ['序号'], force: true });
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"model": "property.accounts.receivable",
|
||||
"method": "get_complete_ledger_report",
|
||||
"columns": [
|
||||
{"headerName": "序号", "field": "序号", "width": 70, "flex": 0, "pinned": "left"},
|
||||
{"headerName": "应收开始", "field": "应收开始", "flex": 1},
|
||||
{"headerName": "应收结束", "field": "应收结束", "flex": 1},
|
||||
{"headerName": "合同编号", "field": "合同编号", "flex": 1},
|
||||
|
||||
Reference in New Issue
Block a user