Commit f69ddaa0 by cen

fix: 修复bug

1 parent 36ce457c
...@@ -532,7 +532,7 @@ export default { ...@@ -532,7 +532,7 @@ export default {
{ key: 12, label: '主驾驶全景', maxCount: 1, accept: 'image' }, { key: 12, label: '主驾驶全景', maxCount: 1, accept: 'image' },
{ key: 13, label: '仪表盘', maxCount: 1, accept: 'image' }, { key: 13, label: '仪表盘', maxCount: 1, accept: 'image' },
{ key: 14, label: '后排座椅', maxCount: 1, accept: 'image' }, { key: 14, label: '后排座椅', maxCount: 1, accept: 'image' },
{ key: 15, label: '中控台', maxCount: 1, accept: 'image' }, { key: 15, label: '中控台全景', maxCount: 1, accept: 'image' },
{ key: 16, label: '右后45度', maxCount: 1, accept: 'image' }, { key: 16, label: '右后45度', maxCount: 1, accept: 'image' },
{ key: 17, label: '铭牌', maxCount: 1, accept: 'image' } { key: 17, label: '铭牌', maxCount: 1, accept: 'image' }
......
<template> <template>
<GeneralPopup ref="cityPopup" popupClass="cityPopup" :list="list" :title="title" @confirm="handleConfirm" :autoClose="false"> <GeneralPopup ref="cityPopup" popupClass="cityPopup" :list="list" :title="title" @confirm="handleConfirm" :autoClose="false">
<slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle">
<view class="popup-top-box-title flex-1">{{ title }}</view>
<view style="font-size: 0">{{ otherText }}</view>
<view @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view>
</view>
</view>
</slot>
<template v-slot:content> <template v-slot:content>
<view v-if="isLoading" class="loading-container"> <view v-if="isLoading" class="loading-container">
<view class="loading-spinner"></view> <view class="loading-spinner"></view>
...@@ -17,7 +7,7 @@ ...@@ -17,7 +7,7 @@
</view> </view>
<view v-else class="content-container"> <view v-else class="content-container">
<StepTab :steps="dynamicSteps" :currentStep="currentStep" :clickable="true" @step-change="onStepChange" :isShowStepNumber="false"></StepTab> <StepTab :steps="dynamicSteps" :currentStep="currentStep" :clickable="true" @step-change="onStepChange" :isShowStepNumber="false"></StepTab>
<view class="list-component"> <view class="listComponent">
<SortByNameList :items="currentStepData" :activeValue="currentSelectedId" :activeField="'code'" :itemNameField="'name'" :groupKeyField="'letter'" :itemsPerRow="3" :itemSpacing="32" @item-click="handleItemClick" /> <SortByNameList :items="currentStepData" :activeValue="currentSelectedId" :activeField="'code'" :itemNameField="'name'" :groupKeyField="'letter'" :itemsPerRow="3" :itemSpacing="32" @item-click="handleItemClick" />
</view> </view>
</view> </view>
...@@ -291,6 +281,9 @@ export default { ...@@ -291,6 +281,9 @@ export default {
return { ...item, letter: '#' } return { ...item, letter: '#' }
} }
}, },
closePopup() {
this.$refs.cityPopup.closePopup()
},
handleConfirm() { handleConfirm() {
if (this.selectedCity) { if (this.selectedCity) {
this.$emit('city-selected', this.selectionResult) this.$emit('city-selected', this.selectionResult)
...@@ -306,6 +299,7 @@ export default { ...@@ -306,6 +299,7 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
// 只保留内容区域的必要样式
::v-deep .cityPopup { ::v-deep .cityPopup {
.content { .content {
width: 100%; width: 100%;
...@@ -313,31 +307,49 @@ export default { ...@@ -313,31 +307,49 @@ export default {
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
.list-component { .listComponent {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(100)}); height: calc(100% - #{toRpx(100)});
overflow-y: auto;
} }
}
}
// 新增:确保标题在pad端居中的样式
::v-deep .customPopup.cityPopup .uni-popup__wrapper.bottom {
.popup-top-box { .popup-top-box {
padding: 0 toRpx(48); display: flex !important;
height: toRpx(112); align-items: center !important;
justify-content: center !important;
position: relative !important;
padding: 0 !important;
background-color: #fff;
color: #333333;
font-size: toRpx(36);
.popup-top-box-title { .popup-top-box-title {
text-align: center; flex: none !important;
text-align: center !important;
width: auto !important;
max-width: 80% !important;
} }
.icon-close {
text-align: end; // 处理中间占位元素
view:nth-child(2) {
display: none !important;
} }
// 处理关闭按钮位置
view:nth-child(3) {
position: absolute !important;
right: toRpx(48) !important;
top: 50% !important;
transform: translateY(-50%) !important;
} }
} }
} }
.content-container { .content-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.loading-container { .loading-container {
width: 100%; width: 100%;
height: toRpx(764); height: toRpx(764);
......
...@@ -166,6 +166,7 @@ export default { ...@@ -166,6 +166,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.container { .container {
position: relative; position: relative;
width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
...@@ -292,8 +292,13 @@ ...@@ -292,8 +292,13 @@
<view v-if="formatValue(item, detailsInfo)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]"> <view v-if="formatValue(item, detailsInfo)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view class="title-label-see mr-16">{{ item.label == '自定义字段名称' ? detailsInfo.carHandoverInfo.otherText || '自定义字段名称' : item.label }}</view> <view class="title-label-see mr-16">{{ item.label == '自定义字段名称' ? detailsInfo.carHandoverInfo.otherText || '自定义字段名称' : item.label }}</view>
<view v-if="item.type == 'image'"> <view v-if="item.type == 'image'">
<template v-if="item.key === 'carHandoverInfo.motorBookUrl'">
<image @click.stop="previewMedia(url, 1)" v-for="(url, idx) in splitMediaUrls(formatValue(item, detailsInfo))" :key="idx" :src="url" mode="aspectFill" style="margin-right: 10px"></image>
</template>
<template v-else>
<image v-if="formatValue(item, detailsInfo).includes('mp4')" :src="formatValue(item, detailsInfo) + videoProcess" @click.stop="previewMedia(formatValue(item, detailsInfo), 2)"></image> <image v-if="formatValue(item, detailsInfo).includes('mp4')" :src="formatValue(item, detailsInfo) + videoProcess" @click.stop="previewMedia(formatValue(item, detailsInfo), 2)"></image>
<image v-else :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image> <image v-else :src="formatValue(item, detailsInfo)" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
</template>
</view> </view>
<view v-else-if="item.type == 'link'" class="flex-1"> <view v-else-if="item.type == 'link'" class="flex-1">
<view class="pdf-box flex align-center justify-between"> <view class="pdf-box flex align-center justify-between">
...@@ -531,8 +536,8 @@ export default { ...@@ -531,8 +536,8 @@ export default {
{ label: '收款人姓名', key: 'signingInfo.saleContract.payeeName' }, { label: '收款人姓名', key: 'signingInfo.saleContract.payeeName' },
{ label: '银行卡账号', key: 'signingInfo.saleContract.bankCardNumber' }, { label: '银行卡账号', key: 'signingInfo.saleContract.bankCardNumber' },
{ label: '开户行', key: 'signingInfo.saleContract.bankOfDeposit', fullWidth: true }, { label: '开户行', key: 'signingInfo.saleContract.bankOfDeposit', fullWidth: true },
{ label: '身份证正面', key: 'signingInfo.saleContract.payerIdCarFrontUrl', type: 'image' }, { label: '身份证正面', key: 'signingInfo.saleContract.payerIdCardFrontUrl', type: 'image' },
{ label: '身份证反面', key: 'signingInfo.saleContract.payerIdCarBackUrl', type: 'image' }, { label: '身份证反面', key: 'signingInfo.saleContract.payerIdCardBackUrl', type: 'image' },
{ label: '银行卡', key: 'signingInfo.saleContract.payerBankCardUrl', type: 'image' } { label: '银行卡', key: 'signingInfo.saleContract.payerBankCardUrl', type: 'image' }
], ],
vehicleManagementItems: [ vehicleManagementItems: [
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
地址 地址
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
</view> </view>
<input class="intention-input mb-48" placeholder="请输入" maxlength="10" v-model="addSignAgreementObj.custodianAddress" /> <input class="intention-input mb-48" placeholder="请输入" maxlength="52" v-model="addSignAgreementObj.custodianAddress" />
</view> </view>
</template> </template>
</GeneralPopup> </GeneralPopup>
...@@ -459,6 +459,13 @@ export default { ...@@ -459,6 +459,13 @@ export default {
uni.hideLoading() uni.hideLoading()
console.log('res.data.data:', res.data.data) console.log('res.data.data:', res.data.data)
if (!res.data.data) { if (!res.data.data) {
this.signAgreementObj = {
evalOrderNo: '',
custodianName: '',
custodianIdentityCode: '',
custodianAddress: '',
custodianPhone: ''
}
that.$refs.signAgreementPopup.open() that.$refs.signAgreementPopup.open()
} else { } else {
uni.showLoading() uni.showLoading()
...@@ -622,13 +629,13 @@ export default { ...@@ -622,13 +629,13 @@ export default {
this.$refs.orderPopup.open() this.$refs.orderPopup.open()
}, },
async addSignAgreement() { async addSignAgreement() {
;((this.addSignAgreementObj = { this.addSignAgreementObj = {
custodianIdentityCode: '', custodianIdentityCode: '',
custodianPhone: '', custodianPhone: '',
custodianAddress: '', custodianAddress: '',
custodianName: '' custodianName: ''
}), }
this.$refs.addSignAgreementPopup.open()) this.$refs.addSignAgreementPopup.open()
}, },
async confirmAddSignAgreement() { async confirmAddSignAgreement() {
if (!this.addSignAgreementObj.custodianName) { if (!this.addSignAgreementObj.custodianName) {
......
...@@ -659,7 +659,7 @@ export default { ...@@ -659,7 +659,7 @@ export default {
inputType: 'text', inputType: 'text',
targetKey: 'partAName', targetKey: 'partAName',
type: 'input', type: 'input',
maxlength: 50, maxlength: 28,
disabled: false disabled: false
}, },
{ {
...@@ -697,7 +697,7 @@ export default { ...@@ -697,7 +697,7 @@ export default {
sourceKey: 'uuid', sourceKey: 'uuid',
targetKey: 'address', targetKey: 'address',
type: 'input', type: 'input',
maxlength: 100 maxlength: 52
} }
] ]
this.formData.finalPrice = '' this.formData.finalPrice = ''
...@@ -751,7 +751,7 @@ export default { ...@@ -751,7 +751,7 @@ export default {
targetKey: 'partAName', targetKey: 'partAName',
type: 'input', type: 'input',
disabled: false, disabled: false,
maxlength: 50 maxlength: 28
}, },
{ {
key: 'phone', key: 'phone',
...@@ -787,7 +787,8 @@ export default { ...@@ -787,7 +787,8 @@ export default {
sourceNameKey: 'staffName', sourceNameKey: 'staffName',
sourceKey: 'uuid', sourceKey: 'uuid',
targetKey: 'address', targetKey: 'address',
type: 'input' type: 'input',
maxlength: 50
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!