From f22e264b6c282f597a139f549025cb9120fe0da1 Mon Sep 17 00:00:00 2001 From: wk Date: 星期三, 23 十月 2024 09:49:06 +0800 Subject: [PATCH] feat:临时入场 --- pages/driver-page/drvier-my/certifiCate/certifiCate.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/driver-page/drvier-my/certifiCate/certifiCate.vue b/pages/driver-page/drvier-my/certifiCate/certifiCate.vue index 662c301..0459210 100644 --- a/pages/driver-page/drvier-my/certifiCate/certifiCate.vue +++ b/pages/driver-page/drvier-my/certifiCate/certifiCate.vue @@ -83,9 +83,11 @@ label="杞︾墝鍙�" prop="carNo" required> - <u--input v-model="tranSportForm.carNo" + <xm-cell special label="杞︾墝鍙�" :value="tranSportForm.carNo" @show="showKeyboard('xmKeyboard')"></xm-cell> + <xm-keyboard-v2 ref="xmKeyboard" @confirm="(v) => tranSportForm.carNo = v"></xm-keyboard-v2> + <!-- <u--input v-model="tranSportForm.carNo" border="none" - inputAlign="left"></u--input> + inputAlign="left"></u--input> --> </u-form-item> <u-form-item labelWidth="20%" label="浜у搧" @@ -425,6 +427,9 @@ } }, + showKeyboard(ref){ + this.$refs[ref].toShow(this.tranSportForm.carNo) + }, editTranClose(){ this.editTranShow = false; }, @@ -435,6 +440,7 @@ .then(res => { let submit=true let idcardtext=/^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/ + const regex = /\*/; if (this.fileList9.length==0) { uni.showToast({ title: '璇烽�夋嫨閫氳璇侊紒', @@ -458,7 +464,7 @@ duration: 2000 }); submit=false - }else if(!idcardtext.test(item.driverIdcard)){ + }else if(!idcardtext.test(item.driverIdcard)&&!regex.test(item.driverIdcard)){ uni.showToast({ title: `璇锋楠岄┚椹跺憳韬唤璇侊紒`, icon: 'error', -- Gitblit v1.9.1