quality_testing.vue 26 KB

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