quality_testing.vue 28 KB

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