Browse Source

修改写跟进回显问题

Jyt
douzhuo 2 years ago
parent
commit
b320495f2c
5 changed files with 322 additions and 223 deletions
  1. +1
    -3
      pages/center/consumer/consumerDetail.vue
  2. +24
    -8
      pages/center/consumer/newFollowup/newFollowup.vue
  3. +3
    -3
      pages/index/consumer/index.vue
  4. +294
    -207
      pages/mine/details.vue
  5. +0
    -2
      pages/mine/details2.vue

+ 1
- 3
pages/center/consumer/consumerDetail.vue View File

@@ -385,15 +385,13 @@
res.forEach(item => { res.forEach(item => {
item.agentName = this.customerInfo.agentName item.agentName = this.customerInfo.agentName
}) })


this.fllowList = res; this.fllowList = res;
}) })
}, },
// 新增跟进 // 新增跟进
followRecordAdd() { followRecordAdd() {
uni.navigateTo({ uni.navigateTo({
url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}`
url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}&level=${this.customerInfo.level}&clientStageName=${this.customerInfo.clientStageName}`
}) })
}, },
// 去编辑 // 去编辑


+ 24
- 8
pages/center/consumer/newFollowup/newFollowup.vue View File

@@ -59,8 +59,9 @@
<view class="screen-record-text"> <view class="screen-record-text">
跟进内容 跟进内容
</view> </view>
<view class="screen-record-tab">
<input type="text" placeholder="请输入跟进内容" v-model="screen.con" />
<view class="screen-record-tab" style="padding: 20rpx 0;align-items: center;">
<!-- <input type="text" placeholder="请输入跟进内容" v-model="screen.con" /> -->
<textarea placeholder="请输入跟进内容" v-model="screen.con" auto-height />
</view> </view>
</view> </view>
<view class="screen-foot"> <view class="screen-foot">
@@ -97,13 +98,18 @@
customerType: [], customerType: [],
customerId: '', customerId: '',
orgCode: '', orgCode: '',
// 上级页面选中的
clientStageName: '', // 选中的标签
level: '', // 选中的标签
} }
}, },
onShow() { onShow() {
this.orgCode = uni.getStorageSync('orgCode') this.orgCode = uni.getStorageSync('orgCode')
}, },
onLoad(e) { onLoad(e) {
this.customerId = e.id
if (e.id) this.customerId = e.id
if (e.clientStageName) this.clientStageName = e.clientStageName
if (e.level) this.screen.level = e.level
this.buildingID = uni.getStorageSync('buildingID').id; this.buildingID = uni.getStorageSync('buildingID').id;
this.recordList = [] this.recordList = []
// this.getMyCustom() // this.getMyCustom()
@@ -132,6 +138,11 @@
} }
this.$u.post('/customer/getStage', premo) this.$u.post('/customer/getStage', premo)
.then(res => { .then(res => {
res.map((item, index) => {
if (item.stageName == this.clientStageName) {
this.screen.state = index
}
})
this.stateList = res this.stateList = res
}) })


@@ -242,9 +253,7 @@
} }


.screen-record { .screen-record {
height: 192rpx;
// width: 100%;
overflow: hidden;
width: 100%;
padding: 0 30rpx; padding: 0 30rpx;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;
@@ -261,11 +270,16 @@
margin-top: 30rpx; margin-top: 30rpx;
width: 100%; width: 100%;
display: flex; display: flex;
flex-wrap: wrap;

input { input {
flex-grow: 1; flex-grow: 1;
} }

textarea {
flex-grow: 1;
}

.screen-record-chose { .screen-record-chose {
width: 151rpx; width: 151rpx;
height: 60rpx; height: 60rpx;
@@ -276,6 +290,7 @@
text-align: center; text-align: center;
line-height: 60rpx; line-height: 60rpx;
margin-right: 22rpx; margin-right: 22rpx;
margin-bottom: 22rpx;
} }


.screen-record-nochose { .screen-record-nochose {
@@ -287,6 +302,7 @@
text-align: center; text-align: center;
line-height: 60rpx; line-height: 60rpx;
margin-right: 22rpx; margin-right: 22rpx;
margin-bottom: 22rpx;
} }


} }


+ 3
- 3
pages/index/consumer/index.vue View File

@@ -91,7 +91,7 @@
<view class="content-last"> <view class="content-last">
<!-- <view class="content-last-tab">添加提醒</view> <!-- <view class="content-last-tab">添加提醒</view>
<view class="content-last-tab">拨打电话</view> --> <view class="content-last-tab">拨打电话</view> -->
<view class="content-last-tab" @click.stop="gotoFollowUp(item.id)">写跟进</view>
<view class="content-last-tab" @click.stop="gotoFollowUp(item)">写跟进</view>
</view> </view>
</template> </template>


@@ -674,9 +674,9 @@
url: '/pages/center/consumer/consumerSearch' url: '/pages/center/consumer/consumerSearch'
}); });
}, },
gotoFollowUp(id) {
gotoFollowUp(item) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/center/consumer/newFollowup/newFollowup?id=${id}`
url: `/pages/center/consumer/newFollowup/newFollowup?id=${item.id}&level=${item.level}&clientStageName=${item.clientStageName}`
}) })
}, },
}, },


+ 294
- 207
pages/mine/details.vue
File diff suppressed because it is too large
View File


+ 0
- 2
pages/mine/details2.vue View File

@@ -204,8 +204,6 @@
src="../../static/images/audioinfo2.png" mode=""></image> src="../../static/images/audioinfo2.png" mode=""></image>
<view @click.stop="Receivedetailsabouttab('Receivedetailsabout')">接待信息</view> <view @click.stop="Receivedetailsabouttab('Receivedetailsabout')">接待信息</view>
</view> </view>


</view> </view>
</view> </view>




Loading…
Cancel
Save