quality_testing.vue 28 KB

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