quality_testing.vue 28 KB

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