quality_testing.vue 27 KB

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