quality_testing.vue 26 KB

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