1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
| <template>
| <view class="content">
|
|
| <view class="info">
| 库区名称:{{info.deptName}}
| </view>
| <view class="info">
| <view v-if="info.bizType=='IN'">业务类型:入库预约</view>
| <view v-if="info.bizType=='OUT'">业务类型:出库预约</view>
| </view>
| <view class="info">
| 司机姓名:{{info.userName}}
| </view>
| <view class="info">
| 司机身份证号:{{info.userId}}
| </view>
| <view class="info">
| <view v-if="info.phone==''"></view>
| <view v-else>司机电话:{{info.phone}}</view>
| </view>
| <view class="info">
| 车牌号:{{info.plateNum}}
| </view>
| <view class="info">
| <view v-if="info.eatTag=='Y'">是否吃饭:是</view>
| <view v-if="info.eatTag=='N'">是否吃饭:否</view>
| <view v-if="info.eatTag==''">是否吃饭:</view>
| </view>
| <view class="info">
| 客户名称:{{info.customerName}}
| </view>
| <view class="info">
| 预约出入库时间:{{info.dataTime}}
| </view>
| <view class="info">
| 申请预约时间:{{info.updateTime}}
| </view>
| </view>
| </template>
|
| <script>
| export default {
| data(){
| return{
| info: {
| deptId:'',
| deptName:'',
| bizType:'',
| userName:'',
| userId:'',
| phone:'',
| plateNum:'',
| eatTag:'',
| customerName:'',
| customerId:'',
| dataTime:'',
| updateTime:''
| },
|
| }
| },
| onLoad:function(){
| // uni.getStorage({
| // key:'record_detail',
| // success:function(res){
| // console.log(res.data)
| // this.info = JSON.parse(res.data);
| // console.log(this.info)
| // }
| // })
|
| this.info = JSON.parse(uni.getStorageSync('record_detail')||'[]');
| console.log(this.info,"info")
| }
|
| }
| </script>
|
| <style lang="scss">
| .content{
| display: flex;
| flex-direction: column;
| padding: 30rpx;
| .info{
| margin-top: 15rpx;
| padding: 15rpx;
| box-shadow: 2rpx 0rpx 10rpx #c1c1c1;
| border-radius: 20rpx;
| position: relative;
| }
| }
|
| </style>
|
|