Commit a21fd589 by cen

fix: 样式修复

1 parent 825abd7a
......@@ -3,7 +3,7 @@
<template v-for="(i, index) in list">
<view :key="index" @click="choose(i)" :class="['item flex', { active: currentId ? i.id == currentId : i.id == data[params.idKey] }]">
<view class="sprite-icon icon-tag-checked"></view>
{{ i.name + ' | ' + i.conversionPhone }}
{{ i.name + ' | ' + i.phone }}
</view>
</template>
</view>
......
......@@ -505,7 +505,7 @@ export default {
{ key: 'compulsoryInsuranceExpiry', label: '交强险到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'compulsoryInsuranceExpiry', targetObj: 'carLicenseReqDTO', endDate: false },
{ key: 'annualInspectionExpiry', label: '年审到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'annualInspectionExpiry', targetObj: 'carLicenseReqDTO', endDate: false },
{ key: 'commercialInsuranceExpiry', label: '商业险到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'commercialInsuranceExpiry', targetObj: 'carLicenseReqDTO', endDate: false },
{ key: 'previousOwnerName', label: '原车主名称', required: true, fullWidth: false, targetKey: 'previousOwnerName', targetObj: 'carLicenseReqDTO', type: 'input', maxlength: 50 },
{ key: 'previousOwnerName', label: '原车主名称', required: true, fullWidth: false, targetKey: 'previousOwnerName', targetObj: 'carLicenseReqDTO', type: 'input', maxlength: 20 },
{ key: 'previousOwnerPhone', label: '原车主电话', required: true, fullWidth: true, targetKey: 'previousOwnerPhone', targetObj: 'carLicenseReqDTO', type: 'input', inputType: 'number', pattern: '^[0-9]{11}$', maxlength: 11 },
{
key: 'previousOwnerAddress',
......@@ -518,7 +518,7 @@ export default {
targetKey: 'previousOwnerAddress',
targetObj: 'carLicenseReqDTO',
type: 'textarea',
maxlength: 200
maxlength: 52
}
],
uploadFields: [
......@@ -886,6 +886,15 @@ export default {
})
return
}
const engineNumber = this.formData.carBaseReqDTO.engineNumber
const engineNumberRegex = /^[A-Za-z0-9]+$/
if (!engineNumberRegex.test(engineNumber)) {
uni.showToast({
title: '发动机号只能包含数字和字母',
icon: 'none'
})
return
}
// 表显里程验证 - 数字,0-999999
const mileage = this.formData.carBaseReqDTO.mileage
......
......@@ -5,8 +5,8 @@
<!-- 顶部标题栏插槽 -->
<slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text>
<text style="font-size: 0">{{ otherText }}</text>
<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>
......@@ -134,11 +134,11 @@ export default {
padding: 0 toRpx(48);
height: toRpx(112);
width: 100%;
background-color: #fff;
color: #333333;
font-size: toRpx(36);
.popup-top-box-title {
flex: 1;
text-align: center;
}
.icon-close {
......@@ -178,11 +178,12 @@ export default {
font-size: toRpx(40);
font-weight: 500;
text-align: center;
width: 100%;
height: toRpx(136);
padding: 0 toRpx(64);
box-sizing: border-box;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
.popup-top-box-title {
flex: 1;
text-align: center;
}
.icon-close {
......
<template>
<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>
<view v-if="isLoading" class="loading-container">
<view class="loading-spinner"></view>
......@@ -308,6 +318,20 @@ export default {
height: calc(100% - #{toRpx(100)});
overflow-y: auto;
}
.popup-top-box {
padding: 0 toRpx(48);
height: toRpx(112);
background-color: #fff;
color: #333333;
font-size: toRpx(36);
.popup-top-box-title {
text-align: center;
}
.icon-close {
text-align: end;
}
}
}
}
.content-container {
......
......@@ -56,11 +56,11 @@
<view class="text-ellipsis tips px-20 justify-between">
<view class="flex-1 flex align-center">
<view class="sprite-icon icon-study-tips"></view>
<view class="text-ellipsis">驳回原因:{{ carInfo.rejectReason }}</view>
<view class="text-ellipsis">驳回原因:{{ carInfo.rejectReason || '-' }}</view>
</view>
<view class="flex-1 flex align-center">
<view class="flex-1 flex align-center" v-if="carInfo.previousStatus == 10 && carInfo.status == -1">
<view class="sprite-icon icon-feedbackIcon"></view>
<view class="text-ellipsis">驳回意见:{{ carInfo.rejectSuggestion }}</view>
<view class="text-ellipsis">驳回意见:{{ carInfo.rejectSuggestion || '-' }}</view>
</view>
</view>
</view>
......
......@@ -170,7 +170,7 @@ export default {
sourceKey: 'uuid',
targetKey: 'handoverAddress',
type: 'input',
maxlength: 100
maxlength: 43
},
{
key: 'buyerAgreementUrl',
......
......@@ -171,7 +171,7 @@
</view>
</view>
</view>
<view v-else>{{ formatValue(item, detailsInfo) }}</view>
<view v-else>{{ formatValue(item, detailsInfo) }}{{ item.cell || '' }}</view>
</view>
</template>
</view>
......@@ -311,18 +311,20 @@
<view class="mb-32 upload-box" v-if="detailsInfo.carHandoverInfo">
<view class="tab-panel-title">合同预览</view>
<view class="gridBoxNoPadding">
<view v-for="(item, index) in contractItems" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<template v-for="(item, index) in contractItems">
<view v-if="getFieldValue(detailsInfo, item.key)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view class="flex-1">
<view class="pdf-box flex align-center justify-between" @click.stop="pdfPreview(getFieldValue(detailsInfo, item.key))">
<view class="flex align-center">
<view class="sprite-icon icon-pdf"></view>
<text>{{ item.contractName }}</text>
<view class="flex-1">
<view class="pdf-box flex align-center justify-between" @click.stop="pdfPreview(getFieldValue(detailsInfo, item.key))">
<view class="flex align-center">
<view class="sprite-icon icon-pdf"></view>
<text>{{ item.contractName }}</text>
</view>
</view>
</view>
</view>
</view>
</template>
</view>
</view>
</view>
......@@ -512,9 +514,9 @@ export default {
vehicleItems: [
{ label: '合同编号', key: 'signingInfo.saleContract.contractNo' },
{ label: '签约时间', key: 'signingInfo.saleContract.signTime' },
{ label: '定金金额', key: 'signingInfo.saleContract.depositPrice' },
{ label: '尾款金额', key: 'signingInfo.saleContract.finalPrice' },
{ label: '全款金额', key: 'signingInfo.saleContract.fullPrice' },
{ label: '定金金额', key: 'signingInfo.saleContract.depositPrice', cell: '元' },
{ label: '尾款金额', key: 'signingInfo.saleContract.finalPrice', cell: '元' },
{ label: '全款金额', key: 'signingInfo.saleContract.fullPrice', cell: '元' },
{ label: '签约车主', key: 'signingInfo.saleContract.partAName' },
{ label: '手机号码', key: 'signingInfo.saleContract.phone' },
{ label: '身份证号', key: 'signingInfo.saleContract.idCard' },
......
......@@ -84,7 +84,7 @@
签约保管人
<text class="requiredLabel">*</text>
</view>
<input class="intention-input mb-48" placeholder="请输入" v-model="addSignAgreementObj.custodianName" />
<input class="intention-input mb-48" placeholder="请输入" v-model="addSignAgreementObj.custodianName" maxlength="20" />
<view class="requote-label mb-24">
身份证号
<text class="requiredLabel">*</text>
......@@ -144,7 +144,7 @@
</view>
</template>
</GeneralPopup>
<OrderPopup ref="orderPopup" :data="custodyAgreementList" :isDefeatOrder="true" :externalData="[]" @onConfirm="onConfirm" :popupType="14" idKey="id" />
<OrderPopup ref="orderPopup" :data="custodyAgreementObj" :isDefeatOrder="true" :externalData="[]" @onConfirm="onConfirm" :popupType="14" idKey="id" />
</view>
</template>
......@@ -176,6 +176,7 @@ export default {
currentPage: 1,
amountRequestedPopupTitle: '',
custodyAgreementList: [],
custodyAgreementObj: {},
requoteObj: {
customerTargetPrice: '',
customerTargetPriceFeedback: '',
......@@ -263,7 +264,7 @@ export default {
licensePlate: '',
evalOrderNo: ''
}
this.tabIndex = 0
this.search()
},
async queryList(pageNo, pageSize) {
......@@ -331,7 +332,11 @@ export default {
},
handlePriceInput(e) {
console.log(e)
const value = e.target ? e.target.value.replace(/[^1-9]/g, '') : e.detail.value.replace(/[^1-9]/g, '')
const rawValue = e.target ? e.target.value : e.detail.value
const numericValue = rawValue.replace(/[^0-9]/g, '')
// 检查是否只是单个0,如果是则设为空字符串
const value = numericValue === '0' ? '1' : numericValue
console.log('value:', value)
this.$set(this.requoteObj, 'customerTargetPrice', value)
},
......@@ -492,8 +497,12 @@ export default {
console.log(res, 'res')
if (res.data.code == 0) {
uni.hideLoading()
// uni.showToast({
// title: '电子签约已发送,请注意查收短信,全款款项已申请,完成代保管协议电子签约后将安排支付全款',
// icon: 'none'
// })
uni.showToast({
title: '电子签约已发送,请注意查收短信',
title: this.payPopupObj.status == 40 && this.payPopupObj.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none'
})
this.$refs.signAgreementPopup.closePopup()
......@@ -592,7 +601,7 @@ export default {
this.search()
}, 1000)
} else {
this.cancelSignObj.cancelReason = ''
// this.cancelSignObj.cancelReason = ''
uni.hideLoading()
uni.showToast({
title: res.data.msg || '请求失败',
......@@ -601,7 +610,7 @@ export default {
}
})
.catch(() => {
this.cancelSignObj.cancelReason = ''
// this.cancelSignObj.cancelReason = ''
// this.$refs.cancleSignPopup.closePopup()
})
},
......@@ -652,7 +661,10 @@ export default {
const res = await uni.$api.evaluationApi.getCustodyAgreementList()
if (res.data.code == 0) {
this.signAgreementObj.custodianName = res.data.data[0].name
this.signAgreementObj.custodianPhone = res.data.data[0].conversionPhone
this.signAgreementObj.custodianPhone = res.data.data[0].phone
this.signAgreementObj.custodianIdentityCode = res.data.data[0].idCard
this.signAgreementObj.custodianAddress = res.data.data[0].address
this.custodyAgreementObj = res.data.data[0]
}
} else {
uni.hideLoading()
......
......@@ -443,7 +443,7 @@ export default {
sourceKey: 'uuid',
targetKey: 'handoverAddress',
type: 'input',
maxlength: 100
maxlength: 43
}
],
formFields2: [
......@@ -458,7 +458,7 @@ export default {
targetKey: 'payeeName',
targetObj: '',
type: 'input',
maxlength: 50
maxlength: 36
},
{
key: 'bankCardNumber',
......@@ -486,7 +486,7 @@ export default {
targetKey: 'bankOfDeposit',
targetObj: '',
type: 'input',
maxlength: 100
maxlength: 36
}
],
query: null,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!