deliveryFrom.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997
  1. <template>
  2. <view >
  3. <u-navbar title="申请归还">
  4. <view class="details" slot="bottom">
  5. <view class="list">
  6. <!-- <view class="list-head" style="margin-bottom: 3px;">
  7. <view class="title">
  8. 出库设备清单
  9. </view>
  10. </view> -->
  11. <view class="list-head">
  12. <view class="title">
  13. 所属项目部<span style="color: red;">*</span>
  14. </view>
  15. <view class="amountView" >
  16. <!-- <view class="amount" v-if="approveList.length" >
  17. <span @click="show4=true"
  18. style="float: right; color: #45BA45; font-size: 12px;font-weight: normal;">
  19. <u-icon name="file-text"></u-icon>引用</span>
  20. </view> -->
  21. <view class="amount" >
  22. <!-- <u-input style="border-bottom: 1px solid;"
  23. v-model="form.projectName" placeholder="请输入所属项目" type="text" />
  24. -->
  25. <u-input v-model="departmentId" @click="show3=true,showText='departmentId'" @clear="showText='departmentId',change('')" placeholder="请选择所属项目部" type="select" />
  26. </view>
  27. </view>
  28. </view>
  29. <view class="list-head" >
  30. <view class="title">
  31. 选择设备
  32. </view>
  33. <view class="amountView" style="margin-top: 5px;" >
  34. <view class="amount" >
  35. <span @click="show5Btn"
  36. style="float: right; color: #45BA45; font-size: 12px;font-weight: normal;">
  37. <u-icon name="file-text"></u-icon>添加设备</span>
  38. </view>
  39. <view class="amount" style="margin: 0 20px;" >
  40. 或者
  41. </view>
  42. <view class="amount" @click="gotoscan('')" style=" color: #0051ff;font-size: 12px;">
  43. <u-icon name="scan" color="#0051ff" ></u-icon>扫码识别
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 出库单详情 -->
  49. </view>
  50. </u-navbar>
  51. <u-popup v-model="showpopup" class="scanpopo" mode="bottom"
  52. border-radius="14"
  53. :closeable="true" >
  54. <view class="scantitle">连续扫码</view>
  55. <view class="scanlist">
  56. <view class="scan-list-infos" :style="nowscan.healthStatus&&nowscan.healthStatus!=1?'background-color:#FFC107':''">
  57. <view class="scan-infos-head" @click="gotoInfo(nowscan.id)">
  58. <view class="name">
  59. {{nowscan.title?nowscan.title:'扫码后出当前结果'}}
  60. </view>
  61. <view class="name">
  62. 编号:{{showCode(nowscan)}}
  63. <span class="name" v-show="nowscan&&nowscan.id" style="color:blue;">
  64. 点击查看
  65. </span>
  66. </view>
  67. </view>
  68. <view class="scan-infos-head " style="margin-bottom: 12rpx;">
  69. <view class="name" v-html="descriptionKey(nowscan)">
  70. </view>
  71. </view>
  72. <view class="scan-infos">
  73. <!-- <view class="infos-2">
  74. <view class="infos-item">
  75. <view class="item-name">
  76. 规格:
  77. </view>
  78. <view class="item-value">
  79. {{nowscan.specifications}}
  80. </view>
  81. </view>
  82. <view class="infos-item">
  83. <view class="item-name">
  84. 型号:
  85. </view>
  86. <view class="item-value">
  87. {{nowscan.model}}
  88. </view>
  89. </view>
  90. </view> -->
  91. </view>
  92. </view>
  93. </view>
  94. <!-- #ifdef MP-WEIXIN -->
  95. <camera mode="scanCode" resolution='medium'
  96. @scancode="takeCode" v-if="showpopup"
  97. device-position="back" flash="off" @error="error"
  98. style="width: 100%; height: 300px;"></camera>
  99. <!-- #endif -->
  100. </u-popup>
  101. <!-- 出库设备清单 -->
  102. <view class="list container" style="padding-bottom: 60px;" v-show="scanList.length" >
  103. <view class="list-view">
  104. <!-- 清单信息 -->
  105. <view class="list-infos" v-for="(item,i) in scanList" :key="i" >
  106. <view class="infos-head">
  107. <view class="name">
  108. {{item.title}}
  109. </view>
  110. <view class="name">
  111. 编号:{{ showCode(item)}}
  112. </view>
  113. <view class="state" @click="delOutListMethod(i)">
  114. <u-icon name="trash-fill" color="#777777" ></u-icon>删除
  115. </view>
  116. </view>
  117. <view class="infos">
  118. <view class="infos-item">
  119. <view class="item-name">
  120. 规格:
  121. </view>
  122. <view class="item-value">
  123. {{item.specifications}}
  124. </view>
  125. </view>
  126. <view class="infos-item">
  127. <view class="item-name">
  128. 型号:
  129. </view>
  130. <view class="item-value">
  131. {{item.model}}
  132. </view>
  133. </view>
  134. </view>
  135. <view class="receive-options">
  136. <view class="title">
  137. 归还备注
  138. </view>
  139. <view class="receive-radio">
  140. <u-radio-group v-model="item.reStatus" >
  141. <u-radio v-for="(radio, index2) in radiolist" :key="index2"
  142. :name="radio.value" :disabled="radio.disabled">
  143. {{radio.name}}
  144. </u-radio>
  145. </u-radio-group>
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. <u-divider :isnone="scanList.length==0" v-show="scanList.length==0"
  152. nonetext="选择设备归还" nonetop="150" border-color="#CFD2D5">已经到底了</u-divider>
  153. <u-select v-model="show4" label-name="projectName" value-name="id"
  154. :list="approveList" @confirm="confirm4" ></u-select>
  155. <u-popup v-model="show5" mode="bottom"
  156. border-radius="14"
  157. :closeable="true" >
  158. <view class="showpopup">添加设备</view>
  159. <view class="search" >
  160. 只查自己借出设备<u-switch v-model="queryStatus"
  161. :active-value="0" :inactive-value="1"
  162. @change="switchchange"></u-switch>
  163. </view>
  164. <!-- 搜索 -->
  165. <view class="search" v-if="false" >
  166. <view class="search-box">
  167. <u-search placeholder="搜索设备名称或型号"
  168. @custom="ckQueryContent"
  169. @search="ckQueryContent"
  170. v-model="queryContent" :show-action="false">
  171. </u-search>
  172. <view class="search-btn" @click="ckQueryContent" >
  173. <view class="text">
  174. 搜索
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. <view @scrolltolower="refscrolltolower()">
  180. <equipmentRetrieval :departmentId="form.departmentId"
  181. :queryStatus="queryStatus"
  182. @ckItem="ckItem" :list="list" :scanList="scanList"
  183. ref="equipmentRetrievalRef" :iscomponents="1" :isreturn="1" ></equipmentRetrieval>
  184. </view>
  185. </u-popup>
  186. <u-select v-model="show3" :list="projectList" @confirm="confirm" ></u-select>
  187. <!-- 确认出库 -->
  188. <view class="bottom" >
  189. <u-button type="primary" @click="gotoOut()" >确认归还</u-button>
  190. </view>
  191. </view>
  192. </template>
  193. <script>
  194. import * as API from '@/apis/pagejs/projectDepartment.js'
  195. import equipmentRetrieval from "@/components/equipmentRetrieval"
  196. export default {
  197. data() {
  198. return {
  199. scanFunctionIsUseable:true,
  200. nowscan:{
  201. "title": "",
  202. "specifications": "",
  203. "experimentLastTime":"",
  204. "manufactor": "",
  205. "unit": "",
  206. "model": "",
  207. "code": "",
  208. },
  209. address:"",
  210. showpopup:false,
  211. deviceposition:"back",
  212. queryStatus:true,
  213. form:{
  214. projectName:"",
  215. addressId:"",
  216. recordId:"",
  217. deviceIds:"",
  218. departmentId:"",
  219. },
  220. show3:false,//审批人 步骤1
  221. list:[],
  222. list2:[],
  223. showText:"",
  224. departmentId:"",
  225. queryContent:'',
  226. scanList:[],
  227. approveList:[],
  228. show4:false,
  229. show5:false,
  230. projectList:[
  231. ],
  232. radiolist: [{
  233. name: '正常',
  234. value: "0",
  235. disabled: false
  236. },
  237. {
  238. name: '损坏,需要维修',
  239. value: "1",
  240. disabled: false
  241. },
  242. ],
  243. }
  244. },
  245. onReady(){
  246. //this.getApproveList();
  247. this.createOutRecord();
  248. },
  249. components:{
  250. equipmentRetrieval
  251. },
  252. methods: {
  253. change(e){
  254. if(e==''){
  255. this.form[this.showText]='';
  256. this[this.showText]=''
  257. }else{
  258. this.form[this.showText]=e.result;
  259. this[this.showText]=e.year+"年"+e.month+"月"+e.day+"日"
  260. }
  261. },
  262. switchchange(e){
  263. console.log(e)
  264. this.$refs.equipmentRetrievalRef.init()
  265. },
  266. show5Btn(){
  267. if(this.form.departmentId){
  268. this.show5=true
  269. }else{
  270. uni.showToast({
  271. title:"请先选择所属项目部"
  272. })
  273. }
  274. },
  275. confirm(e) {
  276. if(e==''){
  277. this.form[this.showText]='';
  278. this[this.showText]=''
  279. }else{
  280. this.form[this.showText]=e[0].value;
  281. this[this.showText]=e[0].label
  282. }
  283. },
  284. createOutRecord(){
  285. uni.showLoading({
  286. title: "加载中",
  287. mask: true,
  288. })
  289. API.createOutRecord({
  290. }).then((res) => {
  291. uni.hideLoading();
  292. if(res.data.departmentList){
  293. this.projectList=res.data.departmentList.map(item=>{
  294. return {
  295. value: item.id,
  296. label: item.name
  297. }
  298. })
  299. if(this.projectList.length==1){
  300. this.form.departmentId=this.projectList[0].value;
  301. this.departmentId=this.projectList[0].label
  302. }
  303. }
  304. }).catch(error => {
  305. uni.showToast({
  306. title: error,
  307. icon: "none"
  308. })
  309. })
  310. },
  311. ckItem(item){
  312. if(item.code){
  313. var c = this.scanList.findIndex(op => {
  314. return op.code == item.code
  315. })
  316. if (c==-1) {
  317. this.getscan(item.code,true)
  318. }else{
  319. this.delOutListMethod(c)
  320. }
  321. }else{
  322. this.list2.push(item)
  323. }
  324. },
  325. refscrolltolower(){
  326. this.$refs.equipmentRetrievalRef.myLoadmoreonReachBottom()
  327. },
  328. ckQueryContent(){
  329. this.$refs.equipmentRetrievalRef.queryContent=this.queryContent
  330. this.$refs.equipmentRetrievalRef.getList()
  331. },
  332. confirm4(e) {
  333. this.form.projectName=e[0].label;
  334. },
  335. getApproveList(){
  336. uni.showLoading({
  337. title: "加载中",
  338. mask: true,
  339. })
  340. API.outApplyList({
  341. pageIndex: 1,
  342. pageSize: 20,
  343. recordsTotal: 1,
  344. status: "1",
  345. }).then((res) => {
  346. var data = res.data.data;
  347. var sz=[];
  348. this.approveList=[]
  349. data.forEach(item=>{
  350. if(sz.indexOf(item.projectName)==-1){
  351. sz.push(item.projectName)
  352. this.approveList.push(item)
  353. }
  354. })
  355. //this.approveList = res.data.data;
  356. //console.log(this.approveList)
  357. uni.hideLoading();
  358. }).catch(error => {
  359. uni.showToast({
  360. title: error,
  361. icon: "none"
  362. })
  363. })
  364. },
  365. delOutListMethod(c) {
  366. if (c > -1) {
  367. this.scanList.splice(c, 1)
  368. uni.showToast({
  369. title: "删除成功",
  370. icon: "none"
  371. })
  372. }
  373. },
  374. gotoOut() {
  375. // if(!this.form.projectName){
  376. // uni.showToast({
  377. // title: "请输入项目名称",
  378. // icon: "none"
  379. // })
  380. // return
  381. // }
  382. if(this.scanList.length==0){
  383. uni.showToast({
  384. title: "请扫码添加出库设备",
  385. icon: "none"
  386. })
  387. return
  388. }
  389. var _this=this;
  390. uni.showModal({
  391. title: '提示',
  392. content:"确认清单无误",
  393. //content: '这是一个模态弹窗',
  394. success: function(res) {
  395. if (res.confirm) {
  396. _this.gotoOutMethod(res.content)
  397. } else if (res.cancel) {
  398. console.log('用户点击取消');
  399. }
  400. }
  401. });
  402. },
  403. gotoOutMethod() {
  404. //recordData
  405. uni.showLoading({
  406. title: "加载中",
  407. mask: true,
  408. })
  409. var list=this.scanList.map(item=>{
  410. return item.id
  411. });
  412. var listStatus=this.scanList.map(item=>{
  413. return item.reStatus
  414. });
  415. this.form.deviceIds=list.join()
  416. this.form.deviceStatus=listStatus.join()
  417. this.form.projectName=this.departmentId;
  418. API.saveInRecord(this.form).then((res) => {
  419. uni.hideLoading();
  420. const eventChannel = this.getOpenerEventChannel();
  421. eventChannel.emit('refreshData');
  422. uni.hideLoading()
  423. uni.showModal({
  424. title: '提示',
  425. content: '操作成功',
  426. showCancel:false,
  427. success: function (res) {
  428. if (res.confirm) {
  429. uni.navigateBack()
  430. } else if (res.cancel) {
  431. console.log('用户点击取消');
  432. }
  433. }
  434. });
  435. }).catch(error => {
  436. uni.showToast({
  437. title: error,
  438. icon: "none"
  439. })
  440. })
  441. },
  442. getscan(val,k) {
  443. if(k){
  444. }else{
  445. this.showpopup=true;
  446. }
  447. var c = this.scanList.find(item => {
  448. return item.code == val
  449. })
  450. if (c) {
  451. return
  452. }
  453. uni.showLoading({
  454. title: "加载中",
  455. mask: true,
  456. })
  457. API.queryDeviceByCode({
  458. code: val,
  459. }).then((res) => {
  460. uni.hideLoading();
  461. if (res.data.deviceInfo) {
  462. console.log(res.data.deviceInfo)
  463. this.nowscan=res.data.deviceInfo;
  464. var c = this.scanList.find(item => {
  465. return item.id == res.data.deviceInfo.id
  466. })
  467. if (c) {
  468. uni.showToast({
  469. title: "已存在,添加失败",
  470. icon: "none"
  471. })
  472. } else {
  473. var obj=res.data.deviceInfo;
  474. obj.reStatus="0"
  475. this.scanList.push(obj)
  476. uni.showToast({
  477. title: "添加成功",
  478. icon: "none"
  479. })
  480. }
  481. } else {
  482. uni.showToast({
  483. title: "二维码无效",
  484. icon: "none"
  485. })
  486. this.nowscan={}
  487. }
  488. }).catch(error => {
  489. uni.showToast({
  490. title: error,
  491. icon: "none"
  492. })
  493. })
  494. },
  495. error(e) {
  496. console.log(e);
  497. },
  498. gotoscan(val) {
  499. // #ifdef H5
  500. this.gotoscanH5(val)
  501. // #endif
  502. // #ifdef MP-WEIXIN
  503. this.gotoscanMP(val)
  504. // #endif
  505. },
  506. takeCode(e){
  507. console.log(e);
  508. if(this.scanFunctionIsUseable) {
  509. this.scanFunctionIsUseable = false;
  510. // 对扫码结果进行处理
  511. console.log(e.detail.result);
  512. this.getscan(this.takeCodeJp(e.detail.result))
  513. // 扫码间隔两秒
  514. setTimeout(() => {
  515. this.scanFunctionIsUseable = true;
  516. }, 1000)
  517. }
  518. },
  519. gotoscanMP(val){
  520. this.showpopup=true;
  521. // const ctx = uni.createCameraContext();
  522. // ctx.takePhoto({
  523. // quality: 'high',
  524. // success: (res) => {
  525. // this.src = res.tempImagePath
  526. // }
  527. // });
  528. },
  529. gotoscanH5(val) {
  530. console.log('111')
  531. var _this = this;
  532. uni.showModal({
  533. title: '提示',
  534. editable: true,
  535. //content: '这是一个模态弹窗',
  536. success: function(res) {
  537. if (res.confirm) {
  538. _this.getscan(res.content)
  539. } else if (res.cancel) {
  540. console.log('用户点击取消');
  541. }
  542. }
  543. });
  544. },
  545. }
  546. }
  547. </script>
  548. <style scoped lang="scss">
  549. .showpopup{
  550. font-size: 36rpx;
  551. text-align: center;
  552. margin: 32rpx;
  553. }
  554. // 搜索
  555. .search {
  556. padding: 12rpx 24rpx;
  557. display: flex;flex-wrap: wrap;
  558. border-radius: 8px;
  559. overflow: hidden;
  560. .search-box {
  561. display: flex;
  562. border-radius: 8px;
  563. overflow: hidden;
  564. }
  565. /deep/.u-search {
  566. width: 630rpx;
  567. margin: auto !important;
  568. position: relative;
  569. flex: 0;
  570. margin: 0 !important;
  571. height: 64rpx !important;
  572. }
  573. /deep/.u-content {
  574. width: 430px;
  575. border-radius: 0px !important;
  576. height: 64rpx !important;
  577. }
  578. /deep/.u-icon--right {
  579. margin-right: 16rpx;
  580. }
  581. .search-btn {
  582. width: 100rpx;
  583. height: 64rpx;
  584. background-color: #f2f2f2;
  585. .text {
  586. height: 40rpx;
  587. margin: 12rpx 0;
  588. border-left: 1px solid #999999;
  589. font-family: Microsoft Yahei;
  590. text-align: center;
  591. color: rgba(16, 98, 213, 1);
  592. font-size: 28rpx;
  593. }
  594. }
  595. }
  596. .scantitle{
  597. text-align: center;
  598. font-size: 44rpx;
  599. padding-top: 20px;
  600. }
  601. page {
  602. padding-bottom: 200rpx;
  603. }
  604. // 接收选项
  605. .receive-options {
  606. display: flex;flex-wrap: wrap;
  607. align-items: center;
  608. padding: 24rpx 0;
  609. .title {
  610. color: #333333;
  611. margin-right: 24rpx;
  612. font-weight: bold;
  613. }
  614. .receive-radio {
  615. flex: 1;
  616. /deep/.u-radio-group {
  617. width: 100%;
  618. }
  619. /deep/.u-radio {
  620. margin-right: 48rpx;
  621. }
  622. }
  623. }
  624. // 出库单状态
  625. .head {
  626. background-color: #fff;
  627. padding: 24rpx 32rpx;
  628. display: flex;flex-wrap: wrap;
  629. align-items: center;
  630. color: #101010;
  631. font-size: 32rpx;
  632. .photo {
  633. width: 84rpx;
  634. height: 84rpx;
  635. border-radius: 100rpx;
  636. img {
  637. width: 100%;
  638. height: 100%;
  639. overflow: hidden;
  640. }
  641. }
  642. .name {
  643. color: #101010;
  644. font-size: 32rpx;
  645. margin-right: 8rpx;
  646. margin-left: 24rpx;
  647. max-width: 200rpx;
  648. overflow: hidden;
  649. text-overflow: ellipsis;
  650. white-space: nowrap
  651. }
  652. .submit {
  653. text {
  654. color: #3385FF;
  655. }
  656. }
  657. .state {
  658. line-height: 48rpx;
  659. padding: 0 24rpx;
  660. border-radius: 50px;
  661. background-color: rgba(255, 255, 255, 1);
  662. color: rgba(51, 133, 255, 1);
  663. font-size: 12px;
  664. text-align: center;
  665. font-family: Arial;
  666. border: 1px solid rgba(51, 133, 255, 1);
  667. margin-left: auto;
  668. }
  669. }
  670. .container{
  671. margin-top: 80px;
  672. }
  673. // 出库单详情
  674. .details {
  675. background-color: #fff;
  676. margin-top: 24rpx;
  677. padding: 16rpx 32rpx;
  678. .item {
  679. display: flex;flex-wrap: wrap;
  680. justify-content: space-between;
  681. padding: 12rpx 0;
  682. //border-bottom: 1px solid rgba(244, 244, 244, 1);
  683. .name {
  684. line-height: 30px;
  685. color: #333333;
  686. font-size: 32rpx
  687. }
  688. .value {
  689. color: #101010;
  690. }
  691. }
  692. }
  693. // 出库单列表
  694. .list {
  695. //margin-top: 24rpx;
  696. .list-view{
  697. padding: 16rpx 32rpx;
  698. background-color: #fff;
  699. }
  700. .list-head {
  701. display: flex;flex-wrap: wrap;
  702. justify-content: space-between;
  703. align-items: center;
  704. .title {
  705. padding: 8rpx 0;
  706. color: #333333;
  707. font-size: 32rpx
  708. }
  709. .amountView{
  710. display: flex;flex-wrap: wrap;
  711. justify-content: space-between;
  712. align-items: center;
  713. .amount {
  714. color: #777777;
  715. font-size: 24rpx;
  716. text {
  717. color: #3385FF;
  718. }
  719. /deep/.u-icon--right {
  720. margin-left: 8rpx;
  721. }
  722. }
  723. }
  724. }
  725. // 清单信息
  726. .list-infos {
  727. border-radius: 8px;
  728. background-color: #F5F6F9;
  729. margin-top: 24rpx;
  730. padding: 24rpx;
  731. .infos-head {
  732. display: flex;flex-wrap: wrap;
  733. justify-content: space-between;
  734. align-items: center;
  735. margin-bottom: 24rpx;
  736. .name {
  737. color: rgba(51, 51, 51, 1);
  738. font-size: 32rpx;
  739. }
  740. .state {
  741. color:#777777;
  742. }
  743. }
  744. .infos {
  745. margin-top: 16rpx;
  746. display: flex;flex-wrap: wrap;
  747. color: #777777;
  748. font-size: 24rpx;
  749. justify-content: space-around;
  750. .infos-1 {
  751. margin-right: 68rpx;
  752. }
  753. .infos-item {
  754. width: 50%;
  755. display: flex;flex-wrap: wrap;
  756. margin-bottom: 8rpx;
  757. .item-value{
  758. max-width: 200rpx;
  759. }
  760. }
  761. }
  762. }
  763. }
  764. // 流程
  765. .process {
  766. background-color: #fff;
  767. margin-top: 24rpx;
  768. padding: 24rpx 32rpx;
  769. .title {
  770. color: rgba(51, 51, 51, 1);
  771. font-size: 32rpx;
  772. }
  773. .u-time-axis-item{
  774. //margin-bottom: 76rpx;
  775. }
  776. .u-time-axis {
  777. //padding: 18rpx 40rpx;
  778. }
  779. .u-node {
  780. width: 18rpx;
  781. height: 18rpx;
  782. border-radius: 100rpx !important;
  783. display: flex;flex-wrap: wrap;
  784. justify-content: center;
  785. align-items: center;
  786. background: #d0d0d0;
  787. }
  788. .u-order{
  789. margin-bottom: 32rpx;
  790. }
  791. .u-order-title {
  792. color: #333333;
  793. font-weight: bold;
  794. font-size: 32rpx;
  795. }
  796. .u-order-desc {
  797. margin-bottom: 16rpx;
  798. display: flex;flex-wrap: wrap;
  799. justify-content: space-between;
  800. align-items: center;
  801. .level {
  802. color: #333333;
  803. font-size: 32rpx;
  804. font-weight: bold;
  805. }
  806. .date {
  807. color: rgba(119, 119, 119, 1);
  808. }
  809. .state {
  810. color: rgba(255, 121, 0, 1);
  811. }
  812. }
  813. .u-order-time {
  814. width: 90rpx;
  815. color: #777777;
  816. font-size: 28rpx;
  817. margin-top: 16rpx;
  818. display: flex;flex-wrap: wrap;
  819. flex-direction: column;
  820. align-items: center;
  821. .photo {
  822. width: 56rpx;
  823. height: 56rpx;
  824. border-radius: 100px;
  825. margin-bottom: 4rpx;
  826. img {
  827. width: 100%;
  828. height: 100%;
  829. overflow: hidden;
  830. position: relative;
  831. }
  832. }
  833. .confirm {
  834. position: absolute;
  835. top: 46rpx;
  836. left: 56rpx;
  837. }
  838. .name {
  839. color: rgba(51, 51, 51, 1);
  840. font-size: 24rpx;
  841. }
  842. }
  843. }
  844. // .u-time-axis{
  845. // .u-time-axis-item:last-of-type{
  846. // margin-bottom: 0;
  847. // }
  848. // }
  849. // 确认出库
  850. .bottom{
  851. background-color: #fff;
  852. margin-top: 44rpx;
  853. padding: 16rpx 32rpx;
  854. z-index: 999;
  855. position: fixed;
  856. left: 0;
  857. right: 0;
  858. bottom: 0;
  859. uni-button{
  860. border-radius: 8px;
  861. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  862. color: rgba(255, 255, 255, 1);
  863. font-size: 32rpx;
  864. line-height: 88rpx;
  865. }
  866. }
  867. </style>