From 1d5b60515b80cf400b214a5f565792c212fe6f2e Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 28 三月 2024 13:52:12 +0800
Subject: [PATCH] Merge branch 'demo' of http://47.97.1.152:5880/r/wms_app into demo
---
pages/project/ps/pakin/pakin.vue | 144 ++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 140 insertions(+), 4 deletions(-)
diff --git a/pages/project/ps/pakin/pakin.vue b/pages/project/ps/pakin/pakin.vue
index 072659e..70b9b77 100644
--- a/pages/project/ps/pakin/pakin.vue
+++ b/pages/project/ps/pakin/pakin.vue
@@ -14,12 +14,21 @@
@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>
+
+ <z-data-list class="data-list"
+ v-for="(it,i) in zDataList"
+ :key="i"
+ :list="it.detl"
+ :index="i+1"
+ @goDetail='goDetail(it.detl,i)'
+ ></z-data-list>
+
+ <!-- 鍨珮 -->
+ <view style="height: 100rpx;"></view>
</view>
</template>
@@ -30,6 +39,108 @@
zInputList: [
{id:1,name: 'barcode',desc: '鎵樼洏鐮�',val: '2',lenCheck: 8,focus: true},
{id:2,name: 'matnr',desc: '鐗╂枡鐮�',val: '',btn: true,btnName: '鎻愬彇',placeholder: '',focus: false}
+ ],
+ zDataList: [
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 1},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 2},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 3},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 4},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 5},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 1},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 2},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 3},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 4},
+ ]
+ },
+ {
+ detl: [
+ {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
+ {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�'},
+ {key: '瑙勬牸',value: '700*699*80'},
+ {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
+ {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
+ {key: '搴忓彿',value: 5},
+ ]
+ }
],
}
},
@@ -43,6 +154,28 @@
},
getMat(matnr) {
console.log(matnr);
+ },
+ goDetail(param,index) {
+ let _this = this
+ uni.navigateTo({
+ url: '/pages/common/data-list/dataDetail',
+ // 浼�
+ success: function(data) {
+ data.eventChannel.emit('param', {
+ param: param,
+ index: index
+ })
+ },
+ // 鎺�
+ events: {
+ dataList: function(data) {
+ console.log(data);
+ },
+ del: function(data) {
+ _this.zDataList.splice(data.data,1)
+ }
+ },
+ })
}
}
@@ -51,7 +184,7 @@
<style>
.sticky {
- height: 50rpx;
+ height: 70rpx;
margin-top: -1px;
text-align: center;
background-color: #fff;
@@ -59,4 +192,7 @@
align-items: center;
justify-content: center;
}
+ .data-list:last-child {
+ margin-bottom: 100rpx;
+ }
</style>
--
Gitblit v1.9.1