customer.vue 24 KB

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