quality_testing.vue 27 KB

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