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