Commit 25e99803 by 张立顺

feat:兼容老数据

1 parent 6b79aa84
......@@ -41,8 +41,8 @@
class="detail-img"
:src="detailForm.papersList?detailForm.papersList[imgToAttr[subItem]]:''">
</span> -->
<el-form-item v-if="(item.showAttrList ? item.showAttrList.includes(detailForm.custType) : true)&&(item.showPayType?item.showPayType.includes(detailForm.settlementType.toString()):true)&&(item.contractType?item.contractType.includes(detailForm.contractType):true)"
<!-- .toString() -->
<el-form-item v-if="(item.showAttrList ? item.showAttrList.includes(detailForm.custType) : true)&&(item.showPayType?item.showPayType.includes(detailForm.settlementType):true)&&(item.contractType?item.contractType.includes(detailForm.contractType):true)"
:label="typeof item.label === 'object' ? (item.label[currentPage] + ':') : (item.label + ':')"
required
:prop="item.prop">
......@@ -69,7 +69,7 @@
<span v-else-if="item.type== 'url'"
class="link"
@click="downloads">点击链接下载</span>
<span v-else>{{detailForm[item.prop]}}</span>
<span v-else>{{detailForm[item.prop]||''}}</span>
</el-form-item>
</div>
</el-form>
......@@ -166,14 +166,15 @@ export default {
// 根据currentPage不同,展示/隐藏
showAttrList: ['C', 'B'],
formatter: () => {
return this.detailForm.busLicenseStartDate + '~' + this.detailForm.busLicenseExpire
const { busLicenseStartDate, busLicenseExpire } = this.detailForm
return `${busLicenseStartDate || ''} ${busLicenseExpire ? '~' : ''} ${busLicenseExpire || ''}`
}
}, {
label: '企业地址',
prop: 'companyAddr',
formatter: () => {
const { province, city, companyAddr, county } = this.detailForm
return `${province ? province + '-' : ''} ${city ? city + '-' : ''} ${county ? county + '-' : ''} ${companyAddr}`
return `${province ? province + '-' : ''} ${city ? city + '-' : ''} ${county ? county + '-' : ''} ${companyAddr || ''}`
}
// 根据currentPage不同,展示/隐藏
// showAttrList: ['C', 'B']
......@@ -199,14 +200,14 @@ export default {
label: '法人身份证照',
imgList: ['idCard', 'idCardBack'],
type: 'image',
showPayType: ['1', '2'],
showPayType: [1, 2],
labelList: ['法人身份证正面', '法人身份证正面反面']
},
{
label: '身份证照',
imgList: ['idCard', 'idCardBack', 'commissionIdCard', 'backCommissionIdCard'],
type: 'image',
showPayType: ['3']
showPayType: [3]
},
{
label: '法人姓名',
......@@ -234,7 +235,9 @@ export default {
label: '身份证有效期',
prop: '',
formatter: () => {
return this.detailForm.legalCertStartDate + '~' + this.detailForm.legalCertExpire
const { legalCertStartDate, legalCertExpire } = this.detailForm
return `${legalCertStartDate || ''} ${legalCertExpire ? '~' : ''} ${legalCertExpire || ''}`
// return this.detailForm.legalCertStartDate + '~' + this.detailForm.legalCertExpire
}
},
{
......@@ -251,29 +254,29 @@ export default {
{
label: '被授权人姓名',
prop: 'authorizedPersonName',
showPayType: ['3']
showPayType: [3]
},
{
label: '被授权人身份证号',
prop: 'authorizedPersonCertNo',
showPayType: ['3']
showPayType: [3]
},
{
label: '被授权人身份证号',
prop: 'authorizedPersonCertNo',
showPayType: ['3']
showPayType: [3]
},
{
label: '结算授权书',
imgList: ['commissionAccount'],
type: 'image',
showPayType: ['3']
showPayType: [3]
},
{
label: '法人手持授权书',
imgList: ['powerOfLegal'],
type: 'image',
showPayType: ['3']
showPayType: [3]
}
]
},
......@@ -297,7 +300,7 @@ export default {
type: 'image',
// 根据currentPage不同,展示/隐藏
// showAttrList: ['B']
showPayType: ['1'],
showPayType: [1],
labelList: ['开户许可证']
},
{
......@@ -306,14 +309,14 @@ export default {
type: 'image',
// 根据currentPage不同,展示/隐藏
// showAttrList: ['B']
showPayType: ['1'],
showPayType: [1],
labelList: ['结算账户正面']
},
{
label: '银行卡正反面照',
imgList: ['bankCard', 'bankCardBack'],
// showAttrList: ['O', 'C'],
showPayType: ['2', '3'],
showPayType: [2, 3],
type: 'image'
}, {
label: {
......@@ -460,7 +463,9 @@ export default {
// 根据currentPage不同,展示/隐藏
showAttrList: ['C', 'B'],
formatter: () => {
return this.detailForm.busLicenseStartDate + '~' + this.detailForm.busLicenseExpire
// return this.detailForm.busLicenseStartDate + '~' + this.detailForm.busLicenseExpire
const { busLicenseStartDate, busLicenseExpire } = this.detailForm
return `${busLicenseStartDate || ''} ${busLicenseExpire ? '~' : ''} ${busLicenseExpire || ''}`
}
}, {
label: '企业地址',
......@@ -481,7 +486,9 @@ export default {
label: '身份证有效期',
prop: '',
formatter: () => {
return this.detailForm.legalCertStartDate + '~' + this.detailForm.legalCertExpire
// return this.detailForm.legalCertStartDate + '~' + this.detailForm.legalCertExpire
const { legalCertStartDate, legalCertExpire } = this.detailForm
return `${legalCertStartDate || ''} ${legalCertExpire ? '~' : ''} ${legalCertExpire || ''}`
}
}, {
label: '法人手机号',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!