[update] 收入合同、eslint

This commit is contained in:
zhaoxiao
2021-09-06 16:52:32 +08:00
parent d7c478c6fc
commit 804fe3cafa
10 changed files with 638 additions and 279 deletions
@@ -11,7 +11,7 @@
<template v-if="mainInfoShowList.length > 0">
<a-col :xxl="6" :xl="8" :sm="12" class="detail-item" v-for="(item, index) in mainInfoShowList" :key="index">
<a-row>
<a-col :sm="10" :xs="24">{{ item.title }}:</a-col>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ item.title }}:</a-col>
<a-col :sm="14" :xs="24">{{ detailData[item.fieldName] }}</a-col>
</a-row>
</a-col>
@@ -29,7 +29,7 @@
<template v-if="dateNodeShowList.length > 0">
<a-col :xxl="6" :xl="8" :sm="12" class="detail-item" v-for="(item, index) in dateNodeShowList" :key="index">
<a-row>
<a-col :sm="10" :xs="24">{{ item.title }}:</a-col>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ item.title }}:</a-col>
<a-col :sm="14" :xs="24">{{ detailData[item.fieldName] }}</a-col>
</a-row>
</a-col>
@@ -48,7 +48,7 @@
<a-col :xxl="6" :xl="8" :sm="12" class="detail-item" v-for="(item, index) in accountInfoShowList"
:key="index">
<a-row>
<a-col :sm="10" :xs="24">{{ item.title }}:</a-col>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ item.title }}:</a-col>
<a-col :sm="14" :xs="24">{{ detailData[item.fieldName] }}</a-col>
</a-row>
</a-col>
@@ -64,9 +64,10 @@
</div>
<a-row class="detail">
<template v-if="otherInfoShowList.length > 0">
<a-col :xxl="6" :xl="8" :sm="12" class="detail-item" v-for="(item, index) in otherInfoShowList" :key="index">
<a-col :xxl="6" :xl="8" :sm="12" class="detail-item" v-for="(item, index) in otherInfoShowList"
:key="index">
<a-row>
<a-col :sm="10" :xs="24">{{ item.title }}:</a-col>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ item.title }}:</a-col>
<a-col :sm="14" :xs="24">{{ detailData[item.fieldName] }}</a-col>
</a-row>
</a-col>
@@ -80,11 +81,35 @@
<div class="part-title">
<div class="part-title-text">分期信息</div>
</div>
<a-row class="detail">
<a-row class="detail" v-for="(item, index) in detailData.listInstallment" :key="item.id">
<a-col :xxl="4" :xl="8" :sm="12" class="detail-item">
<a-row>
<a-col :sm="10" :xs="24"></a-col>
<a-col :sm="14" :xs="24"></a-col>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ index + 1 }}阶段:</a-col>
<a-col :sm="14" :xs="24">{{ item.phaseName }}</a-col>
</a-row>
</a-col>
<a-col :xxl="4" :xl="8" :sm="12" class="detail-item">
<a-row>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ index + 1 }}阶段应收:</a-col>
<a-col :sm="14" :xs="24">{{ item.accountsReceivableAmount }}</a-col>
</a-row>
</a-col>
<a-col :xxl="4" :xl="8" :sm="12" class="detail-item">
<a-row>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ index + 1 }}阶段应收时间:</a-col>
<a-col :sm="14" :xs="24">{{ item.accountsReceivableTime }}</a-col>
</a-row>
</a-col>
<a-col :xxl="4" :xl="8" :sm="12" class="detail-item">
<a-row>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ index + 1 }}阶段实收:</a-col>
<a-col :sm="14" :xs="24">{{ item.paidAmount }}</a-col>
</a-row>
</a-col>
<a-col :xxl="4" :xl="8" :sm="12" class="detail-item">
<a-row>
<a-col :sm="10" :xs="24" class="detail-item-title">{{ index + 1 }}阶段实收时间:</a-col>
<a-col :sm="14" :xs="24">{{ item.paidTime }}</a-col>
</a-row>
</a-col>
</a-row>
@@ -120,6 +145,7 @@
<script>
import IconImg from '@/assets/imgs/icon/icon_revenue_contract.png'
import PageHeaderTitle from '@/components/layouts/PageHeaderTitle'
import { getRevenueContractById } from '../../../../api/incomePaymentsApi'
export default {
name: 'RevenueContractDetail',
@@ -127,9 +153,7 @@ export default {
data() {
return {
IconImg,
detailData: {
contractNum: '132465'
},
detailData: {},
// 主体信息
mainInfoList: [
{
@@ -199,10 +223,10 @@ export default {
fieldName: 'contractPaymentTimes',
title: '合同约定付款次数'
}, {
fieldName: 'package_dictText',
fieldName: 'pack_dictText',
title: '是否打包'
}, {
fieldName: 'packageYear',
fieldName: 'packYear',
title: '打包年份'
}
],
@@ -229,7 +253,18 @@ export default {
}
},
created() {
console.log(this.$route.query.revenueId)
this.initDetailData(this.$route.query.revenueId)
},
methods: {
initDetailData(id) {
let param = {
id: id
}
getRevenueContractById(param).then(res => {
this.detailData = res.result
this.detailData.pack = this.detailData.pack === 1 ? '是' : this.detailData.pack === 0 ? '否' : ''
})
}
}
}
</script>
@@ -242,6 +277,13 @@ export default {
&-item {
padding-top: 10px;
color: #2F3133;
&-title {
color: #999999;
padding-right: 5px;
text-align: right;
}
}
}