quality_testing.vue 24 KB

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