customer.vue 23 KB

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