正在显示
3 个修改的文件
包含
11 行增加
和
7 行删除
| 1 | 1 | // pages/main/addtionalreduce/adddupporters/adddupporters.js |
| 2 | 2 | var app = getApp(); |
| 3 | 3 | var baseUrl = app.globalData.baseUrl; |
| 4 | +var format = require('../../../../utils/util.js'); | |
| 4 | 5 | Page({ |
| 5 | 6 | |
| 6 | 7 | /** |
| ... | ... | @@ -91,6 +92,9 @@ Page({ |
| 91 | 92 | } else if (!formdata.id_card_no || formdata.id_card_no.length < 1) { |
| 92 | 93 | this.showToast("请输入身份证号") |
| 93 | 94 | return; |
| 95 | + } else if (!format.isIDCardNum(formdata.id_card_no)) { | |
| 96 | + this.showToast("证件号码有误") | |
| 97 | + return; | |
| 94 | 98 | } |
| 95 | 99 | this.goAdd(formdata) |
| 96 | 100 | }, | ... | ... |
| ... | ... | @@ -103,7 +103,7 @@ |
| 103 | 103 | </view> |
| 104 | 104 | <view style='height:90rpx;width:100%'> |
| 105 | 105 | <text class='text_left'>被赡养人证照号码</text> |
| 106 | - <text class='text_right_333'>{{datas.supported_name}}</text> | |
| 106 | + <text class='text_right_333'>{{datas.id_card_no}}</text> | |
| 107 | 107 | </view> |
| 108 | 108 | <view style='height:90rpx;width:100%'> |
| 109 | 109 | <text class='text_left'>被赡养人出生日期</text> |
| ... | ... | @@ -117,10 +117,10 @@ |
| 117 | 117 | <text class='text_left'>与纳税人关系</text> |
| 118 | 118 | <text class='text_right_333'>{{datas.relationship}}</text> |
| 119 | 119 | </view> |
| 120 | - <view style='height:90rpx;width:100%'> | |
| 120 | + <!-- <view style='height:90rpx;width:100%'> | |
| 121 | 121 | <text class='text_left'>分摊比例</text> |
| 122 | 122 | <text class='text_right_333'>{{datas.percent}}%</text> |
| 123 | - </view> | |
| 123 | + </view> --> | |
| 124 | 124 | <view style='height:90rpx;width:100%'> |
| 125 | 125 | <text class='text_left'>扣除方式</text> |
| 126 | 126 | <text class='text_right_333'>{{reducetype[datas.deduction_type]}}度</text> | ... | ... |
| ... | ... | @@ -157,12 +157,12 @@ |
| 157 | 157 | <view class='divide_line_f5f5f5'></view> |
| 158 | 158 | <view style='height:70rpx'> |
| 159 | 159 | <text class='text_999_28 ' style='line-height:70rpx'>被赡养人姓名:</text> |
| 160 | - <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{}}</text> | |
| 160 | + <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{item.name}}</text> | |
| 161 | 161 | </view> |
| 162 | - <view style='height:70rpx'> | |
| 162 | + <!-- <view style='height:70rpx'> | |
| 163 | 163 | <text class='text_999_28 ' style='line-height:70rpx'>分摊比例:</text> |
| 164 | - <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>123</text> | |
| 165 | - </view> | |
| 164 | + <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{item.percent}}%</text> | |
| 165 | + </view> --> | |
| 166 | 166 | <view style='height:70rpx'> |
| 167 | 167 | <text class='text_999_28 ' style='line-height:70rpx'>扣除方式:</text> |
| 168 | 168 | <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{reducetype[item.deduction_type]}}度</text> | ... | ... |
请
注册
或
登录
后发表评论