Commit 25e99803 by 张立顺

feat:兼容老数据

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