正在显示
3 个修改的文件
包含
44 行增加
和
11 行删除
@@ -1246,9 +1246,15 @@ Page({ | @@ -1246,9 +1246,15 @@ Page({ | ||
1246 | } else if (!formdata.total_amount || formdata.total_amount < 0) { | 1246 | } else if (!formdata.total_amount || formdata.total_amount < 0) { |
1247 | this.showToast('请填写医疗支出总金额') | 1247 | this.showToast('请填写医疗支出总金额') |
1248 | return | 1248 | return |
1249 | + } else if (formdata.total_amount > 60000) { | ||
1250 | + this.showToast('大病医疗支出扣除额度不得超过6万') | ||
1251 | + return | ||
1249 | } else if (!formdata.amount_by_person || formdata.amount_by_person < 0) { | 1252 | } else if (!formdata.amount_by_person || formdata.amount_by_person < 0) { |
1250 | this.showToast('请填写个人负担金额') | 1253 | this.showToast('请填写个人负担金额') |
1251 | return | 1254 | return |
1255 | + }else if (formdata.amount_by_person >60000) { | ||
1256 | + this.showToast('个人负担金额不得超过6万') | ||
1257 | + return | ||
1252 | } | 1258 | } |
1253 | 1259 | ||
1254 | newdata.total_amount = parseFloat(formdata.total_amount) | 1260 | newdata.total_amount = parseFloat(formdata.total_amount) |
@@ -256,17 +256,41 @@ | @@ -256,17 +256,41 @@ | ||
256 | <text class='text_left'>贷款类型</text> | 256 | <text class='text_left'>贷款类型</text> |
257 | <text class='text_right_333'>{{datas.loan_type}}</text> | 257 | <text class='text_right_333'>{{datas.loan_type}}</text> |
258 | </view> | 258 | </view> |
259 | - <view style='height:90rpx;width:100%;clear:both;'> | ||
260 | - <text class='text_left'>贷款合同编号</text> | ||
261 | - <text class='text_right_333'>{{datas.loan_contract_no}}</text> | ||
262 | - </view> | ||
263 | - <view style='height:90rpx;width:100%;clear:both;'> | ||
264 | - <text class='text_left'>首次还款日期</text> | ||
265 | - <text class='text_right_333'>{{datas.loan_start}}</text> | 259 | + <view wx:if="{{datas.loan_type=='商业贷款'||datas.loan_type=='组合贷款'}}"> |
260 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
261 | + <text class='text_left'>商业贷款合同编号</text> | ||
262 | + <text class='text_right_333'>{{datas.sec_loan_contract_no}}</text> | ||
263 | + </view> | ||
264 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
265 | + <text class='text_left'>商业贷款银行</text> | ||
266 | + <text class='text_right_333'>{{datas.sec_loan_bank}}</text> | ||
267 | + </view> | ||
268 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
269 | + <text class='text_left'>首次还款日期</text> | ||
270 | + <text class='text_right_333'>{{datas.loan_start}}</text> | ||
271 | + </view> | ||
272 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
273 | + <text class='text_left'>商业贷款期限(月数)</text> | ||
274 | + <text class='text_right_333'>{{datas.sec_loan_months}}</text> | ||
275 | + </view> | ||
266 | </view> | 276 | </view> |
267 | - <view style='height:90rpx;width:100%;clear:both;'> | ||
268 | - <text class='text_left'>贷款期限(月数)</text> | ||
269 | - <text class='text_right_333'>{{datas.loan_months}}</text> | 277 | + <view wx:if="{{datas.loan_type=='公积金贷款'||datas.loan_type=='组合贷款'}}"> |
278 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
279 | + <text class='text_left'>公积金贷款合同编号</text> | ||
280 | + <text class='text_right_333'>{{datas.loan_contract_no}}</text> | ||
281 | + </view> | ||
282 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
283 | + <text class='text_left'>公积金贷款银行</text> | ||
284 | + <text class='text_right_333'>{{datas.loan_bank}}</text> | ||
285 | + </view> | ||
286 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
287 | + <text class='text_left'>首次还款日期</text> | ||
288 | + <text class='text_right_333'>{{datas.loan_start}}</text> | ||
289 | + </view> | ||
290 | + <view style='height:90rpx;width:100%;clear:both;'> | ||
291 | + <text class='text_left'>公积金贷款期限(月数)</text> | ||
292 | + <text class='text_right_333'>{{datas.loan_months}}</text> | ||
293 | + </view> | ||
270 | </view> | 294 | </view> |
271 | <view style='height:90rpx;width:100%;clear:both;'> | 295 | <view style='height:90rpx;width:100%;clear:both;'> |
272 | <text class='text_left'>扣除方式</text> | 296 | <text class='text_left'>扣除方式</text> |
@@ -211,9 +211,12 @@ Page({ | @@ -211,9 +211,12 @@ Page({ | ||
211 | if (newdata[i].rent_end) { | 211 | if (newdata[i].rent_end) { |
212 | newdata[i].rent_end = this.formatDate(newdata[i].rent_end) | 212 | newdata[i].rent_end = this.formatDate(newdata[i].rent_end) |
213 | } | 213 | } |
214 | - if (newdata[i].loan_start) { | 214 | + if (newdata[i].loan_start) {//公积金 |
215 | newdata[i].loan_start = this.formatDate(newdata[i].loan_start) | 215 | newdata[i].loan_start = this.formatDate(newdata[i].loan_start) |
216 | } | 216 | } |
217 | + if (newdata[i].sec_loan_start) {//商业 | ||
218 | + newdata[i].sec_loan_start = this.formatDate(newdata[i].sec_loan_start) | ||
219 | + } | ||
217 | 220 | ||
218 | newdata[i].children_id_card_no = this.formatIdNum(newdata[i].children_id_card_no) | 221 | newdata[i].children_id_card_no = this.formatIdNum(newdata[i].children_id_card_no) |
219 | newdata[i].spouse_id_card_no = this.formatIdNum(newdata[i].spouse_id_card_no) | 222 | newdata[i].spouse_id_card_no = this.formatIdNum(newdata[i].spouse_id_card_no) |
请
注册
或
登录
后发表评论