quality_testing.vue 24 KB

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