add-record.vue 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073
  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. @handleChoiceaReport="handleChoiceaReportData"
  232. >
  233. </cm-reportpopup>
  234. </view>
  235. </template>
  236. <script>
  237. import { mapState, mapMutations } from 'vuex'
  238. import authorize from '@/common/config/authorize.js'
  239. import { uploadFileImage, uploadFilePdfDocDocxXlsx } from '@/services/public.js'
  240. import cmGoodspopup from '@/components/cm-module/cm-seller/cm-goods-popup'
  241. import cmReportpopup from '@/components/cm-module/cm-seller/cm-report-popup'
  242. var isPreviewImg
  243. export default {
  244. components: {
  245. cmGoodspopup,
  246. cmReportpopup
  247. },
  248. data() {
  249. return {
  250. isIphoneX: this.$store.state.isIphoneX,
  251. shopOrderId: 0,
  252. logisticsBatchId: 0,
  253. productActions: [],
  254. remarksParams: {
  255. clubType:'', //机构类型
  256. remarks:[], // 关键词
  257. extra: '',//额外说明
  258. fileList: [],
  259. imageList: [],
  260. questionManId: 0,
  261. serviceProviderId: 0,
  262. consult:'',
  263. pinceSensitve:0,//价格敏感度
  264. satisfied:0,// 意向程度
  265. followup:0,// 跟进状态
  266. },
  267. min: 0,
  268. max: 200,
  269. handleType:'',
  270. questionMan:'',
  271. clubUserId:0,
  272. clubInfo:{},
  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. }
  304. },
  305. onLoad(option) {
  306. console.log(option)
  307. if (option.type == 'edit') {
  308. this.handleType = option.type
  309. this.getUserClubConsults()
  310. this.getUserRemarksVisitDetail(option.remarksId)
  311. uni.setNavigationBarTitle({title:'修改记录'})
  312. } else {
  313. this.questionMan = option.questionMan
  314. this.remarksParams.questionManId = option.questionManId
  315. this.initGetStotage(option)
  316. this.getUserClubConsults()
  317. }
  318. },
  319. methods: {
  320. ...mapMutations(['login']),
  321. async initGetStotage(option) {
  322. const userInfo = await this.$api.getStorage()
  323. this.remarksParams.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  324. },
  325. getUserRemarksVisitDetail(remarksId) {
  326. //修改回显资料备注信息
  327. this.UserService.getUserRemarksVisitDetail({
  328. remarksId : remarksId
  329. })
  330. .then(response => {
  331. let data = response.data
  332. this.questionMan = data.questionMan
  333. this.remarksList = data.remarks.map((el, index) => {
  334. el.isAssociation = false
  335. return el
  336. })
  337. this.remarksParams.questionManId = data.questionManId
  338. this.remarksParams.remarksId = data.remarksId
  339. this.remarksParams.extra = data.extra
  340. this.remarksParams.clubType = data.clubType
  341. this.remarksParams.pinceSensitve = data.pinceSensitve
  342. this.remarksParams.satisfied = data.satisfied
  343. this.remarksParams.followup = data.followup
  344. this.remarksParams.fileList = data.fileList
  345. this.remarksParams.imageList = data.imageList
  346. this.remarksParams.consult = data.consult
  347. this.checkedCategorysList = data.consult.split(',').map(i => parseInt(i, 0))
  348. this.categorys = this.categorys.map((el, index) => {
  349. if(data.consult.includes(el.id)){
  350. el.isChecked = true
  351. }else{
  352. el.isChecked = false
  353. }
  354. return el
  355. })
  356. this.priceFlagText = this.pinceFilters(data.pinceSensitve)
  357. this.intenFlagText = this.intenActionsFilters(data.satisfied)
  358. this.followStateText = this.followupFilters(data.followup)
  359. this.initGetStotage()
  360. })
  361. .catch(error => {
  362. this.$util.msg(error.msg, 2000)
  363. })
  364. },
  365. getUserClubConsults() {
  366. //查询咨询类别
  367. this.UserService.getUserClubConsults()
  368. .then(response => {
  369. this.categorys = response.data.map((el, index) => {
  370. el.isChecked = false
  371. return el
  372. })
  373. })
  374. .catch(error => {
  375. console.log('=========>获取咨询类别列表失败')
  376. })
  377. },
  378. bindRemarkAction(index, event) {
  379. this.checkRemarkIndex = index
  380. this.assActionList = []
  381. if (event.detail.value != '') {
  382. this.UserService.getCmremarkslist({remarks : event.detail.value}).then(response => {
  383. if(response.data&&response.data.length>0){
  384. this.assActionList = response.data
  385. this.remarksList[index].isAssociation = true
  386. }else{
  387. this.assActionList = []
  388. this.remarksList[index].isAssociation = false
  389. }
  390. })
  391. .catch(error => {
  392. console.log('=========>获取关键词联想失败')
  393. })
  394. } else {
  395. this.remarksList[index].isAssociation = false
  396. }
  397. },
  398. hideAssAction(item, event){//隐藏对应的联想弹窗
  399. item.isAssociation = false
  400. },
  401. SelectAssociationFn(ass,item) {
  402. //选择关键词
  403. item.isAssociation = false
  404. item.label = ass
  405. },
  406. addListFn(item,index) {
  407. //添加
  408. let obj = { label: '',isAssociation:false}
  409. item.isAssociation = false
  410. this.remarksList.push(obj)
  411. },
  412. deleteLogistItemFn(item, index) {
  413. this.remarksList.splice(index, 1)
  414. },
  415. bindPickerChange(type, e) {
  416. //选择筛选条件
  417. switch (type) {
  418. case 1:
  419. this.priceFlagText = this.priceActions[e.target.value].name
  420. this.remarksParams.pinceSensitve = this.priceActions[e.target.value].value
  421. break
  422. case 2:
  423. this.intenFlagText = this.intenActions[e.target.value].name
  424. this.remarksParams.satisfied = this.intenActions[e.target.value].value
  425. break
  426. case 3:
  427. this.followStateText = this.stateActions[e.target.value].name
  428. this.remarksParams.followup = this.stateActions[e.target.value].value
  429. break
  430. }
  431. },
  432. editButtonConfim() {
  433. //保存资料备注
  434. if (this.remarksParams.consult == '') {
  435. this.$util.msg('请选择咨询类别', 2000)
  436. return
  437. }
  438. //统一处理关键词
  439. let remarksList = []
  440. for (const el of this.remarksList) {
  441. if(el.label!=''){
  442. remarksList.push(el.label)
  443. }
  444. }
  445. if (remarksList.length == 0) {
  446. this.$util.msg('请输入关键词记录', 2000)
  447. return
  448. }
  449. if (!this.remarksParams.pinceSensitve) {
  450. this.$util.msg('请选择价格敏感度', 2000)
  451. return
  452. }
  453. if (!this.remarksParams.satisfied) {
  454. this.$util.msg('请选择意向程度', 2000)
  455. return
  456. }
  457. if (!this.remarksParams.followup) {
  458. this.$util.msg('请选择跟进状态', 2000)
  459. return
  460. }
  461. this.remarksParams.remarks = JSON.stringify(remarksList)
  462. console.log('remarksParams',this.remarksParams)
  463. this.UserService.getUserClubVisitorSaveAdd({
  464. params: JSON.stringify(this.remarksParams)
  465. })
  466. .then(response => {
  467. this.$util.msg('保存成功', 2000, true, 'success')
  468. let VisitorInfo = {
  469. questionManId: this.remarksParams.questionManId,
  470. questionMan: this.questionMan
  471. }
  472. this.$api.setStorage('VisitorInfo', VisitorInfo)
  473. setTimeout(() => {
  474. uni.navigateBack({
  475. delta: 1
  476. })
  477. }, 2000)
  478. })
  479. .catch(error => {
  480. this.$util.msg(error.msg, 2000)
  481. })
  482. },
  483. choiceCategorys(category,index){
  484. // 选择类别
  485. category.isChecked = !category.isChecked
  486. if (category.isChecked) {
  487. if(!this.contains(this.checkedCategorysList,category.id)){
  488. this.checkedCategorysList.push(category.id)
  489. }
  490. } else {
  491. this.checkedCategorysList.splice(this.checkedCategorysList.indexOf(category.id),1)
  492. }
  493. this.remarksParams.consult = this.checkedCategorysList.join(',')
  494. },
  495. handleShowReportPopup(){
  496. // 显示报备弹窗
  497. this.isReportpopup = true
  498. },
  499. handleShowGoodPopup() {
  500. // 显示添加商品弹窗
  501. this.isGoodspopup = true
  502. },
  503. handleClean(){//删除选择的商品
  504. this.handleGoods = []
  505. },
  506. handleChoiceaGoodsData(data) {
  507. console.log('data', data)
  508. this.handleGoods = []
  509. this.handleGoods.push(data)
  510. },
  511. handleChoiceaReportData(data) {
  512. console.log('data', data)
  513. this.handleGoods = []
  514. this.handleGoods.push(data)
  515. },
  516. contains(arr, val) {// 校验
  517. return arr.some(item => item === val)
  518. },
  519. uploadFile(array) {
  520. //上传资质文件
  521. console.log(array)
  522. uploadFilePdfDocDocxXlsx().then(res => {
  523. let data = JSON.parse(res.data).data
  524. let obj = {
  525. fileName: uni.getStorageSync('fileName'),
  526. ossName: data.ossName
  527. }
  528. array.push(obj)
  529. }).catch(err=>{
  530. console.log(err)
  531. })
  532. },
  533. uploadPhotoFn(array) {
  534. //添加图片
  535. uploadFileImage().then(res => {
  536. array.push(JSON.parse(res.data).data)
  537. })
  538. },
  539. deleteFileFn(array, index) {
  540. console.log(array)
  541. //删除文件
  542. this.UploadService.PostFileDelete({
  543. ossName: array[index].ossName
  544. })
  545. .then(res => {
  546. array.splice(index, 1)
  547. })
  548. .catch(error => {
  549. console.log('删除文件异常提示===>', error.msg)
  550. })
  551. },
  552. deletePhotoFn(array, index) {
  553. //删除图片
  554. array.splice(index, 1)
  555. },
  556. previewImg(image, index) {
  557. //顶部商品图片预览
  558. isPreviewImg = true
  559. let previewUrls = image
  560. uni.previewImage({
  561. current: index, //图片索引
  562. urls: previewUrls, //必须是http图片,本地图片无效
  563. longPressActions: ''
  564. })
  565. },
  566. conInput(e) {
  567. //备注文字字数限制
  568. let value = e.detail.value
  569. let len = parseInt(value.length)
  570. if (len > this.max) return
  571. this.min = len
  572. if (this.min == 200) {
  573. this.$util.msg('您输入的字数已达上限', 2000)
  574. }
  575. },
  576. followupFilters(value) {
  577. // 订单来源
  578. const map = {
  579. 1: '跟进中',
  580. 2: '跟进完成',
  581. 3: '已放弃'
  582. }
  583. return map[value]
  584. },
  585. pinceFilters(value) {
  586. // 意向
  587. const map = {
  588. 1: '敏感',
  589. 2: '适中',
  590. 3: '不敏感',
  591. 4: '不明确'
  592. }
  593. return map[value]
  594. },
  595. intenActionsFilters(value) {
  596. // 意向
  597. const map = {
  598. 1: '意向强烈',
  599. 2: '意向一般',
  600. 3: '意向平淡',
  601. 4: '随便看看'
  602. }
  603. return map[value]
  604. }
  605. },
  606. onShow() {}
  607. }
  608. </script>
  609. <style lang="scss">
  610. page {
  611. height: auto;
  612. background: #ffffff;
  613. }
  614. .remarks-content {
  615. width: 100%;
  616. height: auto;
  617. box-sizing: border-box;
  618. padding: 0 24rpx;
  619. padding-bottom: 160rpx;
  620. .list-view-title {
  621. width: 100%;
  622. height: auto;
  623. margin-bottom: 16rpx;
  624. margin-top: 20rpx;
  625. .list-view-h1 {
  626. line-height: 40rpx;
  627. font-size: $font-size-28;
  628. color: #333333;
  629. text-align: left;
  630. text {
  631. color: #ff2a2a;
  632. }
  633. }
  634. .list-view-p {
  635. line-height: 30rpx;
  636. color: #fea785;
  637. font-size: $font-size-20;
  638. }
  639. }
  640. .tui-remarks-content {
  641. width: 100%;
  642. height: auto;
  643. margin-bottom: 24rpx;
  644. .tui-remarks-goods-input {
  645. width: 100%;
  646. height: 180rpx;
  647. box-sizing: border-box;
  648. background-color: #f7f7f7;
  649. padding: 26rpx;
  650. border-radius: 6rpx;
  651. .input-add {
  652. width: 128rpx;
  653. height: 128rpx;
  654. line-height: 128rpx;
  655. float: left;
  656. text-align: center;
  657. box-sizing: border-box;
  658. border: 1px dashed #b2b2b2;
  659. border-radius: 6rpx;
  660. .iconfont {
  661. font-size: 44rpx;
  662. color: #b2b2b2;
  663. }
  664. }
  665. .input-text {
  666. height: 128rpx;
  667. box-sizing: border-box;
  668. padding: 0 32rpx;
  669. line-height: 128rpx;
  670. text-align: left;
  671. font-size: 26rpx;
  672. color: #b2b2b2;
  673. float: left;
  674. }
  675. }
  676. .tui-remarks-showgoods {
  677. width: 100%;
  678. height: 180rpx;
  679. box-sizing: border-box;
  680. .tui-remarks-btn {
  681. width: 90rpx;
  682. height: 180rpx;
  683. float: right;
  684. .btn {
  685. width: 100%;
  686. height: 90rpx;
  687. float: left;
  688. line-height: 90rpx;
  689. text-align: center;
  690. font-size: 26rpx;
  691. &.delete {
  692. color: #f94b4b;
  693. }
  694. &.update {
  695. color: #1890f9;
  696. }
  697. }
  698. }
  699. .tui-remarks-goods {
  700. width: 612rpx;
  701. height: 180rpx;
  702. box-sizing: border-box;
  703. background-color: #f7f7f7;
  704. padding: 26rpx;
  705. border-radius: 6rpx;
  706. float: left;
  707. .goods-image {
  708. width: 128rpx;
  709. height: 128rpx;
  710. float: left;
  711. image {
  712. width: 128rpx;
  713. height: 128rpx;
  714. display: block;
  715. border-radius: 4rpx;
  716. }
  717. }
  718. .goods-main {
  719. width: 432rpx;
  720. height: 128rpx;
  721. box-sizing: border-box;
  722. padding-left: 32rpx;
  723. float: right;
  724. .name {
  725. width: 100%;
  726. height: 60rpx;
  727. box-sizing: border-box;
  728. line-height: 60rpx;
  729. color: #333333;
  730. text-overflow: ellipsis;
  731. overflow: hidden;
  732. display: -webkit-box;
  733. -webkit-line-clamp: 1;
  734. line-clamp: 1;
  735. -webkit-box-orient: vertical;
  736. font-size: 26rpx;
  737. }
  738. .shop {
  739. line-height: 60rpx;
  740. color: #999999;
  741. font-size: 26rpx;
  742. text-overflow: ellipsis;
  743. overflow: hidden;
  744. display: -webkit-box;
  745. -webkit-line-clamp: 1;
  746. line-clamp: 1;
  747. -webkit-box-orient: vertical;
  748. }
  749. }
  750. }
  751. }
  752. }
  753. .list-view-radio {
  754. width: 100%;
  755. height: 90rpx;
  756. box-sizing: border-box;
  757. padding: 0 10rpx;
  758. border: 1px solid #b2b2b2;
  759. border-radius: 6rpx;
  760. margin-bottom: 30rpx;
  761. position: relative;
  762. &.btn {
  763. border: none;
  764. margin-top: 40rpx;
  765. }
  766. .input {
  767. width: 100%;
  768. height: 90rpx;
  769. line-height: 90rpx;
  770. float: left;
  771. box-sizing: border-box;
  772. font-size: $font-size-24;
  773. color: #333333;
  774. padding: 0 10rpx;
  775. padding-right: 90rpx;
  776. }
  777. .iconfont {
  778. width: 50rpx;
  779. height: 90rpx;
  780. display: block;
  781. line-height: 90rpx;
  782. text-align: center;
  783. font-size: 30rpx;
  784. color: #999999;
  785. position: absolute;
  786. right: 0;
  787. top: 0;
  788. }
  789. }
  790. .list-view-list-main {
  791. width: 100%;
  792. height: auto;
  793. box-sizing: border-box;
  794. margin-bottom: 30rpx;
  795. position: relative;
  796. .list-view-list {
  797. width: 100%;
  798. height: 90rpx;
  799. box-sizing: border-box;
  800. margin-bottom: 30rpx;
  801. .list-view-input {
  802. width: 614rpx;
  803. height: 90rpx;
  804. float: left;
  805. position: relative;
  806. .input {
  807. width: 614rpx;
  808. height: 90rpx;
  809. box-sizing: border-box;
  810. padding: 0 20rpx;
  811. border: 1px solid #b2b2b2;
  812. border-radius: 6rpx;
  813. font-size: $font-size-24;
  814. color: #333333;
  815. }
  816. .list-view-assAction {
  817. width: 614rpx;
  818. min-height: 270rpx;
  819. box-sizing: border-box;
  820. padding: 10rpx 0;
  821. background: rgba(255, 255, 255, 1);
  822. box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
  823. border-radius: 6rpx;
  824. position: absolute;
  825. top: -288rpx;
  826. left: 0;
  827. z-index: 999;
  828. overflow: hidden;
  829. .tui-popup-scroll {
  830. width: 100%;
  831. height: 270rpx;
  832. }
  833. .ass-list {
  834. width: 100%;
  835. height: 90rpx;
  836. box-sizing: border-box;
  837. padding: 0 24rpx;
  838. line-height: 90rpx;
  839. font-size: $font-size-26;
  840. color: #666666;
  841. text-align: left;
  842. border-bottom: 1px solid #e1e1e1;
  843. &:last-child{
  844. border-bottom: none;
  845. }
  846. }
  847. }
  848. }
  849. .list-view-btn {
  850. width: 88rpx;
  851. height: 90rpx;
  852. float: right;
  853. text-align: center;
  854. line-height: 90rpx;
  855. .icon-zengjia {
  856. color: #1890f9;
  857. font-size: $font-size-48;
  858. }
  859. .icon-shanchu4 {
  860. color: #e15616;
  861. font-size: $font-size-48;
  862. }
  863. }
  864. }
  865. }
  866. .remarks-category{
  867. width: 100%;
  868. float: left;
  869. .checkbox-list {
  870. height: 60rpx;
  871. font-size: $font-size-28;
  872. line-height: 60rpx;
  873. border-radius: 10rpx;
  874. margin-right: 20rpx;
  875. margin-bottom: 10rpx;
  876. box-sizing: border-box;
  877. float: left;
  878. .icon-yixuanze{
  879. margin-right: 10rpx;
  880. color: #E15616;
  881. }
  882. .icon-weixuanze{
  883. margin-right: 10rpx;
  884. color: #B2B2B2;
  885. }
  886. }
  887. .item-text {
  888. display: inline-block;
  889. font-size: 26rpx;
  890. color: #333333;
  891. border-radius: 28rpx;
  892. line-height: 50rpx;
  893. }
  894. }
  895. .remarks-input {
  896. width: 100%;
  897. height: 90rpx;
  898. line-height: 90rpx;
  899. margin: 20rpx 0 0 0;
  900. box-sizing: border-box;
  901. .input {
  902. width: 100%;
  903. height: 90rpx;
  904. line-height: 90rpx;
  905. font-size: $font-size-26;
  906. color: $text-color;
  907. z-index: 1;
  908. box-sizing: border-box;
  909. border: 1px solid #b2b2b2;
  910. padding: 0 16rpx;
  911. border-radius: 6rpx;
  912. }
  913. }
  914. .remarks-textarea {
  915. width: 100%;
  916. height: 226rpx;
  917. padding: 16rpx;
  918. margin: 20rpx 0 0 0;
  919. border-radius: 6rpx;
  920. position: relative;
  921. border: 1px solid #b2b2b2;
  922. box-sizing: border-box;
  923. .textarea {
  924. width: 100%;
  925. height: 100%;
  926. line-height: 36rpx;
  927. font-size: $font-size-26;
  928. color: $text-color;
  929. z-index: 1;
  930. }
  931. .limit-text {
  932. position: absolute;
  933. right: 20rpx;
  934. bottom: 16rpx;
  935. line-height: 44rpx;
  936. font-size: $font-size-24;
  937. color: #b2b2b2;
  938. }
  939. }
  940. .list-view {
  941. width: 100%;
  942. height: 40rpx;
  943. margin-top: 20rpx;
  944. .list-view-file {
  945. width: 132rpx;
  946. height: 44rpx;
  947. line-height: 44rpx;
  948. font-size: $font-size-20;
  949. text-align: center;
  950. color: #ffffff;
  951. background-color: $color-system;
  952. border-radius: 8rpx;
  953. float: left;
  954. margin-top: 10rpx;
  955. }
  956. .list-view-text {
  957. width: 100%;
  958. float: left;
  959. .input {
  960. width: 560rpx;
  961. height: 44rpx;
  962. box-sizing: border-box;
  963. line-height: 44rpx;
  964. color: #333333;
  965. text-overflow: ellipsis;
  966. overflow: hidden;
  967. display: -webkit-box;
  968. -webkit-line-clamp: 1;
  969. line-clamp: 1;
  970. -webkit-box-orient: vertical;
  971. float: left;
  972. }
  973. .delbtn {
  974. width: 96rpx;
  975. height: 44rpx;
  976. border-radius: 8rpx;
  977. background-color: #fff2ec;
  978. font-size: $font-size-24;
  979. color: #e15616;
  980. line-height: 44rpx;
  981. text-align: center;
  982. float: left;
  983. }
  984. }
  985. }
  986. .list-view-upload {
  987. width: 100%;
  988. height: auto;
  989. .photo-item {
  990. display: inline-block;
  991. width: 112rpx;
  992. height: 112rpx;
  993. margin: 10rpx 0;
  994. margin-right: 25rpx;
  995. border-radius: 10rpx;
  996. border: 1px solid #f5f5f5;
  997. position: relative;
  998. float: left;
  999. &.add {
  1000. width: 112rpx;
  1001. height: 112rpx;
  1002. border-color: #b2b2b2;
  1003. text-align: center;
  1004. line-height: 112rpx;
  1005. margin-right: 0rpx;
  1006. .icon-jiahao {
  1007. font-size: $font-size-44;
  1008. color: #b2b2b2;
  1009. font-weight: bold;
  1010. }
  1011. }
  1012. .icon-iconfontguanbi {
  1013. width: 30rpx;
  1014. height: 30rpx;
  1015. border-radius: 50%;
  1016. display: block;
  1017. position: absolute;
  1018. right: -10rpx;
  1019. top: -10rpx;
  1020. background: #f94b4b;
  1021. text-align: center;
  1022. line-height: 30rpx;
  1023. color: #ffffff;
  1024. font-size: $font-size-22;
  1025. }
  1026. image {
  1027. width: 112rpx;
  1028. height: 112rpx;
  1029. border-radius: 10rpx;
  1030. }
  1031. }
  1032. .photo-list {
  1033. width: 100%;
  1034. height: 116rpx;
  1035. overflow: hidden;
  1036. white-space: nowrap;
  1037. display: flex;
  1038. align-items: flex-start;
  1039. }
  1040. }
  1041. }
  1042. .remarks-btn {
  1043. width: 100%;
  1044. padding-top: 20rpx;
  1045. position: fixed;
  1046. bottom: 0;
  1047. left: 0;
  1048. background-color: #ffffff;
  1049. z-index: 99;
  1050. .edit-button-canel {
  1051. width: 100%;
  1052. height: 88rpx;
  1053. line-height: 88rpx;
  1054. text-align: center;
  1055. color: #e15616;
  1056. font-size: $font-size-24;
  1057. }
  1058. .edit-button {
  1059. width: 600rpx;
  1060. height: 90rpx;
  1061. background: $btn-confirm;
  1062. line-height: 90rpx;
  1063. text-align: center;
  1064. color: #ffffff;
  1065. font-size: $font-size-30;
  1066. margin: 0 auto;
  1067. border-radius: 45rpx;
  1068. }
  1069. }
  1070. </style>