|
|
@@ -137,10 +137,13 @@ |
|
|
|
<!-- <view class="red-item">拆单金额(3010.0)与第一笔合计不等(6001.0),押金、服务费(6009.0)默认第一笔不在计算在内!</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="step" v-if="step==1" @click="nextStep">下一步</view> |
|
|
|
<view class="step2" v-if="step==2"> |
|
|
|
<view class="next-btn btn" v-if="step==2" @click="step=1">上一步</view> |
|
|
|
<view class="submit-btn btn" @click="submit">提交并预览</view> |
|
|
|
<view class="btn-box"> |
|
|
|
<view class="step" v-if="step==1" @click="nextStep">下一步</view> |
|
|
|
<view class="step2" v-if="step==2"> |
|
|
|
<view class="next-btn btn" v-if="step==2" @click="step=1">上一步</view> |
|
|
|
<view class="submit-btn btn" v-if="backFlag==1" @click="submit1">提交</view> |
|
|
|
<view class="submit-btn btn" v-else @click="submit">提交并预览</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="!canEdit" class="errText">{{errText}}</view> |
|
|
@@ -347,7 +350,9 @@ |
|
|
|
// 人员列表 |
|
|
|
dealPeopleList: [], |
|
|
|
contractId: '',// |
|
|
|
electContractInfo: {} |
|
|
|
electContractInfo: {}, |
|
|
|
btnText: '提交并预览', |
|
|
|
backFlag: 0 |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
@@ -356,7 +361,6 @@ |
|
|
|
}else{ |
|
|
|
this.electContractInfo = uni.getStorageSync('electContractInfo'); |
|
|
|
uni.removeStorageSync('electContractInfo'); |
|
|
|
console.log(this.electContractInfo) |
|
|
|
this.roomId = this.electContractInfo.roomId; |
|
|
|
this.form.rent_date_start = this.electContractInfo.rent_date_start |
|
|
|
this.form.rent_date_end = this.electContractInfo.rent_date_end |
|
|
@@ -368,6 +372,11 @@ |
|
|
|
this.getDeptList() |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
// 从定金合同详情页返回来的 |
|
|
|
this.backFlag = uni.getStorageSync('backFlag')||0 |
|
|
|
this.contractId = uni.getStorageSync('backFlag_contractId')||0 |
|
|
|
uni.removeStorageSync('backFlag'); |
|
|
|
uni.removeStorageSync('backFlag_contractId'); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 部门列表 |
|
|
@@ -492,15 +501,15 @@ |
|
|
|
}) |
|
|
|
return ; |
|
|
|
} |
|
|
|
console.log('time') |
|
|
|
console.log(this.getTimer(this.form.rent_date_start)) |
|
|
|
console.log(this.getTimer(this.form.rent_date_end)) |
|
|
|
if(this.getTimer(this.form.rent_date_end)<this.getTimer(this.form.rent_date_start)){ |
|
|
|
if(this.getTimer(this.form.rent_date_end) < this.getTimer(this.form.rent_date_start)){ |
|
|
|
this.$refs.uToast.show({ |
|
|
|
title: '租约的结束时间不能小于开始时间' |
|
|
|
}) |
|
|
|
return ; |
|
|
|
} |
|
|
|
this.$refs.uToast.show({ |
|
|
|
title: '提交预览中...' |
|
|
|
}) |
|
|
|
let body = { |
|
|
|
"contractId": this.contractId, |
|
|
|
"oldContractId": this.electContractInfo.proxy_contract_id,//续期合同id |
|
|
@@ -518,21 +527,26 @@ |
|
|
|
} |
|
|
|
this.$u.api.twoContractInfo({body:body}).then((res)=>{ |
|
|
|
if(res.ErrNo=='0000'){ |
|
|
|
// this.$refs.uToast.show({ |
|
|
|
// title: '拆单金额(3010.0)与第一笔合计不等(6001.0),押金、服务费(6009.0)默认第一笔不在计算在内!', |
|
|
|
// }) |
|
|
|
this.$refs.uToast.show({ |
|
|
|
title: res.ErrMsg, |
|
|
|
icon: 'none', |
|
|
|
type:'success' |
|
|
|
}) |
|
|
|
uni.setStorageSync('src',res.result) |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/my/contact_check_page?src='+res.result |
|
|
|
url: '/pages/my/contact_check_page?contractId='+this.contractId |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
submit1(){ |
|
|
|
this.$u.api.deal({body:{contractId: this.contractId}}).then((res)=>{ |
|
|
|
if(res.ErrNo =='0000'){ |
|
|
|
this.$refs.uToast.show({ |
|
|
|
title: res.ErrMsg |
|
|
|
}) |
|
|
|
setTimeout(()=>{ |
|
|
|
uni.navigateBack({ |
|
|
|
delta: 1 |
|
|
|
}); |
|
|
|
},1000) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
confirmXingzuo(e){ |
|
|
|
this.form.star = e[0].value |
|
|
@@ -652,49 +666,59 @@ |
|
|
|
margin: 24rpx 30rpx 0; |
|
|
|
} |
|
|
|
} |
|
|
|
.step{ |
|
|
|
width: 690rpx; |
|
|
|
height: 88rpx; |
|
|
|
line-height: 88rpx; |
|
|
|
text-align: center; |
|
|
|
background: #FF6D25; |
|
|
|
border-radius: 12rpx; |
|
|
|
margin-left: 30rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
color: #FFFFFF; |
|
|
|
.btn-box{ |
|
|
|
background-color: #fff; |
|
|
|
position: fixed; |
|
|
|
z-index: 9999; |
|
|
|
bottom: 50rpx; |
|
|
|
} |
|
|
|
.step2{ |
|
|
|
position: fixed; |
|
|
|
z-index: 9999; |
|
|
|
bottom: 50rpx; |
|
|
|
width: 690rpx; |
|
|
|
margin-left: 30rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
.btn{ |
|
|
|
width: 330rpx; |
|
|
|
height: 88rpx; |
|
|
|
bottom: 0; |
|
|
|
height: 88rpx; |
|
|
|
left: 0; |
|
|
|
right: 0; |
|
|
|
.step{ |
|
|
|
width: 690rpx; |
|
|
|
height: 88rpx; |
|
|
|
line-height: 88rpx; |
|
|
|
text-align: center; |
|
|
|
background: #FF6D25; |
|
|
|
border-radius: 12rpx; |
|
|
|
margin-left: 30rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
} |
|
|
|
.next-btn{ |
|
|
|
color: #FF6D25; |
|
|
|
background: #FFFFFF; |
|
|
|
border: 2rpx solid #FF6D25; |
|
|
|
} |
|
|
|
.submit-btn{ |
|
|
|
background: #FF6D25; |
|
|
|
color: #FFFFFF; |
|
|
|
position: fixed; |
|
|
|
z-index: 9999; |
|
|
|
bottom: 50rpx; |
|
|
|
} |
|
|
|
.step2{ |
|
|
|
position: fixed; |
|
|
|
z-index: 9999; |
|
|
|
bottom: 50rpx; |
|
|
|
width: 690rpx; |
|
|
|
margin-left: 30rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
.btn{ |
|
|
|
width: 330rpx; |
|
|
|
height: 88rpx; |
|
|
|
line-height: 88rpx; |
|
|
|
text-align: center; |
|
|
|
border-radius: 12rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
} |
|
|
|
.next-btn{ |
|
|
|
color: #FF6D25; |
|
|
|
background: #FFFFFF; |
|
|
|
border: 2rpx solid #FF6D25; |
|
|
|
} |
|
|
|
.submit-btn{ |
|
|
|
background: #FF6D25; |
|
|
|
color: #FFFFFF; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|