quality_testing.vue 26 KB

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