🔥 移除合规对账功能

This commit is contained in:
刘泉佳
2026-10-11 16:27:09 +08:00
parent ef1a43f947
commit 8640238cbe
5 changed files with 4 additions and 233 deletions
+2 -25
View File
@@ -146,19 +146,10 @@
>
{{ hcsRepushingId === row.id ? '推送中…' : '推送合规' }}
</el-link>
<el-link v-if="canHcsRecon(row)" type="info" @click="openHcsRecon(row)">
合规对账
</el-link>
<el-link type="danger" v-if="canDelete(row)" @click="rowDel(row)"> 删除 </el-link>
</template>
</avue-crud>
<hcs-recon-dialog
v-model="hcsReconVisible"
title="项目立项合规对账"
:loader="hcsReconLoader"
/>
<empty-pagination
v-if="!isProjectFormPage"
:page="page"
@@ -929,7 +920,7 @@
import { exportBlob } from '@/api/common';
import { defineAsyncComponent } from 'vue';
import * as api from '@/api/business/project-apply';
import { repush as hcsRepush, reconProject } from '@/api/business/hcs';
import { repush as hcsRepush } from '@/api/business/hcs';
import { getMkPublicDetail } from '@/api/mk-process';
import {
getList as getCustomerArchiveList,
@@ -1070,7 +1061,6 @@ export default {
name: 'ProjectApply',
components: {
CustomerArchive: defineAsyncComponent(() => import('@/views/vehicle/customer-archive.vue')),
HcsReconDialog: defineAsyncComponent(() => import('./components/hcs-recon-dialog.vue')),
ChangeRecordDetailDialog,
ElImageViewer,
OpenFileViewer,
@@ -1136,10 +1126,8 @@ export default {
{ label: '高风险', value: 'high', statKey: 'high' },
{ label: '中风险', value: 'medium', statKey: 'medium' },
],
// 合规(HCS)推送/对账状态
// 合规(HCS)推送状态
hcsRepushingId: null,
hcsReconVisible: false,
hcsReconLoader: null,
page: {
pageSize: 10,
pageSizes: [10, 20, 50, 100],
@@ -1625,9 +1613,6 @@ export default {
row.hcsSyncStatus !== 'synced'
);
},
canHcsRecon(row) {
return ['approved', 'change_approved'].includes(row.approvalStatus);
},
handleHcsRepush(row) {
if (this.hcsRepushingId) return;
this.$confirm('确定推送该数据到合同合规系统?', '提示', {
@@ -1653,14 +1638,6 @@ export default {
});
});
},
openHcsRecon(row) {
if (!row.projectCode) {
this.$message.warning('该项目无项目编号,无法对账');
return;
}
this.hcsReconLoader = () => reconProject(row.projectCode);
this.hcsReconVisible = true;
},
canOperation(operation, row) {
const permission = operation.permission || `${this.config.permission}_${operation.action}`;
if (!this.hasPermission(permission) || this.readonlyScope || row.readonly) return false;