提交 4b304b40f36cb15a9e318a52cd6cfbd009ad904e

作者 pangy
2 个父辈 904e8b07 0f09ae15

Merge branch 'dev_py' into dev2.0

@@ -342,7 +342,7 @@ Page({ @@ -342,7 +342,7 @@ Page({
342 selected: '', 342 selected: '',
343 isrequre: true, 343 isrequre: true,
344 isblack: 'true', 344 isblack: 'true',
345 - values: ["组织", "自然人"], 345 + values: ["企业", "个人"],
346 placeholder: '请选择出租方类型', 346 placeholder: '请选择出租方类型',
347 onChange: 'onPickerSelect' 347 onChange: 'onPickerSelect'
348 }, 348 },
@@ -1278,24 +1278,24 @@ Page({ @@ -1278,24 +1278,24 @@ Page({
1278 } else if (!formdata.owner_name || formdata.owner_name.length < 1) { 1278 } else if (!formdata.owner_name || formdata.owner_name.length < 1) {
1279 this.showToast('请填写出租方名称') 1279 this.showToast('请填写出租方名称')
1280 return 1280 return
1281 - } else if (!formdata.owner_credit_no || formdata.owner_credit_no.length < 1) {  
1282 - this.showToast('请填写纳税人识别号')  
1283 - return 1281 + }
  1282 + if (this.data.leasetypeData.selected=='企业'){
  1283 + if (!formdata.owner_credit_no || formdata.owner_credit_no.length < 1) {
  1284 + this.showToast('请填写统一社会信用代码')
  1285 + return
  1286 + }
  1287 + newdata.owner_id_card_no = ''
  1288 + } else{
  1289 + if (!formdata.owner_id_card_no || formdata.owner_id_card_no.length < 1) {
  1290 + this.showToast('请填写证照号码')
  1291 + return
  1292 + } else if (!format.isIDCardNum(formdata.owner_id_card_no)) {
  1293 + this.showToast('身份证格式有误')
  1294 + return
  1295 + }
  1296 + newdata.owner_id_card_type = '1'//this.data.cardtypeData.selected
1284 } 1297 }
1285 - // else if (!formdata.identify_no || formdata.identify_no.length < 1) {  
1286 - // this.showToast('请填写出租方号码')  
1287 - // return  
1288 - // }  
1289 - else if (this.data.cardtypeData.selected.length < 1) {  
1290 - this.showToast('请选择证照类型')  
1291 - return  
1292 - } else if (!formdata.owner_id_card_no || formdata.owner_id_card_no.length < 1) {  
1293 - this.showToast('请填写证照号码')  
1294 - return  
1295 - } else if (!format.isIDCardNum(formdata.owner_id_card_no)) {  
1296 - this.showToast('身份证格式有误')  
1297 - return  
1298 - } else if (this.data.rentLocateInfo.address_value[0].length < 1) { 1298 + if (this.data.rentLocateInfo.address_value[0].length < 1) {
1299 this.showToast('请选择房屋地址') 1299 this.showToast('请选择房屋地址')
1300 return 1300 return
1301 } else if (!formdata.house_detail_address || formdata.house_detail_address.length < 1) { 1301 } else if (!formdata.house_detail_address || formdata.house_detail_address.length < 1) {
@@ -1312,7 +1312,6 @@ Page({ @@ -1312,7 +1312,6 @@ Page({
1312 return 1312 return
1313 } 1313 }
1314 newdata.owner_type = this.data.leasetypeData.selected 1314 newdata.owner_type = this.data.leasetypeData.selected
1315 - newdata.owner_id_card_type = '1'//this.data.cardtypeData.selected  
1316 newdata.rent_start = this.data.leasestartDate.datelong 1315 newdata.rent_start = this.data.leasestartDate.datelong
1317 newdata.rent_end = this.data.leaseendDate.datelong 1316 newdata.rent_end = this.data.leaseendDate.datelong
1318 1317
@@ -1343,7 +1342,7 @@ Page({ @@ -1343,7 +1342,7 @@ Page({
1343 } 1342 }
1344 } 1343 }
1345 newdata.has_spouse = this.data.hasLover ? 'y' : 'n' 1344 newdata.has_spouse = this.data.hasLover ? 'y' : 'n'
1346 - newdata.id_card_no = newdata.spouse_id_card_no 1345 + newdata.id_card_no = newdata.spouse_id_card_no ? newdata.spouse_id_card_no:''
1347 newdata.id_card_type = '1' //this.data.lovercardtypeData.selected 1346 newdata.id_card_type = '1' //this.data.lovercardtypeData.selected
1348 newdata.birthday = this.data.loverbirthDate.datelong > 0 ? this.data.loverbirthDate.datelong : 0 1347 newdata.birthday = this.data.loverbirthDate.datelong > 0 ? this.data.loverbirthDate.datelong : 0
1349 break; 1348 break;
@@ -1431,7 +1430,7 @@ Page({ @@ -1431,7 +1430,7 @@ Page({
1431 dealIdInfo: function (idCardNum, idcard_belong) { 1430 dealIdInfo: function (idCardNum, idcard_belong) {
1432 var info = format.analyzeIDCard(idCardNum) 1431 var info = format.analyzeIDCard(idCardNum)
1433 console.log('info', info.age, info.sex, info.birthDay, (Date.parse(new Date(info.birthDay)) / 1000)) 1432 console.log('info', info.age, info.sex, info.birthDay, (Date.parse(new Date(info.birthDay)) / 1000))
1434 - var data 1433 + var data = {}
1435 if (idcard_belong == 'children_id_card_no_input') { 1434 if (idcard_belong == 'children_id_card_no_input') {
1436 this.data.commonbirthDate.selected = info.birthDay 1435 this.data.commonbirthDate.selected = info.birthDay
1437 this.data.commonbirthDate.datelong = (Date.parse(new Date(info.birthDay)) / 1000) 1436 this.data.commonbirthDate.datelong = (Date.parse(new Date(info.birthDay)) / 1000)
@@ -1724,8 +1723,10 @@ Page({ @@ -1724,8 +1723,10 @@ Page({
1724 case 'lease_type': 1723 case 'lease_type':
1725 var leasetype_Data = this.data.leasetypeData 1724 var leasetype_Data = this.data.leasetypeData
1726 leasetype_Data.selected = leasetype_Data.values[e.detail.value] 1725 leasetype_Data.selected = leasetype_Data.values[e.detail.value]
  1726 + this.data.cardtypeData.hidden = leasetype_Data.selected == "企业"
1727 this.setData({ 1727 this.setData({
1728 - leasetypeData: leasetype_Data 1728 + leasetypeData: leasetype_Data,
  1729 + cardtypeData: this.data.cardtypeData
1729 }) 1730 })
1730 break; 1731 break;
1731 case 'lease_start_date': 1732 case 'lease_start_date':
@@ -252,16 +252,16 @@ @@ -252,16 +252,16 @@
252 <text class='text_777_30 float_left'>出租方名称</text> 252 <text class='text_777_30 float_left'>出租方名称</text>
253 <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入出租方名称' name='owner_name'></input> 253 <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入出租方名称' name='owner_name'></input>
254 </view> 254 </view>
255 - <view class='divide_line_30'></view>  
256 - <view style='height:90rpx'> 255 + <view class='divide_line_30' hidden="{{leasetypeData.selected == '个人'}}"></view>
  256 + <view style='height:90rpx' hidden="{{leasetypeData.selected == '个人'}}">
257 <text class='red_star_right_10'>*</text> 257 <text class='red_star_right_10'>*</text>
258 - <text class='text_777_30 float_left'>出租方纳税人识别号</text>  
259 - <input class='input_wrap01 float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;width:350rpx;color:#000;' placeholder='统一社会信用代码' name='owner_credit_no'></input> 258 + <text class='text_777_30 float_left'>统一社会信用代码</text>
  259 + <input class='input_wrap01 float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;width:350rpx;color:#000;' placeholder='请输入统一社会信用代码' name='owner_credit_no'></input>
260 </view> 260 </view>
261 - <view class='divide_line_30'></view>  
262 - <template is="picker_cell_normal" data="{{...cardtypeData}}" />  
263 - <view class='divide_line_30'></view>  
264 - <view style='height:90rpx'> 261 + <view class='divide_line_30' hidden="{{leasetypeData.selected == '企业'}}"></view>
  262 + <template is="picker_cell_normal" data="{{...cardtypeData}}"/>
  263 + <view class='divide_line_30' hidden="{{leasetypeData.selected == '企业'}}"></view>
  264 + <view style='height:90rpx' hidden="{{leasetypeData.selected == '企业'}}">
265 <text class='red_star_right_10'>*</text> 265 <text class='red_star_right_10'>*</text>
266 <text class='text_777_30 float_left'>证照号码</text> 266 <text class='text_777_30 float_left'>证照号码</text>
267 <view wx:if="{{isIdCard}}"> 267 <view wx:if="{{isIdCard}}">
@@ -281,7 +281,7 @@ @@ -281,7 +281,7 @@
281 <view style='height:90rpx'> 281 <view style='height:90rpx'>
282 <text class='red_star_right_10'>*</text> 282 <text class='red_star_right_10'>*</text>
283 <text class='text_777_30 float_left'>租赁合同编号</text> 283 <text class='text_777_30 float_left'>租赁合同编号</text>
284 - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: rightcolor:#000;' placeholder='请输合同编号' name='rent_contract_no'></input> 284 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: rightcolor:#000;' placeholder='请输合同编号' name='rent_contract_no'></input>
285 </view> 285 </view>
286 <view class='divide_line_30'></view> 286 <view class='divide_line_30'></view>
287 <template is="picker_cell_normal" data="{{...leasestartDate}}" /> 287 <template is="picker_cell_normal" data="{{...leasestartDate}}" />
注册登录 后发表评论