quality_testing.vue 28 KB

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