|
@@ -35,45 +35,50 @@
|
|
>
|
|
>
|
|
<view class="tui-remarks-title">
|
|
<view class="tui-remarks-title">
|
|
<view class="tui-remarks-title-top">
|
|
<view class="tui-remarks-title-top">
|
|
- <view class="tui-remarks-time tt">{{ report.clubName }}</view>
|
|
|
|
|
|
+ <view class="tui-remarks-time tt">{{ report.questionMan }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-remarks-title-bot">
|
|
<view class="tui-remarks-title-bot">
|
|
<view class="tui-remarks-text-view">
|
|
<view class="tui-remarks-text-view">
|
|
- <view class="tui-remarks-text h"></text>报备人:{{ report.recordName }}</view>
|
|
|
|
|
|
+ <view class="tui-remarks-text h"></text>报备人:{{ report.reportName }}</view>
|
|
<view class="tui-remarks-text y">
|
|
<view class="tui-remarks-text y">
|
|
- {{ report.addDate }}
|
|
|
|
|
|
+ {{ report.addTime }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-remarks-title-icon" :class="{
|
|
<view class="tui-remarks-title-icon" :class="{
|
|
- reviewed: report.type == 1,
|
|
|
|
- failed: report.type == 2,
|
|
|
|
- approved: report.type == 3
|
|
|
|
|
|
+ reviewed: report.status == 1,
|
|
|
|
+ approved: report.status == 2,
|
|
|
|
+ failed: report.status == 3
|
|
}">
|
|
}">
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-remarks-content">
|
|
<view class="tui-remarks-content">
|
|
- <view class="tui-remarks-goods" v-if="report.product">
|
|
|
|
|
|
+ <view class="tui-remarks-text" v-if="!report.productId">
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{ report.reportText }}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tui-remarks-goods" v-else>
|
|
<view class="goods-image">
|
|
<view class="goods-image">
|
|
<image
|
|
<image
|
|
- :src="report.product.images"
|
|
|
|
|
|
+ :src="report.mainImage"
|
|
mode=""
|
|
mode=""
|
|
></image>
|
|
></image>
|
|
</view>
|
|
</view>
|
|
<view class="goods-main">
|
|
<view class="goods-main">
|
|
<view class="name">
|
|
<view class="name">
|
|
- {{ report.product.name }}
|
|
|
|
|
|
+ {{ report.productName }}
|
|
</view>
|
|
</view>
|
|
<view class="shop">{{ report.reportText }}</view>
|
|
<view class="shop">{{ report.reportText }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="tui-remarks-text" v-else>
|
|
|
|
- {{ report.reportText }}
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
- <view class="tui-remarks-button">
|
|
|
|
|
|
+ <view class="tui-remarks-button" v-if="report.serviceProviderId === listQuery.serviceProviderId" >
|
|
<view class="btn edit" @click.stop="handReportDetails(report.reportId)">查看关联咨询记录</view>
|
|
<view class="btn edit" @click.stop="handReportDetails(report.reportId)">查看关联咨询记录</view>
|
|
- <view class="btn del" @click.stop="deleteRemark(report.reportId)">删除</view>
|
|
|
|
|
|
+ <view class="btn del" @click.stop="deleteReport(report.reportId)"> 删除</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tui-remarks-button" v-else>
|
|
|
|
+ <view class="btn none" @click.stop="handReportDetails(report.reportId)">查看关联咨询记录</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!--加载loadding-->
|
|
<!--加载loadding-->
|
|
@@ -100,9 +105,6 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { mapState, mapMutations } from 'vuex'
|
|
import { mapState, mapMutations } from 'vuex'
|
|
-import cmRefereepopup from '@/components/cm-module/cm-seller/cm-refereepopup'
|
|
|
|
-import cmClubmodal from '@/components/cm-module/cm-seller/cm-clubmodal'
|
|
|
|
-import cmScreenDrawer from '@/components/cm-module/cm-seller/cm-screen-drawer'
|
|
|
|
|
|
|
|
const defaultListQuery = {
|
|
const defaultListQuery = {
|
|
manager:0,
|
|
manager:0,
|
|
@@ -112,11 +114,6 @@ const defaultListQuery = {
|
|
pageSize: 10
|
|
pageSize: 10
|
|
}
|
|
}
|
|
export default {
|
|
export default {
|
|
- components: {
|
|
|
|
- cmRefereepopup,
|
|
|
|
- cmClubmodal,
|
|
|
|
- cmScreenDrawer
|
|
|
|
- },
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
StaticUrl: this.$Static,
|
|
StaticUrl: this.$Static,
|
|
@@ -137,41 +134,8 @@ export default {
|
|
}
|
|
}
|
|
],
|
|
],
|
|
totalRecord: 0,
|
|
totalRecord: 0,
|
|
- popupShow: true,
|
|
|
|
- popupShow1: false,
|
|
|
|
listQuery: Object.assign({}, defaultListQuery),
|
|
listQuery: Object.assign({}, defaultListQuery),
|
|
- reportList: [
|
|
|
|
- {
|
|
|
|
- clubName:'采美信息技术有限公司',
|
|
|
|
- recordName:'吴小研',
|
|
|
|
- addDate:'2022-08-10',
|
|
|
|
- reportText:'请填写报备说明请填写报备说明请填写报备说明请填写报备说明请填写报备说明请填写报备说明',
|
|
|
|
- product:{
|
|
|
|
- images:'https://img.caimei365.com/group1/M00/03/FC/rB-lGGInLUKAJAR0AAOvlb8lQKk394.jpg',
|
|
|
|
- name:'易可美贻贝粘蛋白私密修复精华水易可美贻贝粘蛋白私密修复精华水易可美贻贝粘蛋白私密修复精华水'
|
|
|
|
- },
|
|
|
|
- type:1
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- clubName:'采美信息技术有限公司',
|
|
|
|
- recordName:'吴小研',
|
|
|
|
- addDate:'2022-08-10',
|
|
|
|
- reportText:'请填写报备说明请填写报备说明请填写报备说明请填写报备说明请填写报备说明请填写报备说明',
|
|
|
|
- product:{
|
|
|
|
- images:'https://img.caimei365.com/group1/M00/03/FC/rB-lGGInLUKAJAR0AAOvlb8lQKk394.jpg',
|
|
|
|
- name:'易可美贻贝粘蛋白私密修复精华水易可美贻贝粘蛋白私密修复精华水易可美贻贝粘蛋白私密修复精华水'
|
|
|
|
- },
|
|
|
|
- type:2
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- clubName:'采美信息技术有限公司',
|
|
|
|
- recordName:'吴小研',
|
|
|
|
- addDate:'2022-08-10',
|
|
|
|
- reportText:'请填写报备说明请填写报备说明请填写报备说明请填写报备说明请填写报备说明请填写报备说明',
|
|
|
|
- product:null,
|
|
|
|
- type:3
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ reportList: [],
|
|
scrollTop: 0,
|
|
scrollTop: 0,
|
|
isEmpty: false,
|
|
isEmpty: false,
|
|
loadding: false,
|
|
loadding: false,
|
|
@@ -184,7 +148,7 @@ export default {
|
|
modal: false,
|
|
modal: false,
|
|
questionMan: '',
|
|
questionMan: '',
|
|
questionManId: '',
|
|
questionManId: '',
|
|
- handleRemarksId: 0,
|
|
|
|
|
|
+ handleReportId: 0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -195,13 +159,11 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(['login', 'logout']),
|
|
...mapMutations(['login', 'logout']),
|
|
- async init() {
|
|
|
|
|
|
+ async initGetlist() {
|
|
const userInfo = await this.$api.getStorage()
|
|
const userInfo = await this.$api.getStorage()
|
|
this.listQuery.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
this.listQuery.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
- // const VisitorInfo = await this.$api.getComStorage('VisitorInfo')
|
|
|
|
- // this.questionMan = VisitorInfo.questionMan
|
|
|
|
- // this.listQuery.questionManId = VisitorInfo.questionManId
|
|
|
|
- // this.userReportVisitorRemarks()
|
|
|
|
|
|
+ this.listQuery.manager = userInfo.manager ? userInfo.manager : 0
|
|
|
|
+ this.userReportVisitorRemarks()
|
|
},
|
|
},
|
|
userReportVisitorRemarks() {
|
|
userReportVisitorRemarks() {
|
|
this.reportList = []
|
|
this.reportList = []
|
|
@@ -266,14 +228,14 @@ export default {
|
|
console.log('=======>查询列表异常~')
|
|
console.log('=======>查询列表异常~')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- deleteRemark(remarksId) {
|
|
|
|
- this.handleRemarksId = remarksId
|
|
|
|
|
|
+ deleteReport(reportId) {
|
|
|
|
+ this.handleReportId = reportId
|
|
this.modal = true
|
|
this.modal = true
|
|
this.contentModalText = '确定删除该报备吗?'
|
|
this.contentModalText = '确定删除该报备吗?'
|
|
},
|
|
},
|
|
handReportDetails(reportId) {
|
|
handReportDetails(reportId) {
|
|
- //跳转报备详情
|
|
|
|
- this.$api.navigateTo(`/pages/seller/remarks/relation-visitor-list?id=${reportId}`)
|
|
|
|
|
|
+ //跳转报备关联记录
|
|
|
|
+ this.$api.navigateTo(`/pages/seller/remarks/relation-visitor-list?reportId=${reportId}`)
|
|
},
|
|
},
|
|
handSearchConfirmData(data){
|
|
handSearchConfirmData(data){
|
|
//确定筛选
|
|
//确定筛选
|
|
@@ -288,39 +250,6 @@ export default {
|
|
console.log('确定筛选',this.listQuery)
|
|
console.log('确定筛选',this.listQuery)
|
|
this.userReportVisitorRemarks()
|
|
this.userReportVisitorRemarks()
|
|
},
|
|
},
|
|
- handleShowClubpopup() {
|
|
|
|
- //跳转选择咨询人
|
|
|
|
- this.$api.navigateTo('/pages/seller/remarks/customer-list')
|
|
|
|
- },
|
|
|
|
- handleChoiceaConsultData(data){// 选择咨询人添加记录
|
|
|
|
- //跳转添加记录
|
|
|
|
- this.$api.navigateTo(`/pages/seller/remarks/add-record?type=add&questionManId=${data.questionManId}&questionMan=${
|
|
|
|
- data.questionMan
|
|
|
|
- }`)
|
|
|
|
- },
|
|
|
|
- handleChoiceaTextData(data) {// 新增咨询人监听时间
|
|
|
|
- console.log('data',data)
|
|
|
|
- this.handleSaveVisitor(data)
|
|
|
|
- },
|
|
|
|
- handleSaveVisitor(data) {
|
|
|
|
- // 添加咨询人
|
|
|
|
- this.UserService.getUserClubVisitorSave({
|
|
|
|
- name: data,
|
|
|
|
- serviceProviderId: this.listQuery.serviceProviderId
|
|
|
|
- })
|
|
|
|
- .then(response => {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.$api.navigateTo(
|
|
|
|
- `/pages/seller/remarks/add-record?questionManId=${response.data.questionManId}&questionMan=${
|
|
|
|
- response.data.questionMan
|
|
|
|
- }`
|
|
|
|
- )
|
|
|
|
- }, 1000)
|
|
|
|
- })
|
|
|
|
- .catch(error => {
|
|
|
|
- console.log('=======>添加咨询人失败~')
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
handleClick(e) {
|
|
handleClick(e) {
|
|
//取消收藏
|
|
//取消收藏
|
|
if (e.index == 1) {
|
|
if (e.index == 1) {
|
|
@@ -330,8 +259,8 @@ export default {
|
|
},
|
|
},
|
|
handleDeleteUserLike() {
|
|
handleDeleteUserLike() {
|
|
//操作删除资料备注
|
|
//操作删除资料备注
|
|
- this.UserService.getUserRemarksVisitDelete({
|
|
|
|
- remarksId: this.handleRemarksId
|
|
|
|
|
|
+ this.UserService.userClubReportDelete({
|
|
|
|
+ reportId: this.handleReportId
|
|
})
|
|
})
|
|
.then(response => {
|
|
.then(response => {
|
|
this.$util.msg('已删除', 2000, true, 'success')
|
|
this.$util.msg('已删除', 2000, true, 'success')
|
|
@@ -363,8 +292,8 @@ export default {
|
|
hideMobel() {
|
|
hideMobel() {
|
|
this.modal = false
|
|
this.modal = false
|
|
},
|
|
},
|
|
- details(remarksId) {
|
|
|
|
- this.$api.navigateTo(`/pages/seller/remarks/record-details?remarksId=${remarksId}`)
|
|
|
|
|
|
+ details(reportId) {
|
|
|
|
+ this.$api.navigateTo(`/pages/seller/remarks/report-details?reportId=${reportId}`)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onPageScroll(e) {
|
|
onPageScroll(e) {
|
|
@@ -385,7 +314,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
onShow() {
|
|
onShow() {
|
|
- this.init()
|
|
|
|
|
|
+ this.initGetlist()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -653,6 +582,10 @@ page {
|
|
font-size: $font-size-34;
|
|
font-size: $font-size-34;
|
|
float: left;
|
|
float: left;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
|
+ &.none{
|
|
|
|
+ width: 100%;
|
|
|
|
+ color: #1890F9;
|
|
|
|
+ }
|
|
&.edit{
|
|
&.edit{
|
|
color: #1890F9;
|
|
color: #1890F9;
|
|
border-right: 1px solid #E1E1E1;
|
|
border-right: 1px solid #E1E1E1;
|