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
| <template>
| <view>
| <view>
| <z-input v-for="it in zInputList"
| :desc="it.desc"
| :name="it.name"
| :btn="it.btn"
| :btn-name="it.btnName"
| v-model="it.val"
| :index="it.id"
| :lenCheck="it.lenCheck"
| :focus="it.focus"
| @clickBtn='entry(it.name)'
| @inputVal='input2'>
| </z-input>
| </view>
| <u-sticky >
| <view class="sticky">商品列表</view>
| </u-sticky>
| <view v-for="item in 100" style="margin: 8px;height: 100rpx;background-color: blueviolet;">
| {{item}}
| </view>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| zInputList: [
| {id:1,name: 'barcode',desc: '托盘码',val: '2',lenCheck: 8,focus: true},
| {id:2,name: 'matnr',desc: '物料码',val: '',btn: true,btnName: '提取',placeholder: '',focus: false}
| ],
| }
| },
| methods: {
| entry(e) {
| },
| input2(arr) {
| if(arr[1] == 'matnr') {
| this.getMat(arr[0])
| }
| },
| getMat(matnr) {
| console.log(matnr);
| }
|
| }
| }
| </script>
|
| <style>
| .sticky {
| height: 50rpx;
| margin-top: -1px;
| text-align: center;
| background-color: #fff;
| display: flex;
| align-items: center;
| justify-content: center;
| }
| </style>
|
|