bug修改

This commit is contained in:
zhaoxiao
2022-01-05 15:07:26 +08:00
parent df4e0fde2c
commit c2812152b3
7 changed files with 38 additions and 24 deletions
+8 -5
View File
@@ -2,7 +2,6 @@
<div class="main-box"> <div class="main-box">
<page-header-title :is-level-one="false" level-two-title="申请开票"></page-header-title> <page-header-title :is-level-one="false" level-two-title="申请开票"></page-header-title>
<a-card :bordered="false"> <a-card :bordered="false">
<!--查询区域begin-->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="12" :lg="8" :md="8" :sm="24"> <a-col :xl="12" :lg="8" :md="8" :sm="24">
@@ -17,7 +16,7 @@
<span>应付金额:{{ receivableAmount }}元</span> <span>应付金额:{{ receivableAmount }}元</span>
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<span>已付金额:{{ paidAmount }}元</span> <span>已付金额:{{ paidAmount || '0' }}元</span>
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
@@ -44,6 +43,10 @@
<j-ellipsis :value="text" :length="20"></j-ellipsis> <j-ellipsis :value="text" :length="20"></j-ellipsis>
</template> </template>
<template slot="money" slot-scope="text, record">
<j-ellipsis :value="`${text}元`" :length="20"></j-ellipsis>
</template>
<!-- 阶段--> <!-- 阶段-->
<template slot="steg" slot-scope="text, record"> <template slot="steg" slot-scope="text, record">
<j-ellipsis :value="text" :length="20"></j-ellipsis> <j-ellipsis :value="text" :length="20"></j-ellipsis>
@@ -73,7 +76,7 @@
<!-- 审核记录--> <!-- 审核记录-->
<div class="audit-info"> <div class="audit-info">
<div class="audit-info-title">审核信息</div> <div class="audit-info-title">审核记录</div>
<a-spin :spinning="proofLoading"> <a-spin :spinning="proofLoading">
<template v-if="auditInfo && auditInfo.length > 0"> <template v-if="auditInfo && auditInfo.length > 0">
<div class="audit-info-item-box" v-for="(item, index) in auditInfo" :key="index"> <div class="audit-info-item-box" v-for="(item, index) in auditInfo" :key="index">
@@ -93,7 +96,7 @@
<a-col :span="8"> <a-col :span="8">
<div class="audit-info-item"> <div class="audit-info-item">
<span class="audit-info-item-title">缴费金额:</span> <span class="audit-info-item-title">缴费金额:</span>
<span class="audit-info-item-content">{{ item.amountReceived }}</span> <span class="audit-info-item-content">{{ item.amountReceived }}元</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
@@ -181,7 +184,7 @@ const columns = [
title: '缴费金额', title: '缴费金额',
dataIndex: 'amountReceived', dataIndex: 'amountReceived',
align: 'center', align: 'center',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'money' }
}, { }, {
title: '缴费凭证', title: '缴费凭证',
dataIndex: 'proof', dataIndex: 'proof',
@@ -25,6 +25,11 @@
<label>审核时间:</label> <label>审核时间:</label>
<div>{{ model.reviewTime }}</div> <div>{{ model.reviewTime }}</div>
</div> </div>
<!-- 只有被拒绝的情况下才需要拒绝说明-->
<div class="info-item" v-if="model.paymentStatus === 'rejected'">
<label>说明:</label>
<div>{{ model.reviewInstructions }}</div>
</div>
</div> </div>
<h3 class="title">凭证信息</h3> <h3 class="title">凭证信息</h3>
@@ -100,7 +105,7 @@ export default {
edit: '/paymentCheck/payPaymentCheck/edit' edit: '/paymentCheck/payPaymentCheck/edit'
}, },
projectId: '', projectId: '',
projectType: '', projectType: ''
} }
}, },
methods: { methods: {
@@ -39,13 +39,14 @@
</div> </div>
<div class="info-item"> <div class="info-item">
<label>缴费日期:</label> <label>缴费日期:</label>
<div>{{ proofInfo.paymentDate }}元</div> <div>{{ proofInfo.paymentDate }}</div>
</div> </div>
<div class="info-item"> <div class="info-item">
<label>付款凭证:</label> <label>付款凭证:</label>
<div class="proof-img"> <div class="proof-img" v-if="!!proofInfo.proof">
<img :src="proofSrc(proofInfo.proof)" @click="previewProofImg(proofInfo.proof)"> <img :src="proofSrc(proofInfo.proof)" @click="previewProofImg(proofInfo.proof)">
</div> </div>
<span v-else>无</span>
</div> </div>
</div> </div>
</div> </div>
@@ -69,6 +69,15 @@ export default {
return { return {
columns: [ columns: [
{ {
title: '序号',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
}
}, {
title: '分标委名称', title: '分标委名称',
align: 'center', align: 'center',
dataIndex: 'name', dataIndex: 'name',
@@ -27,6 +27,7 @@
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
@change="handleTableChange"
class="j-table-force-nowrap"> class="j-table-force-nowrap">
<template slot="text" slot-scope="text"> <template slot="text" slot-scope="text">
@@ -221,6 +222,7 @@ export default {
* 获取在研项目 * 获取在研项目
*/ */
getUnderStudyProjectList() { getUnderStudyProjectList() {
this.loading = true
let param = { let param = {
abbreviation: this.$route.query.abbreviation, abbreviation: this.$route.query.abbreviation,
pageNo: this.ipagination.current, pageNo: this.ipagination.current,
@@ -235,6 +237,8 @@ export default {
this.ipagination.total = 0 this.ipagination.total = 0
} }
} }
}).finally(() => {
this.loading = false
}) })
}, },
/** /**
@@ -270,13 +274,8 @@ export default {
* @param filters * @param filters
* @param sorter * @param sorter
*/ */
handleTableChange(pagination, filters, sorter) { handleTableChange(pagination) {
//分页、排序、筛选变化时触发 //分页变化时触发
//TODO 筛选
if (Object.keys(sorter).length > 0) {
this.isorter.column = sorter.field
this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc'
}
this.ipagination = pagination this.ipagination = pagination
this.getUnderStudyProjectList() this.getUnderStudyProjectList()
} }
+4 -6
View File
@@ -54,11 +54,11 @@
<!-- 项目名称--> <!-- 项目名称-->
<template slot="projectName" slot-scope="text, record"> <template slot="projectName" slot-scope="text, record">
<j-ellipsis :value="text" :length="20" class="project-name" @click="toDetail(record)"></j-ellipsis> <j-ellipsis :value="text" :length="11" class="project-name" @click="toDetail(record)"></j-ellipsis>
</template> </template>
<template slot="text" slot-scope="text, record"> <template slot="text" slot-scope="text, record">
<j-ellipsis :value="text" :length="20"></j-ellipsis> <j-ellipsis :value="text" :length="11"></j-ellipsis>
</template> </template>
<!-- 缴费凭证--> <!-- 缴费凭证-->
@@ -102,7 +102,6 @@ export default {
title: '项目名称', title: '项目名称',
dataIndex: 'chargeProject', dataIndex: 'chargeProject',
align: 'center', align: 'center',
width: 200,
scopedSlots: { customRender: 'projectName' } scopedSlots: { customRender: 'projectName' }
}, { }, {
title: '项目负责人', title: '项目负责人',
@@ -120,19 +119,18 @@ export default {
title: '负责人邮箱', title: '负责人邮箱',
dataIndex: 'principalEmail', dataIndex: 'principalEmail',
align: 'center', align: 'center',
width: 200, width: 140,
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, { }, {
title: '运行周期', title: '运行周期',
dataIndex: 'operationCycle', dataIndex: 'operationCycle',
align: 'center', align: 'center',
width: 200, width: 140,
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, { }, {
title: '任务及目标', title: '任务及目标',
dataIndex: 'missionAndObjectives', dataIndex: 'missionAndObjectives',
align: 'center', align: 'center',
width: 200,
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, { }, {
title: '缴费凭证状态', title: '缴费凭证状态',
+1 -2
View File
@@ -23,8 +23,7 @@
</a-col> </a-col>
<!-- 合同--> <!-- 合同-->
<!-- v-if="detail.chargeWay === 2"--> <a-col :span="8" class="basic-info-item" v-if="detail.chargeWay === 2">
<a-col :span="8" class="basic-info-item">
<label>合同编号:</label> <label>合同编号:</label>
<span>{{ detail.contractNum }}</span> <span>{{ detail.contractNum }}</span>
</a-col> </a-col>