From 20dddf2b565be4b951b1816e5da0cfe608e2d0bb Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Fri, 17 Oct 2025 10:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E8=B4=A6=E6=92=A4=E9=94=80=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/emis/emisSettleCancelAccount.js | 16 ++++++++- .../CancelAccountApplicationListPanel.vue | 3 +- .../panel/CancelAccountCheckListPanel.vue | 34 +++++++++++++++++-- 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/src/api/emis/emisSettleCancelAccount.js b/src/api/emis/emisSettleCancelAccount.js index b578ac47..6d447192 100644 --- a/src/api/emis/emisSettleCancelAccount.js +++ b/src/api/emis/emisSettleCancelAccount.js @@ -90,4 +90,18 @@ export function revoke(ids) { method: 'post', data: ids }) -} \ No newline at end of file +} +// 财务中心审核撤销 +export function auditCenterRevoke(ids) { + return request({ + url: '/emis/writeoffApply/auditCenterRevoke/' + ids, + method: 'post', + }) +} +//总部确认撤销 +export function auditHeadquartersRevoke(ids) { + return request({ + url: '/emis/writeoffApply/auditHeadquartersRevoke/' + ids, + method: 'post', + }) +} diff --git a/src/views/emis/emisSettleBill/panel/CancelAccountApplicationListPanel.vue b/src/views/emis/emisSettleBill/panel/CancelAccountApplicationListPanel.vue index e30b95cc..62fb500c 100644 --- a/src/views/emis/emisSettleBill/panel/CancelAccountApplicationListPanel.vue +++ b/src/views/emis/emisSettleBill/panel/CancelAccountApplicationListPanel.vue @@ -83,10 +83,11 @@ - + + diff --git a/src/views/emis/emisSettleBill/panel/CancelAccountCheckListPanel.vue b/src/views/emis/emisSettleBill/panel/CancelAccountCheckListPanel.vue index 56b2c88d..71a7a10f 100644 --- a/src/views/emis/emisSettleBill/panel/CancelAccountCheckListPanel.vue +++ b/src/views/emis/emisSettleBill/panel/CancelAccountCheckListPanel.vue @@ -65,6 +65,10 @@ @click="handleauditHeadNoPass" v-hasPermi="['emis:writeoffApply:headquartersReject']">总部驳回 导出 + 财务中心审核撤销 + 总部确认撤销 @@ -87,10 +91,11 @@ - + + @@ -105,7 +110,7 @@ import PayeePicker from '@/views/emis/EmisBaseTools/PayeePicker.vue'; import SalemanPicker from '@/views/emis/EmisBaseTools/SalemanPicker.vue'; import EmpNamePicker from '@/views/emis/EmisBaseTools/EmpNamePicker.vue'; import CancelAccountApplicationFormPanel from '@/views/emis/emisSettleBill/panel/CancelAccountApplicationFormPanel.vue'; -import { getWriteoffApplyList, auditCenterPass, auditCenterReject, auditHeadquartersConfirm, auditHeadquartersReject } from "@/api/emis/emisSettleCancelAccount"; +import { getWriteoffApplyList, auditCenterPass, auditCenterReject, auditHeadquartersConfirm, auditHeadquartersReject, auditCenterRevoke, auditHeadquartersRevoke } from "@/api/emis/emisSettleCancelAccount"; export default { name: "CancelAccountCheckListPanel", @@ -206,7 +211,8 @@ export default { daterangeCreateTime: [], // 更新网点时间范围 daterangeUpdateTime: [], - + // 财务中心 撤销按钮 flag + coRevokeFlag: false, // 查询参数 queryParams: { pageNum: 1, @@ -288,6 +294,8 @@ export default { this.selectionList = selection; this.single = selection.length !== 1 this.multiple = !selection.length + //判断是否有 中部审核通过的 + this.coRevokeFlag = selection.some(item => item.blHeadquartersConfirmed === '1'); }, // 排序 查询字段是表格中字段名字 动态取值排序顺序 handleSortChange(column) { @@ -437,6 +445,26 @@ export default { dateTimeChange(value) { this.dateTimeRange = value; }, + /** 财务中心审核撤销 */ + handleRevoke(row) { + const ids = row.id || this.ids; + this.$modal.confirm('是否财务中心审核撤销?').then(function () { + return auditCenterRevoke(ids); + }).then(() => { + this.getList(); + this.$modal.msgSuccess("操作成功"); + }).catch(() => { }); + }, + /** 总部确认撤销 */ + handleHeadquartersRevoke(row) { + const ids = row.id || this.ids; + this.$modal.confirm('是否总部审核撤销?').then(function () { + return auditHeadquartersRevoke(ids); + }).then(() => { + this.getList(); + this.$modal.msgSuccess("操作成功"); + }).catch(() => { }); + }, } };