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
| <template>
| <view>
| <!-- 搜索框 -->
| <view class="search-bar">
| <uni-search-bar v-model="condition" placeholder=" 扫码 / 输入" bgColor="#EEEEEE" @confirm="search" />
| </view>
| <scroll-view>
| <view v-for="(item,i) in orderList" class="order-list">
| <view @click="selectOrderNo(item)" class="order-item">
| {{item}}
| </view>
| </view>
| </scroll-view>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| condition: '',
| orderList: [],
| checked: true
| }
| },
| onShow() {
| this.baseUrl = uni.getStorageSync('baseUrl');
| this.token = uni.getStorageSync('token');
| this.getOrderNoList()
| },
| methods: {
| selectOrderNo(i) {
| let that = this
| this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: i});
| uni.navigateBack({
|
| })
|
| },
| getOrderNoList() {
| let that = this
| uni.request({
| url: this.baseUrl + '/order/list/all',
| method: 'POST',
| success(res) {
| res = res.data
| for (var i = 0; i < res.data.length; i++) {
| that.orderList.push(res.data[i].order_no)
| }
| }
| })
| },
| }
| }
| </script>
|
| <style>
| @import url('../../static/css/wms.css/wms.css');
| .order-list {
| display: flex;
| height: 100rpx;
| align-items: center;
| /* justify-content: center; */
| margin: 10px;
| background-color: #FFF;
| border-radius: 10rpx;
| box-shadow: 0 0 5px 1px #e7e7e7;
| text-indent: 1em;
| color: #606266;
| }
| .order-list:last-child {
| margin-bottom: 10px;
| }
| .order-item {
| display: flex;
| height: 100%;
| width: 100%;
| align-items: center;
| }
| </style>
|
|