quality_testing.vue 28 KB

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