customer.vue 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040
  1. <template>
  2. <view>
  3. <view class="header">
  4. <view style='background:#fff;display:flex;' class="cu-bar search">
  5. <view style='flex:6;' class="search-form round Medium">
  6. <text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
  7. <input @input='searchinput' type="text" maxlength="20" :focus="true" v-model="searchKeyWord"
  8. @confirm="doSearch()" placeholder=" 输入客户姓名、客户手机号或供应商姓名" confirm-type="search"></input>
  9. </view>
  10. <view @click='doSearch()' class="Regular" style="width:4%;flex:1;">搜索</view>
  11. <u-icon @click='emptysearch' class="cuIcon" v-if='searchKeyWord.length>0' size="34"
  12. name="close-circle-fill" color="#D6D9E0"></u-icon>
  13. <!-- <text @click='emptysearch' v-if='searchKeyWord.length>0' class='tip_text cuIcon-roundclosefill'></text> -->
  14. </view>
  15. </view>
  16. <view class="content">
  17. <view style='padding-left:20px;color:#AFB3BF;font-size:14px;' v-if='show==false'>近期客户</view>
  18. <view v-for='item in gridList'>
  19. <view v-if='searchKeyWord.length>0&&show==true' class='searchwrap' @click='checkcustomer(item)'>
  20. <view v-if="item.supplier"> {{item.customerName}}({{item.customerPhone}})-{{item.supplier}} </view>
  21. <view v-else> {{item.customerName}}({{item.customerPhone}}) </view>
  22. </view>
  23. </view>
  24. <view v-for='item in recentCustomers' style='display:inline-block;'>
  25. <view @click='recentcustomer(item)' class='wrap' v-if='show==false'>
  26. {{item.customerName}}({{item.customerPhone}})
  27. </view>
  28. </view>
  29. </view>
  30. <view class="content content1">
  31. <view style='padding-left:20px;color:#AFB3BF;font-size:14px;' v-if='show==false'>登记客户</view>
  32. <view v-for='item in registeredCustomer'>
  33. <view class="dj-customer" @click="registeredCustomerClick(item)" v-for="(item1,index) in item.carList">
  34. <view class="left">{{item1}}</view>
  35. <view class="right">
  36. <view class="span1">{{item.shipperName}}(货)</view>
  37. <view class="">{{item.supplier}}(商)</view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view v-show="isContent">
  43. <uni-load-more :status="loadStatus"></uni-load-more>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. import dragButton from "@/components/drag-button/drag-button.vue";
  49. import {
  50. mapState
  51. } from 'vuex';
  52. let startY = 0,
  53. moveY = 0,
  54. pageAtTop = true;
  55. export default {
  56. components: {
  57. dragButton
  58. },
  59. data() {
  60. return {
  61. inputShow: false,
  62. modalName: '',
  63. mycarStyle: '',
  64. feild: undefined,
  65. params: {},
  66. selector: [],
  67. isContent: false,
  68. loadStatus: 'noMore',
  69. inputContent: '',
  70. coverTransform: 'translateY(0px)',
  71. coverTransition: '0s',
  72. moving: false,
  73. footprintList: [],
  74. searchKeyWord: '',
  75. isVip: false,
  76. userInfoTmp: [],
  77. inputStatus: 'none',
  78. carInfo: [],
  79. gridCol: 4,
  80. show: false,
  81. pageSize: 10,
  82. currentPage: 1,
  83. gridBorder: false,
  84. headUrl: "../../static/img/myimg/YongHu@3x.png",
  85. userphone: "",
  86. username: "请更改昵称",
  87. gridList: [],
  88. managementType: '',
  89. warehouseName: '',
  90. showTran: true,
  91. companyId: 1,
  92. current: 4,
  93. customerList: [],
  94. purchasePriceList: [],
  95. warehouseCount: '',
  96. commonWarehouseNo: '',
  97. cangid: '',
  98. recentCustomers: [],
  99. registeredCustomer: []
  100. }
  101. },
  102. computed: {
  103. ...mapState(['hasLogin', 'userInfo']),
  104. // 手机号中间4位加*
  105. starUserphone() {
  106. let reg = /^(\d{3})\d{4}(\d{4})$/;
  107. if (this.userphone) {
  108. return this.userphone.replace(reg, "$1****$2");
  109. }
  110. }
  111. },
  112. onLoad(options) {
  113. this.cangid = options.cangid
  114. this.warehouseName = options.warehouseName
  115. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  116. warehouseId: this.cangid
  117. }).then(res => {
  118. if (res.data.data) {
  119. uni.setStorageSync('purchasePriceList', res.data.data)
  120. this.purchasePriceList = uni.getStorageSync('purchasePriceList')
  121. }
  122. })
  123. },
  124. onShow() {
  125. this.purchasePriceList = uni.getStorageSync('purchasePriceList')
  126. let _data = uni.getStorageSync('recentCustomers')
  127. if (_data) {
  128. this.recentCustomers =_data
  129. for(let i=0;i<_data.length;i++){
  130. if(_data[i].shipperName){
  131. this.recentCustomers[i].customerName = _data[i].shipperName
  132. this.recentCustomers[i].customerPhone = _data[i].shipperPhone
  133. }
  134. }
  135. } else {
  136. this.recentCustomers = []
  137. }
  138. this.$api.doRequest('get', '/grainDeliveryRegistration/grainDeliveryRegistrationCustomer', {
  139. warehouseName: this.warehouseName
  140. }).then(res => {
  141. if (res.data.data) {
  142. let _endTime = Date.parse(new Date());
  143. let _startTime = ""
  144. for (let i = 0; i < res.data.data.length; i++) {
  145. let _carList = res.data.data[i].shippingInformationList
  146. for (let k = 0; k < _carList.length; k++) {
  147. //判断是记录是否失效
  148. _startTime = new Date((res.data.data[i].validityDate + ' 00:00:00')).getTime();
  149. if (_endTime - _startTime <= 0) {
  150. let _ecarList = _carList[k].carNo.split(',')
  151. _carList[k].carList = _ecarList
  152. this.registeredCustomer.push(_carList[k])
  153. }
  154. }
  155. }
  156. console.log(this.registeredCustomer)
  157. }
  158. })
  159. // this.$api.doRequest('get', '/searchRecordsInfo/selectSearchRecordsInfo', {
  160. // pageSize: this.pageSize,
  161. // currentPage: this.currentPage,
  162. // functionType: "3",
  163. // commonId: this.userInfo.id
  164. // }).then(res => {
  165. // if (res.data.data) {
  166. // this.gridList = res.data.data.records
  167. // console.log(this.gridList)
  168. // }
  169. // })
  170. // this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
  171. // compId: uni.getStorageSync('pcUserInfo').compId,
  172. // authenticationStatusKey: 7,
  173. // searchKeyWord:''
  174. // }).then(res => {
  175. // if (res.data.data) {
  176. // this.customerList = res.data.data
  177. // }
  178. // })
  179. },
  180. methods: {
  181. searchinput(e) {
  182. if (this.searchKeyWord.length == 0) {
  183. this.show = false
  184. this.getList()
  185. }
  186. },
  187. registeredCustomerClick(item){
  188. uni.setStorageSync('checkcustomer', item)
  189. if (this.recentCustomers.length == 0) {
  190. this.recentCustomers.push(item)
  191. uni.setStorageSync('recentCustomers', this.recentCustomers)
  192. }else{
  193. let _copyList = this.$u.deepClone(this.recentCustomers);
  194. for (let i = 0; i < this.recentCustomers.length; i++) {
  195. if (this.recentCustomers[i].customerPhone != item.shipperPhone) {
  196. _copyList.push(item)
  197. uni.setStorageSync('recentCustomers', _copyList)
  198. }
  199. }
  200. }
  201. uni.navigateBack()
  202. },
  203. checkcustomer(item) {
  204. var that = this
  205. var count = ''
  206. if (item.authenticationStatus == '已认证') {
  207. // uni.showLoading({
  208. // title: '加载中'
  209. // })
  210. uni.setStorageSync('checkcustomer', item)
  211. if (this.recentCustomers.length == 0) {
  212. this.recentCustomers.push(item)
  213. uni.setStorageSync('recentCustomers', this.recentCustomers)
  214. }else{
  215. let _isDel = false
  216. for (let i = 0; i < this.recentCustomers.length; i++) {
  217. if (this.recentCustomers[i].customerPhone == item.customerPhone) {
  218. _isDel = true
  219. }
  220. }
  221. if(!_isDel){
  222. let _data = uni.getStorageSync('recentCustomers')
  223. _data.push(item)
  224. uni.setStorageSync('recentCustomers', _data)
  225. }
  226. }
  227. // uni.hideLoading()
  228. uni.navigateBack()
  229. // that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo', {
  230. // commonId: that.userInfo.id,
  231. // searchContent: item.customerName + '(' + item.customerPhone + ')',
  232. // functionType: 3
  233. // }).then(res => {
  234. // uni.setStorageSync('checkcustomer', item)
  235. // that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount', {
  236. // compId: '',
  237. // customerName: item.customerName,
  238. // goodsName: uni.getStorageSync('goodsName'),
  239. // }).then(res => {
  240. // if (res.data.code == 200) {
  241. // count = res.data.data
  242. // that.$api.doRequest('get', '/paymentManagement/cumulant', {
  243. // compId: '',
  244. // customerName: item.customerName,
  245. // goodsName: uni.getStorageSync('goodsName'),
  246. // }).then(res => {
  247. // for (let i = 0; i < that.purchasePriceList.length; i++) {
  248. // var data = res.data.data / 1000
  249. // if (that.purchasePriceList[i].goodsName == uni
  250. // .getStorageSync('goodsName')) {
  251. // if (that.purchasePriceList[i].saleLimit - data < 50 ||
  252. // count > 0) {
  253. // that.$api.msg(
  254. // `当前客户已累计销售我司${uni.getStorageSync('goodsName')}${data.toFixed(2)}吨,最高可售${that.purchasePriceList[i].saleLimit}吨。`
  255. // )
  256. // }
  257. // }
  258. // }
  259. // that.show = false
  260. // uni.hideLoading()
  261. // uni.navigateBack()
  262. // })
  263. // }
  264. // })
  265. // })
  266. // .catch(res => {
  267. // uni.showToast({
  268. // title: '系统异常,请联系管理员',
  269. // icon: 'none',
  270. // duration: 2000
  271. // })
  272. // uni.hideLoading()
  273. // })
  274. } else {
  275. this.$api.msg('客户身份不可用')
  276. }
  277. },
  278. recentcustomer(item) {
  279. uni.setStorageSync('checkcustomer', item)
  280. uni.navigateBack()
  281. // var count = ''
  282. // var that = this
  283. // var name = item.searchContent.split('(')[0]
  284. // var phone = item.searchContent.split('(')[1]
  285. // phone = phone.substring(0, phone.length - 1)
  286. // for (var i = 0; i < this.customerList.length; i++) {
  287. // // console.log(name,this.customerList[i].customerName,name==this.customerList[i].customerName)
  288. // if (this.customerList[i].customerPhone == phone) {
  289. // var tmpName = this.customerList[i].customerName
  290. // uni.setStorageSync('checkcustomer', this.customerList[i])
  291. // uni.showLoading({
  292. // title: '加载中'
  293. // })
  294. // that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo', {
  295. // commonId: that.userInfo.id,
  296. // searchContent: this.customerList[i].customerName + '(' + this.customerList[i]
  297. // .customerPhone + ')',
  298. // functionType: 3
  299. // }).then(res => {
  300. // that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount', {
  301. // compId: '',
  302. // customerName: tmpName,
  303. // goodsName: uni.getStorageSync('goodsName'),
  304. // }).then(res => {
  305. // if (res.data.code == 200) {
  306. // count = res.data.data
  307. // that.$api.doRequest('get', '/paymentManagement/cumulant', {
  308. // compId: '',
  309. // customerName: tmpName,
  310. // goodsName: uni.getStorageSync('goodsName'),
  311. // }).then(res => {
  312. // for (let i = 0; i < that.purchasePriceList.length; i++) {
  313. // if (that.purchasePriceList[i].goodsName == uni
  314. // .getStorageSync('goodsName')) {
  315. // var data = res.data.data / 1000
  316. // if (that.purchasePriceList[i].saleLimit - data <
  317. // 50 || count > 0) {
  318. // that.$api.msg(
  319. // `当前客户已累计销售我司${uni.getStorageSync('goodsName')}${data.toFixed(2)}吨,最高可售${that.purchasePriceList[i].saleLimit}吨。`
  320. // )
  321. // }
  322. // }
  323. // }
  324. // that.show = false
  325. // uni.hideLoading()
  326. // uni.navigateBack()
  327. // })
  328. // }
  329. // })
  330. // })
  331. // .catch(res => {
  332. // uni.showToast({
  333. // title: '系统异常,请联系管理员',
  334. // icon: 'none',
  335. // duration: 2000
  336. // })
  337. // uni.hideLoading()
  338. // })
  339. // }
  340. // }
  341. },
  342. emptysearch() {
  343. this.show = false
  344. this.searchKeyWord = ''
  345. this.gridList = []
  346. this.currentPage = 1
  347. this.getList()
  348. },
  349. doSearch() {
  350. this.show = true
  351. this.gridList = []
  352. this.currentPage = 1
  353. this.getList()
  354. },
  355. getList() {
  356. var that = this
  357. var url = ''
  358. var data = {}
  359. if (this.searchKeyWord.length > 0) {
  360. url = '/identityAuthenticationInfo/identityAuthenticationInfoCustomer'
  361. data = {
  362. compId: '',
  363. authenticationStatusKey: 7,
  364. searchKeyWord: this.searchKeyWord
  365. }
  366. } else {
  367. url = '/searchRecordsInfo/selectSearchRecordsInfo'
  368. data = {
  369. pageSize: this.pageSize,
  370. currentPage: this.currentPage,
  371. functionType: "3",
  372. commonId: this.userInfo.id
  373. }
  374. }
  375. this.$api.doRequest('get', url, data).then(res => {
  376. if (res.data.data) {
  377. let data = res.data.data.records ? res.data.data.records : res.data.data
  378. //采购信息
  379. if (data.length > 0) {
  380. that.gridList = data
  381. } else {
  382. if (this.currentPage == 1) {
  383. that.gridList = []
  384. }
  385. this.isContent = true
  386. }
  387. }
  388. })
  389. },
  390. edit(item) {
  391. uni.navigateTo({
  392. url: '/pages/erpbusiness/edit_quality_testing?id=' + item.id + '&managementType=' + this
  393. .managementType + '&cangid=' + this.cangid
  394. })
  395. },
  396. add() {
  397. uni.navigateTo({
  398. url: '/pages/erpbusiness/add_quality_testing?managementType=' + this.managementType +
  399. '&cangid=' + this.cangid + '&warehouseCount=' + this.warehouseCount +
  400. '&commonWarehouseNo=' + this.commonWarehouseNo + '&warehouseName=' + this.warehouseName
  401. })
  402. },
  403. del(item) {
  404. this.$api.doRequest('post', '/qualityInspectionManagement/api/deleteQualityInspection', {
  405. id: item.id
  406. }).then(res => {
  407. if (res.data.code == 200) {
  408. this.$api.msg('删除成功')
  409. this.gridList = []
  410. this.getList()
  411. } else {
  412. this.$api.msg('系统异常,请联系管理员')
  413. }
  414. })
  415. },
  416. fankui() {
  417. uni.navigateTo({
  418. url: `/pages/user/fankui`
  419. })
  420. },
  421. zhibo() {
  422. uni.navigateTo({
  423. url: `/pageB/video/broadcast`
  424. })
  425. },
  426. look() {
  427. uni.navigateTo({
  428. url: `/pageB/video/look`
  429. })
  430. },
  431. contactUs() {
  432. const that = this
  433. uni.makePhoneCall({
  434. // 手机号
  435. phoneNumber: '18241771147',
  436. // 成功回调
  437. success: (res) => {},
  438. // 失败回调
  439. fail: (res) => {}
  440. });
  441. },
  442. loadData() {
  443. // const that = this
  444. // if(uni.getStorageSync("PageCur")){
  445. // that.PageCur = uni.getStorageSync("PageCur");
  446. // }
  447. // that.userInfoTmp = uni.getStorageSync("userInfo")
  448. // uni.showLoading({
  449. // title: '正在加载',
  450. // mask:true
  451. // })
  452. // that.$api.request('integral', 'getIndexData', failres => {
  453. // that.$api.msg(failres.errmsg)
  454. // uni.hideLoading()
  455. // }).then(res => {
  456. // let data = res.data
  457. // uni.setStorageSync("message", data.message);
  458. // uni.setStorageSync("task", data.task);
  459. // uni.setStorageSync("contract", data.contract);
  460. // uni.setStorageSync('showTran', data.showTran);
  461. // that.showTran = data.showTran
  462. // that.gridList[4].tips = data.task
  463. // that.gridList[2].tips = data.contract
  464. // that.companyId = data.companyId
  465. // uni.hideLoading()
  466. // })
  467. },
  468. confirm() {
  469. const that = this
  470. if (!that.inputContent) {
  471. that.$api.msg('输入不能为空')
  472. return
  473. }
  474. let obj = {}
  475. obj[that.feild] = that.inputContent
  476. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  477. that.userInfo.nickname = that.inputContent
  478. that.inputContent = ''
  479. that.$store.commit('login', that.userInfo)
  480. })
  481. },
  482. cancel() {
  483. this.inputShow = false
  484. this.inputStatus = 'none'
  485. this.genderShow = false
  486. },
  487. myAccount() {
  488. uni.navigateTo({
  489. url: `/pageA/pages/contract`
  490. })
  491. },
  492. /**
  493. * 统一跳转接口,拦截未登录路由
  494. * navigator标签现在默认没有转场动画,所以用view
  495. */
  496. navTo(url) {
  497. if (!this.hasLogin) {
  498. url = '/pages/public/login';
  499. }
  500. uni.navigateTo({
  501. url
  502. })
  503. },
  504. mycarClick(carNo) {
  505. this.modalName = null
  506. uni.navigateTo({
  507. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  508. })
  509. },
  510. scanCode() {
  511. uni.scanCode({
  512. success: function(res) {
  513. uni.navigateTo({
  514. url: res.result
  515. })
  516. }
  517. })
  518. },
  519. hideModal(e) {
  520. this.modalName = null
  521. },
  522. }
  523. }
  524. </script>
  525. <style lang='scss' scoped>
  526. page {
  527. background: #F5F6FA;
  528. }
  529. .container {
  530. padding-top: 85px;
  531. padding-top: 35px;
  532. background-color: #F5F6FA;
  533. position: relative;
  534. width: 100vw;
  535. height: 100vh;
  536. overflow: hidden;
  537. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  538. background-size: 100% 100%;
  539. margin: 0 auto;
  540. }
  541. .cu-tag.badge {
  542. right: 26rpx;
  543. }
  544. .path {
  545. color: #007aff;
  546. display: inline-block;
  547. text-align: center;
  548. }
  549. .icon {
  550. margin-right: 10rpx;
  551. }
  552. .portrait-box {
  553. margin-top: 20rpx;
  554. }
  555. .qr-wrap {
  556. margin-top: 20upx;
  557. color: #fff;
  558. font-size: 32rpx;
  559. }
  560. @keyframes move_wave {
  561. 0% {
  562. transform: translateX(0) translateZ(0) scaleY(1)
  563. }
  564. 50% {
  565. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  566. }
  567. 100% {
  568. transform: translateX(-50%) translateZ(0) scaleY(1)
  569. }
  570. }
  571. .bg {
  572. position: relative;
  573. height: 300rpx;
  574. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  575. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  576. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  577. }
  578. .bg_ware {
  579. position: absolute;
  580. left: 0;
  581. bottom: -2rpx;
  582. width: 100%;
  583. mix-blend-mode: screen;
  584. height: 224rpx;
  585. }
  586. %flex-center {
  587. display: flex;
  588. flex-direction: column;
  589. justify-content: center;
  590. align-items: center;
  591. }
  592. %section {
  593. display: flex;
  594. justify-content: space-around;
  595. align-content: center;
  596. background: #fff;
  597. border-radius: 10upx;
  598. }
  599. .cuIcon {
  600. position: absolute;
  601. right: 80px;
  602. }
  603. .grid-item-box {
  604. flex: 1;
  605. /* position: relative;
  606. */
  607. /* #ifndef APP-NVUE */
  608. display: flex;
  609. /* #endif */
  610. flex-direction: column;
  611. align-items: center;
  612. justify-content: center;
  613. padding: 15px 0;
  614. }
  615. .image {
  616. width: 80rpx;
  617. height: 80rpx;
  618. }
  619. .text {
  620. font-size: 26rpx;
  621. margin-top: 10rpx;
  622. }
  623. .user-section {
  624. height: 520upx;
  625. padding: 100upx 30upx 0;
  626. position: relative;
  627. .bg {
  628. position: absolute;
  629. left: 0;
  630. top: 0;
  631. width: 100%;
  632. height: 100%;
  633. filter: blur(1px);
  634. box-shadow: 0px 1px 8px #ccc;
  635. /* background:linear-gradient(#0eb0c9,#126bae); */
  636. /* opacity: .7; */
  637. }
  638. }
  639. .cover-container {
  640. padding: 1px 10px;
  641. padding-bottom: 200upx;
  642. /* background-color: #F5F6FA; */
  643. /* border-radius: 20px; */
  644. margin-top: 60upx;
  645. .arc {
  646. position: absolute;
  647. left: 0;
  648. top: -34upx;
  649. width: 100%;
  650. height: 36upx;
  651. }
  652. }
  653. .tj-sction {
  654. @extend %section;
  655. .tj-item {
  656. @extend %flex-center;
  657. flex-direction: column;
  658. height: 140upx;
  659. font-size: $font-sm;
  660. color: #75787d;
  661. }
  662. .num {
  663. font-size: $font-lg;
  664. color: $font-color-dark;
  665. margin-bottom: 8upx;
  666. }
  667. }
  668. .order-section {
  669. @extend %section;
  670. padding: 28upx 0;
  671. margin-top: 20upx;
  672. .order-item {
  673. @extend %flex-center;
  674. width: 120upx;
  675. height: 120upx;
  676. border-radius: 10upx;
  677. font-size: $font-sm;
  678. color: $font-color-dark;
  679. }
  680. .yticon {
  681. font-size: 48upx;
  682. margin-bottom: 18upx;
  683. color: #fa436a;
  684. }
  685. .icon-shouhoutuikuan {
  686. font-size: 44upx;
  687. }
  688. }
  689. .history-section {
  690. padding: 30upx 0 0;
  691. margin-top: 20upx;
  692. background: #fff;
  693. border-radius: 10upx;
  694. .sec-header {
  695. display: flex;
  696. align-items: center;
  697. font-size: $font-base;
  698. color: $font-color-dark;
  699. line-height: 40upx;
  700. margin-left: 30upx;
  701. .yticon {
  702. font-size: 44upx;
  703. color: #5eba8f;
  704. margin-right: 16upx;
  705. line-height: 40upx;
  706. }
  707. }
  708. .h-list {
  709. white-space: nowrap;
  710. padding: 30upx 30upx 0;
  711. image {
  712. display: inline-block;
  713. width: 160upx;
  714. height: 160upx;
  715. margin-right: 20upx;
  716. border-radius: 10upx;
  717. }
  718. }
  719. }
  720. .search-form {
  721. background: #F5F6F9;
  722. }
  723. .search-box {
  724. width: 100%;
  725. background-color: rgb(242, 242, 242);
  726. padding: 15upx 2.5%;
  727. display: flex;
  728. justify-content: space-between;
  729. }
  730. .search-box .mSearch-input-box {
  731. width: 100%;
  732. }
  733. .search-box .input-box {
  734. width: 85%;
  735. flex-shrink: 1;
  736. display: flex;
  737. justify-content: center;
  738. align-items: center;
  739. }
  740. .search-box .search-btn {
  741. width: 15%;
  742. margin: 0 0 0 2%;
  743. display: flex;
  744. justify-content: center;
  745. align-items: center;
  746. flex-shrink: 0;
  747. font-size: 28upx;
  748. color: #fff;
  749. background: linear-gradient(to right, #ff9801, #ff570a);
  750. border-radius: 60upx;
  751. }
  752. .search-box .input-box>input {
  753. width: 100%;
  754. height: 60upx;
  755. font-size: 32upx;
  756. border: 0;
  757. border-radius: 60upx;
  758. -webkit-appearance: none;
  759. -moz-appearance: none;
  760. appearance: none;
  761. padding: 0 3%;
  762. margin: 0;
  763. background-color: #ffffff;
  764. }
  765. .placeholder-class {
  766. color: #9e9e9e;
  767. }
  768. .search-keyword {
  769. width: 100%;
  770. background-color: rgb(242, 242, 242);
  771. }
  772. .grid {
  773. display: flex;
  774. align-items: center;
  775. flex-wrap: wrap;
  776. /* border-top: 2upx solid rgba(172,172,172,.2); */
  777. .grid-item-3 {
  778. box-sizing: border-box;
  779. width: calc(100% / 3);
  780. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  781. border-right: 2upx solid rgba(172, 172, 172, .2);
  782. text-align: center;
  783. padding: 40upx 0;
  784. position: relative;
  785. /* view{
  786. font-size: $font-sm;
  787. margin-top: 16upx;
  788. color: $font-color-dark;
  789. } */
  790. .grid_icon {
  791. font-size: 48upx;
  792. margin-bottom: 18upx;
  793. color: #fa436a;
  794. }
  795. .tip_text {
  796. display: block;
  797. padding: 4upx 8upx;
  798. text-align: center;
  799. border-radius: 36upx;
  800. font-size: 24upx;
  801. background-color: #fa436a;
  802. color: rgba(255, 255, 255, 1);
  803. position: absolute;
  804. right: 6upx;
  805. top: 6upx;
  806. }
  807. }
  808. .grid-item-3:nth-child(3n + 3),
  809. .grid-item-4:nth-child(4n + 4) {
  810. border-right: none;
  811. }
  812. }
  813. .headPortrait {
  814. width: 75px;
  815. height: 75px;
  816. border-radius: 40px;
  817. border: 2px solid #ffffff;
  818. }
  819. .information {
  820. font-size: 15px;
  821. font-weight: 600;
  822. height: 36px;
  823. }
  824. .cu-list>.cu-item:after {
  825. border: none;
  826. }
  827. .sign {
  828. width: 40px;
  829. height: 40px;
  830. top: 4px;
  831. margin-right: 6px;
  832. }
  833. .indexUp {
  834. padding: 0 20px;
  835. align-items: center;
  836. }
  837. .wrap {
  838. background: #F5F6F9;
  839. margin: 5px 10px;
  840. border-radius: 20px;
  841. width: 92%;
  842. display: inline-block;
  843. padding: 10px;
  844. }
  845. .searchwrap {
  846. border-top: 1px solid #eee;
  847. padding: 10px 20px;
  848. }
  849. .searchwrap:last-child {
  850. border-bottom: 1px solid #eee;
  851. }
  852. .qualityNo {
  853. font-size: 16px;
  854. }
  855. .type {
  856. font-size: 12px;
  857. color: #fff;
  858. padding: 3px 5px;
  859. border-radius: 50%;
  860. line-height: 16px;
  861. }
  862. .type-zhi {
  863. background: #22C572;
  864. }
  865. .type-mao {
  866. background: #3296FA;
  867. }
  868. .type-pi {
  869. background: #FD714F;
  870. }
  871. .time {
  872. font-size: 12px;
  873. color: #878C9C;
  874. }
  875. .qualityInspector {
  876. font-size: 14px;
  877. }
  878. .customerinformation {
  879. background: #F9F9FA;
  880. padding: 7px;
  881. margin: 20px 0;
  882. border-radius: 10px;
  883. color: #9698A2;
  884. }
  885. .buttons {
  886. flex-direction: row-reverse;
  887. }
  888. .button {
  889. padding: 13rpx 30rpx;
  890. border: 1px solid #CDCDCD;
  891. border-radius: 15px;
  892. margin: 0 10px;
  893. }
  894. .changewarehouse {
  895. padding: 10px 20px;
  896. }
  897. .header {
  898. background: #fff;
  899. border-radius: 0px 0px 16px 16px;
  900. }
  901. .content {
  902. background: #fff;
  903. /* height: 85.5vh; */
  904. }
  905. .footer {
  906. background: #fff;
  907. position: fixed;
  908. bottom: 0;
  909. width: 100%;
  910. padding: 20px 10px;
  911. z-index: 10;
  912. .button {
  913. background: #22C572;
  914. width: 90%;
  915. margin: 0 auto;
  916. padding: 10px;
  917. color: #fff;
  918. text-align: center;
  919. border-radius: 30px;
  920. }
  921. }
  922. .content1 {
  923. margin-top: 20rpx;
  924. padding: 20rpx 0;
  925. .row {
  926. display: flex;
  927. padding: 20rpx 30rpx;
  928. .row-item {
  929. margin-right: 20rpx;
  930. }
  931. }
  932. }
  933. .dj-customer {
  934. background: #F5F6F9;
  935. display: flex;
  936. width: 75%;
  937. justify-content: space-between;
  938. align-items: center;
  939. margin: 20rpx;
  940. border-radius: 30rpx;
  941. padding: 10rpx 20rpx;
  942. .right {
  943. display: flex;
  944. .span1{
  945. margin-right: 20rpx;
  946. }
  947. }
  948. ;
  949. }
  950. </style>