|
@@ -20,16 +20,116 @@
|
|
|
{{ category.className }}
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="list-view-title"> <view class="list-view-h1">机构类型:</view> </view>
|
|
|
+ <view class="remarks-input">
|
|
|
+ <input
|
|
|
+ class="input"
|
|
|
+ type="text"
|
|
|
+ v-model="remarksParams.clubType"
|
|
|
+ value=""
|
|
|
+ placeholder="如美甲店,医院"
|
|
|
+ maxlength="15"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
<view class="list-view-title">
|
|
|
<view class="list-view-h1"><text>*</text>关键词记录:</view>
|
|
|
+ <view class="list-view-p"
|
|
|
+ >(请总结客户的咨询内容,以商品或者服务的关键词形式填写,不需要填口语化的内容。)</view
|
|
|
+ >
|
|
|
+ </view>
|
|
|
+ <view class="list-view-list-main">
|
|
|
+ <view class="list-view-list" v-for="(item, index) in remarksList" :key="index">
|
|
|
+ <view class="list-view-input">
|
|
|
+ <input
|
|
|
+ class="input"
|
|
|
+ type="text"
|
|
|
+ v-model="item.label"
|
|
|
+ placeholder="请输入关键词,不超过10个汉字"
|
|
|
+ maxlength="10"
|
|
|
+ @input="bindRemarkAction(index, $event)"
|
|
|
+ />
|
|
|
+ <view class="list-view-assAction" v-if="item.isAssociation">
|
|
|
+ <scroll-view class="tui-popup-scroll train" scroll-y="true">
|
|
|
+ <view
|
|
|
+ class="ass-list"
|
|
|
+ v-for="(ass, assIndex) in assActionList"
|
|
|
+ :key="assIndex"
|
|
|
+ @click="SelectAssociationFn(ass.remarks,item)"
|
|
|
+ >{{ ass.remarks }}</view
|
|
|
+ >
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-view-btn">
|
|
|
+ <text
|
|
|
+ class="iconfont icon-zengjia"
|
|
|
+ v-if="remarksList.length < 9 && index === remarksList.length - 1"
|
|
|
+ @click="addListFn(item, index)"
|
|
|
+ ></text>
|
|
|
+ <text
|
|
|
+ class="iconfont icon-shanchu4"
|
|
|
+ v-if="remarksList.length > 1 && index !== remarksList.length - 1"
|
|
|
+ @click="deleteLogistItemFn(item, index)"
|
|
|
+ ></text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-view-title">
|
|
|
+ <view class="list-view-h1"><text>*</text>价格敏感度:</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-view-radio">
|
|
|
+ <picker @change="bindPickerChange(1, $event)" :value="index" :range="priceActions" range-key="name">
|
|
|
+ <input
|
|
|
+ class="input"
|
|
|
+ type="text"
|
|
|
+ disabled="false"
|
|
|
+ v-model="priceFlagText"
|
|
|
+ value=""
|
|
|
+ placeholder="请选择"
|
|
|
+ />
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="list-view-title">
|
|
|
+ <view class="list-view-h1"><text>*</text>意向程度:</view>
|
|
|
</view>
|
|
|
+ <view class="list-view-radio">
|
|
|
+ <picker @change="bindPickerChange(2, $event)" :value="index" :range="intenActions" range-key="name">
|
|
|
+ <input
|
|
|
+ class="input"
|
|
|
+ type="text"
|
|
|
+ disabled="false"
|
|
|
+ v-model="intenFlagText"
|
|
|
+ value=""
|
|
|
+ placeholder="请选择"
|
|
|
+ />
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="list-view-title">
|
|
|
+ <view class="list-view-h1"><text>*</text>跟进状态:</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-view-radio">
|
|
|
+ <picker @change="bindPickerChange(3, $event)" :value="index" :range="stateActions" range-key="name">
|
|
|
+ <input
|
|
|
+ class="input"
|
|
|
+ type="text"
|
|
|
+ disabled="false"
|
|
|
+ v-model="followStateText"
|
|
|
+ value=""
|
|
|
+ placeholder="请选择"
|
|
|
+ />
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="list-view-title"> <view class="list-view-h1">额外说明:</view> </view>
|
|
|
<view class="remarks-textarea">
|
|
|
<textarea
|
|
|
class="textarea"
|
|
|
- v-model="remarksParams.remarks"
|
|
|
+ v-model="remarksParams.extra"
|
|
|
value=""
|
|
|
- placeholder="请总结你和客户的聊天内容,以关键词形式填入框内,关键词之间用中文逗号隔开"
|
|
|
- maxlength="500"
|
|
|
+ placeholder="请输入其他需要说明的内容"
|
|
|
+ maxlength="200"
|
|
|
@input="conInput"
|
|
|
/>
|
|
|
<text class="limit-text">{{ min }}/{{ max }}</text>
|
|
@@ -92,22 +192,51 @@ export default {
|
|
|
logisticsBatchId: 0,
|
|
|
productActions: [],
|
|
|
remarksParams: {
|
|
|
- remarks: '',
|
|
|
+ clubType:'', //机构类型
|
|
|
+ remarks:[], // 关键词
|
|
|
+ extra: '',//额外说明
|
|
|
fileList: [],
|
|
|
imageList: [],
|
|
|
questionManId: 0,
|
|
|
serviceProviderId: 0,
|
|
|
- consult:''
|
|
|
+ consult:'',
|
|
|
+ pinceSensitve:0,//价格敏感度
|
|
|
+ satisfied:0,// 意向程度
|
|
|
+ followup:0,// 跟进状态
|
|
|
},
|
|
|
min: 0,
|
|
|
- max: 500,
|
|
|
+ max: 200,
|
|
|
handleType:'',
|
|
|
questionMan:'',
|
|
|
clubUserId:0,
|
|
|
clubInfo:{},
|
|
|
userInfo:{},
|
|
|
checkedCategorysList:[],
|
|
|
- categorys:[]
|
|
|
+ categorys:[],
|
|
|
+ priceFlagText: '',
|
|
|
+ intenFlagText: '',
|
|
|
+ followStateText: '',
|
|
|
+ priceActions: [
|
|
|
+ { name: '敏感', value: 1 },
|
|
|
+ { name: '适中', value: 2 },
|
|
|
+ { name: '不敏感', value: 3 },
|
|
|
+ { name: '不明确', value: 4 }
|
|
|
+ ],
|
|
|
+ intenActions: [
|
|
|
+ { name: '意向强烈', value: 1 },
|
|
|
+ { name: '意向一般', value: 2 },
|
|
|
+ { name: '意向平淡', value: 3 },
|
|
|
+ { name: '随便看看', value: 4 }
|
|
|
+ ],
|
|
|
+ stateActions: [{ name: '跟进中', value: 1 }, { name: '跟进完成', value: 2 }, { name: '已放弃', value: 3 }],
|
|
|
+ remarksList: [
|
|
|
+ {
|
|
|
+ label: '',
|
|
|
+ isAssociation:false
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ checkRemarkIndex:0,
|
|
|
+ assActionList: []
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -138,9 +267,17 @@ export default {
|
|
|
.then(response => {
|
|
|
let data = response.data
|
|
|
this.questionMan = data.questionMan
|
|
|
+ this.remarksList = data.remarks.map((el, index) => {
|
|
|
+ el.isAssociation = false
|
|
|
+ return el
|
|
|
+ })
|
|
|
this.remarksParams.questionManId = data.questionManId
|
|
|
- this.remarksParams.remarks = data.remarks.join(',')
|
|
|
this.remarksParams.remarksId = data.remarksId
|
|
|
+ this.remarksParams.extra = data.extra
|
|
|
+ this.remarksParams.clubType = data.clubType
|
|
|
+ this.remarksParams.pinceSensitve = data.pinceSensitve
|
|
|
+ this.remarksParams.satisfied = data.satisfied
|
|
|
+ this.remarksParams.followup = data.followup
|
|
|
this.remarksParams.fileList = data.fileList
|
|
|
this.remarksParams.imageList = data.imageList
|
|
|
this.remarksParams.consult = data.consult
|
|
@@ -153,6 +290,9 @@ export default {
|
|
|
}
|
|
|
return el
|
|
|
})
|
|
|
+ this.priceFlagText = this.pinceFilters(data.pinceSensitve)
|
|
|
+ this.intenFlagText = this.intenActionsFilters(data.satisfied)
|
|
|
+ this.followStateText = this.followupFilters(data.followup)
|
|
|
this.initGetStotage()
|
|
|
})
|
|
|
.catch(error => {
|
|
@@ -172,16 +312,68 @@ export default {
|
|
|
console.log('=========>获取咨询类别列表失败')
|
|
|
})
|
|
|
},
|
|
|
+ bindRemarkAction(index, event) {
|
|
|
+ this.checkRemarkIndex = index
|
|
|
+ if (event.detail.value != '') {
|
|
|
+ this.UserService.getCmremarkslist({remarks : event.detail.value}).then(response => {
|
|
|
+ if(response.data&&response.data.length>0){
|
|
|
+ this.assActionList = response.data
|
|
|
+ this.remarksList[index].isAssociation = true
|
|
|
+ }else{
|
|
|
+ this.assActionList = []
|
|
|
+ this.remarksList[index].isAssociation = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(error => {
|
|
|
+ console.log('=========>获取关键词联想失败')
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.remarksList[index].isAssociation = false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ SelectAssociationFn(ass,item) {
|
|
|
+ //选择关键词
|
|
|
+ item.isAssociation = false
|
|
|
+ item.label = ass
|
|
|
+ },
|
|
|
+ addListFn() {
|
|
|
+ //添加
|
|
|
+ let obj = { label: '',isAssociation:false}
|
|
|
+ this.remarksList.push(obj)
|
|
|
+ },
|
|
|
+ deleteLogistItemFn(item, index) {
|
|
|
+ this.remarksList.splice(index, 1)
|
|
|
+ },
|
|
|
+ bindPickerChange(type, e) {
|
|
|
+ //选择筛选条件
|
|
|
+ switch (type) {
|
|
|
+ case 1:
|
|
|
+ this.priceFlagText = this.priceActions[e.target.value].name
|
|
|
+ this.remarksParams.pinceSensitve = this.priceActions[e.target.value].value
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.intenFlagText = this.intenActions[e.target.value].name
|
|
|
+ this.remarksParams.satisfied = this.intenActions[e.target.value].value
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.followStateText = this.stateActions[e.target.value].name
|
|
|
+ this.remarksParams.followup = this.stateActions[e.target.value].value
|
|
|
+ break
|
|
|
+ }
|
|
|
+ },
|
|
|
editButtonConfim() {
|
|
|
//保存资料备注
|
|
|
- if (this.remarksParams.remarks == '') {
|
|
|
- this.$util.msg('请输入关键词记录', 2000)
|
|
|
- return
|
|
|
- }
|
|
|
if (this.remarksParams.consult == '') {
|
|
|
this.$util.msg('请选择咨询类别', 2000)
|
|
|
return
|
|
|
}
|
|
|
+ //统一处理关键词
|
|
|
+ let remarksList = []
|
|
|
+ for (const el of this.remarksList) {
|
|
|
+ remarksList.push(el.label)
|
|
|
+ }
|
|
|
+ this.remarksParams.remarks = JSON.stringify(remarksList)
|
|
|
+ console.log('remarksParams',this.remarksParams)
|
|
|
if (this.remarksParams.remarks == '') {
|
|
|
this.$util.msg('请输入关键词记录', 2000)
|
|
|
return
|
|
@@ -278,6 +470,35 @@ export default {
|
|
|
this.$util.msg('您输入的字数已达上限', 2000)
|
|
|
}
|
|
|
},
|
|
|
+ followupFilters(value) {
|
|
|
+ // 订单来源
|
|
|
+ const map = {
|
|
|
+ 1: '跟进中',
|
|
|
+ 2: '跟进完成',
|
|
|
+ 3: '已放弃'
|
|
|
+ }
|
|
|
+ return map[value]
|
|
|
+ },
|
|
|
+ pinceFilters(value) {
|
|
|
+ // 意向
|
|
|
+ const map = {
|
|
|
+ 1: '敏感',
|
|
|
+ 2: '适中',
|
|
|
+ 3: '不敏感',
|
|
|
+ 4: '不明确'
|
|
|
+ }
|
|
|
+ return map[value]
|
|
|
+ },
|
|
|
+ intenActionsFilters(value) {
|
|
|
+ // 意向
|
|
|
+ const map = {
|
|
|
+ 1: '意向强烈',
|
|
|
+ 2: '意向一般',
|
|
|
+ 3: '意向平淡',
|
|
|
+ 4: '随便看看'
|
|
|
+ }
|
|
|
+ return map[value]
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {}
|
|
|
}
|
|
@@ -314,6 +535,119 @@ page {
|
|
|
font-size: $font-size-20;
|
|
|
}
|
|
|
}
|
|
|
+ .list-view-radio {
|
|
|
+ width: 100%;
|
|
|
+ height: 90rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 10rpx;
|
|
|
+ border: 1px solid #b2b2b2;
|
|
|
+ border-radius: 6rpx;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+ position: relative;
|
|
|
+ &.btn {
|
|
|
+ border: none;
|
|
|
+ margin-top: 40rpx;
|
|
|
+ }
|
|
|
+ .input {
|
|
|
+ width: 100%;
|
|
|
+ height: 90rpx;
|
|
|
+ line-height: 90rpx;
|
|
|
+ float: left;
|
|
|
+ box-sizing: border-box;
|
|
|
+ font-size: $font-size-24;
|
|
|
+ color: #333333;
|
|
|
+ padding: 0 10rpx;
|
|
|
+ padding-right: 90rpx;
|
|
|
+ }
|
|
|
+ .iconfont {
|
|
|
+ width: 50rpx;
|
|
|
+ height: 90rpx;
|
|
|
+ display: block;
|
|
|
+ line-height: 90rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 30rpx;
|
|
|
+ color: #999999;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .list-view-list-main {
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+ position: relative;
|
|
|
+ .list-view-list {
|
|
|
+ width: 100%;
|
|
|
+ height: 90rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+ .list-view-input {
|
|
|
+ width: 614rpx;
|
|
|
+ height: 90rpx;
|
|
|
+ float: left;
|
|
|
+ position: relative;
|
|
|
+ .input {
|
|
|
+ width: 614rpx;
|
|
|
+ height: 90rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 20rpx;
|
|
|
+ border: 1px solid #b2b2b2;
|
|
|
+ border-radius: 6rpx;
|
|
|
+ font-size: $font-size-24;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ .list-view-assAction {
|
|
|
+ width: 614rpx;
|
|
|
+ min-height: 270rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 10rpx 0;
|
|
|
+ background: rgba(255, 255, 255, 1);
|
|
|
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
|
|
|
+ border-radius: 6rpx;
|
|
|
+ position: absolute;
|
|
|
+ top: -288rpx;
|
|
|
+ left: 0;
|
|
|
+ z-index: 999;
|
|
|
+ overflow: hidden;
|
|
|
+ .tui-popup-scroll {
|
|
|
+ width: 100%;
|
|
|
+ height: 270rpx;
|
|
|
+ }
|
|
|
+ .ass-list {
|
|
|
+ width: 100%;
|
|
|
+ height: 90rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 24rpx;
|
|
|
+ line-height: 90rpx;
|
|
|
+ font-size: $font-size-26;
|
|
|
+ color: #666666;
|
|
|
+ text-align: left;
|
|
|
+ border-bottom: 1px solid #e1e1e1;
|
|
|
+ &:last-child{
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .list-view-btn {
|
|
|
+ width: 88rpx;
|
|
|
+ height: 90rpx;
|
|
|
+ float: right;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 90rpx;
|
|
|
+ .icon-zengjia {
|
|
|
+ color: #1890f9;
|
|
|
+ font-size: $font-size-48;
|
|
|
+ }
|
|
|
+ .icon-shanchu4 {
|
|
|
+ color: #e15616;
|
|
|
+ font-size: $font-size-48;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
.remarks-category{
|
|
|
width: 100%;
|
|
|
float: left;
|
|
@@ -343,20 +677,28 @@ page {
|
|
|
line-height: 50rpx;
|
|
|
}
|
|
|
}
|
|
|
- .remarks-input{
|
|
|
+ .remarks-input {
|
|
|
width: 100%;
|
|
|
- height: 48rpx;
|
|
|
- padding:0 16rpx;
|
|
|
+ height: 90rpx;
|
|
|
+ line-height: 90rpx;
|
|
|
margin: 20rpx 0 0 0;
|
|
|
- position: relative;
|
|
|
box-sizing: border-box;
|
|
|
- line-height: 48rpx;
|
|
|
- font-size: $font-size-26;
|
|
|
- color: $text-color;
|
|
|
+ .input {
|
|
|
+ width: 100%;
|
|
|
+ height: 90rpx;
|
|
|
+ line-height: 90rpx;
|
|
|
+ font-size: $font-size-26;
|
|
|
+ color: $text-color;
|
|
|
+ z-index: 1;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border: 1px solid #b2b2b2;
|
|
|
+ padding: 0 16rpx;
|
|
|
+ border-radius: 6rpx;
|
|
|
+ }
|
|
|
}
|
|
|
.remarks-textarea {
|
|
|
width: 100%;
|
|
|
- height: 340rpx;
|
|
|
+ height: 226rpx;
|
|
|
padding: 16rpx;
|
|
|
margin: 20rpx 0 0 0;
|
|
|
border-radius: 6rpx;
|