Commit fe6a8a7d by cen

fix: 验证信息

1 parent 2948f95d
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.5473145780051151) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.5341005967604433) calc(100vmin * (1173 / 768) * -0.6717817561807332);}
.icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
...@@ -394,4 +394,6 @@ ...@@ -394,4 +394,6 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.5221653878942881) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.5221653878942881) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.44075021312872975) calc(100vmin * (1173 / 768) * -0.6717817561807332);}
\ No newline at end of file \ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.44075021312872975) calc(100vmin * (1173 / 768) * -0.6717817561807332);}
.icon-feedbackIcon { width: calc(100vmin * (1173 / 768) * 0.011082693947144074); height: calc(100vmin * (1173 / 768) * 0.011082693947144074);
background-position: calc(100vmin * (1173 / 768) * -0.5473145780051151) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
\ No newline at end of file \ No newline at end of file

2.79 MB | W: | H:

2.79 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -383,7 +383,7 @@ export default { ...@@ -383,7 +383,7 @@ export default {
] ]
}, },
{ key: 'productionDate', label: '生产日期', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'productionDate', targetObj: 'carBaseReqDTO', type: 'calendar', endDate: true }, { key: 'productionDate', label: '生产日期', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'productionDate', targetObj: 'carBaseReqDTO', type: 'calendar', endDate: true },
{ key: 'guidePrice', label: '指导价', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'guidePrice', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '元', isCell: true }, { key: 'guidePrice', label: '指导价', inputType: 'number', min: 0, max: 999999.99, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'guidePrice', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '元', isCell: true },
{ {
key: 'buyNewCar', key: 'buyNewCar',
label: '是否购买新车', label: '是否购买新车',
...@@ -452,7 +452,7 @@ export default { ...@@ -452,7 +452,7 @@ export default {
{ {
key: 'conditionDescription', key: 'conditionDescription',
label: '车况描述', label: '车况描述',
required: true, required: false,
fullWidth: true, fullWidth: true,
targetNameKey: 'sellerName', targetNameKey: 'sellerName',
sourceNameKey: 'staffName', sourceNameKey: 'staffName',
...@@ -469,7 +469,7 @@ export default { ...@@ -469,7 +469,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' }, { key: 'previousOwnerName', label: '原车主名称', required: true, fullWidth: false, targetKey: 'previousOwnerName', targetObj: 'carLicenseReqDTO', type: 'input', maxlength: 50 },
{ 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',
...@@ -517,6 +517,16 @@ export default { ...@@ -517,6 +517,16 @@ export default {
onLoad(options) { onLoad(options) {
this.init(options) this.init(options)
}, },
onBackPress(options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this.backPage()
return true
}
// 其他情况允许正常返回
return false
},
mounted() { mounted() {
console.log(this.query) console.log(this.query)
if (this.query.type == 'edit') { if (this.query.type == 'edit') {
...@@ -697,9 +707,9 @@ export default { ...@@ -697,9 +707,9 @@ export default {
// 指导价验证 - 数字,0-999999 // 指导价验证 - 数字,0-999999
const guidePrice = this.formData.carBaseReqDTO.guidePrice const guidePrice = this.formData.carBaseReqDTO.guidePrice
const priceRegex = /^[0-9]{1,6}$/ const priceRegex = /^[0-9]{1,6}$/
if (!priceRegex.test(guidePrice) || guidePrice < 0 || guidePrice > 999999) { if (!priceRegex.test(guidePrice) || guidePrice < 0 || guidePrice > 999999.99) {
uni.showToast({ uni.showToast({
title: '指导价必须为0-999999之间的数字', title: '指导价必须为0-999999.99之间的数字',
icon: 'none' icon: 'none'
}) })
return return
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view v-if="field.isScan" class="flex align-center scanBtn justify-center" @click.stop="scan('vinOcr')"> <view v-if="field.isScan" class="flex align-center scanBtn justify-center" @click.stop="scan('vinOcr')">
<view class="sprite-icon icon-scanIconX"></view> <view class="sprite-icon icon-scanIconX"></view>
</view> </view>
<text v-if="field.isCell" class="ml-12 cellLabel">{{ field.cell }}</text> <text v-if="field.isCell" class="ml-12 cellLabel" :class="{ disabled: field.disabled }">{{ field.cell }}</text>
</template> </template>
<template v-if="field.type === 'select'"> <template v-if="field.type === 'select'">
<view class="flex align-center from-value"> <view class="flex align-center from-value">
...@@ -300,6 +300,11 @@ export default { ...@@ -300,6 +300,11 @@ export default {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
} }
.cellLabel.disabled {
color: #999999;
font-size: toRpx(28);
font-weight: 400;
}
.form-item-textarea { .form-item-textarea {
flex-direction: column; flex-direction: column;
align-items: start; align-items: start;
......
...@@ -51,10 +51,17 @@ ...@@ -51,10 +51,17 @@
</view> </view>
<ButtonModule @button-click="$emit('button-click', { ...$event, ...carInfo })" :status="carInfo.status" :subStatus="carInfo.subStatus" :paymentType="carInfo.paymentType"></ButtonModule> <ButtonModule @button-click="$emit('button-click', { ...$event, ...carInfo })" :status="carInfo.status" :subStatus="carInfo.subStatus" :paymentType="carInfo.paymentType"></ButtonModule>
</view> </view>
<view v-if="carInfo.status == -1"> <view v-if="carInfo.status == -1">
<view class="tips px-20"> <view class="text-ellipsis tips px-20 justify-between">
<view class="sprite-icon icon-study-tips"></view> <view class="flex-1 flex align-center">
<view class="text-ellipsis">驳回原因:{{ carInfo.rejectReason }}</view> <view class="sprite-icon icon-study-tips"></view>
驳回原因:{{ carInfo.rejectReason }}
</view>
<view class="flex-1 flex align-center">
<view class="sprite-icon icon-feedbackIcon"></view>
驳回意见:{{ carInfo.rejectSuggestion }}
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -237,6 +244,9 @@ export default { ...@@ -237,6 +244,9 @@ export default {
.icon-study-tips { .icon-study-tips {
margin-right: toRpx(8); margin-right: toRpx(8);
} }
.icon-feedbackIcon {
margin-right: toRpx(8);
}
.waitinputorder-btn { .waitinputorder-btn {
width: toRpx(136); width: toRpx(136);
height: toRpx(50); height: toRpx(50);
......
...@@ -220,6 +220,16 @@ export default { ...@@ -220,6 +220,16 @@ export default {
onLoad(options) { onLoad(options) {
this.init(options) this.init(options)
}, },
onBackPress(options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this.backPage()
return true
}
// 其他情况允许正常返回
return false
},
methods: { methods: {
init(options) { init(options) {
this.query = options this.query = options
...@@ -489,7 +499,7 @@ export default { ...@@ -489,7 +499,7 @@ export default {
}, },
// 预览PDF // 预览PDF
previewPdf(field) { previewPdf(field) {
const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${this.pdfUrl}&title=pdf&fileUrltype=pdf` const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${this.pdfUrl}&title=pdf&fileUrltype=pdf&Signature=true`
uni.navigateTo({ uni.navigateTo({
url: `${url}` url: `${url}`
}) })
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</view> </view>
</view> </view>
<view class="upload-box mb-32"> <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"> <view class="flex upload-item-container" v-for="field in uploadCertificateFields" :key="field.key">
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<image :src="getImageBySubtype(field.key).fileUrl + videoProcess" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 2)"></image> <image :src="getImageBySubtype(field.key).fileUrl + videoProcess" mode="aspectFill" class="uploaded-media" @click.stop="previewMedia(getImageBySubtype(field.key).fileUrl, 2)"></image>
<!-- <video :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" controls class="uploaded-media"></video> --> <!-- <video :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" controls class="uploaded-media"></video> -->
<view class="video-play-icon"> <view class="video-play-icon">
<view class="sprite-icon icon-play"></view> <view class="sprite-icon icon-upload-play"></view>
</view> </view>
</view> </view>
</view> </view>
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<view class="upload-box mb-32" v-if="hasAnyOtherImage"> <view class="upload-box mb-32" v-if="hasAnyOtherImage">
<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 uploadOtherFields" :key="field.key"> <view class="flex upload-item-container fullwidth" v-for="field in uploadOtherFields" :key="field.key">
<view class="upload-label" v-if="getImageBySubtype(field.key)"> <view class="upload-label" v-if="getImageBySubtype(field.key)">
{{ field.label }} {{ field.label }}
</view> </view>
...@@ -587,6 +587,13 @@ export default { ...@@ -587,6 +587,13 @@ export default {
const image = this.getImageBySubtype(field.key) const image = this.getImageBySubtype(field.key)
return image && (Array.isArray(image) ? image.length > 0 : image.fileUrl) return image && (Array.isArray(image) ? image.length > 0 : image.fileUrl)
}) })
},
hasCertificateImage() {
return this.uploadCertificateFields.some(field => {
const image = this.getImageBySubtype(field.key)
console.log('image', image)
return image && (Array.isArray(image) ? image.length > 0 : image.fileUrl)
})
} }
}, },
mounted() {}, mounted() {},
...@@ -956,14 +963,19 @@ export default { ...@@ -956,14 +963,19 @@ export default {
} }
.upload-images-wrapper { .upload-images-wrapper {
display: flex; display: flex;
flex-wrap: wrap;
gap: toRpx(16); gap: toRpx(16);
flex: 1; flex: 1;
min-width: 0;
} }
&.fullwidth { &.fullwidth {
grid-column: 1 / -1; // 跨越所有列 grid-column: 1 / -1; // 跨越所有列
.upload-label { .upload-label {
flex: none; flex: none;
} }
.upload-images-wrapper {
width: 100%;
}
} }
} }
...@@ -1016,16 +1028,17 @@ export default { ...@@ -1016,16 +1028,17 @@ export default {
/* 视频播放图标 */ /* 视频播放图标 */
.video-play-icon { .video-play-icon {
position: absolute; position: absolute;
top: 50%; bottom: 0;
left: 50%; left: toRpx(36);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: toRpx(60); width: toRpx(40);
height: toRpx(60); height: toRpx(40);
background-color: rgba(0, 0, 0, 0.5); background-color: #fff;
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
z-index: 2;
} }
} }
.no-bac { .no-bac {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="back" @click.stop="backPage"> <view class="back" @click.stop="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons> <uni-icons type="left" :size="20" color="#000"></uni-icons>
</view> </view>
<view class="title">签约信息</view> <view class="title">{{ title }}</view>
</view> </view>
<view class="detail-content"> <view class="detail-content">
<view class="box-class mt-16" v-if="!comfirmPage"> <view class="box-class mt-16" v-if="!comfirmPage">
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
<view class="gridBox mb-32"> <view class="gridBox mb-32">
<view class="flex align-center"> <view class="flex align-center">
<view class="title-label-see mr-16">合同模版</view> <view class="title-label-see mr-16">合同模版</view>
<view>{{ formData.paymentType == 1 ? '二手车买卖合同(定金+尾款)' : '二手车买卖合同(全款)' }}</view> <view>{{ formData.paymentType == 1 ? '二手车转让协议(定金+尾款)' : '二手车转让协议(全款)' }}</view>
</view> </view>
</view> </view>
<view class="flex align-center gridBox mb-32"> <view class="flex align-center gridBox mb-32">
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
请确认签约个人信息,确认后将按照以上信息生成电子合同,并发送电子签约邀请。 请确认签约个人信息,确认后将按照以上信息生成电子合同,并发送电子签约邀请。
</view> </view>
<view class="footerBtn"> <view class="footerBtn">
<view class="btn cancle" @click.stop="comfirmPage = false">上一步</view> <view class="btn cancle" @click.stop="prevPage">上一步</view>
<view class="btn next" @click.stop="comfirm">确认发送</view> <view class="btn next" @click.stop="comfirm">确认发送</view>
</view> </view>
</view> </view>
...@@ -287,6 +287,7 @@ export default { ...@@ -287,6 +287,7 @@ export default {
return { return {
comfirmPage: false, comfirmPage: false,
signInfo: {}, signInfo: {},
title: '签约信息',
selectDate: '', selectDate: '',
current: null, current: null,
endDate: dayjs().format('YYYY-MM-DD'), endDate: dayjs().format('YYYY-MM-DD'),
...@@ -295,11 +296,11 @@ export default { ...@@ -295,11 +296,11 @@ export default {
radioList: [ radioList: [
{ {
value: 1, value: 1,
name: '二手车买卖合同(定金+尾款)' name: '二手车转让协议(定金+尾款)'
}, },
{ {
value: 2, value: 2,
name: '二手车买卖合同(全款)' name: '二手车转让协议(全款)'
} }
], ],
checkboxList: [ checkboxList: [
...@@ -376,7 +377,7 @@ export default { ...@@ -376,7 +377,7 @@ export default {
formData: { formData: {
evalOrderNo: '', evalOrderNo: '',
paymentType: 0, paymentType: 0,
depositPrice: 0, depositPrice: '',
finalPrice: 0, finalPrice: 0,
fullPrice: 0, fullPrice: 0,
partAName: '', partAName: '',
...@@ -497,6 +498,16 @@ export default { ...@@ -497,6 +498,16 @@ export default {
onLoad(options) { onLoad(options) {
this.init(options) this.init(options)
}, },
onBackPress(options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this.backPage()
return true
}
// 其他情况允许正常返回
return false
},
mounted() { mounted() {
this.userInfo = uni.$storage.get('userInfo') || {} this.userInfo = uni.$storage.get('userInfo') || {}
console.log('userInfo', this.userInfo) console.log('userInfo', this.userInfo)
...@@ -617,6 +628,8 @@ export default { ...@@ -617,6 +628,8 @@ export default {
sourceKey: 'uuid', sourceKey: 'uuid',
targetKey: 'evalPrice', targetKey: 'evalPrice',
type: 'input', type: 'input',
cell: '元',
isCell: true,
disabled: true disabled: true
}, },
{ {
...@@ -669,8 +682,8 @@ export default { ...@@ -669,8 +682,8 @@ export default {
} }
] ]
if (value === 1) { if (value === 1) {
this.formData.finalPrice = 0 this.formData.finalPrice = ''
this.formData.depositPrice = 0 this.formData.depositPrice = ''
// 定金+尾款模式 // 定金+尾款模式
// 如果之前有填写全款金额,则将其分配给定金和尾款 // 如果之前有填写全款金额,则将其分配给定金和尾款
if (this.formData.fullPrice > 0) { if (this.formData.fullPrice > 0) {
...@@ -707,6 +720,8 @@ export default { ...@@ -707,6 +720,8 @@ export default {
sourceKey: 'uuid', sourceKey: 'uuid',
targetKey: 'evalPrice', targetKey: 'evalPrice',
type: 'input', type: 'input',
cell: '元',
isCell: true,
disabled: true disabled: true
}, },
{ {
...@@ -768,7 +783,26 @@ export default { ...@@ -768,7 +783,26 @@ export default {
// 设置当前选中的索引 // 设置当前选中的索引
this.current = this.radioList.findIndex(item => item.value === value) this.current = this.radioList.findIndex(item => item.value === value)
}, },
blurChange(value, field) {}, blurChange(value, field) {
if (field.key === 'idCard' && value) {
const idCardPattern = /^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
if (value.length !== 18) {
uni.showToast({
title: '身份证号长度应为18位',
icon: 'none'
})
return
}
if (!idCardPattern.test(value)) {
uni.showToast({
title: '请输入正确的身份证号码',
icon: 'none'
})
return
}
}
},
checkboxChange(e) { checkboxChange(e) {
console.log('checkboxChange', e.detail) console.log('checkboxChange', e.detail)
// 创建结果对象,将选中的key设为1,未选中的设为0 // 创建结果对象,将选中的key设为1,未选中的设为0
...@@ -900,6 +934,10 @@ export default { ...@@ -900,6 +934,10 @@ export default {
] ]
this.$refs.notice.open() this.$refs.notice.open()
}, },
prevPage() {
this.comfirmPage = false
this.title = '签约信息'
},
nextPage() { nextPage() {
if (!this.formData.paymentType) { if (!this.formData.paymentType) {
uni.showToast({ uni.showToast({
...@@ -908,6 +946,7 @@ export default { ...@@ -908,6 +946,7 @@ export default {
}) })
return return
} }
const formFieldsRequired = this.formFields.filter(field => field.required) const formFieldsRequired = this.formFields.filter(field => field.required)
for (const field of formFieldsRequired) { for (const field of formFieldsRequired) {
const value = this.formData[field.targetKey] const value = this.formData[field.targetKey]
...@@ -941,6 +980,14 @@ export default { ...@@ -941,6 +980,14 @@ export default {
return return
} }
} }
const idCardPattern = /^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
if (!idCardPattern.test(this.formData.idCard)) {
uni.showToast({
title: '请输入正确的身份证号码',
icon: 'none'
})
return
}
if (!this.formData.idCardFrontUrl) { if (!this.formData.idCardFrontUrl) {
uni.showToast({ uni.showToast({
title: '请上传身份证正面照片', title: '请上传身份证正面照片',
...@@ -955,6 +1002,7 @@ export default { ...@@ -955,6 +1002,7 @@ export default {
}) })
return return
} }
this.title = '确认签约信息'
this.comfirmPage = true this.comfirmPage = true
}, },
comfirm: debounce(function (e) { comfirm: debounce(function (e) {
...@@ -1025,8 +1073,8 @@ export default { ...@@ -1025,8 +1073,8 @@ export default {
}) })
}, },
pdfPreview() { pdfPreview() {
const pdfUrl = 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/696fdf0c-0287-4bcd-9d4e-6b423f2fe5ba%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.docx' const pdfUrl = 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/8981c8ca-8b30-436e-bb17-82fb6a53a3c4%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.pdf'
const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${pdfUrl}&title=pdf&fileType=docx&fileUrltype=docx` const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${pdfUrl}&title=pdf&fileType=pdf&fileUrltype=pdf&Signature=false`
uni.navigateTo({ uni.navigateTo({
url: `${url}` url: `${url}`
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!