Browse Source

调试页面

master
corala 2 years ago
parent
commit
698c5a0a1f
11 changed files with 92 additions and 55 deletions
  1. +3
    -0
      src/common/http.api.js
  2. +4
    -7
      src/pages/my/apply_baojie.vue
  3. +7
    -2
      src/pages/my/contactList.vue
  4. +2
    -3
      src/pages/my/contact_check.vue
  5. +23
    -7
      src/pages/my/dingjin_check.vue
  6. +14
    -13
      src/pages/my/electContract.vue
  7. +17
    -2
      src/pages/my/goonContract.vue
  8. +16
    -4
      src/pages/otherPage/jjrentDetail.vue
  9. +6
    -10
      src/pages/otherPage/rent.vue
  10. +0
    -1
      src/pages/otherPage/rentDetail.vue
  11. +0
    -6
      src/pages/otherPage/shouding.vue

+ 3
- 0
src/common/http.api.js View File

@@ -48,6 +48,7 @@ let depositExamineurl= '/appHouseContract/depositExamine.do' //定金合同审
let getDepositListurl= '/appHouseContract/getDepositList.do' //合同审核列表 let getDepositListurl= '/appHouseContract/getDepositList.do' //合同审核列表
let signDepositCallbackurl= '/appHouseContract/signDepositCallback.do' //签约回调 let signDepositCallbackurl= '/appHouseContract/signDepositCallback.do' //签约回调
let djContracturl= '/appHouseContract/djContract.do' //定金合同详情 let djContracturl= '/appHouseContract/djContract.do' //定金合同详情
let htContracturl= '/appHouseContract/contract.do' //合同审核详情
let contractListurl= '/appHouseContract/contractList.do' //房间续租合同信息查询 let contractListurl= '/appHouseContract/contractList.do' //房间续租合同信息查询
let sendCodeurl = '/appPhoneCode/sendCode.do' //手机号发短信 let sendCodeurl = '/appPhoneCode/sendCode.do' //手机号发短信
let sendUserurl = '/appPhoneCode/sendUser.do' //用户名发短信 let sendUserurl = '/appPhoneCode/sendUser.do' //用户名发短信
@@ -108,6 +109,7 @@ const install = (Vue, vm) => {
let assitCount = (params) => vm.$u.post(assitCounturl, params); let assitCount = (params) => vm.$u.post(assitCounturl, params);
let assit = (params) => vm.$u.post(assiturl, params); let assit = (params) => vm.$u.post(assiturl, params);
let contract = (params) => vm.$u.post(contracturl, params); let contract = (params) => vm.$u.post(contracturl, params);
let htContract = (params) => vm.$u.post(htContracturl, params);
let process = (params) => vm.$u.post(processurl, params); let process = (params) => vm.$u.post(processurl, params);
let examine = (params) => vm.$u.post(examineurl, params); let examine = (params) => vm.$u.post(examineurl, params);
let deal = (params) => vm.$u.post(dealurl, params); let deal = (params) => vm.$u.post(dealurl, params);
@@ -202,6 +204,7 @@ const install = (Vue, vm) => {
storeUp, storeUp,
cancelStoreUp, cancelStoreUp,
contract, contract,
htContract,
process, process,
examine, examine,
deal, deal,


+ 4
- 7
src/pages/my/apply_baojie.vue View File

@@ -99,7 +99,7 @@
}) })
}, },
dateConfirm(e){ dateConfirm(e){
console.log(e)
// console.log(e)
this.form.date = e.year + '-'+e.month + '-'+e.day+ ' '+e.hour+':'+e.minute+':'+e.second this.form.date = e.year + '-'+e.month + '-'+e.day+ ' '+e.hour+':'+e.minute+':'+e.second
}, },
submit() { submit() {
@@ -121,7 +121,7 @@
"serviceDate": this.form.date, "serviceDate": this.form.date,
"serviceType": this.serviceType,//服务类别 40保洁 41维修 "serviceType": this.serviceType,//服务类别 40保洁 41维修
"houseId": this.form.houseId, "houseId": this.form.houseId,
"remark":this.form.mark
"remark": this.form.mark
} }
this.$u.api.cleanRepairApply({body:params}).then((res)=>{ this.$u.api.cleanRepairApply({body:params}).then((res)=>{
// console.log(res) // console.log(res)
@@ -131,13 +131,10 @@
icon: 'none' icon: 'none'
}) })
} }
setTimeout(()=>function (){
uni.navigateTo({
url: '/pages/my/apply'
})
setTimeout(()=>{
uni.navigateBack()
},2000) },2000)
}) })
}, },
}, },
}; };


+ 7
- 2
src/pages/my/contactList.vue View File

@@ -5,8 +5,8 @@
</view> </view>
<view class="list-box"> <view class="list-box">
<view class="item" v-for="(item,index) in listData" :key="index"> <view class="item" v-for="(item,index) in listData" :key="index">
<view class="spell">{{item.first}}</view>
<view class="subitem" v-for="(subitem,ind) in item.cell" :key="ind">
<view class="spell" v-if="item.cell.length">{{item.first}}</view>
<view class="subitem" @click="tocall(subitem.tellPhone)" v-for="(subitem,ind) in item.cell" :key="ind">
<image class="avatar" v-if="subitem.personImage" :src="subitem.personImage" mode="" /> <image class="avatar" v-if="subitem.personImage" :src="subitem.personImage" mode="" />
<view class="avatar1" v-if="!subitem.personImage">{{subitem.personName.substring(0,1)}}</view> <view class="avatar1" v-if="!subitem.personImage">{{subitem.personName.substring(0,1)}}</view>
<view class="info"> <view class="info">
@@ -53,6 +53,11 @@
this.getList(); this.getList();
}, },
methods: { methods: {
tocall(phone){
uni.makePhoneCall({
phoneNumber: phone
})
},
search(){ search(){
this.pageNo=1 this.pageNo=1
this.listData = [] this.listData = []


+ 2
- 3
src/pages/my/contact_check.vue View File

@@ -35,7 +35,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-modal title="确认操作" @confirm="confirm" show-cancel-button confirm-color="#FF6D25" :confirm-text="pass==1?'通过':'拒绝'" :mask-close-able="true" v-model="showmodal" :title-style="titleStyle">
<u-modal title="确认操作" @confirm="confirm" show-cancel-button confirm-color="#FF6D25" confirm-text="确定" :mask-close-able="true" v-model="showmodal" :title-style="titleStyle">
<view class="slot-content"> <view class="slot-content">
<view class="my-tip">您确认要{{pass==1?'通过':'拒绝'}}该审核吗?</view> <view class="my-tip">您确认要{{pass==1?'通过':'拒绝'}}该审核吗?</view>
</view> </view>
@@ -91,7 +91,7 @@
// 定金合同详情 // 定金合同详情
djContract(id){ djContract(id){
// 审批状态0未审核 1通过 2 拒绝 // 审批状态0未审核 1通过 2 拒绝
this.$u.api.djContract({body:{contractId:id}}).then((res)=>{
this.$u.api.htContract({body:{contractId:id}}).then((res)=>{
// console.log(res) // console.log(res)
if(res.ErrNo=='0000'){ if(res.ErrNo=='0000'){
wx.navigateTo({ wx.navigateTo({
@@ -174,7 +174,6 @@
line-height: 40rpx; line-height: 40rpx;
&.canclick:hover{ &.canclick:hover{
background: #eee; background: #eee;

} }
.name{ .name{
flex: 0 0 112rpx; flex: 0 0 112rpx;


+ 23
- 7
src/pages/my/dingjin_check.vue View File

@@ -2,7 +2,7 @@
<view class="container"> <view class="container">
<view class="list-box"> <view class="list-box">
<view class="list-item" v-for="(item,index) in listData" :key="index"> <view class="list-item" v-for="(item,index) in listData" :key="index">
<view class="item-info">
<view class="item-info" hover-class="canclick" @click="djContract(item.contractId)" style="padding: 12rpx 0;margin-bottom: 0">
<view class="name">合同地址</view> <view class="name">合同地址</view>
<view class="value u-line-1">{{item.contractAddress}}</view> <view class="value u-line-1">{{item.contractAddress}}</view>
<image class="path" src="/static/path.png" mode="" /> <image class="path" src="/static/path.png" mode="" />
@@ -42,13 +42,13 @@
<view class="btn-box"> <view class="btn-box">
<!-- 审核状态 0 未审核 1 已审核 2 拒绝 --> <!-- 审核状态 0 未审核 1 已审核 2 拒绝 -->
<view class="btn pass" @click="checkFun(item,1)">通过</view> <view class="btn pass" @click="checkFun(item,1)">通过</view>
<view class="btn refuse" @click="checkFun(item,0)">驳回</view>
<view class="btn refuse" @click="checkFun(item,2)">驳回</view>
</view> </view>
</view> </view>
</view> </view>
<u-modal title="确认操作" @confirm="confirm" show-cancel-button confirm-color="#FF6D25" confirm-text="通过" :mask-close-able="true" v-model="showmodal" :title-style="titleStyle">
<u-modal title="确认操作" @confirm="confirm" show-cancel-button confirm-color="#FF6D25" confirm-text="确定" :mask-close-able="true" v-model="showmodal" :title-style="titleStyle">
<view class="slot-content"> <view class="slot-content">
<view class="my-tip">您确认通过该审核吗?</view>
<view class="my-tip">您确认{{status==1?'通过':'驳回'}}该审核吗?</view>
</view> </view>
</u-modal> </u-modal>
<view class="loading" v-if="loading"> <view class="loading" v-if="loading">
@@ -73,6 +73,7 @@
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
loadDone: false, loadDone: false,
status:''
}; };
}, },
onLoad(options) { onLoad(options) {
@@ -88,6 +89,18 @@
this.getList(); this.getList();
}, },
methods: { methods: {
// 定金合同详情
djContract(id){
// 审批状态0未审核 1通过 2 拒绝
this.$u.api.djContract({body:{contractId:id}}).then((res)=>{
// console.log(res)
if(res.ErrNo=='0000'){
wx.navigateTo({
url: '/pages/my/contact_check_page?src='+res.result
})
}
})
},
getList(){ getList(){
if (this.loadDone) return; if (this.loadDone) return;
this.loading = true; this.loading = true;
@@ -128,13 +141,13 @@
if(res.ErrNo=='0000'){ if(res.ErrNo=='0000'){
this.showmodal = false; this.showmodal = false;
uni.showToast({ uni.showToast({
title: '审核成功',
title: res.ErrMsg,
icon:'none' icon:'none'
}) })
} }
this.listData = [] this.listData = []
this.pageNo = 1
this.loadDone = false
this.pageNo = 1
this.loadDone = false
this.getList() this.getList()
}) })
} }
@@ -165,6 +178,9 @@
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
line-height: 40rpx; line-height: 40rpx;
&.canclick:hover{
background: #eee;
}
.name{ .name{
flex: 0 0 112rpx; flex: 0 0 112rpx;
color: #666666; color: #666666;


+ 14
- 13
src/pages/my/electContract.vue View File

@@ -107,7 +107,7 @@
<view class="input"> <view class="input">
<u-input height="102" style="width:380rpx" disabled input-align="right" v-model="form.rent_date_start" @click="calendarShow1 = true" placeholder="请选择租约期限"></u-input> <u-input height="102" style="width:380rpx" disabled input-align="right" v-model="form.rent_date_start" @click="calendarShow1 = true" placeholder="请选择租约期限"></u-input>
<image class="calendar" src="/static/kehu/calendar.png" mode="" @click="calendarShow1 = true" /> <image class="calendar" src="/static/kehu/calendar.png" mode="" @click="calendarShow1 = true" />
<u-calendar v-model="calendarShow1" max-date="2099-12-31" mode="date" @change="changeDate1"></u-calendar>
<u-picker mode="time" confirm-color="#FF6D25" :default-time="form.rent_date_start" v-model="calendarShow1" :params="params" @confirm="dateConfirm1"></u-picker>
</view> </view>
</view> </view>
<view class="item"> <view class="item">
@@ -115,7 +115,7 @@
<view class="input"> <view class="input">
<u-input height="102" style="width:380rpx" disabled input-align="right" v-model="form.rent_date_end" @click="calendarShow2 = true" placeholder="请选择租约期限"></u-input> <u-input height="102" style="width:380rpx" disabled input-align="right" v-model="form.rent_date_end" @click="calendarShow2 = true" placeholder="请选择租约期限"></u-input>
<image class="calendar" src="/static/kehu/calendar.png" mode="" @click="calendarShow2 = true" /> <image class="calendar" src="/static/kehu/calendar.png" mode="" @click="calendarShow2 = true" />
<u-calendar v-model="calendarShow2" max-date="2099-12-31" mode="date" @change="changeDate2"></u-calendar>
<u-picker mode="time" confirm-color="#FF6D25" :default-time="form.rent_date_end" v-model="calendarShow2" :params="params" @confirm="dateConfirm2"></u-picker>
</view> </view>
</view> </view>
<view class="item"> <view class="item">
@@ -154,8 +154,11 @@
export default { export default {
data() { data() {
return { return {
mindate: '',
maxdate: '2099-12-31',
params: {
year: true,
month: true,
day: true
},
canEdit: true, canEdit: true,
errText: '', errText: '',
step:1, step:1,
@@ -507,9 +510,9 @@
}) })
return ; return ;
} }
this.$refs.uToast.show({
title: '提交预览中...'
})
// this.$refs.uToast.show({
// title: '提交预览中...'
// })
let body = { let body = {
"contractId": this.contractId, "contractId": this.contractId,
"oldContractId": this.electContractInfo.proxy_contract_id,//续期合同id "oldContractId": this.electContractInfo.proxy_contract_id,//续期合同id
@@ -577,14 +580,12 @@
}, },
// 租约期限 // 租约期限
changeDate1(e){
this.form.rent_date_start = e.result
this.mindate = e.result
dateConfirm1(e){
this.form.rent_date_start = e.year + '-'+e.month + '-'+e.day
}, },
// 租约期限 // 租约期限
changeDate2(e){
this.form.rent_date_end = e.result
this.maxdate = e.result
dateConfirm2(e){
this.form.rent_date_end = e.year + '-'+e.month + '-'+e.day
}, },
sexChange(){ sexChange(){
console.log(this.form.sex) console.log(this.form.sex)


+ 17
- 2
src/pages/my/goonContract.vue View File

@@ -19,11 +19,11 @@
{{item.address||''}}({{item.account_num}}) {{item.address||''}}({{item.account_num}})
<view class="goon" @click="topage(item)">续期</view> <view class="goon" @click="topage(item)">续期</view>
</view> </view>
<view class="time">合同时间:{{item.rent_date_end}} - {{item.rent_date_end}}</view>
<view class="time">合同时间:{{item.rent_date_start}}至{{item.rent_date_end}}</view>
<view class="bot"> <view class="bot">
<view>租客:{{item.customer_name}}</view> <view>租客:{{item.customer_name}}</view>
<view>租金{{item.rent_price}}</view> <view>租金{{item.rent_price}}</view>
<view class="tel"><image class="tel-icon" src="/static/my/tel.png" mode="" />{{item.customer_tel}}</view>
<view class="tel" @click="tocall(item.customer_tel)"><image class="tel-icon" src="/static/my/tel.png" mode="" />{{formatPhone(item.customer_tel)}}</view>
</view> </view>
</view> </view>
<view class="empty-box" v-if="listData.length==0&&!loading"> <view class="empty-box" v-if="listData.length==0&&!loading">
@@ -67,6 +67,21 @@
this.getList(); this.getList();
}, },
methods: { methods: {
formatPhone(phone){
if(phone){
let left = phone.substring(0,3)
// let mid = phone.substring(3,7)
let right = phone.substring(7,4)
return left+'****' + right
}else{
return ''
}
},
tocall(phone){
uni.makePhoneCall({
phoneNumber: phone
})
},
openCalendar(type){ openCalendar(type){
if(type==0){ if(type==0){
this.type = 0 this.type = 0


+ 16
- 4
src/pages/otherPage/jjrentDetail.vue View File

@@ -5,7 +5,7 @@
</view> </view>
<view class="house-info"> <view class="house-info">
<view class="top-cont"> <view class="top-cont">
<view class="title"><view class="u-line-1">{{roomInfo.address}}</view>
<view class="title"><view class="u-line-1">{{roomInfo.address||''}}</view>
</view> </view>
<view class="call-info" @click="call(item.tellPhone)"> <view class="call-info" @click="call(item.tellPhone)">
<image class="call" src="/static/czDetail/call.png" mode="" />{{roomInfo.personName}} <image class="call" src="/static/czDetail/call.png" mode="" />{{roomInfo.personName}}
@@ -13,15 +13,15 @@
</view> </view>
<view class="mid-cont"> <view class="mid-cont">
<view class="item"> <view class="item">
<view class="item-val">{{roomInfo.masterHouseType}}</view>
<view class="item-val">{{roomInfo.masterHouseType||''}}</view>
<view class="item-type">房型</view> <view class="item-type">房型</view>
</view> </view>
<view class="item"> <view class="item">
<view class="item-val">{{roomInfo.roomType}}</view>
<view class="item-val">{{roomInfo.masterHouseType||''}}</view>
<view class="item-type">户型</view> <view class="item-type">户型</view>
</view> </view>
<view class="item"> <view class="item">
<view class="item-val">{{roomInfo.area}}㎡</view>
<view class="item-val">{{roomInfo.area||0}}㎡</view>
<view class="item-type">面积</view> <view class="item-type">面积</view>
</view> </view>
</view> </view>
@@ -79,8 +79,20 @@
item.pictureUrl item.pictureUrl
) )
} }
this.personalIntermediaryView()
}, },
methods: { methods: {
personalIntermediaryView(){
this.$u.api.personalIntermediaryView({body:{mediacyId: this.roomInfo.mediacyId,isStore: this.roomInfo.isStore}}).then((res)=>{
if(res.ErrNo=='0000'){
// this.roomInfo.isStore =0
// uni.showToast({
// title: res.ErrMsg,
// icon: 'none'
// })
}
})
},
//拜访 //拜访
visitFun(){ visitFun(){
uni.navigateTo({ uni.navigateTo({


+ 6
- 10
src/pages/otherPage/rent.vue View File

@@ -131,9 +131,14 @@
}; };
}, },
created(){ created(){
},
onShow(){
this.pageNo = 1
this.listData = []
this.loadDone = false
this.getList() this.getList()
this.getbaseData() this.getbaseData()
// this.getRoomType()
}, },
onReachBottom() { onReachBottom() {
this.getList(); this.getList();
@@ -150,15 +155,6 @@
this.addressListRight = this.addressList[0].children this.addressListRight = this.addressList[0].children
}) })
}, },

getRoomType(){
this.$u.api.getRoomType({body:{}}).then((res)=>{
// console.log(res)
if(res.result&&res.result.length){
this.buildTypeList = this.buildTypeList.concat(res.result)
}
})
},
secectAddressQu(item,index){ secectAddressQu(item,index){
if(index==0) {// 不限 if(index==0) {// 不限
this.searchForm.addressQuval = '' this.searchForm.addressQuval = ''


+ 0
- 1
src/pages/otherPage/rentDetail.vue View File

@@ -90,7 +90,6 @@
this.roomId = options.id; this.roomId = options.id;
this.roomInfo = {} this.roomInfo = {}
this.roomInfo = uni.getStorageSync('roomInfo') this.roomInfo = uni.getStorageSync('roomInfo')
console.log(this.roomInfo)
this.roomPictureList() this.roomPictureList()
}, },
onShow() { onShow() {


+ 0
- 6
src/pages/otherPage/shouding.vue View File

@@ -188,13 +188,7 @@
"idno": this.form.idno, "idno": this.form.idno,
} }
this.$u.api.appSave({body:body}).then((res)=>{ this.$u.api.appSave({body:body}).then((res)=>{
console.log(res)
if(res.ErrNo=='0000'){ if(res.ErrNo=='0000'){
// this.$refs.uToast.show({
// title: res.ErrMsg,
// icon: 'none',
// type:'success'
// })
uni.navigateBack() uni.navigateBack()
} }
}) })


Loading…
Cancel
Save