【update】-增加 撤销开票 撤销确认收入的功能
This commit is contained in:
@@ -126,6 +126,12 @@ const addPayConfirm = (param) => postAction('/payConfirmPaymentRecord/add', para
|
||||
const editPayConfirm = (param) => postAction('/payConfirmPaymentRecord/edit', param)
|
||||
|
||||
|
||||
// 撤销开票 todo
|
||||
const revokeInvoice = (params) => postAction(`/paymentRecord/payPaymentRecord/revoke?id=${params}`)
|
||||
// 撤销确认来款信息 todo
|
||||
const revokeConfirm = (params) => postAction(`/paymentRecord/payPaymentRecord/revoke?id=${params}`)
|
||||
|
||||
|
||||
//2023-07-13 工作组相关功能的接口
|
||||
// 判断当前节点 是否可以发邮件
|
||||
const judgeEmailStatus = (param) => getAction('/sys/message/sysMessageTemplate/queryByCode', param)
|
||||
@@ -196,6 +202,9 @@ export {
|
||||
addPayConfirm,
|
||||
editPayConfirm,
|
||||
|
||||
revokeInvoice,
|
||||
revokeConfirm,
|
||||
|
||||
|
||||
judgeEmailStatus
|
||||
}
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
<div class="title">
|
||||
<div class="title-text">第{{ item.chinaNumIndex }}阶段</div>
|
||||
<img src="../../../../assets/imgs/icon/icon_edit.png" @click="handleEdit(item)">
|
||||
<!--证书项目 与会员项目没有撤销功能-->
|
||||
<span class="revoke" @click="handleRevoke(item)" v-has="'incomePaymentAndInvoicing:revokeConfirm'" v-if=" !(projectType === 5 || projectType === 6) ">撤销</span>
|
||||
|
||||
</div>
|
||||
<a-row>
|
||||
<a-col :span="6">
|
||||
@@ -75,7 +78,7 @@
|
||||
|
||||
<script>
|
||||
import ConfirmModule from './ConfirmModule'
|
||||
import {getPayConfirmList} from '../../../../api/incomePaymentsApi'
|
||||
import { getPayConfirmList, revokeConfirm } from "../../../../api/incomePaymentsApi";
|
||||
import {ajaxGetDictItems} from '@api/api'
|
||||
|
||||
export default {
|
||||
@@ -89,6 +92,12 @@ export default {
|
||||
required: false,
|
||||
default: null
|
||||
},
|
||||
// 项目类型,标协会员、证书项目不可来款,来款的添加阶段按钮隐藏
|
||||
projectType: {
|
||||
type: [Number, String],
|
||||
required: false,
|
||||
default: null
|
||||
},
|
||||
// 弹窗显隐
|
||||
visible: {
|
||||
type: Boolean,
|
||||
@@ -153,6 +162,26 @@ export default {
|
||||
this.$refs.confirmModal.title = '编辑阶段'
|
||||
this.$refs.confirmModal.edit(record, this.projectInfo)
|
||||
},
|
||||
/**
|
||||
* 撤销
|
||||
* */
|
||||
handleRevoke(record) {
|
||||
let that = this
|
||||
this.$confirm({
|
||||
title: '确认撤销',
|
||||
content: '确定要撤销确认收入吗?',
|
||||
onOk: function () {
|
||||
revokeConfirm(record.id).then(res => {
|
||||
if (res.success) {
|
||||
that.$message.success(res.message)
|
||||
that.loadData()
|
||||
} else {
|
||||
that.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
this.close()
|
||||
},
|
||||
@@ -218,6 +247,12 @@ export default {
|
||||
.stage-box {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.revoke {
|
||||
color: #069f99;
|
||||
user-select: none;
|
||||
margin-left: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.title {
|
||||
display: flex;
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
<div class="title">
|
||||
<div class="title-text">第{{ item.chinaNumIndex }}阶段</div>
|
||||
<img src="../../../../assets/imgs/icon/icon_edit.png" @click="handleEdit(item)">
|
||||
<!--证书项目 与会员项目没有撤销功能-->
|
||||
<span class="revoke" @click="handleRevoke(item)" v-has="'incomePaymentAndInvoicing:revokeInvoice'" v-if=" !(projectType === 5 || projectType === 6) ">撤销</span>
|
||||
|
||||
</div>
|
||||
<a-row>
|
||||
<a-col :span="6">
|
||||
@@ -88,7 +91,7 @@
|
||||
|
||||
<script>
|
||||
import InvoicingModule from './InvoicingModule'
|
||||
import { payBillList } from '../../../../api/incomePaymentsApi'
|
||||
import { payBillList, revokeInvoice } from '../../../../api/incomePaymentsApi'
|
||||
import {ajaxGetDictItems} from '@api/api'
|
||||
|
||||
export default {
|
||||
@@ -102,6 +105,12 @@ export default {
|
||||
required: false,
|
||||
default: null
|
||||
},
|
||||
// 项目类型,标协会员、证书项目不可来款,来款的添加阶段按钮隐藏
|
||||
projectType: {
|
||||
type: [Number, String],
|
||||
required: false,
|
||||
default: null
|
||||
},
|
||||
// 弹窗显隐
|
||||
visible: {
|
||||
type: Boolean,
|
||||
@@ -160,6 +169,26 @@ export default {
|
||||
this.$refs.invoicingModal.title = '编辑阶段'
|
||||
this.$refs.invoicingModal.edit(record)
|
||||
},
|
||||
/**
|
||||
* 撤销
|
||||
* */
|
||||
handleRevoke(record) {
|
||||
let that = this
|
||||
this.$confirm({
|
||||
title: '确认撤销',
|
||||
content: '确定要撤销开票吗?',
|
||||
onOk: function () {
|
||||
revokeInvoice(record.id).then(res => {
|
||||
if (res.success) {
|
||||
that.$message.success(res.message)
|
||||
that.loadData()
|
||||
} else {
|
||||
that.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
this.close()
|
||||
},
|
||||
@@ -226,6 +255,13 @@ export default {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.revoke {
|
||||
color: #069f99;
|
||||
user-select: none;
|
||||
margin-left: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user