feat: 收款认领页直连A301-2公告同步并支持A301-1认领结果查询回写

This commit is contained in:
刘泉佳
2026-09-24 22:21:38 +08:00
parent ec56ee07be
commit 7fd8140761
5 changed files with 31 additions and 62 deletions
@@ -80,6 +80,11 @@
</section-card>
<section class="claim-record-page__table-panel">
<div class="claim-record-page__toolbar">
<el-button :loading="refreshing" @click="handleRefreshKingdeeResult">
查询金蝶认领结果
</el-button>
</div>
<el-table v-loading="loading" :data="rows" border>
<el-table-column type="index" label="序号" width="64" fixed="left" align="center" />
<el-table-column
@@ -167,6 +172,7 @@ export default {
columns: receiptClaimRecordTableColumns,
rows: [],
loading: false,
refreshing: false,
page: { current: 1, size: 10, total: 0 },
};
},
@@ -237,6 +243,16 @@ export default {
this.$message.success(`作废成功,金蝶冲单号:${kingdeeBillNo}`);
await this.loadTable();
},
async handleRefreshKingdeeResult() {
this.refreshing = true;
try {
const updated = Number(this.unwrapData(await api.queryKingdeeResult()) || 0);
this.$message.success(`金蝶认领结果回写完成,更新${updated}条`);
await this.loadTable();
} finally {
this.refreshing = false;
}
},
hasPermission(code) {
return this.isAdmin || this.validData(this.permission?.[code], false);
},
@@ -281,6 +297,13 @@ export default {
.claim-record-page__table-panel {
margin-top: 8px;
}
.claim-record-page__toolbar {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 8px;
padding: 12px 0;
}
.claim-record-page__pagination {
display: flex;
justify-content: flex-end;