quality_testing.vue 21 KB

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