deliveryFrom.vue 19 KB

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