Commit a21fd589 by cen

fix: 样式修复

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