customercar.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  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,item.carNo)">
  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. this.$api.doRequest('get', '/shippingInformation/selectShippingInformation', {
  383. warehouseName: this.warehouseName,
  384. compId: uni.getStorageSync('pcUserInfo').compId,
  385. }).then(res => {
  386. if (res.data.data) {
  387. uni.hideLoading()
  388. if (res.data.data) {
  389. let _endTime = Date.parse(new Date());
  390. let _startTime = ""
  391. for (let i = 0; i < res.data.data.length; i++) {
  392. _startTime = new Date((res.data.data[i].validityDate + ' 00:00:00')).getTime();
  393. if (_endTime - _startTime <= 0) {
  394. this.registeredCustomer.push(res.data.data[i])
  395. }
  396. // let _carList = res.data.data[i].shippingInformationList
  397. // for (let k = 0; k < _carList.length; k++) {
  398. // //判断是记录是否失效
  399. // _startTime = new Date((res.data.data[i].validityDate + ' 00:00:00')).getTime();
  400. // if (_endTime - _startTime <= 0) {
  401. // let _ecarList = _carList[k].carNo.split(',')
  402. // _carList[k].carList = _ecarList
  403. // this.registeredCustomer.push(_carList[k])
  404. // }
  405. // }
  406. }
  407. console.log(this.registeredCustomer)
  408. }
  409. }
  410. })
  411. },
  412. edit(item) {
  413. uni.navigateTo({
  414. url: '/pages/erpbusiness/edit_quality_testing?id=' + item.id + '&managementType=' + this
  415. .managementType + '&cangid=' + this.cangid
  416. })
  417. },
  418. add() {
  419. uni.navigateTo({
  420. url: '/pages/erpbusiness/add_quality_testing?managementType=' + this.managementType +
  421. '&cangid=' + this.cangid + '&warehouseCount=' + this.warehouseCount +
  422. '&commonWarehouseNo=' + this.commonWarehouseNo + '&warehouseName=' + this.warehouseName
  423. })
  424. },
  425. del(item) {
  426. this.$api.doRequest('post', '/qualityInspectionManagement/api/deleteQualityInspection', {
  427. id: item.id
  428. }).then(res => {
  429. if (res.data.code == 200) {
  430. this.$api.msg('删除成功')
  431. this.gridList = []
  432. this.getList()
  433. } else {
  434. this.$api.msg('系统异常,请联系管理员')
  435. }
  436. })
  437. },
  438. fankui() {
  439. uni.navigateTo({
  440. url: `/pages/user/fankui`
  441. })
  442. },
  443. zhibo() {
  444. uni.navigateTo({
  445. url: `/pageB/video/broadcast`
  446. })
  447. },
  448. look() {
  449. uni.navigateTo({
  450. url: `/pageB/video/look`
  451. })
  452. },
  453. contactUs() {
  454. const that = this
  455. uni.makePhoneCall({
  456. // 手机号
  457. phoneNumber: '18241771147',
  458. // 成功回调
  459. success: (res) => {},
  460. // 失败回调
  461. fail: (res) => {}
  462. });
  463. },
  464. loadData() {
  465. // const that = this
  466. // if(uni.getStorageSync("PageCur")){
  467. // that.PageCur = uni.getStorageSync("PageCur");
  468. // }
  469. // that.userInfoTmp = uni.getStorageSync("userInfo")
  470. // uni.showLoading({
  471. // title: '正在加载',
  472. // mask:true
  473. // })
  474. // that.$api.request('integral', 'getIndexData', failres => {
  475. // that.$api.msg(failres.errmsg)
  476. // uni.hideLoading()
  477. // }).then(res => {
  478. // let data = res.data
  479. // uni.setStorageSync("message", data.message);
  480. // uni.setStorageSync("task", data.task);
  481. // uni.setStorageSync("contract", data.contract);
  482. // uni.setStorageSync('showTran', data.showTran);
  483. // that.showTran = data.showTran
  484. // that.gridList[4].tips = data.task
  485. // that.gridList[2].tips = data.contract
  486. // that.companyId = data.companyId
  487. // uni.hideLoading()
  488. // })
  489. },
  490. confirm() {
  491. const that = this
  492. if (!that.inputContent) {
  493. that.$api.msg('输入不能为空')
  494. return
  495. }
  496. let obj = {}
  497. obj[that.feild] = that.inputContent
  498. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  499. that.userInfo.nickname = that.inputContent
  500. that.inputContent = ''
  501. that.$store.commit('login', that.userInfo)
  502. })
  503. },
  504. cancel() {
  505. this.inputShow = false
  506. this.inputStatus = 'none'
  507. this.genderShow = false
  508. },
  509. myAccount() {
  510. uni.navigateTo({
  511. url: `/pageA/pages/contract`
  512. })
  513. },
  514. /**
  515. * 统一跳转接口,拦截未登录路由
  516. * navigator标签现在默认没有转场动画,所以用view
  517. */
  518. navTo(url) {
  519. if (!this.hasLogin) {
  520. url = '/pages/public/login';
  521. }
  522. uni.navigateTo({
  523. url
  524. })
  525. },
  526. mycarClick(carNo) {
  527. this.modalName = null
  528. uni.navigateTo({
  529. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  530. })
  531. },
  532. scanCode() {
  533. uni.scanCode({
  534. success: function(res) {
  535. uni.navigateTo({
  536. url: res.result
  537. })
  538. }
  539. })
  540. },
  541. hideModal(e) {
  542. this.modalName = null
  543. },
  544. }
  545. }
  546. </script>
  547. <style lang='scss' scoped>
  548. page {
  549. background: #F5F6FA;
  550. }
  551. .container {
  552. padding-top: 85px;
  553. padding-top: 35px;
  554. background-color: #F5F6FA;
  555. position: relative;
  556. width: 100vw;
  557. height: 100vh;
  558. overflow: hidden;
  559. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  560. background-size: 100% 100%;
  561. margin: 0 auto;
  562. }
  563. .cu-tag.badge {
  564. right: 26rpx;
  565. }
  566. .path {
  567. color: #007aff;
  568. display: inline-block;
  569. text-align: center;
  570. }
  571. .icon {
  572. margin-right: 10rpx;
  573. }
  574. .portrait-box {
  575. margin-top: 20rpx;
  576. }
  577. .qr-wrap {
  578. margin-top: 20upx;
  579. color: #fff;
  580. font-size: 32rpx;
  581. }
  582. @keyframes move_wave {
  583. 0% {
  584. transform: translateX(0) translateZ(0) scaleY(1)
  585. }
  586. 50% {
  587. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  588. }
  589. 100% {
  590. transform: translateX(-50%) translateZ(0) scaleY(1)
  591. }
  592. }
  593. .bg {
  594. position: relative;
  595. height: 300rpx;
  596. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  597. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  598. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  599. }
  600. .bg_ware {
  601. position: absolute;
  602. left: 0;
  603. bottom: -2rpx;
  604. width: 100%;
  605. mix-blend-mode: screen;
  606. height: 224rpx;
  607. }
  608. %flex-center {
  609. display: flex;
  610. flex-direction: column;
  611. justify-content: center;
  612. align-items: center;
  613. }
  614. %section {
  615. display: flex;
  616. justify-content: space-around;
  617. align-content: center;
  618. background: #fff;
  619. border-radius: 10upx;
  620. }
  621. .cuIcon {
  622. position: absolute;
  623. right: 80px;
  624. }
  625. .grid-item-box {
  626. flex: 1;
  627. /* position: relative;
  628. */
  629. /* #ifndef APP-NVUE */
  630. display: flex;
  631. /* #endif */
  632. flex-direction: column;
  633. align-items: center;
  634. justify-content: center;
  635. padding: 15px 0;
  636. }
  637. .image {
  638. width: 80rpx;
  639. height: 80rpx;
  640. }
  641. .text {
  642. font-size: 26rpx;
  643. margin-top: 10rpx;
  644. }
  645. .user-section {
  646. height: 520upx;
  647. padding: 100upx 30upx 0;
  648. position: relative;
  649. .bg {
  650. position: absolute;
  651. left: 0;
  652. top: 0;
  653. width: 100%;
  654. height: 100%;
  655. filter: blur(1px);
  656. box-shadow: 0px 1px 8px #ccc;
  657. /* background:linear-gradient(#0eb0c9,#126bae); */
  658. /* opacity: .7; */
  659. }
  660. }
  661. .cover-container {
  662. padding: 1px 10px;
  663. padding-bottom: 200upx;
  664. /* background-color: #F5F6FA; */
  665. /* border-radius: 20px; */
  666. margin-top: 60upx;
  667. .arc {
  668. position: absolute;
  669. left: 0;
  670. top: -34upx;
  671. width: 100%;
  672. height: 36upx;
  673. }
  674. }
  675. .tj-sction {
  676. @extend %section;
  677. .tj-item {
  678. @extend %flex-center;
  679. flex-direction: column;
  680. height: 140upx;
  681. font-size: $font-sm;
  682. color: #75787d;
  683. }
  684. .num {
  685. font-size: $font-lg;
  686. color: $font-color-dark;
  687. margin-bottom: 8upx;
  688. }
  689. }
  690. .order-section {
  691. @extend %section;
  692. padding: 28upx 0;
  693. margin-top: 20upx;
  694. .order-item {
  695. @extend %flex-center;
  696. width: 120upx;
  697. height: 120upx;
  698. border-radius: 10upx;
  699. font-size: $font-sm;
  700. color: $font-color-dark;
  701. }
  702. .yticon {
  703. font-size: 48upx;
  704. margin-bottom: 18upx;
  705. color: #fa436a;
  706. }
  707. .icon-shouhoutuikuan {
  708. font-size: 44upx;
  709. }
  710. }
  711. .history-section {
  712. padding: 30upx 0 0;
  713. margin-top: 20upx;
  714. background: #fff;
  715. border-radius: 10upx;
  716. .sec-header {
  717. display: flex;
  718. align-items: center;
  719. font-size: $font-base;
  720. color: $font-color-dark;
  721. line-height: 40upx;
  722. margin-left: 30upx;
  723. .yticon {
  724. font-size: 44upx;
  725. color: #5eba8f;
  726. margin-right: 16upx;
  727. line-height: 40upx;
  728. }
  729. }
  730. .h-list {
  731. white-space: nowrap;
  732. padding: 30upx 30upx 0;
  733. image {
  734. display: inline-block;
  735. width: 160upx;
  736. height: 160upx;
  737. margin-right: 20upx;
  738. border-radius: 10upx;
  739. }
  740. }
  741. }
  742. .search-form {
  743. background: #F5F6F9;
  744. }
  745. .search-box {
  746. width: 100%;
  747. background-color: rgb(242, 242, 242);
  748. padding: 15upx 2.5%;
  749. display: flex;
  750. justify-content: space-between;
  751. }
  752. .search-box .mSearch-input-box {
  753. width: 100%;
  754. }
  755. .search-box .input-box {
  756. width: 85%;
  757. flex-shrink: 1;
  758. display: flex;
  759. justify-content: center;
  760. align-items: center;
  761. }
  762. .search-box .search-btn {
  763. width: 15%;
  764. margin: 0 0 0 2%;
  765. display: flex;
  766. justify-content: center;
  767. align-items: center;
  768. flex-shrink: 0;
  769. font-size: 28upx;
  770. color: #fff;
  771. background: linear-gradient(to right, #ff9801, #ff570a);
  772. border-radius: 60upx;
  773. }
  774. .search-box .input-box>input {
  775. width: 100%;
  776. height: 60upx;
  777. font-size: 32upx;
  778. border: 0;
  779. border-radius: 60upx;
  780. -webkit-appearance: none;
  781. -moz-appearance: none;
  782. appearance: none;
  783. padding: 0 3%;
  784. margin: 0;
  785. background-color: #ffffff;
  786. }
  787. .placeholder-class {
  788. color: #9e9e9e;
  789. }
  790. .search-keyword {
  791. width: 100%;
  792. background-color: rgb(242, 242, 242);
  793. }
  794. .grid {
  795. display: flex;
  796. align-items: center;
  797. flex-wrap: wrap;
  798. /* border-top: 2upx solid rgba(172,172,172,.2); */
  799. .grid-item-3 {
  800. box-sizing: border-box;
  801. width: calc(100% / 3);
  802. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  803. border-right: 2upx solid rgba(172, 172, 172, .2);
  804. text-align: center;
  805. padding: 40upx 0;
  806. position: relative;
  807. /* view{
  808. font-size: $font-sm;
  809. margin-top: 16upx;
  810. color: $font-color-dark;
  811. } */
  812. .grid_icon {
  813. font-size: 48upx;
  814. margin-bottom: 18upx;
  815. color: #fa436a;
  816. }
  817. .tip_text {
  818. display: block;
  819. padding: 4upx 8upx;
  820. text-align: center;
  821. border-radius: 36upx;
  822. font-size: 24upx;
  823. background-color: #fa436a;
  824. color: rgba(255, 255, 255, 1);
  825. position: absolute;
  826. right: 6upx;
  827. top: 6upx;
  828. }
  829. }
  830. .grid-item-3:nth-child(3n + 3),
  831. .grid-item-4:nth-child(4n + 4) {
  832. border-right: none;
  833. }
  834. }
  835. .headPortrait {
  836. width: 75px;
  837. height: 75px;
  838. border-radius: 40px;
  839. border: 2px solid #ffffff;
  840. }
  841. .information {
  842. font-size: 15px;
  843. font-weight: 600;
  844. height: 36px;
  845. }
  846. .cu-list>.cu-item:after {
  847. border: none;
  848. }
  849. .sign {
  850. width: 40px;
  851. height: 40px;
  852. top: 4px;
  853. margin-right: 6px;
  854. }
  855. .indexUp {
  856. padding: 0 20px;
  857. align-items: center;
  858. }
  859. .wrap {
  860. background: #F5F6F9;
  861. margin: 5px 10px;
  862. border-radius: 20px;
  863. width: 92%;
  864. display: inline-block;
  865. padding: 10px;
  866. }
  867. .searchwrap {
  868. border-top: 1px solid #eee;
  869. padding: 10px 20px;
  870. }
  871. .searchwrap:last-child {
  872. border-bottom: 1px solid #eee;
  873. }
  874. .qualityNo {
  875. font-size: 16px;
  876. }
  877. .type {
  878. font-size: 12px;
  879. color: #fff;
  880. padding: 3px 5px;
  881. border-radius: 50%;
  882. line-height: 16px;
  883. }
  884. .type-zhi {
  885. background: #22C572;
  886. }
  887. .type-mao {
  888. background: #3296FA;
  889. }
  890. .type-pi {
  891. background: #FD714F;
  892. }
  893. .time {
  894. font-size: 12px;
  895. color: #878C9C;
  896. }
  897. .qualityInspector {
  898. font-size: 14px;
  899. }
  900. .customerinformation {
  901. background: #F9F9FA;
  902. padding: 7px;
  903. margin: 20px 0;
  904. border-radius: 10px;
  905. color: #9698A2;
  906. }
  907. .buttons {
  908. flex-direction: row-reverse;
  909. }
  910. .button {
  911. padding: 13rpx 30rpx;
  912. border: 1px solid #CDCDCD;
  913. border-radius: 15px;
  914. margin: 0 10px;
  915. }
  916. .changewarehouse {
  917. padding: 10px 20px;
  918. }
  919. .header {
  920. background: #fff;
  921. border-radius: 0px 0px 16px 16px;
  922. }
  923. .content {
  924. background: #fff;
  925. /* height: 85.5vh; */
  926. }
  927. .footer {
  928. background: #fff;
  929. position: fixed;
  930. bottom: 0;
  931. width: 100%;
  932. padding: 20px 10px;
  933. z-index: 10;
  934. .button {
  935. background: #22C572;
  936. width: 90%;
  937. margin: 0 auto;
  938. padding: 10px;
  939. color: #fff;
  940. text-align: center;
  941. border-radius: 30px;
  942. }
  943. }
  944. .content1 {
  945. margin-top: 20rpx;
  946. padding: 20rpx 0;
  947. .row {
  948. display: flex;
  949. padding: 20rpx 30rpx;
  950. .row-item {
  951. margin-right: 20rpx;
  952. }
  953. }
  954. }
  955. .dj-customer {
  956. background: #F5F6F9;
  957. display: flex;
  958. width: 75%;
  959. justify-content: space-between;
  960. align-items: center;
  961. margin: 20rpx;
  962. border-radius: 30rpx;
  963. padding: 10rpx 20rpx;
  964. .right {
  965. display: flex;
  966. .span1 {
  967. margin-right: 20rpx;
  968. }
  969. }
  970. ;
  971. }
  972. </style>