quality_testing.vue 23 KB

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