add-record.vue 27 KB

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