deliveryFrom.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
  1. <template>
  2. <view >
  3. <u-navbar title="出库申请"></u-navbar>
  4. <!-- 出库单状态 -->
  5. <view class="container">
  6. <!-- 出库单详情 -->
  7. <view class="details">
  8. <p class="itemp">项目信息
  9. <span @click="show4=true" v-if="approveList.length"
  10. style="float: right; color: #45BA45; font-size: 12px;font-weight: normal;">
  11. <u-icon name="file-text"></u-icon>引用历史项目</span></p>
  12. <view class="item">
  13. <view class="name">
  14. 所属项目<span style="color: red;">*</span>
  15. </view>
  16. <view class="value">
  17. <u-input v-model="form.projectName" placeholder="请输入所属项目" type="text" />
  18. </view>
  19. </view>
  20. <view class="item">
  21. <view class="name">
  22. 需求时间
  23. </view>
  24. <view class="value">
  25. <u-input v-model="needTime" @click="show=true,showText='needTime'" @clear="showText='needTime',change('')" placeholder="请输入需求时间" type="select" />
  26. </view>
  27. </view>
  28. <view class="item">
  29. <view class="name">
  30. 使用周期至<span style="color: red;">*</span>
  31. </view>
  32. <view class="value">
  33. <u-input v-model="endTime" @click="show=true,showText='endTime'" @clear="showText='endTime',change('')" placeholder="请输入使用周期" type="select" />
  34. </view>
  35. </view>
  36. <view class="item" >
  37. <view class="name">
  38. 所属项目部<span style="color: red;">*</span>
  39. </view>
  40. <view class="value">
  41. <u-input v-model="xmbId" @click="show3=true,showText='xmbId'" @clear="showText='xmbId',change('')" placeholder="请选择所属项目部" type="select" />
  42. </view>
  43. </view>
  44. <p class="itemp">选择审批人</p>
  45. <view class="item" v-for="(item,i) in approveProcessList" :key="i" >
  46. <view class="name">
  47. {{item.name}}<span style="color: red;">*</span>
  48. </view>
  49. <view class="value">
  50. <u-input v-model="item.approveName" @click="show2=true,showIndex=i"
  51. @clear="showIndex=i,change2('')"
  52. :placeholder="'请选择'+item.name+'审批人'" type="select" />
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 出库设备清单 -->
  57. <view class="list">
  58. <view class="list-head">
  59. <view class="title">
  60. 出库设备清单
  61. </view>
  62. <view class="amount add" @click="showpopupBtn()" >
  63. <u-icon name="plus-circle"></u-icon>添加设备
  64. </view>
  65. </view>
  66. <!-- 清单信息 -->
  67. <view class="list-infos" v-for="(item,index) in list" :key="index" >
  68. <view class="infos-head">
  69. <view class="name">
  70. {{item.obj.title}}
  71. </view>
  72. <view class="state" @click="del(index)">
  73. <u-icon name="minus-circle" ></u-icon>删除
  74. </view>
  75. </view>
  76. <view class="infos">
  77. <view class="infos-1">
  78. <view class="infos-item">
  79. <view class="item-name">
  80. 库存:
  81. </view>
  82. <view class="item-value">
  83. {{item.obj.inventory}}
  84. </view>
  85. </view>
  86. <view class="infos-item">
  87. <view class="item-name">
  88. 单位:
  89. </view>
  90. <view class="item-value">
  91. {{item.obj.unit}}
  92. </view>
  93. </view>
  94. </view>
  95. <view class="infos-2">
  96. <view class="infos-item">
  97. <view class="item-name">
  98. 规格:
  99. </view>
  100. <view class="item-value">
  101. {{item.obj.specifications}}
  102. </view>
  103. </view>
  104. <view class="infos-item">
  105. <view class="item-name">
  106. 型号:
  107. </view>
  108. <view class="item-value">
  109. {{item.obj.model}}
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="infos" v-if="false">
  115. <view class="infos-1">
  116. <view class="infos-item">
  117. <view class="item-name">
  118. 型号:
  119. </view>
  120. <view class="item-value">
  121. {{item.obj.model}}
  122. </view>
  123. </view>
  124. <view class="infos-item">
  125. <view class="item-name">
  126. 库存:
  127. </view>
  128. <view class="item-value">
  129. {{item.obj.count}}
  130. </view>
  131. </view>
  132. </view>
  133. <view class="infos-2" v-if="false">
  134. <view class="infos-item">
  135. <view class="item-name">
  136. 单位:
  137. </view>
  138. <view class="item-value">
  139. </view>
  140. </view>
  141. <view class="infos-item">
  142. <view class="item-name">
  143. 库存:
  144. </view>
  145. <view class="item-value">
  146. 20
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. <view>
  152. 出库数量
  153. <u-number-box bg-color="#FFFFFF" :min="1"
  154. style="float: right;" v-model="item.count"></u-number-box>
  155. </view>
  156. </view>
  157. <u-divider v-show="list.length" border-color="#CFD2D5">已经到底了</u-divider>
  158. </view>
  159. </view>
  160. <ujp-calendar v-model="show" mode="date" max-date="2099-01-01" @change="change"></ujp-calendar>
  161. <u-select v-model="show3" :list="projectList" @confirm="confirm" ></u-select>
  162. <u-select v-model="show4" label-name="projectName" value-name="id"
  163. :list="approveList" @confirm="confirm4" ></u-select>
  164. <u-select v-model="show2" :list="list2" @confirm="confirm2" ></u-select>
  165. <!-- -sync -sync -->
  166. <u-popup v-model="showpopup" mode="bottom"
  167. border-radius="14"
  168. :closeable="true" >
  169. <view class="showpopup">添加设备</view>
  170. <!-- 搜索 -->
  171. <view class="search" >
  172. <view class="search-box">
  173. <u-search placeholder="搜索设备名称或型号"
  174. @custom="ckQueryContent"
  175. @search="ckQueryContent"
  176. v-model="queryContent" :show-action="false">
  177. </u-search>
  178. <view class="search-btn" @click="ckQueryContent" >
  179. <view class="text">
  180. 搜索
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <scroll-view scroll-y="true" style="height: 800rpx;" @scrolltolower="refscrolltolower()">
  186. <equipmentRetrieval @ckItem="ckItem" :list="list"
  187. ref="equipmentRetrievalRef" :iscomponents="1"></equipmentRetrieval>
  188. </scroll-view>
  189. </u-popup>
  190. <!-- 确认出库 -->
  191. <view class="bottom" >
  192. <u-button type="primary" @click="submit">提交出库单</u-button>
  193. </view>
  194. </view>
  195. </template>
  196. <script>
  197. import equipmentRetrieval from "@/components/equipmentRetrieval"
  198. import * as API from '@/apis/pagejs/projectDepartment.js'
  199. import ujpCalendar from '@/pages/projectDepartment/components/u-calendar.vue'
  200. export default {
  201. data() {
  202. return {
  203. recordId:"",
  204. form:{
  205. recordId:"",
  206. needTime:"",
  207. endTime:"",
  208. projectName:"",
  209. xmbId:"",
  210. },
  211. show:false,
  212. xmbId:"",
  213. showText:"",
  214. showIndex:0,
  215. showpopup:false,
  216. endTime:'',
  217. needTime:'',
  218. approve1:"",
  219. approve2:"",
  220. queryContent:'',
  221. list:[],
  222. show2:false,//审批人 步骤1
  223. show3:false,//审批人 步骤1
  224. show4:false,//审批人 步骤1
  225. //list2:[],
  226. approveList:[
  227. ],
  228. approveProcessList:[],
  229. projectList:[
  230. ],
  231. }
  232. },
  233. components:{
  234. equipmentRetrieval,ujpCalendar
  235. },
  236. computed:{
  237. list2(){
  238. var list=[];
  239. if(this.approveProcessList.length){
  240. list=this.approveProcessList[this.showIndex].approveUserList.map(item=>{
  241. return {
  242. value: item.id,
  243. label: item.name
  244. }
  245. })
  246. }
  247. return list
  248. }
  249. },
  250. onReady() {
  251. this.createOutRecord();
  252. },
  253. methods:{
  254. getApproveList(){
  255. uni.showLoading({
  256. title: "加载中",
  257. mask: true,
  258. })
  259. API.outApplyList({
  260. pageIndex: 1,
  261. pageSize: 20,
  262. recordsTotal: 1,
  263. status: "1",
  264. }).then((res) => {
  265. var data = res.data.data;
  266. var sz=[];
  267. this.approveList=[]
  268. data.forEach(item=>{
  269. if(sz.indexOf(item.projectName)==-1){
  270. sz.push(item.projectName)
  271. this.approveList.push(item)
  272. }
  273. })
  274. //this.approveList = res.data.data;
  275. //console.log(this.approveList)
  276. uni.hideLoading();
  277. }).catch(error => {
  278. uni.showToast({
  279. title: error,
  280. icon: "none"
  281. })
  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.xmbId=this.projectList[0].value;
  301. this.xmbId=this.projectList[0].label
  302. }
  303. }
  304. if(res.data.approveProcessList.length){
  305. this.approveProcessList=res.data.approveProcessList;
  306. for(var i in this.approveProcessList){
  307. var obj=this.approveProcessList[i];
  308. if(obj.approveUserList.length==1){
  309. var e=obj.approveUserList
  310. obj.approveId=e[0].id;
  311. obj.approveName=e[0].name;
  312. // this.approveProcessList[i]=obj
  313. // console.log("ok",obj)
  314. }
  315. }
  316. this.getApproveList()
  317. }else{
  318. uni.showToast({
  319. title: "审批流未配置,请联系管理员",
  320. icon: "none"
  321. })
  322. }
  323. }).catch(error => {
  324. uni.showToast({
  325. title: error,
  326. icon: "none"
  327. })
  328. })
  329. },
  330. confirm(e) {
  331. if(e==''){
  332. this.form[this.showText]='';
  333. this[this.showText]=''
  334. }else{
  335. this.form[this.showText]=e[0].value;
  336. this[this.showText]=e[0].label
  337. }
  338. },
  339. confirm2(e) {
  340. if(e==''){
  341. }else{
  342. var obj=this.approveProcessList[this.showIndex];
  343. obj.approveId=e[0].value;
  344. obj.approveName=e[0].label;
  345. }
  346. },
  347. getInfo(id){
  348. uni.showLoading({
  349. title: "加载中",
  350. mask: true,
  351. })
  352. API.outRecordDetail({
  353. id:id,
  354. }).then((res) => {
  355. //this.outRecordDetailObj=res.data;
  356. var info=res.data.outRecord;
  357. var approveList=res.data.approveList;
  358. //this.outUser=res.data.outUser;
  359. uni.hideLoading();
  360. this.form.projectName=info.projectName
  361. this.projectList.forEach(item=>{
  362. if(item.value==info.departmentId){
  363. this.form.xmbId=item.value;
  364. this.xmbId=item.label
  365. }
  366. })
  367. if(approveList.length==this.approveProcessList.length){
  368. for(var i in approveList){
  369. var obj1=approveList[i].approveUserList[0]
  370. var obj2=this.approveProcessList[i].approveUserList
  371. for(var j in obj2){
  372. if(obj2[j].id==obj1.id){
  373. this.approveProcessList[i].approveId=obj1.id
  374. this.approveProcessList[i].approveName=obj1.name
  375. }
  376. }
  377. }
  378. }
  379. }).catch(error => {
  380. uni.showToast({
  381. title: error,
  382. icon: "none"
  383. })
  384. })
  385. },
  386. confirm4(e) {
  387. //obj.approveId=e[0].value;
  388. //obj.approveName=e[0].label;
  389. this.getInfo(e[0].value)
  390. },
  391. showpopupBtn(){
  392. this.showpopup=true
  393. },
  394. refscrolltolower(){
  395. this.$refs.equipmentRetrievalRef.myLoadmoreonReachBottom()
  396. },
  397. ckQueryContent(){
  398. this.$refs.equipmentRetrievalRef.queryContent=this.queryContent
  399. this.$refs.equipmentRetrievalRef.getList()
  400. },
  401. change(e){
  402. if(e==''){
  403. this.form[this.showText]='';
  404. this[this.showText]=''
  405. }else{
  406. this.form[this.showText]=e.result;
  407. this[this.showText]=e.year+"年"+e.month+"月"+e.day+"日"
  408. }
  409. },
  410. change2(e){
  411. if(e==''){
  412. this.form[this.showText]='';
  413. this[this.showText]=''
  414. }else{
  415. this.form[this.showText]=e.result;
  416. this[this.showText]=e.year+"年"+e.month+"月"+e.day+"日"
  417. }
  418. },
  419. submit(){
  420. var sprData=[]
  421. if(this.approveProcessList.length){
  422. var bl=false;
  423. var k =0
  424. for(var i in this.approveProcessList){
  425. k++;
  426. var obj=this.approveProcessList[i]
  427. if(obj.approveId){
  428. sprData.push({
  429. no:k,
  430. userId:obj.approveId
  431. })
  432. }else{
  433. bl=true;
  434. uni.showToast({
  435. title: '请选择'+obj.name+'审批人',
  436. icon: "none"
  437. })
  438. break
  439. }
  440. }
  441. if(bl){
  442. return
  443. }
  444. }else{
  445. uni.showToast({
  446. title: "审批流未配置,请联系管理员",
  447. icon: "none"
  448. })
  449. return
  450. }
  451. if(!this.form.projectName){
  452. uni.showToast({
  453. title: "请填写所属项目"
  454. })
  455. return
  456. }
  457. if(!this.form.endTime){
  458. uni.showToast({
  459. title: "请输入使用周期"
  460. })
  461. return
  462. }
  463. if(this.list.length==0){
  464. uni.showToast({
  465. title: "请添加设备"
  466. })
  467. return
  468. }
  469. var list=this.list.map(item=>{
  470. var obj={
  471. ...item
  472. }
  473. delete obj.obj
  474. return obj
  475. })
  476. this.form.deviceData=list;
  477. this.form.sprData=sprData;
  478. uni.showLoading({
  479. title: "加载中",
  480. mask: true,
  481. })
  482. API.saveOutRecord({
  483. content:JSON.stringify(this.form)
  484. }).then((res) => {
  485. const eventChannel = this.getOpenerEventChannel();
  486. eventChannel.emit('refreshData');
  487. uni.hideLoading()
  488. uni.showModal({
  489. title: '提示',
  490. content: '操作成功',
  491. showCancel:false,
  492. success: function (res) {
  493. if (res.confirm) {
  494. uni.navigateBack()
  495. } else if (res.cancel) {
  496. console.log('用户点击取消');
  497. }
  498. }
  499. });
  500. }).catch(error => {
  501. uni.showToast({
  502. title: error
  503. })
  504. })
  505. },
  506. del(val){
  507. this.list.splice(val,1)
  508. },
  509. deviceDetailsByNameApi(val,item){
  510. uni.showLoading({
  511. title: "加载中",
  512. mask: true,
  513. })
  514. API.deviceDetailsByName({
  515. name:val,
  516. model:item.model
  517. }).then((res) => {
  518. uni.hideLoading()
  519. var deviceInfo= res.data.deviceInfo;
  520. deviceInfo.inventory=res.data.count;
  521. this.list.push({
  522. deviceName:val,
  523. model:deviceInfo.model,
  524. obj:deviceInfo,
  525. count:1
  526. })
  527. }).catch(error => {
  528. // uni.showToast({
  529. // title:"添加失败"
  530. // })
  531. this.list.push({
  532. deviceName:item.title,
  533. model:item.model,
  534. obj:item,
  535. count:1
  536. })
  537. })
  538. },
  539. ckItem(item){
  540. var c=this.list.findIndex(it=>{
  541. return (it.obj.title==item.title&&it.obj.model==item.model)
  542. })
  543. if(c!=-1){
  544. console.log(c)
  545. this.del(c)
  546. }else{
  547. this.deviceDetailsByNameApi(item.title,item);
  548. }
  549. },
  550. }
  551. }
  552. </script>
  553. <style scoped lang="scss">
  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. .showpopup{
  597. font-size: 36rpx;
  598. text-align: center;
  599. margin: 32rpx;
  600. }
  601. page {
  602. padding-bottom: 200rpx;
  603. }
  604. // 出库单状态
  605. .head {
  606. background-color: #fff;
  607. padding: 24rpx 32rpx;
  608. display: flex;flex-wrap: wrap;
  609. align-items: center;
  610. color: #101010;
  611. font-size: 32rpx;
  612. .photo {
  613. width: 84rpx;
  614. height: 84rpx;
  615. border-radius: 100rpx;
  616. img {
  617. width: 100%;
  618. height: 100%;
  619. overflow: hidden;
  620. }
  621. }
  622. .name {
  623. color: #101010;
  624. font-size: 32rpx;
  625. margin-right: 8rpx;
  626. margin-left: 24rpx;
  627. max-width: 200rpx;
  628. overflow: hidden;
  629. text-overflow: ellipsis;
  630. white-space: nowrap
  631. }
  632. .submit {
  633. text {
  634. color: #3385FF;
  635. }
  636. }
  637. .state {
  638. line-height: 48rpx;
  639. padding: 0 24rpx;
  640. border-radius: 50px;
  641. background-color: rgba(255, 255, 255, 1);
  642. color: rgba(51, 133, 255, 1);
  643. font-size: 12px;
  644. text-align: center;
  645. font-family: Arial;
  646. border: 1px solid rgba(51, 133, 255, 1);
  647. margin-left: auto;
  648. }
  649. }
  650. // 出库单详情
  651. .details {
  652. background-color: #fff;
  653. margin-top: 24rpx;
  654. padding: 0 32rpx;
  655. .itemp{
  656. margin: 3px 0px;
  657. padding-top: 6px;
  658. font-size: 16px;
  659. font-weight: bold;
  660. }
  661. .item {
  662. display: flex;flex-wrap: wrap;
  663. justify-content: space-between;
  664. padding: 12rpx 0;
  665. border-bottom: 1px solid rgba(244, 244, 244, 1);
  666. .name {
  667. line-height: 30px;
  668. color: rgba(119, 119, 119, 1);
  669. }
  670. .value {
  671. color: #101010;
  672. }
  673. }
  674. }
  675. // 出库单列表
  676. .list {
  677. background-color: #fff;
  678. margin-top: 24rpx;
  679. padding: 22rpx 32rpx;
  680. padding-bottom: 60px;
  681. .list-head {
  682. display: flex;flex-wrap: wrap;
  683. justify-content: space-between;
  684. align-items: center;
  685. .title {
  686. color: #333333;
  687. font-size: 32rpx
  688. }
  689. .amount.add{
  690. color:#45BA45 ;
  691. }
  692. .amount {
  693. font-size: 24rpx;
  694. text {
  695. color: #3385FF;
  696. }
  697. /deep/.u-icon--right {
  698. margin-left: 8rpx;
  699. }
  700. }
  701. }
  702. // 清单信息
  703. .list-infos {
  704. border-radius: 8px;
  705. background-color: #F5F6F9;
  706. margin-top: 24rpx;
  707. padding: 24rpx;
  708. .infos-head {
  709. display: flex;flex-wrap: wrap;
  710. justify-content: space-between;
  711. align-items: center;
  712. margin-bottom: 24rpx;
  713. .name {
  714. color: rgba(51, 51, 51, 1);
  715. font-size: 32rpx;
  716. }
  717. .state {
  718. color: #999999;
  719. }
  720. }
  721. .infos {
  722. margin-top: 16rpx;
  723. display: flex;flex-wrap: wrap;
  724. color: #777777;
  725. font-size: 24rpx;
  726. .infos-1 {
  727. margin-right: 68rpx;
  728. }
  729. .infos-item {
  730. display: flex;flex-wrap: wrap;
  731. margin-bottom: 8rpx;
  732. .item-value{
  733. max-width: 200rpx;
  734. }
  735. }
  736. }
  737. }
  738. }
  739. // 流程
  740. .process {
  741. background-color: #fff;
  742. margin-top: 24rpx;
  743. padding: 24rpx 32rpx;
  744. .title {
  745. color: rgba(51, 51, 51, 1);
  746. font-size: 32rpx;
  747. }
  748. .u-time-axis-item{
  749. //margin-bottom: 76rpx;
  750. }
  751. .u-time-axis {
  752. //padding: 18rpx 40rpx;
  753. }
  754. .u-node {
  755. width: 18rpx;
  756. height: 18rpx;
  757. border-radius: 100rpx !important;
  758. display: flex;flex-wrap: wrap;
  759. justify-content: center;
  760. align-items: center;
  761. background: #d0d0d0;
  762. }
  763. .u-order{
  764. margin-bottom: 32rpx;
  765. }
  766. .u-order-title {
  767. color: #333333;
  768. font-weight: bold;
  769. font-size: 32rpx;
  770. }
  771. .u-order-desc {
  772. margin-bottom: 16rpx;
  773. display: flex;flex-wrap: wrap;
  774. justify-content: space-between;
  775. align-items: center;
  776. .level {
  777. color: #333333;
  778. font-size: 32rpx;
  779. font-weight: bold;
  780. }
  781. .date {
  782. color: rgba(119, 119, 119, 1);
  783. }
  784. .state {
  785. color: rgba(255, 121, 0, 1);
  786. }
  787. }
  788. .u-order-time {
  789. width: 90rpx;
  790. color: #777777;
  791. font-size: 28rpx;
  792. margin-top: 16rpx;
  793. display: flex;flex-wrap: wrap;
  794. flex-direction: column;
  795. align-items: center;
  796. .photo {
  797. width: 56rpx;
  798. height: 56rpx;
  799. border-radius: 100px;
  800. margin-bottom: 4rpx;
  801. img {
  802. width: 100%;
  803. height: 100%;
  804. overflow: hidden;
  805. position: relative;
  806. }
  807. }
  808. .confirm {
  809. position: absolute;
  810. top: 46rpx;
  811. left: 56rpx;
  812. }
  813. .name {
  814. color: rgba(51, 51, 51, 1);
  815. font-size: 24rpx;
  816. }
  817. }
  818. }
  819. // .u-time-axis{
  820. // .u-time-axis-item:last-of-type{
  821. // margin-bottom: 0;
  822. // }
  823. // }
  824. // 确认出库
  825. .bottom{
  826. background-color: #fff;
  827. margin-top: 44rpx;
  828. padding: 16rpx 32rpx;
  829. z-index: 999;
  830. position: fixed;
  831. left: 0;
  832. right: 0;
  833. bottom: 0;
  834. uni-button{
  835. border-radius: 8px;
  836. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  837. color: rgba(255, 255, 255, 1);
  838. font-size: 32rpx;
  839. line-height: 88rpx;
  840. }
  841. }
  842. </style>