正在显示
4 个修改的文件
包含
55 行增加
和
36 行删除
... | ... | @@ -135,8 +135,6 @@ Page({ |
135 | 135 | placeholder: '出生日期', |
136 | 136 | mode: "date", |
137 | 137 | fields: "day", |
138 | - start: '1970-01-01', | |
139 | - end: '2018-01-01', | |
140 | 138 | onChange: 'onPickerSelect', |
141 | 139 | }, |
142 | 140 | childedudegreeData: { |
... | ... | @@ -252,8 +250,6 @@ Page({ |
252 | 250 | placeholder: '出生日期', |
253 | 251 | mode: "date", |
254 | 252 | fields: "day", |
255 | - start: '1970-01-01', | |
256 | - end: '2018-01-01', | |
257 | 253 | onChange: 'onPickerSelect', |
258 | 254 | }, |
259 | 255 | beforemarryData: { |
... | ... | @@ -298,7 +294,6 @@ Page({ |
298 | 294 | mode: "date", |
299 | 295 | fields: "month", |
300 | 296 | datelong: 0, |
301 | - start: '1970-01-01', | |
302 | 297 | end: (new Date()).getFullYear() +'-'+ ((new Date()).getMonth()+1), |
303 | 298 | // start: (new Date()).getFullYear() + '-09-01',//'1970-01-01', |
304 | 299 | // end: (new Date()).getFullYear() + '-09-01', |
... | ... | @@ -315,7 +310,6 @@ Page({ |
315 | 310 | onChange: 'onPickerSelect', |
316 | 311 | mode: "date", |
317 | 312 | fields: "month", |
318 | - start: '1970-01-01', | |
319 | 313 | // start: (new Date()).getFullYear() + '-09-01',//'1970-01-01', |
320 | 314 | // end: (new Date()).getFullYear() + '-09-01', |
321 | 315 | // onTap: 'studyDataTap' |
... | ... | @@ -330,7 +324,6 @@ Page({ |
330 | 324 | onChange: 'onPickerSelect', |
331 | 325 | mode: "date", |
332 | 326 | fields: "month", |
333 | - start: '1970-01-01', | |
334 | 327 | // start: (new Date()).getFullYear() + '-07-31',//'1970-01-01', |
335 | 328 | // end: (new Date()).getFullYear() + '-07-31', |
336 | 329 | // onTap: 'studyDataTap', |
... | ... | @@ -347,7 +340,6 @@ Page({ |
347 | 340 | onChange: 'onPickerSelect', |
348 | 341 | mode: "date", |
349 | 342 | fields: "day", |
350 | - start: '1970-01-01', | |
351 | 343 | datelong: 0, |
352 | 344 | }, |
353 | 345 | identifytypeData: { |
... | ... | @@ -434,7 +426,6 @@ Page({ |
434 | 426 | onChange: 'onPickerSelect', |
435 | 427 | mode: "date", |
436 | 428 | fields: "day", |
437 | - start: '1970-01-01', | |
438 | 429 | datelong: 0, |
439 | 430 | }, |
440 | 431 | firstpaybackDate_2: { |
... | ... | @@ -448,7 +439,6 @@ Page({ |
448 | 439 | onChange: 'onPickerSelect', |
449 | 440 | mode: "date", |
450 | 441 | fields: "day", |
451 | - start: '1970-01-01', | |
452 | 442 | datelong: 0, |
453 | 443 | }, |
454 | 444 | leasestartDate: { |
... | ... | @@ -462,7 +452,6 @@ Page({ |
462 | 452 | onChange: 'onPickerSelect', |
463 | 453 | mode: "date", |
464 | 454 | fields: "day", |
465 | - start: '1970-01-01', | |
466 | 455 | datelong: 0, |
467 | 456 | }, |
468 | 457 | leaseendDate: { |
... | ... | @@ -476,7 +465,6 @@ Page({ |
476 | 465 | onChange: 'onPickerSelect', |
477 | 466 | mode: "date", |
478 | 467 | fields: "day", |
479 | - start: '1970-01-01', | |
480 | 468 | datelong: 0, |
481 | 469 | }, |
482 | 470 | loandatelongData: { |
... | ... | @@ -496,7 +484,7 @@ Page({ |
496 | 484 | // selected: '中国', |
497 | 485 | // isblack: 'true', |
498 | 486 | values: [], |
499 | - // placeholder: '中国', | |
487 | + placeholder: '请选择就读国家(地区)', | |
500 | 488 | onChange: 'onPickerSelect', |
501 | 489 | }, |
502 | 490 | countryData: { |
... | ... | @@ -726,6 +714,7 @@ Page({ |
726 | 714 | if (data.name && data.name.length) { |
727 | 715 | setData.spouse_name = data.name |
728 | 716 | } |
717 | + that.dealCardType(data.id_card_type, 'lovercardtype') | |
729 | 718 | that.data.lovercardtypeData.selected = data.id_card_type |
730 | 719 | setData.lovercardtypeData = that.data.lovercardtypeData |
731 | 720 | if (data.id_card_no && data.id_card_no.length) { |
... | ... | @@ -734,11 +723,11 @@ Page({ |
734 | 723 | that.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input') |
735 | 724 | } |
736 | 725 | } |
737 | - that.data.loverbirthDate.selected = format.formatTime_date(data.birth_date) | |
726 | + that.data.loverbirthDate.selected = data.birth_date_str//format.formatTime_date(data.birth_date) | |
738 | 727 | that.data.loverbirthDate.datelong = data.birth_date |
739 | 728 | setData.loverbirthDate = that.data.loverbirthDate |
740 | 729 | that.data.loverCountryData.selected = data.native |
741 | - that.data.loverCountryData.disabled = true | |
730 | + // that.data.loverCountryData.disabled = true | |
742 | 731 | setData.loverCountryData = that.data.loverCountryData |
743 | 732 | that.setData(setData) |
744 | 733 | } |
... | ... | @@ -1029,6 +1018,12 @@ Page({ |
1029 | 1018 | setData.spouse_name = data.spouse_name |
1030 | 1019 | } |
1031 | 1020 | this.dealCardType(data.id_card_type, 'lovercardtype') |
1021 | + var loverbirthDate = this.data.loverbirthDate | |
1022 | + loverbirthDate.selected = format.formatTime_date(data.birthday)//(data.spouse_birthday) | |
1023 | + loverbirthDate.datelong = data.spouse_birthday | |
1024 | + setData.loverbirthDate = loverbirthDate | |
1025 | + this.data.loverCountryData.selected = data.nation | |
1026 | + setData.loverCountryData = this.data.loverCountryData | |
1032 | 1027 | if (data.id_card_no && data.id_card_no.length) { |
1033 | 1028 | setData.spouse_id_card_no = data.id_card_no |
1034 | 1029 | if ('居民身份证' == data.id_card_type) { |
... | ... | @@ -1171,7 +1166,7 @@ Page({ |
1171 | 1166 | this.data.countryData.selected = data.native |
1172 | 1167 | setData.countryData = this.data.countryData |
1173 | 1168 | var commonbirthDate = this.data.commonbirthDate |
1174 | - commonbirthDate.selected = format.formatTime_date(data.birth_date) | |
1169 | + commonbirthDate.selected = data.birth_date_str//format.formatTime_date(data.birth_date) | |
1175 | 1170 | commonbirthDate.datelong = data.birth_date |
1176 | 1171 | setData.commonbirthDate = commonbirthDate |
1177 | 1172 | if (data.id_card_no && data.id_card_no.length) { |
... | ... | @@ -1194,9 +1189,11 @@ Page({ |
1194 | 1189 | this.dealCardType(data.id_card_type, 'oldercardtype')//为防止干扰其他字段,需要先执行 |
1195 | 1190 | var setData = {} |
1196 | 1191 | var olderbirthDate = this.data.olderbirthDate |
1197 | - olderbirthDate.selected = format.formatTime_date(data.birth_date) | |
1192 | + olderbirthDate.selected = data.birth_date_str//format.formatTime_date(data.birth_date) | |
1198 | 1193 | olderbirthDate.datelong = data.birth_date |
1199 | 1194 | setData.olderbirthDate = olderbirthDate |
1195 | + this.data.olderCountryData.selected = data.native | |
1196 | + setData.olderCountryData = this.data.olderCountryData | |
1200 | 1197 | if (data.name && data.name.length) { |
1201 | 1198 | setData.supported_name = data.name |
1202 | 1199 | } |
... | ... | @@ -1309,6 +1306,7 @@ Page({ |
1309 | 1306 | children_name: id_info.name, |
1310 | 1307 | commonbirthDate: that.data.commonbirthDate |
1311 | 1308 | } |
1309 | + that.dealBrithDate(info.birthDay)//根据出生日期 计算 学前受教育时间 | |
1312 | 1310 | if (format.getAge(birth_day) < 3) { |
1313 | 1311 | that.showToast('子女年龄小于3岁,不可申报') |
1314 | 1312 | } |
... | ... | @@ -2114,6 +2112,15 @@ Page({ |
2114 | 2112 | break; |
2115 | 2113 | } |
2116 | 2114 | }, |
2115 | + //根据出生日期 计算 学前受教育时间 | |
2116 | + dealBrithDate: function (birthDay){ | |
2117 | + if (this.data.childedudegreeData.selected == '学前教育阶段') { | |
2118 | + var year = birthDay.substring(0, 4) | |
2119 | + year = parseInt(year) + 3 | |
2120 | + var month = birthDay.substring(4, 7) | |
2121 | + this.handleStartDate(year + month, true) //处理受教育时间起的逻辑 | |
2122 | + } | |
2123 | + }, | |
2117 | 2124 | //根据身份证号码,获取相关信息 |
2118 | 2125 | dealIdInfo: function (idCardNum, idcard_belong) { |
2119 | 2126 | var info = format.analyzeIDCard(idCardNum) |
... | ... | @@ -2125,6 +2132,7 @@ Page({ |
2125 | 2132 | data = { |
2126 | 2133 | commonbirthDate: this.data.commonbirthDate |
2127 | 2134 | } |
2135 | + this.dealBrithDate(info.birthDay)//根据出生日期 计算 学前受教育时间 | |
2128 | 2136 | if (info.age<3){ |
2129 | 2137 | this.showToast('子女年龄小于3岁,不可申报') |
2130 | 2138 | } |
... | ... | @@ -2464,6 +2472,7 @@ Page({ |
2464 | 2472 | case 'commonbirthday': |
2465 | 2473 | var children_birthDate = this.data.commonbirthDate |
2466 | 2474 | children_birthDate.selected = e.detail.value |
2475 | + this.dealBrithDate(e.detail.value)//根据出生日期 计算 学前受教育时间 | |
2467 | 2476 | children_birthDate.datelong = (Date.parse(new Date(e.detail.value)) / 1000) |
2468 | 2477 | this.setData({ |
2469 | 2478 | commonbirthDate: children_birthDate | ... | ... |
... | ... | @@ -138,7 +138,7 @@ |
138 | 138 | <text class='text_777_30 float_left'>被赡养人证照号码</text> |
139 | 139 | <view> |
140 | 140 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="older_id_card_no" hidden='{{!isIdCard_older}}'></image> |
141 | - <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='18' type='idcard' name='id_card_no' value='{{id_card_no}}' bindinput="idChange" bindblur="idDone" id="older_id_card_no_input"></input> | |
141 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='18' name='id_card_no' value='{{id_card_no}}' bindinput="idChange" bindblur="idDone" id="older_id_card_no_input"></input> | |
142 | 142 | </view> |
143 | 143 | </view> |
144 | 144 | <view class='divide_line_30'></view> |
... | ... | @@ -309,7 +309,7 @@ |
309 | 309 | <text class='text_777_30 float_left head_in'>证照号码</text> |
310 | 310 | <view> |
311 | 311 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="owner_id_card_no" hidden='{{!isIdCard_owner}}'></image> |
312 | - <input class='input_wrap' placeholder-class='text_999_30 float_right' style=' line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='18' type='idcard' name='owner_id_card_no' value='{{owner_id_card_no}}' bindinput="idChange" bindblur="idDone" id='owner_id_card_no_input'></input> | |
312 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style=' line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='18' name='owner_id_card_no' value='{{owner_id_card_no}}' bindinput="idChange" bindblur="idDone" id='owner_id_card_no_input'></input> | |
313 | 313 | </view> |
314 | 314 | </view> |
315 | 315 | </view> |
... | ... | @@ -359,7 +359,7 @@ |
359 | 359 | <view class='divide_line_30'></view> |
360 | 360 | <view style='height:90rpx'> |
361 | 361 | <text class='text_777_30 float_left head_in'>配偶姓名</text> |
362 | - <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入配偶姓名' name='spouse_name' value='{{spouse_name}}' disabled='{{hasGetLover}}'></input> | |
362 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入配偶姓名' name='spouse_name' value='{{spouse_name}}'></input><!-- disabled='{{hasGetLover}}' --> | |
363 | 363 | </view> |
364 | 364 | <view class='divide_line_30'></view> |
365 | 365 | <template is="picker_cell_normal" data="{{...lovercardtypeData}}" /> |
... | ... | @@ -367,8 +367,8 @@ |
367 | 367 | <view style='height:90rpx'> |
368 | 368 | <text class='text_777_30 float_left head_in'>配偶证照号码</text> |
369 | 369 | <view> |
370 | - <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden='{{hasGetLover || !isIdCard_lover}}' id="spouse_id_card_no"></image> | |
371 | - <input class='input_wrap' style='color:#000;' placeholder='请输入证照号码' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='18' type='idcard' value='{{spouse_id_card_no}}' bindinput="idChange" bindblur="idDone" id='spouse_id_card_no_input' disabled='{{hasGetLover}}'></input> | |
370 | + <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden='{{!isIdCard_lover}}' id="spouse_id_card_no"></image><!-- hidden='{{hasGetLover || !isIdCard_lover}}' --> | |
371 | + <input class='input_wrap' style='color:#000;' placeholder='请输入证照号码' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='18' value='{{spouse_id_card_no}}' bindinput="idChange" bindblur="idDone" id='spouse_id_card_no_input'></input><!-- disabled='{{hasGetLover}}' --> | |
372 | 372 | </view> |
373 | 373 | </view> |
374 | 374 | <view class='divide_line_30'></view> | ... | ... |
... | ... | @@ -1230,19 +1230,33 @@ Page({ |
1230 | 1230 | this.showtoast('手机号码有误'); |
1231 | 1231 | return |
1232 | 1232 | } |
1233 | + if (formdata.current_address_detail.length > 0 && this.data.currentaddressInfo.selected.length < 1) { | |
1234 | + this.showtoast('请选择居住地址'); | |
1235 | + return | |
1236 | + } | |
1233 | 1237 | if (this.data.curAddress_haschanged) {//选择了地址 || this.data.taxInfo.current_address.province_code |
1234 | 1238 | if (formdata.current_address_detail.length < 1) { |
1235 | 1239 | this.showtoast('请填写详细居住地址'); |
1236 | 1240 | return |
1237 | 1241 | } |
1238 | 1242 | } |
1243 | + if (formdata.huji_address_detail.length > 0 && this.data.birthaddressInfo.selected.length < 1) { | |
1244 | + this.showtoast('请选择户籍地址'); | |
1245 | + return | |
1246 | + } | |
1239 | 1247 | if (this.data.birthAddress_haschanged) {//选择了地址 || this.data.taxInfo.huji_address.province_code |
1240 | 1248 | if (formdata.huji_address_detail.length < 1) { |
1241 | 1249 | this.showtoast('请填写详细户籍地址'); |
1242 | 1250 | return |
1243 | 1251 | } |
1244 | 1252 | } |
1245 | - if (this.data.contactAddress_haschanged) {//选择了地址 || this.data.taxInfo.contact_address.province_code | |
1253 | + if (this.data.hasOtherCard && formdata.contact_address_detail.length > 0) { | |
1254 | + if (this.data.contactaddressInfo.selected.length < 1) { | |
1255 | + this.showtoast('请选择联系地址'); | |
1256 | + return | |
1257 | + } | |
1258 | + } | |
1259 | + if (this.data.hasOtherCard && this.data.contactAddress_haschanged) {//选择了地址 || this.data.taxInfo.contact_address.province_code | |
1246 | 1260 | if (formdata.contact_address_detail.length < 1) { |
1247 | 1261 | this.showtoast('请填写详细联系地址'); |
1248 | 1262 | return |
... | ... | @@ -1256,21 +1270,17 @@ Page({ |
1256 | 1270 | // this.showtoast('邮箱格式有误'); |
1257 | 1271 | // return |
1258 | 1272 | // } |
1273 | + if (this.data.bankInfo.selected.length > 0 && formdata.bank_account.length < 1) { | |
1274 | + this.showtoast('请输入银行卡号') | |
1275 | + return | |
1276 | + } | |
1259 | 1277 | if (formdata.bank_account && formdata.bank_account.length > 0) { |
1260 | 1278 | if (!format.banknoCheck(formdata.bank_account)){ |
1261 | - wx.showToast({ | |
1262 | - title: '银行卡号格式有误', | |
1263 | - duration: 2000, | |
1264 | - icon: 'none' | |
1265 | - }) | |
1279 | + this.showtoast('银行卡号格式有误') | |
1266 | 1280 | return |
1267 | 1281 | } |
1268 | 1282 | if (!this.data.bankInfo.selected) { |
1269 | - wx.showToast({ | |
1270 | - title: '请选择开户银行', | |
1271 | - duration: 2000, | |
1272 | - icon: 'none' | |
1273 | - }) | |
1283 | + this.showtoast('请选择开户银行') | |
1274 | 1284 | return |
1275 | 1285 | } |
1276 | 1286 | } |
... | ... | @@ -1370,8 +1380,8 @@ Page({ |
1370 | 1380 | "is_lonely_man": that.data.lonelyolderInfo.selected, |
1371 | 1381 | "comment": formdata.comment, |
1372 | 1382 | |
1373 | - "contact_address": request_contact_address, | |
1374 | - "contact_address_detail": formdata.contact_address_detail, | |
1383 | + "contact_address": that.data.hasOtherCard ? request_contact_address : {}, | |
1384 | + "contact_address_detail": that.data.hasOtherCard ? formdata.contact_address_detail: '', | |
1375 | 1385 | |
1376 | 1386 | // "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : this.data.taxInfo.join_date, |
1377 | 1387 | // "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : this.data.taxInfo.separate_date, | ... | ... |
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | <text class='text_777_30 float_left' style='line-height: 90rpx'>证照号码</text> |
30 | 30 | <view> |
31 | 31 | <image wx:if="{{isIdCard}}" class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}"></image> |
32 | - <input class='input_wrap' disabled="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='30' bindblur='idcardblur' bindinput = 'bindinputcardnum' type="{{isIdCard.length?'idcard':''}}"></input> | |
32 | + <input class='input_wrap' disabled="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='30' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> | |
33 | 33 | <!-- <input class='input_wrap' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value='{{card_number}}' name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> |
34 | 34 | <input class='input_wrap' hidden="{{taxInfo.certification_status!='active'}}" placeholder="{{card_number?card_number:'身份证号获取失败'}}" name='id_card_no' disabled='true'></input> --> |
35 | 35 | <view class="divide_line_30"></view> | ... | ... |
请
注册
或
登录
后发表评论