quality_testing.vue 23 KB

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