【修改】修改撤销的位置

This commit is contained in:
fengachen
2022-09-16 10:51:22 +08:00
parent fedc1622cc
commit fb6c196a61
2 changed files with 31 additions and 26 deletions
@@ -157,8 +157,6 @@
<a @click="incomePayment(record)"
v-has="'incomePaymentAndInvoiving:incomePayment'"
:disabled="record.projectType === 3 && record.registerCheckResult === '0'">来款</a>
<!--证书项目 与会员项目没有撤销功能-->
<a @click="handleRevoke(record)" v-has=" 'incomePaymentAndInvoiving:revoke' " v-if=" !(record.projectType === 5 || record.projectType === 6) ">撤销</a>
<a @click="invoicing(record)" :disabled="record.needInvoice === 0"
v-has="'incomePaymentAndInvoiving:invoicing'">开票</a>
<!-- 确认收入项目--- 普通项目工作组项目资料网员 项目 可以确认收入 报名状态是 待审核的时候 不能确认收入-->
@@ -230,7 +228,7 @@ 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, revokeIncome} from '../../../api/incomePaymentsApi'
import {getPayConfirmList} from '../../../api/incomePaymentsApi'
import JDictSelectTag from '@comp/dict/JDictSelectTag'
// 项目类型 数据字典 的定义 和数据库的保持一致
@@ -372,7 +370,7 @@ export default {
dataIndex: 'action',
align: 'center',
fixed: 'right',
width: 300,
width: 250,
scopedSlots: {customRender: 'action'}
}
],
@@ -409,27 +407,6 @@ 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
@@ -13,6 +13,8 @@
<div class="title">
<div class="title-text">{{ item.chinaNumIndex }}阶段</div>
<img src="../../../../assets/imgs/icon/icon_edit.png" @click="handleEdit(item)" v-if="!(item.proof && item.proof !== '')">
<!--证书项目 与会员项目没有撤销功能-->
<span class="revoke" @click="handleRevoke(item)" v-has=" 'incomePaymentAndInvoiving:revoke' " v-if=" !(projectType === 5 || projectType === 6) ">撤销</span>
</div>
<a-row>
<a-col :span="12">
@@ -72,7 +74,7 @@
<script>
import ArriveModule from './ArriveModule'
import { amountReceivedList } from '../../../../api/incomePaymentsApi'
import {amountReceivedList, revokeIncome} from '../../../../api/incomePaymentsApi'
import PreviewImgModal from '../../../../components/PreviewImgModal'
import PreviewFile from '../../../../components/jero/PreviewFile.vue'
@@ -116,6 +118,27 @@ export default {
}
},
methods: {
/**
* 撤销
* */
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)
}
})
}
})
},
handleAdd() {
this.$refs.arriveModal.title = '添加阶段'
this.$refs.arriveModal.add()
@@ -205,6 +228,11 @@ export default {
.stage-box {
padding-bottom: 10px;
}
.revoke {
color: #069f99;
user-select: none;
margin-left: 8px;
}
.title {
display: flex;