quality_testing.vue 24 KB

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