1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318 |
- <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>
- <view class="remarks-content">
- <view class="list-view-title">
- <view class="list-view-h1"><text>*</text>沟通情况:</view>
- </view>
- <view class="remarks-category">
- <radio-group @change="radioChange">
- <label class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value">
- <radio
- :value="item.value"
- style="transform:scale(0.7)"
- color="#FF5B00"
- :checked="index === current"
- />
- <label :for="item.value" class="label">
- <text>{{ item.name }}</text>
- </label>
- </label>
- </radio-group>
- <checkbox-group v-if="current === 0" style="margin-top: 10rpx;">
- <label class="label">
- <checkbox value="cb" style="transform:scale(0.7)" color="#FF5B00" />电话
- </label>
- <label class="label">
- <checkbox value="cb" style="transform:scale(0.7)" color="#FF5B00" />微信
- </label>
- </checkbox-group>
- </view>
- <view class="list-view-title">
- <view class="list-view-h1"><text>*</text>咨询人:</view>
- </view>
- <view class="remarks-input">
- <input
- class="input"
- type="text"
- v-model="remarksParams.questionMan"
- value=""
- placeholder="请输入和你聊天的客户姓名"
- maxlength="15"
- />
- </view>
- <view class="list-view-title"> <view class="list-view-h1">客户来源:</view> </view>
- <view class="list-view-radio">
- <picker @change="bindPickerChange(4, $event)" :value="index" :range="sourceActions" range-key="name">
- <input
- class="input"
- type="text"
- disabled="false"
- v-model="sourceStateText"
- value=""
- placeholder="请选择"
- />
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="list-view-title"> <view class="list-view-h1">客户性别:</view> </view>
- <view class="list-view-radio">
- <picker @change="bindPickerChange(5, $event)" :value="index" :range="genderActions" range-key="name">
- <input
- class="input"
- type="text"
- disabled="false"
- v-model="genderText"
- value=""
- placeholder="请选择"
- />
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="list-view-title"> <view class="list-view-h1">客户年龄:</view> </view>
- <view class="list-view-radio">
- <picker @change="bindPickerChange(6, $event)" :value="index" :range="ageActions" range-key="name">
- <input class="input" type="text" disabled="false" v-model="ageText" value="" placeholder="请选择" />
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="list-view-title"> <view class="list-view-h1">加群情况:</view> </view>
- <view class="list-view-radio">
- <picker @change="bindPickerChange(7, $event)" :value="index" :range="additiveActions" range-key="name">
- <input
- class="input"
- type="text"
- disabled="false"
- v-model="additiveText"
- 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="remarks-category">
- <view
- class="checkbox-list"
- :class="category.isChecked ? 'checked' : ''"
- v-for="(category, index) in categorys"
- :key="index"
- @click="choiceCategorys(category, index)"
- >
- <text class="iconfont" :class="category.isChecked ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
- {{ 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">咨询商品:</view> </view>
- <view class="tui-remarks-content">
- <view class="tui-remarks-goods-input" v-if="handleGoods.length === 0" @click="handleShowGoodPopup">
- <view class="input-add"> <text class="iconfont icon-jiahao"></text> </view>
- <view class="input-text"> 点击添加客户咨询的商品 </view>
- </view>
- <view class="tui-remarks-showgoods" v-else>
- <view class="tui-remarks-goods" v-for="(pros, index) in handleGoods" :key="index">
- <view class="goods-image"> <image :src="pros.image" mode=""></image> </view>
- <view class="goods-main">
- <view class="name"> {{ pros.name }} </view>
- <view class="shop"> 供应商:{{ pros.shopName }} </view>
- </view>
- </view>
- <view class="tui-remarks-btn">
- <view class="btn delete" @click="handleClean">删除</view>
- <view class="btn update" @click="handleShowGoodPopup">更换</view>
- </view>
- </view>
- </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-label-list">
- <text class="list-label"
- :class="item.isChecked ? 'active' : ''"
- v-for="(item, index) in labelsList"
- :key="index"
- @click="handleCheckedLabel(item,index)"
- >
- {{ item.name }}
- </text>
- </view>
- </view>
- <view class="list-view-title">
- <view class="list-view-h1">机构静态标签:</view>
- <view class="list-view-p"> (若你对客户的静态特点有更多维度进行描述,请手动填) </view>
- </view>
- <view class="list-view-list-main">
- <view class="list-view-list" v-for="(item, index) in staticLabelsList" :key="index">
- <view class="list-view-input">
- <input
- class="input"
- type="text"
- v-model="item.label"
- placeholder="请输入标签,不超过10个汉字"
- maxlength="10"
- @focus="hideStaticLabelsAction(item, $event)"
- @blur="hideStaticLabelsAction(item, $event)"
- @input="handleStaticLabelsAction(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 staticLabelsActionList"
- :key="assIndex"
- @click="handleSelectStaticLabels(ass.remarks, item)"
- >{{ ass.remarks }}</view
- >
- </scroll-view>
- </view>
- </view>
- <view class="list-view-btn">
- <text
- class="iconfont icon-zengjia"
- v-if="staticLabelsList.length < 9 && index === staticLabelsList.length - 1"
- @click="handleAddStaticLabels(item, index)"
- ></text>
- <text
- class="iconfont icon-shanchu4"
- v-if="staticLabelsList.length > 1 && index != staticLabelsList.length - 1"
- @click="handleDelStaticLabels(item, index)"
- ></text>
- </view>
- </view>
- </view>
- <view class="list-view-title">
- <view class="list-view-h1">机构动态标签:</view>
- <view class="list-view-p"> (若你对客户的购买诉求有更多维度进行描述,请手动填) </view>
- </view>
- <view class="list-view-list-main">
- <view class="list-view-list" v-for="(item, index) in trendsLabelsList" :key="index">
- <view class="list-view-input">
- <input
- class="input"
- type="text"
- v-model="item.label"
- placeholder="请输入标签,不超过10个汉字"
- maxlength="10"
- @focus="hideTrendsLabelsAction(item, $event)"
- @blur="hideTrendsLabelsAction(item, $event)"
- @input="handleTrendsLabelsAction(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 trendsLabelsActionList"
- :key="assIndex"
- @click="handleSelectTrendsLabels(ass.remarks, item)"
- >{{ ass.remarks }}</view
- >
- </scroll-view>
- </view>
- </view>
- <view class="list-view-btn">
- <text
- class="iconfont icon-zengjia"
- v-if="trendsLabelsList.length < 9 && index === trendsLabelsList.length - 1"
- @click="handleAddTrendsLabels(item, index)"
- ></text>
- <text
- class="iconfont icon-shanchu4"
- v-if="trendsLabelsList.length > 1 && index != trendsLabelsList.length - 1"
- @click="handleDelTrendsLabels(item, index)"
- ></text>
- </view>
- </view>
- </view>
- <view class="list-view-title">
- <view class="list-view-h1">关联报备:</view>
- <view class="list-view-p">(若客户咨询的事项不确定采美能不能做,请创建并关联报备向上级反馈)</view>
- </view>
- <view class="list-view-radio" @click="handleShowReportPopup">
- <input
- class="input"
- type="text"
- disabled="false"
- v-model="reportText"
- value=""
- placeholder="请选择报备"
- />
- <text class="iconfont icon-xiangyou"></text>
- </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.extra"
- value=""
- placeholder="请输入其他需要说明的内容"
- maxlength="200"
- @input="conInput"
- />
- <text class="limit-text">{{ min }}/{{ max }}</text>
- </view>
- <view class="list-view-title">
- <view class="list-view-h1">上传图片</view>
- <view class="list-view-p">(可上传与客户的聊天截图或其他重要图片资料,最多10张)</view>
- </view>
- <view class="list-view-upload clearfix">
- <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>
- <text
- class="iconfont icon-iconfontguanbi"
- @click.stop="deletePhotoFn(remarksParams.imageList, imageIndex)"
- ></text>
- </view>
- <view
- class="photo-item add"
- @click.stop="uploadPhotoFn(remarksParams.imageList)"
- v-if="remarksParams.imageList.length < 10 || remarksParams.imageList.length == 0"
- >
- <text class="iconfont icon-jiahao"></text>
- </view>
- </view>
- <view class="list-view-title">
- <view class="list-view-h1">上传文件</view>
- <view class="list-view-p">(可上传与客户相关的文件资料,最多10份,支持word,excel,ppt和pdf格式文件)</view>
- </view>
- <view class="list-view" v-for="(file, fileIndex) in remarksParams.fileList" :key="fileIndex">
- <view class="list-view-text">
- <view class="input">{{ file.fileName }}</view>
- <view class="delbtn" @click.stop="deleteFileFn(remarksParams.fileList, fileIndex)">删除</view>
- </view>
- </view>
- <view class="list-view">
- <view class="list-view-file" @click="uploadFile(remarksParams.fileList)">选择文件</view>
- </view>
- </view>
- <view class="remarks-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
- <view class="edit-button" @click="editButtonConfim">确定</view>
- </view>
- <!-- 商品列表弹窗 -->
- <cm-goodspopup
- ref="cmgoodspopup"
- v-if="isGoodspopup"
- :show="isGoodspopup"
- @handleChoiceaGoods="handleChoiceaGoodsData"
- >
- </cm-goodspopup>
- <!-- 机构报备弹窗 -->
- <cm-reportpopup
- ref="cmreportpopup"
- v-if="isReportpopup"
- :show="isReportpopup"
- :popupType="1"
- :reportInfo="reportInfo"
- @handleChoiceaReport="handleChoiceaReportData"
- >
- </cm-reportpopup>
- </view>
- </template>
- <script>
- import { mapState, mapMutations } from 'vuex'
- import authorize from '@/common/config/authorize.js'
- import { uploadFileImage, uploadFilePdfDocDocxXlsx } from '@/services/public.js'
- import cmGoodspopup from '../components/cm-goods-popup'
- import cmReportpopup from '../components/cm-report-popup'
- import addMixins from './mixins/addMixins.js'
- var isPreviewImg
- export default {
- mixins: [addMixins],
- components: {
- cmGoodspopup,
- cmReportpopup
- },
- data() {
- return {
- hideButton: true,
- isIphoneX: this.$store.state.isIphoneX,
- shopOrderId: 0,
- logisticsBatchId: 0,
- productActions: [],
- remarksParams: {
- clubId: 0,
- questionMan: '',
- clubType: '', //机构类型
- remarks: [], // 关键词
- extra: '', //额外说明
- fileList: [],
- imageList: [],
- serviceProviderId: 0,
- consult: '', // 咨询类别
- pinceSensitve: 0, //价格敏感度
- satisfied: 0, // 意向程度
- followup: 0, // 跟进状态
- productId: 0, // 商品Id
- reportId: 0 // 报备Id
- },
- min: 0,
- max: 200,
- handleType: '',
- clubUserId: 0,
- clubInfo: {},
- userInfo: {},
- checkedCategorysList: [],
- categorys: [],
- isConfirmLoding: false,
- reportText: '',
- remarksList: [
- {
- label: '',
- isAssociation: false
- }
- ],
- checkRemarkIndex: 0,
- assActionList: [],
- isGoodspopup: false,
- isReportpopup: false,
- isHashReport: false,
- handleGoods: [],
- reportInfo: {
- clubId: 0,
- name: '',
- linkMan: ''
- }
- }
- },
- onLoad(option) {
- console.log(option)
- if (option.type == 'edit') {
- this.getUserClubConsults()
- this.getUserClubRemarksDetail(option.remarksId)
- this.handleType = option.type
- uni.setNavigationBarTitle({ title: '修改记录' })
- } else {
- this.clubUserId = option.userId
- this.getCulbInfo(option.userId)
- this.getUserClubConsults()
- }
- },
- methods: {
- ...mapMutations(['login']),
- async getCulbInfo(userId) {
- // 查询机构信息
- try{
- const res = await this.UserService.OrganizationUpdateModifyInfo({ userId: userId })
- const data = res.data
- this.clubInfo = data.club
- this.userInfo = data.user
- this.reportInfo.name = this.clubInfo.name
- this.reportInfo.linkMan = this.clubInfo.linkMan
- this.remarksParams.clubId = this.reportInfo.clubId = this.clubInfo.clubId
- if (this.handleType != 'edit') {
- this.remarksParams.questionMan = this.clubInfo.linkMan
- }
- }catch(error){
- console.log('=============>', error.msg)
- }
- },
- async getUserClubRemarksDetail(remarksId) {
- //修改回显资料备注信息
- try{
- const res = await this.UserService.getUserClubRemarksDetail({ remarksId: remarksId })
- const data = res.data
- this.clubUserId = data.userId
- this.remarksList = data.remarks.map((el, index) => {
- el.isAssociation = false
- return el
- })
- 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.productId = data.productId
- if (this.handleType == 'edit') {
- if (data.reportId) {
- this.isHashReport = true
- this.remarksParams.reportId = data.reportId
- }
- this.remarksParams.questionMan = data.questionMan
- this.remarksParams.consult = data.consult
- this.checkedCategorysList = data.consult.split(',').map(i => parseInt(i, 0))
- this.categorys = this.categorys.map((el, index) => {
- if (data.consult.includes(el.id)) {
- el.isChecked = true
- } else {
- el.isChecked = false
- }
- return el
- })
- }
- if (data.productId) {
- let pro = {
- image: data.mainImage,
- name: data.productName,
- shopName: data.shopName
- }
- this.handleGoods.push(pro)
- }
- this.reportText = data.reportText ? data.reportText : ''
- this.priceFlagText = this.pinceFilters(data.pinceSensitve)
- this.intenFlagText = this.intenActionsFilters(data.satisfied)
- this.followStateText = this.followupFilters(data.followup)
- this.getCulbInfo(data.userId)
- }catch(error){
- this.$util.msg(error.msg, 2000)
- }
- },
- async getUserClubConsults() {
- //查询咨询类别
- try{
- const res = await this.UserService.getUserClubConsults()
- const data = res.data
- this.categorys = data.map((el, index) => {
- el.isChecked = false
- return el
- })
- }catch(error){
- console.log('=========>获取咨询类别列表失败')
- }
- },
- 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
- case 4: // 客户来源
- this.sourceStateText = this.stateActions[e.target.value].name
- this.remarksParams.followup = this.stateActions[e.target.value].value
- break
- case 5: // 客户性别
- this.genderText = this.stateActions[e.target.value].name
- this.remarksParams.followup = this.stateActions[e.target.value].value
- break
- case 6: // 客户年龄
- this.ageText = this.stateActions[e.target.value].name
- this.remarksParams.followup = this.stateActions[e.target.value].value
- break
- case 7: // 加群请假
- this.additiveText = this.stateActions[e.target.value].name
- this.remarksParams.followup = this.stateActions[e.target.value].value
- break
- }
- },
- async editButtonConfim() {
- //保存资料备注
- if (this.isConfirmLoding) {
- return
- }
- const userInfo = await this.$api.getStorage()
- if (this.remarksParams.questionMan == '') {
- this.$util.msg('请输入咨询人姓名', 2000)
- return
- }
- if (this.remarksParams.consult == '') {
- this.$util.msg('请选择咨询类别', 2000)
- return
- }
- //统一处理关键词
- let staticLabelsList = []
- for (const el of this.staticLabelsList) {
- if (el.label != '') {
- staticLabelsList.push(el.label)
- }
- }
- if (staticLabelsList.length == 0) {
- this.$util.msg('请输入关键词记录', 2000)
- return
- }
- if (!this.remarksParams.pinceSensitve) {
- this.$util.msg('请选择价格敏感度', 2000)
- return
- }
- if (!this.remarksParams.satisfied) {
- this.$util.msg('请选择意向程度', 2000)
- return
- }
- if (!this.remarksParams.followup) {
- this.$util.msg('请选择跟进状态', 2000)
- return
- }
- this.remarksParams.remarks = JSON.stringify(staticLabelsList)
- console.log('remarksParams', this.remarksParams)
- this.remarksParams.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
- this.isConfirmLoding = true
- this.UserService.getUserClubRemarksSave({
- params: JSON.stringify(this.remarksParams)
- })
- .then(response => {
- this.$util.msg('保存成功', 3000, true, 'success')
- this.isConfirmLoding = false
- setTimeout(() => {
- uni.navigateBack({
- delta: 1
- })
- }, 1000)
- })
- .catch(error => {
- this.$util.msg(error.msg, 2000)
- this.isConfirmLoding = false
- })
- },
- choiceCategorys(category, index) {
- // 选择类别
- category.isChecked = !category.isChecked
- if (category.isChecked) {
- if (!this.contains(this.checkedCategorysList, category.id)) {
- this.checkedCategorysList.push(category.id)
- }
- } else {
- this.checkedCategorysList.splice(this.checkedCategorysList.indexOf(category.id), 1)
- }
- this.remarksParams.consult = this.checkedCategorysList.join(',')
- },
- handleShowReportPopup() {
- // 显示报备弹窗
- if (this.isHashReport) {
- this.$util.msg('请取消已有关联后再重新关联报备', 2000)
- return
- }
- this.isReportpopup = true
- },
- handleShowGoodPopup() {
- // 显示添加商品弹窗
- this.isGoodspopup = true
- },
- handleClean() {
- //删除选择的商品
- this.remarksParams.productId === 0
- this.handleGoods = []
- },
- handleChoiceaGoodsData(data) {
- console.log('data', data)
- this.handleGoods = []
- this.remarksParams.productId = data.productId
- this.handleGoods.push(data)
- },
- handleChoiceaReportData(data) {
- console.log('data', data)
- this.reportText = data.reportText
- this.remarksParams.reportId = data.reportId
- },
- contains(arr, val) {
- // 校验
- return arr.some(item => item === val)
- },
- uploadFile(array) {
- //上传资质文件
- console.log(array)
- uploadFilePdfDocDocxXlsx()
- .then(res => {
- let data = JSON.parse(res.data).data
- let obj = {
- fileName: uni.getStorageSync('fileName'),
- ossName: data.ossName
- }
- array.push(obj)
- console.log('array', array)
- })
- .catch(err => {
- console.log(err)
- })
- },
- uploadPhotoFn(array) {
- //添加图片
- uploadFileImage().then(res => {
- array.push(JSON.parse(res.data).data)
- })
- },
- deleteFileFn(array, index) {
- console.log(array)
- //删除文件
- this.UploadService.PostFileDelete({
- ossName: array[index].ossName
- })
- .then(res => {
- array.splice(index, 1)
- })
- .catch(error => {
- console.log('删除文件异常提示===>', error.msg)
- })
- },
- deletePhotoFn(array, index) {
- //删除图片
- array.splice(index, 1)
- },
- previewImg(image, index) {
- //顶部商品图片预览
- isPreviewImg = true
- let previewUrls = image
- uni.previewImage({
- current: index, //图片索引
- urls: previewUrls, //必须是http图片,本地图片无效
- longPressActions: ''
- })
- },
- conInput(e) {
- //备注文字字数限制
- let value = e.detail.value
- let len = parseInt(value.length)
- if (len > this.max) return
- this.min = len
- if (this.min == 200) {
- this.$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}`)
- }
- },
- 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() {}
- }
- </script>
- <style lang="scss">
- page {
- height: auto;
- background: #ffffff;
- }
- .remarks-content-club {
- width: 100%;
- height: 288rpx;
- 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: 160rpx;
- .list-view-title {
- width: 100%;
- height: auto;
- margin-bottom: 16rpx;
- margin-top: 40rpx;
- .list-view-h1 {
- line-height: 40rpx;
- font-size: $font-size-28;
- color: #333333;
- text-align: left;
- text {
- color: #ff2a2a;
- }
- }
- .list-view-p {
- line-height: 30rpx;
- color: #fea785;
- font-size: $font-size-20;
- }
- }
- .tui-remarks-content {
- width: 100%;
- height: auto;
- margin-bottom: 24rpx;
- .tui-remarks-goods-input {
- width: 100%;
- height: 180rpx;
- box-sizing: border-box;
- background-color: #f7f7f7;
- padding: 26rpx;
- border-radius: 6rpx;
- .input-add {
- width: 128rpx;
- height: 128rpx;
- line-height: 128rpx;
- float: left;
- text-align: center;
- box-sizing: border-box;
- border: 1px dashed #b2b2b2;
- border-radius: 6rpx;
- .iconfont {
- font-size: 44rpx;
- color: #b2b2b2;
- }
- }
- .input-text {
- height: 128rpx;
- box-sizing: border-box;
- padding: 0 32rpx;
- line-height: 128rpx;
- text-align: left;
- font-size: 26rpx;
- color: #b2b2b2;
- float: left;
- }
- }
- .tui-remarks-showgoods {
- width: 100%;
- height: 180rpx;
- box-sizing: border-box;
- .tui-remarks-btn {
- width: 90rpx;
- height: 180rpx;
- float: right;
- .btn {
- width: 100%;
- height: 90rpx;
- float: left;
- line-height: 90rpx;
- text-align: center;
- font-size: 26rpx;
- &.delete {
- color: #f94b4b;
- }
- &.update {
- color: #1890f9;
- }
- }
- }
- .tui-remarks-goods {
- width: 612rpx;
- height: 180rpx;
- box-sizing: border-box;
- background-color: #f7f7f7;
- padding: 26rpx;
- border-radius: 6rpx;
- float: left;
- .goods-image {
- width: 128rpx;
- height: 128rpx;
- float: left;
- image {
- width: 128rpx;
- height: 128rpx;
- display: block;
- border-radius: 4rpx;
- }
- }
- .goods-main {
- width: 432rpx;
- height: 128rpx;
- box-sizing: border-box;
- padding-left: 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;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-clamp: 1;
- -webkit-box-orient: vertical;
- }
- }
- }
- }
- }
- .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-label-list{
- width: 100%;
- height: auto;
- box-sizing: border-box;
- .list-label{
- display: inline-block;
- padding: 0 20rpx;
- height: 48rpx;
- line-height: 48rpx;
- background: #F7F7F7;
- text-align: center;
- margin-right: 20rpx;
- margin-bottom: 20rpx;
- font-size: 26rpx;
- color: #666666;
- &.active{
- background: #FEF6F3;
- color: #FF5B00;
- }
- }
- }
- .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: #ff5b00;
- font-size: $font-size-48;
- }
- }
- }
- }
- .remarks-category {
- width: 100%;
- float: left;
- margin-bottom: 20rpx;
- .label {
- color: #666666;
- font-size: 28rpx;
- margin-right: 50rpx;
- }
- .checkbox-list {
- height: 60rpx;
- font-size: $font-size-28;
- line-height: 60rpx;
- border-radius: 10rpx;
- margin-right: 20rpx;
- margin-bottom: 10rpx;
- box-sizing: border-box;
- float: left;
- .icon-yixuanze {
- margin-right: 10rpx;
- color: #ff5b00;
- }
- .icon-weixuanze {
- margin-right: 10rpx;
- color: #b2b2b2;
- }
- }
- .item-text {
- display: inline-block;
- font-size: 26rpx;
- color: #333333;
- border-radius: 28rpx;
- line-height: 50rpx;
- }
- }
- .remarks-input {
- width: 100%;
- height: 90rpx;
- padding: 0 16rpx;
- margin: 20rpx 0 0 0;
- border-radius: 6rpx;
- position: relative;
- border: 1px solid #b2b2b2;
- box-sizing: border-box;
- .input {
- width: 100%;
- height: 90rpx;
- line-height: 90rpx;
- font-size: $font-size-26;
- color: $text-color;
- z-index: 1;
- }
- }
- .remarks-textarea {
- width: 100%;
- height: 226rpx;
- padding: 16rpx;
- margin: 20rpx 0 0 0;
- border-radius: 6rpx;
- position: relative;
- border: 1px solid #b2b2b2;
- box-sizing: border-box;
- .textarea {
- width: 100%;
- height: 100%;
- line-height: 36rpx;
- font-size: $font-size-26;
- color: $text-color;
- z-index: 1;
- }
- .limit-text {
- position: absolute;
- right: 20rpx;
- bottom: 16rpx;
- line-height: 44rpx;
- font-size: $font-size-24;
- color: #b2b2b2;
- }
- }
- .list-view {
- width: 100%;
- height: 40rpx;
- margin-top: 20rpx;
- .list-view-file {
- width: 132rpx;
- height: 44rpx;
- line-height: 44rpx;
- font-size: $font-size-20;
- text-align: center;
- color: #ffffff;
- background-color: $color-system;
- border-radius: 8rpx;
- float: left;
- margin-top: 10rpx;
- }
- .list-view-text {
- width: 100%;
- float: left;
- .input {
- width: 560rpx;
- height: 44rpx;
- box-sizing: border-box;
- line-height: 44rpx;
- color: #333333;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-clamp: 1;
- -webkit-box-orient: vertical;
- float: left;
- }
- .delbtn {
- width: 96rpx;
- height: 44rpx;
- border-radius: 8rpx;
- background-color: #fff2ec;
- font-size: $font-size-24;
- color: #ff5b00;
- line-height: 44rpx;
- text-align: center;
- float: left;
- }
- }
- }
- .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;
- &.add {
- width: 112rpx;
- height: 112rpx;
- border-color: #b2b2b2;
- text-align: center;
- line-height: 112rpx;
- margin-right: 0rpx;
- .icon-jiahao {
- font-size: $font-size-44;
- color: #b2b2b2;
- font-weight: bold;
- }
- }
- .icon-iconfontguanbi {
- width: 30rpx;
- height: 30rpx;
- border-radius: 50%;
- display: block;
- position: absolute;
- right: -10rpx;
- top: -10rpx;
- background: #f94b4b;
- text-align: center;
- line-height: 30rpx;
- color: #ffffff;
- font-size: $font-size-22;
- }
- 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;
- }
- }
- }
- .remarks-btn {
- width: 100%;
- padding-top: 20rpx;
- position: fixed;
- bottom: 0;
- left: 0;
- background-color: #ffffff;
- z-index: 99;
- .edit-button-canel {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- color: #ff5b00;
- font-size: $font-size-24;
- }
- .edit-button {
- width: 600rpx;
- height: 90rpx;
- background: $btn-confirm;
- line-height: 90rpx;
- text-align: center;
- color: #ffffff;
- font-size: $font-size-30;
- margin: 0 auto;
- border-radius: 45rpx;
- }
- }
- </style>
|