From ed410791a62bb5dc11d8be22c42084c88aca78a9 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 13 十月 2023 17:29:42 +0800
Subject: [PATCH] #

---
 pages/common/data-list/dataDetail.vue |   10 +-
 pages/project/ps/pakin/pakin.vue      |  144 ++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 145 insertions(+), 9 deletions(-)

diff --git a/pages/common/data-list/dataDetail.vue b/pages/common/data-list/dataDetail.vue
index 5981855..f30743c 100644
--- a/pages/common/data-list/dataDetail.vue
+++ b/pages/common/data-list/dataDetail.vue
@@ -40,11 +40,11 @@
 		data() {
 			return {
 				dataList: [
-					{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: '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'},
 				],
 				baseIP:'',
 				basePORT:'',
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