提交 2a45f2616caae39f60ca1cee655b1d6fd5ebbaae

作者 wangyu
1 个父辈 365ce229

优化

... ... @@ -83,13 +83,13 @@ Page({
83 83 onChange: 'onPickerSelect'
84 84 },
85 85 childrencardtypeData: {
86   - label: '子女身份证件类型',
  86 + label: '子女证照类型',
87 87 isrequre: true,
88 88 bindtype: 'childrencardtype',
89 89 selected: '居民身份证',
90 90 disabled: true,
91 91 isblack: 'true',
92   - placeholder: '请选择身份证件类型',
  92 + placeholder: '请选择证照类型',
93 93 values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
94 94 '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
95 95 ],
... ... @@ -168,26 +168,26 @@ Page({
168 168 onChange: 'onPickerSelect'
169 169 },
170 170 oldercardtypeData: {
171   - label: '被赡养人证类型',
  171 + label: '被赡养人证类型',
172 172 isrequre: true,
173 173 disabled: true,
174 174 bindtype: 'oldercardtype',
175 175 selected: '居民身份证',
176 176 isblack: 'true',
177   - placeholder: '请选择被赡养人证类型',
  177 + placeholder: '请选择被赡养人证类型',
178 178 values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
179 179 '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
180 180 ],
181 181 onChange: 'onPickerSelect'
182 182 },
183 183 cardtypeData: {
184   - label: '身份证件类型',
  184 + label: '证照类型',
185 185 isrequre: true,
186 186 bindtype: 'cardtype',
187 187 selected: '居民身份证',
188 188 disabled: true,
189 189 isblack: 'true',
190   - placeholder: '请选择证件类型',
  190 + placeholder: '证照类型',
191 191 values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
192 192 '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
193 193 ],
... ... @@ -206,19 +206,20 @@ Page({
206 206 end: '2018-01-01',
207 207 onChange: 'onPickerSelect',
208 208 },
209   - singlechildData: {
210   - label: '是否独生子女',
211   - bindtype: 'single_child',
212   - selected: '',
213   - isblack: 'true',
214   - values: ["是", "否"],
215   - placeholder: '请选择是否独生子女',
216   - onChange: 'onPickerSelect'
217   - },
  209 + // singlechildData: {
  210 + // label: '是否独生子女',
  211 + // bindtype: 'single_child',
  212 + // selected: '',
  213 + // isblack: 'true',
  214 + // values: ["是", "否"],
  215 + // placeholder: '请选择是否独生子女',
  216 + // onChange: 'onPickerSelect'
  217 + // },
218 218 beforemarryData: {
219 219 label: '是否首套婚前贷款且婚后各自扣除',
220 220 bindtype: 'before_marry',
221 221 selected: '',
  222 + isrequre: true,
222 223 isblack: 'true',
223 224 values: ["是", "否"],
224 225 placeholder: '请选择',
... ... @@ -228,6 +229,7 @@ Page({
228 229 label: '是否本人借款',
229 230 bindtype: 'is_self_loan',
230 231 selected: '',
  232 + isrequre: true,
231 233 isblack: 'true',
232 234 values: ["是", "否"],
233 235 placeholder: '请选择',
... ... @@ -235,7 +237,7 @@ Page({
235 237 },
236 238 reducetypeData: {
237 239 label: '扣除方式',
238   - isrequre: true,
  240 + isrequre: false,
239 241 bindtype: 'reduce_type',
240 242 selected: '',
241 243 isblack: 'true',
... ... @@ -289,6 +291,7 @@ Page({
289 291 label: '证书类型',
290 292 bindtype: 'identify_type',
291 293 selected: '',
  294 + isrequre: true,
292 295 isblack: 'true',
293 296 values: ["产权证", "不动产权登记证", "出售合同号", "预售合同号"],
294 297 placeholder: '请选择证书类型',
... ... @@ -298,6 +301,7 @@ Page({
298 301 label: '贷款类型',
299 302 bindtype: 'loan_type',
300 303 selected: '',
  304 + isrequre: true,
301 305 isblack: 'true',
302 306 values: ["公积金贷款", "商业贷款"],
303 307 placeholder: '请选择贷款类型',
... ... @@ -307,6 +311,7 @@ Page({
307 311 label: '出租方类型',
308 312 bindtype: 'lease_type',
309 313 selected: '',
  314 + isrequre: true,
310 315 isblack: 'true',
311 316 values: ["组织", "自然人"],
312 317 placeholder: '请选择出租方类型',
... ... @@ -315,6 +320,7 @@ Page({
315 320 workingcityInfo: {
316 321 label: '主要工作城市',
317 322 mode: 'region',
  323 + isrequre: true,
318 324 bindtype: 'working_city',
319 325 isblack: 'true',
320 326 address_code: ['', ''],
... ... @@ -326,6 +332,8 @@ Page({
326 332 houseLocateInfo: {
327 333 label: '房屋坐落地址',
328 334 mode: 'region',
  335 + isrequre: true,
  336 + isrequre: true,
329 337 bindtype: 'house_locate',
330 338 isblack: 'true',
331 339 address_code: ['', '', ''],
... ... @@ -334,10 +342,24 @@ Page({
334 342 placeholder: '请选择地址',
335 343 onChange: 'onPickerSelect'
336 344 },
  345 + rentLocateInfo: {
  346 + label: '租赁房屋坐落地址',
  347 + mode: 'region',
  348 + isrequre: true,
  349 + isrequre: true,
  350 + bindtype: 'rent_house_locate',
  351 + isblack: 'true',
  352 + address_code: ['', '', ''],
  353 + address_value: ['', '', ''],
  354 + selected: '',
  355 + placeholder: '请选择地址',
  356 + onChange: 'onPickerSelect'
  357 + },
337 358 firstpaybackDate: {
338 359 label: '首次还款日期',
339 360 bindtype: 'payback_date',
340 361 selected: '',
  362 + isrequre: true,
341 363 isblack: 'true',
342 364 values: ["是", "否"],
343 365 placeholder: '请选择日期',
... ... @@ -351,6 +373,7 @@ Page({
351 373 label: '租赁期起',
352 374 bindtype: 'lease_start_date',
353 375 selected: '',
  376 + isrequre: true,
354 377 isblack: 'true',
355 378 values: ["是", "否"],
356 379 placeholder: '请选择日期',
... ... @@ -362,8 +385,9 @@ Page({
362 385 },
363 386 leaseendDate: {
364 387 label: '租赁期止',
365   - bindtype: 'lease_start_date',
  388 + bindtype: 'lease_end_date',
366 389 selected: '',
  390 + isrequre: true,
367 391 isblack: 'true',
368 392 values: ["是", "否"],
369 393 placeholder: '请选择日期',
... ... @@ -377,32 +401,20 @@ Page({
377 401 label: '贷款期限(月数)',
378 402 bindtype: 'loan_datelong',
379 403 selected: '',
  404 + isrequre: true,
380 405 isblack: 'true',
381 406 values: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
382 407 placeholder: '请选择贷款期限',
383 408 onChange: 'onPickerSelect'
384 409 },
385   - reducedateData: {
386   - label: '扣除时间',
387   - bindtype: 'reduce_date',
388   - selected: '',
389   - isblack: 'true',
390   - values: ["是", "否"],
391   - placeholder: '请选择扣除时间',
392   - onChange: 'onPickerSelect',
393   - mode: "date",
394   - fields: "month",
395   - start: '1970-01',
396   - datelong: 0,
397   - },
398   - eduCountryData: {
  410 + schoolCountryData: {
399 411 label: '就读国家',
400   - bindtype: 'edu_country',
  412 + bindtype: 'school_country',
401 413 isrequre: true,
402   - selected: '',
  414 + selected: '中国(大陆)',
403 415 isblack: 'true',
404 416 values: [],
405   - placeholder: '中国',
  417 + placeholder: '中国(大陆)',
406 418 onChange: 'onPickerSelect',
407 419 },
408 420 edu_lable: "school",
... ... @@ -455,14 +467,12 @@ Page({
455 467 commonbirthDate: commonbirth_date
456 468 })
457 469 }
458   -
459   -
460   - var title = '添加' + AddTypeNames[nameKey]
  470 + var title = '添加' + AddTypeNames[nameKey]
461 471
462 472 this.setData({
463 473 title: title,
464 474 cur_index: nameKey,
465   - house_type : frontPage.data.house_type,
  475 + house_type: frontPage.data.house_type,
466 476 reducetypeData: reduce_typeData,
467 477 deduction_amount: deduction_amount
468 478 })
... ... @@ -479,13 +489,13 @@ Page({
479 489 loadCountry: function() {
480 490 countryInfo.init(this)
481 491 var countrylist = this.data.country
482   - var country_data = this.data.eduCountryData
  492 + var country_data = this.data.schoolCountryData
483 493 for (var i = 0; i < countrylist.length; i++) {
484 494 country_data.values.push(countrylist[i].name)
485 495 }
486 496 console.log("countrydata", country_data)
487 497 this.setData({
488   - eduCountryData: country_data
  498 + schoolCountryData: country_data
489 499 })
490 500
491 501 },
... ... @@ -541,9 +551,9 @@ Page({
541 551 // }
542 552 this.setData(setData)
543 553 break;
544   - // case 'continuing_education':
545   - // var setData = {}
546   - // break;
  554 + // case 'continuing_education':
  555 + // var setData = {}
  556 + // break;
547 557 case 'medical_fund':
548 558 var setData = {}
549 559 if (data.name && data.name.length) {
... ... @@ -686,7 +696,7 @@ Page({
686 696 case 'children_education':
687 697 subUrl = 'persontax/v1/children-educations'
688 698 if (!formdata.children_id_card_no || formdata.children_id_card_no.length < 1) {
689   - this.showToast('请填写子女证号码')
  699 + this.showToast('请填写子女证号码')
690 700 return
691 701 }
692 702 if (!formdata.children_name || formdata.children_name.length < 1) {
... ... @@ -719,8 +729,8 @@ Page({
719 729 this.showToast('请选择受教育终止日期')
720 730 return
721 731 }
722   - if (this.data.eduCountryData.selected.length < 1) {
723   - this.showToast('请选择就读地区')
  732 + if (!formdata.school_name || formdata.school_name.length < 1) {
  733 + this.showToast('请选择就读学校')
724 734 return
725 735 }
726 736
... ... @@ -729,17 +739,12 @@ Page({
729 739 this.showToast('请填写配偶姓名')
730 740 return
731 741 } else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) {
732   - this.showToast('请填写配偶证号码')
  742 + this.showToast('请填写配偶证号码')
733 743 return
734 744 } else if (this.data.loverbirthDate.selected.length < 1) {
735 745 this.showToast('请选择配偶出生日期')
736 746 return
737 747 }
738   - // if (this.data.taxperson_relativeData.selected.length < 1) {
739   - // this.showToast('请选择与纳税人关系')
740   - // return
741   - // }
742   -
743 748 }
744 749 newdata.relationship = this.data.taxperson_relativeData.selected
745 750 newdata.children_id_card_type = '1' //this.data.childrencardtypeData.selected
... ... @@ -747,6 +752,7 @@ Page({
747 752 newdata.education_end = this.data.studystartdate.datelong
748 753 newdata.education_start = this.data.studyenddate.datelong
749 754 newdata.education_period = this.data.childedudegreeData.selected
  755 + newdata.school_name = this.data.schoolCountryData.selected
750 756 newdata.children_nation = "中国"
751 757 newdata.spouse_id_card_type = '1' //this.data.lovercardtypeData.selected
752 758 newdata.spouse_birthday = this.data.loverbirthDate.datelong > 0 ? this.data.loverbirthDate.datelong : 0
... ... @@ -764,11 +770,11 @@ Page({
764 770 return
765 771 }
766 772 if (this.data.studystartdate.selected.length < 1) {
767   - this.showToast('请选择受入学日期')
  773 + this.showToast('请选择受入学时间')
768 774 return
769 775 }
770 776 if (this.data.studyenddate.selected.length < 1) {
771   - this.showToast('请选择受预计毕业日期')
  777 + this.showToast('请选择受毕业时间')
772 778 return
773 779 }
774 780 newdata.education_start = this.data.studystartdate.datelong
... ... @@ -810,10 +816,10 @@ Page({
810 816 this.showToast('请填写赡养人姓名')
811 817 return
812 818 } else if (this.data.oldercardtypeData.selected.length < 1) {
813   - this.showToast('请选择赡养人证类型')
  819 + this.showToast('请选择赡养人证类型')
814 820 return
815 821 } else if (!formdata.older_idno || formdata.older_idno.length < 1) {
816   - this.showToast('请填写赡养人证号')
  822 + this.showToast('请填写赡养人证号')
817 823 return
818 824 }
819 825 if (this.data.olderbirthDate.selected.length < 1) {
... ... @@ -824,6 +830,12 @@ Page({
824 830 this.showToast('请选择与纳税人关系')
825 831 return
826 832 }
  833 + if (!formdata.percent || formdata.percent.length < 1) {
  834 + this.showToast('请填写扣除分摊比例')
  835 + return
  836 + } else {
  837 + newdata.percentage = parseFloat(formdata.percent)
  838 + }
827 839 newdata.older_birthday = this.data.olderbirthDate.datelong
828 840 newdata.older_relative = this.data.older_relativeData.selected
829 841 newdata.support_type = this.data.supporttypeData.selected
... ... @@ -835,15 +847,15 @@ Page({
835 847 this.showToast('请填写姓名')
836 848 return
837 849 } else if (this.data.cardtypeData.selected.length < 1) {
838   - this.showToast('请选择证类型')
  850 + this.showToast('请选择证类型')
839 851 return
840 852 } else if (!formdata.id_card_no || formdata.id_card_no.length < 1) {
841   - this.showToast('请填写证号码')
  853 + this.showToast('请填写证号码')
842 854 return
843 855 } else if (this.data.commonbirthDate.selected.length < 1) {
844 856 this.showToast('请选择病人出生日期')
845 857 return
846   - }else if (this.data.taxperson_relativeData.selected.length < 1) {
  858 + } else if (this.data.taxperson_relativeData.selected.length < 1) {
847 859 this.showToast('请选择与纳税人关系')
848 860 return
849 861 } else if (!formdata.total_amount || formdata.total_amount < 0) {
... ... @@ -862,24 +874,10 @@ Page({
862 874 newdata.patient_birthday = "中国"
863 875 break;
864 876 case 'house_fund':
865   - // subUrl = 'persontax/v1/medical-funds'
  877 + subUrl = 'persontax/v1/house-funds'
866 878 console.log('TITLE', this.data.title)
867   - if (!formdata.lover_name || formdata.lover_name.length < 1) {
868   - this.showToast('请填写配偶姓名')
869   - return
870   - } else if (!formdata.lover_idno || formdata.lover_idno.length < 1) {
871   - this.showToast('请填写配偶证件号码')
872   - return
873   - }
874   - if (this.data.lovercardtypeData.selected.length < 1) {
875   - this.showToast('请选择配偶证件类型')
876   - return
877   - }
878   - if (this.data.loverbirthDate.selected.length < 1) {
879   - this.showToast('请选择配偶出生日期')
880   - return
881   - }
882   - if (this.data.title == "添加住房贷款利息") {
  879 +
  880 + if (this.data.house_type == "house_fund_loan") {
883 881 if (this.data.houseLocateInfo.address_value.length < 1) {
884 882 this.showToast('请选择住房地址')
885 883 return
... ... @@ -889,6 +887,12 @@ Page({
889 887 } else if (!formdata.identify_no || formdata.identify_no.length < 1) {
890 888 this.showToast('请填写证书号码')
891 889 return
  890 + } else if (this.data.beforemarryData.selected.length < 1) {
  891 + this.showToast('请选择是否首套贷款')
  892 + return
  893 + } else if (this.data.isselfData.selected.length < 1) {
  894 + this.showToast('请选择是否本人借款')
  895 + return
892 896 } else if (this.data.loantypeData.selected.length < 1) {
893 897 this.showToast('请选择贷款类型')
894 898 return
... ... @@ -903,23 +907,36 @@ Page({
903 907 return
904 908 }
905 909 newdata.house_location = this.data.houseLocateInfo.address_value[0] + this.data.houseLocateInfo.address_value[1] + this.data.houseLocateInfo.address_value[2]
  910 + newdata.loan_before_marry = this.data.beforemarryData.selected == "是" ? 'y' : 'n'
  911 + newdata.loan_by_self = this.data.isselfData.selected == "是" ? 'y' : 'n'
  912 + newdata.identify_type = this.data.identifytypeData.selected
  913 +
906 914 newdata.identify_type = this.data.identifytypeData.selected
907 915 newdata.loan_type = this.data.loantypeData.selected
908 916 newdata.payback_date = this.data.firstpaybackDate.selected
909 917 newdata.loan_datelong = this.data.loandatelongData.selected
910   - } else if (this.data.title == "添加住房租金") {
911   - if (this.data.houseLocateInfo.address_value.length < 1) {
912   - this.showToast('请选择住房地址')
  918 + } else if (this.data.house_type == "house_fund_rent") {
  919 + if (this.data.workingcityInfo.address_value.length < 1) {
  920 + this.showToast('请选择工作城市')
913 921 return
914 922 } else if (this.data.leasetypeData.selected.length < 1) {
915 923 this.showToast('请选择出租方类型')
916 924 return
  925 + } else if (!formdata.lease_name || formdata.lease_name.length < 1) {
  926 + this.showToast('请填写出租方名称')
  927 + return
  928 + } else if (!formdata.lease_idno || formdata.lease_idno.length < 1) {
  929 + this.showToast('请填写纳税人识别号')
  930 + return
917 931 } else if (!formdata.identify_no || formdata.identify_no.length < 1) {
918 932 this.showToast('请填写出租方号码')
919 933 return
920 934 } else if (this.data.identifytypeData.selected.length < 1) {
921 935 this.showToast('请选择证件类型')
922 936 return
  937 + } else if (this.data.rentLocateInfo.address_value.length < 1) {
  938 + this.showToast('请选择房屋地址')
  939 + return
923 940 } else if (!formdata.identify_no || formdata.identify_no.length < 1) {
924 941 this.showToast('请填写证件号码')
925 942 return
... ... @@ -930,12 +947,25 @@ Page({
930 947 this.showToast('请选择日期')
931 948 return
932 949 }
933   - newdata.house_location = this.data.houseLocateInfo.address_value[0] + this.data.houseLocateInfo.address_value[1] + this.data.houseLocateInfo.address_value[2]
  950 + newdata.house_address = this.data.rentLocateInfo.address_value[0] + this.data.rentLocateInfo.address_value[1] + this.data.rentLocateInfo.address_value[2]
  951 + newdata.work_city = this.data.workingcityInfo.address_value[0] + this.data.workingcityInfo.address_value[1] + this.data.workingcityInfo.address_value[2]
934 952 newdata.lease_type = this.data.leasetypeData.selected
935 953 newdata.identify_type = this.data.identifytypeData.selected
936 954 newdata.lease_startdate = this.data.leasestartDate.selected
937 955 newdata.lease_enddate = this.data.leaseendDate.selected
938   - Console.log('houseLocateInfo', this.data.houseLocateInfo)
  956 + console.log('houseLocateInfo', this.data.houseLocateInfo)
  957 + }
  958 + if (formdata.spouse_name || formdata.spouse_id_card_no || this.data.loverbirthDate.selected) {
  959 + if (!formdata.spouse_name || formdata.spouse_name.length < 1) {
  960 + this.showToast('请填写配偶姓名')
  961 + return
  962 + } else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) {
  963 + this.showToast('请填写配偶证照号码')
  964 + return
  965 + } else if (this.data.loverbirthDate.selected.length < 1) {
  966 + this.showToast('请选择配偶出生日期')
  967 + return
  968 + }
939 969 }
940 970 newdata.lover_cardtype = this.data.lovercardtypeData.selected
941 971 newdata.lover_birthdate = this.data.loverbirthDate.selected
... ... @@ -1079,11 +1109,11 @@ Page({
1079 1109 // edudegreeData: edudegree_data
1080 1110 // })
1081 1111 // break;
1082   - case 'edu_country':
1083   - var eduCountry_data = this.data.eduCountryData
  1112 + case 'school_country':
  1113 + var eduCountry_data = this.data.schoolCountryData
1084 1114 eduCountry_data.selected = eduCountry_data.values[e.detail.value]
1085 1115 this.setData({
1086   - eduCountryData: eduCountry_data
  1116 + schoolCountryData: eduCountry_data
1087 1117 })
1088 1118 break;
1089 1119 case 'support_type':
... ... @@ -1168,6 +1198,21 @@ Page({
1168 1198 identifytypeData: identifytype_Data
1169 1199 })
1170 1200 break;
  1201 + case 'before_marry':
  1202 + var beforemarry_Data = this.data.beforemarryData
  1203 + beforemarry_Data.selected = beforemarry_Data.values[e.detail.value]
  1204 + this.setData({
  1205 + beforemarryData: beforemarry_Data
  1206 + })
  1207 + break;
  1208 + case 'is_self_loan':
  1209 + var isself_Data = this.data.isselfData
  1210 + isself_Data.selected = isself_Data.values[e.detail.value]
  1211 + this.setData({
  1212 + isselfData: isself_Data
  1213 + })
  1214 + break;
  1215 +
1171 1216 case 'loan_type':
1172 1217 var loantype_Data = this.data.loantypeData
1173 1218 loantype_Data.selected = loantype_Data.values[e.detail.value]
... ... @@ -1178,7 +1223,7 @@ Page({
1178 1223 case 'payback_date':
1179 1224 var firstpayback_Date = this.data.firstpaybackDate
1180 1225 firstpayback_Date.selected = e.detail.value
1181   - console.log('reduce_date', Date.parse(new Date(e.detail.value)))
  1226 + console.log('payback_date', Date.parse(new Date(e.detail.value)))
1182 1227 this.setData({
1183 1228 firstpaybackDate: firstpayback_Date
1184 1229 })
... ... @@ -1200,7 +1245,7 @@ Page({
1200 1245 case 'lease_start_date':
1201 1246 var leasestart_Date = this.data.leasestartDate
1202 1247 leasestart_Date.selected = e.detail.value
1203   - console.log('reduce_date', Date.parse(new Date(e.detail.value)))
  1248 + console.log('lease_start_date', Date.parse(new Date(e.detail.value)))
1204 1249 this.setData({
1205 1250 leasestartDate: leasestart_Date
1206 1251 })
... ... @@ -1208,7 +1253,7 @@ Page({
1208 1253 case 'lease_end_date':
1209 1254 var leaseend_Date = this.data.leaseendDate
1210 1255 leaseend_Date.selected = e.detail.value
1211   - console.log('reduce_date', Date.parse(new Date(e.detail.value)))
  1256 + console.log('lease_end_date', Date.parse(new Date(e.detail.value)))
1212 1257 this.setData({
1213 1258 leaseendDate: leaseend_Date
1214 1259 })
... ... @@ -1227,13 +1272,32 @@ Page({
1227 1272 houseLocateInfo: house_address
1228 1273 })
1229 1274 break;
1230   - case 'reduce_date':
1231   - var reducedate_data = this.data.reducedateData
1232   - reducedate_data.selected = e.detail.value
1233   - reducedate_data.datelong = Date.parse(new Date(e.detail.value)) / 1000,
1234   - console.log('reduce_date', Date.parse(new Date(e.detail.value)))
  1275 + case 'working_city':
  1276 + console.log('working_city', e)
  1277 + var work_address = this.data.workingcityInfo;
  1278 + work_address.address_value = e.detail.value
  1279 + if (e.detail.value[0] == e.detail.value[1]) {
  1280 + work_address.selected = e.detail.value[1] + e.detail.value[2]
  1281 + } else {
  1282 + work_address.selected = e.detail.value[0] + e.detail.value[1] + e.detail.value[2]
  1283 +
  1284 + }
  1285 + this.setData({
  1286 + workingcityInfo: work_address
  1287 + })
  1288 + break;
  1289 + case 'rent_house_locate':
  1290 + console.log('rent_house_locate', e)
  1291 + var rent_address = this.data.rentLocateInfo;
  1292 + rent_address.address_value = e.detail.value
  1293 + if (e.detail.value[0] == e.detail.value[1]) {
  1294 + rent_address.selected = e.detail.value[1] + e.detail.value[2]
  1295 + } else {
  1296 + rent_address.selected = e.detail.value[0] + e.detail.value[1] + e.detail.value[2]
  1297 +
  1298 + }
1235 1299 this.setData({
1236   - reducedateData: reducedate_data
  1300 + rentLocateInfo: rent_address
1237 1301 })
1238 1302 break;
1239 1303 }
... ...
... ... @@ -61,12 +61,12 @@
61 61 <template is="picker_cell_normal" data="{{...studyenddate}}" />
62 62
63 63 <view class='divide_line_f5f5f5'></view>
64   - <template is="picker_cell_normal" data="{{...eduCountryData}}" />
  64 + <template is="picker_cell_normal" data="{{...schoolCountryData}}" />
65 65 <view class='divide_line_f5f5f5'></view>
66 66 <view style='height:90rpx'>
67 67 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
68 68 <text class='text_black_30 float_left'>就读学校名称</text>
69   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入就读学校' name='educate_school'></input>
  69 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入就读学校' name='school_name'></input>
70 70 </view>
71 71 <view class='divide_line_f5f5f5'></view>
72 72 </view>
... ... @@ -173,12 +173,12 @@
173 173 </view>
174 174 <view class='divide_line_f5f5f5'></view>
175 175 <template is="picker_cell_normal" data="{{...commonbirthDate}}" />
176   - <view class='divide_line_f5f5f5'></view>
177   - <view style='height:90rpx'>
178   - <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
179   - <text class='text_black_30 float_left'>病人国籍</text>
180   - <text class='text_777_30 float_right' style='line-height: 90rpx;text-align:right' name='children_country'>中国</text>
181   - </view>
  176 + <view class='divide_line_f5f5f5'></view>
  177 + <view style='height:90rpx'>
  178 + <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
  179 + <text class='text_black_30 float_left'>病人国籍</text>
  180 + <text class='text_777_30 float_right' style='line-height: 90rpx;text-align:right' name='children_country'>中国</text>
  181 + </view>
182 182 <view class='divide_line_f5f5f5'></view>
183 183 <template is="picker_cell_normal" data="{{...taxperson_relativeData}}" />
184 184 <view class='divide_line_f5f5f5'></view>
... ... @@ -204,6 +204,7 @@
204 204 <template is="picker_cell_normal" data="{{...identifytypeData}}" />
205 205 <view class='divide_line_f5f5f5'></view>
206 206 <view style='height:90rpx'>
  207 + <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
207 208 <text class='text_black_30 float_left'>证书号码</text>
208 209 <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入证书号码' name='identify_no'></input>
209 210 </view>
... ... @@ -220,6 +221,7 @@
220 221 <template is="picker_cell_normal" data="{{...loantypeData}}" />
221 222 <view class='divide_line_f5f5f5'></view>
222 223 <view style='height:90rpx'>
  224 + <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
223 225 <text class='text_black_30 float_left'>贷款合同编号</text>
224 226 <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入贷款合同编号' name='contract_no'></input>
225 227 </view>
... ... @@ -238,28 +240,35 @@
238 240 <template is="picker_cell_normal" data="{{...leasetypeData}}" />
239 241 <view class='divide_line_f5f5f5'></view>
240 242 <view style='height:90rpx'>
  243 + <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
241 244 <text class='text_black_30 float_left'>出租方名称</text>
242 245 <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入出租方名称' name='lease_name'></input>
243 246 </view>
244 247 <view class='divide_line_f5f5f5'></view>
245 248 <view style='height:90rpx'>
  249 + <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
246 250 <text class='text_black_30 float_left'>出租方纳税人识别号</text>
247   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='统一社会信用代码' name='lease_idno'></input>
  251 + <input class='input_wrap01 float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='统一社会信用代码' name='lease_idno'></input>
248 252 </view>
249 253 <view class='divide_line_f5f5f5'></view>
250 254 <template is="picker_cell_normal" data="{{...identifytypeData}}" />
251 255 <view class='divide_line_f5f5f5'></view>
252 256 <view style='height:90rpx'>
  257 + <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
253 258 <text class='text_black_30 float_left'>证书号码</text>
254 259 <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入证书号码' name='identify_no'></input>
255 260 </view>
256 261 </view>
257 262 <view style='height:20rpx;width:100%;background:#F8F8F8;'></view>
258 263 <view style='padding:0 30rpx;'>
259   - <template is="picker_cell_normal" data="{{...contactLocateInfo}}" />
  264 + <template is="picker_cell_normal" data="{{...rentLocateInfo}}" />
260 265 <view class='divide_line_f5f5f5'></view>
261   -
262 266 <view style='height:90rpx'>
  267 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入详细地址,精确到楼牌号' name='detail_address'></input>
  268 + </view>
  269 + <view class='divide_line_f5f5f5'></view>
  270 + <view style='height:90rpx'>
  271 + <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
263 272 <text class='text_black_30 float_left'>租赁合同编号</text>
264 273 <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输合同编号' name='contract_no'></input>
265 274 </view>
... ... @@ -280,7 +289,7 @@
280 289 <text class='text_black_30 float_left'>扣除金额</text>
281 290 <text wx:if="{{reducetypeData.selected=='月度'}}" class='text_black_30 float_right' style='line-height: 90rpx;margin-left:20rpx;text-align: right;color:#FF9F00;'>¥{{deduction_amount}}/月</text>
282 291 <text wx:if="{{reducetypeData.selected=='年度'}}" class='text_black_30 float_right' style='line-height: 90rpx;margin-left:20rpx;text-align: right;color:#FF9F00;'>¥{{deduction_amount}}/年</text>
283   - <!-- <input class='input_wrap01 float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#FF9F00;' placeholder='请输入扣除金额' type='digit' name='reduce_money'></input> -->
  292 + <!-- <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#FF9F00;' placeholder='请输入扣除金额' type='digit' name='reduce_money'></input> -->
284 293 </view>
285 294 <view class='divide_line_f5f5f5'></view>
286 295
... ... @@ -305,19 +314,12 @@
305 314 <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="lover"></image>
306 315 <input class='input_wrap01 float_right' placeholder='请输入证件号码' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='18' type='idcard' value='{{spouse_id_card_no}}'></input>
307 316 </view>
308   - <!-- <view wx:else>
309   - <input class='input_wrap float_right' placeholder='请输入证件号码' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='24' value='{{spouse_id_card_no}}'></input>
310   - </view> -->
311   - <!-- <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入身份证件号码' name='spouse_id_card_no'></input> -->
312 317 </view>
313   -
314   -
315 318 <view class='divide_line_f5f5f5'></view>
316 319 <template is="picker_cell_normal" data="{{...loverbirthDate}}" />
317 320 <view class='divide_line_f5f5f5'></view>
318 321 <view style='height:90rpx'>
319 322 <text class='text_black_30 float_left'>国籍</text>
320   - <!-- <image class='arrow_wrap' src='/images/arrow_right.png'></image> -->
321 323 <text class='text_777_30 float_right' style='line-height: 90rpx;text-align:right' name='lover_country'>中国</text>
322 324 </view>
323 325 </view>
... ... @@ -337,19 +339,12 @@
337 339 <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="lover"></image>
338 340 <input class='input_wrap01 float_right' placeholder='请输入证件号码' placeholder-class='text_999_30' name='lover_idno' maxlength='18' type='idcard' value='{{lover_idno}}'></input>
339 341 </view>
340   - <!-- <view wx:else>
341   - <input class='input_wrap float_right' placeholder='请输入证件号码' placeholder-class='text_999_30' name='lover_idno' maxlength='24' value='{{lover_idno}}'></input>
342   - </view> -->
343   - <!-- <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入身份证件号码' name='lover_idno'></input> -->
344 342 </view>
345   -
346   -
347 343 <view class='divide_line_f5f5f5'></view>
348 344 <template is="picker_cell_normal" data="{{...loverbirthDate}}" />
349 345 <view class='divide_line_f5f5f5'></view>
350 346 <view style='height:90rpx'>
351 347 <text class='text_black_30 float_left'>国籍</text>
352   - <!-- <image class='arrow_wrap' src='/images/arrow_right.png'></image> -->
353 348 <text class='text_777_30 float_right' style='line-height: 90rpx;text-align:right' name='lover_country'>中国</text>
354 349 </view>
355 350 </view>
... ...
... ... @@ -19,7 +19,7 @@
19 19 }
20 20
21 21 .input_wrap01 {
22   - width: 420rpx;
  22 + width: 400rpx;
23 23 height: 90rpx;
24 24 font-size: 30rpx;
25 25 color: #333;
... ...
... ... @@ -49,7 +49,7 @@
49 49 <text class='text_right_333'>{{datas.school_country}}</text>
50 50 </view>
51 51 <view style='height:90rpx;width:100%'>
52   - <text class='text_left'>就读学校</text>
  52 + <text class='text_left'>就读学校名称</text>
53 53 <text class='text_right_333'>{{datas.school_name}}</text>
54 54 </view>
55 55 <!-- <view style='height:90rpx;width:100%'>
... ... @@ -70,11 +70,11 @@
70 70 <text class='text_right_333'>{{datas.spouse_name}}</text>
71 71 </view>
72 72 <view style='height:90rpx;width:100%'>
73   - <text class='text_left'>配偶证类型</text>
  73 + <text class='text_left'>配偶证类型</text>
74 74 <text class='text_right_333'>{{datas.spouse_id_card_type=='1'?"居民身份证":datas.spouse_id_card_type}}</text>
75 75 </view>
76 76 <view style='height:90rpx;width:100%'>
77   - <text class='text_left'>配偶身份证号码</text>
  77 + <text class='text_left'>配偶身份证号码</text>
78 78 <text class='text_right_333'>{{datas.spouse_id_card_no}}</text>
79 79 </view>
80 80 <view style='height:90rpx;width:100%'>
... ... @@ -247,11 +247,11 @@
247 247 <text class='text_right_333'>{{datas.spouse_name}}</text>
248 248 </view>
249 249 <view style='height:90rpx;width:100%'>
250   - <text class='text_left'>配偶证类型</text>
  250 + <text class='text_left'>配偶证类型</text>
251 251 <text class='text_right_333'>{{datas.spouse_id_card_type=='1'?"居民身份证":datas.spouse_id_card_type}}</text>
252 252 </view>
253 253 <view style='height:90rpx;width:100%'>
254   - <text class='text_left'>配偶身份证号码</text>
  254 + <text class='text_left'>配偶身份证号码</text>
255 255 <text class='text_right_333'>{{datas.spouse_id_card_no}}</text>
256 256 </view>
257 257 <view style='height:90rpx;width:100%'>
... ...
... ... @@ -39,9 +39,9 @@ Page({
39 39 console.log("lookandadd", e);
40 40 if (this.data.additiondata.options && this.data.additiondata.options.length>0){
41 41 var newstatus = this.data.additiondata.options[e.currentTarget.id]
42   - if (newstatus == 'house_fund_rent' || newstatus == 'house_fund_loan'){
43   - newstatus = "house_fund"
44   - }
  42 + // if (newstatus == 'house_fund_rent' || newstatus == 'house_fund_loan'){
  43 + // newstatus = "house_fund"
  44 + // }
45 45 wx.navigateTo({
46 46 url: '../lookandupdate/lookandupdate?status=' + newstatus + "&legal_entity_id=" + this.data.additiondata.legal_entity_id + "&legal_entity=" + this.data.additiondata.legal_entity,
47 47 })
... ...
... ... @@ -79,15 +79,28 @@ Page({
79 79 */
80 80 onLoad: function(options) {
81 81 var that = this
  82 + var housetype, housestatus
82 83 console.log("options", options);
  84 + if (options.status == 'house_fund_rent') {
  85 + housetype = 'house_fund_rent'
  86 + housestatus = 'house_fund'
  87 + } else if (options.status == 'house_fund_loan') {
  88 + housetype = 'house_fund_loan'
  89 + housestatus = 'house_fund'
  90 + } else {
  91 + housetype = ''
  92 + housestatus = options.status
  93 + }
83 94 this.setData({
84   - cur_status: options.status,
  95 + cur_status: housestatus,
  96 + house_type: housetype,
85 97 legal_entity_id: options.legal_entity_id,
86 98 legal_entity: options.legal_entity
87 99 })
88 100 wx.setNavigationBarTitle({
89   - "title": that.data.additiontitle[options.status],
  101 + "title": that.data.additiontitle[this.data.cur_status],
90 102 })
  103 +
91 104 },
92 105
93 106 /**
... ... @@ -126,7 +139,6 @@ Page({
126 139
127 140 handleAddition: function(data) {
128 141 var newdata = data.items
129   - var housetype = ""
130 142 for (var i = 0; i < newdata.length; i++) {
131 143 if (newdata[i].education_start && newdata[i].education_start > 0) {
132 144 newdata[i].education_start = format.formatTime_date(newdata[i].education_start)
... ... @@ -137,7 +149,6 @@ Page({
137 149 }
138 150
139 151 this.setData({
140   - house_type: "house_fund" == this.data.cur_status ? newdata[0].type:"",
141 152 additionInfo: newdata
142 153 })
143 154 },
... ...
... ... @@ -263,12 +263,12 @@
263 263 </view>
264 264 <view style='padding-right: 30rpx'>
265 265 <view class='divide_line_f5f5f5'></view>
266   - <view wx:if="{{item.type=='house_fund_rent'}}">
  266 + <view wx:if="{{house_type=='house_fund_rent'}}">
267 267 <text class='text_999_28 ' style='line-height:70rpx'>租赁房屋坐落地址:</text>
268 268 <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{item.house_address}}</text>
269 269 <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{item.house_detail_address}}</text>
270 270 </view>
271   - <view wx:if="{{item.type=='house_fund_loan'}}">
  271 + <view wx:if="{{house_type=='house_fund_loan'}}">
272 272 <text class='text_999_28 ' style='line-height:70rpx'>房屋坐落地址:</text>
273 273 <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{item.house_address}}</text>
274 274 <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{item.house_detail_address}}</text>
... ...
注册登录 后发表评论