deliveryFrom.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973
  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="xmbId" @click="show3=true,showText='xmbId'" @clear="showText='xmbId',change('')" placeholder="请选择所属项目部" type="select" />
  18. </view>
  19. </view>
  20. <view class="item">
  21. <view class="name">
  22. 所属项目<span style="color: red;">*</span>
  23. </view>
  24. <view class="value">
  25. <u-input v-model="form.projectName" placeholder="请输入所属项目" type="text" />
  26. </view>
  27. </view>
  28. <view class="item">
  29. <view class="name">
  30. 需求时间
  31. </view>
  32. <view class="value">
  33. <u-input v-model="needTime" @click="show=true,showText='needTime'" @clear="showText='needTime',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="endTime" @click="show=true,showText='endTime'" @clear="showText='endTime',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. <view >
  186. <equipmentRetrieval @ckItem="ckItem" :list="list"
  187. ref="equipmentRetrievalRef" :iscomponents="1"></equipmentRetrieval>
  188. </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. specifications:item.specifications,
  518. }).then((res) => {
  519. uni.hideLoading()
  520. var deviceInfo= res.data.deviceInfo;
  521. deviceInfo.inventory=res.data.count;
  522. this.list.push({
  523. deviceName:val,
  524. model:deviceInfo.model,
  525. specifications:deviceInfo.specifications,
  526. obj:deviceInfo,
  527. count:1
  528. })
  529. }).catch(error => {
  530. // uni.showToast({
  531. // title:"添加失败"
  532. // })
  533. this.list.push({
  534. deviceName:item.title,
  535. model:item.model,
  536. specifications:item.specifications,
  537. obj:item,
  538. count:1
  539. })
  540. })
  541. },
  542. ckItem(item){
  543. var c=this.list.findIndex(it=>{
  544. return (it.obj.title==item.title&&it.obj.model==item.model&&it.obj.specifications==item.specifications)
  545. })
  546. if(c!=-1){
  547. console.log(c)
  548. this.del(c)
  549. }else{
  550. this.deviceDetailsByNameApi(item.title,item);
  551. }
  552. },
  553. }
  554. }
  555. </script>
  556. <style scoped lang="scss">
  557. // 搜索
  558. .search {
  559. padding: 12rpx 24rpx;
  560. display: flex;flex-wrap: wrap;
  561. border-radius: 8px;
  562. overflow: hidden;
  563. .search-box {
  564. display: flex;
  565. border-radius: 8px;
  566. overflow: hidden;
  567. }
  568. ::v-deep .u-search {
  569. width: 630rpx;
  570. margin: auto !important;
  571. position: relative;
  572. flex: 0;
  573. margin: 0 !important;
  574. height: 64rpx !important;
  575. }
  576. ::v-deep .u-content {
  577. width: 430px;
  578. border-radius: 0px !important;
  579. height: 64rpx !important;
  580. }
  581. ::v-deep .u-icon--right {
  582. margin-right: 16rpx;
  583. }
  584. .search-btn {
  585. width: 100rpx;
  586. height: 64rpx;
  587. background-color: #f2f2f2;
  588. .text {
  589. height: 40rpx;
  590. margin: 12rpx 0;
  591. border-left: 1px solid #999999;
  592. font-family: Microsoft Yahei;
  593. text-align: center;
  594. color: rgba(16, 98, 213, 1);
  595. font-size: 28rpx;
  596. }
  597. }
  598. }
  599. .showpopup{
  600. font-size: 36rpx;
  601. text-align: center;
  602. margin: 32rpx;
  603. }
  604. page {
  605. padding-bottom: 200rpx;
  606. }
  607. // 出库单状态
  608. .head {
  609. background-color: #fff;
  610. padding: 24rpx 32rpx;
  611. display: flex;flex-wrap: wrap;
  612. align-items: center;
  613. color: #101010;
  614. font-size: 32rpx;
  615. .photo {
  616. width: 84rpx;
  617. height: 84rpx;
  618. border-radius: 100rpx;
  619. img {
  620. width: 100%;
  621. height: 100%;
  622. overflow: hidden;
  623. }
  624. }
  625. .name {
  626. color: #101010;
  627. font-size: 32rpx;
  628. margin-right: 8rpx;
  629. margin-left: 24rpx;
  630. max-width: 200rpx;
  631. overflow: hidden;
  632. text-overflow: ellipsis;
  633. white-space: nowrap
  634. }
  635. .submit {
  636. text {
  637. color: #3385FF;
  638. }
  639. }
  640. .state {
  641. line-height: 48rpx;
  642. padding: 0 24rpx;
  643. border-radius: 50px;
  644. background-color: rgba(255, 255, 255, 1);
  645. color: rgba(51, 133, 255, 1);
  646. font-size: 12px;
  647. text-align: center;
  648. font-family: Arial;
  649. border: 1px solid rgba(51, 133, 255, 1);
  650. margin-left: auto;
  651. }
  652. }
  653. // 出库单详情
  654. .details {
  655. background-color: #fff;
  656. margin-top: 24rpx;
  657. padding: 0 32rpx;
  658. .itemp{
  659. margin: 3px 0px;
  660. padding-top: 6px;
  661. font-size: 16px;
  662. font-weight: bold;
  663. }
  664. .item {
  665. display: flex;flex-wrap: wrap;
  666. justify-content: space-between;
  667. padding: 12rpx 0;
  668. border-bottom: 1px solid rgba(244, 244, 244, 1);
  669. .name {
  670. line-height: 30px;
  671. color: rgba(119, 119, 119, 1);
  672. }
  673. .value {
  674. color: #101010;
  675. }
  676. }
  677. }
  678. // 出库单列表
  679. .list {
  680. background-color: #fff;
  681. margin-top: 24rpx;
  682. padding: 22rpx 32rpx;
  683. padding-bottom: 60px;
  684. .list-head {
  685. display: flex;flex-wrap: wrap;
  686. justify-content: space-between;
  687. align-items: center;
  688. .title {
  689. color: #333333;
  690. font-size: 32rpx
  691. }
  692. .amount.add{
  693. color:#45BA45 ;
  694. }
  695. .amount {
  696. font-size: 24rpx;
  697. text {
  698. color: #3385FF;
  699. }
  700. ::v-deep .u-icon--right {
  701. margin-left: 8rpx;
  702. }
  703. }
  704. }
  705. // 清单信息
  706. .list-infos {
  707. border-radius: 8px;
  708. background-color: #F5F6F9;
  709. margin-top: 24rpx;
  710. padding: 24rpx;
  711. .infos-head {
  712. display: flex;flex-wrap: wrap;
  713. justify-content: space-between;
  714. align-items: center;
  715. margin-bottom: 24rpx;
  716. .name {
  717. color: rgba(51, 51, 51, 1);
  718. font-size: 32rpx;
  719. }
  720. .state {
  721. color: #999999;
  722. }
  723. }
  724. .infos {
  725. margin-top: 16rpx;
  726. display: flex;flex-wrap: wrap;
  727. color: #777777;
  728. font-size: 24rpx;
  729. .infos-1 {
  730. margin-right: 68rpx;
  731. }
  732. .infos-item {
  733. display: flex;flex-wrap: wrap;
  734. margin-bottom: 8rpx;
  735. .item-value{
  736. max-width: 200rpx;
  737. }
  738. }
  739. }
  740. }
  741. }
  742. // 流程
  743. .process {
  744. background-color: #fff;
  745. margin-top: 24rpx;
  746. padding: 24rpx 32rpx;
  747. .title {
  748. color: rgba(51, 51, 51, 1);
  749. font-size: 32rpx;
  750. }
  751. .u-time-axis-item{
  752. //margin-bottom: 76rpx;
  753. }
  754. .u-time-axis {
  755. //padding: 18rpx 40rpx;
  756. }
  757. .u-node {
  758. width: 18rpx;
  759. height: 18rpx;
  760. border-radius: 100rpx !important;
  761. display: flex;flex-wrap: wrap;
  762. justify-content: center;
  763. align-items: center;
  764. background: #d0d0d0;
  765. }
  766. .u-order{
  767. margin-bottom: 32rpx;
  768. }
  769. .u-order-title {
  770. color: #333333;
  771. font-weight: bold;
  772. font-size: 32rpx;
  773. }
  774. .u-order-desc {
  775. margin-bottom: 16rpx;
  776. display: flex;flex-wrap: wrap;
  777. justify-content: space-between;
  778. align-items: center;
  779. .level {
  780. color: #333333;
  781. font-size: 32rpx;
  782. font-weight: bold;
  783. }
  784. .date {
  785. color: rgba(119, 119, 119, 1);
  786. }
  787. .state {
  788. color: rgba(255, 121, 0, 1);
  789. }
  790. }
  791. .u-order-time {
  792. width: 90rpx;
  793. color: #777777;
  794. font-size: 28rpx;
  795. margin-top: 16rpx;
  796. display: flex;flex-wrap: wrap;
  797. flex-direction: column;
  798. align-items: center;
  799. .photo {
  800. width: 56rpx;
  801. height: 56rpx;
  802. border-radius: 100px;
  803. margin-bottom: 4rpx;
  804. img {
  805. width: 100%;
  806. height: 100%;
  807. overflow: hidden;
  808. position: relative;
  809. }
  810. }
  811. .confirm {
  812. position: absolute;
  813. top: 46rpx;
  814. left: 56rpx;
  815. }
  816. .name {
  817. color: rgba(51, 51, 51, 1);
  818. font-size: 24rpx;
  819. }
  820. }
  821. }
  822. // .u-time-axis{
  823. // .u-time-axis-item:last-of-type{
  824. // margin-bottom: 0;
  825. // }
  826. // }
  827. // 确认出库
  828. .bottom{
  829. background-color: #fff;
  830. margin-top: 44rpx;
  831. padding: 16rpx 32rpx;
  832. z-index: 999;
  833. position: fixed;
  834. left: 0;
  835. right: 0;
  836. bottom: 0;
  837. uni-button{
  838. border-radius: 8px;
  839. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  840. color: rgba(255, 255, 255, 1);
  841. font-size: 32rpx;
  842. line-height: 88rpx;
  843. }
  844. }
  845. </style>