wk
2024-10-23 f22e264b6c282f597a139f549025cb9120fe0da1
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',