quality_testing.vue 26 KB

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