deliveryDetails.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  1. <template>
  2. <view >
  3. <u-navbar title="归还单详情">
  4. <view class="details" slot="bottom" v-if="info.status==0" >
  5. <view class="list">
  6. <view class="list-head">
  7. <view class="title">
  8. 扫码核验
  9. </view>
  10. <view class="amount" @click="gotoscan('')">
  11. <u-icon name="scan" color="#0051ff" ></u-icon>扫码识别
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </u-navbar>
  17. <u-popup v-model="showpopup" class="scanpopo" mode="bottom"
  18. border-radius="14"
  19. :closeable="true" >
  20. <view class="scantitle">连续扫码</view>
  21. <view class="scanlist">
  22. <view class="scan-list-infos" :style="nowscan.healthStatus&&nowscan.healthStatus!=1?'background-color:#FFC107':''">
  23. <view class="scan-infos-head" @click="gotoInfo(nowscan.id)">
  24. <view class="name">
  25. {{nowscan.title?nowscan.title:'扫码后出当前结果'}}
  26. </view>
  27. <view class="name">
  28. 编号:{{showCode(nowscan)}}
  29. <span class="name" v-show="nowscan&&nowscan.id" style="color:blue;">
  30. 点击查看
  31. </span>
  32. </view>
  33. </view>
  34. <view class="scan-infos-head " style="margin-bottom: 12rpx;">
  35. <view class="name" v-html="descriptionKey(nowscan)">
  36. </view>
  37. </view>
  38. <view class="scan-infos">
  39. <!-- <view class="infos-2">
  40. <view class="infos-item">
  41. <view class="item-name">
  42. 规格:
  43. </view>
  44. <view class="item-value">
  45. {{nowscan.specifications}}
  46. </view>
  47. </view>
  48. <view class="infos-item">
  49. <view class="item-name">
  50. 型号:
  51. </view>
  52. <view class="item-value">
  53. {{nowscan.model}}
  54. </view>
  55. </view>
  56. </view> -->
  57. </view>
  58. </view>
  59. </view>
  60. <!-- #ifdef MP-WEIXIN -->
  61. <camera mode="scanCode" resolution='medium'
  62. @scancode="takeCode" v-if="showpopup"
  63. device-position="back" flash="off" @error="error"
  64. style="width: 100%; height: 300px;"></camera>
  65. <!-- #endif -->
  66. </u-popup>
  67. <!-- 出库单状态 -->
  68. <view class="container" :style="info.status==0?'margin-top: 60px;':''">
  69. <view class="head">
  70. <view class="photo">
  71. <u-avatar size="84" :src="outUser.userImg"></u-avatar>
  72. </view>
  73. <view class="name">
  74. {{info.createByName}}
  75. </view>
  76. <view class="submit">
  77. 提交了<text>入库申请</text>
  78. </view>
  79. <view class="state" :style="{
  80. color:recordStatusColor(info.status),
  81. borderColor:recordStatusColor(info.status)
  82. }">
  83. {{info.status=='1'?'已入库':'待入库'}}
  84. </view>
  85. </view>
  86. <!-- 出库单详情 -->
  87. <view class="details">
  88. <view class="item">
  89. <view class="name">
  90. 所属项目部
  91. </view>
  92. <view class="value">
  93. {{info.projectName}}
  94. </view>
  95. </view>
  96. <view class="item">
  97. <view class="name">
  98. 创建时间
  99. </view>
  100. <view class="value">
  101. {{info.createTime}}
  102. </view>
  103. </view>
  104. <view class="item">
  105. <view class="name">
  106. 统计
  107. </view>
  108. <view class="value">
  109. <span style="margin-left: 3px;">总数:{{deviceInfoList.length}}</span>
  110. <span style="margin-left: 3px;">收到数:{{receiveNum}}</span>
  111. <span style="margin-left: 3px;">待维修:{{lossNum}}</span>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 出库设备清单 -->
  116. <view class="container">
  117. <view class="main">
  118. <view class="list-item" v-for="(item,index) in deviceInfoList" :key="index">
  119. <!--信息 -->
  120. <view class="list-infos">
  121. <view class="infos-head">
  122. <view class="name">
  123. {{item.deviceInfo?item.deviceInfo.title:''}}
  124. </view>
  125. <template v-if="info.status==0">
  126. <view class="qr-code" v-if="deviceReList[index].deviceIdScan==0" >
  127. </view>
  128. <view class="qr-code2" v-else @click="gotoscan('')" >
  129. <text><u-icon name="checkmark-circle" color="#45BA45" ></u-icon></text >
  130. <text>扫码成功</text>
  131. </view>
  132. </template>
  133. <template v-else>
  134. <view style="color: #3385FF;" @click="ckInfo(item)" >
  135. <text>查看设备</text>
  136. </view>
  137. </template>
  138. </view>
  139. <view class="infos">
  140. <view class="infos-1">
  141. <view class="infos-item">
  142. <view class="item-name">
  143. 型号:
  144. </view>
  145. <view class="item-value">
  146. {{item.deviceInfo?item.deviceInfo.model:''}}
  147. </view>
  148. </view>
  149. </view>
  150. <view class="infos-2">
  151. <view class="infos-item">
  152. <view class="item-name">
  153. 设备编号:
  154. </view>
  155. <view class="item-value">
  156. {{item.deviceInfo?showCode(item.deviceInfo):''}}
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="receive-options">
  163. <view class="title">
  164. 是否维修
  165. </view>
  166. <view class="receive-radio">
  167. <u-radio-group v-model="deviceReList[index].deviceStatus">
  168. <u-radio v-for="(radio, index2) in radiolist2" :key="index2"
  169. :name="radio.value" >
  170. <span >
  171. {{radio.name}}
  172. </span>
  173. </u-radio>
  174. </u-radio-group>
  175. </view>
  176. </view>
  177. <view class="receive-options">
  178. <view class="title">
  179. 是否收到
  180. </view>
  181. <view class="receive-radio">
  182. <u-radio-group v-model="deviceReList[index].status" @change="radioGroupChange">
  183. <u-radio @change="radioChange" v-for="(radio, index2) in radiolist" :key="index2"
  184. :name="radio.value" :disabled="radio.disabled">
  185. {{radio.name}}
  186. </u-radio>
  187. </u-radio-group>
  188. </view>
  189. </view>
  190. <!-- 备注 -->
  191. <textarea class="uni-textarea" v-model="deviceReList[index].remark" placeholder="备注" name="" id="" cols="30" rows="10"></textarea>
  192. <!-- 上传图片 -->
  193. <view class="upload-img" v-if="info.status=='0'">
  194. <ujp-upload width="144" height="144" :ref="'uUpload'+index"
  195. :key="index"
  196. name="photoFile" :multiple="false"
  197. :form-data="formData" :header="header" :action="action"
  198. max-count="4" upload-text=" " del-bg-color="#0051FF" ></ujp-upload>
  199. </view>
  200. <view class="upload-img" v-else >
  201. <ujp-upload width="144" height="144" :key="1"
  202. v-if="deviceReList[index].imgUrls"
  203. :fileList="deviceReList[index].imgUrls.split(',').map(item=>{return {url:item,view:1}})"
  204. name="photoFile" :multiple="false" :deletable="false"
  205. max-count="0" upload-text=" " del-bg-color="#0051FF" ></ujp-upload>
  206. </view>
  207. </view>
  208. <u-divider
  209. border-color="#CFD2D5">已经到底了</u-divider>
  210. </view>
  211. </view>
  212. </view>
  213. <view class="bottom" v-if="info.status==0" >
  214. <u-button type="primary" @click="gotoOut()" >确认归还</u-button>
  215. </view>
  216. </view>
  217. </template>
  218. <script>
  219. import * as API from '@/apis/pagejs/storeManagement.js'
  220. import ujpUpload from "@/pages/storeManagement/components/u-upload.vue"
  221. import {
  222. recordStatus,recordStatusColor
  223. } from '@/apis/status.js'
  224. export default {
  225. components:{
  226. ujpUpload
  227. },
  228. data() {
  229. return {
  230. nowscan:{
  231. "title": "",
  232. "specifications": "",
  233. "experimentLastTime":"",
  234. "manufactor": "",
  235. "unit": "",
  236. "model": "",
  237. "code": "",
  238. },
  239. scanList: [],
  240. scanFunctionIsUseable:true,
  241. showpopup:false,
  242. action:"",
  243. formData:{
  244. subFolder:"equipmentEnter"
  245. },
  246. header:{
  247. },
  248. radiolist: [{
  249. name: '已收到',
  250. value:"1",
  251. disabled: false
  252. },
  253. {
  254. name: '未收到',
  255. value:"2",
  256. disabled: false
  257. },
  258. ],
  259. value: '已收到',
  260. id:"",
  261. radiolist2: [{
  262. name: '正常',
  263. value: "0",
  264. disabled: false,
  265. color:""
  266. },
  267. {
  268. name: '损坏,需要维修',
  269. value: "1",
  270. disabled: false,
  271. color:"red"
  272. },
  273. ],
  274. info:{
  275. projectName:"",
  276. startTime:"",
  277. endTime:"",
  278. createTime:"",
  279. createByName:""
  280. },
  281. outUser:{
  282. name:"",
  283. headImg:""
  284. },
  285. deviceInfoList:[],
  286. deviceReList:[],
  287. }
  288. },
  289. onLoad(op){
  290. this.id=op.id
  291. this.getInfo()
  292. this.action=process.car.BASE_URL+"uploadPicture"
  293. this.formData.subFolder="feedback"
  294. //接口应该免登陆
  295. var token=this.carhelp.getToken()
  296. this.header={
  297. 'Authorization':token
  298. }
  299. },
  300. computed:{
  301. receiveNum(){
  302. var list=this.deviceReList.filter(item=>{
  303. return item.status==1
  304. })
  305. return list.length
  306. },
  307. lossNum(){
  308. var list=this.deviceInfoList.filter(item=>{
  309. return item.deviceStatus==1
  310. })
  311. return list.length
  312. },
  313. },
  314. methods:{
  315. recordStatus,recordStatusColor,
  316. ckInfo(item) {
  317. var url = "/pages/otherFunctions/equipmentRetrieval/equipmentInfo?id=" + item.deviceId;
  318. uni.navigateTo({
  319. url: url,
  320. })
  321. },
  322. getInfo(bl){
  323. uni.showLoading({
  324. title: "加载中",
  325. mask: true,
  326. })
  327. API.inRecordDetail({
  328. id:this.id,
  329. }).then((res) => {
  330. uni.hideLoading();
  331. this.info=res.data.inRecord;
  332. this.deviceInfoList=res.data.inRecordDeviceList;
  333. //this.outUser=res.data.outUser;
  334. if(bl){
  335. const eventChannel = this.getOpenerEventChannel();
  336. eventChannel.emit('refreshData');
  337. }
  338. this.deviceReList=this.deviceInfoList.map(item=>{
  339. if(this.info.status==0){
  340. return {
  341. recordDeviceId:item.id,
  342. deviceId:item.deviceInfo.id,
  343. remark:"",
  344. deviceIdScan:0,
  345. status:"2",
  346. deviceStatus:item.deviceStatus
  347. }
  348. }else{
  349. return {
  350. recordDeviceId:item.id,
  351. deviceId:item.deviceInfo.id,
  352. remark:item.remark,
  353. imgUrls:item.imgUrls,
  354. status:item.status,
  355. deviceStatus:item.deviceStatus
  356. }
  357. }
  358. })
  359. }).catch(error => {
  360. uni.showToast({
  361. title: error,
  362. icon: "none"
  363. })
  364. })
  365. },
  366. submitInfo(obj){
  367. uni.showLoading({
  368. title: "加载中",
  369. mask: true,
  370. })
  371. API.saveRecordIn(obj).then((res) => {
  372. uni.hideLoading();
  373. this.getInfo(true)
  374. }).catch(error => {
  375. uni.showToast({
  376. title: error,
  377. icon: "none"
  378. })
  379. })
  380. },
  381. gotoOut(){
  382. var _this=this;
  383. uni.showModal({
  384. title: '提示',
  385. content:"确认清单无误",
  386. //content: '这是一个模态弹窗',
  387. success: function(res) {
  388. if (res.confirm) {
  389. _this.gotoOutMethod()
  390. } else if (res.cancel) {
  391. console.log('用户点击取消');
  392. }
  393. }
  394. });
  395. },
  396. gotoOutMethod(){
  397. var returnObj=[...this.deviceReList]
  398. var bl=true;
  399. for(var x in this.deviceReList){
  400. var obj=returnObj[x];
  401. delete obj.deviceIdScan;
  402. var lists1=[];
  403. var lists2 =this.$refs["uUpload"+x][0].lists
  404. for(var i in lists2){
  405. var item=lists2[i]
  406. if(item.progress==100&&item.response&&item.response.result){
  407. }else{
  408. uni.showToast({
  409. title:"第"+(x+1)+"行图片上传中,请稍后"
  410. })
  411. bl=false
  412. break;
  413. }
  414. var p =item.response.data.fileUrl;
  415. lists1.push(p);
  416. }
  417. if(!bl){
  418. break;
  419. }
  420. obj.imgUrls=lists1.join()
  421. returnObj[x]=obj;
  422. }
  423. if(!bl){
  424. return;
  425. }
  426. console.log(returnObj);
  427. var json={
  428. recordId:this.id,
  429. deviceData:returnObj
  430. }
  431. this.submitInfo({
  432. recordData:JSON.stringify(json)
  433. })
  434. },// 选中某个单选框时,由radio时触发
  435. radioChange(e) {
  436. // console.log(e);
  437. },
  438. // 选中任一radio时,由radio-group触发
  439. radioGroupChange(e) {
  440. // console.log(e);
  441. },
  442. beforeUpload(index, list) {
  443. // 只上传偶数索引的文件
  444. if(index % 2 == 0) return true;
  445. else return false;
  446. }, error(e) {
  447. console.log(e);
  448. },
  449. gotoscan(val){
  450. // if(this.deviceposition=='back'){
  451. // this.deviceposition="front"
  452. // }else{
  453. // this.deviceposition="back"
  454. // }
  455. // #ifdef H5
  456. this.gotoscanH5(val)
  457. // #endif
  458. // #ifdef MP-WEIXIN
  459. this.gotoscanMP(val)
  460. // #endif
  461. },
  462. takeCode(e){
  463. console.log(e);
  464. if(this.scanFunctionIsUseable) {
  465. this.scanFunctionIsUseable = false;
  466. // 对扫码结果进行处理
  467. console.log(e.detail.result);
  468. //this.getscan(e.detail.result)
  469. this.getscan(this.takeCodeJp(e.detail.result))
  470. // 扫码间隔两秒
  471. setTimeout(() => {
  472. this.scanFunctionIsUseable = true;
  473. }, 1000)
  474. }
  475. },
  476. gotoscanMP(val){
  477. this.showpopup=true;
  478. // const ctx = uni.createCameraContext();
  479. // ctx.takePhoto({
  480. // quality: 'high',
  481. // success: (res) => {
  482. // this.src = res.tempImagePath
  483. // }
  484. // });
  485. },
  486. gotoscanH5(val) {
  487. console.log('111')
  488. var _this = this;
  489. uni.showModal({
  490. title: '提示',
  491. editable: true,
  492. //content: '这是一个模态弹窗',
  493. success: function(res) {
  494. if (res.confirm) {
  495. _this.getscan(res.content)
  496. } else if (res.cancel) {
  497. console.log('用户点击取消');
  498. }
  499. }
  500. });
  501. },getscan(val) {
  502. this.showpopup=true;
  503. uni.showLoading({
  504. title: "加载中",
  505. mask: true,
  506. })
  507. API.queryDeviceByCode({
  508. code: val,
  509. }).then((res) => {
  510. uni.hideLoading();
  511. if (res.data.deviceInfo) {
  512. console.log(res.data.deviceInfo)
  513. this.nowscan=res.data.deviceInfo;
  514. var c = this.deviceInfoList.findIndex(item => {
  515. return item.deviceInfo.id == res.data.deviceInfo.id
  516. })
  517. uni.showToast({
  518. title: "扫码成功",
  519. icon: "none"
  520. })
  521. if (c!=-1) {
  522. this.deviceReList[c].status='1'
  523. this.deviceReList[c].deviceIdScan=1;
  524. } else {
  525. }
  526. } else {
  527. uni.showToast({
  528. title: "二维码无效",
  529. icon: "none"
  530. })
  531. this.nowscan={}
  532. }
  533. }).catch(error => {
  534. uni.showToast({
  535. title: error,
  536. icon: "none"
  537. })
  538. })
  539. },
  540. }
  541. }
  542. </script>
  543. <style scoped lang="scss">
  544. page {
  545. padding-bottom: 200rpx;
  546. }
  547. .scantitle{
  548. text-align: center;
  549. font-size: 44rpx;
  550. padding-top: 20px;
  551. }
  552. .list {
  553. background-color: #fff;
  554. margin: 24rpx;
  555. padding: 22rpx 32rpx;
  556. // 清单信息
  557. .list-infos {
  558. border-radius: 8px;
  559. .infos-head {
  560. display: flex;flex-wrap: wrap;
  561. justify-content: space-between;
  562. align-items: center;
  563. margin-bottom: 24rpx;
  564. .name {
  565. color: rgba(51, 51, 51, 1);
  566. font-size: 32rpx;
  567. }
  568. .qr-code {
  569. border-radius: 4px;
  570. background: linear-gradient(180deg, rgba(22, 119, 255, 1) 0%, rgba(16, 98, 213, 1) 100%);
  571. color: rgba(255, 255, 255, 1);
  572. font-size: 24rpx;
  573. width: 160rpx;
  574. text-align: center;
  575. line-height: 64rpx;
  576. text {
  577. img {
  578. vertical-align: middle;
  579. }
  580. }
  581. }
  582. }
  583. .infos {
  584. margin-top: 16rpx;
  585. display: flex;flex-wrap: wrap;
  586. color: #777777;
  587. font-size: 24rpx;
  588. .infos-1 {
  589. margin-right: 68rpx;
  590. }
  591. .infos-item {
  592. display: flex;flex-wrap: wrap;
  593. margin-bottom: 8rpx;
  594. .item-value{
  595. max-width: 200rpx;
  596. }
  597. }
  598. }
  599. .address,
  600. .remark {
  601. display: flex;flex-wrap: wrap;
  602. color: #777777;
  603. font-size: 24rpx;
  604. margin-bottom: 8rpx;
  605. }
  606. }
  607. }
  608. .container {
  609. .main {
  610. padding: 0 24rpx;
  611. padding-bottom: 60px;
  612. .list-item {
  613. border-radius: 8px;
  614. padding: 24rpx;
  615. background-color: #fff;
  616. margin-top: 24rpx;
  617. }
  618. // 信息
  619. .list-infos {
  620. padding-bottom: 24rpx;
  621. border-bottom: 1px solid rgba(232, 232, 232, 1);
  622. .infos-head {
  623. display: flex;flex-wrap: wrap;
  624. justify-content: space-between;
  625. align-items: center;
  626. margin-bottom: 24rpx;
  627. .name {
  628. color: rgba(51, 51, 51, 1);
  629. font-size: 32rpx;
  630. }
  631. .state {
  632. border: 1px solid rgba(69, 186, 69, 1);
  633. border-radius: 4px;
  634. color: rgba(69, 186, 69, 1);
  635. font-size: 24rpx;
  636. line-height: 48rpx;
  637. width: 160rpx;
  638. text-align: center;
  639. text {
  640. img {
  641. vertical-align: middle;
  642. margin-right: 4rpx;
  643. }
  644. }
  645. }
  646. .qr-code2 {
  647. border-radius: 4px;
  648. //background: linear-gradient(180deg, rgba(22, 119, 255, 1) 0%, rgba(16, 98, 213, 1) 100%);
  649. color: #45BA45 ;
  650. border: 1px solid rgba(69, 186, 69, 1);
  651. font-size: 24rpx;
  652. width: 160rpx;
  653. text-align: center;
  654. line-height: 48rpx;
  655. text {
  656. img {
  657. vertical-align: middle;
  658. }
  659. }
  660. }
  661. .qr-code {
  662. border-radius: 4px;
  663. background: linear-gradient(180deg, rgba(22, 119, 255, 1) 0%, rgba(16, 98, 213, 1) 100%);
  664. color: rgba(255, 255, 255, 1);
  665. font-size: 24rpx;
  666. width: 160rpx;
  667. text-align: center;
  668. line-height: 48rpx;
  669. text {
  670. img {
  671. vertical-align: middle;
  672. }
  673. }
  674. }
  675. }
  676. .infos {
  677. margin-top: 16rpx;
  678. display: flex;flex-wrap: wrap;
  679. justify-content: space-between;
  680. color: #777777;
  681. font-size: 24rpx;
  682. .infos-1 {}
  683. .infos-item {
  684. display: flex;flex-wrap: wrap;
  685. margin-bottom: 8rpx;
  686. .item-value{
  687. max-width: 200rpx;
  688. }
  689. }
  690. }
  691. }
  692. // 接收选项
  693. .receive-options {
  694. display: flex;flex-wrap: wrap;
  695. align-items: center;
  696. padding: 24rpx 0;
  697. .title {
  698. color: #333333;
  699. margin-right: 24rpx;
  700. }
  701. .receive-radio {
  702. flex: 1;
  703. ::v-deep .u-radio-group {
  704. width: 100%;
  705. }
  706. ::v-deep .u-radio {
  707. margin-right: 48rpx;
  708. }
  709. }
  710. }
  711. // 备注
  712. uni-textarea,.uni-textarea{
  713. width: 100%;
  714. height: 80rpx;
  715. line-height: 80rpx;
  716. text-indent: 24rpx;
  717. background-color: rgba(241, 242, 245, 1);
  718. color: rgba(136, 136, 136, 1);
  719. border-radius: 8px;
  720. font-family: Microsoft Yahei;
  721. font-size: 28rpx;
  722. }
  723. // 上传图片
  724. .upload-img{
  725. margin-top: 24rpx;
  726. ::v-deep .u-add-tips{
  727. margin-top: 0;
  728. }
  729. // 右上角删除图标
  730. ::v-deep .u-delete-icon{
  731. top: -8rpx;
  732. right: -8rpx;
  733. width: 36rpx;
  734. height: 36rpx;
  735. }
  736. ::v-deep .u-list-item{
  737. overflow: inherit;
  738. }
  739. ::v-deep .u-list-item{
  740. margin-right: 8rpx;
  741. }
  742. }
  743. }
  744. }
  745. // 出库单状态
  746. .head {
  747. background-color: #fff;
  748. padding: 24rpx 32rpx;
  749. display: flex;flex-wrap: wrap;
  750. align-items: center;
  751. color: #101010;
  752. font-size: 32rpx;
  753. .photo {
  754. width: 84rpx;
  755. height: 84rpx;
  756. border-radius: 100rpx;
  757. img {
  758. width: 100%;
  759. height: 100%;
  760. overflow: hidden;
  761. }
  762. }
  763. .name {
  764. color: #101010;
  765. font-size: 32rpx;
  766. margin-right: 8rpx;
  767. margin-left: 24rpx;
  768. max-width: 200rpx;
  769. overflow: hidden;
  770. text-overflow: ellipsis;
  771. white-space: nowrap
  772. }
  773. .submit {
  774. text {
  775. color: #3385FF;
  776. }
  777. }
  778. .state {
  779. line-height: 48rpx;
  780. padding: 0 24rpx;
  781. border-radius: 50px;
  782. background-color: rgba(255, 255, 255, 1);
  783. color: rgba(51, 133, 255, 1);
  784. font-size: 12px;
  785. text-align: center;
  786. font-family: Arial;
  787. border: 1px solid rgba(51, 133, 255, 1);
  788. margin-left: auto;
  789. }
  790. }
  791. // 出库单详情
  792. .details {
  793. background-color: #fff;
  794. margin-top: 24rpx;
  795. padding: 0 32rpx;
  796. .item {
  797. display: flex;flex-wrap: wrap;
  798. justify-content: space-between;
  799. padding: 22rpx 0;
  800. border-bottom: 1px solid rgba(244, 244, 244, 1);
  801. .name {
  802. color: rgba(119, 119, 119, 1);
  803. }
  804. .value {
  805. color: #101010;
  806. }
  807. }
  808. }
  809. // 出库单列表
  810. .list {
  811. background-color: #fff;
  812. margin-top: 24rpx;
  813. padding: 22rpx 32rpx;
  814. .list-head {
  815. display: flex;flex-wrap: wrap;
  816. justify-content: space-between;
  817. align-items: center;
  818. .title {
  819. color: #333333;
  820. font-size: 32rpx
  821. }
  822. .amount {
  823. color: #777777;
  824. font-size: 24rpx;
  825. text {
  826. color: #3385FF;
  827. }
  828. ::v-deep .u-icon--right {
  829. margin-left: 8rpx;
  830. }
  831. }
  832. }
  833. // 清单信息
  834. .list-infos {
  835. border-radius: 8px;
  836. background-color: #F5F6F9;
  837. margin-top: 24rpx;
  838. padding: 24rpx;
  839. .infos-head {
  840. display: flex;flex-wrap: wrap;
  841. justify-content: space-between;
  842. align-items: center;
  843. margin-bottom: 24rpx;
  844. .name {
  845. color: rgba(51, 51, 51, 1);
  846. font-size: 32rpx;
  847. }
  848. .state {
  849. color: rgba(0, 81, 255, 1);
  850. }
  851. }
  852. .infos {
  853. margin-top: 16rpx;
  854. display: flex;flex-wrap: wrap;
  855. color: #777777;
  856. font-size: 24rpx;
  857. .infos-1 {
  858. margin-right: 68rpx;
  859. }
  860. .infos-item {
  861. display: flex;flex-wrap: wrap;
  862. margin-bottom: 8rpx;
  863. .item-value{
  864. max-width: 200rpx;
  865. }
  866. }
  867. }
  868. }
  869. }
  870. // 流程
  871. .process {
  872. background-color: #fff;
  873. margin-top: 24rpx;
  874. padding: 24rpx 32rpx;
  875. .title {
  876. color: rgba(51, 51, 51, 1);
  877. font-size: 32rpx;
  878. }
  879. .u-time-axis-item{
  880. //margin-bottom: 76rpx;
  881. }
  882. .u-time-axis {
  883. //padding: 18rpx 40rpx;
  884. }
  885. .u-node {
  886. width: 18rpx;
  887. height: 18rpx;
  888. border-radius: 100rpx !important;
  889. display: flex;flex-wrap: wrap;
  890. justify-content: center;
  891. align-items: center;
  892. background: #d0d0d0;
  893. }
  894. .u-order{
  895. margin-bottom: 32rpx;
  896. }
  897. .u-order-title {
  898. color: #333333;
  899. font-weight: bold;
  900. font-size: 32rpx;
  901. }
  902. .u-order-desc {
  903. margin-bottom: 16rpx;
  904. display: flex;flex-wrap: wrap;
  905. justify-content: space-between;
  906. align-items: center;
  907. .level {
  908. color: #333333;
  909. font-size: 32rpx;
  910. font-weight: bold;
  911. }
  912. .date {
  913. color: rgba(119, 119, 119, 1);
  914. }
  915. .state {
  916. color: rgba(255, 121, 0, 1);
  917. }
  918. }
  919. .u-order-time {
  920. width: 90rpx;
  921. color: #777777;
  922. font-size: 28rpx;
  923. margin-top: 16rpx;
  924. display: flex;flex-wrap: wrap;
  925. flex-direction: column;
  926. align-items: center;
  927. .photo {
  928. width: 56rpx;
  929. height: 56rpx;
  930. border-radius: 100px;
  931. margin-bottom: 4rpx;
  932. img {
  933. width: 100%;
  934. height: 100%;
  935. overflow: hidden;
  936. position: relative;
  937. }
  938. }
  939. .confirm {
  940. position: absolute;
  941. top: 46rpx;
  942. left: 56rpx;
  943. }
  944. .name {
  945. color: rgba(51, 51, 51, 1);
  946. font-size: 24rpx;
  947. }
  948. }
  949. }
  950. // .u-time-axis{
  951. // .u-time-axis-item:last-of-type{
  952. // margin-bottom: 0;
  953. // }
  954. // }
  955. // 确认出库
  956. .bottom{
  957. background-color: #fff;
  958. margin-top: 44rpx;
  959. padding: 16rpx 32rpx;
  960. z-index: 999;
  961. position: fixed;
  962. left: 0;
  963. right: 0;
  964. bottom: 0;
  965. uni-button{
  966. border-radius: 8px;
  967. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  968. color: rgba(255, 255, 255, 1);
  969. font-size: 32rpx;
  970. line-height: 88rpx;
  971. }
  972. }
  973. </style>