quality_testing.vue 22 KB

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