quality_testing.vue 24 KB

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