customercar.vue 24 KB

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