quality_testing.vue 25 KB

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