diff --git a/src/api/incomePaymentsApi.js b/src/api/incomePaymentsApi.js index 39232c6..69ab32d 100644 --- a/src/api/incomePaymentsApi.js +++ b/src/api/incomePaymentsApi.js @@ -22,7 +22,7 @@ const getCommitteeUnderStudyProject = (param) => getAction('/payResearchProject/ // 工作组在研项目 const getWorkingGroupUnderStudyProject = (param) => getAction('/payResearchProject/payResearchProject/list', param) // 缴费凭证审核记录 -// const getAuditRecords = (param) => getAction('/paymentCheck/payPaymentCheck/amountReceivedSubList', param) +const getAuditProofRecords = (param) => getAction('/paymentCheck/payPaymentCheck/amountReceivedSubList', param) export { queryCommonProjectById, @@ -35,5 +35,6 @@ export { getContractDetailById, getCouncilDetailById, getCommitteeUnderStudyProject, - getWorkingGroupUnderStudyProject + getWorkingGroupUnderStudyProject, + getAuditProofRecords } diff --git a/src/views/MessagePage/PaymentVoucher.vue b/src/views/MessagePage/PaymentVoucher.vue index ba89d84..c65982c 100644 --- a/src/views/MessagePage/PaymentVoucher.vue +++ b/src/views/MessagePage/PaymentVoucher.vue @@ -66,78 +66,84 @@ - 添加阶段 + 添加阶段 + +
审核信息
- - + + + +
+ @@ -155,13 +161,18 @@ import PaymentVoucherModal from '@views/MessagePage/modules/PaymentVoucherModal' import { getAction } from '@api/manage' import PreviewImgModal from '@views/MessagePage/modules/PreviewImgModal' import ProofInfoModal from '@views/MessagePage/modules/ProofInfoModal' +import { getAuditProofRecords } from '@api/incomePaymentsApi' const columns = [ { title: '阶段', - dataIndex: 'chargeProject', + dataIndex: '', + key: 'rowIndex', + width: 120, align: 'center', - scopedSlots: { customRender: 'steg' } + customRender: function (t, r, index) { + return r.paymentStatus === 'completed' ? `${ parseInt(index) + 1 }阶段` : '' + } }, { title: '缴费金额', dataIndex: 'amountReceived', @@ -213,10 +224,21 @@ export default { url: { list: '/paymentCheck/payPaymentCheck/amountReceivedList', delete: '' - } + }, + // 审核记录加载 + proofLoading: false, + // 是否可以添加阶段 + editDisabled: false } }, + created() { + this.getAuditProofList() + }, methods: { + /** + * 获取阶段信息 + * @param arg + */ loadData(arg) { if (!this.url.list) { this.$message.error('请设置url.list属性!') @@ -244,6 +266,9 @@ export default { this.ipagination.total = 0 } //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ + this.editDisabled = this.dataSource.some(tt => { + return tt.paymentStatus !== 'completed' + }) } if (res.code === 510) { this.$message.warning(res.message) @@ -291,6 +316,22 @@ export default { editProof(record) { this.$refs.stageModal.title = '编辑阶段' this.$refs.stageModal.edit(record) + }, + /** + * 获取审核凭证信息 + */ + getAuditProofList() { + this.proofLoading = true + let param = { + id: this.$route.query.projectId + } + getAuditProofRecords(param).then(res => { + if (res.success) { + this.auditInfo = res.result || [] + } + }).finally(() => { + this.proofLoading = false + }) } } }