quality_testing.vue 26 KB

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