outbound_quality_testing.vue 25 KB

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