提交 f2d932356f538e1a212d1d81aaa5f0a5202d0641

作者 pangy
1 个父辈 c39cc9f7

文案调整。数字限制。教育年月

@@ -81,16 +81,17 @@ Page({ @@ -81,16 +81,17 @@ Page({
81 end: '2018-01-01', 81 end: '2018-01-01',
82 onChange: 'onPickerSelect', 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 taxperson_relativeData: { 95 taxperson_relativeData: {
95 label: '与纳税人的关系', 96 label: '与纳税人的关系',
96 isrequre: true, 97 isrequre: true,
@@ -143,7 +144,8 @@ Page({ @@ -143,7 +144,8 @@ Page({
143 bindtype: 'child_edu_degree', 144 bindtype: 'child_edu_degree',
144 selected: '', 145 selected: '',
145 isblack: 'true', 146 isblack: 'true',
146 - values: ["学前教育(满3岁)", "小学教育", "初中教育", "普通高中教育", "中等职业教育", "大学专科教育", "大学本科教育", "硕士研究生教育", "博士研究生教育"], 147 + // values: ["学前教育(满3岁)", "小学教育", "初中教育", "普通高中教育", "中等职业教育", "大学专科教育", "大学本科教育", "硕士研究生教育", "博士研究生教育"],
  148 + values: ["学前教育阶段", "义务教育", "高中阶段教育", "高等教育"],
147 placeholder: '请选择教育阶段', 149 placeholder: '请选择教育阶段',
148 onChange: 'onPickerSelect' 150 onChange: 'onPickerSelect'
149 }, 151 },
@@ -182,7 +184,8 @@ Page({ @@ -182,7 +184,8 @@ Page({
182 bindtype: 'edu_level', 184 bindtype: 'edu_level',
183 selected: '', 185 selected: '',
184 isblack: 'true', 186 isblack: 'true',
185 - values: ["专科", "本科", "硕士研究生", "博士研究生", "其他"], 187 + // values: ["专科", "本科", "硕士研究生", "博士研究生", "其他"],
  188 + values: ["大学专科", "大学本科", "硕士研究生", "博士研究生", "其他"],
186 placeholder: '请选择学历教育阶段', 189 placeholder: '请选择学历教育阶段',
187 onChange: 'onPickerSelect' 190 onChange: 'onPickerSelect'
188 }, 191 },
@@ -285,7 +288,7 @@ Page({ @@ -285,7 +288,7 @@ Page({
285 placeholder: '请选择时间', 288 placeholder: '请选择时间',
286 onChange: 'onPickerSelect', 289 onChange: 'onPickerSelect',
287 mode: "date", 290 mode: "date",
288 - fields: "day", 291 + fields: "month",
289 datelong: 0, 292 datelong: 0,
290 start: '1970-01-01', 293 start: '1970-01-01',
291 // start: (new Date()).getFullYear() + '-09-01',//'1970-01-01', 294 // start: (new Date()).getFullYear() + '-09-01',//'1970-01-01',
@@ -302,7 +305,7 @@ Page({ @@ -302,7 +305,7 @@ Page({
302 placeholder: '请选择时间', 305 placeholder: '请选择时间',
303 onChange: 'onPickerSelect', 306 onChange: 'onPickerSelect',
304 mode: "date", 307 mode: "date",
305 - fields: "day", 308 + fields: "month",
306 start: '1970-01-01', 309 start: '1970-01-01',
307 // start: (new Date()).getFullYear() + '-07-31',//'1970-01-01', 310 // start: (new Date()).getFullYear() + '-07-31',//'1970-01-01',
308 // end: (new Date()).getFullYear() + '-07-31', 311 // end: (new Date()).getFullYear() + '-07-31',
@@ -1199,10 +1202,10 @@ Page({ @@ -1199,10 +1202,10 @@ Page({
1199 this.showToast('请选择被赡养人出生日期') 1202 this.showToast('请选择被赡养人出生日期')
1200 return 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 // if (!formdata.percentage || formdata.percentage.length < 1 || formdata.percentage > 100) { 1209 // if (!formdata.percentage || formdata.percentage.length < 1 || formdata.percentage > 100) {
1207 // this.showToast('请填写合理分摊比例') 1210 // this.showToast('请填写合理分摊比例')
1208 // return 1211 // return
@@ -1215,7 +1218,7 @@ Page({ @@ -1215,7 +1218,7 @@ Page({
1215 newdata.share_method = this.share_method 1218 newdata.share_method = this.share_method
1216 } 1219 }
1217 newdata.birthday = this.data.olderbirthDate.datelong 1220 newdata.birthday = this.data.olderbirthDate.datelong
1218 - // newdata.relationship = this.data.older_relativeData.selected 1221 + newdata.relationship = this.data.older_relativeData.selected
1219 newdata.id_card_type = '1' //this.data.oldercardtypeData.selected 1222 newdata.id_card_type = '1' //this.data.oldercardtypeData.selected
1220 newdata.nation = "中国" 1223 newdata.nation = "中国"
1221 break; 1224 break;
@@ -1513,26 +1516,38 @@ Page({ @@ -1513,26 +1516,38 @@ Page({
1513 } 1516 }
1514 }, 1517 },
1515 loan_input: function (e) { 1518 loan_input: function (e) {
1516 - console.log('-------', e.detail.value) 1519 + var value = e.detail.value
1517 switch (e.currentTarget.id) { 1520 switch (e.currentTarget.id) {
1518 case 'loan_contract_no': 1521 case 'loan_contract_no':
1519 this.setData({ 1522 this.setData({
1520 - loan_contract_no: e.detail.value 1523 + loan_contract_no: value
1521 }) 1524 })
1522 break; 1525 break;
1523 case 'loan_months': 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 this.setData({ 1533 this.setData({
1525 - loan_months: e.detail.value 1534 + loan_months: value
1526 }) 1535 })
1527 break; 1536 break;
1528 case 'sec_loan_contract_no': 1537 case 'sec_loan_contract_no':
1529 this.setData({ 1538 this.setData({
1530 - sec_loan_contract_no: e.detail.value 1539 + sec_loan_contract_no: value
1531 }) 1540 })
1532 break; 1541 break;
1533 case 'sec_loan_months': 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 this.setData({ 1549 this.setData({
1535 - sec_loan_months: e.detail.value 1550 + sec_loan_months: value
1536 }) 1551 })
1537 break; 1552 break;
1538 } 1553 }
@@ -1548,6 +1563,7 @@ Page({ @@ -1548,6 +1563,7 @@ Page({
1548 data = { 1563 data = {
1549 commonbirthDate: this.data.commonbirthDate 1564 commonbirthDate: this.data.commonbirthDate
1550 } 1565 }
  1566 +
1551 } else if (idcard_belong == 'spouse_id_card_no_input') { 1567 } else if (idcard_belong == 'spouse_id_card_no_input') {
1552 this.data.loverbirthDate.selected = info.birthDay 1568 this.data.loverbirthDate.selected = info.birthDay
1553 this.data.loverbirthDate.datelong = (Date.parse(new Date(info.birthDay)) / 1000) 1569 this.data.loverbirthDate.datelong = (Date.parse(new Date(info.birthDay)) / 1000)
@@ -1629,13 +1645,13 @@ Page({ @@ -1629,13 +1645,13 @@ Page({
1629 loverbirthDate: lover_birthDate 1645 loverbirthDate: lover_birthDate
1630 }) 1646 })
1631 break; 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 case 'taxperson_relative': 1655 case 'taxperson_relative':
1640 var taxperson_relativedata = this.data.taxperson_relativeData 1656 var taxperson_relativedata = this.data.taxperson_relativeData
1641 taxperson_relativedata.selected = taxperson_relativedata.values[e.detail.value] 1657 taxperson_relativedata.selected = taxperson_relativedata.values[e.detail.value]
@@ -145,7 +145,7 @@ @@ -145,7 +145,7 @@
145 </view> 145 </view>
146 <view class='divide_line_30'></view> 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 <!-- <view style='height:90rpx;'> 149 <!-- <view style='height:90rpx;'>
150 <text class='red_star_right_10'>*</text> 150 <text class='red_star_right_10'>*</text>
151 <text class='text_777_30 float_left'>分摊比例</text> 151 <text class='text_777_30 float_left'>分摊比例</text>
@@ -31,7 +31,7 @@ Page({ @@ -31,7 +31,7 @@ Page({
31 disabled: false, 31 disabled: false,
32 placeholder: '请选择关系', 32 placeholder: '请选择关系',
33 // values: ["子","女" ,"配偶", "父母", "祖父母、外祖父母"], 33 // values: ["子","女" ,"配偶", "父母", "祖父母、外祖父母"],
34 - values: ["子", "女", "配偶", "父母"], 34 + values: ["子", "女", "配偶", "父母","其他"],
35 onChange: 'onPickerSelect' 35 onChange: 'onPickerSelect'
36 }, 36 },
37 cardtypeData: { 37 cardtypeData: {
注册登录 后发表评论