|
|
@@ -1,20 +1,17 @@ |
|
|
|
<template> |
|
|
|
<view class="box"> |
|
|
|
<view class="screen"> |
|
|
|
<!-- 录音标示 --> |
|
|
|
<view class="screen-record"> |
|
|
|
<view class="screen-record-text"> |
|
|
|
最新状态 |
|
|
|
</view> |
|
|
|
<view class="screen-record-tab"> |
|
|
|
<view v-for="(item,index) in stateList" :key="index"> |
|
|
|
<view :class="[screen.state==index?'screen-record-chose':'screen-record-nochose']" |
|
|
|
@click="screen.state=index"> |
|
|
|
{{item.stageName}} |
|
|
|
</view> |
|
|
|
<!-- 最新状态 --> |
|
|
|
<view class="screen"> |
|
|
|
<view class="screen-counselor"> |
|
|
|
<view class="screen-text"> |
|
|
|
最新状态 |
|
|
|
</view> |
|
|
|
<view class="screen-sel" @click="selectshow = true"> |
|
|
|
<input v-model="screen.stageName" type="text" placeholder='请选择' |
|
|
|
class="screen-inp" disabled /> |
|
|
|
<image class="screen-sel-img" src="/static/images/right-arrow.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 录音标示 --> |
|
|
|
<view class="screen-record"> |
|
|
|
<view class="screen-record-text"> |
|
|
@@ -69,9 +66,8 @@ |
|
|
|
保存 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-select v-model="selectshow" value-name="id" label-name="stageName" :list="stateList" @confirm="actionSelectCallback"></u-select> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
@@ -85,8 +81,11 @@ |
|
|
|
selectTipshow: false, |
|
|
|
buildingID: '', |
|
|
|
keyword: '', |
|
|
|
stageIndex: '', |
|
|
|
screen: { |
|
|
|
state: '0', |
|
|
|
stageId: '', |
|
|
|
stageCode: '', |
|
|
|
stageName: '', |
|
|
|
con: "", |
|
|
|
level: '1' |
|
|
|
}, |
|
|
@@ -115,13 +114,18 @@ |
|
|
|
// this.getMyCustom() |
|
|
|
// this.getFreeList() |
|
|
|
this.getNewStatus() |
|
|
|
this.getCustomerType(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//选择顾问 |
|
|
|
//最新状态 |
|
|
|
actionSelectCallback(e) { |
|
|
|
this.screen.agentId = e[0].value; |
|
|
|
this.screen.agentIdtext = e[0].label; |
|
|
|
console.log(e) |
|
|
|
this.screen.stageId = e[0].value; |
|
|
|
this.screen.stageName = e[0].label; |
|
|
|
this.stateList.forEach((item, index) => { |
|
|
|
if (item.stageName == this.screen.stageName) { |
|
|
|
this.screen.stageCode = item.stageCode |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getCustomerType() { |
|
|
|
this.$u.get("/customer/queryKeyWords").then(res => { |
|
|
@@ -132,20 +136,24 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
getNewStatus() { |
|
|
|
var that = this; |
|
|
|
let premo = { |
|
|
|
houseId: uni.getStorageSync('buildingID').id |
|
|
|
} |
|
|
|
this.$u.post('/customer/getStage', premo) |
|
|
|
.then(res => { |
|
|
|
res.map((item, index) => { |
|
|
|
if (item.stageName == this.clientStageName) { |
|
|
|
this.screen.state = index |
|
|
|
} |
|
|
|
}) |
|
|
|
if(res&& res.length){ |
|
|
|
res.forEach((item, index) => { |
|
|
|
if (item.stageName == this.clientStageName) { |
|
|
|
this.screen.stageId=res[index].id |
|
|
|
this.screen.stageCode=res[index].stageCode |
|
|
|
this.screen.stageName=res[index].stageName |
|
|
|
} |
|
|
|
}) |
|
|
|
this.stateList = res |
|
|
|
}else{ |
|
|
|
this.stateList = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
checkbox(idx) { |
|
|
|
console.log(idx) |
|
|
@@ -183,16 +191,15 @@ |
|
|
|
}) |
|
|
|
// console.log(type) |
|
|
|
let param = { |
|
|
|
"stageCode": this.stateList[this.screen.state].stageCode, |
|
|
|
"stageName": this.stateList[this.screen.state].stageName, |
|
|
|
"stageCode": this.screen.stageCode, |
|
|
|
"stageName": this.screen.stageName, |
|
|
|
"remarks": this.screen.con, |
|
|
|
orgCode: this.orgCode, |
|
|
|
words, |
|
|
|
// "settingTime":"", |
|
|
|
"agentRelationPo": { |
|
|
|
"customerId": this.customerId, |
|
|
|
"level": this.screen.level, |
|
|
|
"state": this.stateList[this.screen.state].id |
|
|
|
"state": this.screen.stageId |
|
|
|
} |
|
|
|
} |
|
|
|
this.$u.post('/customer/addZkDailyWorkRecord', param) |
|
|
@@ -214,40 +221,39 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.screen { |
|
|
|
// box-sizing: border-box; |
|
|
|
// padding: 0 30rpx; |
|
|
|
background: #FFFFFF; |
|
|
|
|
|
|
|
.screen-counselor { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
height: 106rpx; |
|
|
|
// padding: 40rpx 30rpx 36rpx 30rpx; |
|
|
|
padding: 0 30rpx; |
|
|
|
box-sizing: border-box; |
|
|
|
border-bottom: 1px solid #CCCCCC; |
|
|
|
border-bottom: 1rpx solid #CCCCCC; |
|
|
|
padding: 0 30rpx; |
|
|
|
|
|
|
|
.screen-text { |
|
|
|
margin: 40rpx 0 36rpx 0; |
|
|
|
font-size: 30rpx; |
|
|
|
font-weight: 400; |
|
|
|
color: #333333; |
|
|
|
line-height: 30rpx; |
|
|
|
line-height: 106rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.screen-sel { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: flex-end; |
|
|
|
align-items: center; |
|
|
|
width: 500rpx; |
|
|
|
margin-left: 60rpx; |
|
|
|
|
|
|
|
.screen-sel-img { |
|
|
|
margin: 40rpx 0 36rpx 0; |
|
|
|
width: 14rpx; |
|
|
|
height: 30rpx; |
|
|
|
flex-shrink: 0; |
|
|
|
width: 12rpx; |
|
|
|
height: 28rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.screen-inp { |
|
|
|
margin-top: 20rpx; |
|
|
|
padding: 0 20rpx; |
|
|
|
text-align: right; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|