quality_testing.vue 22 KB

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