quality_testing.vue 27 KB

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