正在显示
5 个修改的文件
包含
22 行增加
和
20 行删除
| @@ -74,6 +74,7 @@ Page({ | @@ -74,6 +74,7 @@ Page({ | ||
| 74 | label: '出生日期', | 74 | label: '出生日期', |
| 75 | bindtype: 'loverbirthday', | 75 | bindtype: 'loverbirthday', |
| 76 | selected: '', | 76 | selected: '', |
| 77 | + disabled: true, | ||
| 77 | placeholder: '请选择出生日期', | 78 | placeholder: '请选择出生日期', |
| 78 | mode: "date", | 79 | mode: "date", |
| 79 | fields: "day", | 80 | fields: "day", |
| @@ -1119,6 +1120,8 @@ Page({ | @@ -1119,6 +1120,8 @@ Page({ | ||
| 1119 | this.showToast('请选择配偶出生日期') | 1120 | this.showToast('请选择配偶出生日期') |
| 1120 | return | 1121 | return |
| 1121 | } | 1122 | } |
| 1123 | + newdata.spouse_id_card_type = '1' //this.data.lovercardtypeData.selected | ||
| 1124 | + newdata.spouse_birthday = this.data.loverbirthDate.datelong | ||
| 1122 | } | 1125 | } |
| 1123 | newdata.has_spouse = this.data.hasLover?'y':'n' | 1126 | newdata.has_spouse = this.data.hasLover?'y':'n' |
| 1124 | newdata.relationship = this.data.taxperson_relativeData.selected | 1127 | newdata.relationship = this.data.taxperson_relativeData.selected |
| @@ -1130,8 +1133,6 @@ Page({ | @@ -1130,8 +1133,6 @@ Page({ | ||
| 1130 | newdata.education_period = this.data.childedudegreeData.selected | 1133 | newdata.education_period = this.data.childedudegreeData.selected |
| 1131 | newdata.school_country = this.data.schoolCountryData.selected | 1134 | newdata.school_country = this.data.schoolCountryData.selected |
| 1132 | newdata.children_nation = "中国" | 1135 | newdata.children_nation = "中国" |
| 1133 | - newdata.spouse_id_card_type = '1' //this.data.lovercardtypeData.selected | ||
| 1134 | - newdata.spouse_birthday = this.data.loverbirthDate.datelong | ||
| 1135 | newdata.nation = "中国" | 1136 | newdata.nation = "中国" |
| 1136 | break; | 1137 | break; |
| 1137 | case 'continuing_education': | 1138 | case 'continuing_education': |
| @@ -1408,11 +1409,11 @@ Page({ | @@ -1408,11 +1409,11 @@ Page({ | ||
| 1408 | this.showToast('请填写租赁合同编号') | 1409 | this.showToast('请填写租赁合同编号') |
| 1409 | return | 1410 | return |
| 1410 | } else if (this.data.leasestartDate.selected.length < 1) { | 1411 | } else if (this.data.leasestartDate.selected.length < 1) { |
| 1411 | - this.showToast('请选择日期') | 1412 | + this.showToast('请选择租赁起始日期') |
| 1412 | return | 1413 | return |
| 1413 | } | 1414 | } |
| 1414 | if (this.data.leaseendDate.selected.length < 1) { | 1415 | if (this.data.leaseendDate.selected.length < 1) { |
| 1415 | - this.showToast('请选择日期') | 1416 | + this.showToast('请选择租赁终止日期') |
| 1416 | return | 1417 | return |
| 1417 | } else { | 1418 | } else { |
| 1418 | var activedDate = (Date.parse(new Date('2019-01-01')) / 1000) | 1419 | var activedDate = (Date.parse(new Date('2019-01-01')) / 1000) |
| @@ -1451,11 +1452,11 @@ Page({ | @@ -1451,11 +1452,11 @@ Page({ | ||
| 1451 | this.showToast('请选择配偶出生日期') | 1452 | this.showToast('请选择配偶出生日期') |
| 1452 | return | 1453 | return |
| 1453 | } | 1454 | } |
| 1455 | + newdata.id_card_no = newdata.spouse_id_card_no ? newdata.spouse_id_card_no : '' | ||
| 1456 | + newdata.id_card_type = '1' //this.data.lovercardtypeData.selected | ||
| 1457 | + newdata.birthday = this.data.loverbirthDate.datelong | ||
| 1454 | } | 1458 | } |
| 1455 | newdata.has_spouse = this.data.hasLover ? 'y' : 'n' | 1459 | newdata.has_spouse = this.data.hasLover ? 'y' : 'n' |
| 1456 | - newdata.id_card_no = newdata.spouse_id_card_no ? newdata.spouse_id_card_no:'' | ||
| 1457 | - newdata.id_card_type = '1' //this.data.lovercardtypeData.selected | ||
| 1458 | - newdata.birthday = this.data.loverbirthDate.datelong | ||
| 1459 | break; | 1460 | break; |
| 1460 | } | 1461 | } |
| 1461 | 1462 |
| @@ -158,7 +158,7 @@ | @@ -158,7 +158,7 @@ | ||
| 158 | <view style='height:90rpx'> | 158 | <view style='height:90rpx'> |
| 159 | <text class='red_star_right_10'>*</text> | 159 | <text class='red_star_right_10'>*</text> |
| 160 | <text class='text_777_30 float_left'>病人姓名</text> | 160 | <text class='text_777_30 float_left'>病人姓名</text> |
| 161 | - <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入姓名' name='name' value='{{name}}'></input> | 161 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入病人姓名' name='name' value='{{name}}'></input> |
| 162 | </view> | 162 | </view> |
| 163 | <view class='divide_line_30'></view> | 163 | <view class='divide_line_30'></view> |
| 164 | 164 | ||
| @@ -326,7 +326,6 @@ | @@ -326,7 +326,6 @@ | ||
| 326 | <text wx:if="{{reducetypeData.selected=='年度'}}" class='text_black_30 float_right' style='line-height: 90rpx;margin-left:20rpx;text-align: right;color:#FF9F00;font-family: PingFangSC-Semibold;'>¥{{deduction_amount}}/年</text> | 326 | <text wx:if="{{reducetypeData.selected=='年度'}}" class='text_black_30 float_right' style='line-height: 90rpx;margin-left:20rpx;text-align: right;color:#FF9F00;font-family: PingFangSC-Semibold;'>¥{{deduction_amount}}/年</text> |
| 327 | <!-- <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#FF9F00;' placeholder='请输入扣除金额' type='digit' name='reduce_money'></input> --> | 327 | <!-- <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#FF9F00;' placeholder='请输入扣除金额' type='digit' name='reduce_money'></input> --> |
| 328 | </view> | 328 | </view> |
| 329 | - <view class='divide_line_30'></view> | ||
| 330 | 329 | ||
| 331 | </view> | 330 | </view> |
| 332 | 331 | ||
| @@ -336,9 +335,9 @@ | @@ -336,9 +335,9 @@ | ||
| 336 | 335 | ||
| 337 | <view wx:if="{{cur_index=='children_education' || cur_index=='house_fund'}}"> | 336 | <view wx:if="{{cur_index=='children_education' || cur_index=='house_fund'}}"> |
| 338 | <template is="picker_cell_normal" data="{{...hasLoverData}}" /> | 337 | <template is="picker_cell_normal" data="{{...hasLoverData}}" /> |
| 339 | - <view class='divide_line_30'></view> | ||
| 340 | </view> | 338 | </view> |
| 341 | <view wx:if="{{hasLover}}"> | 339 | <view wx:if="{{hasLover}}"> |
| 340 | + <view class='divide_line_30'></view> | ||
| 342 | <view style='height:90rpx'> | 341 | <view style='height:90rpx'> |
| 343 | <text class='text_777_30 float_left head_in'>配偶姓名</text> | 342 | <text class='text_777_30 float_left head_in'>配偶姓名</text> |
| 344 | <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> | 343 | <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> |
| @@ -236,13 +236,14 @@ Page({ | @@ -236,13 +236,14 @@ Page({ | ||
| 236 | 236 | ||
| 237 | }, | 237 | }, |
| 238 | bindinputmobile: function (e) { | 238 | bindinputmobile: function (e) { |
| 239 | - console.log('bindinputmobile', e) | 239 | + if (e.detail.value.length == 11 && !format.isMobile(e.detail.value)){ |
| 240 | + this.showtoast("手机号码有误") | ||
| 241 | + } | ||
| 240 | this.setData({ | 242 | this.setData({ |
| 241 | mobile: e.detail.value | 243 | mobile: e.detail.value |
| 242 | }) | 244 | }) |
| 243 | }, | 245 | }, |
| 244 | nameInput: function (e) { | 246 | nameInput: function (e) { |
| 245 | - console.log('bindinputname', e) | ||
| 246 | this.setData({ | 247 | this.setData({ |
| 247 | name: e.detail.value | 248 | name: e.detail.value |
| 248 | }) | 249 | }) |
| @@ -55,16 +55,16 @@ | @@ -55,16 +55,16 @@ | ||
| 55 | </view> | 55 | </view> |
| 56 | <view class="divide_line_30"></view> | 56 | <view class="divide_line_30"></view> |
| 57 | <view class='item_body'> | 57 | <view class='item_body'> |
| 58 | - <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>手机号码</text> | ||
| 59 | - <input class='input_wrap' placeholder="请输入手机号" value='{{mobile}}' name='mobile' type='number' maxlength='11' bindblur='bindinputmobile' type='number'></input> | 58 | + <text class='red_star_right_10'>*</text> |
| 59 | + <text class='text_777_30 float_left' style='line-height: 90rpx'>是否境外人员</text> | ||
| 60 | + <text class='text_black_30 float_right' style='line-height: 90rpx' >否</text> | ||
| 60 | </view> | 61 | </view> |
| 62 | + <!-- <template is="picker_cell_normal" data="{{...forignerInfo}}" /> --> | ||
| 61 | <view class="divide_line_30"></view> | 63 | <view class="divide_line_30"></view> |
| 62 | <view class='item_body'> | 64 | <view class='item_body'> |
| 63 | - <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>是否境外人员</text> | ||
| 64 | - <text class='text_black_30 float_right' style='line-height: 90rpx' >否</text> | 65 | + <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>联系电话</text> |
| 66 | + <input class='input_wrap' placeholder="请输入手机号" value='{{mobile}}' name='mobile' type='number' maxlength='11' bindblur='bindinputmobile' type='number'></input> | ||
| 65 | </view> | 67 | </view> |
| 66 | - <!-- <template is="picker_cell_normal" data="{{...forignerInfo}}" /> --> | ||
| 67 | - | ||
| 68 | </view> | 68 | </view> |
| 69 | </view> | 69 | </view> |
| 70 | 70 |
| @@ -773,14 +773,15 @@ Page({ | @@ -773,14 +773,15 @@ Page({ | ||
| 773 | }, | 773 | }, |
| 774 | 774 | ||
| 775 | bindinputmobile: function(e) { | 775 | bindinputmobile: function(e) { |
| 776 | - console.log('bindinputmobile', e) | 776 | + if (e.detail.value.length == 11 && !format.isMobile(e.detail.value)) { |
| 777 | + this.showtoast("手机号码有误") | ||
| 778 | + } | ||
| 777 | this.setData({ | 779 | this.setData({ |
| 778 | mobile: e.detail.value | 780 | mobile: e.detail.value |
| 779 | }) | 781 | }) |
| 780 | }, | 782 | }, |
| 781 | 783 | ||
| 782 | bindinputname: function(e) { | 784 | bindinputname: function(e) { |
| 783 | - console.log('bindinputname', e) | ||
| 784 | this.setData({ | 785 | this.setData({ |
| 785 | name: e.detail.value | 786 | name: e.detail.value |
| 786 | }) | 787 | }) |
请
注册
或
登录
后发表评论