diff --git a/src/api/incomePaymentsApi.js b/src/api/incomePaymentsApi.js
index 714185c..b2893a5 100644
--- a/src/api/incomePaymentsApi.js
+++ b/src/api/incomePaymentsApi.js
@@ -116,7 +116,8 @@ const incomingUpdatePayment = (param) => postAction('/member/tbMemberProjectSubi
// 更新会员系统 证书缴费的发票信息
const incomingUpdateCertificate = (param) => postAction('/member/tbCertificatePayment/incomingUpdateCertificate', param)
-
+// 撤销来款
+const revokeIncome = (params) => postAction(`/paymentRecord/payPaymentRecord/revoke?id=${params}`)
// 确认来款- 查询当前项目是否有来款信息
const getPayConfirmList = (param) => getAction('/payConfirmPaymentRecord/list', param)
// 新增一个确认来款信息
@@ -150,6 +151,7 @@ export {
getPackCompanyById,
addPackProject,
removePackProject,
+ revokeIncome,
batchRemovePackProject,
aduitCompany,
checkContactByCompany,
diff --git a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue
index 4618fd0..19148ed 100644
--- a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue
+++ b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue
@@ -60,7 +60,8 @@
- >
+
+ >
-
+
@@ -155,10 +157,12 @@
来款
+
+ 撤销
开票
- 确认收入
+ 确认收入
@@ -226,8 +230,8 @@ import AuditProofModule from './modules/AuditProofModule'
// import AuditProofModule from "@views/financialManagement/arriveAndInvoicing/modules/AuditProofModule";
import AuditModal from '@views/incomePayments/meetManage/modules/AuditModal'
import ConfirmStageModule from './modules/ConfirmStageModule'
-import {getPayConfirmList} from '../../../api/incomePaymentsApi'
-import JDictSelectTag from "@comp/dict/JDictSelectTag";
+import {getPayConfirmList, revokeIncome} from '../../../api/incomePaymentsApi'
+import JDictSelectTag from '@comp/dict/JDictSelectTag'
// 项目类型 数据字典 的定义 和数据库的保持一致
const ProjectTypeEnums = {
@@ -368,13 +372,13 @@ export default {
dataIndex: 'action',
align: 'center',
fixed: 'right',
- width: 250,
+ width: 300,
scopedSlots: {customRender: 'action'}
}
],
url: {
list: '/paymentRecord/payPaymentRecord/mainList',
- exportXlsUrl: '/paymentRecord/payPaymentRecord/exportXls'
+ exportXlsUrl: '/paymentRecord/payPaymentRecord/exportXls',
},
selectProjectId: null, // 选中项目id
selectProjectType: null, // 选中项目类型
@@ -405,6 +409,27 @@ export default {
this.selectNeedInvoice = record.needInvoice
this.arriveVisible = true
},
+ /**
+ * 撤销
+ * */
+ handleRevoke(record) {
+ console.log('撤销')
+ let that = this
+ this.$confirm({
+ title: '确认撤销',
+ content: '确定要撤销来款吗?',
+ onOk: function () {
+ revokeIncome(record.id).then(res => {
+ if (res.success) {
+ that.$message.success(res.message)
+ that.loadData()
+ } else {
+ that.$message.warning(res.message)
+ }
+ })
+ }
+ })
+ },
/**
* 开票
* @param record
@@ -513,9 +538,9 @@ export default {
this.meetingType = record.meetingType
this.situationId = record.situationId
let params = {
- meetingType:record.meetingType,
- situationId:record.situationId,
- type:'kp'
+ meetingType: record.meetingType,
+ situationId: record.situationId,
+ type: 'kp'
}
this.$refs.auditModal.title = '审核凭证'
this.$refs.auditModal.open(params, false)