quality_testing.vue 21 KB

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