123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606 |
- <template>
- <view class="container qualifications" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0' }">
- <view class="remarks-content-club" @click="handleClickClunInfo">
- <view class="content-club-le">
- <view class="club-le-text">
- <text class="label">机构名称:</text> <text class="text">{{ clubInfo.name }}</text>
- </view>
- <view class="club-le-text">
- <text class="label">联系人:</text> <text class="text">{{ clubInfo.linkMan }}</text>
- <text class="label phone">手机号:</text> <text class="text">{{ clubInfo.contractMobile }}</text>
- </view>
- <view class="club-le-text">
- <text class="label">地址:</text>
- <text class="text" v-if="clubInfo.provincialAddress"
- >{{ clubInfo.provincialAddress }}{{ clubInfo.address }}</text
- >
- </view>
- </view>
- <view class="content-club-ri"> <text class="iconfont icon-xiayibu"></text> </view>
- </view>
- <tui-skeleton
- v-if="skeletonShow"
- backgroundColor="#fafafa"
- borderRadius="10rpx"
- :isLoading="true"
- :loadingType="5"
- />
- <view class="remarks-content clearfix" v-else>
- <view class="list-view-title">
- <view class="list-view-h1">
- 沟通情况:
- <template v-if="remarksParams.communicationSituation === 0">
- <text>已沟通</text>
- <text v-if="remarksParams.communicationMethods === 1"> (电话) </text>
- <text v-if="remarksParams.communicationMethods === 2"> (微信) </text>
- <text v-if="remarksParams.communicationMethods ==='1,2' || remarksParams.communicationMethods ==='2,1'"> (电话,微信) </text>
- </template>
- <template v-else>
- <text> 联系不上 </text>
- </template>
- </view>
- </view>
- <view class="list-view-title">
- <view class="list-view-h1"
- >咨询人:<text> {{ remarksParams.questionMan }} </text></view
- >
- </view>
- <view class="list-view-title" v-if="remarksParams.consultBack">
- <view class="list-view-h1">
- 咨询类别:<text>{{ remarksParams.consultBack ? remarksParams.consultBack : '无' }}</text>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.customerSource">
- <view class="list-view-h1">
- 客户来源:
- <text>{{ remarksParams.customerSource | sourceActionsFilters }}</text>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.customerGender">
- <view class="list-view-h1">
- 客户性别:
- <text>{{ remarksParams.customerGender | genderActionsFilters }}</text>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.customerAge">
- <view class="list-view-h1">
- 客户年龄:
- <text>{{ remarksParams.customerAge }}</text>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.groupAddition">
- <view class="list-view-h1">
- 加群情况:
- <text>{{ remarksParams.groupAddition | additiveActionsFilters }}</text>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.productName"> <view class="list-view-h1">咨询商品:</view> </view>
- <view class="tui-remarks-content" v-if="remarksParams.productName">
- <view class="tui-remarks-goods">
- <view class="goods-image"> <image :src="remarksParams.mainImage" mode=""></image> </view>
- <view class="goods-main">
- <view class="name"> {{ remarksParams.productName }} </view>
- <view class="shop"> 供应商:{{ remarksParams.shopName }} </view>
- </view>
- </view>
- </view>
- <template v-if="labelsList.length>0">
- <view class="list-view-title"> <view class="list-view-h1">标签记录:</view> </view>
- <view class="tui-remarks-content">
- <text class="tui-remarks-span" v-for="(label, labelIndex) in labelsList" :key="labelIndex">
- {{ label.label }}
- </text>
- </view>
- </template>
- <view class="list-view-title" v-if="remarksParams.status">
- <view class="list-view-h1"
- >关联报备:<text>{{ remarksParams.reportText }}</text></view
- >
- </view>
- <view class="tui-remarks-content" v-if="remarksParams.status">
- <view class="tui-remarks-text">
- <view
- class="txt"
- :class="{
- reviewed: remarksParams.status == 1,
- approved: remarksParams.status == 2,
- failed: remarksParams.status == 3
- }"
- >{{ remarksParams.status | statusFilters }}</view
- >
- <view class="txm" v-if="remarksParams.auditText">{{ remarksParams.auditText }}</view>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.pinceSensitve">
- <view class="list-view-h1"
- >价格敏感度:<text>{{ remarksParams.pinceSensitve | pinceFilters }}</text>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.satisfied">
- <view class="list-view-h1"
- >意向程度:<text>{{ remarksParams.satisfied | intenActionsFilters }}</text></view
- >
- </view>
- <view class="list-view-title" v-if="remarksParams.followup">
- <view class="list-view-h1"
- >跟进状态:<text>{{ remarksParams.followup | followupFilters }}</text></view
- >
- </view>
- <view class="list-view-title" v-if="remarksParams.extra">
- <view class="list-view-h1"
- >额外说明:<text>{{ remarksParams.extra ? remarksParams.extra : '无' }}</text></view
- >
- </view>
- <view class="list-view-title" v-if="remarksParams.imageList.length > 0">
- <view class="list-view-h1">图片</view>
- </view>
- <view class="list-view-upload clearfix" v-if="remarksParams.imageList.length > 0">
- <view class="photo-item" v-for="(image, imageIndex) in remarksParams.imageList" :key="imageIndex">
- <image
- :src="image"
- mode="aspectFill"
- @click.stop="previewImg(remarksParams.imageList, imageIndex)"
- ></image>
- </view>
- </view>
- <view class="list-view-title" v-if="remarksParams.fileList.length > 0">
- <view class="list-view-h1">文件</view>
- </view>
- <view
- class="list-view"
- v-for="(file, fileIndex) in remarksParams.fileList"
- :key="fileIndex"
- v-if="remarksParams.fileList.length > 0"
- >
- <view class="list-view-text">
- <view class="input">{{ file.fileName }}</view>
- <view class="delbtn" @click.stop="previewFile(file)">预览</view>
- <!-- <view class="delbtn down" @click.stop="downloadFile(file)">下载</view> -->
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { mapState, mapMutations } from 'vuex'
- import authorize from '@/common/config/authorize.js'
- import { uploadFileImage, uploadFilePdfDocDocx } from '@/services/public.js'
- var isPreviewImg
- export default {
- data() {
- return {
- isIphoneX: this.$store.state.isIphoneX,
- productActions: [],
- remarksParams: {},
- remarksId: 0,
- clubUserId: 0,
- clubInfo: {},
- userInfo: {},
- categorys: '',
- skeletonShow:true,
- labelsList:[]
- }
- },
- onLoad(option) {
- console.log(option)
- this.remarksId = option.remarksId
- this.getUserClubRemarksDetail()
- },
- filters: {
- statusFilters(value) {
- // 订单来源
- const map = {
- 1: '报备待审核',
- 2: '报备审核通过',
- 3: '报备审核未通过'
- }
- return map[value]
- },
- 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]
- },
- sourceActionsFilters(value) {
- // 客户来源
- const map = {
- 0: '搜素引擎',
- 1: '小程序',
- 2: '公众号',
- 3: '小红书',
- 4: '微博',
- 5: '搜狐',
- 7: '抖音',
- 8: '视频号',
- 9: '朋友推荐',
- 6: '其他',
- }
- return map[value]
- },
- genderActionsFilters(value) {
- // 客户性别
- const map = {
- 0: '男',
- 1: '女'
- }
- return map[value]
- },
- additiveActionsFilters(value) {
- // 加群情况
- const map = {
- 0: '已加群',
- 1: '未加群'
- }
- return map[value]
- }
- },
- methods: {
- ...mapMutations(['login']),
- async getUserClubRemarksDetail() {
- //备注详情
- try{
- const res = await this.UserService.getUserClubRemarksDetail({ remarksId: this.remarksId })
- const data = res.data
- this.remarksParams = data
- const remarks = data.remarks ? data.remarks :[]
- const stateKeyword = data.stateKeyword ? data.stateKeyword :[]
- const trendsKeyword = data.trendsKeyword ? data.trendsKeyword :[]
- this.labelsList = [...remarks,...stateKeyword,...trendsKeyword]
- this.clubUserId = res.data.userId
- this.getCulbInfo(res.data.userId)
- setTimeout(()=>{
- this.skeletonShow = false
- },500)
- }catch(error){
- this.$util.msg(error.msg, 2000)
- }
- },
- getCulbInfo(userId) {
- // 查询机构信息
- this.UserService.OrganizationUpdateModifyInfo({ userId: userId })
- .then(response => {
- this.clubInfo = response.data.club
- this.userInfo = response.data.user
- })
- .catch(error => {
- console.log('=============>', error.msg)
- })
- },
- previewImg(image, index) {
- //顶部商品图片预览
- isPreviewImg = true
- let previewUrls = image
- uni.previewImage({
- current: index, //图片索引
- urls: previewUrls, //必须是http图片,本地图片无效
- longPressActions: ''
- })
- },
- previewFile(file) {
- //预览文件
- this.openDocument(file)
- },
- openDocument(file) {
- // 打开文档
- uni.showLoading({ title: '加载中' })
- // 获取文件后缀
- const index = file.fileName.lastIndexOf('.')
- const suffix = file.fileName.substring(index + 1)
- // 下载文件
- uni.downloadFile({
- url: file.fileUrl,
- success(res) {
- const filePath = res.tempFilePath
- // 打开文件
- uni.openDocument({
- filePath: filePath,
- fileType: suffix,
- success(res) {
- uni.showToast({
- icon: 'success',
- title: '打开成功',
- duration: 1200
- })
- uni.hideLoading()
- },
- fail(err) {
- if (err.errMsg.indexOf('fail filetype not supported')) {
- uni.showModal({
- content: '不支持的文件预览',
- cancelColor: '#666',
- confirmColor: '#FF5B00'
- })
- }
- uni.hideLoading()
- }
- })
- },
- fail(err) {
- uni.showToast({
- title: JSON.stringify(err),
- icon: 'none',
- duration: 5000
- })
- uni.hideLoading()
- }
- })
- },
- downloadFile(file) {
- let self = this
- // 下载文件
- wx.downloadFile({
- url: file.fileUrl,
- success(res) {
- console.log('保存文件路勁============>', res.tempFilePath)
- wx.saveFile({
- tempFilePath: res.tempFilePath,
- success(res) {
- self.$util.msg('下载成功', 2000)
- setTimeout(() => {
- self.openDocument(file)
- }, 2000)
- },
- fail(error) {
- self.$util.msg('下载失败', 2000)
- }
- })
- }
- })
- },
- handleClickClunInfo() {
- //修改机构资料
- if (this.userInfo.userIdentity === 2) {
- this.$api.navigateTo(`/pages/seller/login/apply?userID=${this.userInfo.userId}`)
- } else if (this.userInfo.userIdentity === 4) {
- this.$api.navigateTo(`/pages/seller/login/information?userID=${this.userInfo.userId}`)
- }
- }
- },
- onShow() {}
- }
- </script>
- <style lang="scss">
- page {
- height: auto;
- background: #ffffff;
- }
- .remarks-content-club {
- width: 100%;
- height: 252rpx;
- padding: 24rpx;
- box-sizing: border-box;
- border-bottom: 20rpx solid #f7f7f7;
- .content-club-le {
- width: 660rpx;
- float: left;
- .club-le-text {
- width: 100%;
- height: 60rpx;
- line-height: 60rpx;
- font-size: $font-size-28;
- color: #333333;
- .label {
- color: #999999;
- &.phone {
- margin-left: 48rpx;
- }
- }
- }
- }
- .content-club-ri {
- width: 40rpx;
- height: 160rpx;
- float: right;
- line-height: 160rpx;
- text-align: center;
- color: #b2b2b2;
- }
- }
- .remarks-content {
- width: 100%;
- height: auto;
- box-sizing: border-box;
- padding: 0 24rpx;
- padding-bottom: 80rpx;
- .list-view-title {
- width: 100%;
- height: auto;
- margin-bottom: 16rpx;
- margin-top: 30rpx;
- .list-view-h1 {
- line-height: 40rpx;
- font-size: $font-size-30;
- color: #333333;
- text-align: left;
- font-weight: bold;
- text {
- color: #666666;
- font-weight: normal;
- }
- }
- }
- .tui-remarks-content {
- width: 100%;
- height: auto;
- margin-bottom: 24rpx;
- .tui-remarks-text {
- width: 100%;
- box-sizing: border-box;
- background-color: #f7f7f7;
- padding: 26rpx;
- border-radius: 6rpx;
- .txt {
- line-height: 36rpx;
- color: #0db26d;
- font-size: 26rpx;
- &.reviewed{
- color: #FF5B00;
- }
- &.approved{
- color: #0DB26D;
- }
- &.failed{
- color: #F94B4B;
- }
- }
- .txm {
- line-height: 36rpx;
- color: #666666;
- font-size: 26rpx;
- }
- }
- .tui-remarks-goods {
- width: 100%;
- height: 180rpx;
- box-sizing: border-box;
- background-color: #f7f7f7;
- padding: 26rpx;
- border-radius: 6rpx;
- .goods-image {
- width: 128rpx;
- height: 128rpx;
- float: left;
- image {
- width: 128rpx;
- height: 128rpx;
- display: block;
- border-radius: 4rpx;
- }
- }
- .goods-main {
- width: 522rpx;
- height: 128rpx;
- box-sizing: border-box;
- padding: 0 32rpx;
- float: right;
- .name {
- width: 100%;
- height: 60rpx;
- box-sizing: border-box;
- line-height: 60rpx;
- color: #333333;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-clamp: 1;
- -webkit-box-orient: vertical;
- font-size: 26rpx;
- }
- .shop {
- line-height: 60rpx;
- color: #999999;
- font-size: 26rpx;
- }
- }
- }
- .tui-remarks-span {
- height: 48rpx;
- line-height: 48rpx;
- text-align: center;
- padding: 0 20rpx;
- background-color: #f7f7f7;
- font-size: $font-size-26;
- color: #666666;
- border-radius: 25rpx;
- display: inline-block;
- margin-right: 24rpx;
- margin-bottom: 24rpx;
- &:nth-child(4n) {
- margin-right: none;
- }
- }
- }
- .list-view {
- width: 100%;
- height: auto;
- margin-top: 20rpx;
- .list-view-text {
- width: 100%;
- float: left;
- .input {
- width: 500rpx;
- height: 50rpx;
- box-sizing: border-box;
- line-height: 50rpx;
- color: #333333;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-clamp: 1;
- -webkit-box-orient: vertical;
- float: left;
- font-size: 26rpx;
- }
- .delbtn {
- width: 96rpx;
- height: 44rpx;
- font-size: $font-size-24;
- color: #FF5B00;
- line-height: 44rpx;
- text-align: center;
- float: left;
- &.down {
- color: #1890f9;
- }
- }
- }
- }
- .list-view-upload {
- width: 100%;
- height: auto;
- .photo-item {
- display: inline-block;
- width: 112rpx;
- height: 112rpx;
- margin: 10rpx 0;
- margin-right: 25rpx;
- border-radius: 10rpx;
- border: 1px solid #f5f5f5;
- position: relative;
- float: left;
- image {
- width: 112rpx;
- height: 112rpx;
- border-radius: 10rpx;
- }
- }
- .photo-list {
- width: 100%;
- height: 116rpx;
- overflow: hidden;
- white-space: nowrap;
- display: flex;
- align-items: flex-start;
- }
- }
- }
- </style>
|