feat: 正式结算单展示调整标识与重推入口

This commit is contained in:
刘泉佳
2026-10-16 19:47:08 +08:00
parent 4d3b6cdaed
commit baec42f876
3 changed files with 37 additions and 0 deletions
@@ -639,6 +639,22 @@
<el-table-column prop="createTime" label="创建时间" min-width="170" align="center">
<template #default="{ row }">{{ displayValue(row.createTime) }}</template>
</el-table-column>
<el-table-column
v-if="hasPermission('settlement_adjustment_repush')"
label="操作"
width="120"
align="center"
>
<template #default="{ row }">
<el-link
v-if="row.approvalStatus === 'approved' && row.kingdeeSyncStatus === 'synced'"
type="danger"
@click="handleAdjustmentRepush(row)"
>重新推送</el-link
>
<span v-else>-</span>
</template>
</el-table-column>
</el-table>
</section-card>
@@ -1048,6 +1064,7 @@ import KingdeeInvoicePoolDialog from '@/components/kingdee-invoice-pool-dialog/m
import ProjectAdvanceWriteOff from './project-advance-write-off.vue';
import * as XLSX from 'xlsx';
import { isAdministrator } from '@/utils/auth';
import * as settlementAdjustmentApi from '@/api/settlement/settlementAdjustment';
// 结算币种为本位币(人民币)时汇率恒为1,汇率日期、结算汇率与按汇率换算的本位币合计都不展示
const LOCAL_CURRENCY_HIDDEN_FIELDS = ['exchangeRateDate', 'exchangeRate', 'localSettlementAmount'];
@@ -1316,6 +1333,17 @@ export default {
hasPermission(code) {
return this.isAdmin || this.validData(this.permission?.[code], false);
},
async handleAdjustmentRepush(row) {
await this.$confirm(
'请确认金蝶旧应付/应收单已由财务手工冲销,继续将生成全新财务应付/应收单。',
'高危操作确认',
{ type: 'warning', confirmButtonText: '确认重新推送' }
);
const res = await settlementAdjustmentApi.repush(row.id);
this.$message.success(`已生成新金蝶单据:${res.data?.data || res.data || '-'}`);
await this.loadFormalDetail(this.recordId);
this.$emit('success');
},
async loadFormalDetail(id) {
const response = this.publicMode
? await getMkPublicDetail('formal-settlement', id)