正在显示
3 个修改的文件
包含
49 行增加
和
33 行删除
... | ... | @@ -81,16 +81,17 @@ Page({ |
81 | 81 | end: '2018-01-01', |
82 | 82 | onChange: 'onPickerSelect', |
83 | 83 | }, |
84 | - // older_relativeData: { | |
85 | - // label: '与纳税人关系', | |
86 | - // isrequre: true, | |
87 | - // bindtype: 'older_relative', | |
88 | - // selected: '', | |
89 | - // isblack: 'true', | |
90 | - // placeholder: '请选择与纳税人关系', | |
91 | - // values: ["父母", "祖父母、外祖父母"], | |
92 | - // onChange: 'onPickerSelect' | |
93 | - // }, | |
84 | + older_relativeData: { | |
85 | + label: '与纳税人关系', | |
86 | + isrequre: true, | |
87 | + disabled: true, | |
88 | + bindtype: 'older_relative', | |
89 | + selected: "", | |
90 | + isblack: 'true', | |
91 | + placeholder: '请选择与纳税人关系', | |
92 | + values: ["父母", "其他"], | |
93 | + onChange: 'onPickerSelect' | |
94 | + }, | |
94 | 95 | taxperson_relativeData: { |
95 | 96 | label: '与纳税人的关系', |
96 | 97 | isrequre: true, |
... | ... | @@ -143,7 +144,8 @@ Page({ |
143 | 144 | bindtype: 'child_edu_degree', |
144 | 145 | selected: '', |
145 | 146 | isblack: 'true', |
146 | - values: ["学前教育(满3岁)", "小学教育", "初中教育", "普通高中教育", "中等职业教育", "大学专科教育", "大学本科教育", "硕士研究生教育", "博士研究生教育"], | |
147 | + // values: ["学前教育(满3岁)", "小学教育", "初中教育", "普通高中教育", "中等职业教育", "大学专科教育", "大学本科教育", "硕士研究生教育", "博士研究生教育"], | |
148 | + values: ["学前教育阶段", "义务教育", "高中阶段教育", "高等教育"], | |
147 | 149 | placeholder: '请选择教育阶段', |
148 | 150 | onChange: 'onPickerSelect' |
149 | 151 | }, |
... | ... | @@ -182,7 +184,8 @@ Page({ |
182 | 184 | bindtype: 'edu_level', |
183 | 185 | selected: '', |
184 | 186 | isblack: 'true', |
185 | - values: ["专科", "本科", "硕士研究生", "博士研究生", "其他"], | |
187 | + // values: ["专科", "本科", "硕士研究生", "博士研究生", "其他"], | |
188 | + values: ["大学专科", "大学本科", "硕士研究生", "博士研究生", "其他"], | |
186 | 189 | placeholder: '请选择学历教育阶段', |
187 | 190 | onChange: 'onPickerSelect' |
188 | 191 | }, |
... | ... | @@ -285,7 +288,7 @@ Page({ |
285 | 288 | placeholder: '请选择时间', |
286 | 289 | onChange: 'onPickerSelect', |
287 | 290 | mode: "date", |
288 | - fields: "day", | |
291 | + fields: "month", | |
289 | 292 | datelong: 0, |
290 | 293 | start: '1970-01-01', |
291 | 294 | // start: (new Date()).getFullYear() + '-09-01',//'1970-01-01', |
... | ... | @@ -302,7 +305,7 @@ Page({ |
302 | 305 | placeholder: '请选择时间', |
303 | 306 | onChange: 'onPickerSelect', |
304 | 307 | mode: "date", |
305 | - fields: "day", | |
308 | + fields: "month", | |
306 | 309 | start: '1970-01-01', |
307 | 310 | // start: (new Date()).getFullYear() + '-07-31',//'1970-01-01', |
308 | 311 | // end: (new Date()).getFullYear() + '-07-31', |
... | ... | @@ -1199,10 +1202,10 @@ Page({ |
1199 | 1202 | this.showToast('请选择被赡养人出生日期') |
1200 | 1203 | return |
1201 | 1204 | } |
1202 | - // if (this.data.older_relativeData.selected.length < 1) { | |
1203 | - // this.showToast('请选择与纳税人关系') | |
1204 | - // return | |
1205 | - // } | |
1205 | + if (this.data.older_relativeData.selected.length < 1) { | |
1206 | + this.showToast('请选择与纳税人关系') | |
1207 | + return | |
1208 | + } | |
1206 | 1209 | // if (!formdata.percentage || formdata.percentage.length < 1 || formdata.percentage > 100) { |
1207 | 1210 | // this.showToast('请填写合理分摊比例') |
1208 | 1211 | // return |
... | ... | @@ -1215,7 +1218,7 @@ Page({ |
1215 | 1218 | newdata.share_method = this.share_method |
1216 | 1219 | } |
1217 | 1220 | newdata.birthday = this.data.olderbirthDate.datelong |
1218 | - // newdata.relationship = this.data.older_relativeData.selected | |
1221 | + newdata.relationship = this.data.older_relativeData.selected | |
1219 | 1222 | newdata.id_card_type = '1' //this.data.oldercardtypeData.selected |
1220 | 1223 | newdata.nation = "中国" |
1221 | 1224 | break; |
... | ... | @@ -1513,26 +1516,38 @@ Page({ |
1513 | 1516 | } |
1514 | 1517 | }, |
1515 | 1518 | loan_input: function (e) { |
1516 | - console.log('-------', e.detail.value) | |
1519 | + var value = e.detail.value | |
1517 | 1520 | switch (e.currentTarget.id) { |
1518 | 1521 | case 'loan_contract_no': |
1519 | 1522 | this.setData({ |
1520 | - loan_contract_no: e.detail.value | |
1523 | + loan_contract_no: value | |
1521 | 1524 | }) |
1522 | 1525 | break; |
1523 | 1526 | case 'loan_months': |
1527 | + if (value.length && value <= 0) { | |
1528 | + value = 1 | |
1529 | + } else if (value > 240) { | |
1530 | + value = 240 | |
1531 | + this.showToast('月数不得大于240') | |
1532 | + } | |
1524 | 1533 | this.setData({ |
1525 | - loan_months: e.detail.value | |
1534 | + loan_months: value | |
1526 | 1535 | }) |
1527 | 1536 | break; |
1528 | 1537 | case 'sec_loan_contract_no': |
1529 | 1538 | this.setData({ |
1530 | - sec_loan_contract_no: e.detail.value | |
1539 | + sec_loan_contract_no: value | |
1531 | 1540 | }) |
1532 | 1541 | break; |
1533 | 1542 | case 'sec_loan_months': |
1543 | + if (value.length && value <= 0) { | |
1544 | + value = 1 | |
1545 | + }else if (value>240){ | |
1546 | + value = 240 | |
1547 | + this.showToast('月数不得大于240') | |
1548 | + } | |
1534 | 1549 | this.setData({ |
1535 | - sec_loan_months: e.detail.value | |
1550 | + sec_loan_months: value | |
1536 | 1551 | }) |
1537 | 1552 | break; |
1538 | 1553 | } |
... | ... | @@ -1548,6 +1563,7 @@ Page({ |
1548 | 1563 | data = { |
1549 | 1564 | commonbirthDate: this.data.commonbirthDate |
1550 | 1565 | } |
1566 | + | |
1551 | 1567 | } else if (idcard_belong == 'spouse_id_card_no_input') { |
1552 | 1568 | this.data.loverbirthDate.selected = info.birthDay |
1553 | 1569 | this.data.loverbirthDate.datelong = (Date.parse(new Date(info.birthDay)) / 1000) |
... | ... | @@ -1629,13 +1645,13 @@ Page({ |
1629 | 1645 | loverbirthDate: lover_birthDate |
1630 | 1646 | }) |
1631 | 1647 | break; |
1632 | - // case 'older_relative': | |
1633 | - // var older_relativeData = this.data.older_relativeData | |
1634 | - // older_relativeData.selected = older_relativeData.values[e.detail.value] | |
1635 | - // this.setData({ | |
1636 | - // older_relativeData: older_relativeData | |
1637 | - // }) | |
1638 | - // break; | |
1648 | + case 'older_relative': | |
1649 | + var older_relativeData = this.data.older_relativeData | |
1650 | + older_relativeData.selected = older_relativeData.values[e.detail.value] | |
1651 | + this.setData({ | |
1652 | + older_relativeData: older_relativeData | |
1653 | + }) | |
1654 | + break; | |
1639 | 1655 | case 'taxperson_relative': |
1640 | 1656 | var taxperson_relativedata = this.data.taxperson_relativeData |
1641 | 1657 | taxperson_relativedata.selected = taxperson_relativedata.values[e.detail.value] | ... | ... |
... | ... | @@ -145,7 +145,7 @@ |
145 | 145 | </view> |
146 | 146 | <view class='divide_line_30'></view> |
147 | 147 | |
148 | - <!-- <template is="picker_cell_normal" data="{{...older_relativeData}}" /> --> | |
148 | + <template is="picker_cell_normal" data="{{...older_relativeData}}" /> | |
149 | 149 | <!-- <view style='height:90rpx;'> |
150 | 150 | <text class='red_star_right_10'>*</text> |
151 | 151 | <text class='text_777_30 float_left'>分摊比例</text> | ... | ... |
请
注册
或
登录
后发表评论