quality_testing.vue 28 KB

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