Commit b1719d5c by cen

Merge branch 'SAAS+V5.0.0-1014' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.0.0-1014

2 parents a2bed2e4 f87120b0
......@@ -1286,7 +1286,7 @@ export default {
uni.navigateBack({
delta: 1
})
}, 300)
}, 1000)
} else {
if (res.data.code == 3004) {
uni.hideLoading()
......
......@@ -70,16 +70,25 @@
<view class="upload-box mb-32" v-if="hasCertificateImage">
<view class="tab-panel-title">证件图片</view>
<view class="upload-grid">
<view class="flex upload-item-container" v-for="field in uploadCertificateFields" :key="field.key">
<view class="upload-label" v-if="getImageBySubtype(field.key)">
{{ field.label }}
</view>
<view class="upload-images-wrapper" v-if="getImageBySubtype(field.key)">
<view class="uploaded-media-container">
<image :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 1)"></image>
<template v-for="field in uploadCertificateFields" >
<view class="flex upload-item-container" :key="field.key" v-if="getImageBySubtype(field.key)">
<view class="upload-label" >
{{ field.label }}
</view>
<view class="upload-images-wrapper">
<view class="uploaded-media-container">
<template v-if="field.maxCount > 1">
<template v-for="(item, index) in getImageBySubtype(field.key)">
<image :src="item.fileUrl" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(item.fileUrl, 1)"></image>
</template>
</template>
<template v-else>
<image :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 1)"></image>
</template>
</view>
</view>
</view>
</view>
</template>
</view>
</view>
......@@ -444,7 +453,7 @@ export default {
{ label: '车牌号', key: 'carInfo.licensePlate' },
{ label: '发动机号', key: 'carInfo.engineNumber' },
{ label: '上牌时间', key: 'carInfo.registrationDate' },
{ label: '上牌城市', key: 'carInfo.registrationCityName' },
{ label: '上牌城市', key: 'carInfo.registrationProvinceName', formatter: (val, data) => `${val}-${data.carInfo.registrationCityName}` },
{ label: '车辆所在地', key: 'carInfo.carProvinceName', formatter: (val, data) => `${val}-${data.carInfo.carCityName}` },
{ label: '表显里程', key: 'carInfo.mileage', cell: '公里' },
{ label: '使用性质', key: 'carInfo.usageType', map: 'usageTypeMap' },
......@@ -691,10 +700,9 @@ export default {
},
getImageBySubtype(subtype) {
if (!this.detailsInfo.images) return []
if (subtype === 41) {
if (subtype === 41 || subtype === 22) {
return this.detailsInfo.images.filter(img => img.fileSubtype === subtype)
}
const obj = this.detailsInfo.images.find(img => img.fileSubtype === subtype) || null
return obj
},
......@@ -1153,6 +1161,7 @@ export default {
text-align: left;
background: #f9fafc;
text-align: center;
word-break: break-all;
uni-image {
width: toRpx(96);
height: toRpx(96);
......
......@@ -129,7 +129,8 @@ export const sunroofMap = {
export const emissionStandardMap = {
3: '国3',
4: '国4',
5: '国5'
5: '国5',
6: '国6'
}
export const buyNewCarMap = {
0: '是',
......
......@@ -462,6 +462,7 @@ export default {
targetKey: 'bankCardNumber',
targetObj: '',
type: 'input',
inputType: 'number',
maxlength: 25
},
{
......@@ -526,8 +527,8 @@ export default {
this.$set(this.formData, 'partAName', res.data.data.evalCarLicense.previousOwnerName)
this.$set(this.formData, 'payeeName', res.data.data.evalCarLicense.previousOwnerName)
this.$set(this.formData, 'phone', res.data.data.evalCarLicense.previousOwnerPhone)
this.$set(this.formData, 'address', res.data.data.evalCarBase.carProvinceName + '-' + res.data.data.evalCarBase.carCityName)
this.$set(this.formData, 'handoverAddress', res.data.data.evalCarBase.carProvinceName + '-' + res.data.data.evalCarBase.carCityName)
this.$set(this.formData, 'address', res.data.data.evalCarBase.registrationProvinceName + '-' + res.data.data.evalCarBase.registrationCityName)
this.$set(this.formData, 'handoverAddress', res.data.data.evalCarBase.registrationProvinceName + '-' + res.data.data.evalCarBase.registrationCityName)
// this.evalOrderSimpleDetail = res.data.data
} else {
uni.hideLoading()
......@@ -814,6 +815,12 @@ export default {
item.checked = isSelected
})
const otherItem = this.checkboxList.find(item => item.name === '其他')
const otherIndex = this.checkboxList.indexOf(otherItem)
if (otherItem && !otherItem.checked) {
this.formData[this.checkboxList[otherIndex].inputValue] = ''
}
// 更新formData
this.formData = { ...this.formData, ...resultObject }
console.log('checkbox结果对象:', this.formData)
......@@ -1016,6 +1023,17 @@ export default {
})
return
}
if (this.selectedItemsText.indexOf('其他') !== -1) {
if (!this.formData.otherText) {
uni.showToast({
title: '请完善随车材料',
icon: 'none'
})
return
}
this.selectedItemsText = this.selectedItemsText.replace('其他', '')
this.selectedItemsText += this.formData.otherText
}
this.title = '确认签约信息'
this.comfirmPage = true
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!