正在显示
2 个修改的文件
包含
21 行增加
和
2 行删除
| @@ -962,6 +962,10 @@ Page({ | @@ -962,6 +962,10 @@ Page({ | ||
| 962 | this.showToast('请填写子女证照号码') | 962 | this.showToast('请填写子女证照号码') |
| 963 | return | 963 | return |
| 964 | } | 964 | } |
| 965 | + if (!format.isIDCardNum(formdata.children_id_card_no)) { | ||
| 966 | + this.showToast('身份证格式有误') | ||
| 967 | + return | ||
| 968 | + } | ||
| 965 | if (!formdata.children_name || formdata.children_name.length < 1) { | 969 | if (!formdata.children_name || formdata.children_name.length < 1) { |
| 966 | this.showToast('请填写子女姓名') | 970 | this.showToast('请填写子女姓名') |
| 967 | return | 971 | return |
| @@ -1002,7 +1006,10 @@ Page({ | @@ -1002,7 +1006,10 @@ Page({ | ||
| 1002 | } else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) { | 1006 | } else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) { |
| 1003 | this.showToast('请填写配偶证照号码') | 1007 | this.showToast('请填写配偶证照号码') |
| 1004 | return | 1008 | return |
| 1005 | - } else if (this.data.loverbirthDate.selected.length < 1) { | 1009 | + } else if (!format.isIDCardNum(formdata.spouse_id_card_no)) { |
| 1010 | + this.showToast('配偶身份证格式有误') | ||
| 1011 | + return | ||
| 1012 | + }else if (this.data.loverbirthDate.selected.length < 1) { | ||
| 1006 | this.showToast('请选择配偶出生日期') | 1013 | this.showToast('请选择配偶出生日期') |
| 1007 | return | 1014 | return |
| 1008 | } | 1015 | } |
| @@ -1092,6 +1099,9 @@ Page({ | @@ -1092,6 +1099,9 @@ Page({ | ||
| 1092 | } else if (!formdata.id_card_no || formdata.id_card_no.length < 1) { | 1099 | } else if (!formdata.id_card_no || formdata.id_card_no.length < 1) { |
| 1093 | this.showToast('请填写赡养人证照号') | 1100 | this.showToast('请填写赡养人证照号') |
| 1094 | return | 1101 | return |
| 1102 | + } else if (!format.isIDCardNum(formdata.id_card_no)) { | ||
| 1103 | + this.showToast('赡养人身份证格式有误') | ||
| 1104 | + return | ||
| 1095 | } | 1105 | } |
| 1096 | if (this.data.olderbirthDate.selected.length < 1) { | 1106 | if (this.data.olderbirthDate.selected.length < 1) { |
| 1097 | this.showToast('请选择赡养人出生日期') | 1107 | this.showToast('请选择赡养人出生日期') |
| @@ -1124,6 +1134,9 @@ Page({ | @@ -1124,6 +1134,9 @@ Page({ | ||
| 1124 | } else if (!formdata.id_card_no || formdata.id_card_no.length < 1) { | 1134 | } else if (!formdata.id_card_no || formdata.id_card_no.length < 1) { |
| 1125 | this.showToast('请填写证照号码') | 1135 | this.showToast('请填写证照号码') |
| 1126 | return | 1136 | return |
| 1137 | + } else if (!format.isIDCardNum(formdata.id_card_no)) { | ||
| 1138 | + this.showToast('身份证格式有误') | ||
| 1139 | + return | ||
| 1127 | } else if (this.data.commonbirthDate.selected.length < 1) { | 1140 | } else if (this.data.commonbirthDate.selected.length < 1) { |
| 1128 | this.showToast('请选择病人出生日期') | 1141 | this.showToast('请选择病人出生日期') |
| 1129 | return | 1142 | return |
| @@ -1221,6 +1234,9 @@ Page({ | @@ -1221,6 +1234,9 @@ Page({ | ||
| 1221 | } else if (!formdata.owner_id_card_no || formdata.owner_id_card_no.length < 1) { | 1234 | } else if (!formdata.owner_id_card_no || formdata.owner_id_card_no.length < 1) { |
| 1222 | this.showToast('请填写证照号码') | 1235 | this.showToast('请填写证照号码') |
| 1223 | return | 1236 | return |
| 1237 | + } else if (!format.isIDCardNum(formdata.owner_id_card_no)) { | ||
| 1238 | + this.showToast('身份证格式有误') | ||
| 1239 | + return | ||
| 1224 | } else if (this.data.rentLocateInfo.address_value[0].length < 1) { | 1240 | } else if (this.data.rentLocateInfo.address_value[0].length < 1) { |
| 1225 | this.showToast('请选择房屋地址') | 1241 | this.showToast('请选择房屋地址') |
| 1226 | return | 1242 | return |
| @@ -1256,6 +1272,9 @@ Page({ | @@ -1256,6 +1272,9 @@ Page({ | ||
| 1256 | } else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) { | 1272 | } else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) { |
| 1257 | this.showToast('请填写配偶证照号码') | 1273 | this.showToast('请填写配偶证照号码') |
| 1258 | return | 1274 | return |
| 1275 | + } else if (!format.isIDCardNum(formdata.spouse_id_card_no)) { | ||
| 1276 | + this.showToast('配偶身份证格式有误') | ||
| 1277 | + return | ||
| 1259 | } else if (this.data.loverbirthDate.selected.length < 1) { | 1278 | } else if (this.data.loverbirthDate.selected.length < 1) { |
| 1260 | this.showToast('请选择配偶出生日期') | 1279 | this.showToast('请选择配偶出生日期') |
| 1261 | return | 1280 | return |
| @@ -110,7 +110,7 @@ Page({ | @@ -110,7 +110,7 @@ Page({ | ||
| 110 | //对各参数初始赋值 | 110 | //对各参数初始赋值 |
| 111 | handleDatas: function (tax_info) { | 111 | handleDatas: function (tax_info) { |
| 112 | 112 | ||
| 113 | - var isDisable = tax_info.certification_status != 'active'//已通过拍摄身份证认证过,不能修改 | 113 | + var isDisable = tax_info.certification_status == 'active'//已通过拍摄身份证认证过,不能修改 |
| 114 | 114 | ||
| 115 | this.data.relativeData.selected = tax_info.family_ties | 115 | this.data.relativeData.selected = tax_info.family_ties |
| 116 | // this.data.cardtypeData.selected = tax_info.id_card_type | 116 | // this.data.cardtypeData.selected = tax_info.id_card_type |
请
注册
或
登录
后发表评论