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