Commit 9b71faa4 by cen

fix: 样式

1 parent 94bc42f6
......@@ -19,10 +19,13 @@
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<view>
<view class="flex align-center inputBox" :class="{ fullInput: field.fullInput }" v-if="field.key === 'carKeyUrl' || field.key === 'otherUrl'">
<view class="flex align-center inputBox" :class="{ fullInput: field.fullInput }" v-if="field.key === 'carKeyUrl'">
<input type="number" v-model="formData[field.inputKey]" placeholder="请输入" maxlength="1" />
<text>套</text>
</view>
<view class="flex align-center inputBox" :class="{ fullInput: field.fullInput }" v-if="field.key === 'otherUrl'">
<input type="text" v-model="formData[field.inputKey]" placeholder="请输入" maxlength="100" />
</view>
<view class="upload-images-wrapper">
<!-- 显示已上传的图片列表 -->
<view v-for="(image, index) in getImages(field, 'upload')" :key="index" class="uploaded-image-container">
......
......@@ -231,41 +231,45 @@
<view class="mb-32 upload-box">
<view class="tab-panel-title">车辆图片</view>
<view class="gridBoxNoPadding">
<view v-for="(item, index) in uploadFieldsItems" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
<view class="flex align-center">
<view class="sprite-icon icon-pdf"></view>
<text>二手车转让协议</text>
<template v-for="(item, index) in uploadFieldsItems">
<view v-if="formatValue(item, detailsInfo)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
<view class="flex align-center">
<view class="sprite-icon icon-pdf"></view>
<text>二手车转让协议</text>
</view>
</view>
</view>
<view v-else>{{ formatValue(item, detailsInfo) }}</view>
</view>
<view v-else>{{ formatValue(item, detailsInfo) }}</view>
</view>
</template>
</view>
</view>
<view class="mb-32 upload-box">
<view class="tab-panel-title">证件资料</view>
<view class="gridBoxNoPadding">
<view v-for="(item, index) in documentationItems" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
<view class="flex align-center">
<view class="sprite-icon icon-pdf"></view>
<text>二手车买卖补充协议</text>
<template v-for="(item, index) in documentationItems">
<view v-if="formatValue(item, detailsInfo)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</view>
<view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between">
<view class="flex align-center">
<view class="sprite-icon icon-pdf"></view>
<text>二手车买卖补充协议</text>
</view>
</view>
</view>
<view v-else>{{ formatValue(item, detailsInfo) }}</view>
</view>
<view v-else>{{ formatValue(item, detailsInfo) }}</view>
</view>
</template>
</view>
</view>
<view class="mb-32 upload-box" v-if="detailsInfo.carHandoverInfo">
......@@ -490,8 +494,8 @@ export default {
{ label: '查阅合同', key: 'signingInfo.custodyContract.docTemplateName', type: 'link' }
],
baseInfoItems: [
{ label: '确认人', key: 'carHandoverInfo.confirmName' },
{ label: '确认时间', key: 'carHandoverInfo.confirmTime' },
{ label: '确认人', key: 'carHandoverInfo.operator' },
{ label: '确认时间', key: 'carHandoverInfo.handoverTime' },
{ label: '车钥匙数', key: 'carHandoverInfo.carKeyCount' }
],
contractItems: [
......@@ -499,18 +503,16 @@ export default {
{ label: '补充协议', key: 'carHandoverInfo.supplementaryContractNo', contractName: '二手车补充协议' }
],
uploadFieldsItems: [
// {
// key: 11,
// label: '正面45度',
// required: true,
// maxCount: 1,
// type: 'image'
// },
// { key: 12, label: '正面', type: 'image' },
// { key: 13, label: '后面', maxCount: 1, type: 'image' },
// { key: 14, label: '左侧面', maxCount: 1, type: 'image' },
// { key: 15, label: '右侧面', maxCount: 1, type: 'image' },
// { key: 16, label: '其他', maxCount: 1, type: 'image' }
{
key: 'carHandoverInfo.handoverPhotoFrontFourFive',
label: '正面45度',
type: 'image'
},
{ key: 'carHandoverInfo.handoverPhotoFront', label: '正面', type: 'image' },
{ key: 'carHandoverInfo.handoverPhotoBack', label: '后面', type: 'image' },
{ key: 'carHandoverInfo.handoverPhotoLeftSide', label: '左侧面', type: 'image' },
{ key: 'carHandoverInfo.handoverPhotoRightSide', label: '右侧面', type: 'image' },
{ key: 'carHandoverInfo.handoverPhotoMore', label: '其他', type: 'image' }
],
documentationItems: [
{ label: '交强险', key: 'carHandoverInfo.trafficInsuranceUrl', type: 'image' },
......@@ -647,7 +649,7 @@ export default {
if (item.map && this[item.map]) {
return this[item.map][rawValue] || rawValue
}
console.log('rawValue:', rawValue, item.key)
// 返回原始值(如果为空则返回空字符串)
return rawValue || ''
},
......
......@@ -137,7 +137,7 @@
</view>
<view class="checkbox-name">{{ item.name }}</view>
<input class="checkbox-input" v-if="item.isShowInput && item.key != 'other'" v-model="formData[item.inputValue]" placeholder="请输入" type="number" maxlength="1" />
<input class="checkbox-input" v-if="item.isShowInput && item.key == 'other'" v-model="formData[item.inputValue]" placeholder="请输入" />
<input class="checkbox-input" v-if="item.isShowInput && item.key == 'other'" v-model="formData[item.inputValue]" placeholder="请输入" maxlength="100" />
</label>
</checkbox-group>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!