add.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163
  1. <template>
  2. <view class="container qualifications" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0' }">
  3. <view class="remarks-content-club" @click="handleClickClunInfo">
  4. <view class="content-club-le">
  5. <view class="club-le-text">
  6. <text class="label">机构名称:</text> <text class="text">{{ clubInfo.name }}</text>
  7. </view>
  8. <view class="club-le-text">
  9. <text class="label">联系人:</text> <text class="text">{{ clubInfo.linkMan }}</text>
  10. <text class="label phone">手机号:</text> <text class="text">{{ clubInfo.contractMobile }}</text>
  11. </view>
  12. <view class="club-le-text">
  13. <text class="label">地址:</text>
  14. <text class="text" v-if="clubInfo.provincialAddress"
  15. >{{ clubInfo.provincialAddress }}{{ clubInfo.address }}</text
  16. >
  17. </view>
  18. </view>
  19. <view class="content-club-ri"> <text class="iconfont icon-xiayibu"></text> </view>
  20. </view>
  21. <view class="remarks-content">
  22. <view class="list-view-title">
  23. <view class="list-view-h1"><text>*</text>咨询人:</view>
  24. </view>
  25. <view class="remarks-input">
  26. <input
  27. class="input"
  28. type="text"
  29. v-model="remarksParams.questionMan"
  30. value=""
  31. placeholder="请输入和你聊天的客户姓名"
  32. maxlength="15"
  33. />
  34. </view>
  35. <view class="list-view-title">
  36. <view class="list-view-h1"><text>*</text>咨询类别:</view>
  37. </view>
  38. <view class="remarks-category">
  39. <view
  40. class="checkbox-list"
  41. :class="category.isChecked ? 'checked' : ''"
  42. v-for="(category, index) in categorys"
  43. :key="index"
  44. @click="choiceCategorys(category, index)"
  45. >
  46. <text class="iconfont" :class="category.isChecked ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
  47. {{ category.className }}
  48. </view>
  49. </view>
  50. <view class="list-view-title"> <view class="list-view-h1">机构类型:</view> </view>
  51. <view class="remarks-input">
  52. <input
  53. class="input"
  54. type="text"
  55. v-model="remarksParams.clubType"
  56. value=""
  57. placeholder="如美甲店,医院"
  58. maxlength="15"
  59. />
  60. </view>
  61. <view class="list-view-title"> <view class="list-view-h1">咨询商品:</view> </view>
  62. <view class="tui-remarks-content">
  63. <view class="tui-remarks-goods-input" v-if="handleGoods.length === 0" @click="handleShowGoodPopup">
  64. <view class="input-add"> <text class="iconfont icon-jiahao"></text> </view>
  65. <view class="input-text"> 点击添加客户咨询的商品 </view>
  66. </view>
  67. <view class="tui-remarks-showgoods" v-else>
  68. <view class="tui-remarks-goods" v-for="(pros, index) in handleGoods" :key="index">
  69. <view class="goods-image"> <image :src="pros.images" mode=""></image> </view>
  70. <view class="goods-main">
  71. <view class="name"> {{ pros.name }} </view>
  72. <view class="shop"> 供应商:{{ pros.shopName }} </view>
  73. </view>
  74. </view>
  75. <view class="tui-remarks-btn">
  76. <view class="btn delete" @click="handleClean">删除</view>
  77. <view class="btn update" @click="handleShowGoodPopup">更换</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="list-view-title">
  82. <view class="list-view-h1"><text>*</text>关键词记录:</view>
  83. <view class="list-view-p"
  84. >(请总结客户的咨询内容,以商品或者服务的关键词形式填写,不需要填口语化的内容。)</view
  85. >
  86. </view>
  87. <view class="list-view-list-main">
  88. <view class="list-view-list" v-for="(item, index) in remarksList" :key="index">
  89. <view class="list-view-input">
  90. <input
  91. class="input"
  92. type="text"
  93. v-model="item.label"
  94. placeholder="请输入关键词,不超过10个汉字"
  95. maxlength="10"
  96. @focus="hideAssAction(item, $event)"
  97. @blur="hideAssAction(item, $event)"
  98. @input="bindRemarkAction(index, $event)"
  99. />
  100. <view class="list-view-assAction" v-if="item.isAssociation">
  101. <scroll-view class="tui-popup-scroll train" scroll-y="true">
  102. <view
  103. class="ass-list"
  104. v-for="(ass, assIndex) in assActionList"
  105. :key="assIndex"
  106. @click="SelectAssociationFn(ass.remarks,item)"
  107. >{{ ass.remarks }}</view
  108. >
  109. </scroll-view>
  110. </view>
  111. </view>
  112. <view class="list-view-btn">
  113. <text
  114. class="iconfont icon-zengjia"
  115. v-if="remarksList.length < 9 && index === remarksList.length - 1"
  116. @click="addListFn(item, index)"
  117. ></text>
  118. <text
  119. class="iconfont icon-shanchu4"
  120. v-if="remarksList.length > 1 && index != remarksList.length - 1"
  121. @click="deleteLogistItemFn(item, index)"
  122. ></text>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="list-view-title">
  127. <view class="list-view-h1">关联报备:</view>
  128. <view class="list-view-p"
  129. >(若客户咨询的事项不确定采美能不能做,请创建并关联报备向上级反馈)</view
  130. >
  131. </view>
  132. <view class="list-view-radio" @click="handleShowReportPopup">
  133. <input
  134. class="input"
  135. type="text"
  136. disabled="false"
  137. v-model="priceFlagText"
  138. value=""
  139. placeholder="请选择报备"
  140. />
  141. <text class="iconfont icon-xiangyou"></text>
  142. </view>
  143. <view class="list-view-title">
  144. <view class="list-view-h1"><text>*</text>价格敏感度:</view>
  145. </view>
  146. <view class="list-view-radio">
  147. <picker @change="bindPickerChange(1, $event)" :value="index" :range="priceActions" range-key="name">
  148. <input
  149. class="input"
  150. type="text"
  151. disabled="false"
  152. v-model="priceFlagText"
  153. value=""
  154. placeholder="请选择"
  155. />
  156. <text class="iconfont icon-xiangyou"></text>
  157. </picker>
  158. </view>
  159. <view class="list-view-title">
  160. <view class="list-view-h1"><text>*</text>意向程度:</view>
  161. </view>
  162. <view class="list-view-radio">
  163. <picker @change="bindPickerChange(2, $event)" :value="index" :range="intenActions" range-key="name">
  164. <input
  165. class="input"
  166. type="text"
  167. disabled="false"
  168. v-model="intenFlagText"
  169. value=""
  170. placeholder="请选择"
  171. />
  172. <text class="iconfont icon-xiangyou"></text>
  173. </picker>
  174. </view>
  175. <view class="list-view-title">
  176. <view class="list-view-h1"><text>*</text>跟进状态:</view>
  177. </view>
  178. <view class="list-view-radio">
  179. <picker @change="bindPickerChange(3, $event)" :value="index" :range="stateActions" range-key="name">
  180. <input
  181. class="input"
  182. type="text"
  183. disabled="false"
  184. v-model="followStateText"
  185. value=""
  186. placeholder="请选择"
  187. />
  188. <text class="iconfont icon-xiangyou"></text>
  189. </picker>
  190. </view>
  191. <view class="list-view-title"> <view class="list-view-h1">额外说明:</view> </view>
  192. <view class="remarks-textarea">
  193. <textarea
  194. class="textarea"
  195. v-model="remarksParams.extra"
  196. value=""
  197. placeholder="请输入其他需要说明的内容"
  198. maxlength="200"
  199. @input="conInput"
  200. />
  201. <text class="limit-text">{{ min }}/{{ max }}</text>
  202. </view>
  203. <view class="list-view-title">
  204. <view class="list-view-h1">上传图片</view>
  205. <view class="list-view-p">(可上传与客户的聊天截图或其他重要图片资料,最多10张)</view>
  206. </view>
  207. <view class="list-view-upload clearfix">
  208. <view class="photo-item" v-for="(image, imageIndex) in remarksParams.imageList" :key="imageIndex">
  209. <image
  210. :src="image"
  211. mode="aspectFill"
  212. @click.stop="previewImg(remarksParams.imageList, imageIndex)"
  213. ></image>
  214. <text
  215. class="iconfont icon-iconfontguanbi"
  216. @click.stop="deletePhotoFn(remarksParams.imageList, imageIndex)"
  217. ></text>
  218. </view>
  219. <view
  220. class="photo-item add"
  221. @click.stop="uploadPhotoFn(remarksParams.imageList)"
  222. v-if="remarksParams.imageList.length < 10 || remarksParams.imageList.length == 0"
  223. >
  224. <text class="iconfont icon-jiahao"></text>
  225. </view>
  226. </view>
  227. <view class="list-view-title">
  228. <view class="list-view-h1">上传文件</view>
  229. <view class="list-view-p">(可上传与客户相关的文件资料,最多10份,支持word,excel,ppt和pdf格式文件)</view>
  230. </view>
  231. <view class="list-view" v-for="(file, fileIndex) in remarksParams.fileList" :key="fileIndex">
  232. <view class="list-view-text">
  233. <view class="input">{{ file.fileName }}</view>
  234. <view class="delbtn" @click.stop="deleteFileFn(remarksParams.fileList, fileIndex)">删除</view>
  235. </view>
  236. </view>
  237. <view class="list-view">
  238. <view class="list-view-file" @click="uploadFile(remarksParams.fileList)">选择文件</view>
  239. </view>
  240. </view>
  241. <view class="remarks-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
  242. <view class="edit-button" @click="editButtonConfim">确定</view>
  243. </view>
  244. <!-- 商品列表弹窗 -->
  245. <cm-goodspopup
  246. ref="cmgoodspopup"
  247. v-if="isGoodspopup"
  248. :show="isGoodspopup"
  249. @handleChoiceaGoods="handleChoiceaGoodsData"
  250. >
  251. </cm-goodspopup>
  252. <!-- 机构报备弹窗 -->
  253. <cm-reportpopup
  254. ref="cmreportpopup"
  255. v-if="isReportpopup"
  256. :show="isReportpopup"
  257. :popupType ="1"
  258. @handleChoiceaReport="handleChoiceaReportData"
  259. >
  260. </cm-reportpopup>
  261. </view>
  262. </template>
  263. <script>
  264. import { mapState, mapMutations } from 'vuex'
  265. import authorize from '@/common/config/authorize.js'
  266. import { uploadFileImage, uploadFilePdfDocDocxXlsx } from '@/services/public.js'
  267. import cmGoodspopup from '@/components/cm-module/cm-seller/cm-goods-popup'
  268. import cmReportpopup from '@/components/cm-module/cm-seller/cm-report-popup'
  269. var isPreviewImg
  270. export default {
  271. components: {
  272. cmGoodspopup,
  273. cmReportpopup
  274. },
  275. data() {
  276. return {
  277. hideButton: true,
  278. isIphoneX: this.$store.state.isIphoneX,
  279. shopOrderId: 0,
  280. logisticsBatchId: 0,
  281. productActions: [],
  282. remarksParams: {
  283. clubId: 0,
  284. questionMan: '',
  285. clubType:'', //机构类型
  286. remarks:[], // 关键词
  287. extra: '',//额外说明
  288. fileList: [],
  289. imageList: [],
  290. serviceProviderId: 0,
  291. consult: '', // 咨询类别
  292. pinceSensitve:0,//价格敏感度
  293. satisfied:0,// 意向程度
  294. followup:0,// 跟进状态
  295. },
  296. min: 0,
  297. max: 200,
  298. handleType: '',
  299. clubUserId: 0,
  300. clubInfo: {},
  301. userInfo: {},
  302. checkedCategorysList: [],
  303. categorys: [],
  304. isConfirmLoding: false,
  305. priceFlagText: '',
  306. intenFlagText: '',
  307. followStateText: '',
  308. priceActions: [
  309. { name: '敏感', value: 1 },
  310. { name: '适中', value: 2 },
  311. { name: '不敏感', value: 3 },
  312. { name: '不明确', value: 4 }
  313. ],
  314. intenActions: [
  315. { name: '意向强烈', value: 1 },
  316. { name: '意向一般', value: 2 },
  317. { name: '意向平淡', value: 3 },
  318. { name: '随便看看', value: 4 }
  319. ],
  320. stateActions: [{ name: '跟进中', value: 1 }, { name: '跟进完成', value: 2 }, { name: '已放弃', value: 3 }],
  321. remarksList: [
  322. {
  323. label: '',
  324. isAssociation:false
  325. }
  326. ],
  327. checkRemarkIndex:0,
  328. assActionList: [],
  329. isGoodspopup:false,
  330. isReportpopup:false,
  331. handleGoods: []
  332. }
  333. },
  334. onLoad(option) {
  335. console.log(option)
  336. if (option.type == 'edit') {
  337. this.getUserClubConsults()
  338. this.getUserClubRemarksDetail(option.remarksId)
  339. this.handleType = option.type
  340. uni.setNavigationBarTitle({ title: '修改记录' })
  341. } else {
  342. this.clubUserId = option.userId
  343. this.getCulbInfo()
  344. this.getUserClubConsults()
  345. }
  346. },
  347. methods: {
  348. ...mapMutations(['login']),
  349. getCulbInfo() {
  350. // 查询机构信息
  351. this.UserService.OrganizationUpdateModifyInfo({ userId: this.clubUserId })
  352. .then(response => {
  353. this.clubInfo = response.data.club
  354. this.userInfo = response.data.user
  355. this.remarksParams.clubId = this.clubInfo.clubId
  356. if (this.handleType != 'edit') {
  357. this.remarksParams.questionMan = this.clubInfo.linkMan
  358. }
  359. })
  360. .catch(error => {
  361. console.log('=============>', error.msg)
  362. })
  363. },
  364. getUserClubRemarksDetail(remarksId) {
  365. //修改回显资料备注信息
  366. this.UserService.getUserClubRemarksDetail({
  367. remarksId: remarksId
  368. })
  369. .then(response => {
  370. let data = response.data
  371. this.clubUserId = data.userId
  372. this.remarksList = data.remarks.map((el, index) => {
  373. el.isAssociation = false
  374. return el
  375. })
  376. this.remarksParams.remarksId = data.remarksId
  377. this.remarksParams.extra = data.extra
  378. this.remarksParams.clubType = data.clubType
  379. this.remarksParams.pinceSensitve = data.pinceSensitve
  380. this.remarksParams.satisfied = data.satisfied
  381. this.remarksParams.followup = data.followup
  382. this.remarksParams.fileList = data.fileList
  383. this.remarksParams.imageList = data.imageList
  384. if (this.handleType == 'edit') {
  385. this.remarksParams.questionMan = data.questionMan
  386. this.remarksParams.consult = data.consult
  387. this.checkedCategorysList = data.consult.split(',').map(i => parseInt(i, 0))
  388. this.categorys = this.categorys.map((el, index) => {
  389. if (data.consult.includes(el.id)) {
  390. el.isChecked = true
  391. } else {
  392. el.isChecked = false
  393. }
  394. return el
  395. })
  396. }
  397. this.priceFlagText = this.pinceFilters(data.pinceSensitve)
  398. this.intenFlagText = this.intenActionsFilters(data.satisfied)
  399. this.followStateText = this.followupFilters(data.followup)
  400. this.getCulbInfo()
  401. })
  402. .catch(error => {
  403. this.$util.msg(error.msg, 2000)
  404. })
  405. },
  406. getUserClubConsults() {
  407. //查询咨询类别
  408. this.UserService.getUserClubConsults()
  409. .then(response => {
  410. this.categorys = response.data.map((el, index) => {
  411. el.isChecked = false
  412. return el
  413. })
  414. })
  415. .catch(error => {
  416. console.log('=========>获取咨询类别列表失败')
  417. })
  418. },
  419. bindRemarkAction(index, event) {
  420. this.assActionList = []
  421. this.checkRemarkIndex = index
  422. if (event.detail.value != '') {
  423. this.UserService.getCmremarkslist({remarks : event.detail.value}).then(response => {
  424. if(response.data&&response.data.length>0){
  425. this.assActionList = response.data
  426. this.remarksList[index].isAssociation = true
  427. }else{
  428. this.assActionList = []
  429. this.remarksList[index].isAssociation = false
  430. }
  431. })
  432. .catch(error => {
  433. console.log('=========>获取关键词联想失败')
  434. })
  435. } else {
  436. this.remarksList[index].isAssociation = false
  437. }
  438. },
  439. hideAssAction(item, event){//隐藏对应的联想弹窗
  440. item.isAssociation = false
  441. },
  442. SelectAssociationFn(ass,item) {
  443. //选择关键词
  444. item.isAssociation = false
  445. item.label = ass
  446. },
  447. addListFn(item,index) {
  448. //添加
  449. let obj = { label: '',isAssociation:false}
  450. item.isAssociation = false
  451. this.remarksList.push(obj)
  452. },
  453. deleteLogistItemFn(item, index) {
  454. this.remarksList.splice(index, 1)
  455. },
  456. bindPickerChange(type, e) {
  457. //选择筛选条件
  458. switch (type) {
  459. case 1:
  460. this.priceFlagText = this.priceActions[e.target.value].name
  461. this.remarksParams.pinceSensitve = this.priceActions[e.target.value].value
  462. break
  463. case 2:
  464. this.intenFlagText = this.intenActions[e.target.value].name
  465. this.remarksParams.satisfied = this.intenActions[e.target.value].value
  466. break
  467. case 3:
  468. this.followStateText = this.stateActions[e.target.value].name
  469. this.remarksParams.followup = this.stateActions[e.target.value].value
  470. break
  471. }
  472. },
  473. async editButtonConfim() {//保存资料备注
  474. if (this.isConfirmLoding) {
  475. return
  476. }
  477. const userInfo = await this.$api.getStorage()
  478. if (this.remarksParams.questionMan == '') {
  479. this.$util.msg('请输入咨询人姓名', 2000)
  480. return
  481. }
  482. if (this.remarksParams.consult == '') {
  483. this.$util.msg('请选择咨询类别', 2000)
  484. return
  485. }
  486. //统一处理关键词
  487. let remarksList = []
  488. for (const el of this.remarksList) {
  489. if(el.label!=''){
  490. remarksList.push(el.label)
  491. }
  492. }
  493. if (remarksList.length == 0) {
  494. this.$util.msg('请输入关键词记录', 2000)
  495. return
  496. }
  497. if (!this.remarksParams.pinceSensitve) {
  498. this.$util.msg('请选择价格敏感度', 2000)
  499. return
  500. }
  501. if (!this.remarksParams.satisfied) {
  502. this.$util.msg('请选择意向程度', 2000)
  503. return
  504. }
  505. if (!this.remarksParams.followup) {
  506. this.$util.msg('请选择跟进状态', 2000)
  507. return
  508. }
  509. this.remarksParams.remarks = JSON.stringify(remarksList)
  510. console.log('remarksParams',this.remarksParams)
  511. this.remarksParams.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  512. this.isConfirmLoding = true
  513. this.UserService.getUserClubRemarksSave({
  514. params: JSON.stringify(this.remarksParams)
  515. })
  516. .then(response => {
  517. this.$util.msg('保存成功', 3000, true, 'success')
  518. this.isConfirmLoding = false
  519. setTimeout(() => {
  520. uni.navigateBack({
  521. delta: 1
  522. })
  523. }, 1000)
  524. })
  525. .catch(error => {
  526. this.$util.msg(error.msg, 2000)
  527. this.isConfirmLoding = false
  528. })
  529. },
  530. choiceCategorys(category, index) {
  531. // 选择类别
  532. category.isChecked = !category.isChecked
  533. if (category.isChecked) {
  534. if (!this.contains(this.checkedCategorysList, category.id)) {
  535. this.checkedCategorysList.push(category.id)
  536. }
  537. } else {
  538. this.checkedCategorysList.splice(this.checkedCategorysList.indexOf(category.id), 1)
  539. }
  540. this.remarksParams.consult = this.checkedCategorysList.join(',')
  541. },
  542. handleShowReportPopup(){
  543. // 显示报备弹窗
  544. this.isReportpopup = true
  545. },
  546. handleShowGoodPopup() {
  547. // 显示添加商品弹窗
  548. this.isGoodspopup = true
  549. },
  550. handleClean(){//删除选择的商品
  551. this.handleGoods = []
  552. },
  553. handleChoiceaGoodsData(data) {
  554. console.log('data', data)
  555. this.handleGoods = []
  556. this.handleGoods.push(data)
  557. },
  558. handleChoiceaReportData(data) {
  559. console.log('data', data)
  560. this.handleGoods = []
  561. this.handleGoods.push(data)
  562. },
  563. contains(arr, val) {
  564. // 校验
  565. return arr.some(item => item === val)
  566. },
  567. uploadFile(array) {
  568. //上传资质文件
  569. console.log(array)
  570. uploadFilePdfDocDocxXlsx()
  571. .then(res => {
  572. let data = JSON.parse(res.data).data
  573. let obj = {
  574. fileName: uni.getStorageSync('fileName'),
  575. ossName: data.ossName
  576. }
  577. array.push(obj)
  578. console.log('array', array)
  579. })
  580. .catch(err => {
  581. console.log(err)
  582. })
  583. },
  584. uploadPhotoFn(array) {
  585. //添加图片
  586. uploadFileImage().then(res => {
  587. array.push(JSON.parse(res.data).data)
  588. })
  589. },
  590. deleteFileFn(array, index) {
  591. console.log(array)
  592. //删除文件
  593. this.UploadService.PostFileDelete({
  594. ossName: array[index].ossName
  595. })
  596. .then(res => {
  597. array.splice(index, 1)
  598. })
  599. .catch(error => {
  600. console.log('删除文件异常提示===>', error.msg)
  601. })
  602. },
  603. deletePhotoFn(array, index) {
  604. //删除图片
  605. array.splice(index, 1)
  606. },
  607. previewImg(image, index) {
  608. //顶部商品图片预览
  609. isPreviewImg = true
  610. let previewUrls = image
  611. uni.previewImage({
  612. current: index, //图片索引
  613. urls: previewUrls, //必须是http图片,本地图片无效
  614. longPressActions: ''
  615. })
  616. },
  617. conInput(e) {
  618. //备注文字字数限制
  619. let value = e.detail.value
  620. let len = parseInt(value.length)
  621. if (len > this.max) return
  622. this.min = len
  623. if (this.min == 200) {
  624. this.$util.msg('您输入的字数已达上限', 2000)
  625. }
  626. },
  627. handleClickClunInfo() {
  628. //修改机构资料
  629. if (this.userInfo.userIdentity === 2) {
  630. this.$api.navigateTo(`/pages/seller/login/apply?userID=${this.userInfo.userId}`)
  631. } else if (this.userInfo.userIdentity === 4) {
  632. this.$api.navigateTo(`/pages/seller/login/information?userID=${this.userInfo.userId}`)
  633. }
  634. },
  635. followupFilters(value) {
  636. // 订单来源
  637. const map = {
  638. 1: '跟进中',
  639. 2: '跟进完成',
  640. 3: '已放弃'
  641. }
  642. return map[value]
  643. },
  644. pinceFilters(value) {
  645. // 意向
  646. const map = {
  647. 1: '敏感',
  648. 2: '适中',
  649. 3: '不敏感',
  650. 4: '不明确'
  651. }
  652. return map[value]
  653. },
  654. intenActionsFilters(value) {
  655. // 意向
  656. const map = {
  657. 1: '意向强烈',
  658. 2: '意向一般',
  659. 3: '意向平淡',
  660. 4: '随便看看'
  661. }
  662. return map[value]
  663. }
  664. },
  665. onShow() {}
  666. }
  667. </script>
  668. <style lang="scss">
  669. page {
  670. height: auto;
  671. background: #ffffff;
  672. }
  673. .remarks-content-club {
  674. width: 100%;
  675. height: 252rpx;
  676. padding: 24rpx;
  677. box-sizing: border-box;
  678. border-bottom: 20rpx solid #f7f7f7;
  679. .content-club-le {
  680. width: 660rpx;
  681. float: left;
  682. .club-le-text {
  683. width: 100%;
  684. height: 60rpx;
  685. line-height: 60rpx;
  686. font-size: $font-size-28;
  687. color: #333333;
  688. .label {
  689. color: #999999;
  690. &.phone {
  691. margin-left: 48rpx;
  692. }
  693. }
  694. }
  695. }
  696. .content-club-ri {
  697. width: 40rpx;
  698. height: 160rpx;
  699. float: right;
  700. line-height: 160rpx;
  701. text-align: center;
  702. color: #b2b2b2;
  703. }
  704. }
  705. .remarks-content {
  706. width: 100%;
  707. height: auto;
  708. box-sizing: border-box;
  709. padding: 0 24rpx;
  710. padding-bottom: 160rpx;
  711. .list-view-title {
  712. width: 100%;
  713. height: auto;
  714. margin-bottom: 16rpx;
  715. margin-top: 40rpx;
  716. .list-view-h1 {
  717. line-height: 40rpx;
  718. font-size: $font-size-28;
  719. color: #333333;
  720. text-align: left;
  721. text {
  722. color: #ff2a2a;
  723. }
  724. }
  725. .list-view-p {
  726. line-height: 30rpx;
  727. color: #fea785;
  728. font-size: $font-size-20;
  729. }
  730. }
  731. .tui-remarks-content {
  732. width: 100%;
  733. height: auto;
  734. margin-bottom: 24rpx;
  735. .tui-remarks-goods-input {
  736. width: 100%;
  737. height: 180rpx;
  738. box-sizing: border-box;
  739. background-color: #f7f7f7;
  740. padding: 26rpx;
  741. border-radius: 6rpx;
  742. .input-add {
  743. width: 128rpx;
  744. height: 128rpx;
  745. line-height: 128rpx;
  746. float: left;
  747. text-align: center;
  748. box-sizing: border-box;
  749. border: 1px dashed #b2b2b2;
  750. border-radius: 6rpx;
  751. .iconfont {
  752. font-size: 44rpx;
  753. color: #b2b2b2;
  754. }
  755. }
  756. .input-text {
  757. height: 128rpx;
  758. box-sizing: border-box;
  759. padding: 0 32rpx;
  760. line-height: 128rpx;
  761. text-align: left;
  762. font-size: 26rpx;
  763. color: #b2b2b2;
  764. float: left;
  765. }
  766. }
  767. .tui-remarks-showgoods {
  768. width: 100%;
  769. height: 180rpx;
  770. box-sizing: border-box;
  771. .tui-remarks-btn {
  772. width: 90rpx;
  773. height: 180rpx;
  774. float: right;
  775. .btn {
  776. width: 100%;
  777. height: 90rpx;
  778. float: left;
  779. line-height: 90rpx;
  780. text-align: center;
  781. font-size: 26rpx;
  782. &.delete {
  783. color: #f94b4b;
  784. }
  785. &.update {
  786. color: #1890f9;
  787. }
  788. }
  789. }
  790. .tui-remarks-goods {
  791. width: 612rpx;
  792. height: 180rpx;
  793. box-sizing: border-box;
  794. background-color: #f7f7f7;
  795. padding: 26rpx;
  796. border-radius: 6rpx;
  797. float: left;
  798. .goods-image {
  799. width: 128rpx;
  800. height: 128rpx;
  801. float: left;
  802. image {
  803. width: 128rpx;
  804. height: 128rpx;
  805. display: block;
  806. border-radius: 4rpx;
  807. }
  808. }
  809. .goods-main {
  810. width: 432rpx;
  811. height: 128rpx;
  812. box-sizing: border-box;
  813. padding-left: 32rpx;
  814. float: right;
  815. .name {
  816. width: 100%;
  817. height: 60rpx;
  818. box-sizing: border-box;
  819. line-height: 60rpx;
  820. color: #333333;
  821. text-overflow: ellipsis;
  822. overflow: hidden;
  823. display: -webkit-box;
  824. -webkit-line-clamp: 1;
  825. line-clamp: 1;
  826. -webkit-box-orient: vertical;
  827. font-size: 26rpx;
  828. }
  829. .shop {
  830. line-height: 60rpx;
  831. color: #999999;
  832. font-size: 26rpx;
  833. text-overflow: ellipsis;
  834. overflow: hidden;
  835. display: -webkit-box;
  836. -webkit-line-clamp: 1;
  837. line-clamp: 1;
  838. -webkit-box-orient: vertical;
  839. }
  840. }
  841. }
  842. }
  843. }
  844. .list-view-radio {
  845. width: 100%;
  846. height: 90rpx;
  847. box-sizing: border-box;
  848. padding: 0 10rpx;
  849. border: 1px solid #b2b2b2;
  850. border-radius: 6rpx;
  851. margin-bottom: 30rpx;
  852. position: relative;
  853. &.btn {
  854. border: none;
  855. margin-top: 40rpx;
  856. }
  857. .input {
  858. width: 100%;
  859. height: 90rpx;
  860. line-height: 90rpx;
  861. float: left;
  862. box-sizing: border-box;
  863. font-size: $font-size-24;
  864. color: #333333;
  865. padding: 0 10rpx;
  866. padding-right: 90rpx;
  867. }
  868. .iconfont {
  869. width: 50rpx;
  870. height: 90rpx;
  871. display: block;
  872. line-height: 90rpx;
  873. text-align: center;
  874. font-size: 30rpx;
  875. color: #999999;
  876. position: absolute;
  877. right: 0;
  878. top: 0;
  879. }
  880. }
  881. .list-view-list-main {
  882. width: 100%;
  883. height: auto;
  884. box-sizing: border-box;
  885. margin-bottom: 30rpx;
  886. position: relative;
  887. .list-view-list {
  888. width: 100%;
  889. height: 90rpx;
  890. box-sizing: border-box;
  891. margin-bottom: 30rpx;
  892. .list-view-input {
  893. width: 614rpx;
  894. height: 90rpx;
  895. float: left;
  896. position: relative;
  897. .input {
  898. width: 614rpx;
  899. height: 90rpx;
  900. box-sizing: border-box;
  901. padding: 0 20rpx;
  902. border: 1px solid #b2b2b2;
  903. border-radius: 6rpx;
  904. font-size: $font-size-24;
  905. color: #333333;
  906. }
  907. .list-view-assAction {
  908. width: 614rpx;
  909. min-height: 270rpx;
  910. box-sizing: border-box;
  911. padding: 10rpx 0;
  912. background: rgba(255, 255, 255, 1);
  913. box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
  914. border-radius: 6rpx;
  915. position: absolute;
  916. top: -288rpx;
  917. left: 0;
  918. z-index: 999;
  919. overflow: hidden;
  920. .tui-popup-scroll {
  921. width: 100%;
  922. height: 270rpx;
  923. }
  924. .ass-list {
  925. width: 100%;
  926. height: 90rpx;
  927. box-sizing: border-box;
  928. padding: 0 24rpx;
  929. line-height: 90rpx;
  930. font-size: $font-size-26;
  931. color: #666666;
  932. text-align: left;
  933. border-bottom: 1px solid #e1e1e1;
  934. &:last-child{
  935. border-bottom: none;
  936. }
  937. }
  938. }
  939. }
  940. .list-view-btn {
  941. width: 88rpx;
  942. height: 90rpx;
  943. float: right;
  944. text-align: center;
  945. line-height: 90rpx;
  946. .icon-zengjia {
  947. color: #1890f9;
  948. font-size: $font-size-48;
  949. }
  950. .icon-shanchu4 {
  951. color: #e15616;
  952. font-size: $font-size-48;
  953. }
  954. }
  955. }
  956. }
  957. .remarks-category {
  958. width: 100%;
  959. float: left;
  960. .checkbox-list {
  961. height: 60rpx;
  962. font-size: $font-size-28;
  963. line-height: 60rpx;
  964. border-radius: 10rpx;
  965. margin-right: 20rpx;
  966. margin-bottom: 10rpx;
  967. box-sizing: border-box;
  968. float: left;
  969. .icon-yixuanze {
  970. margin-right: 10rpx;
  971. color: #e15616;
  972. }
  973. .icon-weixuanze {
  974. margin-right: 10rpx;
  975. color: #b2b2b2;
  976. }
  977. }
  978. .item-text {
  979. display: inline-block;
  980. font-size: 26rpx;
  981. color: #333333;
  982. border-radius: 28rpx;
  983. line-height: 50rpx;
  984. }
  985. }
  986. .remarks-input {
  987. width: 100%;
  988. height: 90rpx;
  989. padding: 0 16rpx;
  990. margin: 20rpx 0 0 0;
  991. border-radius: 6rpx;
  992. position: relative;
  993. border: 1px solid #b2b2b2;
  994. box-sizing: border-box;
  995. .input {
  996. width: 100%;
  997. height: 90rpx;
  998. line-height: 90rpx;
  999. font-size: $font-size-26;
  1000. color: $text-color;
  1001. z-index: 1;
  1002. }
  1003. }
  1004. .remarks-textarea {
  1005. width: 100%;
  1006. height: 226rpx;
  1007. padding: 16rpx;
  1008. margin: 20rpx 0 0 0;
  1009. border-radius: 6rpx;
  1010. position: relative;
  1011. border: 1px solid #b2b2b2;
  1012. box-sizing: border-box;
  1013. .textarea {
  1014. width: 100%;
  1015. height: 100%;
  1016. line-height: 36rpx;
  1017. font-size: $font-size-26;
  1018. color: $text-color;
  1019. z-index: 1;
  1020. }
  1021. .limit-text {
  1022. position: absolute;
  1023. right: 20rpx;
  1024. bottom: 16rpx;
  1025. line-height: 44rpx;
  1026. font-size: $font-size-24;
  1027. color: #b2b2b2;
  1028. }
  1029. }
  1030. .list-view {
  1031. width: 100%;
  1032. height: 40rpx;
  1033. margin-top: 20rpx;
  1034. .list-view-file {
  1035. width: 132rpx;
  1036. height: 44rpx;
  1037. line-height: 44rpx;
  1038. font-size: $font-size-20;
  1039. text-align: center;
  1040. color: #ffffff;
  1041. background-color: $color-system;
  1042. border-radius: 8rpx;
  1043. float: left;
  1044. margin-top: 10rpx;
  1045. }
  1046. .list-view-text {
  1047. width: 100%;
  1048. float: left;
  1049. .input {
  1050. width: 560rpx;
  1051. height: 44rpx;
  1052. box-sizing: border-box;
  1053. line-height: 44rpx;
  1054. color: #333333;
  1055. text-overflow: ellipsis;
  1056. overflow: hidden;
  1057. display: -webkit-box;
  1058. -webkit-line-clamp: 1;
  1059. line-clamp: 1;
  1060. -webkit-box-orient: vertical;
  1061. float: left;
  1062. }
  1063. .delbtn {
  1064. width: 96rpx;
  1065. height: 44rpx;
  1066. border-radius: 8rpx;
  1067. background-color: #fff2ec;
  1068. font-size: $font-size-24;
  1069. color: #e15616;
  1070. line-height: 44rpx;
  1071. text-align: center;
  1072. float: left;
  1073. }
  1074. }
  1075. }
  1076. .list-view-upload {
  1077. width: 100%;
  1078. height: auto;
  1079. .photo-item {
  1080. display: inline-block;
  1081. width: 112rpx;
  1082. height: 112rpx;
  1083. margin: 10rpx 0;
  1084. margin-right: 25rpx;
  1085. border-radius: 10rpx;
  1086. border: 1px solid #f5f5f5;
  1087. position: relative;
  1088. float: left;
  1089. &.add {
  1090. width: 112rpx;
  1091. height: 112rpx;
  1092. border-color: #b2b2b2;
  1093. text-align: center;
  1094. line-height: 112rpx;
  1095. margin-right: 0rpx;
  1096. .icon-jiahao {
  1097. font-size: $font-size-44;
  1098. color: #b2b2b2;
  1099. font-weight: bold;
  1100. }
  1101. }
  1102. .icon-iconfontguanbi {
  1103. width: 30rpx;
  1104. height: 30rpx;
  1105. border-radius: 50%;
  1106. display: block;
  1107. position: absolute;
  1108. right: -10rpx;
  1109. top: -10rpx;
  1110. background: #f94b4b;
  1111. text-align: center;
  1112. line-height: 30rpx;
  1113. color: #ffffff;
  1114. font-size: $font-size-22;
  1115. }
  1116. image {
  1117. width: 112rpx;
  1118. height: 112rpx;
  1119. border-radius: 10rpx;
  1120. }
  1121. }
  1122. .photo-list {
  1123. width: 100%;
  1124. height: 116rpx;
  1125. overflow: hidden;
  1126. white-space: nowrap;
  1127. display: flex;
  1128. align-items: flex-start;
  1129. }
  1130. }
  1131. }
  1132. .remarks-btn {
  1133. width: 100%;
  1134. padding-top: 20rpx;
  1135. position: fixed;
  1136. bottom: 0;
  1137. left: 0;
  1138. background-color: #ffffff;
  1139. z-index: 99;
  1140. .edit-button-canel {
  1141. width: 100%;
  1142. height: 88rpx;
  1143. line-height: 88rpx;
  1144. text-align: center;
  1145. color: #e15616;
  1146. font-size: $font-size-24;
  1147. }
  1148. .edit-button {
  1149. width: 600rpx;
  1150. height: 90rpx;
  1151. background: $btn-confirm;
  1152. line-height: 90rpx;
  1153. text-align: center;
  1154. color: #ffffff;
  1155. font-size: $font-size-30;
  1156. margin: 0 auto;
  1157. border-radius: 45rpx;
  1158. }
  1159. }
  1160. </style>